I have a custom post type in my plugin named members, along with two custom fields; first_name and last_name. I am trying to order my listing my the last name, then the first name. The only solution I have found is one that utilizes a function to pull in the first two query meta fields and replaces them (I followed a tutorial at dotnordic.se). However, whenever I try this I have no posts returned. I have posted my code below. Any help on fixing the problem I have with my code or suggesting another way is greatly appreciated.     // Shortcode Function   function mba_members_list_code() {    // WP_Query arguments   $args = array (   'post_type'       => 'member_data',   'post_status'     => 'active',   'fields'          => 'ids',   'posts_per_page'  => -1,   'meta_key'        => 'last_name',   'orderby'         => 'meta_value',   'order'           => 'ASC',   'meta_query'      => array(     array(       'key'         => 'first_name',     ),     array(       'key'         => 'last_name',     ),     array(       'key'         => 'publicly_listed',       'value'       => 'true',     ),   ), );  // The Query $posts = get_posts( $args );  // The Loop if( $posts ) {    echo "Total Members Found: " . count($posts) . "
";     foreach ( $posts as $post ) {       $q = get_post_meta($post);       echo "" . $q['first_name'][0] . " " . $q['last_name'][0] . "
";       echo $q['city'][0] . ", " . $q['state'][0] . " " . $q['zip'][0] . "
";       echo "" . $q['email'][0] . "
";       echo "
";     }    unset( $post );        }else{   echo "Sorry, we found no active members. Please be sure to check back soon."; } }   EDIT  function customorder($orderby) { global $wpdb; return ' {$wpdb->postmeta}.meta_value, mt1.meta_value'; //return str_replace('menu_order', 'mt1.meta_value, mt2.meta_value', $orderby); }   I know that there are other questions on this with an answer to implement this same function; however, whenever I implement it, I have no records/posts returned.


I know what anti-matter is and how when it collides with matter both are annihilated. However, what about anti-photons? Are there such things as anti-photons?  I initially thought the idea preposterous. However I am curious because, if anti-photons don't exist, then anti-matter could theoretically transfer its energy to normal matter - through the mechanism of light. Is it right?


Pasting hyperlink as text with leading space leads needlessly to broken links

When inserting a link via the SE editor it happens a lot that a broken link is generated.  This seems to happen because a link is selected as text and pasted into the box.  The result is a generated http://%20https:  Reason: If the selection contained a leading space, the editor assumes to insert http:// would be the right thing to do. It is often not. This space is very hard to make out in the box, and the generated link is inserted at the bottom of the editor window, often out of sight.  Since the resulting construct is senseless and uniform, please add a logic that either strips out this leading space in hyperlinks or checks for the presence of http://%20https: and deals with it.


SVN accidently committed file with password

Short question: I've been very stupid and accidently commited a file with a password (in plain text) in it that I really do NOT want on the SVN server. So I panicked, deleted the password and commited again, but it's still in the log...  I permanently want to delete this password from the server, so it can't be retrieved by anyone anymore.  Is this possible?  If I revert to a version before the password and commit again, will it be deleted forever?


Passing a property's type extracted with reflection as T

Suppose I have a Person class that looks like this: Person {     public string Name {get; set;}     public string Age {get; set;} }  And I have a method that takes a type T and a string as parameters someMethod<T>(Action<T> someAction, string propertyName)  Is there a way to do something like this for each of a Person instance's property Person p = new Person(){};  foreach(var propInfo in p.GetType().GetProperties()) {     someMethod<propInfo.PropertyType>(someAction, propInfo.Name) }


Which package provides lgtk-3 on Ubuntu 18.04?  Trying to compile c program "Hello World" :  >> gcc -Wall -g helloworld.c -o helloworld `pkg-config --cflags gtk+-3.0` \    `pkg-config --libs gtk+-3.0` gcc: error:  -lgtk-3: No such file or directory   gtk+-3.0.pc contains line:  I have tried all ubuntu searches as others suggested but I have gotten no matches. Can not find lgtk-3!     Libs: -L${libdir} -lgtk-3  causing the error. Obvious I have not downloaded all GTK libraries required. What am I missing?    Went back and downloaded gtk+3.0_3.22.30.orig.tar.xz and performed a re-install. This cleared up the missing library problem.


Smaller-than symbol ('<') in \text environment gets converted into upside down exclamation mark

I want to typeset the < symbol in a string of text inside a math environment using the \text command from the amsmath package. However, for some reason it render something like  \text{<-wrt}   to  ¡-wrt   Why does amsmath do that, and how can I stop it from 'interpreting' my text?


I am trying to create a folder by having a user typing the name of the folder:  Scanner scanner; String inputUser;  public void createDir(String input){     System.out.print("Please enter name of Folder: ");     this.inputUser = this.scanner.next().toUpperCase();      File makeDir = new File("C:\\" + this.inputUser);      try{         if(!makeDir.exists()){             makeDir.mkdir();             System.out.println("You have created directory " + makeDir.getName());         }else{             System.out.println("Directory with name " + makeDir.getName() + " already exists.");         }     }catch(Exception e){         System.out.println("Error while creating directory name " + makeDir.getName());     } }   but every time when I run it I am getting the following error message:      Exception in thread "main" java.lang.NullPointerException   Please enter name of Folder:    at filemanagerapp.FileManagerSystem.createDir(FileManagerSystem.java:68)       at filemanagerapp.FileManagerApp.main(FileManagerApp.java:42)   Java Result: 1  I have noticed that the line that is causing the problem is this.inputUser as when I remove it and try hard coding the name of folder to create, it creates normally with no problem, but I want user to enter name of folder if possible.   Can anyone tell me why this error is happening?


How to get 1 or 2 decimal places in Java with float data type

