Why are popular question like these closed?

I'm from math.SE, and I just posted some questions here that were closed. They were downvoted, and so apparently they are not really appreciated by the community here. But there is something I don't understand, that is -      When I search a little, I find many very popular questions getting closed as non-constructive.    For example:        Why would you close those questions if it is very clear that the community appreciates them? It seems like questions that don't follow some criteria are closed by some autistic, automatic procedure.  I thought that StackExchange was about what the community wants, not what some moderator(s) think is constructive. I'm glad that those questions above got very good answers before they were closed, but what about other interesting questions that had less luck. Taking the question Examples of GoF Design Patterns we see 674 users and 1 moderator who closes it.   It may be the case that StackOverflow was originally not intended for questions like these. But who cares? This doesn't look like democracy to me.


Possible Duplicate:          What's a good way to learn cooking and avoid the current trend of my life that is best summarized by this xkcd comic:  ?


I have farms in my dataset and from each farm, I have a few animals (varies for each farm) to test for a disease. I want to know, if I tested these animals, what apparent prevalence will I be able to detect in each herd. I want to estimate this for each herd.   There is a formula for estimating the sample size for a given prevalence; but how could one estimate the prevalence, if the sample size is known?


Why can't I center my wrapper div using flexbox?

Hi I'm currently working on a website project for a "fictional plane company". I want to be able to center the "main div" but for some reason I have a lot of margin at the right side. I've tried setting margin to 0 and setting width to 100%, but I can't figure out the problem.     .main{   position: absolute;   margin: 0px;   align-items: center;   width: 80%;   line-height: 2em;   display: flex;   flex-direction: column; }

Bestill fin flyreise
         <select class="" name="">             <option value=""><-- Fly fra--></option>             <option value="">Sarpsborg</option>             <option value="">Fredrikstad</option>             <option value="">Askim</option>             <option value="">Moss</option>             <option value="">Halden</option>         </select>         <select class="" name="">             <option value=""><-- Fly fra--></option>             <option value="">Sarpsborg</option>             <option value="">Fredrikstad</option>             <option value="">Askim</option>             <option value="">Moss</option>             <option value="">Halden</option>         </select>
Utreisedato
         <input type="date" name="" value="">
Antall reisende
         <input type="number" name="" value="" max="5">                  <input type="radio" name="" value=""> VIP plass (250,-)                  <button type="button" name="button">Bestill flyreise</button>

     JSFiddle:


If I can prove that $ij = k$, given that $i^2 = j^2 = k^2 = -1$, then it will be easy to prove the other quaternion formulas. However, I'm having a lot of trouble getting past this step. I started by setting up the following equation, such that $(a, b, c, d) \in \mathbb{R}$  $ij = a + bi + cj + dk$  Obviously, I need to prove that $a = b = c = 0 \land d= 1$. I've done all sorts of wacky things with this equation and I haven't gotten any closer to proving that $ij = k$. I would greatly appreciate it if somebody could point me in the right direction. Thanks in advance!


How does paying off a car lease early work?

I'm a little bit confused on paying my lease amount early.  As far as I understand, I loaded the total amount of the car. Let's say the total amount of car is 50k and the total lease amount is 25k.  If I pay 25k early, how does that work with my credit?   Let's say I can't lease a new car because I already one a car loan in my credit. If pay the lease early, am I going to be able to lease a new car even if I haven't returned the car yet (leased one)?  Update: Not sure why this is marked as duplicate. The first question is not related. I'm trying see how it affect my credit when I pay off early.


Difference between deep neural network and convolutional neural network

I wanted to develop an app similar to  on my own which is based on image classification using neural nets. While in early phases of my research I came across through terms Deep Neural Nets and Convolutional Neural Nets.   What is the difference between two and which will be the best bet for me to work on for this project?  Edit1:- I looked on kaggle's digit recogniser for my initial research


Subgroups of finite solvable groups. Solvable?

I am attempting to prove that, given a non-trivial normal subgroup $N$ of a finite group $G$, we have that $G$ is solvable iff both $N$, $G/N$ are solvable. I was able to show that if $N,G/N$ are solvable, then $G$ is; also, that if $G$ is solvable, then $G/N$ is. I am stuck showing that $N$ must be solvable if $G$ is.  It seems intuitive that any subgroup of a finite solvable group is necessarily solvable, as well. Is this true in general? For normal subgroups? How can I go about proving this result?  Edit: By solvable, I mean we have a finite sequence $1=G_0\unlhd ... \unlhd G_k=G$ such that $G_{j+1}/G_j$ is abelian for each $1\leq j<k$.


Long term travel without being wealthy - how is it possible?

Some people are practically most of the time traveling, from country to country, for a very long periods and sometimes even years.   How could one be able to travel for a long period of time, over several countries around the world, without being wealthy?


Im new to physics and do not yet know of all of the terms and math.  I was wondering about temperature. I read that there is the lowest temperature which is absolute zero where nothing happens, i.e. no vibrational activity from atoms.  My question is; is there also a highest temperature, i.e. an absolute max temperature?  Thank you for your time.


Here is a proof that I am trying to solve: Show  that  if $p$ and $q$ are  distinct  primes,  then  the  group $\mathbb{Z}_p \times \mathbb{Z}_q$ is isomorphic to the cyclic group $\mathbb{Z}_{pq}$.  I have done a problem like this in the past but it was so long ago that I can't think of where to even start. Could someone give me at least a pointer on how I should do this?


Is it okay to publish my personal notes from a lecture?

Would it be considered ethical to publish my own personal notes from class? In addition, is there a change when the class transitions from in session to being complete (at the end of the semester)?  For example when this may be relevant, there are courses where the Professor publishes his slides onto a class portal, but excludes certain material that is only covered in class. This is to incentivize students to show up, rather than only study from the from published slides.


Command block problem, damaging snowballs

I'm trying to make a damaging snowball command which doesn't need redstone (comparators, repeaters etc.) This is the entire code:  Command one:   /scoreboard players set xXElite_PythonXx HoldSnowball 1 {SelectedItemSlot:0,Inventory:[{tag:{display:{Name:"shuriken",Lore:["_____"]}}}]}   Command two:   /execute @e[score_HoldSnowball_min=1] ~ ~ ~ scoreboard players set @e[type=Snowball,rm=3,r=4] Snowball 1   Command three:   /execute @e[type=Snowball,score_Snowball_min=1] ~ ~ ~ effect @e[r=2] wither 1 1 true   Command four:   /scoreboard players set xXElite_PythonXx HoldSnowball 0   Command two is crucial in order for the whole damaging schematic to work, but the problem is that it doesn't execute the command, it instead says:     [15:55:42] Failed to execute 'scoreboard players set @e[type=Snowball,rm=3,r=4] Snowball 1' as xXElite_PythonXx   Could you please help to fix the problem with command number two? What is the correct code?


When a user on our site loses his password and heads off to the Lost Password page we need to give him a new temporary password. I don't really mind how random this is, or if it matches all the "needed" strong password rules, all I want to do is give them a password that they can change later.  The application is a Web application written in C#. so I was thinking of being mean and going for the easy route of using part of a Guid. i.e.  Guid.NewGuid().ToString("d").Substring(1,8)   Suggesstions? thoughts?


I'd be very grateful if someone could help me understand the idea behind link functions:  I know that the idea is that we want to map the mean to the $\eta$-vector. Also, I know that the canonical link is the one that makes $\eta=\theta$, where $\theta$ is the parameter.  But why/when do we want to choose the canonical link? When do we have to consider other alternatives?  Thanks a lot!


If I have Schengen visa, can I enter Schengen area from different country?

Let's say I have Schengen visa issued by Dutch embassy as business visa for business in Holland. Can I fly to Frankfurt and spend some time in Germany and then come to Holland?   I know I can travel to all Schengen countries with this visa, but I am not sure whether I can enter from different country.


How to remove request blocking on apache reverse proxy after failure of backend before asking backend again?

