Validation Rule to "Lock Up" UTM Fields on Opportunity when the Opportunity is created

I am trying to lock the UTM fields on an opportunity when it is created.  I would the field to not be able to be edited by anyone (including Marketo Sync User) other than a system admin after the opportunity is created  here is what I have so far:  AND( $Profile.Name <>  "System Administrator", OR( AND( ISCHANGED( Last_Lead_Source__c ), NOT(ISBLANK(PRIORVALUE( Last_Lead_Source__c ))) ), AND( ISCHANGED( Last_Lead_Medium__c ), NOT(ISBLANK(PRIORVALUE( Last_Lead_Medium__c ))) ), AND( ISCHANGED( Last_Lead_Term__c ), NOT(ISBLANK(PRIORVALUE( Last_Lead_Term__c ))) ), AND( ISCHANGED( Last_Lead_Campaign__c ), NOT(ISBLANK(PRIORVALUE( Last_Lead_Content__c ))) ), AND( ISCHANGED( UTM_Original_Lead_Campaign__c ), NOT(ISBLANK(PRIORVALUE( UTM_Original_Lead_Campaign__c ))) ), AND( ISCHANGED( UTM_Original_Lead_Content__c ), NOT(ISBLANK(PRIORVALUE( UTM_Original_Lead_Content__c ))) ), AND( ISCHANGED( UTM_Original_Lead_Medium__c ), NOT(ISBLANK(PRIORVALUE( UTM_Original_Lead_Medium__c ))) ), AND( ISCHANGED( UTM_Original_Lead_Source__c ), NOT(ISBLANK(PRIORVALUE( UTM_Original_Lead_Source__c ))) ), AND( ISCHANGED( UTM_Original_Lead_Term__c ), NOT(ISBLANK(PRIORVALUE( UTM_Original_Lead_Term__c ))) ) ) )   Any help would be appreciated


Dependent and Independent Variables in an Electrical Experiment

So, for my science fair I had to test the gauge of a copper wire vs electrical resistance. What I did was I set up a series circuit involving a 6v battery, a light bulb, a multimeter, and a voltmeter. I would change out three different wires with three different gauges.   For the 4-gauge wire, I got 0.004V and 0.04A. For the 8-gauge wire, I got 0.003V and 0.04A For the 12-gauge wire, I got 0.001V and 0.04A.   In this experiment, what would the independent and dependent variables?  We also have to fill out a table like this:


What does the '|' operator do in javascript?

2 | 3 //Output is 3 7 | 9 //Output is 15  I tried 2 | 3 in the console and I got an output of 3. When I did 7 | 9, the output is 15. How does it work?


In conversation sometimes I’ll say something like this:     What’s that do?   which uses “s” as a contraction for “does”.  Is this a “real” contraction, or is it incorrect usage of a contraction?


Precision timing using DateTime possible?

I would like to test the time required by certain methods and SQL queries in my code. I've tried doing the following:  DateTime start = DateTime.Now;  //Do something  DateTime end = DateTime.Now;  TimeSpan ts = end - start;  int millis = ts.Milliseconds;   But I just don't feel that this is the right way of doing it. I often get back a value of 1 for some methods and values like 200 for others, are there any accurate ways to measure and record this kind of thing?


How do i compare the strings in the if statement?

Here is my code  public void refreshSmsInbox() {      ContentResolver contentResolver = getContentResolver();     Cursor smsInboxCursor = contentResolver.query(Uri.parse("content://sms/inbox"), null, null, null, null);     int indexBody = smsInboxCursor.getColumnIndex("body");     int indexAddress = smsInboxCursor.getColumnIndex("address");     if (indexBody < 0 || !smsInboxCursor.moveToFirst()) return;     arrayAdapter.clear();         do {             if (smsInboxCursor.getString(indexAddress).toString()=="6641234567") {                  String str = "SMS From:" + smsInboxCursor.getString(indexAddress) +                         "\n" + smsInboxCursor.getString(indexBody) + "\n";                 arrayAdapter.add(str);             }             else {                 String str = "It doesnt work";                 arrayAdapter.add(str);             }             Log.d("Phone Number",smsInboxCursor.getString(indexAddress));         } while (smsInboxCursor.moveToNext());  }   I want to make a app that pop up when a certain phone number send you a sms I already make that the app read the sms but when i try to make the app show the messages from only certain number it doesnt enter but i dont know why i make a debug resaearh from smsInboxCursor.getString(indexAddress).toString() and it give me  and the result is the same from my condition  also  is the view from my aplication  And  is the view when i removed the if statement  it is very weird for my There is an explination for this? because i can see that the comparasion i made in the if statement is the same that the output in the logcat


Did Thanos have anything to do with the events of Age of Ultron?

In the Age of Ultron mid-credit scene, Thanos puts on some sort of a glove and says "Fine, I'll do it myself." Which seems to imply his plan to get it done by others has failed. Did Thanos mastermind the events in the movie in any manner?


Why are comments overlapping the sidebar?

On , the comments are overlapping the related questions sidebar. Is this something to do with the weird formatting of the first comment?    Browser: Mozilla/5.0 (Windows NT 6.0; rv:16.0) Gecko/20100101 Firefox/16.0


If I have 3 steam accounts, a primary one - the one that has all the games; and 2 empty ones. If I share my library on the primary account to the other two, can both of the other accounts play at the same time (not the same game obviously)?  So for instance: Account 1 Shares 2 games to account 2 and account 3, can account 2 play game 1 while account 3 plays game 2? Or as soon as account 3 comes online account 2 gets disconnected?


How can I add lighting using 14/3 wire to an existing 20A circuit?

I currently have a 20A breaker with 12/3 wire leading to a double gang box which contains two 15A receptacles, that leads into another double gang box with two more 15A receptacles. I'd like to replace the very last receptacle on the circuit with a switch which will be wired to a lamp socket. The lamp socket will have a 60W equivalent LED bulb. I only have 14/3 wire on hand, which I know is not rated for use with a 20A breaker. Is my assumption that I should not pigtail the 14/3 into the existing 12/3 wiring correct? Or is it okay because it is the last leg of the circuit or because the light will draw like half an amp? If it is not safe to use the 14/3 wiring, how would it be different if I wired a plug on on the end of the 14/3 wiring and just plugged it into the existing receptacle? This last part is really what I am hung up on.


Can I enter the United states with My American birth certificate and id?

My husband and I are going on our mini vacation to El paso. While we are there we would like to visit his parents in Juarez mexico. Unfortunately I didnt get my passport on Time , . I'm a American citizen born and raised in colorado . My questions is if i go can I be denied entrance back to the U.S ? Can I re enter the the U.S with my Birth certificate state Id and Social security card ?


I’ve been looking over what has been posted regarding the use of ’s.   I used to be a Technical Writer (years ago). The title of one of our training documents was Users’ Guide.  Once, a coworker said every time he saw that title he expected users to start coming.    Never made any sense to me, but I have to admit that the majority of us didn't understand the use of s’ in place of ’s.  What is the difference?


put tab before every output line on AIX/ksh

0:root@SERVER:/root # echo "something" | sed -e 's/^/\t/g' tsomething 0:root@SERVER:/root #    AIX/ksh .. why doesn't it works? I just want to put a "tab" before every line!


Would atmosphere of Jupiter blow up if I launched a atomic bomb there?

This is based upon an question I had, since in Jupiter there is no oxygen a simple fire cannot be started let alone even happen due to its temperature. Anyway that being said, If I somehow used a space-shuttle to take a atomic weapon size of Tsar Bomba and successfully detonated the mass-destruction weapon would the entire planet simply be destroyed or what would happen?   That in mind do be aware hydrogen (major component of its atmosphere) is flammable so what would happen?


What's the negation of "I used to be"? Surely not "I didn't used to be"?

What is the negative form of "I used to be"? I often hear "I didn't used to be" but that sounds awfully wrong in my ears.


I'm familiar with a simple method of demonstrating that $e^\pi$ is greater:  $f(x) = \ln|x|/x$ $f'(x) = (1 - (\ln|x|))/(x^2)$ so f's max is at $(e, 1/e)$ so $1/e > \ln(\pi)/\pi$ and $e^{\pi} > \pi^e$  My question is simply, how does one come up with this "$\ln|x|/x$" function?  I've tried working backwards, but there doesn't seem any real clear way of coming up with this magic function that gives such an elegant solution to this problem.


My question is about counting the six-month period for a 90-day Schengen area visit:  Visit May 15 - June 5, 2014 (20 days) under name X Visit Aug 28 - Sept 25, 2014 (29 days) under name X Nov 11 marks end of 180 day period    Change name  Visit Dec 10, 2014 - Mar 10, 2015 (90 days) under new name, Y  Can I return in May?    If the first period ends Nov 11 and the new period starts Nov 12, then the next 180-day period would end May 11.    Am I eligible to return on May 12?  If my name change starts the count anew, I cannot return until mid-June.  I should add I didn't intend to stay 90 days over the winter.  I am traveling with two dogs and the temperatures in NY, USA were too cold safely to fly (not that it matters to Immigration).


BibTeX: How to reduce long author lists to "Firstauthor et al."?

I have several entries in my list of references that include of the order of 40 authors. Is there a way to make bibtex automatically reduce these lists to e.g. the first name + "et al."?  I don't want to edit the BibTeX entries manually and I cannot use biblatex. If at all possible I would also make as little changes as possible to the bibliography style.  There are similar questions, but none of those had a concise answer:       natbib e.g. seems to change only the reference within the text, but not the entry in the bibliography.  EDIT: I am using \bibliographystyle{unsrt} as style definition.


How big a function argument size before it's more efficient to pass by reference or pointer?

I've heard it said that passing by reference or pointer can be more efficient because it avoids a copy. I'm assuming this obviously doesn't apply for small arguments, for example doubles. Sometimes I deal with vec3 and vec4s which might be about 32 bytes big. I have a habit of passing by reference because I have this idea in mind, but I'm wondering if it's actually worth doing. IT makes sense that if copies are avoided it's faster, but how big would the argument generally need to be to gain anything? Are we talking about 8 bytes, 32 bytes? Or much bigger? I'm not sure how passing by reference or pointer actually works under the hood anyway. For example is it possible it's actually slower with a reference because the memory address is used to retrieve the information when a simple copy would mean the object is available immediately.


Given $n+1$ control points, B-spline blending functions are polynomials   of degree $d-1$, $(1<d\leq n+1)$.    This much is easy to comprehend. Now comes the part I am not able to make any sense of.      Each polynomial function is defined over $d$ subintervals of the total   range of $u$. The selected set of subinterval endpoints $u_j$ is referred   to as a knot vector.   What is the purpose of knot vector? What is its physical significance?