Im having problems with float data type in getting 1 or 2 decimal places only..  but if you look at the code seems okay to me but the output is different.. I dont want to convert into string yet co'z I need to do something else before the printing them out..  Just for testing purposes I did this literally. There are variables and workarounds just to simplify everything. It suppose to end at 12.8 but it yields 12.8000001 that's why it skips my testing..  float oh=11.0f;     int retval=1;       while (oh<=12.8)         {         //System.out.printf("%-11s",dec_format.format(oh)+'K');      System.out.println(oh);         oh=oh + 0.3f;      }   output is: 11.0 11.3 11.6 11.900001 12.200001 12.500001  It should end at 12.8 and why with ....00001??


In the James Bond universe most characters go by a code name M, Q, the various 00s, In Skyfall Silva is a made up name.  Others such as Tanner, Robinson and Moneypenny, Trevelyan we're not so sure but we've got no reason to believe they're real.  However Bond uses his own name - we've even seen the grave of his parents to confirm this.  Why does Bond use his real name and (as far as we know) no one else does?


What this quantum field operator represents $ b_{in}(t) = \frac{1}{\sqrt{2 \pi}} \int e^{-i \omega t} b(\omega)$?

In      Input and output in damped quantum systems: Quantum stochastic differential equations and the master equation Physics Department, Uniuersity of Waikato, Hamilton, ¹tuZealand (Received 29 October 1984) C. W. Gardiner and M. J. Collett   We consider a quantized electromagnetic field that will interact with a quantum system.  This field thus have annihilation & creation operator associated to the photons of frequency $\omega$.  In this article, they define the following inverse fourier transform:  $$ b_{in}(t) = \frac{1}{\sqrt{2 \pi}} \int e^{-i \omega t} b(\omega) d \omega$$  Where $b(\omega)$ is the operator : "annihilation of photons at frequency $\omega"$  My question is: What does physically this operator $b_{in}(t)$ represents? I see it is the inverse fourier transform of the annihilation operator but what does that physically mean?   Is it like "destruction" of a wavepacket at the time $t$ ? Like if I see the amplitude of the field in function of time, it will create "a hole" in the amplitude at the time $t$ on a timescale $\Delta t$ ?


Is this sentence correct?      I am to win the competition.   With this sentence I want to say that I must win the competition.


An ant is to walk from $A$ to $B$. Calculate the number of paths.

An ant has to walk from the left most lower corner to top most upper corner of $4 \times 4$ square.  However, it can take a right step or an upward step, but not necessarily in order. Calculate the number of paths.


Retrieve my comments on friend's Facebook posts

I remember I commented on a friend's post some years back, but I cannot find the post. Also, in our friendship page I have no access to posts where we both interacted.  Given a friend, how can I retrieve all his/her posts where I commented on?  Is it possible that some posts where I commented are now hidden to me?


Differences between the introduction of a sandwich thesis and a paper

I would like to know what are the main differences between the introductory part of a paper and of a thesis. My thesis would be a sandwich type, so I would have to wrap everything there.  Some of the differences are:   Longer in thesis. Deeper in thesis. Extended definition of key terms, concepts and methodology in thesis. Clear definition of the whole goal in thesis, whereas paper smaller goal.   To narrow the possible answers, I do research on the molecular aspects of the infection steps of a pathogenic swine bacteria. Also develop strategies to block infection by using vaccines.


Uncredited roles? Why do some actors go uncredited?

I noticed on some shows on IMDB actors are listed, but as uncredited, especially for major actors.  Is this to do with the Screen Actors Guild, or for other reasons?  Peter Capaldi went uncredited for his first Doctor Who appearance (during the Matt Smith era, the Eleventh Doctor), but this was presumably to maintain suspense or something like that - I can't remember what.  It was interesting to note that Amy Acker appeared at least twice, uncredited, on the BBC's Holby City, once in 2015, once in 2016. However, she didn't get a listing in the end credits of Holby City. Since this show is a British production I'm not sure if SAG counts or not for this here. (I am from the United Kingdom, and watch a fair few BBC shows anyway)  Would this count as a cameo appearance, or as an extra?  I have no idea why the appearance was, but would be interested to know why some go uncredited.


How to extract substr following the matching value

I have the following string, from which I want to extract the value of the key2 which is value2  [key1=value1,key2=value2,key3=value3]   I tried giving the following regex ,key2=(.*),\w+but it is extracting ,key2=value2,key3but I am want only the value value2  What regex can be used for this one?


Prove that $\alpha(t)$ lies on a sphere given that $\alpha(t)-a$ is orthogonal to T(t)

Let $\alpha(t)$ be a regular curve. Suppose there is a point a in R^3 such that $\alpha(t)-a$ is orthogonal to T(t) for all t. Prove that $\alpha(t)$ lies on a sphere.  So we know   $<\alpha(t)$ - a, T(t) > $= 0$  and so it follows that   $(\alpha(t)$ - a) ($\alpha'(t)) =0$  But where do I proceed?


\fancypagestyle does not affect the first page of the chapter. Why? How to modify that?

\fancypagestyle{myfancy}{ \fancyhf{} \fancyhead[LE,RO]{\slshape\nouppercase{\leftmark}} \fancyfoot[LE,RO]{\tikz[baseline={(0,0)},anchor=center] \node[label={center:\thepage}]{\includegraphics[scale=.25]{apple}};}% \renewcommand{\headrulewidth}{0.4pt} \renewcommand{\footrulewidth}{0.4pt} }   The above code generates the following output for chapters and sections (if needed):  First is header and second is footer     However, when initializing a new chapter, these setting don't appear. I don't want the header to appear but the footer is compulsory. How do I add the footer when starting a new chapter as shown?


Which words count for a double word score?

In Scrabble, if you make a new word and one of your letters adds onto another word making a whole new word, but this letter falls onto a double word score and you want to count it for the higher word score (the word you added the letter to) can you do this?    My dad is trying to say you can only count the double word score for every new word you make but by adding this one letter to a previous word, I think I am making a new word so that should count as well.


How can Excel open a .txt file and keep 0x0D chars and foreign chars ß ä? The file is tab delimited.  Windows 7, Excel 2010    Edited ten minutes later.  I drag and drop one .txt file and it works fine.  I drag and drop a second .txt file and it does not.    The second .txt file appears to be a different encoding.  They both display fine with NotePad.


I have an excel formula: =(3+2)/2 which outputs: 2.5 I want the cell to appear exactly like: (3+2)/2 and also use it in calculations. Is there a way to do this?


Answered as comunity wiki, now how to revert it?

I have answered a question on stackoverflow with status of community wiki. Now I want to revert it as a user.   Is there any way to revert this answer to non-community wiki status ?


So I have a old Pentium 3 PC with Debian LXDE(but I would just prefer to SSH into it's terminal) and an HP probook 4530s laptop with Ubuntu 15.04.  My laptop is connected via wifi to my home router. My old PC however has driver problems with it's wifi and the drivers had some make error which I don't want to look into ATM. However I have a crossover cable connected to it and my laptop. So this is what I want to do:  1)Connect my laptop and PC to a static network hosted by my laptop. 2)Share my laptops internet connection to that new static network.  Note:I used to know how to do static networking with Cisco, but I think I forgot some key things. The version of Debian is 8.20 and I would like to use it as a server.


When using an original quote in a document that already includes [] square brackets, how would that be set apart showing that it is the original quote if it already contains the square brackets. What punctuation should be used?


Excel: how to permanently apply conditional formatting to the whole spreadsheet?

I have the following annoying problem with Excel 2010. I use Conditional formatting to apply bold formatting to each line of the spreadsheet that meets a condition expressed by a formula. In the "applies to", I write =$A$2:$Q$149, which is the current extent of my spreadsheet. But I want this range to grow with my spreadsheet, i.e., I want the formatting to permanently apply to the whole spreadsheet. Regularly, my "applies to" field is transformed into a complex range, that selects most lines of spreadsheet, but not all, like =$A$2:$Q$138;$A$140:$Q$147. Have you ever encountered such a problem? Is there a solution?


New review system showing deleted answer

I was reviewing some stuff today, and I came across a rather ridiculous answer (see screenshot). I wanted to see the question and other answers, so I clicked on the link, and found that the answer I was reviewing was in fact deleted. Could someone take a look at it?


Doing division on a Decimal returns 0 when trying to return a percent

When I run the following code, it will return a 0. It should return 50.00.   System.Debug((100/200)*100);     I'm certain this is a simple solution. But haven't been able to find out the reason why. I have also tried it with decimals i.e.   System.Debug((100.00/200.00)*100);


Flying to US with German & Iranian Passport

I'm from Germany and me and my friends want to fly to Las Vegas, America. I was there two years ago with my parents and now I want to make a roadtrip with my friends in July 2016.  The problem in this case is that I got a German and Iranian passport. Two years ago, it was not a big deal, when I was signing myself for ESTA, but now I read something about a new law, where it's not allowed for German citizens who got an Iranian passport to fly to the US with the regular ESTA Program.   My question is therefore:   Is this law already applied ?  And if no, can I sign myself up for ESTA right now? Is it regular counting for two years ? So if this new law is coming, I'm not concerned with this matter, because I sign myself up, when the law was not applied? I would then sign up today and fly in July 2016. That's what I'm thinking about. The last time I signed myself up for the ESTA Program, we got a hotel in Vegas, which I also write in the program form. In this case, we want to book the hotel when we arrive in Vegas and not from Germany (it's cheaper to book in Vegas) so we don't have an address right now. So, it's OK, when I don't have adress where we're gonna stay? Or can I write in the hotel we want to stay? I'm worried that our case will be denied, if we don't have a stay.


What is the rate at which the field of an electron spreads?

There are 2 steps in the creation of a force field: (1) first the object comes into existence (2) then the field appears. In the case when a photon splits into an electron and an antielectron, these 2 bodies suddenly pop into existence, whose electromagnetic and gravitational fields then come into existence. what is the rate at which they spread?


I am using a Qualcom Broadband (EVDO) dongle on Ubuntu 13.04. I have used this dongle well for a number of days on Ubuntu 13.04 but recently I had to do a fresh install of Ubuntu 13.04 but when I try to use the dongle the option for Enable Mobile Broadband keeps unchecking itself and I get a "not enabled" as the name of my connection. After a few tries of checking the Enable Mobile Broadband option I get this  error :  "Creating Object path /org/freedesktop/NetworkManager/ActiveConnection/6 failed in libnm-glib"


How do I technobabble without sounding like technobabble?

On occasion, I've had reason to describe obviously fictional technical processes in-character. I'd like to be able to describe on these occasions without sounding like I'm saying utter gibberish. But it's not straightforward to do, particularly if I have to make stuff up on the spot.   How do I do it?


I have   $string = "temp";   I want extract string value and make new variable (array) :  $temp = array();   is possible?


Surprising result between determinant of a matrix and product of Euler totient function $\prod_{i=1}^n\phi(i)$

Let $A$ be the $n$ square matrix with as entries the greatest common divisors of the respective indices: $(A)_{i,j}=\gcd(i,j)$, $$A=\begin{Bmatrix}\gcd(1,1) & \gcd(1,2) & ... & \gcd(1,n) \\ \gcd(2,1) & \gcd(2,2) & ... & \gcd(2,n) \\ \vdots & \vdots & \ddots & \vdots \\\gcd(n-1,1) & \gcd(n-1,2) & ... & \gcd(n-1,n)\\\gcd(n,1) & \gcd(n,2) & ... & \gcd(n,n)\end{Bmatrix}$$ ok so $\phi(n)$ denotes Euler's totient function, then $$\det(A)=\phi(1)\phi(2)...\phi(n)=\prod_{i=1}^n\phi(i)\quad\quad(1)$$ this can permit us to determine $\phi(n)$ if we know the values of $\phi$ for the numbers less than $n$ because $$\underbrace{\det(A) = \sum_{\sigma \in S_n} \mathrm{sgn}(\sigma) \prod_{i=1}^n a_{i,\sigma_i}}_{\text{Leibniz formula}}\to\dfrac{\det(A)}{\phi(1)...\phi(n-1)}=\dfrac{\sum_{\sigma \in S_n}  \mathrm{sgn}(\sigma) \prod_{i=1}^n a_{i,\sigma_i}}{\phi(1)...\phi(n-1)}=\phi(n)$$ but idk if this is useful        so (1) is a surprising result, but how to prove it?   are there similar examples where $(A)_{i,j}=f(i,j)$ and $$\det(A)=\prod_{i=1}^n g(i)?$$


So there's a video by Zyph and according to him it is possible but it is 1.8 and you have to have resistance level 5 to survive /kill but can you survive this op command in 1.16?


Is it possible to downgrade an OEM Windows 8 install to Windows 7?

I recently purchased an ASUS K55A. Like all Windows 8 machines, it come with a UEFI feature called Secure Boot. This basically makes sure that the laptop won't load anything other than the Windows 8 OEM version that came with it.  However the Asus UEFI allows for me to disable Secure Boot, and therefore I should be able to revert to Windows 7, Linux, etc. (drivers may or may not be supported). When I insert my Linux Mint boot disc and try to boot from it, though, nothing happens. There isn't even a boot priority list in the UEFI settings (I can provide screenshots later). It just says "Windows 8 Bootloader" and also on the other tab it says "WINDOWS 8 BOOT OVERRIDE".  Has anybody purchased a Windows 8 machine and successfully installed Windows 7 or Linux on it?


Finding a friend on Overwatch by in game name

As per a suggestion from the OW university/comp subreddits I have been recording my matches to look for ways to improve myself.  During one of these reviews I noticed one match where I sent a friend request to the wrong person. The dude was super positive, doing great and communicating. When I looked up someone else had their mic open, thought it was my new friend ,and I sent it to them instead. I was actually sad that I didn't get a response but went on with life.  So now I need to find this guy, he's long gone from my recent groups and typing his name in isn't giving me any results because I need the battle tag. Looks like you can only add by recent players, battle tag or directly from battle.net  Am I missing something simple/dumb here?  Dupe edit: This match was weeks ago and the player is not in that list. I have no way to contact them. All I have is their in game name that I can see from the replay I recorded. The linked duplicate does not address this scenario.


How can I pass arguments to a batch file?

I need to pass an ID and a password to a batch file at the time of running rather than hardcoding them into the file.  Here's what the command line looks like:  test.cmd admin P@55w0rd > test-log.txt


Does the review queue page show only reviews requiring your action? Does it differ, and when does it?

This confusion came up in comments .  On the site I use most actively (RPG.SE), I've noticed that the counts for each review queue appear to only indicate the reviews available to me requiring my action. Just to be clear, I'm talking about this number here:        Since I'm a 10k user, that's pretty easy to tell: even after doing all my reviews, and the review page saying there's 0 items in each queue, I might still have that 10k notice in my top bar saying there's [5] reviews pending, or some other number. So they must still be there, just waiting on other users to finish them, and it just doesn't show them to me. This is fine, I like this behaviour.  However, on Meta SE about an hour ago, there was 1 item in the close vote review queue. I reviewed that item. The count stayed at 1 on the review page. When I clicked to re-enter the queue in case there were new items, I was presented with this:        Another user in that meta question I linked claims this is normal behaviour for them on their own site (Christianity.SE I think?).  What's going on here? Are the review queues supposed to be customised just to what I personally can actually review at the time? Is there a bug, are sites customised differently, or is there just some kind of caching thing leading to a time delay on the review count getting updated? (As they say, it is always caching, but is caching really the culprit here too?)


The usage of "It was" with "could we" in the following sentence seems intuitively wrong, but I don't know how to properly explain it: "It was only after they were observed, could we explain certain phenomena."  These seem better: "Only after they were observed, could we explain certain phenomena." or, "It was only after they were observed that we could explain certain phenomena."  And these seem better yet: "Only once they were observed, could we explain certain phenomena." or, "It was only once they were observed that we could explain certain phenomena."  Could someone enlighten me as to the grammatical concepts at work here?


Why does Edo Tensei Madara have Rinnegan?

Edo Tensei restores a person the way they were at the time of their death. When Madara died, he was wrinkly and old. How come Edo Tensei Madara is brand new? Rinnegan is not a kekkei genkai/tota. Why does Edo Tensei Madara still possess the Rinnegan when, at the time of his death, he wasn't possessing Rinnegan (because he implanted them onto Nagato)?  Madara lost vision in one eye due to usage of Izanagi, but after awakening the Rinnegan, was he able to restore his Eternal Mangekyou Sharingan that he lost?


Saving Minecraft worlds to transfer after iTunes backup

My daughter's iPad has a cracked screen and is being replaced by Apple under AppleCare Plus. I have backed up the iPad Mini to iTunes and I planned on restoring the new iPad from this backup. However I am told that the Minecraft worlds she worked so hard on to create will not be restored this way. I need to know how to save those worlds in iTunes backup so it restores to the new iPad. Clear instruction would be highly appreciated.


Calculate expected values using logistic regression coefficients

The outcome of the logistic model is binary (0;1) - intervention that occurs in hospital (3838 interventions in 51096 cases). I am modeling the effect of age groups (60 to 74; 75 to 89 and 90+) and sex (female) on the outcome. My reference age group is male aged 18-59.  My logistic regression coefficients look like this:  intercept  -4.313 female      0.5117 age 60-74   0.4081 age 75-89   1.1761 age 90+     1.5612.   Corresponding odds ratios:  female      1.668 years60_74  1.504 years75_90  3.242 years90     4.764   Now I am trying to obtain a probability of an outcome = 1 for each case. What is the right way to do this?


Intuitive explanation for $\mathbb{E}X= \int_0^\infty 1-F(x) \, dx$

I can see by manipulating the expression why $\mathbb{E}X$ works out to be $\int_0^\infty 1-F(x)\,dx$, where $F$ is the distribution function of $X$, but what is an intuitive explanation for why that is true? If at each point we sum the probability $\mathbb{P}(X>x)$, why should we end up with the expectation?  Thanks


How to make changes in a swing jframe from a thread

I'm working with swing in Java and in my program I have to make some calculations. These calculations take a lot of time so I decided to create a thread for these calculations and from the thread, change the gui.    The problem is that when the thread completes the calculations, add information in a tab of a jtabbedPane but when I try to change the title of this tab it use the method setTitleAt and call updateUI() and the program throw the following exception:  Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at javax.swing.plaf.synth.SynthTabbedPaneUI.getFontMetrics(Unknown Source) at javax.swing.plaf.basic.BasicTabbedPaneUI$TabbedPaneLayout.calculateTabRects(Unknown Source) at javax.swing.plaf.basic.BasicTabbedPaneUI$TabbedPaneLayout.calculateLayoutInfo(Unknown Source) at javax.swing.plaf.synth.SynthTabbedPaneUI$2.calculateLayoutInfo(Unknown Source) at javax.swing.plaf.basic.BasicTabbedPaneUI$TabbedPaneLayout.layoutContainer(Unknown Source) at java.awt.Container.layout(Unknown Source) at java.awt.Container.doLayout(Unknown Source) at java.awt.Container.validateTree(Unknown Source) at java.awt.Container.validateTree(Unknown Source) at java.awt.Container.validateTree(Unknown Source) at java.awt.Container.validate(Unknown Source) at javax.swing.RepaintManager$2.run(Unknown Source) at javax.swing.RepaintManager$2.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) at javax.swing.RepaintManager.validateInvalidComponents(Unknown Source) at javax.swing.RepaintManager$ProcessingRunnable.run(Unknown Source) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.awt.EventQueue.access$200(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source)   Is it posible that this error appears because the call it's maked by the thread?


Change Activity toolbar Title from fragment

I cant solve this simple problem. i have Main activity,it has a toolbar and a fragment.  Main Activity xml:  <?xml version="1.0" encoding="utf-8"?> <LinearLayout     android:orientation="vertical"     xmlns:android="http://schemas.android.com/apk/res/android"     xmlns:app="http://schemas.android.com/apk/res-auto"     xmlns:tools="http://schemas.android.com/tools"     android:layout_width="match_parent"     android:layout_height="match_parent"     tools:context="com.dimfcompany.macapp2.MainActivity">      <android.support.v7.widget.Toolbar         android:id="@+id/toolBarTest"         android:titleTextColor="@color/macYellow"         android:title="dsfsdf"         android:layout_width="match_parent"         android:layout_height="60dp"         android:background="@color/macRed">       </android.support.v7.widget.Toolbar>      <fragment         android:id="@+id/testfrag"         android:name="com.dimfcompany.macapp2.fragtest1"         android:layout_width="match_parent"         android:layout_height="match_parent"         ></fragment>  </LinearLayout>   MainActivity Java  public class MainActivity extends AppCompatActivity {  Toolbar toolbar;  @Override protected void onCreate(Bundle savedInstanceState) {     super.onCreate(savedInstanceState);     setContentView(R.layout.activity_main);     toolbar=(Toolbar)findViewById(R.id.toolBarTest);     toolbar.setTitle("BLDFLDSF"); }  public void setToolBarText(String text) {     toolbar.setTitle("dsfsdfsdf"); } }   Setting title in MainActivity.java onCreateMethod works. Then i want my title to change if fragment content changes. In my fragment I have the onViewCreated() method and I'm trying to change the title from this method.  public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {     ((MainActivity)getActivity()).setToolBarText("FragmentTitle");      toolbar=(Toolbar) view.findViewById(R.id.toolBarTest);     toolbar.setTitle("FragmentTitle"); }   I tried changing it directly and changing with calling method setToolBarText in MainActivity.  I always have an exception   Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.v7.widget.Toolbar.setTitle(java.lang.CharSequence)' on a null object reference   What i am doing wrong?


Why do row equivalent matrices have the same row space?

so I understand row space of a matrix X to mean the subspace of $R^n$ spanned by the row vectors of A  Here is the text that is in question:    Can the rows of B be written as a linear combination of A just because they are row-reduced from A?  Say we have matrix:  $$\begin{bmatrix} 1 & 2 \\ 3 & 8 \end{bmatrix}$$ $$ -> \begin{bmatrix} 1 & 2 \\ 0 & 2 \end{bmatrix}$$  How is the row-reduced matrix a linear combination of A?


I am trying to implement sed replace with shell variables. As far for now I have working sed replace with '  sed -i -r 's#(export\ PATH=")(.*)#\1/home/USER/bin:~/.local/bin:\2#' ~/.zshrc   But unfortunately ' does not expand shell variables just as stated in this answer   While trying to use " I keep getting problems with parentheses etc. I would like to make this generic to always use whoami instead of USER  The first attempt would be   sed -i -r "s#\(export\ PATH=\"\)(.*)#\1/home/`whoami`/bin:~/.local/bin:\2#" ~/.zshrc sed: -e expression #1, char 60: invalid reference \2 on `s' command's RHS   EDIT  I have tried   sed -i -r "s#\(export\ PATH=\"\)\(.*\)#\1/home/$(whoami)/bin:~/.local/bin:\2#" ~/.zshrc   to escape the second group but I get the similar error :   sed: -e expression #1, char 63: invalid reference \2 on `s' command's RHS


I am developing a game and I load 52 Bitmap files using BitmapFactory, and when running the App. I receive OutOfMemoryError. Is that because the images in the drawable folder are .JPG and not .PNG? Please let me know how to solve this issue.


I have noticed a programming style in Embedded C, used for firmware programming:  #define WRITE_REGISTER(reg, value) \         do { \            write_to_register(reg, value); \         } while (0)   How does this do...while (0) help over:  #define WRITE_REGISTER(reg, value) write_to_register(reg, value)


Estimate the size of the extracted files before extraction a `tar.gz` archive?

Before using tar to extract a .tar.gz archive, it is possible to get an estimate of how large the extracted files are in total?


Not able to Run dataloader on win10 32 bit?

I have installed ZULU openJDK 11. on my windows 10 32 bit machine. Also installed dataloader.Not able to start the dataloader.


How to run python script after I close terminal?

Sorry for the lame question, I faced VDS for the first time in my life. I've set everything up, installed all python modules the app needed and after I run my script like python test.py  it works just ok, but after I close my ssh window that i used for remote connect to my VDS - the script doesn't work anymore. How to run my test.py to make it work 24\7?


Addition is to Integration as Multiplication is to ______ ? Everyone knows that definite integration  is "a way to sum continuum-many terms" in a rough sense. Can we "multiply continuum-many factors"  in a similar sense?


Unable to interact with element after class change

Im sure this is common problem when dealing with javascript, but I can't seem to find a solution for it.  Im trying to create two functions on a "card", but differentiated by a class of the state of the card.  One function to "start" the card and one function to "remove" the card. But when I start a card, Im not able to remove it with the same function.     html
click to hide

click to start
   js  $(".card.not-started").on("click", function () {     $(this).removeClass("not-started").addClass("started").html("click to hide"); });  $('.card.started').on("click", function () {     $(this).fadeOut(); });


How can I make the larger integration sign without using this $$...$$ Since I have written that   $(Uu)(x,y)=\dfrac{1}{\Gamma(r_1)\Gamma(r_2)} \int\limits_0^x \int\limits_0^y \dfrac{F(x,y,s,t,u(s,t))}{(x-s)^{1-r_1}(y-t)^{1-r_2}}dt\;ds,$   but the output integration is looking small so I want to make large integration without using $$....$$ so please help me.


Jcombobox doesn't close when selecting an option..!

when I select an option in jcombobox, it doesn't get close and throws null pointer exception... the code is given below....  public void itemStateChanged(ItemEvent e)  {     String[] selectedItem=null;     int i=0;     ArrayList<String> sub_list = new ArrayList<>();     try {         connection();         String s1="select subnm from subject where branch='"+combobranch.getSelectedItem()+"'";         System.out.println(s1);         rs = st.executeQuery(s1);          rs.first();          while(rs.next())         {             selectedItem[i] = rs.getString("subnm");             System.out.println(selectedItem[i]);             if(!sub_list.contains(selectedItem))             {                 sub_list.add(selectedItem[i]);             }         } DefaultComboBoxModel(sub_list.toArray()));     } catch (SQLException ex) {         Logger.getLogger(admin.class.getName()).log(Level.SEVERE, null, ex);     }   and the exceptions message shown below...!  Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException     at admin.itemStateChanged(admin.java:1201)     at javax.swing.JComboBox.fireItemStateChanged(JComboBox.java:1223)     at javax.swing.JComboBox.selectedItemChanged(JComboBox.java:1271)     at javax.swing.JComboBox.contentsChanged(JComboBox.java:1327)     at javax.swing.AbstractListModel.fireContentsChanged(AbstractListModel.java:118)     at javax.swing.DefaultComboBoxModel.setSelectedItem(DefaultComboBoxModel.java:93)     at javax.swing.JComboBox.setSelectedItem(JComboBox.java:576)     at javax.swing.JComboBox.setSelectedIndex(JComboBox.java:622)     at javax.swing.plaf.basic.BasicComboPopup$Handler.mouseReleased(BasicComboPopup.java:834)     at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:290)     at java.awt.Component.processMouseEvent(Component.java:6527)     at javax.swing.JComponent.processMouseEvent(JComponent.java:3321)     at javax.swing.plaf.basic.BasicComboPopup$1.processMouseEvent(BasicComboPopup.java:498)     at java.awt.Component.processEvent(Component.java:6292)     at java.awt.Container.processEvent(Container.java:2234)     at java.awt.Component.dispatchEventImpl(Component.java:4883)     at java.awt.Container.dispatchEventImpl(Container.java:2292)     at java.awt.Component.dispatchEvent(Component.java:4705)     at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4898)     at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4533)     at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4462)     at java.awt.Container.dispatchEventImpl(Container.java:2278)     at java.awt.Window.dispatchEventImpl(Window.java:2739)     at java.awt.Component.dispatchEvent(Component.java:4705)     at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:746)     at java.awt.EventQueue.access$400(EventQueue.java:97)     at java.awt.EventQueue$3.run(EventQueue.java:697)     at java.awt.EventQueue$3.run(EventQueue.java:691)     at java.security.AccessController.doPrivileged(Native Method)     at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)     at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:86)     at java.awt.EventQueue$4.run(EventQueue.java:719)     at java.awt.EventQueue$4.run(EventQueue.java:717)     at java.security.AccessController.doPrivileged(Native Method)     at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)     at java.awt.EventQueue.dispatchEvent(EventQueue.java:716)     at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)     at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)     at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)     at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)     }   plz help me out!!!


Why can't you inherit from a nested class?

Given:  namespace Program {      // Cannot inherit from inner class     public class Outer : Outer.Inner {         public class Inner { }     }      class Program {         public static void Main() {             Outer.Inner inner = new Outer();         }     } }   Why can't outer classes implement inner classes? I could see why this would be illegal in Java because inner classes are actually dependent on the outer instance existing before an inner class can be instantiated. But in C#, inner classes don't have any real dependency on the outer class other than scope (and the rules that come along with it). So why is this illegal? Is it just by convention, or is there some logic to this?


Do monsters have proficiency with all weapons and armors?

As a bit of background, my players befriended a kobold and gave him a javelin (instead of the dagger a kobold usually have, according to his stat block). They later also gave him a leather armor for his protection.  Does the kobold have proficiency for the javelin and the leather armor ?   Or the general question: Do monsters have proficiency with all weapons and armors ?  If not, how can I know what they have proficiency with ?


Probability that all three shirts were worn

Mr. Jones has three shirts: Red, Green and White. Each day he picks randomly a red shirt with probability of $\frac{1}{2}$, green with probability of $\frac{1}{3}$ and white with probability of $\frac{1}{6}$.     What is the probability that he wears all three shirts after 6 days?   My try:   $$\binom{6}{1}\binom{5}{1}\binom{4}{1}\frac{1}{2}\cdot\frac{1}{3}\cdot\frac{1}{6}\cdot[\binom{3}{2}(\frac{1}{2})^2\cdot[\frac{1}{3}+\frac{1}{6}]+[\binom{3}{2}(\frac{1}{3})^2\cdot[\frac{1}{2}+\frac{1}{6}]+[\binom{3}{2}(\frac{1}{6})^2\cdot[\frac{1}{2}+\frac{1}{3}]+\binom{3}{1}\binom{2}{1}\frac{1}{2}\cdot\frac{1}{3}\cdot\frac{1}{6}]$$  First, we pick possessions for red, green and white. Then, we multiply it by the other combinations possible of the other three possessions left, and summing it up (I didn't count all possibilities). The problem is the answer is bigger than 1, so it must be wrong. Also, I guess there is more elegant way.  Thanks in advance.


If I was vs. if I were - which is correct and why?

Which is right? "If I was from France, would I get a visa from Ghanaian embassy?" vs. "were from France" "If I was taller, I would buy that dress." vs. "if I were" "If I was 20, I would travel the world." vs. "if I were" "If I was the Queen of England, I would give everyone a chicken." vs. "if I were" "If I was a flower, I would bloom." vs. "if I were" "If the weather wasn't so bad, we could go outside." vs. "weren't" Please state which is correct and please describe why in detail. Try to give a definitive rule/answer.


steam fatal error "steam needs to be online to update, but was set to offline movies."

I tried re-installing  it but it simply keeps giving me this error in a little window. When I close it, an identical error pops up some 3 seconds later without any new provocation.


This semester I have a course on topology. I'd like you to recommend me some books.


Confidence interval for single observation from Poisson

Suppose I have specifically a single observation $x$ which I believe comes from a Poisson distribution. Could I estimate a 95% confidence interval for the true mean as $\sigma * \sqrt{x}$ with $\sigma = 1.96$?  In other words, if I observe a count of $x=10$, can I estimate a 95% confidence interval as $x \pm \sigma * \sqrt{x} = 10 \pm 1.96 \sqrt(10) = (3.801936, 16.198064)$?


NTFS data recovery after being overwritten with Windows installer

I have two primary partitions on my hard disk. The first one contains local system drive (C) and is placed at the start of the disk. The second one is extended. One day I got superblock of NTFS of the first drive damaged. I tried to fix it loading from the flash drive, running Ubuntu, but failed, as every utility asked to use chkdsk. The only way to run it was to make another partition in the end of the disk, install Windows 7 (The same image was installed on C) to a new partition (T) and running chkdisk from this OS.  The problem is that installer had a beginning of C partition overwritten with the bootloader, thus fixed. Every utility says it is OK and healthy now,  but I cannot access my old file system. I can only recover deleted files, but there is no use of them, as filenames and file hierarchy cannot be restored.  Is there any chance to recover file system with filenames and file hierarchy, as bootloader was overwritten with the same one and no other data was written to disk?


Adjacency matrix and existence of triangle

Show that a graph $G$ contains a triangle (1) if and only if there exist indices $i$ and $j$ such that both the matrices $A_G$ and $A^{2}_{G}$ have the entry $(i, j)$ nonzero, where $A_{G}$ is the adjacency matrix of $G$ (2).  $1 \implies 2$  If the graph contains a triangle, the entries in the matrix which correspond to edges between the vertices that that make up the triangle will be non-zero.  Each such pair $(i,j)$ will also be non-zero in $A^{2}_{G}$, because there is a path of length two between $i$ and $j$ (within the triangle), starting from $i$, using another vertex $k$ and ending in $j$.  $2 \implies 1$  If $(i,j)$ is 1 in $A_{G}$, then the vertices $i$ and $j$ must be connected. Furthermore, if $(i,j)$ is 1 in $A^{2}_{G}$ that means there must be some other vertex $k$ through which we can go to $j$ starting from $i$. Hence the edges $(i, j)$, $(i, k)$, $(k, j)$ makes up the triangle.  I had trouble writing down this proof properly. Is the main idea correct?


What exactly is the meaning of length contraction?

Let's say a train of length $L$ (wrt ground) is standing on rails which have markings for every femtometre (or even smaller units). Now if someone takes a photograph and measures the distance between the two tips of the train with the help of the markings on the rail, he will measure it as $L$. say the train acquires a constant speed and continues travelling in the same direction. Now if someone takes a photograph of the train and measures the said distance in the said way, will the result be different from $L$?


The difference between 'beneath the sea' and 'under the sea'

I've been trying to wrap my head around these two.  So, here are the two relevant examples of usage (from Cambridge Dictionary and a YT video):    When we use under, we mean that one thing is touching or covering something else:      The wreck of the Titanic still remains under the sea.      We use beneath when we talk about things which are at a lower level than something else:     She hid beneath the water. (= the surface of the water)     Also, beneath is less common in everyday speech.     So, is there a difference in meaning between 'beneath the sea' and 'under the sea' itself? If that depends entirely on the context, then, could you give some examples?


Are there any actual examples of "awful things happening to wizards who meddle with time" in the book?

In Harry Potter and the Prisoner of Azkaban, Hermione mentions:     Awful things happen to wizards who meddle with time.   Now, I can imagine what could go wrong logically, for example, their past self could harm their future self perceiving some danger owing to the confusion and chaos, et cetera, et cetera.  But what I was wondering is, if there is a mention, in the book, of any such incidents that might have happened actually in the past to some other wizards?


I need to move files based on a year. I used the find command  find /media/WD/backup/osool/olddata/ -mtime +470 -exec ls -lrth {} \;|sort -k6   but for this command to successfully execute i need to know the exact mtime now 470 is just a guess. Means if I can give the year 2012 it gives me files only related to 2012.  So i need advice on how to     Find files based on year e.g 2012 and move them to other directory.   OS release 5.2  FIND version GNU find version 4.2.27 Features enabled: D_TYPE O_NOFOLLOW(enabled) LEAF_OPTIMISATION SELINUX


Note:   This close reason is old and only applies to old questions that were closed prior to the closing overhaul. This has been replaced by the reasons "unclear what you're asking" for unclear questions and "too broad" for overly broad questions. Older questions that have been closed as "not a real question" will remain closed under this reason, so this question is left here for reference.   Questions used to be closed as "not a real question."     What makes a question a "real" question? What are new users expected to know about asking "real" questions? Why does SE treat questions differently from other online forums?


"My friends are mostly non-smokers."  Is "mostly" a focusing adverb that modifies "non-smokers"?


What happened to jabber / hangouts options in messages?

Messages (on Mac OS X) used to let you add a gmail account for jabber -- it appears this is gone now? Is there a way to re-enable it?


How to cite a paragraph in project report?

I am writing a project report for my master degree in STEM (U.S.). I have to cite a large paragraph of others' work. This paragraph describes some basic stuff (For example, a duck has two eyes and two legs). I did not change a word in that paragraph.  I have already cited this paper at the end of my report. Is there anything else I can do to avoid plagiarism?


Let n and a be positive integers. Prove that if  $a^{170} ≡ 1 \text{ (mod n) and }a^{111} ≡ 1 \text{ (mod n)} \text{ then } a ≡ 1 \text{ (mod n)}$  I know that if $a ≡ 1 \text{ (mod n)}$ then $a^{170} ≡ 1 \text{ (mod n)}$ and  $a^{111} ≡ 1 \text{ (mod n)}$, but I am not sure how I can show this in the opposite direction.


Sticky footer that moves down when content expands

I am trying to include a SAVE button as a footer which sticks to the bottom of the page, but moves down whenever there is 'below the fold' content. This content I have generally fits on one page, however goes beyond when using a select check box element.  Example of the issue:    When I click the select check box element:    Current code  style:  .bottom {         position:absolute;         bottom:0px;         height:40px;         width:100%;         background:#E8E8E8;           text-align:center;         font-weight:bold;     }   html:

SAVE


How to do this?  There are six packages listed for my 32bit system   Not sure how to go about patching...  Ok I have not done yum clean all and yum update "openssl*"  but am stuck on following command lsof -n | grep ssl | grep DEL  it doesn't work so is it safe to say just restart mysql and then regenerate keys and certificates?


I just built my new server and realized that I accidentally only allotted 200GB to Ubuntu leaving the remaining 1.8TB unusable on my server. I have already tried partitioning using sudo to resize the partition, but I got an error saying that the resource was busy. I attached a screenshot for reference. I also am only using a terminal so no GUI solutions will work. Results of sudo lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL:


How can I "undefine" Python magic methods on a subclass?

Is there a way in Python 3 to indicate that a class does not support some operation that its parent class supports?*  I know that classes can set __hash__ to None to indicate a type is unhashable, but this doesn't seem to work in general.  For example, let's suppose I have some collection class with a __len__ method, and I want to make a child class representing an unbounded collection that has no defined size.  If I set __len__ to None in the subclass I get an ugly/confusing error message when I try to get the length of the collection.  >>> class C: ...     def __len__(self): ...         return 3 ...  >>> class D(C): ...     __len__ = None ...  >>> len(D()) Traceback (most recent call last):   File "<stdin>", line 1, in <module> TypeError: 'NoneType' object is not callable   I would like to get an error as if D did not define __len__ at all:  >>> class E: ...     pass ... >>> len(E()) Traceback (most recent call last):   File "<stdin>", line 1, in <module> TypeError: object of type 'E' has no len()    is related, however my question pertains specifically to magic methods / operator overloading.  Since Python magic methods are looked up directly on the object's type, some possible approaches like overriding __getattribute__ or using descriptors would not work here.  *Note: I know this would violate the , but if I wanted type safety I wouldn't be using Python in the first place.  ;)


I have a small problem that i am facing while i fetch a column that is should Cost Modeler(People Picker field) from other list.  As, i fetch the values using top, i return 1329 items and then i append it to the dropdown. but the problem is as i append it to the dropdown it does not append all the names.   The problem that i see is in the console i see Array with the result Title:'Name of the Employee' but in some arrays there is no result and thus it does not find anything in it.   How do i get all the names in the dropdown and also remove the duplicates?  Thanks.


Evaluate: $$\prod_{i=1}^{89} \sin (i)$$  My attempt:We know that   $\sin \alpha \cdot \sin(90- \alpha)=\sin \alpha \cos \alpha=\frac{1}{2}\sin 2\alpha$  Then we have:  $$ (\sin1\cdot\sin89)(\sin2\cdot\sin88)\cdots (\sin44\cdot\sin46)\sin45 =\left(\frac{1}{2}\sin2\right)\cdots\left(\frac{1}{2}\sin88\right)\frac{\sqrt{2}}{2} $$  Factorize from $\frac{1}{2}$ then do the same thing again You will get:  $$ \frac{\sqrt{2}}{2^{67}}(\sin4\cdot\sin8\cdots\sin88) $$  Now what to do?Any hints?


What is the difference between i++ & ++i in a for loop?

I've just started learning Java and now I'm into for loop statements. I don't understand how ++i and i++ works in a for-loop.  How do they work in mathematics operations like addition and subtraction?


header('location: ..') outputs blank page on server

<?php header("HTTP/1.0 404 Not Found"); header("HTTP/1.1 404 Not Found"); header("Status: 404 Not Found"); // redirect to 404 page and exit die(header("Location: 404.html"));   If I run it on local server everything is ok. But on working server it outputs blank page. I tried to remove first three headers, and it works. Anybody can explain me this behavior? Thank you.


Create basic GB region postcode area map

I want to make a simple map of SW England that shows polygons over the postcode areas (e.g. EX1, PL19, each in an shaded area with boundary line). If I search the postcode area on Google Maps (online) it shows exactly the kind of area highlight I want on this map, only I want multiple ones on a single map.  My data is number of respondents per postcode area. I am happy to manually label each polygon with a number to show the respondents in that area, as I don't have that many areas. Or can create a CSV file with postcodes listed so they can be counted and displayed automatically (if such a thing is possible and worth the effort).  So far I have managed to bring up a basic ordnance survey map. I downloaded what I thought was the right postcode area shapefile but it is too broad - It shades the whole of e.g. EX rather than just EX1, EX2 etc. as separate areas.


Movie : Humanity found the cure for old age, but some people that used it turn into monkey-beasts

I remember that 15 years ago I saw a movie where humanity found a cure for old age, but some people that used it turned to monkeys where other stayed alive.  Also, people had crystals that show something about their DNA and they were only allowed to mate with someone with the same crystal color or else their baby will turn to a monkey if he/she uses the old age cure  Do you know the name of this movie?


Do I need a transit visa in Zurich on the way to India?

I am travelling from US to India, with an Indian passport but expired F1 visa and going there to get my H1B visa stamping. I have a stop at Zurich for 2 hours while flying to India. Do I need a transit visa for my trip?


form with delete method wont hit asp.net Core controller with HttpDelete ActionVerb

I am using .Net Core 2.1  I have a smal form that hits the controller when I dont have any ActionVerbs on the controller. As soon as I add method="delete" to the form and [HttpDelete] on the controller I get 404. What am I doing wrong?     C#   [HttpDelete] public ActionResult DeleteProduct(int? productID, int? subscriptionID) { }      HTML   <form method="delete" action="@Url.Action("DeleteProduct")">  <input name="productID" type="hidden" value="@product.ProductID" /> <input name="subscriptionID" type="hidden" value="@subscription.SubscriptionID" />  <button type="submit" class="btn btn-warning"> Tabort <i class="fa fa-trash trashIcon" aria-hidden="true"></i> </button>  </form>


Number of functions from n-element set to {1, 2, …, m}

I've gotten stuck at the following exercise;     There are m functions from a one-element set to the set {1, 2, …, m}.   How many functions are there from a two-element set to {1, 2, …, m}?   From a three-element set? Give a recurrence for the number of T(n) of   functions from an n-element set to {1, 2, …, m}. Solve the recurrence.   I'm not sure how to begin solving it?


How to get the directrory name in shell script

I have a script which sets some environment variable to paths:  export VAR1=/home/xyz/DIR_IN_WHICH_THIS_FILE_EXISTS  export VAR2=$VAR1/abc/qwe  ...   Can I use something to get the DIR_IN_WHICH_THIS_FILE_EXISTS so that if I run this script from anywhere(any path) in the machine, it would set the same values to VAR1 depend on in which directory the script exists?  Please help


Trigonometric integral involving the fractional part

With $\{\}$ denoting the fractional part function, does the following integral admit a closed-form? $$\int_{0}^{\pi/2}\bigg\{\sec(x)\bigg\}dx$$


Texture Solid Option Is Not Showing Textured On 3D View port

I unwrapped this cube and applied a grid texture into it. Then i Enabled [Textured Solid] Option from N panel. But It now showing textured on the display. I am not understanding , what is wrong with me and my blender [2.72]


How to become a User Experience Designer?

I am a UI designer and developer and have been designing websites for aound 10 years. I want to get into user experience design. I know how to do a design, but I am lagging the terminologies and the technical things in the user experience field.   So how do I go about getting the skills and mindset necessary for being a User Experience Designer?


How to format cell as currency using Apache POI

I have started learning Apache POI and want to format a cell like this  $ 1,200.00 $ 12,500.00   How to do this? Thank.


Implementing Priority Queue by Linked List in Java

I'm working on Priority Queue in Java implementing by Linked List, to set the priority order, I'm trying to shift all the Linked List Objects to array for sorting, and then again back to the Linked List (after sorting priority wise). I tried this code but I get "Null pointer exception" every time I pass Linked List Object to Array. What should I do?  public class Node {      Node next;     Object data;     int pref;      Node() {         this(0, null);     }      Node(Object m, Node s) {         setData(m);         next = s;     }      Node(Object m, Node s, int pref) {         setData(m);         next = s;         this.pref = pref;     }      void setData(Object m) {          data = m;     }      public Object getData() {         return data;     }      public void setPref(int pref){         this.pref = pref;     }      public int getPref(){         return pref;     } }      public class PriorityQueue(){     public Node head;     PriorityQueue(){     head = null;     }     public boolean enQueue(Object v, int p) {              Node newNode = new Node();             newNode.setData(v);             newNode.setPref(p);              if (head == null) {                  newNode.next = head;                 head = newNode;                 return true;              } else {                  Node current = head;                  try {                      while (current.next != null) {                         current = current.next;                     }                     current.next = newNode;                     settingPriorityLevel();                     return true;                  } catch (java.lang.OutOfMemoryError e) {                     System.out.println(e.getMessage());                     return false;                 }             }          }          public void settingPriorityLevel(){              Node arr[] = null;      //converting LinkedList to array for sorting purpose             Node current = head;             Node temp;              for(int i = 0; i <= size(); i++){                 arr[i] = current;                  current = current.next;             }              for(int i=0; i < arr.length; i++){              //sorting                 for(int j = i+1; j < arr.length; j++){                     if(arr[i].pref > arr[j].pref){                     temp = arr[i];                     arr[i] = arr[j];                     arr[j] = temp;                     }                 }             }              for(int i = 0; i < arr.length; i++){        //shifting back to LinkedList                 current = arr[i];                 current = current.next;             }           }     }


So I must prove that "Every infinite set has a countably infinite subset." with following definition of the axiom of choice  Let $\{A_\alpha\}_{\alpha \in \lambda}$ be a collection of non-empty sets. Then there is a function $f:\lambda \rightarrow \cup_{\alpha \in \lambda} A_\alpha$ such that for each $\alpha$ in $\lambda$, $f(\alpha)$ is an element of $A_\alpha$.   Can I state "Let $A$ be an infinite set. Consider the collection of subsets of $A$ $\{A_\alpha\}_{\alpha \in \mathbb{N}}$," without violating the axiom of choice?


AES_ENCRYPT/DECRYPT losing special characters

I am trying to encrypt part of a mySQL-database with AES_ENCRYPT, and of course retrieve the data later on with AES_DECRYPT. But when the field contain special characters like æ, ø eller å, these come back as �  I have been trying to read up on why this is, but haven't found a solution.  First of I change the field-type to BLOB:  ALTER TABLE 'table' MODIFY field BLOB   Then I do the encryption:  UPDATE 'table' SET field = AES_ENCRYPT(field, '$key')   Everything is stored, but when trying to extract the data again:  SELECT AES_DECRYPT(field,'$key') AS variable FROM table WHERE....   all the special characters are displayed as � when echo in PHP  I think I got the UTF-8 covered, in both HTML and mySQL:  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />   and  mysqli_set_charset($connect,'utf8');   so storing the special characters in the mySQL-database, retrieving and displaying them with PHP works just fine as long as the field is VARCHAR and no encryption has been done. I also read about problems with the special characters in binary fields like BLOB, but I recon I'm not the first one that tries to encrypt and store an Æ or an Ø :)  Any hints would be really appreciated! Thanks!


Anime style cartoon - 4 characters on a planet with giant oval floating robots looking for them - 1989 or before

I have been trying to find a cartoon I watched as a kid. It was shown on Sky Movies (UK) in 1989 or 1990 in the kids cartoons slot on Sky Analogue. It featured a team of four characters, possibly starting out in a spaceship, that land on a planet. The planet was empty except for sand and various buildings. There were one or two giant (70ft or more) oval shaped robots that the characters were hiding from. The robots were primary colors (red and blue I think), with heads that turned constantly looking for the characters. It was anime in appearance (certainly looked different from the Danger Mouse/Hanna Barbera cartoons that were usually shown on TV at the time) with lots of fast paced running sequences. One of the main characters had a cigar that stayed in the air when he spoke (shouted really). Any ideas??


Tools to get a pictorial function call graph of code

I have a large work space which has many source files of C code. Although I can see the functions called from a function in MS VS2005 using the Object browser, and in MSVC 6.0 also, this only shows functions called from a particular function in a non-graphical kind of display. Additionally, it does not show the function called starting from say main(), and then the functions called from it, and so on, deeper inside to the leaf level function.  I need a tool which will give me a function call graph pictorially with functions callee and caller connected by arrows or something like that, starting from main() to the last level of function, or at least showing a call graph of all functions in one C source file pictorially. It would be great if I could print this graph.  Any good tools to do that (need not be free tools)?


How to disable Chrome software reporter tool

How to make it stop running? It uses full cpu and makes my computer sound like a jet engine  I dont' want it to report anything


how to install ubuntu 16.10 from 16.04 without data loss

How to install ubuntu 16.10 from 16.04.1 without losing data in / and home folders. i have over 100gb worth apps installed and cannot afford to lose them. need help.


So I have a file text.txt  with lines of some characters example:  abc     abc yxz abc   now I would like to number the lines like this and copy it to another file.  End expected result:  1  abc 2  abc  3  yxz 4  abc


Convert an arbitrary meta-data-free map image into QGIS project

My background: experienced programmer, amateur historian, complete beginner to GIS (so I'm using QGIS). I did learn to use the QGIS georeferencer tool though.  The input: suppose I have an image like this . Assume that it's a "naked" JPG file without any geographic metadata and the author cannot provide any such information. The input image is licensed under GNU FDL, which I'm happy to release my derivative works under.  The goal: import the path shown in the Wikipedia map into QGIS so I can change the projection, superimpose elevation, add labels for physical geography, etc.  The caveat: one workaround might just be to enter the lat/long of the locations in the map into a new GIS project. I don't want to go this route because I'd like to have a record of that particular author's estimate of the geographic information.  What I've tried: I have applied the QGIS Georeferencer to the raster JPG file with a bunch of points around the continents' edges. The alignment of points in the interior of the continent are so-so.  What I'd like to know: the distortions of this particular map are pretty noticeable around the northern edge of Eurasia, and it seems like it's a pretty standard projection. It seems to me that there ought to be an algorithmic way to identify the projection and projection parameters that generated this map, and recover an accurate non-interpolation conversion between image pixels and lat/long?   I see two questions on this:       These seem to talk about a brute-force method involving GDAL or QGIS, and to a GIS-beginner, seem somewhat labor-intensive (basically georeference and fit them to known projections) but I'm willing to try them and see if I can automate them.   The instructions on both these GIS.SE are a bit higher than my experience allows, and any hints on how exactly to do this brute-force method would be very appreciated. E.g., question 2 above shows how to use gdaltransform to convert a list of coordinates into lat/long. Are the input coordinates x-y pixel locations?


Is the following Proof Correct? In particular please comment on the correctness of the given formulas.  Theorem. Given that $x$ is a real number, $x\neq 0$, and $x + \frac{1}{x}$ is an integer. For all $n\ge 1$, $x^n+\frac{1}{x^n}$ is an integer.  Proof. We construct the proof by recourse to Strong-Induction.  Assume for an arbitrary $n\in\mathbf{Z^+}$ that $x^k+\frac{1}{x^k}$ is an integer for any positive integer $k$ strictly less than $n$. Now Consider the following cases.  Case-1: If $n$ is even then for some $l\in\mathbf{Z^+}$, $n = 2l$ thus the Binomial-Theorem implies that $$(x+\frac{1}{x})^n - \sum_{j=1}^{l-1}\binom{n}{2j}\left(x^{2j}+\frac{1}{x^{2j}}\right)-\binom{n}{l} = x^n+\frac{1}{x^n}$$ from the inductive hypothesis we know that $x+\frac{1}{x}\in\mathbf{Z}$ which implies that $(x+\frac{1}{x})^n \in\mathbf{Z}$ in addition it also follows from the inductive hypothesis that $x^{2j}+\frac{1}{x^{2j}}\in\mathbf{Z}$ for $j\in\{1,2,3,...,l-1\}$ moreover we also that $\binom{n}{r}\in\mathbf{Z^+}$ is always a positive integer implying that $x^n+\frac{1}{x^n}$ is an integer.  Case-2: If $n$ is odd then for some $l\in\mathbf{Z^+}$, $n = 2l+1$ thus the Binomial-Theorem implies that $$(x+\frac{1}{x})^n - \sum_{j=1}^{l}\binom{n}{2j-1}\left(x^{2j-1}+\frac{1}{x^{2j-1}}\right) = x^n+\frac{1}{x^n}$$ and by using the same reasoning as in the previous case we can deduce that $x^n+\frac{1}{x^n}$ is an integer.


Setting print layout to portrait using QGIS 3?

I can't get the print layout to appear in portrait.  It opens in landscape and Layout/Page Setup... allows for portrait, but the layout canvas remains in landscape.  In 2.18 the "Composition" Panel has "Page Size" as its first item, with a drop down Landscape/Portrait control box.      In 3.0.0, the "Layout" Panel does not have this, and I can't find it in the "Item Properties" panel.  Is there somewhere that I can set it to portrait?


I want to validate a string with alpha numeric values, but if the string contains -- (double dash) anywhere in the string, it should be invalid.  valid:   apple123 -apple-123 app-le123 a-p-p-l-e-1-2-3   invalid:   --apple123 app--le123       The above old post have the answer ^(?!.*bar).*$ which does the negation, but it does not work for same character repetition like --.  Can anyone help me to figure out to modify the ^(?!.*bar).*$ to identify -- as a string.


Excel search function search term from other sheet

I have an excel sheet with a function which uses the SEARCH function in the following way:  =IF(OR(IFERROR(SEARCH("TERM1";MYCELL;1);0) > 0;IFERROR(SEARCH("TERM2";MYCELL;1);0) > 0;IFERROR(SEARCH("TERM3";MYCELL;1);0) > 0);MYVALUE;0)  The problem is that each time if I have a new search term I need to update this function and recalculate all my values. So what I basically look for is a function something like this:  =IF(IFERROR(SEARCH((st!A1:st!A3);MYCELL;1);0) > 0;MYVALUE;0) where A1:A3 contains all the terms I like to search and its on the st (search terms) sheet.  How could I solve this?  Update: I guess my question was misunderstood. Here's a more detailed explanation. What I'd like to do is tracking my expenses. I have an export from my bank with all my transactions and each transaction have a description about who was the target. I can group my targets by expense categories. So I have a sheet which contains my groups by columns:  Food       | Gas MCDONALDS  | Shell BURGER     | Esso KFC        | OMV FRIDAYS    |   On another sheet I have my transactions from my bank and depending on what was the target I copy the amount for the proper category column  TARGET                | AMOUNT |  FOOD | GAS  XY MCDONALDS COMPANY  | 10     |   10  |  0 12ShellXYZ            | 20     |   0   |  20 KFCEUROPE             | 50     |   50  |  0   Now this is implemented like my search example but it's hard to update when I make transaction for a new target. It would be simplier if my search terms come from the list explained above.  So how can I achieve this?


What is speed relative to in time dilation?

This has always baffled me.  There is no absolute speed as I understand(or is there)?  Speed is a relationship between two objects.  So how can you calculate how much time slows down for an object based on its speed without specifying which other object you are relating it to?  Also, since the selection of the object you are relating it to is totally arbitrary how can the answer have any meaning at all?


If $f:(0, \infty)\to(0, \infty)$ is an into function satisfying $f(xf(y)) = x^2y^a, (a\in\mathbb R)$, then find the value of $a$ and the number of solutions of $2f(x) = e^x$.  My approach: $f(x(f(y))) = x^2 y^a$ $y=x$ $f(x(f(x))) = x^2 x^a$ $f(xy) = x^2 x^a$, (as $f(x) = y$) $y = 1$ $f(x) = x^a x^2$ This seems to be incorrect? Where have I gone wrong? How do I solve this?


Fourier transform (algebra involving expansion)

How do you go from $$\sum_{0}^\infty (0.5e^-jw)^n$$   to   $$\frac{1}{1-0.5e^-jw}=\frac{e^jw}{e^jw-0.5}$$  and I was looking and this formula  $$\sum_{m=0}^{m=n} (a)^n = \frac{1-(a)^(n+1)}{1-a}$$


If $a \equiv b \bmod n$, then $\gcd(a, n)= \gcd(b,n)$

Again, I have been stuck in a problem of modular arithmetic.      Given that $a,b, n  \in \mathbb Z $ and $n>0$ and $a  \equiv  b \bmod n$. Show that $\gcd(a, n)= \gcd(b,n)$.


Something weird is going with my code.  I have a small form (not designed well, but will do for now). The user type username and password, and then press submit.  I added an action listener method for the button. At first, the only thing in it was:  dispose();  and indeed, when pressed, the window closed.  Now when I add an if statement like you see in the code, it does nothing if the value is the correct, however, if it is wrong, it does what I wrote in the else part....  if I am trying to add another condition with && and the passwordfield, it give me error message: the method is deprecated, and Eclipse puts a line over the getText method for the password...  I don't get it, how can it work without an 'if', doesn't work with 'if', and give me warning with &&....thanks...  package HR;  import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.JLabel; import javax.swing.JPasswordField; import javax.swing.JFormattedTextField; import javax.swing.JButton;  import java.awt.GridLayout; import java.awt.event.ActionListener; import java.awt.event.ActionEvent;  public class SignIn extends JFrame {      /**      *       */     private static final long serialVersionUID = 1L;      public SignIn()     {         this.setTitle("HR SYSTEM LOGIN SCREEN");         this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);         this.setBounds(100, 100, 308, 179);          JPanel contentPane = new JPanel(new GridLayout(3,3,1,15));         this.getContentPane().add(contentPane);          JLabel userName = new JLabel("User Name");         contentPane.add(userName);          JLabel spaces2 = new JLabel("");         contentPane.add(spaces2);          final JFormattedTextField userText = new JFormattedTextField();         contentPane.add(userText);          JLabel password = new JLabel("Password");         contentPane.add(password);          JLabel spaces3 = new JLabel("");         contentPane.add(spaces3);          final JPasswordField passwordText = new JPasswordField();         contentPane.add(passwordText);          JLabel spaces1 = new JLabel("");         contentPane.add(spaces1);          JButton signButton = new JButton("Sign In");         contentPane.add(signButton);          JLabel spaces4 = new JLabel("");         contentPane.add(spaces4);          signButton.addActionListener(new ActionListener()          {              @Override             public void actionPerformed(ActionEvent e)              {                  if (userText.getText()=="ABC")                 {                     dispose();                 }                 else userText.setText("ABC");             }         });       }  }


I'm using ffmpeg to convert my files but when I tried to convert WAV -> MP3 I got this error. It's surprising for me cause I installed this one yesterday. What could happen?


@username in comments doesn't autocomplete for some users

When I want to address a specific users in the comment section for a question I use @username, sometimes after typing first letters of the username it shows up an autocomplete box but sometimes it doesn't show it up for another user.  I don't know the reason of these different behaviors! and whatever the reason is I think shouldn't be related to auto-complete feature because I just think this is a bug


when some of your coefficients in multivariate logistic regression model is negative while i know  these variable have positive sign in univariate model, What should I do؟


Can King Macar the Gold-Cursed be tapped without attacking?

So a buddy and I were playing a game of Magic that turned out to be a really quick game because he got  out on the battlefield early. He was tapping it without attacking because of its obviously awesome ability but I don't know if you can tap a creature for its Inspired (untap-triggered) ability without attacking for it to then be tapped. Are you allowed to tap a creature whenever you want?


I have Ubuntu 10.04 and I want to install 16.04.  I have created a USB using a lot of programs, even the one came with the distro; when I try to install 16.04 the monitor shows all it is supposed to show, but without brightness like it is turned off.  Only with a specific boot and a lot of imagination to confuse the system he authorizes me to install Ubuntu.  My question is:  Is it possible to install 16.04 or another version from the desktop from the terminal or something?  Or this can only be done from outside?  mia@mia-laptop:~$ lspci -k  00:00.0 Host bridge: Intel Corporation Mobile 4 Series Chipset Memory Controller Hub (rev 09)     Kernel driver in use: agpgart-intel     Kernel modules: intel-agp  00:02.0 VGA compatible controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 09)     Kernel driver in use: i915     Kernel modules: i915  00:02.1 Display controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 09)  00:1a.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 03)     Kernel driver in use: uhci_hcd  00:1a.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 (rev 03)     Kernel driver in use: uhci_hcd  00:1a.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 03)     Kernel driver in use: ehci_hcd  00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 03)     Kernel driver in use: HDA Intel     Kernel modules: snd-hda-intel  00:1c.0 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 1 (rev 03)     Kernel driver in use: pcieport     Kernel modules: shpchp  00:1c.1 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 2 (rev 03)     Kernel driver in use: pcieport     Kernel modules: shpchp  00:1c.2 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 3 (rev 03)     Kernel driver in use: pcieport     Kernel modules: shpchp  00:1d.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 03)     Kernel driver in use: uhci_hcd  00:1d.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 03)     Kernel driver in use: uhci_hcd  00:1d.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 03)     Kernel driver in use: uhci_hcd  00:1d.3 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #6 (rev 03)     Kernel driver in use: uhci_hcd  00:1d.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 03)     Kernel driver in use: ehci_hcd  00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev 93)  00:1f.0 ISA bridge: Intel Corporation ICH9M LPC Interface Controller (rev 03)     Kernel modules: iTCO_wdt  00:1f.2 IDE interface: Intel Corporation ICH9M/M-E 2 port SATA IDE Controller (rev 03)     Kernel driver in use: ata_piix  00:1f.3 SMBus: Intel Corporation 82801I (ICH9 Family) SMBus Controller (rev 03)     Kernel modules: i2c-i801  00:1f.5 IDE interface: Intel Corporation ICH9M/M-E 2 port SATA IDE Controller (rev 03)     Kernel driver in use: ata_piix  04:00.0 Network controller: Atheros Communications Inc. AR928X Wireless Network Adapter (PCI-Express) (rev 01)     Kernel driver in use: ath9k     Kernel modules: ath9k  05:00.0 Ethernet controller: Broadcom Corporation NetLink BCM5784M Gigabit Ethernet PCIe (rev 10)     Kernel driver in use: tg3     Kernel modules: tg3