I am working on an apache2 reverse proxy vhost. When the server behind apache is down, the first request to apache shows the error page of course.   But at subsequent requests it seems apache delays for some time before asking the backend server again. During all this time (which is short but in development I don't want a delay at all) only the apache error page is shown to the browser, although the backend server is already up.  Where is this setting in apache, what is this behaviour, and how can I set the delay time to zero?  Edit: I am not trying to change the timeout for a single request. I want to change the blocking time. It is my experience that apache blocks further requests for a certain time before asking a backend server again that has failed once.   Edit2: This is what apache delivers:  Service Temporarily Unavailable  The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.  Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.7 with Suhosin-Patch proxy_html/3.0.0 Server at localhost Port 80  After hitting Ctrl-R in firefox for 60 seconds the page finally appears.


How do you describe something bad, that everyone wants?

Like - trying to catch a disease on purpose.


How can I change the number of enumerate items?

Ok, since this question seems to be pretty easy (well I still don't know the answer and didn't find something on this site), I'll try it without MWE: I'd like to know how to change the number of items in enumerate environments. Most appreciated would be solutions without additional packages or such...  \begin{enumerate}   \item The fifth item   \item The seventh item \end{enumerate}   This should result in  5. The fifth item 7. The seventh item   and not in the normal items numbered 1 and 2. It probably has to do something with counters!?


I can't understand why this code returns False:  list_of_disks = [[170, 158, 470, 0.1], [135, 176, 410, 0.2], [100, 193, 350, 0.3], [170, 458, 470,       1.1]] def f1(pos):     for x in range(0, len(list_of_disks)):         if list_of_disks[x][3] == pos:             print list_of_disks[x+1][3] - 0.1, list_of_disks[x][3]             print list_of_disks[x+1][3] - 0.1 == list_of_disks[x][3] # Why is this False..?             break  f1(0.2)   When I print out the 2 values, they seem to be the same..? Hope someone can help me out here, thanks!


Comparing command line arguments reference return false while array of String return true

Currently i am working with String manipulation and while doing demo i have found some different behaviour.  Below is my code.  public class HelloWorld{   public static void main(String []args){     String str1 = "Hello";     String str2 = "Hello";     String str3 = new String("Hello");      String strArray[] = {"Hello","Hello"};     String strArray1[] = new String[] {"Hello","Hello"};      System.out.println("str1==str2::  "+(str1==str2));     System.out.println("str1==str3::  "+(str1==str3));      System.out.println("strArray[0]==strArray[1]::  "+(strArray[0]==strArray[1]));     System.out.println("str1==strArray[1]::  "+(str1==strArray[1]));      System.out.println("strArray1[0]==strArray1[1]::  "+(strArray1[0]==strArray1[1]));     System.out.println("str1==strArray1[1]::  "+(str1==strArray1[1]));      System.out.println("args[0]==args[1]::  "+(args[0]==args[1]));  }   }  And out put of above code is. I am running code passing command line arguments.   java HelloWorld Hello Hello      str1==str2::  true   str1==str3::  false   strArray[0]==strArray[1]::  true   str1==strArray[1]::  true   strArray1[0]==strArray1[1]::  true   str1==strArray1[1]::  true   args[0]==args[1]::  false    Here i have two queries.   if i compare reference of String str1==str3 then it will return false because str3 is created using new String so that will not reside in String pool, So how str1==strArray1[1] return true?? strArray[0]==strArray[1] will return true, strArray1[0]==strArray1[1] also return true then why command line argument args[0]==args[1] return false??    Please guide.


The difference between "could" and "can"

He's a better writer than I could ever be.  He's a better writer than I can ever be.  What's the difference between can and could here? Are both sentences grammatically correct?


Proving that the limit of $\root n \of {{a_1}^n + {a_2}^n + ... + {a_k}^n}$ is $\max(a_1,...a_k)$

Prove that:    $$\lim_{n \to \infty} \root n \of {{a_1}^n + {a_2}^n + ... + {a_k}^n}  = \max \left\{ {{a_1},{a_2}...{a_k}} \right\}$$   I am familiar with the theorem which says that if $$\mathop {\lim }\limits_{n \to \infty } {{{a_n}} \over {{a_{n - 1}}}} = L$$   then, $$\mathop {\lim }\limits_{n \to \infty } \root n \of {{a_n}}  = L$$  So, I tried evaluating the expreesion: $${{{a_1}^n + {a_2}^n + ... + {a_k}^n} \over {{a_1}^{n - 1} + {a_2}^{n - 1} + ... + {a_k}^{n - 1}}}$$  but pretty much got stuck here. Is this the right path to go?


Big tiles make the floor look/looks bigger

Big tiles make the floor look bigger. Big tiles make the floor looks bigger. Which one is correct? According to my logic, the second verb of this sentence would be looks as its subject is the floor which is a third person singular number. Or it would be look for any other reason? Please let me know with explanation.


Run multiple commands at once with a single input

Can I save the multiple commands that I want to run to a file? Then Can I just call the file once I want to run those commands? I know how to run several commands at once by typing everything in the terminal separated by ;, && or || depending on my preference. But this method looks tedious as I need to put many commands manually at once. So I am wondering whether there is a way to save the commands in a file and call the file to run all the commands? Thanks!


List directories, then files - with single command?

I really don't like how Linux ls -al mixes files and directories.   Is it possible to list directories, then files, with single command?   dirA dirB dirC fileA fileB fileC


How much time has passed in-universe in Detective Conan?

Detective Conan is a notoriously long-running series -- it's been running for like fifteen years, and hundreds of cases have been solved. Conan has made friends, received upgraded technology over time (cell phones!), and has generally "kept up" with its audience.  Yet, logically, time in-universe must have passed, and Shinichi's continued absence should be more notable than it is if he's been gone for more than a year.  How much time has passed, currently, in the Meitantei Conan universe?


EFA: interpreting negative factor loadings

I've run an exploratory factor analysis with oblique rotation, and specifying three factors.  The first two factors are correlated at almost zero with one another, while there's a negative correlation with the third factor.  Looking at the pattern matrix, factors 1 and 2 have positive loadings in relation to almost every manifest variable, although each only has strong loadings with a subset of manifest variables.  However, factor 3 has negative loadings with almost every manifest variable, although the loadings are only strong in relation to a subset of variables. Let's call factor 3 "openness to experience".  Let's say that there's an observed variable V1 that relates to items like "I don't like to try new foods". Factor 3's loading in relation to V1 is -0.5. I understand I can interpret the pattern coefficients in a manner like "as Factor 3 increases by 1 unit it's predicted that variable V1 will decrease by 0.5 units, holding constant scores on the other factors.   However, is it legit for flip the factor name around and call it "closedness to experience", and then say things like "as closedness to experience increases by 1 unit, it's predicted that variable V1 will increase by 0.5 units?  Also, is the existence of a factor with negative loadings on almost everything an indication of something pathological going on in my analysis? Why didn't the program create a factor with positive loadings instead?


Is the distance function in a metric space (uniformly) continuous?

Let $(X, d)$ be a metric space. Is the function $x\mapsto d(x, z)$ continuous? Is it uniformly continuous?


could the second conditional be like this?

From a film subtitle:     "What would've happenned if you were a few minutes later, Hani?"   I think that 'What would have happened if you had been a few minutes later,Hani?'is right?  I think this is third conditional sentence. Could you tell me the grammar I don't know? Or is this wrong sentence?


Blending colors in photoshop and illustrator

I am working on a print for my wall and I am trying to create something like this:      I have already created the letters in Illustrator and now I am adding the colors in Illustrator and then exporting everything to Photoshop and then using the liquify tool to blend the colors to create a similar effect. I also used the healing patch tool to blend in the hard edges.  Is that the right way of doing it? Or is there another way?


How to integrate $(\sin x/x)^3$ from $0$ to $\infty$?

$$\int_0^\infty(\sin(x)/x)^3 dx$$ Help me!


"which" command doesn't match program being executed

I was trying to install a newer version of curl and when I ran: curl -V, the version number didn't change.  After running which curl, it displayed the path of the newly installed version: /usr/local/bin/curl. If I run /usr/local/bin/curl -V it displays the correct version.  The version being executed by curl seems to be in /usr/bin.  My PATH is: /usr/local/bin:/usr/bin ... etc, so it should be executing the /usr/local version.  Why is the output of which curl not the same as the program being executed by curl?


Proofs involving a $d$-regular bipartite graph

Suppose that $G$ is a $d$-regular bipartite graph with bipartition $(A, B)$, and that $d ≥ 1$. a) Prove that $∣A∣ = ∣B∣$. b) Prove that $G$ contains a perfect matching.  So I understand that a $d$-regular graph will have every vertex of degree $d$. But I am not sure how that would apply here. Will I have to insert $d$ into my use of Hall's condition and then move from there. And also, how exactly would I prove that $|A| = |B|$? Would that also involve Hall's condition? Thank you!


What would happen if you died in normal SAO before the Kayaba announcement?

This might be a bit out of a place-question, but does anyone happen to know what used to happen after dying in Sword Art Online before the Kayaba announcement that if you die, you will die in the real world? The players most likely respawned, but what about all of their progress? Would they have to beat all the levels and all the bosses again and start from the starting town, or could there have been a checkpoint system so you would not lose ALL the progress?


Gravitational time dilation, does time of the observer at a lower gravitational potential looked slowed down in the frame of the higher one