Login not redirecting back to page where login link was clicked if account created

On a Stack Exchange site, if you are viewing a question, and click Log In to take some action on that question, and you log in with valid Stack Exchange credentials (but there's a step that creates an account on that particular site), you are not redirected back to the page on which you clicked the Log In button, that motivated the account creation in the first place.  Instead, it goes to a list of questions on that site, causing the user to lose easy access to what it is they wanted to do.  Even the browser Back button doesn't get the user there for at least a few clicks, going through Document Expired and login pages again.  Here's an example:


How to prove that $B^\vee$ is a base for coroots?

Let $\Phi$ be a root system in a real inner product space $E$. Define $\alpha^\vee = \frac{2\alpha}{(\alpha, \alpha)}$. Then the set $\Phi^\vee = \{\alpha^\vee: \alpha \in \Phi \}$ is also a root system.  Let $B$ be a base for the root system $\Phi$, ie. $B$ is a basis for $E$ and each $\alpha \in \Phi$ can be written as $\alpha = \sum_{\beta \in B} {k_\beta} \beta$ such that $k_\beta$ are integers of same sign.     Question: How to prove that $B^\vee = \{ \alpha^\vee: \alpha \in B\}$ is a base for the root system $\Phi^\vee$?   It is easy to see that $B^\vee$ is a basis for $E$. For the other property, here is what I have so far. Let $\alpha = \sum_{\beta \in B} {k_\beta} \beta$ be a root. Then  $$\alpha^\vee = \sum_{\beta \in B} \frac{k_\beta (\beta, \beta)}{(\alpha, \alpha)} \beta^\vee$$  so to prove the claim, it is necessary to prove that $\frac{k_\beta (\beta, \beta)}{(\alpha, \alpha)}$ is an integer. I don't see how that follows. In the case where $(\alpha, \beta) = 0$ the proportion $\frac{(\beta, \beta)}{(\alpha, \alpha)}$ could be anything, so I am a bit confused.


Send activation email to user after signup

I would like to send an email to all users immediately after they signup that requires them to click a link inside that email to "activate" their email address.   Ideally each user account would have a status showing whether this had been completed or not.   Can anyone recommend a way for me to accomplish this?


does anyone know how to make the vertical line (before subscript op) for Taylor's polynomial? Any help will be appreciated!


What is the QFT state with two distinguishable fermions present?

I want to describe a system with two non-interacting and definitely different fermions, say an electron neutrino, $\nu_e$, and an electron, $e^-$.  The state describing a single electron is given using the Dirac creation operator $$c^\dagger_e|0\rangle$$ where $|0\rangle$ is the vacuum state.  Similarly the state describing a single neutrino is $$c_\nu^\dagger|0\rangle$$  My question is what is the state with both fermions present?  Is it simply $$c^\dagger_ec^\dagger_\nu|0\rangle$$ If so, does it matter which way around the two creation operators are?  If not, surely that means different fermion operators commute, since I could have just as well have chosen to write $$c^\dagger_\nu c^\dagger_e|0\rangle$$ Other questions on this topic (e.g. ) suggest to me that they should anticommute, and in general I've come to believe that the whole point of these operators and what makes them so special is they anticommute with just about anything.


I’ve had a good look and can’t seem to find out how to select all elements matching certain classes in one jQuery selector statement such as this:  $('.myClass', '.myOtherClass').removeClass('theclass');   Any ideas on how to achieve this? The only other option is to do  $('.myClass').removeClass('theclass'); $('.myOtherClass').removeClass('theclass');   But I’m doing this with quite a few classes, so it requires much code.


ubuntu 17.10 automatic suspend while playing videos

while watching video it is saying will automatically suspend due to inactivity.I have updated my system to 17.10.It was not happening previously. I did check this   Is there is other solution? Thanks :)  Edit :I have search all the question of this type and even I did mention about similar question,the Question you are mentioning was not there,Please see the date of Question.


How do instance variables related to classes or objects in Java?

Is instance variable in class, the value of reference of class or object? I am little bit confused on call by reference.


As you know, some files cannot be compressed when your system is running. How do I enable compression system-wide then? For every single file?    Can I enable it in the recovery console?    Ps.: For example, when you format a new drive in the Disk Management view, it lets you enable NTFS compression partition-wide.


Right way to mysql character insert with AJAX and PHP

With whatever I do (php & meta Content-type headers as utf-8) and all the htmlspecialchars, utf8_de- and encode etc. I just can't seem to insert text the right way into the table. Even returning it in a div, checking with alerts etc. nothing seems to get this right:  This is inserted into the MySQL table:  Americaâ€™s Greatest Rock â€˜Nâ€™ Roll Band â€“ have   it should be:  America’s Greatest Rock ‘N’ Roll Band – have    in the jQuery script I use:    var ch_title = encodeURIComponent(ch_title); var ch_descr = encodeURIComponent(ch_descr);    the PHP insert script has:  $ch_descr = "$_POST[ch_descr]"; $ch_descr = nl2br("$ch_descr"); $ch_descr = mysqli_real_escape_string($conn,$ch_descr);   Does anyone know how to get this right?  Solution I used this to solve the problem, including the doctype and headers:  <!DOCTYPE html> <meta http-equiv="content-type" content="text/html; charset=utf-8">   and for PHP:  header ('Content-type: text/html; charset=utf-8');  $ch_descr = iconv('UTF-8', 'ASCII//TRANSLIT', $ch_descr); $ch_descr = mysqli_real_escape_string($conn,$ch_descr);


How to search for bookmark folders in Firefox

The search box in the bookmarks bar only searches the bookmarks themselves, yet I have arranged the bookmarks into folders and subfolders. Sometimes I can't see the folder that I know I have, so I would like to do a search for it. Even if I find a bookmark that I have, onces it comes up as a result of a bookmark search, there's no way of finding out what folder it is contained within so I can get the other bookmarks - I'd like a similar function to Open Containing Folder.  I've had a look for an add-on to do this but the problem is the terms bookmark, folder and organise are too general.


How to print out the output of a CMD command when hiding the window C# winform?

I would like to print out the output of me entering a command into CMD using C# to a textbox while the window is hidden. Here is my code so far: double bytes = double.Parse(textBox2.Text); string domain = url.Replace("https://", ""); string commands = "ping" + domain + "-t -l " + bytes;  var proc = new Process(); proc.StartInfo.FileName = "CMD.exe"; proc.StartInfo.Arguments = commands; proc.StartInfo.WindowStyle = ProcessWindowStyle.Hidden; proc.Start();


What is the farthest planet from the center of the Star Wars galaxy?

In Star Wars what is the farthest planet from the center of their galaxy? Does it have life on it? Does it have an appearance in one of the movies?


I have a JS object that in pseudo code is doing this:  function myObj {   // in constructor    ... initialise vars   ... call $.Ajax to fetch view from server      function AjaxCallBack() {        // load the DOM with the HTML result        $('#dialog').html(ajax.result);        // try to register a change handler        $("#dialog :input").change(this.formChangeEvent);     }      this.formChangeEvent = function(){         ... do stuff     } }   The problem is that in the AjaxCallBack, 'this' is not myObj object, but rather the 'window' object and can't resolve the function  The only way I've been able to get around this problem is to have the receiver of the object call back into a separate function of myObj and register the event   objInstance = new myObj(); objInstance.registerEventHandler();   I've tried a few other things, but I'm obviously missing something basic.


I just purchased a Samsung Galaxy S3 32GB, when I check the storage I have only 25.5GB. Where is the other 6.5GB?


If $g \circ f$ is surjective, what can you say about the surjectivity of $f$ and $g$?

Given $f : A \to B$ and $g: B \to C$, if $g \circ f$ is surjective, what can you say about the surjectivity of $f$ and $g$?   My Attempted Proof  Suppose $g \circ f$ is surjetive  and assume either $f$ or $g$ not surjective.  Then $g(f(A)) \subset C$, and there exists  $c \in C$, such that $c \neq g(f(a))$ for any $a \in A$, contradicting our assumption.  Thus $g \circ f$ is surjective if and only if both $f$ and $g$ are surjective. $\square$    Is my proof correct? If so how rigorous is it?


What does the ending scene of The Sopranos mean?

In The Sopranos final scene, Tony Soprano was sitting with his family at a restaurant waiting for his daughter to come. And once she did a black screen had appeared and finished the show. So what does that mean? I still don't get it!


How to color the lineset with vertex color

i exported a line with the x3d format from paraview, and imported it into the blender. May i know how to color the line in the blender, please? Because there is usually an existing vertex color for the face object but there is no vertex color for the line object.


I want to know if its possible to make this in C++:  struct Hello {      Hello A, B; };   I would appreciate any kind of help


What kind of license does a website in India need to offer song downloads?

I have seen many many websites which allow you to download latest songs for free I am doubtful that they have any kind of license or partnership with any music company so if they do not have any such thing how come they are running websites with thousands of pages indexed on Google. If they have any license or partnership for the same what it is? And how they get all the songs on their website from the very first day of release. I am running a website where people can listen songs online but I am using SoundCloud API for that.  I am running a website in India and I want to offer downloadable music to users who visit my website but without violating the law. When I music I am referring to any and every company which provides music so is there anyway I can offer downloads to user.


How do I find a flaw in this false proof that $7n = 0$ for all natural numbers?

This is my last homework problem and I've been looking at it for a while. I cannot nail down what is wrong with this proof even though its obvious it is wrong based on its conclusion. Here it is:     Find the flaw in the following bogus proof by strong induction that   for all $n \in \Bbb N$, $7n = 0$.      Let $P(n)$ denote the statement that $7n = 0$.      Base case: Show $P(0)$ holds.      Since $7 \cdot 0 = 0$, $P(0)$ holds.      Inductive step: Assume $7·j = 0$ for all natural numbers $j$ where $0 \le j \le k$ (induction hypothesis). Show $P(k + 1)$: $7(k + 1) = 0$.      Write $k + 1 = i + j$, where $i$ and $j$ are natural numbers less than $k + 1$.  Then, using the induction hypothesis, we get $7(k + 1) = 7(i + j) = 7i + 7j = 0 + 0 = 0$. So $P(k + 1)$ holds.      Therefore by strong induction, $P(n)$ holds for all $n \in \Bbb N$.   So the base case is true and I would be surprised if that's where the issue is.  The inductive step is likely where the flaw is. I don't see anything wrong with the strong induction declaration and hypothesis though and the math adds up! I feel like its so obvious that I'm just jumping over it in my head.


New to Ubuntu. When I tried to get the GNOME user theme extension from the , it would not load the button to install. So I tried the command in the terminal   sudo apt-get install gnome-shell-extensions-user-theme and got the error message: Reading package lists... Done Building dependency tree        Reading state information... Done E: Unable to locate package gnome-shell-extensions-user-theme   any help? Thanks! UPDATE: it's not the lack of an extension, I know I have it installed, and there is no pink banner. The page does not load any button for me to install (or the user reviews section.) The page does load on chromium (with the pink banner though, no extension) so I don't think its a network issue. Also, the 'duplicate'page is not my exact issue. And I tried this on firefox, which has the right extension on it by default.


What should be the criterion upon I should decide whether or not to buy a processor its speed? or the number of cores? meaning should I seek out a processor which is fast but has 2-3 cores or is it better to buy one with less speed but has a lot more cores?


Find $\sin^2x + \sin^2y + \sin^2z$, given $\tan^2x\tan^2y + \tan^2y\tan^2z + \tan^2z\tan^2x + 2\tan^2x\tan^2y\tan^2z = 1$

If $$\tan^2x\tan^2y + \tan^2y\tan^2z + \tan^2z\tan^2x + 2\tan^2x\tan^2y\tan^2z = 1$$ then find    $$\sin^2x + \sin^2y + \sin^2z$$


"95% of confidence intervals calculated from these random samples will contain the true population mean"

I've seen this phrase repeated multiple times regarding what a 95% confidence interval actually means. However, I am confused, because if you're given a set of samples, can't you only compute a single 95% confidence interval from this set of samples? If that's the case, then it doesn't make sense to me why you can say "95% of the confidence intervals calculated from these random samples" when there's only a single 95% CI that can be computed. I could maybe be misunderstanding. Is the statement actually that if you random multiple times and obtain different sets of samples, and then you compute a 95% CI for each set, then 95% of these CIs will contain the true value?


Error: Facebook cannot download due to an error (923)

I am using my browser to access my Facebook account since I cannot access it through Facebook app. What I did was to uninstall the app and reinstall it. However, when I was trying to reinstall the Facebook app, I was receiving an error message saying      Facebook cannot download due to an error (923).   Why is it so?


How to find corelation between numeric vector and logical vector?


I have installed MySQL Server via the command line:  sudo apt-get install mysql-server   But then when I run   sudo mysql -u root -p   I get the following error  ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)   I have searched a lot about this but nothing has solved my problem