I am about to submit a paper, and I'm asked whether I want anybody to be excluded from consideration as a reviewer. I also need to state a reason. I briefly considered listing someone who - I have reasons to believe - once reviewed a paper of mine by listing criticisms that were unspecific enough that I spent a very large amount of time just trying to figure out what they meant. Of course my guess could be wrong, and it seems unfair to label someone as a suboptimal reviewer based on a hunch. Which led me to wonder - what are some good reasons for asking for exclusion of a reviewer? And additionally, what would polite wordings be for each of these reasons?


How to Merge-and-Reorder Images and PDF pages?

I want to reorder pages of my PDF document by using implicitly .png/.jpg images in the processing, not by the easiest way as some of you want  about pdfshuffler which cannot do this so this is not duplicate. Current extraneous solution requires explicit conversions of images to .pdf  convert *.png all_images_here.pdf pdfshuffler dummy.pdf all_image_here.pdf   Goals for implicit .png/.jpg conversions to pdf   Pseudocode to have autoconversion of .jpg/.png documents  new-pdfshuffler dummy.jpg jummy.png body.pdf  Pseudocode about GUI   pdfshuffler body.pdf drag-and-drop dummy.jpg and jummy.png to new-pdfshuffler    System: Ubuntu 16.04 Linux kernel: 4.4 and 4.6