This question is mainly inspired after watching the movie known as Interstellar We knew that for time dilation caused by relativistic motion between A and B. A will measure B's clocks slowing down, and B will measure A's clock slowing down by the same rate, while they both measure their own clocks ticking normally In interstellar, there's a planet that experience severe gravitational time dilation relative to earth's frame due to being in close proximity to the black hole Gargantula, therefore for every hour spent there measured by the astronaut's frame, 7 years will have passed in Earth's frame Thus this means to Earth's frame, they will measure the astronaut's clocks to be ticking slower relative to them  But what about earth's clock as measured by the astronauts? Will they measure Earth's to be ticking faster than theirs (at the same magnitude it is slowed in earth's frame measuring theirs)? Because if they both measured the other's clocks as running slower, then how could the twin paradox like aging difference be possible?


WordPress image title attribute becomes permalink?

I'm managing a WordPress site with a strange problem. When images are uploaded to the media library, a page is being generated with a permalink that uses the image's title attribute. For example, if the image's attribute is 'headshot' there will be a page with a URL of mysite.com/headshot. The page doesn't appear in the page list (or the post list, for that matter). There doesn't appear to be a plugin doing this, and I can't locate a setting to shut it off. I have never seen this happen before. Has anyone else?


Let $G$ be  a group and $H$ be a subgroup of $G$ of index $2$ .Then show that if $a,b\notin H$ then $ab\in H$.   $a,b\notin H\implies aH,bH\neq H\implies $ $aH=bH$  since $H$ has only two distinct left cosets in $G$.  $\implies a^{-1}b\in H$  How to show that $ab\in H$ from here?


underline color of LanguageTool in TeXstudio

I am asking the same question as in  since I have the same problem but the solution does not work for me. I am using language tool to verify the grammar, but it is almost impossible to see the underlined grammar mistake(it is gray). On the other hand, it overwrites the spelling of texstudio; hence, it is impossible to find spelling mistakes as well. Here are my questions:   How to fix the color problem? (texstudio preferences -> syntax highlighting does not work for me.) Is it possible to force texstudio to use its own dictionary?   I am running Texstudio 12.6 on windows 10.


Long path file successfully copied but cannot open in Windows 10

I wanted to copy files from a Windows 7 Machine to a Windows 10 Machine and used Network transfer via LAN, however, I wasn't able to copy all the data because I received an error at the end:  Destination Path Too Long --- The file name(s) would be too long for the destination folder...   I researched and found this , and after doing the workaround on that site, I was able to copy all the remaining data, however, when I tried to open these files from the Windows 10 Machine another error appeared, with the file location becoming:  \\\?D:\Users\Username\Desktop\Super\Long\Path\Filename...   The file location is not complete. The files are not corrupted and can still be opened if I try to shorten the path.   Question: Is there a way to open a file with long path in Windows 10 without shortening the path?


postfix and prefix in printf and for function (C)

I'm sorry, I'm still a noob at C. I wonder why post and prefix have different effect in "printf" but have the same effect in "for"or maybe in other loop ?   example :  #include <stdio.h> main() {     int number = 0;     printf("%d.\n", ++number); //It prints 1     return 0; }   ...............     printf("%d.\n", number++); //it prints 0 ...............   but in "for"  #include<stdio.h> main() {     int number;     for (number = 0; number < 5; ++number);     {         printf("%d\n", number); //it prints 0,1,2,3,4     }     return 0; } .............     for (number = 0; number < 5, number++);     {        printf("%d\n", number); //it prints 0,1,2,3,4     } .........................


Can item despawn rate be changed in minecraft?

I'm running a minecraft 1.8.8 server using craftbukkit. I've read about a config option to change the item despawn rate after death. how is this done if possible or is there a plugin that i can download?


In Ubuntu 12.10 there was a nice app called . It has ability to add new mimetype, add recognition by content of file and new icon, all done by mouse clicking. Now assogiate disappears from repos. Other programs doesn't have that ability. How to do it by hand?  For example: I have a file test.lzx. This is a packed test file with  packer used mostly on Amiga. Gnome doesn't recognize it. If I test file with file command I see:  $ file test.lzx test.lzx: LZX compressed archive (Amiga)   Recognize that type of file by content is simple. At 0 offset (at the beginning of file) there is a LZX string:  $ hexdump -C test.lzx | head -n 1 00000000  4c 5a 58 00 0c 00 0a 04  00 00 07 00 00 c0 0d 00  |LZX.............|   In Assogiate I was able to add search string and offset where Gnome have to look for this string.   Now question: how to add manually new mime type and make Gnome recognize it by file content?  Answers at         are not related to my question.


The domain and search options in resolv.conf

Let's say you have a resolv.conf file that's something like this.  nameserver 192.168.0.7 nameserver 192.168.0.8 domain somedomain.local   Then let's say you just changed it to this.  nameserver 192.168.0.7 nameserver 192.168.0.8 search somedomain.local   Would these both do the same thing? Is one slightly better than the other?  Why would declaring both a domain and search not be recommended?


Existence of a $\mathbb C$-Banach space isometric to a Hilbert Space but whose norm is not induced by an inner product?

As written in the title, does there exists a $\mathbb C$-Banach space isometric to a Hilbert Space but whose norm is not induced by an inner product?  Since an inner product in the Hilbert space has to fulfill the Parallelogram Identity, how could it be that such a $\mathbb C$-Banach space exists?


How do I prove if $\sup\{ (n!)^{1/n} | n \in\Bbb N\} = +\infty$?  I don't know how to properly explain it


Pass variables to script which called script

I have a bash script which must call another bash script which varies per-user in order to get some configuration information, like so:  somescript:  #!/bin/bash ${HOME}/.ssconfig echo "Hello, ${VARIABLE}!"   ~/.ssconfig  #!/bin/bash VARIABLE=world   Which, instead of giving me Hello, world! as expected, gives me Hello, ! How can I pass variables up from a script to the one that called it?


I am just analyzing the IVP $x'=x^{\frac{2}{3}}$ with initial condition $x(0)=0$. It is obvious that there is a solution which is not unique, since it is not Lipschitz (not bounded near 0). My book says it has a solution that satifies $x(t)=0$ iff $t\in [t_1,t_2]$ for eached fixed $t_1<0<t_2$.  When I divide both sides by $x^{2/3}$ tae integrals etc. I get $x(t)=(\frac{t}{3})^3$. I do not see the the above equivalance.


Why can I delete a 755 file when I'm not the owner?

I have this file:  $ ls -l  store.sh  -rwxr-xr-x   1 root apache    117 Feb  5  2016 store.sh  $ id uid=48(apache) gid=48(apache) groups=48(apache)   I think that I haven't the permission to edit this file but was possible delete and replace the file. How can it be? Can someone explain this behaviour?


Is there a filter or material that allows a variable amount of light through depending on intensity?

Is there a filter or material that allows a variable amount of light through based on intensity? So the brightness of highlights would be reduced, while shadows would be less, or not at all, affected. If such a filter were to exist, it would result in increased dynamic range.  I am not referring to ND filters because, if I understand correctly, they cut light uniformly across a scene. (See )  A serious problem with this idea that I did not consider earlier is that a filter made from such a material, if it does exist, would ultimately behave as an ND filter because light passes through the filter from all directions ().


Is there an optimal strategy for storing Eldritch Horror cards and tokens so that game play is facilitated.   I am not looking for answers that including "zip bags" and other things to keep the game element safer while is storage. Although, a strategy that works well for both cases will clearly be superior to one that only works for game play.  I am not limiting this to commercial solutions. I am quiet happy to build your custom made solution if you release the specification/plans of course!  Although, it it requires a 3D printer, more power to you.


13.04 desktop is incomplete - top bar disappears and no side bar

I am not sure what I am doing wrong. I followed the install steps perfectly but every time I log into my user account the desktop that appears is incomplete. The top bar disappears and there is no side bar. I can access the settings by right clicking and editing my desktop but I have no idea what to do. Can someone tell me if there is a fix for this?  I am using a dell dimension 2400


Regex or another way to match all languages characters except special characters

i want to build a regex term, which should match all language chars like an example 'ö, ç from Turkish language' and 'umlaut a = ä from German ' and for all other languages, is there a way to build this regex easily? What i did actually just match all special chars in other to exclude them. Or is there a another way to achieve this functionality?  private regexStr: string = '^[0-9!@#$%^&*(),.?":{}|<>.........goes on]+$';   thanks


Can you suggest me a comprehensive book to revise high school mathematics (up to besic calculus)? It should be extremely clear and complete and "scientific" (not like most high school books). Thank you.


Why does NTFS compression take up a lot of space?

To save some disk space I figured it might be a good idea to compress the VMware vSphere Client I have installed because I almost never use it.  I was surprised to find that it had the exact opposite effect on free disk space. I tracked it down further and found that it is related to compressing the Help folder. The loss of disk space is not reflected in the folder size.  I repeated the compress/decompress cylce three times to make sure another program did not coincidentally take up the disk space. It might be notable that the folder contains a large number of small files (≈ 30k).  Why is that so and can I somehow find other folders that I should decompress to save disk space?    Without compression:     With compression:


What is the identity of the person who gifted the Deathly Hallows to the three brothers?

Detailed in here, is the story of the three brothers, who got the   Deathly Hallows, the Elder Wand, Resurrection Stone, and the Cloak of   Invisibility.   I wonder if the Master of Death (the one who granted the Deathly Hallows to three brothers) is an actual person or the personification of the Death itself?


I am new to Java so spare me. Below you can see my code. What it should do is read the 3th column from text file and if this column is S**ei or P***ei it returns the first word in that line. However my question is "How can I make * match any character from a to z"?. I heard of regular expressions but haven't really worked with them yet. Any help would be much appreciated. Thanks.  package test;  import java.io.BufferedReader; import java.io.File; import java.io.FileReader; import java.io.IOException;  public class moja {     public static void main(String[] args) {         try {             File file = new File("SloveneLexicon.txt");             FileReader fileReader = new FileReader(file);             BufferedReader bufferedReader = new BufferedReader(fileReader);             StringBuffer stringBuffer = new StringBuffer();             String vrstica;             while ((vrstica = bufferedReader.readLine()) != null) {                  String s = vrstica;                 String[] dobi_besedo_v_vrstici = s.split("\\s+");                 String prva_beseda = dobi_besedo_v_vrstici[0];                 String tretja_beseda = dobi_besedo_v_vrstici[2];                 if (tretja_beseda =="S**ei"){                     System.out.println(prva_beseda);                     if (tretja_beseda =="P***ei")                         System.out.println(prva_beseda);                 }              }             bufferedReader.close();          } catch (IOException e) {             e.printStackTrace();         }     } }


There are many answers that are well-formed and well-formatted but are simply plain wrong or misleading. When reviewing, I often have a hard time deciding which action to take, as:   Looks Good: is OK per se but I would never say "good" (would work if the wording was changed slightly), Edit: The question is formatted well and editing it to be right would go against the intent of the author, Recommend deletion: this looks like the most reasonable choice, but I wouldn't flag it if I were browsing the site in normal mode, Not sure: I am quite sure what is wrong but I end up clicking this because the other three options do not seem fitting.   My proposal is to add a fifth option - Downvote that would make it easier to choose in case of such answers.


Why is the acceleration due to gravity at the center of the earth $0$?  My Attempt   actually at the center distance from the surface is equal to the radius so the formula $$g'=(1-\frac{d}{R})\times g$$ yields $0$.  But can anyone give me the other reason for this?


Riemann integral of characteristic function of Cantor set

Can anyone tell me how to calculate the Riemann integral of the characteristic function of the Cantor set? It's probably obvious but I don't see how to write it down. Many thanks for your help!


Topological proof on discrete topology where $X$ is infinite

How must I prove this problem? Let $X$ be an infinite set and let $T$ a topology in $X$ in which all infinite subsets of $X$ are open.   Prove: $T$ is a discrete topology in $X$.


Can double-encrypting be easier to break then either algorithm on its own?

As was pointed out in  I cannot prove this, but it seems intuitively impossible.  An encryption function is supposed to obscure the plaintext to the point where no information can be obtained about it. If the underlying encryption algorithm can even be determined, that goal has not been achieved.  Is this correct? Can double-encrypting (with either the same or separate algorithms) weaken security?


How can I use a variable as a case condition?

I am trying to use a variable consisting of different strings separated with a | as a case statement test. For example:  string="\"foo\"|\"bar\"" read choice case $choice in     $string)         echo "You chose $choice";;     *)         echo "Bad choice!";; esac   I want to be able to type foo or bar and execute the first part of the case statement. However, both foo and bar take me to the second:  $ foo.sh foo Bad choice! $ foo.sh bar Bad choice!   Using "$string" instead of $string makes no difference. Neither does using string="foo|bar".   I know I can do it this way:  case $choice in     "foo"|"bar")         echo "You chose $choice";;     *)         echo "Bad choice!";; esac   I can think of various workarounds but I would like to know if it's possible to use a variable as a case condition in bash. Is it possible and, if so, how?


How can I install and run anydesk in ubuntu 18.04.4 LTS 64 bit Ubuntu OS?

How can I install Any Desk in Ubuntu 18.04.4 LTS?  I am trying to install the anydesk in the ubuntu, so what is the terminal command to install. I try to install from the software Updates and also from the terminal but I can't get to install so, what is the best and easy way of installing the needed software.


What characters need to be escaped to be interpreted literally in a regular expression capture group?

If I want to capture a pipe character | in the capture group of a regular expression then it needs to be backslash escaped so it isn't interpreted as an alternator.  (and\|or) matches the string "and|or" (and|or) matches the strings "and" and "or"   What other characters need to be escaped inside a capture group in order to be interpreted literally? Is there a comprehensive list of these characters?


I recently found JavaScript code like this:  someFunction()()  Function immediately invoked right after function without classic IIFE syntax.   What is that kind of syntax called? And how it works?


How do you align text with SVG elements?


When $\min_{x \in X,y \in Y} f(x,y) = \min_{x \in X} \min_{y \in Y} f(x,y)$?

When $$ \min_{x \in X,y \in Y} f(x,y) = \min_{x \in X} \min_{y \in Y} f(x,y) \qquad? $$  I mean when we are minimizing a function with respect to two variables, under what conditions we are allowed to minimize over one variable and then minimize over the other one?