I have some 401k money in a former employer plan.  It is doing really well, I like their funds and their Financial Engines program.  I hesitate to touch it.  My new employer has a good plan.  The way I see it:   rollover into new employer plan so all my money is compounding.  it will cost about $50 to execute the transfer.  But I lose those great funds. Keep it in former employer plan since it is setup to balance my funds for my target retirement age.  Probably take a hit on administrative fees, but the profits are worth it.   Any thoughts?


The Americans coined 'boob' and left it to the British, I think, then now prefer 'tits', I think  Can you tell me which one is more acceptable in polite context or if they are equivalent, what is their connotation? Do you consider them vulgar? When I was in England boob seem to be an acceptable word


If $AB = I$ then $BA = I$: is my proof right?

I want to prove that for matrices $A,B \in M_n (\mathbb K)$ where $\mathbb K \in \{\mathbb R, \mathbb C, \mathbb H\}$ if $AB = I$ then $BA = I$.   My proof is really short so I'm not sure it's right:  If $AB = I$ then $(BA)B = B$ and therefore $BA=I$?


Acceptable solution for 'answer copying'?

I am sure this scenario is familiar to all of you.  You click an unanswered question and after reading the question, you want to help and answer. After you answered, you remain the first and only answerer with a solution.  After 15-20 seconds from your answer posting time, another answer comes up, suggesting exactly the solution you have suggested, but with more text (not necessarily more detail).  After a minute, more answers pop up with, again, exactly the same solution you have suggested.  After an hour, your answer gets no votes, but the other answers each get at least 1 up-vote, and the one posted right after yours not only has the most votes, but is also accepted.  What would be an elegant solution to stop this? I am sure I am not the only one who is annoyed by this situation.  After speaking to others about this situation, one of them happened to mention in passing about hovering the mouse over the time of the posting to see the accuracy of the time posted, which I did not know about.


Linux newbie with Komodo edit installation issues

I was watching a tutorial that needs komodo edit. I downloaded it but cant get the installer to run the way you just click the extraction file in windows. Any suggestions on what to do, maybe a solution from the terminal?