Does a fresh install of Ubuntu on an SSD need tweaking (to enable TRIM, etc.)?

I've heard that Ubuntu needs some tweaking for optimal performance when migrating an existing install to an SSD.  However, I have made a fresh install after switching to the SSD, so perhaps the installer has detected that it's an SSD and put the best defaults?  Or does it still need tweaking?


How can I get reset the top header bar in blender? I accidentally used the corner grabbers in that header, and it created a duplicate menu.    In the picture I've included, you can see that I now have 4 duplicates of this menu in a row.  The UI seems to reset itself if I open a new blender file, but I'd prefer to keep this particular blender file in clean, working order...


Combinatorial proof of $\sum_{k=1}^n k^2{n\choose k}=n(n+1)2^{n-2}$

I would like to find a combinatorial proof of the identity: $$ \sum_{k=1}^n k^2{n \choose k} = n(n + 1)2^{n - 2}. $$ Combinatorial means that I should find out that the left hand side and the right hand side of the equation are just two different ways of counting the elements of the same set.  My attempt is: I notice that a single term in the summation on the left hand side counts how many functions send $k$ elements to themselves out of a set of $n$ elements. So overall, the left hand side counts all the functions that can be built out of the set $[1,\dots,n]$, where two functions that have the same mapping rule, but different domain/codomain are considered distinct.  I do not know how to proceed for the right hand side. I see that $2^{n-2}$ counts the number of subsets of a set with $n-2$ elements, but I don't find this very useful for proving the equality.