For example we have some AbsractClass  package inherit;  import java.util.HashSet; import java.util.Set;  /**  * TODO: Add comment  *  * @author Ruslan Ibragimov  */ public abstract class AbstractClass<T extends Integer> {      private Set<String> strings = new HashSet<>();      private T value;      public Set<String> getStrings() {         return strings;     }      public void setStrings(Set<String> strings) {         this.strings = strings;     }      public void addString(String string) {         strings.add(string);     }      public T getValue() {         return value;     }      public void setValue(T value) {         this.value = value;     } }   And some child:  package inherit;  /**  * TODO: Add comment  *  * @author Ruslan Ibragimov  */ public class InheritClass extends AbstractClass<Integer> {   }   Lets do simple test  package inherit;  /**  * TODO: Add comment  *  * @author Ruslan Ibragimov  */ public class TestClass {      public static void main(String[] args) {         TestClass testClass = new TestClass();         testClass.test(new InheritClass());     }      private AbstractClass test(AbstractClass aClass) {         for (String string : aClass.getStrings()) {             System.out.println(string);         }         return aClass;     } }   Make output:  Error:(16, 51) java: incompatible types required: java.lang.String found:    java.lang.Object for (String string : aClass.getStrings()) {   Why this happens?


Ubuntu 13.04 wifi issues (realtek 8188ce)

I have ping issues meaning that my ping is normal but I get lag spikes, ping reaching 500-600ms. I suspect there is something wrong with the drivers because on windows there is no problem. Also I have checked there are no interferences or anything else. Any idea how to troubleshoot this?  Thanks in advance, Marios


Do you get to use the additional attack from the Extra Attack feature as well when you Ready an Attack action?  One of my players, a monk, decided to Ready an action as an earth elemental was about to attack. The trigger was the elemental moving within five feet of him. When this occurred, he took his Attack action, and then proceeded to take the extra attack as well.  I was unsure at the time whether or not the extra attack would also happen, and I haven't had much luck figuring it out.


What words do you use to describe an unmatched couple?

What words do we use to describe an unmatched couple, for instance, the female is much more attractive than the male, or the other way around?   If we found that a girl is out of the league of her boyfriend (8 vs 5), or the other way around, how would we describe such a couple?


Can i hide the attachments from media which I uploaded from front end?

I have some section where user can upload CV and profile images,  I'm using the native attachment functions,  $attachment_cv_id = media_handle_upload( 'candidate_cv', 0 ); if ( ! is_wp_error( $attachment_cv_id ) ) {     // We link this file to the post      // add_post_meta( $result , 'wpcf-cv-file', wp_get_attachment_url($attachment_cv_id)); } else {     $submit_candidate_errors[] = lang("Hubo error subiendo la CV"); }   Is there any way I can hide this files from the media section in the wp-admin? ( perhaps changing its folder )  Thanks  -EDIT-  i'm trying like Dave suggested, adding a meta: 'rrhh-file'  $attachment_id = media_handle_upload( 'apply_file', 0 );  if ( ! is_wp_error( $attachment_id ) ) {     // The image was uploaded successfully!     add_post_meta($attachment_id, 'rrhh-file', true); }   And even that it has the attribute:  var_dump(get_post_meta(1200)); // last id I uploaded die();   Prints out:  array(4) {   ["_wp_attached_file"]=>   array(1) {     [0]=>     string(20) "2017/06/image001.jpg"   }   ["_wp_attachment_metadata"]=>   array(1) {     [0]=>     string(666) "a:5:{s:5:"width";i:523;s:6:"height";i:122;s:4:"file";s:20:"2017/06/image001.jpg";s:5:"sizes";a:2:{s:9:"thumbnail";a:4:{s:4:"file";s:20:"image001-150x122.jpg";s:5:"width";i:150;s:6:"height";i:122;s:9:"mime-type";s:10:"image/jpeg";}s:6:"medium";a:4:{s:4:"file";s:19:"image001-300x70.jpg";s:5:"width";i:300;s:6:"height";i:70;s:9:"mime-type";s:10:"image/jpeg";}}s:10:"image_meta";a:12:{s:8:"aperture";s:1:"0";s:6:"credit";s:0:"";s:6:"camera";s:0:"";s:7:"caption";s:0:"";s:17:"created_timestamp";s:1:"0";s:9:"copyright";s:0:"";s:12:"focal_length";s:1:"0";s:3:"iso";s:1:"0";s:13:"shutter_speed";s:1:"0";s:5:"title";s:0:"";s:11:"orientation";s:1:"1";s:8:"keywords";a:0:{}}}"   }   ["rrhh-file"]=> // <-- here   array(1) {     [0]=>     string(1) "1"   }   ["_edit_lock"]=>   array(1) {     [0]=>     string(12) "1498731595:1"   } }   With this action this attachment still shows up in the media library  add_action( 'pre_get_posts', 'wpse_hide_cv_media_list_view' ); function wpse_hide_cv_media_list_view( $query ) {     // Bail if this is not the admin area.     if ( ! is_admin() ) {         return;     }      // Bail if this is not the main query.     if ( ! $query->is_main_query() ) {         return;     }      // Only proceed if this the attachment upload screen.     $screen = get_current_screen();     if ( ! $screen || 'upload' !== $screen->id || 'attachment' !== $screen->post_type ) {         return;     }      // Modify the query.     $query->set( 'meta_query', [         [             'key'     => 'rrhh-file',             'compare' => 'NOT EXISTS',         ]     ]);      return; }   Any idea what i'm missing?


Use name instead of IP address for home network

I have IIS7 on my computer, and I can access it through other computers in my house on the same network through my computer's IP address - 192.168.1.10x  Instead of typing in http : //192.168.1.10x/ I want to be able to go to http : //somename/  I know you can change the hosts file to add it but I'd have to do that on each computer and I'd still have to type in the IP to access it from my iPod/Wii... etc.


Evaluating the power series of arctan at x=1.

I have that $\tan^{-1}(x)=\sum_{n=1}^\infty \frac{(-1)^nx^{2n+1}}{2n+1}$ for $|x|<1$  I also know that the  series $\sum_{n=1}^\infty \frac{(-1)^n}{2n+1}$ converges since it is decreasing in absolute value and alternating.   I am wondering why we can evaluate the power series at $x=1.$ Is it because the series is a uniformly convergent sum of continuous functions defined on $x\in[0,1]$, and therefore the sum function, or $\tan^{-1}$, is continuous at $x=1$?  So for a sequence of points $\{x_n\}\in[0,1]$ with $\lim_{n\to\infty} x_n=1$, we must have that $\lim_{n\to\infty} \sum_{n=1}^\infty \frac{(-1)^n(x_n)^{2n+1}}{2n+1}= \lim_{n\to\infty} \tan^{-1}(x_n)=\tan^{-1}(1)$?  General question: if you can know that a power series of continuous functions converges on some open interval, say, $(-1,1),$ but you can show the convergence at an extremity, say $x=1,$ then is it fair to say the continuous "sum function" known to converge on $(-1,1)$ is also continuous on an interval containing an extremity, like $[0,1]$? Is continuity of the function the sole reason this is possible?


Why are vote buttons on Stack Exchange shown when they can't be used?

I've often wondered why Stack Exchange has opted to keep the upvote/downvote buttons available for clicking on question/answers posted by the user. For instance:    Even though these buttons have no use for the user, why are they still placed on the post's left hand column? Moreover, the comments have no controls for flagging/+1'ing the user's own comment. What is the reason for this discrepancy? What benefit do the +1/-1 buttons provide to the user, even though they can't be used for anything?


When light reflects from a medium of lower index of reflection to a medium of higher index of refraction, why does the light undergo a phase shift?

I learned in my physics class that there is a phase shift when light reflects off a low $n$ from a higher $n$, but never got the explanation.


Phrase for focusing on unimportant details

I'm looking for an idiom or saying that I could use when people are focusing too much on small details and not seeing the big picture.  A couple that come to mind are "being penny-wise and pound foolish" and "rearranging deck chairs on the Titanic". However, the former doesn't fit what I'm thinking of because the present activity might not be wise. The latter implies too much about impending doom.  For example, let's say some company is spending all their time refining a small detail in their product, while ignoring a major opportunity shift in the industry. What phrase could I use there?


Is a small tube of Gorilla glue permitted in hand luggage on board plane?

Can I take a small tube of Gorilla Glue on board a plane in my hand luggage?


I can't get this working on macOS: unbuffer fswatch . | unbuffer xargs echo   What am I doing wrong? fswatch is like inotifywait on other systems.


How to override Save method in standard controller extension?

I am wriiting a extension on Case object. There I want to write a save method with my own logic and  want this save method should override the standard Save method.  So my code goes like below:  public class MyCaseControllerExt {      private final Case caseObj;      // get Case record from the standard controller and putting it in a member variable     public MyCaseControllerExt (ApexPages.StandardController stdController) {         this.caseObj = (Case)stdController.getRecord();     }      public override PageReference save(){         // TO DO         return null;      }  }   But, while saving the class, I am getting 1 error :     Save error: MyCaseControllerExt : Method does not override an ancestor   method: System.PageReference save()   So my question is how we will override the existing Save method in extension class?


I have a question for my exam and I find it hard to understand.  I have to prove that the following formula is logically valid:    The professor told me to "push" all the symbols inside the brackets, and use the deduction theorem.  But I don't know how to do it, because I can't find the identities to push the "exist" symbol inside the brackets.  Your help is appriciated, thank you.  Alan


I know how to calculate PCA and SVD mathematically, and I know that both can be applied to Linear Least Squares regression.  The main advantage of SVD mathematically seems to be that it can be applied to non-square matrices.  Both focus on the decomposition of the $X^\top X$ matrix. Other than the advantage of SVD mentioned, are there any additional advantages or  insights provided by using SVD over PCA?  I'm really looking for the intuition rather than any mathematical differences.


How can I find out the size of a block device, such as /dev/sda? Running ls -l gives no useful information.


I have a problem with footnote inside parcol. I'm trying to remove the black square at the end of the text of the footnote. The text is the following:  Pro angusilis\footnote{emend. \textit{angustiis}.} mortem homines quaerentes, qui nimium utique gratulantur,[...]   and here the results, what's wrong with this?    I'm using overleaf.  Edit: As you requested here the document that reproduce the problem:  \documentclass[a4paper, 12pt, oneside]{book} \usepackage[utf8]{inputenc} \usepackage[main=italian, latin]{babel} \usepackage{paracol} \usepackage[left=3.5cm, right=3cm, top=3.5cm, bottom=3cm]{geometry} \usepackage{hyperref} \usepackage[hang, flushmargin, bottom]{footmisc}  \begin{document}  \begin{paracol}{2}     \subsection*{Commento interlineare}     this is first text\footnote{this is the footnote}     \switchcolumn     \subsection*{}     this is first text \end{paracol} \end{document}


I have a flag from 12 July 2013 which is Active. Having arrived at the stage of looking around at the stuff in my Profile a little more, I noticed this yesterday. OK, I thought, no big harm, people are working on a number of "to Close" things, so let it take its (further) time before mentioning if finally necessary.  Of course, this morning I find a new answer and a new comment from the Answerer.  The level of opinion is stupendous, requiring reading history backwards. Look at the Answerer's negative-voted Answers to form an opinion of whether they'd be open to "engagement" even. Solid opinion.  Of course, TS/OP has done a runner long ago.  When reviewing the question, bear in mind that JOBLIB and STEPLIB will have appeared at some point in the development of the IBM Mainframe operating system OS/360 (which started in the early '60s at the latest). Not necessarily at the same time. Not necessarily at an early point. Probably whilst punched-cards still predominated. Etc...  So, if at all possible, can there be some votes to put it on Hold, or however that works, please?  Here's the Q:   Forgot the image: Replaced by House-Style Image below.  Does it need the red circle?


A car traveling at 50km/h will move 44 extra meters from the moment its brakes are applied fully. If the same car travels 100 km/h on the same road, how far will it move from the instant its brakes are fully applied?   I somehow guessed the answer and got it right (176 m) since it was in the Kinetic Energy quiz.  But I'm wondering how are Kinetic Energy and distance are related? And not something like 88m?


I study physics and in this year I have to formule and write my bachelor thesis. I have a lot of ideas but some of them looks more interesting for me.   A few days ago I thought about situations in physics where Riemman Integral is not sufficient and my idea is to write about parts of physics in which Lebesgue Integral is needed. Unfortunately, in my courses during my studies, no one shows me situations in physics where Riemman integral is not enough so I ask you, Maybe someone of you knows examples in physics where Lebesgue Integral is essential ? After reading about Lebesgue integral, I tried to find informations about measure theory in physics but I didn't find nothing interesting.


I'm running into a rather confusing issue with server certificate verifications. When running apt update I get the following error:  W: Failed to fetch https://deb.nodesource.com/node_6.x/dists/trusty/main/binary-amd64/Packages  server certificate verification failed. CAfile: none CRLfile: none W: Failed to fetch https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/dists/trusty/main/source/Sources  server certificate verification failed. CAfile: none CRLfile: none   And also when I try to clone a Git repository, I get: fatal: unable to access 'https://github.com/certbot/certbot/': server certificate verification failed. CAfile: none CRLfile: none  The operating system is Ubuntu 14.04.5 LTS.   I tried reinstalling the ca-certificates and adding extra certificates from other sources and updating the certificates by running update-ca-certificates.   This problem just happened to spontaneously appear from all I could tell.  Hopefully somebody can help me out with this. Thanks!


./configure not working when installing python 3.6.1

I installed python 3.6.1 from python.org and extracted the file. Then I did:    cd Desktop cd Python-3.6.1 ./configure   But then I got an error:   ./configure: line 2328 config.log: Permission denied ./configure: line 2338 config.log: Permission denied   What can I do to fix this?


Find My iPhone shows device as 'Offline'

My mom tried to track my iPhone 5 using Find My iPhone. My location services were turned on and everything was working properly. Then it said between a certain time that my iPhone was 'offline'. She thinks I manually went and turned it off, making me appear to be offline but I did not do this. It is the second time this has happened since I got the app last year. I need to know why this is happening so that I can explain to her I am not doing it.


Plot $|z - i| + |z + i| = 16$ on the complex plane   Conceptually I can see what is going on. I am going to be drawing the set of points who's combine distance between $i$ and $-i = 16$, which will form an ellipse. I was having trouble getting the equation of the ellipse algebraically.  I get to the point:  $x^2 + (y - 1) ^2 + 2\sqrt{x^2 + (y - 1)^2}\sqrt{x^2 + (y + 1)^2} + x^2 + (y+ 1)^2 = 256$  $2x^2 + 2y^2 + 2\sqrt{x^2 + (y - 1)^2}\sqrt{x^2 + (y + 1)^2} = 254$  It seems like I'm and doing something the hard way.


Is there anyway to make Ubuntu remember my ssh key passphrase?

Everytime I try to login on a remote server via SSH or try git pull/push on a git repository I get the prompt:  Enter passphrase for key '/home/th0th/.ssh/id_rsa':   I want to add my key to the keyring and I want the keyring to be unlocked when I login without being asked for passphrase (I think this was the default behaviour on gnome-shell on Arch Linux). I tried adding my key using seahorse but even my key is visible under Gnome2 Key Storage category in seahorse I get prompted for my passphrase on terminal. Is this a bug or am I missing a step here?  EDIT: Preventing seahorse from prompting for password is another issue. My problem is that, SSH key passphrases are not remembered by gnome keyring.  I am on 15.04 BTW.


Ubuntu Software doesn't open in Ubuntu 20.04

If i click on Ubuntu Software, it doesn't open. I have a fresh install of Ubuntu 20.04. I tried try to upgrade all packages, but it doesn't fix this problem.  If I try to run killall software-center there is no process with this name, and software-center returns command not found. If I try to reinstall it with apt I have these results:  $ sudo apt-get --purge --reinstall install software-center Reading package lists... Done Building dependency tree        Reading state information... Done Package oracle-java8-installer is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'software-center' has no installation candidate


Why my volume nodes not working in blender?

I tried experimenting with volume nodes in blender but none of then seem to work. Every node just produces a rough volume cube. This includes for every type of volume node like Principled Volume, Volume Scatter etc.


How do I integrate the following function? $$\int_0^\frac{\pi}{4}\ln(\tan^2 x+1) \; dx$$


finding a generating function of a gambler question

Suppose a gambler starts with one dollar and plays a game in which he or she wins one dollar with probability $p$ and loses one dollar with probability $1 - p$. Let $f_{n}$ be the probability that he or she first becomes broke at time $n$ for $n = 0, 1, 2\ldots$. Find a generating function for these probabilities.  Is it binomial distribution $?$ and then use the $\operatorname{mx}\left(s\right) = rx\left(\mathrm{e}^{s}\right)$ of the binomial distribution $?$. Help$\ldots!$. I am correcting my quiz.


I have been told that we have two devices on a network:  10.40.225.142 and 10.40.225.144  These devices both have   Gateway 10.40.225.129  Subnet mask 225.225.225.128 (note 225 is Not a typo)   These are communication intermittently with a server 10.40.224.156  So my question is: Is that a valid subnet? I have only ever seen 255 or 0 in the first one - three octets.


I'm trying to start a number of threads at the same time but it is not working. Heres my code:           var previous = 0;          var threadList = new List<Thread> {};         for (var i = (int)partSize; i <= responseLength; i = i + (int)partSize)         {             var t = new Thread(() => Download(URL, previous, i));             //t.Name = i.ToString();             threadList.Add(t);             //t.Start();             //t.Join(300);             //new Thread(() => {Download(URL,previous, i);}).Start();             //var t = Task.Factory.StartNew(() => Download(URL, previous, i));              previous = i;         }          foreach (Thread t in threadList)         {             //Console.WriteLine(t.Name);             t.Start();         }   OUTPUT:  77296,86958 77296,86958 77296,86958 77296,86958 77296,86958 77296,86958 77296,86958 77296,86958   After displaying this for a while, it hangs up and eventually crashes.   Expected output with different code:          for (var i = (int)partSize; i <= responseLength; i = i + (int)partSize)         {             var copy = previous;             var t = new Thread(() => Download(URL, copy, i));             t.Start();             t.Join();              previous = i;         }   OUTPUT:  0,9662 9662,19324 19324,28986 28986,38648 38648,48310 48310,57972 57972,67634 67634,77296   As for the output the first number indicates where to start downloading a piece of a file and the second number indicates where to finish (in bytes) How can I start every thread in the list, with the parameters I am assigning to it? I am lost, so any help would be awesome. Thanks!


Trying to do a bibtex, however in the document it is showing as [?]  in my bibfile.bib I have  @Misc{PaymentCardIndustry, howpublished = {\url{https://www.pcisecuritystandards.org/documents/PCI_DSS_v3-1.pdf/}}, note = {Accessed September 25, 2015}, title = {Payment Card Industry Data Security Standard}, author = {Payment Card Industry} }   In my packages I have  \usepackage{cite}  and I cite the reference as  \cite{PaymentCardIndustry}


What is the modern and safe way to write destructor for class that contains member struct?

I am still learning C++ and still not very proficient.  Say, I have a class like this?  class Parent { public: // Destructor ~Parent() noexcept;  private: struct Child {    Child* other; };  Child* firstCell; Child* lastCell;  };   What is the proper, modern, and safe way to write a destructor?  Is it just delete Child::other? or, delete Child->other?


creating variable using variable value as part of new variable name

I'm trying to create a new variable using the value of an existing variable as part of the variable name.  filemsg"$word1"=" "   I've also tried   filemsg$word1=" "  filemsg${word1}=" "   on all attempts I get the following when that line executes,  cicserrors.sh[45]: filemsgCICS= : not found [No such file or directory]


Iterating over a collection in Java (for a C++ programmer)

I am attempting to write code to traverse a collection of type InstallationComponentSetup:  java.util.Collection<InstallationComponentSetup> components= context.getInstallationComponents(); Iterator it = components.iterator(); while (it.hasNext()) {     if (((InstallationComponentSetup)it).getName() == "ACQ")     {          return true;        } }   The cast in the if-statement fails, but I don't really know why (I am a C++ programmer!).  If someone could give me some pointers as to what I am doing wrong I would be grateful.


Modifying global variable from onActivityResult() crashes app

I'm trying to allow the user to choose images, and then retain a list of paths to those images for later use.  public class NewEntry extends AppCompatActivity {      private Button selectPhotosButton;     private ImageView imagePreview;     private List<String> imagePaths;      @Override     protected void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         setContentView(R.layout.activity_new_entry);          imagePreview = findViewById(R.id.imagePreview);         selectPhotosButton = findViewById(R.id.selectPhotosButton);          // Select photo button listener         selectPhotosButton.setOnClickListener(new View.OnClickListener() {             @Override             public void onClick(View view) {                 Intent intent = new Intent();                 intent.setType("image/*");                 intent.putExtra(Intent.EXTRA_ALLOW_MULTIPLE, true);                 intent.setAction(Intent.ACTION_GET_CONTENT);                 //startActivityForResult(Intent.createChooser(intent, "Select Photos"), PICK_IMAGE_MULTIPLE);                 startActivityForResult(intent, 1);             }         });     }      @Override     protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {         super.onActivityResult(requestCode, resultCode, data);         if (requestCode == 1 && resultCode == RESULT_OK) {             final List<Bitmap> bitmaps = new ArrayList<>();             ClipData clipData = data.getClipData();             if (clipData != null) {                 for(int i = 0; i < clipData.getItemCount(); i++){                     Uri imageUri = clipData.getItemAt(i).getUri();             imagePaths.add(imageUri.toString());                      try {                         InputStream is = getContentResolver().openInputStream(imageUri);                         Bitmap bitmap = BitmapFactory.decodeStream(is);                         bitmaps.add(bitmap);                     } catch (FileNotFoundException e) {                         e.printStackTrace();                     }                 }              } else {                 // Only one image                 Uri imageUri = data.getData();                 imagePaths.add(imageUri.toString());                  try {                     InputStream is = getContentResolver().openInputStream(imageUri);                     Bitmap bitmap = BitmapFactory.decodeStream(is);                     bitmaps.add(bitmap);                 } catch (FileNotFoundException e) {                     e.printStackTrace();                 }             }              new Thread(new Runnable(){                  @Override                 public void run() {                     for(final Bitmap b : bitmaps){                         runOnUiThread(new Runnable() {                             @Override                             public void run() {                                 imagePreview.setImageBitmap(b);                             }                         });                         try {                             Thread.sleep(3000);                         } catch (InterruptedException e) {                             e.printStackTrace();                         }                     }                 }             }).start();          }     }  }   However when I try to add the image paths to the imagePaths list object from OnActivityResult it causes the app to crash after clicking the Choose Photos button. How can I retain the list of imagePaths? I need them to store in an SQLite database.


How to change hair color along length of strand?

At some point (not right away), I'll be wanting to make a character model which has multicolor hair.  Namely, it will be one color closer to the roots, and another color closer to the tips.  Is there any way to do this in blender?  I would be using Cycles for this.


Is there a general way to find or get notified of relevant conferences and meetings in your field?

Here's the problem: I don't know what are the relevant conferences and meetings for me to potentially attend/present in. Every conference I've been so far has been passed down to me by a much older professor who knows it by experience.  I feel like this is an important topic, and yet all the tools I tried to use to find conferences (such as  and ) fail to find me relevant things.  Is there a method to reliably find relevant for you conferences worldwide? Ideally it would be good to get notified when a new relevant conference is announced.  I know there are some websites (such as  and ) that suggest papers for you to read based on previously loaded papers, so I wouldn't be surprised if there was some similar tool where you put some conferences with a few keywords and it spits out suggestions.  Cheers


For what value of m that the equation $y^2 = x^3 + m$ has no integral solutions?

For what value of m does equation $y^2 = x^3 + m$ has no integral solutions?


Why is the tangent of an angle called that?

I am teaching the foundations of trig and find it a bit weird that tangent is called that.  I've never questioned it before, but what I keep finding online is the phrase 'tangent of an angle'.  Is anyone able to explain, maybe using some visual intuition, why we call it the tangent of an angle? Especially in the context of the unit circle.  Does it relate to the definition of a tangent to a curve?


I try to make a table with siunitx column type in a beamer document with overlay. Here is a minimal non working example :  \documentclass{beamer} \usepackage{array,tikz}  \usepackage[%     locale=FR,%     detect-all,%     table-number-alignment = center-decimal-marker,     inter-unit-product = \ensuremath{{}\cdot{}},     group-minimum-digits=4]{siunitx} % \num{} ...  \begin{document}  \begin{frame}  \begin{tabular}{S} 3.25 \\ \visible<2->{50.2337} \\ \end{tabular}  \end{frame}  \end{document}   Produces this error message :  ! Extra }, or forgotten $. <recently read> }  l.20 \end{frame}   with the next correction :  \begin{tabular}{S} 3.25 \\ {\visible<2->{50.2337}} \\ \end{tabular}   No error message, but the result is not the one expected.


I'm new to Python. I see : used in list indices especially when it's associated with function calls.   Python 2.7 documentation suggests that lists.append translates to a[len(a):] = [x]. Why does one need to suffix len(a) with a colon?  I understand that : is used to identify keys in dictionary.


Why $(apparently)$ is the rotation of Earth not congruent/similar to Uniform Circular Motion?

Okay, so this may seem a very "simple" question. I quote few lines from :  "We can’t feel Earth’s rotation or spin because we’re all moving with it, at the same constant speed." "Why don’t we feel Earth rotating, or spinning, on its axis? It’s because Earth spins steadily – and moves at a constant rate in orbit around the sun – carrying you as a passenger right along with it."  Okay, I get the fact that the ground, the atmosphere and all the "things" on Earth are moving at the same rate. It is almost like we are travelling in a train or an airplane, where we can walk normally as if on the ground, without feeling anything unusual. But, my "Physics" intuition seems to contradict this explanation. This is how I view this problem : We dwell on the ground and move with the Earth, very much like in a "$2$-D Circular Motion", with the radius of the Earth as the radius of the "circle". But the velocity changes every instant as its direction (which is tangent to the circle at the given point) changes constantly. The velocity is changing --- So there must be some acceleration , as Uniform Circular Motion is always an accelerated motion. So, I see that there is "some acceleration". According to Newton's Equation $F_{\text{net}}=m.a$, we must be experiencing some Force, which is required to provide the necessary Centripetal Acceleration$(=\dfrac{v^2}{r})$. So, in short, I state my Problem as:  When we ride a Merry-Go-Round, we feel a "certain" force pushing on us, acting radially away from the centre. Why don't we feel the same "certain" force in case of Rotation of Earth?  EDIT : Can anyone please remove that "Duplicate" mark ? My question is not specifically about "Why don't we feel the Earth's rotation ?". It is rather about "Why (apparently) is Earth's Rotation not congruent/similar to some normal Uniform Circular Motion (as in a Merry-Go-Round) ?". Surely, I will re-word the question to be more specific.


I need to determine if an object already exists in an array in javascript.  eg (dummycode):  var carBrands = [];  var car1 = {name:'ford'}; var car2 = {name:'lexus'}; var car3 = {name:'maserati'}; var car4 = {name:'ford'};  carBrands.push(car1); carBrands.push(car2); carBrands.push(car3); carBrands.push(car4);   now the "carBrands" array contains all instances.  I'm now looking a fast solution to check if an instance of car1, car2, car3 or car4 is already in the carBrands array.  eg:  var contains =  carBrands.Contains(car1); //<--- returns bool.   car1 and car4 contain the same data but are different instances they should be     tested as not equal.  Do I have add something like a hash to the objects on creation? Or is there a faster way to do this in Javascript.  I am looking for the fastest solution here, if dirty, so it has to be ;) In my app it has to deal with around 10000 instances.  no jquery


Android Live Wallpaer crashed（NullPointerException, canvas is a null object）but I cannot find where

04-14 12:04:30.971 1639-1938/system_process I/WindowManager: Destroying surface Surface(name=Media:com.android.wallpaper.livepicker/com.android.wallpaper.livepicker.LiveWallpaperChange) called by com.android.server.wm.WindowStateAnimator.destroySurface:2014 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:881 com.android.server.wm.WindowState.removeLocked:1449 com.android.server.wm.WindowManagerService.removeWindowInnerLocked:2478 com.android.server.wm.WindowManagerService.removeWindowLocked:2436 com.android.server.wm.WindowManagerService.removeWindowLocked:2305 com.android.server.wm.WindowManagerService.removeWindow:2300 com.android.server.wm.Session.remove:193  04-14 12:04:30.990 3852-3852/tianranwang.livewallpaper D/MainService: dispose 04-14 12:04:31.018 1639-1990/system_process I/WindowManager: Destroying surface Surface(name=tianranwang.livewallpaper.MainService) called by com.android.server.wm.WindowStateAnimator.destroySurface:2014 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:881 com.android.server.wm.WindowState.removeLocked:1449 com.android.server.wm.WindowManagerService.removeWindowInnerLocked:2478 com.android.server.wm.WindowManagerService.removeWindowLocked:2436 com.android.server.wm.WindowManagerService.removeWindowLocked:2305 com.android.server.wm.WindowManagerService.removeWindow:2300 com.android.server.wm.Session.remove:193             --------- beginning of crash 04-14 12:04:31.020 3852-4240/tianranwang.livewallpaper E/AndroidRuntime: FATAL EXCEPTION: Animation Thread           Process: tianranwang.livewallpaper, PID: 3852           java.lang.NullPointerException: Attempt to invoke interface method 'void android.view.SurfaceHolder.unlockCanvasAndPost(android.graphics.Canvas)' on a null object reference               at processing.a2d.PGraphicsAndroid2D.endDraw(Unknown Source)               at processing.core.PApplet.handleDraw(Unknown Source)               at processing.core.PSurfaceNone.callDraw(Unknown Source)               at processing.core.PSurfaceNone$AnimationThread.run(Unknown Source)   On the interface “set wallpaper”, I rotated the screen and the sketch(drawing the live wallpaper) restarted, and the app crashed(not always crashed), and the sketch(live wallpaper) kept running on the background..  Could some one give me a hint? Thanks in advance.    The source code ,that i have found in processing.a2d.PGraphicsAndroid2D.endDraw()  from     public void endDraw() {     if (bitmap == null) return;      // hm, mark pixels as changed, because this will instantly do a full     // copy of all the pixels to the surface.. so that's kind of a mess.     //updatePixels();  //    if (primaryGraphics) { //      if (canvas != null) { //        parent.getSurfaceHolder().unlockCanvasAndPost(canvas); //      } //    }      if (primaryGraphics) {       SurfaceHolder holder = parent.getSurface().getSurfaceHolder();       if (holder != null) {         Canvas screen = null;         try {           screen = holder.lockCanvas(null);           if (screen != null) {             screen.drawBitmap(bitmap, new Matrix(), null);           }         } finally {           if (screen != null) {             try {               holder.unlockCanvasAndPost(screen);             } catch (IllegalStateException ex) {             }           }         }       }      } else {       // TODO this is probably overkill for most tasks...       loadPixels();     }      // Marking as modified, and then calling updatePixels() in     // the super class, which just sets the mx1, my1, mx2, my2     // coordinates of the modified area. This avoids doing the     // full copy of the pixels to the surface in this.updatePixels().     setModified();     super.updatePixels();   }   The code above may cause this NullPointerException.    I dont have this problem now, because i update the new version of processing library..And the code above is from the new version of the lib. (I cannot see the code from old version)


What allows us to distinguish between two different voices even if they're singing the same note?

I love Freddie Mercury. I love Robert plant. I once heard Robert Plant sing a Freddie Mercury song at a tribute concert. Plant sang the song beautifully, but it was obvious that the song was different from the original -- it was obvious that Freddie Mercury was not singing the song.  From what I understand, sound can be described as a sinusoidal wave. Now, based on the assumption that both singers can hit the exact same pitch with the exact same intensity, what other parameter can we modify in a sinusoidal wave that would allow us to distinguish between the two voices?


Prove inequality $\sum_{k=1}^{n}\frac{a_kb_k}{a_k+b_k}\le \frac{AB}{A+B}$


Charge is relativistic invariant. What does it mean?

Yesterday my teacher stated this statement that charge is relativistic invariant But he didn't explained this statement. So can anyone explain me this statement?


Finding an Inverse Function and Composition of Functions? I add for all y ∈ R

The functions of each pair are inverse to each other. For each pair, check that both compositions give the identity function.  $F: \mathbb{R} \to \mathbb{R}$ and $F^{−1}:\mathbb{R} \to \mathbb{R}$ are defined by $F(x)=3x+2$ and $F^{−1}(y)=\dfrac{y−2}{3}$, for all $y \in \Bbb{R}.$  My attempt:     Inverse Function  For each particular but arbitrarily chosen $y \in \mathbb{R}$, according to the definition of $f^{-1}$, $f^{-1}(y) = \dfrac{y-2}{3}$ is a unique real number $x$ such that $f(x) = y$. \begin{align*} F(x) & = y\\ 3x + 2 & = y\\ x & = \frac{y-2}{3} \end{align*} Therefore, $f^{-1}(y) = \frac{y-2}{3}$.  Compositions of Functions.   The functions $g \circ f$ and $f \circ g$ are defined as follows: $$(g \circ f)(x) = g(f(x)) = g(3x + 2) = 3x + 2$$  for all $x \in \mathbb{Z}$.


I've always been able to allocate 1400 megabytes for Java SE running on 32-bit Windows XP (Java 1.4, 1.5 and 1.6).  java -Xmx1400m ...   Today I tried the same option on a new Windows XP machine using Java 1.5_16 and 1.6.0_07 and got the error:  Error occurred during initialization of VM Could not reserve enough space for object heap Could not create the Java virtual machine.   Through trial and error it seems 1200 megabytes is the most I can allocate on this machine.  Any ideas why one machine would allow 1400 and another only 1200?  Edit: The machine has 4GB of RAM with about 3.5GB that Windows can recognize.


How have Superman comics dealt with the Man of Steel, Woman of Kleenex problem?

When I was a teen and Superman II came out, when Superman realized he and Lois were in love, he de-supered himself in the Fortress of Solitude so he could be with Lois.  Right after he emerged from the crystal cage that drained his powers, the first thing he does is take Lois' hand and escort her to a conveniently placed bed that we had never seen there before.  This implies it was necessary for him to lose his powers so he could have sex with Lois.  The problems involved in this situation are well covered in the wonderful essay by Larry Niven, .  But I also know that Superman has been in the comics for decades.  A friend of mine once said, "Oh, he tells her who he is a lot, but he always makes her forget it again later."  So how have the comic books (since this is Superman's primary medium) handled this?  Were there different ways it was handled, or was it always handled the same way?  Have they literally kept Superman and Lois from having sex for decades?  Or have there been times when they've ended up in bed together?  How do they deal with the issues of the Man of Steel having sex with, and not killing, a woman of Kleenex?


In the US, when people work together, they may look for a colleague or any person to say something or for any other reason, asking colleagues or other people this type of question:         Have you seen Michael?   (OR)        Did you see Michael?          Which is considered right if the question refers to an activity (in our case "see") during the day and not in the past in general?


Can a multitarget spell with a range of "Touch" be delivered by both a familiar and the caster simultaneously?

I'm a level 5 warlock with Pact of the Chain, so I can cast invisibility with a level 3 slot, and cause 2 creatures to become invisible.  Can I use my familiar to deliver invisibility to both someone who isn't in my range (e.g. 80 feet away from me) and myself with 1 casting?


Why is the plural of 'leaf' spelled 'leaves'?

I am a bit confused about why the plural of leaf is leaves. Can anyone explain why leaves is the plural form?


Invoice Notice amount in the subject of the Visualforce email template is not displaying the second decimal

<messaging:emailTemplate subject="{!relatedTo.Invoice__r.Account__r.Name} -                                 Invoice notice -                                  ${relatedTo.Invoice__r.Invoice_Balance__c} -                                  Due {!relatedTo.Invoice__r.Due_Date__c}"                         recipientType="Contact"                         relatedToType="Invoice_Comment__c"> <messaging:plainTextEmailBody >   I'm getting the following  (not getting the second decimal in the currency field)  Dell - Invoice notice - $28123.0 - Due 03/26/2016  Any suggestion to get the 2nd zero.  Thanks in advance


Which .las classification codes and returns to use when creating DTM and DSM?

I am trying to figure out what classification codes and returns that I should use to create DTM and DSM?  In my layer --> "BrooksCamp.lasd" I have these classification codes and returns:      (and then 26 to 31 reserved)  I am using the LAS Dataset to Raster tool.


Is Middle Earth supposed to be a pre-historic England?

I understand that Arda is supposed to be set somewhere in a sort of vaguely ancient Earth, but does that mean that Middle Earth is supposed to take place in the area that eventually becomes modern-day England? I read that J.R.R Tolkien wrote LOTR because he wanted to create a mythology for the English, as they didn't really have one before.


How to show that $f$ is a zero function?

$f$ is a continuous real valued function on $[a,b]$ and also differentiable on $(a,b)$ such that $f(a)=0$. If there exists $k\geq 0$ such that $|f'(x)|\leq k|f(x)|$ for all $x \in (a,b)$ then show that $f(x)=0$ for all $x \in [a,b]$.   If i show that $f$ is constant function on $[a,b]$ then it will be done. But according to given condition I think Lagrange's MVT is required, but how to apply?


Thoughts on Building a Blender-Oriented PC

The rendering time on my laptop is starting to become absurd in order to get a decent looking scene. I am looking at building a pc that is well suited for blender. What components are the most important? Most of my projects are rendered using cycles, so a Nvidia graphics card is a must plus lots of ram. But I want some more information, like what cpu (Amd?)? What graphics cards would you recommend? If you have the time could you list a couple different builds such as premium, budget, ect.?  I know that there are other ways of lowering the rendering time (i.e. better poly management), but I have been looking to build my own rig for a while.   Thanks Guys!


I am running Ubuntu GNOME 15.04 and I find Cheese very basic, are there any alternatives (I have already read this , however that is only really on video recording, and I would like a balance)?  Specifically, I would like an application which can:   Record from the webcam Take pictures Record audio Take screencasts (audio recording included in that as well)   Is there a program that can do all this?


a question about work needed to move a charge towards another one

Consider two charges $q_1>0$ &  $q_2>0$ separated by  a distance $d_1$, and we want to move charge $q_2$ to a distance $d_2$ from $d_1$ where $d_1-d_2>0$.  I need to calculate the work needed to do that, so I used the formula: $$dw=\vec{F}\cdot \vec{dx}$$  which implies that $dw=F\cdot dx$ since the two vectors have same sense (suppose that $q_1$ is to the leftand $q_2$ is to the right and that $q_1$ is fixed while $q_2$ is movable along the horizontal line joining the two point charges).Our teacher put that $F=q_1 \cdot q_2 \over 4 \pi\epsilon x^2 $ and then he made the integral from $x=d_1$ to $x=d_2-d_1$.  My question (which is confusing me alot) is why did we substitute this $F$ by $q_1 \cdot q_2 \over 4 \pi\epsilon x^2$? Shouldn't this $F$ be substituted by another value which mu


Allowing only A-Z/0-9 to avoid SQL injection

It's possible avoid totally SQL injection allowing ONLY A-Z/0-9 in GET or POST parameter?   if(preg_match("/^[a-zA-Z0-9]+$/", $_GET['myVal']) == 1) {     $myValue = $_GET['myVal']; } else {     die(); }   It's a good practice? It's possible defeat this way? Thanks


I'm planning to buy a new camera along with lens. I have 2 options   Nikon AF-P DX Nikkor 18-55mm F3.5-5.6G VR and Nikon AF-P DX Nikkor 70-300mm F4.5-6.3G Nikon AF-S DX Nikkor 18-140mm f/3.5-5.6G ED VR   Which option would be better??  Camera- Canon D7200, Usage - Personal photography.


I have Xubuntu 16.04 LTS installed:  # lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description:    Ubuntu 16.04.5 LTS Release:    16.04 Codename:   xenial   And I thought by now that the LTS upgrade to 18.04.01 would be possible, due to , however:  # do-release-upgrade Checking for a new Ubuntu release No new release found.   Is there a delay in releasing 18.04 LTS through the do-release-upgrade route?


Can Mystique become the Hulk if she shapeshifts into Bruce Banner?

I know that she can't acquire another mutant's powers by becoming them, but what about someone like Bruce Banner? . Banner's "power" is practically an infection or a virus. So could Mystique become Banner, then get angry to become the Hulk? Using the version of her that can change her mass.  Or you can think about it like this: If Bruce Banner gets mad, and starts becoming the Hulk, at what point in the transformation would Mystique no longer be able to become the Hulk/Banner? Sometimes the transformation takes a while if he's fighting it.    Note: I don't see how this is duplicate to  as I am ignoring that question by assuming that she can change mass and asking another question on top of it. If you read the old version of the post I had the same thing about using the version of her that can change mass, it was just not bold.


Sorry for the vague nature of the question. I would like to have a service (on a server(windows)) broadcast itself as a printer, or listen for connections on a TCP port. I would then like to be able to 'add' my service as a printer to client machines. When client machines print to my service, I would like to read the data, then send an email with its contents out to myself. Then send a message back to the client saying 'print successful'.  So what advice do you have, and/or what terms would I google to get started?  thanks!  [update] here is a SO link:   the answer from Douglas Anderson was intriguing, but is it really plausible?     You could simply have your app expose itself like an LPD type printer   or  monitor port 9100. You could then install any print driver you   like, and point it a your app.   [update2]  I've setup a printer on my local machine using LDP on port 55555 with the Generic / Text Only driver provided by Windows. Lets assume I have a TCP service listening on that port running. lets assume i successfully retrieve the data package from the printer.  How do I extract normal ascii text from the data package, and then let the sending device know that the print job was successful?


How to remove the directory a symbolic link links to plus the symbolic link?

Say a is a symbolic link to b. I am looking for a simple command to remove both a and b at once that does not require me to know about b.


How to fix face smooth after using Boolean modifier?

I am new to Blender and am struggling to fix a problem with face smooth after I cut a hole through the object using the Boolean modifier.  The image shows the problem, and I tried using the triangulate shortcut, tried the edit normal modifier, tried subdivision modifier, but could not fix it.  Could anyone here help me with this?


The Wiki page on  says     The pair $(m, m+2)$ is twin prime, iff $4((m-1)! + 1) \equiv -m \pmod {m(m+2)}$.   This is obviously connected to Wilson's Theorem. Can anybody provide a proof for that, along the lines of thought given here, ?


Are there known practical attacks on RC4-dropN?

RC4 is known to leak information about the first few bytes of the ciphertext due to keystream biases.  However, are there known attacks on RC4-drop[N] where N is large enough, that leak information about the plaintext?  Edit: I am NOT planning on using this in actual software (I would use ChaCha20, Salsa20, or XSalsa20 instead, which are far more secure and just as fast), but rather interested as a matter of curiosity.


Remap broken "Tab" key to a function key on MacOs Sierra

I need to remap the tab key to a function key, as the Tab is broken. I've looked at , but it doesn't work on Sierra


"" are used in interrogation rooms etc. The wikipedia article states that:     A true one way mirror does not, and cannot, exist. Light always   passes exactly equally in both directions. However, when one side is   brightly lit and the other kept dark, the darker side becomes   difficult to see from the brightly lit side because it is masked by   the much brighter reflection of the lit side.   Which I think I understand.  What I find strange is that this surely can't be any deep principle of physics, as it's easily "violated"; you could just place a camera on one side and a TV on the other side, and it would be perfectly "see-through" from one side but not the other.  Couldn't you imagine a sort of microscopic version of the above "violation"?


Xcode on Mac App Store requires additional storage even though I have more than enough?

As you can see, when I try to install Xcode 9.0.1, I'm shown an error that says I need an additional 5.6 GB of free space on my drive, yet I have 10.98 GB available, and the App Store lists Xcode as only requiring 5.46 GB of space.  So why can't I download it?


I was given the following problem to integrate: $$\int\cos^4x\sin^2x\ dx$$I am trying to integrate it using the double-angle identity, but I keep getting stuck. Here are my steps so far (numbered to make it clearer):  \begin{align} I&=\int\cos^4x\sin^2x\ dx \tag1 \\&=\int\left(\frac{1+\cos(2x)}{2}\right)^2\left(\frac{1-\cos(2x)}{2}\right)\ dx \tag2 \\&=\int\frac{(1+\cos(2x))(1-\cos^2(2x))}{8}\ dx \tag3 \\&=\int\frac{\left(1+\cos(2x)\right)\left(1-\frac{1+\cos(4x)}{2}\right)}{8}\ dx \tag4 \\&=\int\frac{(1+\cos(2x))(1-\cos(4x)}{16}\ dx \tag5 \\&=\int\frac{1-\cos^2(4x)}{16}\ dx \tag6 \end{align}  I would keep going and apply the double-angle identity to that last step, but something seems off to me. Is this the right track or am I missing something here? Is there a more efficient way to do this?


I noticed that the score of answers and questions, together with the "favorite question" star, that used to be on the left margin, is now shown on the top of each post. May I say that I can't see the advantage of this change? On the other hand, occupying the space between posts makes it more difficult to read more of them on the same screen. And requires more paper, in case one needs to print them. So why changing?


How to use a wildcard in the classpath to add multiple jars?

I have been using so many 3rd party libraries(jar files) that my CLASSPATH is completely messed up as i have to include the path for every single jar file that i use.  I've been wondering if there is a way to include all the jar files in a folder using wildcard(*) operator (like *.jar). But it seems to be not working. Is there any other way that can shorten the CLASSPATH that currently looks like an essay ;) on my PC?.


Although I hesitate to ask this question, I see it as necessary to promote common proper word usage. I certainly never want to appear arrogant or offend anyone, but I have noticed that there is one word that is commonly misused, primarily in metropolitan areas. Why must people “axe” for or about something? When I first arrived in the city, a new acquaintance, who is my now dearest friend, said that she had to “axe me a question.” Fortunately, before I panicked she quickly continued to “axe” me what I planned to have for dinner that night. For several years I have heard “axe” incorrectly repeated in this context, and I sincerely wish to simply correct those who are using it improperly. However, I have heard and seen angry confrontations when someone insists that when one is ‘axing a question”, they might try instead to “ask a question.”  Even the mildest of attempts to persuade them of their improper use of the verb "axe” in the present tense is typically ignored if not met with outright contempt. Every time I now hear the word misused, it becomes more wrenching.  I work as an editor, so every day I refine the words of people who are renowned in their areas of expertise but who cannot properly enter words into a document. Together we work as a team to submit properly worded bids on multi-million-dollar contracts. Does anyone have a gentle, but effective way to correct this error that I seem to hear so frequently?


The concept of stackoverflow is nice. It is great Q&A site on programming where anyone can answer. The main problem I see is that certain questions are looking for subjective answers and are being accepted while others are not.  For example, why would this  be better than this ? One is still open and has nothing to do with programming while the other does and both are classified has being subjective.  In a sense, can a question really have objective answers? I believe that there can be a best possible subjective answer for a question.  If I have this particular problem and someone answers a solution A, another with solution B and so on.. which is better? The community answers that by voting on the solution that it believes it is best for the problem. In a way this is subjective.  One last note, is there a stackoverflow affiliated site that is there for the sole purpose of asking and answering subjectively to programming related questions? If not could there be a need for such a site?  In a way, having a subjective stackoverflow would probably help improving the quality of stackoverflow by having only clear questions with specific answer but that is just my opinion.    With what I understand with the answers below, a question can be subjective as long as it can have really specific answers...


How I can capture the click of a button dynamically created? JQuery

I have two buttons on a form. Both the buttons and the form are created dynamically:        container.html(........                      ........                      <input type='button' value='Send' id='btSend' />"+                     "       <input type='button' value='Save' id='btSave' />"+                      ................                      ...............)   And here the two functions should collect keystrokes:         $("#btSend").click(function(){         ..........         ............         }          $("#btSave").click(function(){         ..........         ............         }


Difference between "are you done" and "have you done."

I was just wondering, how can we differentiate "are you done?" and "have you done?", and what is the appropriate way to use each?


When did members of the Justice League pull the Earth with Wonder Woman's lasso?

I saw a page where the Justice League members are trying to move the earth away from its orbit using Wonder Woman's lasso.  Which comic is this from?


Flagging post that has multiple questions?

I was editing some posts and I came across , it has 5 questions in total. My Question is, What flag should I use on posts with multiple questions? Or should I flag at all?


Given this question $$\lim_{x\to{\infty}} (x-\sqrt{x^2+x})$$  Find the limit  Work so far...:  $$\lim_{x\to{\infty}} \frac{x^2-x^2-x}{x+\sqrt{x^2+x}}$$  $$\lim_{x\to{\infty}} \frac{-x}{x+\sqrt{x^2+x}} $$  Would the easiest way to proceed to be dividing bottom and top by $x$?  If so then is this attempt correct?:  $$\lim_{x\to{\infty}}  \frac{-1}{1+\sqrt{x+\frac1x}}$$  $$\lim_{x\to{\infty}}\frac{-1}{1+\sqrt\infty} $$  Something is wrong there..


Login limit exceeded error for an integration user

Background -  One of the external application (in Java) calls Salesforce resources. Integration user generates OAUTH token through Username-Password flow and uses it to access SF resources. In salesforce ,it shows this user is exceeding the login limit of 3600 per user per hour. However, in the log of the external application it shows , user logs in very less around 100 times per hour.  Investigation so far  - I looked into the connected app ,configuration looks fine.However in the connected app OAUTH usage - Integration user doesn't appear for that connected app. Also on the user record,  related record - 'Oauth connected app' doesn't show the connected app name.  I tried with refresh token flow , instead of username-password, then it seems to be working fine.  Question - 1) Why connected app name doesn't appear for that user record OR neither user name appears at the OAUTH usage of the connected app ? Though Username - Password flow uses client id and secret from that connected app. Why its working for refresh token and web server flow.  2)Will it be fair to say in above case, integration user is not using the connected app? Though it's using it's client id and client secret.  3) Does my login limit issue seem to be related with above? (Integration user not using connected app)  EDIT 1 - To add more context   All the calls to the Salesforce are routed through certain proxy servers.   In the Login history, login type shows - Remote Access 2.0 , and under Application it shows the connected app name. But still, OAUTH Usage in the connected app , doesn't show this user in the list.   4) Can these many calls be happening from the intermediate routing/proxy server?   Lastly, I am trying to understand and fix why SF login events shows such a huge number of login per hour, but external application log shows very few logins to SF?


Why is Professor Snape so against Harry Potter when he is supposedly protecting him?

In the Harry Potter series, it is known that Professor Severus Snape tries to protect Harry.  Reason for being is because as a Hogwarts student himself back in the day, he fell on love with who was Lily (Harry's mother). But she had an affair with James Potter.  Because Snape instantly knew that Harry was Lily's son, he dedicated to protecting Harry in the mid to last years of Harry being at Hogwarts.  But as we know, Snape, in the first few years, Snape hated Harry and deducted many points from Griffyndor.   Snape hated Harry, but in the first movie during the Griffyndor vs Slytherin Quidditch match, Quirrel is said and proven to be the one that tried to kill harry by throwing him off his nimbus 2000.  But Snape intervened with a counter- curse to save Harry.  Snape even refereed the second match of Quidditch to make sure Quirrel didn't do it again. That was in the book.  But I don't understand Snape's motivation in the first few years of hatred towards Harry Potter.  But towards the last few years, Snape showed that he cared and protected Harry without hesitation.  Why did Snape hate Harry to begin with?  Especially saying:     "I'll make sure you two-three are expelled next time something like this happens again"


Suggesting Reviewers: How to find institutional affiliations

Many journals recommend that authors suggest potential reviewers. They also often require the institutional affiliation to be listed. However, many researchers who have published in relevant, high-level journals do not necessarily have this information public and some are not affiliated with an institution at all.   How should I proceed in these situations?


Cloning an SD card onto a larger SD card

I'm using Ubuntu 12.04. I have an old 4GB SD card, and have just bought a new 16GB SD card. I would like to copy everything from my old 4GB SD card onto the new 16GB SD card. I was afraid that the usual copy-and-paste trick would miss out something, so I wanted to clone the old 4GB SD card onto the 16GB SD card. I used the dd command in a shell, following instructions in .  This worked with one small caveat. The new SD card now appeared to be 4GB. I later found out this is because the primary partition on the 16GB SD card has now shrunk to 4GB. I have solved this problem, and I think I understand it. However, my question now is, how do I clone my old 4GB SD card onto my new 16GB SD card without making the primary partition on the 16GB SD card shrink to 4GB?


How do I select a random element from an array in Python?

The first examples that I googled didn't work. This should be trivial, right?


Is there any way to play a custom map in multiplayer?

Civilization 5's multiplayer does not support any form of modding aside from changing the .lua scripts associated with existing multiplayer map options. They consider pre-generated maps 'modding' in this case.  The fact that custom maps are not allowed in multiplayer does not make any sense to me because it does not modify the game in any way, shape, or form. It simply means loading a pre-generated map instead of generating a random one.  There has to be a way to load a custom map for a multiplayer game. It just seems too simple to not be possible. I understand that , but I am not interested in hotseat as I would like to play a fluid game online with friends.  Does anyone know if this is at all possible? I'm entirely prepared to work a little to load a custom map in multiplayer if it is at all possible.