Please help me figure out how to set a system wide PATH.....  I have upgraded svn to version 1.8.10 on osx 10.9  One of the required steps was adding the address of the current svn to the PATH.  export PATH=/opt/subversion/bin:$PATH   Doing it in he current terminal, it allowed me to see the svn --version as 1.8.10, but upon closing the terminal, the version reverted to 1.7  I read that I can add this line to ~/.profile or ~/.bash_profile  These files do not exist on my mac  I created the .profile and added the line above. From terminal, now I can get the correct version. But I am required to read this version from a different program (my Qt project calls a command   system(svnversion -n)   Even though in terminal I can get the correct svn version, the command above still gives an error "This client is too old to work with the working copy..."  The directions i find online, like , say I also have to modify the .bash_profile (which does not exist on my machine) or edit/add something inside the /etc/paths.d directory - mine is empty !   Please help - how do I add this path to the system PATH variable ? Considering that all the default places to add it are missing ? And make it work from other programs not just Terminal ?


Citing a research article coming from a journal you suspect to be predatory

I'm working on a review of literature for a research proposal.  What's one good way of vetting journal articles given that there are predatory journals about?  Is the existence of a DOI enough to rule out the possibility a research article was published in a predatory journal?


I have a simple cylinder which is mirrored on both the X and Y axis.  When I scale it along the X axis, the two halves of the cylinder overlap, rather than scale as it would before the mirror modifier was applied:    I haven't used Blender in a while and I know this is a simple fix.


What is wrong with Popper's theory of falsification?

Popper popularized the notion that empirical science can not be verified, only falsified. Isn't he right? How can someone verify a theory? To me, it does not seem possible. However, you can easily falsify a theory. I've searched the web for some answers and have not come across anything that I find satisfying. It seems like people don't like the fact that we should perform 'science' based on falsification. Can someone clarify the issues with Popper's theory?


How to block traffic both in Google Analytics and on Server from a certain country?

I am getting traffic instances from Russia from fake referrers of Reddit, LifeHacker etc. I am not sure how did they get to my site. Is there anyway to block them from my site as well as from analytics?


As I gradually update the source code of my LaTeX documents to conform to new conventions, I find myself in need of a search/replace utility that is (or can be made) aware of LaTeX math mode. Often I need to replace some patterns in math mode, but not in text mode.  For example, my own stubborn TeX trickery once made me turn . into a math-active alias for \cdot. It made my math code a lot more readable at the time. Now that I'm using XeLaTeX and unicode input, I want to replace those occurrences with a proper ·.  Using regular expressions in a conservative way, I've been able to catch a lot of them, but now and then I still run into some stragglers. If only I could automatically replace all .'s in math mode, it would save me a lot of tedious effort. And there are still two or three more of such cases.  Math mode in my documents is relatively predictable. Always delimited by \[...\], $...$ or one of a small number of custom environments. I also occasionally use \text. But it doesn't get more complicated than that.  Is there a utility or script I could use to make this task easier? I work in Linux, so there should be plenty of possibilities, but I'm not really a hero with Perl et al.


It's popular that BBC has lost many Doctor Who (classic) episodes. Also, some of episodes were recuperated using fans' tapes.  Which Doctor Who (classic) episodes aren't available today? I am talking about original episodes here. I know fans have already created new episodes based on those stories.


In Game of Thrones, is there evidence of magic involved with the Faith of the Seven?

In Game of Thrones we see evidence that various religions are able to perform magic.  The followers of the Red God are able to give birth to living shadows and bring people back from the dead.  The religion of the Old Gods is founded on magical "Children" and their all-seeing Godswood trees.  Is there any evidence that the Faith of the Seven was founded on supernatural events?  Or is there any evidence that followers have any magical abilities themselves?


How to select siblings between 2 tags of same class using CSS

I have a bunch of table rows

  Few of which are of class = "node"  Only one of the tr.node will be of class = "active"
...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...
   I want to select all the
's from tr.node.active to next tr.node excluding the tr.node's themselves.  This question uses jquery    Is there any way of doing this using CSS only, as using javascript would be difficult in the given scenario of my project?


Quantum mechanic newbie: why complex amplitudes, why Hilbert space?

I'm just starting learning quantum mechanics by myself (2 "lectures" so far) and I was wondering    why we need to define quantum states in a complex vector space rater than a real one?  Also I was wondering why this vector space has to be a Hilbert space (rather than a pre-Hilbert space)? when do we need the property that the vector space is complete (i.e. every Cauchy sequence converge)?


Why does the Select by expression dialog not show field values?

I haven't found a similar question that already has an answer so I hope I can get one... Please forgive me if the answer is obvious. I'm using QGIS version 2.14.0-Essen on my macbook pro with OSX Yosemite 10.10.5. I am trying the simplest select features using an expression  Here is the window I get:  I right-click the field (e.g. here "DIVISION") and select say Load all unique values but nothing happens. I can check layer values beforehand and enter the correct value and it works (e.g. "DIVISION"='CENTRAL') but it's cumbersome.  So my question is: How can I get this unique values window to show?


I have 2 Forms, in Form1 , there are  a lot of transaction to be done, so i have used the BackgroundWorker. so during the action to be taken i want the form2 to be opened and shows the progressbar ( the progress of the actions ) so I have done like this:  This is Form1  public partial class Form1 : Form {     Form2 form2 = new Form2();     public Form1()     {         InitializeComponent();         Shown += new EventHandler(Form1_Shown);          // To report progress from the background worker we need to set this property         backgroundWorker1.WorkerReportsProgress = true;         // This event will be raised on the worker thread when the worker starts         backgroundWorker1.DoWork += new DoWorkEventHandler(backgroundWorker1_DoWork);         // This event will be raised when we call ReportProgress         backgroundWorker1.ProgressChanged += new ProgressChangedEventHandler(backgroundWorker1_ProgressChanged);     }      void Form1_Shown(object sender, EventArgs e)     {         form2.Show();         // Start the background worker         backgroundWorker1.RunWorkerAsync();      }       private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e)     {         // Your background task goes here         for (int i = 0; i <= 100; i++)         {             // Report progress to 'UI' thread             backgroundWorker1.ReportProgress(i);             // Simulate long task             System.Threading.Thread.Sleep(100);         }         form2.Close();     }       private void backgroundWorker1_ProgressChanged(object sender, ProgressChangedEventArgs e)     {         // The progress percentage is a property of e         form2.progressBar1.Value = e.ProgressPercentage;     } }   I have a Progressbar in form2 which its modifier is public. the problem is that when the actions would be accompilshed the form2 ( which contans the progress bar) should be closed , So i used      form2.Close();   but i get this error message    Cross-thread operation not valid: Control 'Form2' accessed from a thread other than the thread it was created on   how can i solve this problem?


Question is to prove that :  $A_n$ contains an isomorphic  copy of $S_{n-2}$  I have no idea from where to start.  I do not even believe this can be true (expect for cardinality conditions).  But as this is an exercise.it has to be true.   please provide some hints/suggestions to attack this problem.  Thank you :)


Is it correct to use "learn" as a synonym for "teach"?

I have recently been noticing many people using "learn" as a synonym for "teach", as in      Mr. Smith learned you how to do long division.    How common is this? Is it considered "correct"? It sounds strange to me. Google lists this usage as the second definition of "learn", and as both archaic and informal.


What is the difference between local and global sequence alignments?

There are a bunch of , and I don't want to get bogged down in the maths behind them as this not only between software but varies from software version to version.  There are two main divides in the programs; some use local alignments and others use global alignments. My question is threefold:   What are the fundamental differences between the two? What are the advantages and disadvantages of each? When should one use either a global or local sequence alignment?


Why does observation collapse the wave function?

In one of the first lectures on QM we are always taught about Young's experiment and how particles behave either as waves or as particles depending on whether or not they are being observed. I want to know what about observation causes this change?


How to tell systemd to stop restarting service?

Is there a possibility to tell systemd to not restart a service? Or force systemd to restart a service maximum 3 times. If after 3 restarts service still needs to be restarted then systemd stops this service. I am trying changing .conf file (with StartLimitBurst option) but still without good results. Is there any other option with which I could do that?  When I see logs. There is something like: Unknown lvalue 'StartLimitBurst' in section 'Unit. Why is that?


I have some problem to prove this statement by the Principle of mathematical Induction.  $$\sum_{i=0}^{n} \binom{n}{i} = 2^n.$$ So I begin with the base step. For $n=0$,  $$\sum_{i=0}^{0} \binom{0}{i} = 2^0 =1.$$  Now could you help me to show the inductive step?  Thank you in advance!


Wave simulation without reflection on the boundaries

I would like to numerically simulate a wave (let's say in a string) with different boundary conditions:   Fixed endpoints Periodic  Boundless   $\varphi(x, t)$ is the value of the wave (vertical position of the string) at pixel $x$ captured by a 1-D array phi. For fixed endpoints, I simply pad my array with a zero on the left and one on the right (for numerical differentiation purposes). For the periodic boundary, I pad the left side with the last element (phi[-1] in Python syntax) and I pad the right side with the first element (phi[+1]).  How do I handle the boundless case so a pulse would just travel without reflection similar to the figure below? What is the common term for this type of boundary? (I do not want to sufficiently increase the number of pixels to solve this problem).


Does anyone know how to make a table of contents page separately from the others?  For instance: creating a section on table of contents without generating a next page containing this section.


What do we call people who go to the gym?

A group of people who regularly attend gym classes or work-out. What are they called? Is there a single-word for this particular group?  Apart from my calling them fanatics, mad (BrEng)/crazy (AmEng), body-obsessed, vain or dull.   Seriously, what are they?  ? ? ?   I'd also appreciate any equivalent popular/recognized expressions that haven't yet entered any standard dictionary but have been buzzing around for a few years.   Trivia In Italian, a gym is called palestra. Italians are very body conscious and tend to look after themselves very well, in fact it is true to say that it's quite difficult to find overweight, unattractive, or unfit men or women who attend these almost daily sessions. The men, in particular, can get carried away and so the expression palestrato has been coined in the Italian language. A  is someone who frequently attends the gym, but is also an exhibitionist, self-obsessed, extremely vain, and very very muscular.


How to remove smart quote and emdash in PHP and replace them with space and regular dash?

I have a string with smart quote and emdash. I don't want to remove any other special characters. I just want to remove only these two. I want it to be displayed at some places but not in others.Tried couple of solutions but nothing worked. How should I proceed? These are the option that I tried...  $pullquoteWithapos = utf8_encode($title); $pullquoteWithapos =utf8_decode(str_replace('&#8221;','',$pullquoteWithapos)); $pullquoteWithapos = utf8_decode($pullquoteWithapos); $pullquoteWithapos = str_replace('?', '\'',$pullquoteWithapos); echo $pullquoteWithapos;   TIA    This is what I did which worked     $cleanStr = htmlentities($str, ENT_QUOTES, 'UTF-8');      $cleanStr =   str_replace('”','',$cleanStr);      $cleanStr = str_replace('—','-',$cleanStr);      $cleanStr = str_replace('’','\'', $cleanStr);


Hi i am a student & was hoping someone could please clarify on the below.  In a section of learning materials for a module I am taking the symbol for the MOSFET is shown and referenced (FIG 11) with respect to a CMOS NAND gate:   All other sources I have come across show the P channel MOSFET with the arrow pointing out on the  source terminal  & for an N channel MOSFET the arrow pointing into the gate on the source terminal(FIG a).    If anyone could please advise if there is issue with the symbol for FIG 11 as these variants contradict one another. I have searched through other questions on a similar nature to this, but my understanding is that the symbols used in FIG 11  should have a T connector gate rather than L type connector gate in order to adhere to common practice?


I have a list of email addresses and I want to check if they are a valid email address for GMail.  Possible email addresses  "admin@gmail.com" "john.smith@googlemail.com" "john5.a.smith@gmail.com" "jane_doe@googlemail.com" "patrick.o'reilly@gmail.com"    However the following wouldn't be valid email address  ".admin@gmail.com" "postmaster.@gmail.com"   This is what I have so a string beginning with a-z or 0-9 following by zero or more of any special character.  re.search("^[a-z0-9]+[\.'\-]*[a-z0-9]+@(gmail|googlemail)\.com$", s)   but it is failing on   "john5.a.smith@gmail.com"


I have applied for my mum to visit me and they refused citing paragraph 4.2 of Appendix 5, 'you state that you retired bla bla bla, but documents do not demonstrate this'. What shall I do? They have accepted that I do have sufficient funds to support her etc.


How did Dr. Strange bring everybody back without the Time Stone?

How did Dr. Strange bring everyone back to the Avengers HQ without him possessing the stone? The stone is supposedly in the gauntlet. So how did he do it? I haven't watched the Dr. Strange movie so maybe I'm missing out. Can he do that without the stone? Did he train for it? I watched the majority of the MCU movies but I'm still really confused.


Book where orphans die and go to another kingdom

I'm seeking a book I read as a kid in the 80s about two orphans who were (I think) in the foster system. Brother and sister. He always told her tales of a magical land with a name that I think began with Nangri-something or similar. One day there waas a fire and they died, possibly him before her. Awakening, they were in that kingdom of Nangriwhatsit.  They went on to have heroic adventures before dying again and as they lay dying, he began telling her stories of the next kingdom they would arrive in...


I am creating a chat using Ajax requests and I'm trying to get messages div to scroll to the bottom without much luck. I am wrapping everything in this div: #scroll {     height:400px;     overflow:scroll; }  Is there a way to keep it scrolled to the bottom by default using JS? Is there a way to keep it scrolled to the bottom after an ajax request?


Do @replies notify poster of another answer

From what I can find, @replies only notify other users when used in comments. Does this also work across different answers?  What I mean is when writing an answer that expands on a previous answer (e.g. ), users will often @reply the author of the previous answer. Will that author get a notification, or is it simply a spillover of the way people are used to using it in comments.


How can I take crisp sharp shots without an expensive lens?

Recently I bought my first DSLR camera. It is a beginner's one, a Sony Alpha A230 kit. To tell the truth, my shots are no more crisp than those I used to take with my old point and shoot Nikon Coolpix.   Is it possible to take really sharp photos without buying an expensive lens? What would be your advice for that? (I'm really trying to go beyond automatic mode, though with little success so far).


Java Override Method Inside the function call

I have a piece of code I am trying to understand , this is an Java-Android Based .       volumeControl.setOnSeekBarChangeListener(new OnSeekBarChangeListener() {          @Override         public void onStartTrackingTouch(SeekBar seekBar) {         }          @Override         public void onStopTrackingTouch(SeekBar seekBar) {         }          @Override         public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {             audioManager.setStreamVolume(AudioManager.STREAM_MUSIC, progress, 0);         }      });   In this code there an @Override method done inside the parentheses is this the best way to do this code and how this is done .    How the java compiler understand this constructor call. There is a int variable called progress from where it gets it's value , how the function call is done.


Given $A$ is a subset of grouo $G$ and $|A|>|\frac{G}{2}|$. How do i prove that each element  of $G$ is product of rwo elements of $A$? I don't know where to begin, a hint would be very helpful.


How can I re-instate my admin privileges?

I am running 12.04 LTS. It's a pretty default installation and is the only OS on this machine.  I have two users one has administrator rights the other does not. I accidentally removed administrator rights from the "admin" user.  I tried to  but that requires reaching GRUB during boot but I cannot get there because my /etc/default/grub has GRUB_HIDDEN_TIMEOUT=0 and changing that to a positive integer requires admin privileges to save the changes and run sudo update-grub.  Should I boot from LiveCD? The  discouraged my a bit. Right now all I have handy is an install DVD from 11.10, but that did not help me much.  Not sure what to do now.  Any suggestions?  NOTE: 12.04 does not have an admin group and I have not enabled root


How should a standard supermarket tomato be cleaned before putting it in a green salad. Is a quick rinse under running water with light rubbing under the palm and fingers adequate?


Would the Elder Wand choose every new owner who wins?

We know that wands choose their owners, more so than the other way around. We also know that to master the Elder Wand, you need to win it, or defeat the current owner.  From the Harry Potter books so far, pretty much everyone who has defeated the previous owner has become the new master.  My question is:  If someone defeats the owner of the Elder Wand, could the Elder Wand still not choose its new owner?  Could it have seen Voldemort as somehow not worthy or something?


Would it be correct to say "five 202ths"?

I am involved in the translation of a legal document according to which the buyer acquires 5 of 202 parking spaces in a garage. The garage as a whole is considered a functional unit, according to condominium terminology, and each parking space represents an undivided interest in that functional unit. Since there are 202 parking spaces, would it be possible to say that each one of them represents one 202th interest in the garage? Note should be taken of the fact that "202th" is not an ordinal number here (in which case the correct spelling would obviously be "202nd") but indicates a portion, as in "one hundredth". The alternative I'm thinking of is saying that the buyer acquires 5 out of 202 undivided interests, but I wonder if there is in English the possibility of saying "five 202th undivided interests".


When do you use which or what? Are they interchangeable these days?

which or what? I have always been taught that which is used when you can choose from a limited, given number of choices. What when you have an unlimited choice.  Which country has a higher GNP, Germany or France? What country would you like to go to on holiday?  On the internet I see people use what and which in both cases. Is this correct? Is the rule I was taught old-fashioned?


How sould I handle NPC's betraying or lying to the party?

I'm fairly new both as a DM and a roleplayer. I got into it a year ago and not a long time after that i started my own campaign. We have been at it for about a year or so, 5 players and me, and it's going relatively smoothly. I make a lot of mistakes, of course, mainly forgetting things or having to improvise (to varying deggrees of success) things i should have planned for.  We play a story-focused cinematic adventure based on the Curse of Strahd module for 5e.  Last saturday we were playing one of the final dungeons. The session got long and some of the players had to leave in the middle of the climax battle. We all agreed to end the session there, so i concluded the combat with a really cool scene and a grand reveal: Two long time friendly NPCs betrayed the party, suddenly becoming the Big Bad of the adventure, foreshadowing a cool final boss. It was not intended to affect the party mechanically, they lost nothing for it and they were properly rewarded for the dungeon exploration and the combat. It was only ment to change their objectives and made them rethink past events. Everyone was really happy with that, except for the rogue, that claims i shoud have allowed him to make an insight roll to discern intentions or lies, even tough he never even tried to talk or get to know the npcs.  Over the course of the adventure i tried to avoid Npc lies, playing them outright evasive or ambiguous, throwing some hints here and there that they were more than meets the eye, but had anyone tried to actually talk to them or suspected them i would have allowed for an insight roll and revealed the deceit early. But no one did.  Four of my five players were really excited about the sudden twist ("I expected so little about that NPC that i did not see it coming"), but the rogue was unhappy. He claims his character is a master in deceit (+9 decieve +9 insight) so he shoud have been given the chance to detect the lie. He claims i shoud have him throw insight when talking to a lying character, even if he as a player has no clue about it, completely giving away the secret and breaking the surprise for everyone.  I am not concerned about the rogue's behavior, it's not the first time and i can handle it. But it got me thinking about how the mechanics and narrative mix toghether, should i have given them more clues about the betrayal? How do i handle NPC's lying to the party to build up a plot twist? The only thing that comes to mind is doing the insight rolls in secret, but i don't think that would solve the issue.


Can I have chapters numbered while not having them appear in the table of contents automatically?

I have a thesis file that has chapters, sections, etc. In the document I make references to previous lemmas, etc. I want to remove the automatic generation in the table of contents of the chapter titles. The reason for this is that there appearance in the document needs to be different from their appearance in the table of contents. I can use the command \addcontentsline{toc}{chapter}{Table Of Contents Chapter Title Style} which appears in the Table of Contents correctly. However it appears right after the chapter title which has the same format as the way it was typed in the command  \chapter{In Body Chapter Title}. Is there a way to suppress the printing of the \chapter{In Body Chapter Title} from the table of contents without using the \chapter* command? I don't want to mess up the references that are throughout the document nor the section numbering. Thanks


I would like to prove to myself that Hermite functions, defined by $\varphi_n(x)=(-1)^n e^{x^2/2}\frac{d^n e^{-x^2}}{dx^n}$, $n\in\mathbb{N}$ are an orthogonal system in $L^2(\mathbb{R})$, i.e. that, for any $m\ne n$, $$\int_{-\infty}^\infty e^{x^2} \frac{d^m e^{-x^2}}{dx^m} \frac{d^n e^{-x^2}}{dx^n}dx=0 $$ I have tried by integrating by parts as the book where I find such a statement, Kolmogorov-Fomin's Элементы теории функций и функционального анализа, says that it can be proved, but I am landing nowhere since I have no experience in manipulating such integrals... Thank you so much for any answer!


I am a dual Australian/British citizen with an expired emergency Aussie passport and a valid UK passport. What are my chances for an Aussie visit?

I was going to have to miss my brother's wedding on Jan 4th but he bought me a flight today. But my Aussie passport is expired and was only an emergency passport to begin with. I'm born and bred Aussie, just been away for ten years. I'm hoping to arrive on UK passport, show the expired Aussie one and the wedding invite and my return ticket for two weeks later and hope they understand.   What are my chances? Also planning on going to the Aussie embassy on Monday to see what they say but want to know my chances of just entering on a UK passport.


What to do if I'm afraid that my idea will get stolen during review process?

I have an idea that I would like to publish. However, the idea is so simple that basically everyone in the field could reproduce the experiment that shows its benefit within a day or so.  What can I do to ensure that my idea is not stolen during the review process by a reviewer, for example?  If the reviewer holds back my paper and publishes it himself somewhere else, is there something I can do to prevent this?


So when I am using cycles in blender, every time I use an image texture for this model's hair, it turns out like this. He is supposed to be completely blonde and no matter what I add or manipulate in the nodes, it doesn't change so there is always this black in his hair.   Is there something I should be doing in particular or is it something else? Because it works for majority of the other models except a few that do the same thing, particularly the blonde ones or one's that have wavy hair.     These are the textures used for this model's hair    Thanks :) Btw I'm new to this site so sorry if I do something wrong! :/  Here   I tried to duplicate the question "How can I setup a Material in Cycles for Z-Transparency?" and this is what I got. It's still not right.