How to handle this error while running LaTeX?

What is the reason for the following error?     Package minted Error: You must invoke LaTeX with the -shell-escape flag.


I have a situation where I have to copy values from one object to another. For each field the copy statement is wrapped with the following snipped of boilerplate code:   if (a.getC() != null) {    b.setC(a.getC()); }   I had a look at Guava Precondition.checkNotNull(...) but it still throws NPE which I'm trying to evade.   How can I do that in a more natural way?


What items are mutually exclusive between worlds?

As of 1.2, some features are mutually exclusive between worlds.  In the case of ores at least, .  However, a  gives you the chance for a  (and the upgraded Sweetheart Necklace) which does not seem to have an equivalent version in the Corruption.    What items, if any, are truly mutually exclusive in function between worlds?


Is there a way I can get the clue for the Fiz recipe? I can't remember what the old man said and can't find it anywhere.   I would prefer the clue (maybe a screen shot of it) but if not I'll just take the recipe. I have all the stuff for it just can put it together.


How to reduce the number of feature levels without losing information?

Some of the features I am working with has more than 300 factor levels. I tried to reduce their number of levels with a 'fake dummy' method. For example, I replaced one 600-level predictor with 4 predictors (as $600<5^4$). Is this a valid approach?


I developed a plugin in QGIS and I have attached a function on button clicked but it is calling the function two times and I don't know the reason why.  I am registering click function in plugin run event:      def run(self):          """Run method that performs all the real work"""         AttachBtnClicked(self)          # show the dialog         self.dlg.show()         # Run the dialog event loop         result = self.dlg.exec_()  def AttachBtnClicked(self):     self.dlg.btnDataSourceEncodingChangeAllLayers.clicked.connect(lambda: btnDataSourceEncodingChangeAllLayersClicked(self))   while the method is:     def btnDataSourceEncodingChangeAllLayersClicked(self):         print 'DataSourceEncodingChanageAllLayers : '# + encodingName         LayerDataSourceChange()   it runs two times.