Duplicate flagging reason description requires the 'original' to already have an answer

When flagging a question as duplicate, the description of the action that provides the premise behind the flagging choice reads "This question has been asked before and already has an answer.".  I was under the impression that any question that is asked that is a clear duplicate of another regardless of whether the previous had been answered yet or not constitutes grounds for closure as duplicate. However the text suggests that a question should only be flagged as duplicate if another question of same type has already received an answer.  Am I wrong in assuming that the current convention for duplicate flagging is indeed whether the question being considered has already been asked before regardless of whether it's 'original' has received an answer or not? If so, does that not encourage flooding of the site with duplicate questions yet to receive an answer?


Capturing a regex pattern does not work with a multi-line string

I am trying to read a string that contains multiple lines \n included, and it has the following pattern:  Total     : 30 ================ Loaded    : 27 Loading   : 0 Failed    : 3  Done.. time taken : 3.49  seconds. ============= 2020-03-08 15:39:26   The line containing the time taken can sometimes be represented in milliseconds, seconds, or minutes. So I need to capture the digits before the unit, the unit itself, and the digits represented by Failed.  I was able to extract the time duration plus the unit without any issues. Maybe because they both are on the same line.  let matches = /taken\D+([\d\.]+)\s+(\w+)/g.exec(trace); matches[1];  // 3.49 matches[2];  // seconds   But when I tried to extract the Failed digit, the regular expression does not work.  /Failed\s+:\s(\d+).*?taken\D+([\d\.]+)\s+(\w+)/g   /Failed\s+:\s(\d+).*?taken\D+([\d\.]+)\s+(\w+)/gm   /Failed\s+:\s(\d+)[.\n\r]*?taken\D+([\d\.]+)\s+(\w+)/g   None of that worked. I know I can do a workaround by removing all new line \n characters before performing the regular expression, but I want to know what mistake was done from my part?    let trace = "Total     : 30\n"           + "================\n"           + "Loaded    : 27\n"           + "Loading   : 0\n"           + "Failed    : 3\n"           + "\n"           + "Done.. time taken : 3.49  seconds.\n"           + "=============\n"           + "2020-03-08 15:39:26";  let pattern = /Failed\s+:\s+(\d+)[\n\r.]*?taken\D+([\d\.]+)\s+(\w+)/gm;  let matches = pattern.exec(trace);  let failedCount = matches[1];   // should be "3" let timeTaken   = matches[2];   // should be "3.49" let timeUnit    = matches[3];   // should be "seconds"


How to export java project as .exe file in IntelliJ IDEA?

So I made this simple java program using IntelliJ IDEA, and I was about to export it as .exe file but I can't find the option. How do I do this? Is it even possible?


Limits involving trigonometric functions $f(x)=\lfloor{x^2 \rfloor} \sin^2(\pi x)$

I was asked to find for what values of x the function is differentiable and write down the derivative.  $f(x)=\lfloor{x^2 \rfloor} \sin^2(\pi x)$ for $x \geq 0$.  There are two steps:   When $x \in (\sqrt{n},\sqrt{n+1})$ we get $f'(x)=\pi n \sin(2 \pi x)$. If $x=\sqrt{n}$ then: I need to find $\lim_{x \rightarrow \sqrt{n}^+} \frac{f(x)-f(\sqrt{n})}{x-\sqrt{n}}=\lim_{x \rightarrow \sqrt{n}^+} \frac{n \sin^2(\pi x)-n \sin^2(\pi \sqrt{n})}{x-\sqrt{n}}$ I need to find $\lim_{x \rightarrow \sqrt{n}^-} \frac{f(x)-f(\sqrt{n})}{x-\sqrt{n}}=\lim_{x \rightarrow \sqrt{n}^-} \frac{(n-1) \sin^2(\pi x)-n \sin^2(\pi \sqrt{n})}{x-\sqrt{n}}$   I just don't know how to find the limits :\ We haven't covered L'hopital yet, so I need to use other methods.  Of course, after finding both limits, we need to write $f'_{-}(\sqrt{n})=f'_{+}(\sqrt{n})=f'(\sqrt{n})=\pi n \sin(2\pi \sqrt{n})$. This is true if and only if $\sqrt{n} \in \mathbb{N}$ (limits are all 0), otherwise the function is not differentiable in $x=\sqrt{n}$.  Please show how to continue, thanks!


When deleting imessages on my mac, I want to press space bar so that i can quickly click on "delete" however tab doesn't work and I can't seem to focus on the pop up that has two options "cancel" and "delete".  Basically I would like to press tab and then press the space bar to delete the imessage.


Can I delete nodes of a given content type with Drush?

Just wondering if Drush is capable of deleting nodes of a given content type.   Something like: $ drush delete-node --type=MyContentType  If not possible, can I create a method like that?


install error of massif-visualizer on 14.04

I tried to install massif-visualizer. After adding the kubuntu-ppa/backports PPA and running apt-get update,  apt-get install massif-visualizer   still gives me an error:  E: Unable to locate package massif-visualizer


Comma before quote marks around article title?

I'm thinking about making a headline. I know you would use a comma here:     Professor Bill Bick then told me, "There will be more jobs when the   economy recovers."   What about here?     Read Professor Bill Bick's article, "Why There Will be More Jobs When   the Economy Recovers."   Are commas used before article titles that are quoted?


Passing an ellipsis to another variadic function

I have approximately 30 variadic functions. Each one accepts a path as the final argument, e.g.:  bool do_foo(struct *f, int q, const char *fmt, ...)   In each function, I have to check that the expanded format is less then or equal to a certain size. So, I find myself copy / pasting the same chunk of code to check for how many characters vsnprintf() didn't print, set errno accordingly and bail out of the write.  What I would like to do is write a function to do this, which would return a statically allocated (expanded) string that is known to be a safe size, or newly initialized string on failure, which could be checked against NULL. The checks also have to determine if the string is an absolute or relative path, which influences the safe size of the string. It's a lot of duplicate code and it's starting to smell.  Is there a way that I can pass the contents of the elipsis from my function's entry to another function? Or do I have to call va_start() first, and then pass the va_list to the helper function?  Edit:  I am not at all opposed to passing the va_list to the helper, I just wanted to make sure that nothing else existed. It seems to me the compiler understands where the variadic arguments begin, so I was just curious if I could tell it to pass them along.


How do I get rid of the "THE END" screen in Super Mario World?

I finished Super Mario World on the Wii U Virtual Console and I watched the credits. At the end was Mario, Peach and Luigi standing there with the words THE END. It won't go away no matter what I do. Whats going on?


Why do some sites end with '...Stack Exchange' but some don't?