Why is the bone moving the wrong part of the mesh?

Help the mesh is moving at the wrong part when I move the bone!


How do 'file' command know the type of a file?

Suppose i have pdf files a.pdf it will shows PDF document, version 1.5. How do file command know it?


f: $\mathbb{R}$ $\to$ $\mathbb{R}$ is a continuous function and $\overline{f(\mathbb{N})} = \mathbb{R}$. Prove that f is surjective. I've thought alot about this but i still haven't find a clue. I would really appreciate any help or a hint.


Make VLQ and NAA flags equivalent to a negative review in the LQ queue (if the flagger can access that queue)

Reason  It is my understanding that casting a very low quality or not an answer flag on an answer that already has received such flag only affects the flag statistics and . Thus, if:   I have access to the low-quality queue (2 k on graduated sites), I see an answer that I deem deleteworthy, I suspect that somebody has flagged this answer before me (which is almost always true and can be certain if I see a canned comment),   it is more effective to go to the low-quality queue, seek out the answer and choose Recommend Deletion/Delete, while flagging it has most likely no effect. This is tedious for those who act accordingly and a waste of decisions from those who just flag.  Moreover, it is not that obvious for many that after becoming  (20 k), they can do something else with deleteworthy and negatively scored answers, namely directly voting to delete them – which is mostly equivalent to what they can do from the low-quality queue. Again, decision capabilities are not used optimally.  Suggestion  I thus suggest the following for answers that are already enqueued in the low-quality queue:   A VLQ or NAA flag from a user with a reputation between 2 k and 20 k should have the same effect as if this user had chosen Recommend Deletion in the low-quality queue. A VLQ or NAA flag from a user with a reputation above 20 k should have the same effect as if this user had chosen Delete in the low-quality queue and automatically cast a delete vote if the answer has a negative score. (And while we are at it, a delete vote should automatically cast an NAA or VLQ flag.)   Some considerations or non-considerations:   I haven’t made up my mind how exactly such flags count towards review and flag statistics. Probably, something needs to be done with users who have performed the maximum of daily reviews in the low-quality queue or are review-banned. This deprives 2 k users of the ability to plainly send a post to the low-quality queue, which may be a good choice on rare occasions where you are unsure about a post due to lacking topic knowledge. On the other hand, if that post is already enqueued, you are likely making the right decision and if not, at least two other people need to make the same bad decision.  Also note that the suggested feature would work similar to closure flags in this respect, which are automatically converted to close votes for 3 k users. An easy way to implement this would probably be to rescale delete votes and have them work like close votes: Allow 2 k users to cast delete votes on answers, double the weight of delete votes from 20 k users on answers and require six or seven delete votes to remove an answer. Auto-cast delete votes on VLQ/NAA flags from such users and automatically enqueue posts with such votes.


I'm sure someone has already asked this before or maybe it is impossible through a bash script, but I have not found anything so I'm going to ask!  I want a script to echo something like:  please wait...   But I want the dots to have time between them so it will start by saying, "please wait" and after a second or so add a dot.  Any help is appreciated! George


Can you explain the true identity of Murph's ghost?

In Interstella, when Murph was young she discovers something with gravity and calls it a ghost. But in the end of the movie she discovers it was Cooper. I still don't understand.


Ayer cooking kielbasa and sauerkraut in a 300 degree oven for one hour, can I eat it after it was sitting on kitchen counter for five hours

After cooking kielbasa and sauerkraut an hour in a 300 degree oven, I left it sitting on the kitchen counter for five hours. Is it safe to eat?


double or float type data rounds off automatically

I was trying to find maximum and minimum of given numbers with this code     double a[50], max, min; long int k,i,j,n;     cout<<"How many numbers you want to examine with";     cin>>n;     cout<<"type the numbers you want to know maximum and minimum of";     i = 0;     while (i<n)     {       cin>>a[i];       i++;      }      max = a[0];     for (j=0; j<n; j++){         if (a[j] >= max) {             max = a[j];         }      }     cout<<"Maximum of given numbers is "<<max <<"\n";     min = a[0];     for (k=0; k<n; k++){         if (a[k]<=min){             min = a[k];         }     }     cout<<"Minimum of given numbers is "<< min;  Then I gave input values as n = 3 & three values to be 34543.54, -6.543467, 0. But I got answers which are rounded off like this Maximum of given numbers is 34543.5 Minimum of given numbers is -6.54347   I didn't use and round off functions, also I'm using double for array, max and min then why am I getting rounding off values. Is there any way to avoid it?