Or why do all but one (I think there's only one...)?  All the sites I see end with 'Stack Exchange` on their logo's tooltip, site's welcome bar, etc... but Cross Validated doesn't - why is that? Are there any more sites without the suffix?  Examples:


Is it possible to create the following symbol,     Circled 1 (or any number or letter).   The output should be something like \textregistered except R being replaced by 1 (or the corresponding number or letter, as the case may be).


These methods rely on the below imports. These are old and from reading shouldn't be using it. This only works with java 6 anyway and I would like to get this updated to java 8.   Does anyone know how to get the PID in Java 8 on OS X ?  import sun.jvmstat.monitor.*; import java.lang.management.*;           public String getUsageDescription()         {             System.out.println("** Get Usage Description");             int pid = 0;             RuntimeMXBean rt = ManagementFactory.getRuntimeMXBean();             pid = Integer.parseInt(rt.getName().substring(0,rt.getName().indexOf("@")));             System.out.println("Run Time PID = "+pid);             return new String(getDeviceName()+" "+Integer.toString(pid));         }           public static boolean isPIDInUse(int pid)         {             try{                 String s = null;                 int java_pid;                 MonitoredHost host = MonitoredHost.getMonitoredHost(s);                 for(Object activeVmPID : host.activeVms())                 {                     java_pid = (Integer)activeVmPID;                     System.out.println("****************PID = "+java_pid);                     if(java_pid == pid){                         System.out.println("In Use\n");                         return true;                     }                 }             }             catch(Exception e)             {                 System.out.println("Exception:  "+e.getMessage());             }             return false;          }   Solution:   public static boolean isPIDInUse(int pid) {          try {              String s = null;             int java_pid;              RuntimeMXBean rt = ManagementFactory.getRuntimeMXBean();             java_pid = Integer.parseInt(rt.getName().substring(0, rt.getName().indexOf("@")));              if (java_pid == pid) {                 System.out.println("In Use\n");                 return true;             }         } catch (Exception e) {             System.out.println("Exception:  " + e.getMessage());         }         return false;     }


Null pointer when reading a Properties file from another folder

My application will check if a Properties file exists and create one if not.    try{         // create new file          String path="c:\\temp\\LaserController.properties";         File file = new File(path);         String comport = "Comport=COM1";         String Parity = "parity=none";         String baud = "baud=9600";         String Stopbits = "StopBits=0";         String databits = "DataBits=8";            // if file doesnt exists, then create it            if (!file.exists()) {                file.createNewFile();               FileWriter fw = new FileWriter(file.getAbsoluteFile());            BufferedWriter bw = new BufferedWriter(fw);            // write in file            bw.write(comport);            bw.newLine();            bw.write(Parity);            bw.newLine();            bw.write(baud);            bw.newLine();            bw.write(Stopbits);            bw.newLine();            bw.write(databits);            // close connection            bw.close();            }   But when i try to read the properties file like this i get a Null pointer.    else {            Properties prop = new Properties();               InputStream input = LaserControllerUI.class.getResourceAsStream("c:\\temp\\LaserController.properties");               // load a properties file             prop.load(input);              // get the property value and print it out             System.out.println(prop.getProperty(Comport+"comport"));             System.out.println(prop.getProperty("Parity"));             System.out.println(prop.getProperty("Baud"));             input.close();          }      }catch(Exception e){          System.out.println(e);      } }          It fails on the InputStream input line but i dont know why. the file exists and my application can access it because it put it there in the first place. What am i doing wrong?  The file has to be in a location that is accessible to users to change parameters.


I have a 32-bit machine, can I use programs that are meant for 64-bit processors?

I am using a 32-bit machine, but I am having to use a relatively obscure semantic database which only comes in 64-bit versions.  What are my options for running it in my local dev environment?  Currently when I try to run it, I get an error message that looks like this:  cannot execute binary file   and when I check my machine info, I get this:  $ uname -a Linux slabrams-desktop 2.6.32-29-generic #58-Ubuntu SMP Fri Feb 11 19:00:09 UTC 2011 i686 GNU/Linux


Is it safe to pull out the purchase record stapled in my passport?

In Japan, duty free goods can be purchased not only at the airport, but also at the designated shops. The condition is simple, that you have a visitor visa, and if the goods are of "Consumable" category (e.g. food or cosmetics), you have to keep in within the sealed "tax-free" plastic bag until you get out of Japan. However, every time you buy something, a shop will staple a purchase record in your passport (a white slip with information of the buyer, location of the shop, etc.). This ended up in 5 or 6 white slips in my passport, each slip covers 2 pages (!) See picture. Those slips are eating up almost all the blank pages left in my passport, and even if they don't, they thickened up my passport significantly. For example in the photo, it's been a year since I left Japan, sometimes I want to just pull out those slips, but as you see, there's a tiny red seal on it, overlapping both the slip and the passport page. If I pull out the slips, there will be only halves of the seals on my "almost blank" passport pages. Is it safe to do that? I don't want to invite potential troubles, like, any embassy staff later might raise a question "is there any problem with this passport, it seems that there are some records removed?"


How to calculate the integer part of the value of the following equation?  $$y=1+\frac{1}{\sqrt{2}}+\frac{1}{\sqrt{3}}+\frac{1}{\sqrt{4}}+\ldots+\frac{1}{\sqrt{1000000}}$$  It should be calculated in a special way, after all the equation is so long.


I know next to nothing about electric engineering, so I got the Arduino Uno R3 and a bunch of LEDs to play around with and hopefully learn something. I have no idea about the proper terminology or anything here, so bear with me ...  When I connect an LED to a normal pin, it works fine. When I connect it to 5V or 3.3V with a 220 ohm, it works fine. Without the resistor, the LED gets cooked. My question is, why does it work with the digitals without resistance and not the 3.3V or 5V? Are they hooked up to onboard resistors? What is their output?  And finally, where can I learn more about my shiny new microcontroller without diagrams that I can't make head or tail of?  Edit: I think this is different from the related question I noted in my comment, but tell me if I should remove it anyway.


Combine Two Dictionaries, Replacing values associated with duplicate keys in Pyhon?

Say there are two dictionaries. dict1 = {'a':1,'b':2,'c':3,'d':4}  dict2 = {'a':1,'b':'yellow','c':3,'e':5}  How would one append values in dict2 to dict1 while also replacing new values with equal keys. Intended Result: dict1 = {'a':1,'b':'yellow','c':3,'d':4,e':5} Been struggling with this one for a while.


Conditional expectation of $\mathbb{E}(X - Y | (X, Y)\in\mathcal{A})$

Given two independent random variables $X \sim \mathcal{U}[-1,5]$ and $Y \sim \mathcal{U}[-5,5]$, what is $$\mathbb{E}\{Y - X | X \le 1, Y > X, Y \in [-1,1] \}\,?$$  I managed to compute the respective probability   $$ \mathbb{P}\{ X \le 1, Y > X, Y \in [-1,1] \} = \mathbb{P}(X \le 1) \mathbb{P}(Y > X) \mathbb{P}(Y \in [-1,1]) = 1/3 * 1/2 * 1/5 = 1/30$$  How do I continue from there?


Downloading Pictures from Owncloud via Android Library fails

I want to download some files from an own OwnCloud-Server to my android device using the predefined code from github () and my own code ` Downloader downloader = new Downloader("joy-3147070.jpg", "/sdcard/DCIM");     OwnCloudClient client = new OwnCloudClient(Uri.parse("URL")); -> the URL has the following format: "https://XX.com/XX"     client.setCredentials(OwnCloudCredentialsFactory.newBasicCredentials("username", "password"));     download = findViewById(R.id.button_download);     download.setOnClickListener(new View.OnClickListener() {         @Override         public void onClick(View view) {             downloader.run(client);`   but the execution of the code is replied by the following exception "java.lang.NullPointerException: HttpClient.getOkHttpClient() must not be null". What could be the problem in the code snippet and how could I fix that? Thanks already in advance!


Leftover files when uninstalling antivirus - do they need to be removed when using newly installed antivirus?

I've uninstalled McAfee and downloaded a new antivirus program. However, I am now noticing there are a number of folders with McAfee still saved under Windows/System32 folder as well as AppData folder. Would this cause issues with the new antivirus running, given there are still some files/folders from the old one on the PC? Is it safe to delete these?


I have accidentally deleted some files. With rm.  It seems recovery is not so easy on Linux.  Is it some way I can do a image backup including the lost files (If they still exist)?  I should know the filesystem of course, don't remember -  but its a regular company CentOS.  Update: lvm2 pv.  Lost files are small text-files.


Using the SLDS system, I am having issues vertically centering the components. I am trying to have the street, city lightning:inputs and the search button the same level as the never,cold,active buttons, like in the picture below. Please advise!

                                     <lightning:input aura:id="bStreet" placeholder="Street Name"/>

                                     <lightning:input aura:id="bCity" placeholder="City"/>
                             	                                                  <button class="slds-button slds-button_brand" onclick="{!c.searchAddress}">Search</button>
                                     <lightning:buttonGroup aura:id="filterBtnGroup">                                         <lightning:button aura:id="btnNever" label="Never" variant="neutral" onclick="{! c.filterSelected }" value="never"/>                                         <lightning:button aura:id="btnCold" label="Cold" variant="neutral" onclick="{! c.filterSelected }" value="cold"/>                                         <lightning:button aura:id="btnActive" label="Active" variant="neutral" onclick="{! c.filterSelected }" value="active"/>                                     </lightning:buttonGroup>                                     <aura:if isTrue="{!v.clearBtnVisibility}">                                         <lightning:button label="X" variant="destructive" onclick="{! c.filterSelected }" value="clear"/>                                     </aura:if>


Why do the nilpotent and diagonalizable parts commute?

As part of an exercise I needed to decompose the Jordan form of a complex matrix into nilpotent and diagonalizable parts, and also explain why they commute. The decomposition is trivial since strictly triangular matrices are nilpotent, but I don't see - why do these matrices commute?


Is there a difference between foreach and map?

Ok this is more of a computer science question, than a question based on a particular language, but is there a difference between a map operation and a foreach operation? Or are they simply different names for the same thing?


when I run this command sudo apt-get update I get an error:  jan@janOS:~$ sudo apt-get update E: Type 'ain' is not known on line 3 in source list /etc/apt/sources.list.d/gwendal-lebihan-dev-cinnamon-stable-precise.list E: The list of sources could not be read.   I tired to install nemo. And then this happened after I added the ppa. I can't even purge it. How can I fix this? For some reason the software center does not want to open anymore also.  Another thing when I check for updates. I get this.


How can I easily install a newer version of python on Ubuntu 14.04 using apt-get without upgrading the entire OS?

I am stuck on Ubuntu 14.04 and upgrading to 15.10 is probably not an option. The highest version of python supported by Ubuntu 14 is 2.7.6. This is very old.  I want to install a newer version.    I understand that all I need is a .deb version of the software that I'd like to install. I think I just need to find a server that has this and added it to the list of repositories (/etc/apt/sources.list) and then apt-get will magically do the right thing.  However, I am going to want to break the rules and install newer versions of other software too. The more often I do this, the more likely bad things are to happen of course. However, I suspect that there are MANY people in my shoes who want to do the same thing. So maybe there is repository for rule breakers like myself can use to replace the official Ubuntu repositories?  Does such a magical repository exist?  If I add it to /etc/apt/sources.list, will apt-get install python give me a newer version of python than is available via the official repositories?


When I want to reduce the size of a molecule drawn with  I usually put a [scale=0.xx] before the argument of the command. However when I deal with aromatic rings this method doesn't work well, in fact only the carbon skeleton is resized: the 'aromaticity' is not and it's also out of center.  For example:  \chemfig[][scale=0.75]{**6(-------)}\quad   gives me:     How do I achieve a complete resize?


When I installed Ubuntu dual boot on my windows machine, I just did a 10 GB partition for installing the dual boot. But later I realized that I need much more than just 10 GB. Is it possible to just extend the disc space without uninstalling and reinstalling Ubuntu?


What types of questions should I ask in a cold-email to a professor?

I'm applying to a PhD program in computer science. My friends and advisors all recommend that I cold-email the professors I'm most interested in working with and have a conversation with them about their research. However, I feel like just asking something like "What type of research do you do?" would just come off as lazy since most professors already have information on their website.  So that leads me to wonder, what are some productive questions that I could actually ask professors in the context of a cold-email or scheduled phone call?


How do I get this uneven airbrush effect similar to old art deco posters?

This is an section from a poster made back in the 1920s or 1930s, that was made using an airbrush:    What interests me most is that it has a rough, spattered quality. It's as if the airbrush didn't work very well and sprayed unevenly, resulting in varying dot sizes where the paint landed.  I've tried to get this kind of effect with the airbrush tool in Photoshop, by manipulating scattering levels and trying various brushes. However, I can't quite get it.  However, when I've searched for Photoshop tutorials, anything under the term "spatter" is way more exaggerated than I need, and anything with a "vintage" or "grunge" level is about the overall style, not specific brush settings. At least, not that I've found.  How can I set my airbrush to get a gradient quality like the example picture, or something similarly uneven in quality?  Additional  This is a section of a poster from the movie The Rocketeer, which has a similar effect:


A better method to prove that $97 \mid 2^{48}-1$

Proving that a given numbers is divisible by an other number is often simple but when it comes to big numbers i don’t know how to deal with them.  Prove that $97 \mid 2^{48}-1$.  My Attempt: $$2^{12} \equiv 22 \mod 97 \iff (2^{12})^{4} \equiv 22^4\equiv1 \mod 97$$ $$\iff 2^{48} \equiv 1 \mod 97 \iff 97 \mid 2^{48}-1 $$ It seems short but the problem here is that $2^{48} \equiv 1 \mod 97$ Should be proven, but i’ve just used a calculator to prove it, So is there a better method to prove thi type of problem.


I would like to prove the following claim: If M is a transitive class such that Def(M) $\subseteq$ M, then $On^M$= $On$.   My own proof would start like this:   Proof. Since "x is an ordinal " is absolute ($\Delta_0$), we have $On^M\subseteq On$. Suppose that   $On^M \neq On$. Let $\alpha$ be the least ordinal in $On - On^L$. Then we will proof the following:  Claim: $\alpha = On^M$  Could someone help me to finish the proof ?


List[i][j] sets the value of the entire column

I am trying to make a simple Heads or Tales simulator in python. Each round has 3 coin flips and there is 100 rounds. I am simulating both the result and the win/lose and store it in a 3-by-10 list (or is it an array, those two seems somewhat entangled in Python). The code is as follows: import random as rng  N = 100  g1 = ["H", "H", "H"] # The guess of the outcome of the round  is_correct = [[None] * 3] * N outcomes = [[None] * 3] * N  ht = ["H", "T"]   for i in range (N):         for j in range(3):         val = ht[round(rng.random())]         outcomes[i][j] = val         is_correct[i][j] = val == g1[j]               print(outcomes) print(is_correct)  I want each round to have it's own outcome (i.e. 100 x 3 coin flips in the example above). But each row in the outcomes list/array seems to become exactly the same. What's going on...? I have made a screenshot during a break point. At this point it is at the fourth iteration (or something like that), yet all the elements are already set.


Find (and reinstall) packages with corrupted files (without breaking anything)

I usually prefer to fix a Linux system than to reinstall from scratch. My computers have seen many distribution upgrades and a list of PPAs or third-party repositories. APT usually makes sure that everything works in the end. However, the fact that the package manager thinks that all required packages are 'installed' does not guarantee that all the files are present on the file system.  Such a such situation may occur if you have to work-around dependency problems with dpkg --force-*. One could also reproduce such a situation by deleting a file from /usr as root.  Is there a simple way to verify whether all files belonging to an installed package are present?  If a such a problem package is found, aptitude reinstall fixes the problem.


How do i select multiple object Using Python Script?

I want to select Cube.001,Cube.002,Cube.003,Cube.004 at the same time. trying this script  bpy.data.objects["Cube.001","Cube.002","Cube.003","Cube.004"].select_set(state=True)   But is not working. What should i do to select this four objects ?


Dropping weapons to cast immediate spell with somatic components

While holding a quarterstaff, can you cast an immediate action spell with somatic components (such as Saving Finale) while ending your turn holding the staff in two hands? I have a player that claims that you're able to, the logic being that you can switch from two-handed to holding it in one hand as a free action and you can take "one or more free actions while taking another action normally" according to D20pfsrd FAQ switching from a two-handed to a one-handed stance is a free action. The logic behind not being able to do it is that you're not able to begin casting the spell if you don't have a free hand.


How large is it possible for a PC to get?  For clarity, here are my parameters:   This is about size categories, not 'feet' or 'inches' or 'meters' or any other precise measurement. This is about Medium to Large to Huge to Gargantuan categories.  This is for an NPC charlatan using this to trick people. (It's an NPC but will have a full PC sheet, so the distinction between PC and NPC doesn't matter). Any means of size category enlargement works for this purpose, including magic spells, magic items, etc. Illusions do not count because it's about actually becoming larger, not just casting an illusion of a gargantuan giant version of yourself.  The character must remain the same physical structure. Polymorphing into a Gargantuan Dragon would not satisfy the need here. Consumable items are fine. This does not need to be permanent.


I have some Object structs that look like this:  struct Object {    string type;    Color c;    float ambient, diffuse; };  struct Sphere: Object {    Point center;    float radius; };  struct Square: Object {    Point loc;    float len; };   And I have a vector that is filled with Sphere and Square structs:  vector<Object> objs; Sphere sp = //sphere stuff Square sq = //square stuff objs.push_back(sp); objs.push_back(sq);   I can access the values in the parent struct just fine, but I am having trouble figuring out how to access the values in the Sphere and Square structs. This is what I am doing right now:  cout << objs.at(i).type << endl; //This works cout << objs.at(i).center.x << endl; //Not working   Does anyone know how to do this?


After reading "," I tried to compile the following code:  \documentclass[tikz]{standalone} \usetikzlibrary{chains} \usetikzlibrary{qrr.shapes.openrectangle} \tikzset{nodes={rounded corners, text height=\heightof{f}, text width=\widthof{aaaa}, ultra thick, draw, open rectangle fill=blue!40, shape=open rectangle,   append after command={(\tikzlastnode.south west) edge[to path={rectangle (\tikztotarget)}, very thin] (\tikzlastnode.north east)}}} \begin{document} \begin{tikzpicture}[x=1.1cm, Start chain/.style={start chain=ch#1 going below}, Start chain/.list={1,...,4}, node distance=+2pt]\ttfamily \foreach \ch/\si in {1/{e, n, w, s},                      2/{nws, ews, ens, enw},                      3/{en, nw, ws, es},                      4/{, full, ew, ns}}   \foreach \Si in \si     \node[at=(right:\ch), on chain=ch\ch, open rectangle sides=\Si] {\Si}; \end{tikzpicture} \end{document}   but received the following error:  ! I can't find file `pgflibraryqrr.shapes.openrectangle.code.tex'. <argument> ...input pgflibrary\pgf@temp .code.tex   I checked my MiKTeX installation, and the epigraph package is included therein.  How do I resolve this issue?


How can I create hair using particle system as if it is modelled?

I'm creating a very simple character. I don't want to model hair to save time. I can do realistic hair using the particle system but it doesn't match the cartoonish style of my character. The hair needs to be modeled.   First try:  I played with the thickness of the hair and made it very thick and gave it cartoonish material. It looked pretty much like what I'm looking for but some hair didn't look well and it's hard to control  Second try:  I created an object that looks like a single hair. I used a particle system to instance it many times. It doesn't look great.   Is it possible to create something similar to the pictures using the particle system instead of modeling? How can I control it or What are the parameters?     Edit: I used exactly the same parameters as the other question suggested but I was out of luck! The differences are my mish was made of quads instead of triangles and I used an object instead of a Bazier curve.


Prove that the composition of Galois extensions is not neccessarily Galois

How would I go about showing that the composition of Galois extensions may not be Galois? I figure I can just provide a counterexample but I'm having a hard time thinking of any.


Is a transit visa required for a 12-hour layover in Kazakhstan?

I am an Indian citizen and planning to visit Russia on a tourist visa for about 15 days. I would be flying on Air Astana both on the onward and return journey.  My route is New Delhi - Astana - Omsk and my return journey will be Omsk - Astana - Almaty - New Delhi.  My question is: Do I need a transit visa for Kazakhstan? I do not want to leave the airports in Astana and Almaty and I will be inside them. The doubt I have is because the sector between Astana and Almaty will be considered a domestic sector and I am not sure if these two airports have a transfer / transit facility or zone between the international and domestic areas in the airports.  I did call Air Astana's New Delhi office and they said that a transit visa is required. Again I emailed them, and this time they said for any visa related query to contact the Kazakh Embassy in New Delhi. I called the Kazakh Embassy and all the gentleman kept saying was "Yes Yes Yes". Not sure if he understood what I was asking. I am even not sure if anyone in Air Astana understood me as well. I guess everyone thinks that I want to step outside the airport and see around. The fact is I am not interested. I just feel that paying US$ 90 for a transit visa is too expensive (being the fact that I am not even stepping outside the airport and just transiting the country for a mere 12 hours).  Can anyone help me? Has anyone traveled this route recently or have any answers to my doubts? I would be very appreciative.


Difference between NULL, 0 ,False and ''?

What is the exact difference between null, 0, false, and an empty string in PHP? Is null similar to None in python?


SObject row was retrieved via SOQL without querying the requested field on Contact.Account

I am getting this error:     SObject row was retrieved via SOQL without querying the requested   field: Contact.Account   Controller:  public class WrapperAccountCtrl {      public List<Account> acclist{get;set;}     public List<Contact> conlist{get;set;}      public List<MyWrapper> wap{get;set;}      public WrapperAccountCtrl()      {         acclist=[Select id,name from Account];          conlist=[Select id,name,AccountID  from contact where AccountID IN:acclist];          system.debug('Size----'+conlist.size());           wap=new List<MyWrapper>();           for(integer i=0;i<acclist.size();i++)          {              wap.add(new MyWrapper(conlist,acclist[i]));          }     }      public class MyWrapper     {          public Account accn{get;set;}          public List<Contact>conrec{get;set;}          public MyWrapper(List<Contact> con,Account acc)         {             accn=acc;             conrec=con;             }     } }   VF Page:  <apex:page controller="WrapperAccountCtrl" sidebar="false">       <apex:form >          <apex:pageBlock >              <apex:pageBlockTable value="{!conlist}" var="c">                  <apex:column value="{!c.account.Name}"/>              </apex:pageBlockTable>          </apex:pageBlock>      </apex:form>  </apex:page>


I am having a problem while playing .mkv files. Every time I play a .mkv file, the audio can be heard but video cannot be seen. The only way to see the video if I actually right click on it or put a window in front of it and it displays one part of the video but not all.    The link of the picture above basically describes what I am saying. While I was trying to take the screenshot, the window for the screenshot disappeared and displayed part of the video. I hope someone could help me on this. Thank you!   EDIT: I was running Unity 2D when I have the problem but when I run Unity 3D, it works. So I need to make this work on 2D. Please help.


A surjective homomorphism and normal subgroups

I'm reviewing group theory for a comprehensive exam and this question came up.    Suppose I have two groups $G$ and $K$ and $\varphi$, a surjective homomorphism from $G$ to $K$.  How can I prove that if $N$ is normal in $K$, then $\varphi^{-1}(N)$ is normal in $G$?  Here's my sketch: suppose that $N$ is a normal subgroup of $K$, then for each $k = \varphi(g) \in K$, we have the following:   $N = kNk^{-1}$  $\varphi^{-1}(N) = \varphi^{-1}(kNk^{-1}) = \varphi^{-1}(k)\varphi^{-1}(N)\varphi^{-1}(k^{-1})) = g\varphi^{-1}(N)g^{-1}$   Which, hopefully, shows that $\varphi^{-1}(N)$ is normal in $G$.  I just want to make sure I'm not missing anything major in my proof.    Thank you for your insight.


Can a Goblin boss redirect attacks to non allied goblins?

Goblin bosses can use their reaction to redirect a successful attack against them to another goblin within melee range by swapping places with the other goblin. (Source: MM)  RAW this ability does not state (unless I've missed it) that the goblin receiving the damage, that was originally intended for the Goblin boss, has to be an ally of the Goblin boss. This seems to imply that an enemy Goblin boss could use this ability to redirect a successful attack against a PC playing a goblin (Source: VGM) or a party allied NPC goblin?   Is this a correct RAW understanding, or have I missed something?  Has there been any official or semi-official clarification (Sage advice, relevant tweets, etc) that show whether this reading is "rules as intended"?


Why synchronized block is used in System.out.println, instead of synchronized method?

I checked implementation of System.out.println(), which is as follows and I have read  question.  public void println(int x) {     synchronized (this) {         print(x);         newLine();     } }   According to above implementation the lock is on this object, so what is the advantage of using synchronized block instead of synchronized method in the above case?


Would it be better to have one long form, and let the user scroll down the page, or split the form into 2 or more pages?  Usability wise, one disadvantage I can think of for having multiple pages, is changing info from previous pages is more tedious than just scrolling up and changing the info.   Aside from that, will it make my form seem shorter if it is split to two pages, with each page being about the length of one screen? (Please see my image below)


An object near the speed of light can become a black hole at high speeds?

If we use the Lorentz equation for the length contraction, and the Schwarzschild equation for the lightlike sphere, we can calculate the velocity for the object to form a black hole:  $ \Delta x^{'}=\Delta x\,\sqrt{1-\dfrac{v^2}{c^2}}\,\, $ --> Lorentz formula  $ r_{\text{s}}=\dfrac{2Gm}{c^2}\,\, $ --> Schwarzchild formula  $ 2r_{\text{s}}=\Delta x^{'}\,\, $ --> to a sphere  $ 2\left(\dfrac{2Gm}{c^2}\right)=\Delta x\,\sqrt{1-\dfrac{v^2}{c^2}} $  $ v=c\,\sqrt{1-\left(\dfrac{4Gm}{\Delta xc^2}\right)^2} $  Is this correct? Is this the speed that the object, in the spherical case, would have to attain to become a black hole?  Sorry for my English and little knowledge of physics, I am a freshman student in a university in Brazil.


What is the idiom or single word for a person who just talks high-flying to show himself important and powerful? But, in actuality, he is not what he tries to portray himself as.


Clock hands moving to take each others places.

This is from 2012 Euclid. I was wondering if someone could point out the flaw in my reasoning here: Let the minute hand point to $50+x$ minutes. Then the hour hand points to $45 + \dfrac{50 + x}{12}$ minutes because the hour hand moves at a rate 1/12 that of the minute hand. Since the hour hand will move from $45 + \dfrac{50 + x}{12}$ to $50+x$ the number of minutes it travels is $50+x -45 - \dfrac{50 + x}{12} = \dfrac{11x + 10}{12}$ but since the minute hand travels to $45 + \dfrac{50+x}{12}$ and the hour travels to $50+x$ we know that x = $\dfrac{45 + \dfrac{50+x}{12}}{12}$ and x = $\dfrac{590}{143}$ Plugging this into $\dfrac{11x + 10}{12}$ we get 60/13 and we divide by 12 to convert minutes to hours, for a total of 5/13 hours. The correct answer is 12/13. I was hoping someone could point out the error in my solution, rather than providing a new one, as I have seen better ways to solve this using angles, but would like to see the error here.


Does light or waves have any kind of mass?

Just like the previous question,  Even I have been studying Hawking's A Brief History Of Time and even I was thinking of Einstein's General Relativity. But I was unable to accept his view of GRAVITY. I have been working on a theory which needs that Gravity effects Light. And so my question is that, Is there any kind of mass for Light? as it was being effected by Gravity?    Excuse me if any mistakes were done.   Plzz answer me.


Duplicate message may incite making more duplicates

I were stumbling through a question that was marked as a duplicate when I saw this warning and though it did not make much sense:     This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.   It did not explain the person had to explain why none of the answers in the duplicated questions could address the reason. Also it simply incited the 2nd person to make another duplicate!  It should instead be changed to:     This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question that describes why the duplicated questions does not solve the issue (or, if the reason isn't clear, just the fact).


putting rectangle inside tabular environment

Someone can help me to do like this exemple :


How to hide "Share", "Copy Link", "Copy to" buttons in my site?

I'm using SharePoint Online modern UI.  And, I want to hide Quick edit, Sync, Export to Excel, PowerApps, Automate, Share, Copy Link, Copy to from my site.  Please check below picture.     I found the easy solution about PowerApps, Automate, Sync buttons in below URLs.        But I can't find solution other buttons. I don't want to use SPFX if possible, but is there no choice to use SPFX?


Mouse pointer lag on Ubuntu 16.10 correlated with use of graphics card

I am having problems with laggy mouse pointer movement in Ubuntu 16.10. The problem only occures after graphic intensive activities such as playing 1080p videos, browsing high-res images or playing games. When it appears, it persists until I reboot my computer, even logging off and on doesn't help. Also, the problem only appears when I am using integrated touchpad of my notebook - when I connect a USB mouse the pointer moves as usual (but it still lags when I try to use touchpad). I am using NVIDIA GeForce 940MX card with NVIDIA binary driver 367.57.


argument not recognized in second set of braces in newenvironment

In the following code, versionB doesn't work. the argument/parameter #1 seems to be not recognized when in second set of braces. any help?  \newenvironment{versionA}[1] {#1} {}  \newenvironment{versionB}[1] {} {#1}  \begin{versionA}{5} Hello world! \end{versionA}  \begin{versionB}{5} Good Bye, cruel world!   \end{versionB}


Is "a couple of something" plural or singular?

Which of the followings is correct?        There are still a couple of months left until the end of semester.   There is still a couple of months left until the end of semester.


How to create a cable/wire for animation?

So I've created a "noodle" with a path and a bezier Circle that has soft body so that when I click play it will drop and flop about.    What I'm trying to do is have one of the cubes stationary while the other moves around having the noodle between them stretch and move around like its a cable.   Any tips on this?


How to separate objects created using mirror modifier in Blender?

I am using Blender 2.56. I created all body parts of humanoid model.   I used mirror modifier on individual body parts separately. Now I have to merg all the parts to make full body.  Now my question is I want to make changes on only left hand not on both of them.  But mirror modifier is making the changes on both at a time. I applied the mirror modifier even then when I am coming to edit mode and doing some changes both hands are getting modified.  How to separate those both hands and make them independent ?


I am really confused please help me!  I want to find the resistance between a and b! But i am not able to understand which resistances are in series or which are in parallel!   What i think- e and a are in series, then they are in parallel to c! Then c and d are in series and they are parallel to b!  But the answer isn't correct!   Please tell me where i am wrong! Thank you ... and please tell like i told you my answer!