What is a good strategy for obtaining comments on a LaTeX document from non-LaTeX using collaborators?

Context: I prepare my scientific documents using LaTeX and compile to a PDF. I often need to seek comments on drafts from collaborators who do not use LaTeX. Most of these collaborators use Windows OS. Assume also that the collaborator does not need to edit the document.  They only need to be able to add comments to the document. Most would be familiar with the commenting system in MS Word, for example. I'd like to be able to give the collaborator some clear instructions about what software and system they should use to comment on the draft.  This should involve free software and an easy to use interface.  Question: What is a good strategy for getting comments on draft documents when the collaborator does not know LaTeX?  Initial thoughts: I know Adobe professional allows you to add comments to a PDF.  However, some collaborators don't have this software and it costs money.  I could send the raw LaTeX to the collaborator. However, given all the markup, the collaborator may find LaTeX source a bit mysterious.  UPDATE: After posting I noticed  to a similar question. Along with a number of other good tips (such as printing and getting paper comments), he mentions jarnal, xournal, and gournal as free cross-platform PDF annotators. I'd be curious to know whether experts have found them adequate for the above mentioned purpose and whether any of them are to be preferred. Others mention FoXIt. And yet others discuss the option of exporting to MS Word or Open Office and using the reviewing system within these programs.


How to disable built-in wifi and use only USB wifi card?

The built-in wifi card in my laptop (Dell XPS M1330) is crap, pretty much. I have an Asus USB wifi card which is significantly better, and it works fine. What I'd like to do is disable the built-in wifi card. Is there a way to do this (without having to boot into BIOS each time I want to disable/enable the built-in wireless)?  @mikewhatever: Here are those outputs  matt@sbod:~$ lsusb Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 002 Device 002: ID 0b05:179d ASUSTek Computer, Inc.  Bus 002 Device 004: ID 05a9:2640 OmniVision Technologies, Inc. OV2640 Webcam Bus 007 Device 002: ID 0483:2016 SGS Thomson Microelectronics Fingerprint Reader matt@sbod:~$ lspci -nnk | grep -iA2 net 09:00.0 Ethernet controller [0200]: Broadcom Corporation NetLink BCM5906M Fast Ethernet PCI Express [14e4:1713] (rev 02)     Subsystem: Dell XPS M1330 [1028:0209]     Kernel driver in use: tg3 -- 0c:00.0 Network controller [0280]: Broadcom Corporation BCM4312 802.11b/g LP-PHY [14e4:4315] (rev 01)     Subsystem: Dell Wireless 1395 WLAN Mini-Card [1028:000b]     Kernel driver in use: wl


Black Body radiation curve - Does it depend only on temperature.?

Couple of questions on Black body radiations 1. Blackbody emits a  continuous spectrum. But blackbody is an idealized body. Do normal objects like a bulb or a table emit a continuous spectrum too.? 2. Does the blackbody radiation curve depend only on temperature.? If I have iron and copper at the same temperature of say 2000 degree Celsius; will they appear of same color.? similarly a table and chair at room temperature will their curve be same too.? I am assuming the different colors we see for the chair and table is due to reflected light. but the curve for emitted radiation will be similar.?


I'm stuck on navigate to privileges link, in old header I can access through the privilege link on profile picture mouse over. but now I can not find the link even in my profile page. How can I go to my privileges ?


Get the Actual SQL of a Prepared Statement with mysqli?

Is there any way to get the actual SQL that is the result of preparing a statement when using the mysqli extension?    My problem: I am using prepared statements.  In all cases, they SHOULD update a record.  I am not catching any errors.  However, when I check for affected rows, there are none.  So, I want to see the actual SQL that would be executed as a result of the prepare statement.  Is there any way to do this?  I've check the mysqli reference docs, but they don't seem to have anything.


What is the term for the double consecutive use of a word with stress on one of the words to alter its severity?

What is the term when a word is used consecutively twice, with intentional stress placed on the first word, as a means to alter the severity of the word's meaning?  I am not referring to a  (had had) or a  (that that), but to the slightly sarcastic use as demonstrated in shows like Seinfeld. Sample sentences, with emphasis:  I know we're going out to eat, but I am only going to pick at an appetizer because I'm not hungry hungry. Don't wear something so formal to the party; I don't think you need to be dressed dressed.  Of personal note, some of my relatives decided a few years ago to nick-name the term a "Celaine" (a combination of their names) due to their own frequent use of it. Note: This question explicitly requests the term of art used by linguists and English scholars when discussing this phenomenon. This question is different from a  which requests a historical explanation for the phenomenon described by this term. None of the answers to the suggested duplicate provide the term.  The author of the similar question requests the term for the pattern in a comment, but does not receive an acceptable answer. The only mention of an acceptable term is in a comment made by the author of this question, in response to the author of the similar question, directing back to this very question.


figure and figure* with inconsistent orders

How to have figures of both types \figure{} and \figure*{} ordered correctly among one another?  I have elements of both types \figure{} and \figure*{} in a document (its class is \documentclass[conference]{IEEEtran}).  My problem is that, if I use only \figure (no star), all figures in the document appear in ascending order, i.e., Figure 1, Figure 2, Figure 3, etc. The same happens if all figures are \figure*. However, when using both types, Latex messes them up. So, now, I have Figure 3, Figure 1, Figure 2, Figure 5, Figure 4.  It may be interesting to point out that Figures 1, 2 and 5 are just \figure, while Figures 3 and 4 are both \figure*, that is, figures of the same type are ordered correctly among one another, but not with figures of other type. This even seems like a bug, because, if they were different float types completely, why do they use the same numbering?


Is it possible to evaluate $\sum_{r=1}^{20}\frac{1}{r(r+1)}$ using $\sum_{r=1}^{n}\frac12n(n+1)$

Evaluate $$\sum_{r=1}^{20}\frac{1}{r(r+1)}$$  It splits into $$\sum_{r=1}^{20}\frac{1}{r}-\sum_{r=1}^{20}\frac{1}{r+1}$$  I'm stuck on how to apply the standard result $\sum_{r=1}^{n}\frac12n(n+1)$ to it. It may be simpler to use the method of differences but is that the only straightforward way?


Generating array of array of divisors in python

I wish to get divisors of number n as a list stored in a master list at nth position. For example the sieve of length 11, I want sieve[6] == [2,3,6] (ignoring 1). My code below does not work and surprises me in an unpleasant way:  sieve = [[]]*11  sieve[1] = [1]  for i in range(2,11):      for j in range(i,11,i):          sieve[j].append(i)          print ("appended", i ," at sieve",j)         # This check-print statement shows that it works fine until sieve is printed.  print (sieve)  sieve[6] turns out to be : [2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 5, 5, 6, 7, 8, 9, 10]   Can that be explained please?


I wanted to install Ubuntu on my new laptop, but I don't want to replace my operating system (Windows 7) that I just purchased. When I start the downloader from a CD Burned image, it acts as though I am replacing my new OS, despite the fact I was told it would give me an option to install it as a program. Will it replace it, or I am just being stupid?