How can I convert an entire input file into a string?

In Java, how would I convert an entire input file into one String?  In other words, if I have an input file "test.in":  c++ java python test   then I want to create a String containing "c++javapythontest".  I thought of something along the lines of  Scanner input = new Scanner(new File("test.in")); while(input.hasNext()){     String test = test + input.nextLine(); }   but that doesn't seem to work. Is there an efficient way to do this?


What is the difference between single asterisk and double asterisks before variable in python?

data = pd.read_csv("customers.csv")  print("Wholesale customers dataset has {} samples with {} features each."       .format(*data.shape))   After this, I got the dimension numbers of the data. But I am wondering what is the usage of the asterisk before variable in Python.


Can we find $c_n$ to make $X_nc_n \rightarrow 0$ almost surely, even if $EX_n > \infty$?

Let $X_n$ be a sequence of random variables. Can we find $c_n$ (positive constants) so that $X_nc_n \rightarrow 0$?  It is easy with Markov's equality + Borel Cantelli, with assumptions on expectations, but what if we don't know anything about expectations?


Show $\pi$ is the orthogonal projection of $W$ iff $\|\pi(u)\| \leq \|u\|$ for all $u \in V$

Let $V$ be an inner product space and $W \subseteq V$ a finite-dimensional subspace of $V$. Let $\pi \in \mathcal L(V,V)$ a projection with $W$ as image. Show that $\pi$ is the orthogonal projection $\operatorname{pr}_W$ of $W$ if and only if $\|\pi(u)\| \leq \|u\|$ for all $u \in V$.  I prove the first part $(\Rightarrow)$, but I can't figure out how to start the second part $(\Leftarrow)$.


Why Goku's Ultra Instinct wasn't awakened in his battle with Broly?

In the tournament of power, Goku was pushed to his limits several times, and he awakened Ultra Instinct Omen, and Mastered Ultra Instinct. But in the battle with Broly (in which I would assume he was pushed to his limits too, since       not even with Vegeta was he able to defeat Broly in Super Saiyan Blue   He couldn't awaken Ultra Instinct, not even Omen Ultra Instinct, and in the new manga arc we see he was "Ultra Instinct-less" for several years. Why wasn't Goku's Ultra Instinct awakened in his battle with Broly?


UK Spouse visa - Do I provide husband's property deeds if I live there?

Regarding a UK spousal visa, if I live with my husband and he owns the property do I need to provide deeds of the property for supporting documents or is there no need?


Isomorphism between $\mathbb{Q}/\mathbb{Z}$ and $\mu_{\infty}(\mathbb{C})$, the set of all $n$th roots of unity.

I think that I only need to show that the function $e(x)=e^{2\pi i x}$ for x integers gives back 1 and for a number which is a rational a which is not a natural number we get a complex number but not a real number, am I correct?


In classical logic, why is $(p\Rightarrow q)$ True if $p$ is False and $q$ is True?

Provided we have this truth table where "$p\implies q$" means "if $p$ then $q$":  $$\begin{array}{|c|c|c|} \hline p&q&p\implies q\\ \hline T&T&T\\ T&F&F\\ F&T&T\\ F&F&T\\\hline \end{array}$$  My understanding is that "$p\implies q$" means "when there is $p$, there is q". The second row in the truth table where $p$ is true and $q$ is false would then contradict "$p\implies q$" because there is no $q$ when $p$ is present.  Why then, does the third row of the truth table not contradict "$p\implies q$"? If $q$ is true when $p$ is false, then $p$ is not a condition of $q$.  I have not taken any logic class so please explain it in layman's terms.       Administrative note. You may experience being directed here even though your question was actually about line 4 of the truth table instead. In that case, see the companion question  And even if your original worry was about line 3, it might be useful to skim the other question anyway; many of the answers to either question attempt to explain both lines.


Has there been a change so that asking a question receives 3 points?  I'm showing +3 for a question I posted, and can't figure out the reason.


How does a Stack Overflow moderator know about sockpuppets?

How does a Stack Overflow moderator know about sock puppet accounts?   How do they trap the user?


Pages 5.5 isn't opening Pages document created by the previous version

I have a very important document that I wrote in Pages (the version prior to Pages 5.5). Now on Yosemite and Pages 5.5, I can't even open the document.    The Pages document is an attachment in GMail. It is not stored on iCloud.  Error Message "FileName" Can't be opened  And I don't have iWork 09 anymore.  How to solve that?


Life is mysterious to take too serious/seriously? Which one is correct?


I have a cone and I want to cut of top piece of it. How can I make cut face flat?


Why didn't Iron Man make Vibranium armor in Iron Man 2?

In the movie Iron Man 2, Tony Stark figured out how to synthesize Vibranium. Why didn't he use it to make a new Iron Man armor?


Can the arguments of main's signature in C++ have the unsigned and const qualifiers?

The standard explicitly states that main has two valid (i.e., guaranteed to work) signatures; namely:  int main(); int main(int, char*[]);   My question is simple, would something like the following be legal?  int main(const unsigned int, const char* const* argv);   My tests say 'yes', but I'm unsure of the answer because am I not overloading main by changing int to unsigned int as well as the non top-level const-ness of argv? If I am, then that's clearly prohibited.  So, are these modifications guaranteed to work on a standards conforming compiler?


Recommendations for beginner - intermediate quantum mechanics books

I have an interest in quantum mechanics rather than classical mechanics , so should I read Feynman Lectures with those red cover and is it correct or would you suggest some other book for start . And I like to study by making my own notes and my own thoughts , so pls I know you're not a psychiatrist , but pls suggest. PS : I am a beginner in quantum world


Can I ask a postdoc who has closely supervised my research to write me a letter of recommendation?

When I apply to a PhD program, may I ask a postdoc who closely supervised me to write a recommendation letter? My supervisor also has written one for me, but I believe the postdoc can comment on my research skills in a more detailed and precise way. Does a postdoc have enough authority to convince admission committee?


How can I avoid clearing caches when CSS changes are made?

Every time I make the slightest CSS change, I need to clear cache to see the changes.   What can be done about this?


Overly long review process (>2 years) without feedback

We submitted a paper to a journal more than 2 years ago. After 1 year had passed without any news, I asked the editors for an update on the status of our paper, and they mentioned they were still waiting for referee reports. After the second year of waiting, I wrote another email about a status update, without getting any response from the editors. The long process is a real nuisance for all authors involved, in particular for the junior ones who need publications on their track record. This is why I would like to see a decision (positive or negative) soon, but on the other hand I would like to not offend the editors. What would you advise us to do in this situation?


Mac OS X: how to open vim in terminal when double click on a file

I have defined my own custom vim file type with highlighting etc.  I would like to open it using the terminal based vim when I double click on it.  I am using mac os x.  Any pointers on how to start on this?


Problem Let $G$ be a finite group and let $x$ and $y$ be distinct elements of order $2$ in $G$ that generate $G$. Prove that $G \cong D_{2n}$, where $\vert xy \vert = n$.   Solution We have $x^2 = 1$ and $y^2=1$. If we let $t=xy$, we then have $tx = xt^{-1}$. This is because, $tx = xyx$ and $xt^{-1} = x(xy)^{-1} = xyx$, since $x^{-1} = x$ and $y^{-1} = y$. And note that $y = xt$. Hence, instead of $x$ and $y$ generating the group, we can have $x$ and $t$ to generate the group.    I proved that setting $t=xy$, we have $tx=xt^{−1}$. And since $x$ and $y$ generate G, since $y=xt$, $t$ and $x$ also generates $G$. Is this (along with the fact that $G$ is finite) sufficient to conclude that $G \cong D_{2n}$?  Also, I have another related question, can there be an infinite Dihedral group, i.e., $$D_{\infty} = \langle x,y \vert x^2=1, yx=xy^{-1}, y \text{ has infinite order}\rangle$$ Or is this isomorphic to some other group?


How to delete conversation with someone on Facebook, both from my inbox and from his inbox?

I have a conversation with someone on Facebook that contains some sensitive information that that person could use to harm me. What should I do to delete that conversation from both my inbox and from his inbox?  As far as I know, the delete option in Facebook only works for my inbox. That means that the messages I delete still remain in that person's inbox.  What options do I have?


Passing variable from popup to caller form

I apologize if I've missed a blatantly obvious question that answers my problem.  I have a variable newTeacherName with no value initialized in the parent form Edit_Class_Form.  I have a popup Change_Teacher_Popup that has the user select a new value from a combo box New_Teacher_Combobox.  How do I have the parent form obtain the selected value from the combo box in the popup?


Does Power Word Kill kill druids in wild-shape?

Power Word Kill is a 9th level spell that "compel[s] a creature to die" as long as it has less than 100 hit points.  If this is cast on a druid in wild-shape form with less than 100 HP, does the druid die or does he only revert to his normal state? Is the "creature" the druid himself? Is wild-shape a creature on top of the druid, or is he always the same creature?  I realize that a druid is only knocked out of wild-shape if he hits 0 hit points or is knocked unconscious, so my personal take is that he would simply just die due to the wording of the spell, but I was curious if I was perhaps missing something.


Can a body be in equilibrium when only one force acts on the body?

I think that when we throw a body in air, at top point the body is in equilibrium but gravitational force is still acting. Is this correct?


How did Skynet send back the T-1000 and the T-X?

As we learn in the original Terminator movie only living, organic material can be sent back in time:     REESE: "You go naked. Something about the field generated by a living   organism. Nothing dead will go."      SILBERMAN: "Okay. Okay. But this... cyborg...if it's metal..."      REESE: "Surrounded by living tissue."      SILBERMAN: "Of course."   If this is the case then how was Skynet able to send the fully inorganic T-1000 and T-X model Terminators back in time?


we have a SharePoint 2013 Standard edition implementation and 80 users.  We are now starting to use MySites and I want to set up SkyDrive (OneDrive) Pro syncing of their documents from mysites to their laptops but the quota limit is 100MB, which is far too small for users documents.  All users have logged in so their mysites have been set up.  I understand I need to amend each users quota individually but im unsure where to go to do this (central administration?).  If anyone could let me know and also where the MySites Quota template is so I can set it for new users i'd be really grateful.


I have this function:  def generateRepetition(toR, rate):     return [toR]*rate   If I call it with toR=0.234 the function returns an array in which the number is repeated for rate parameter, however, the number changes in this way:  [0.23399999999999999, 0.23399999999999999, 0.23399999999999999,...]   I do not understand why, anybody has a solution?


True or false: If $T\vDash (p\lor q)$, then either $T\vDash p$ or $T\vDash q$.

True or False. For any set of sentences, T, if T semantically entails (double turnstile symbol) p v q, then either T semantically entails p or T semantically entails q.


I've been recently coming across questions with poor English; questions that are grammatically incorrect, not properly capitalised and whatnot. What should we do about it? Should we downvote or edit or do nothing because it might hurt/discourage the OP?


What happens to my reputation if I place a bounty after hitting the rep cap?

If in one day I earn 350 reputation (capped at 200), and on the same day I offer a bounty of 100, at the end of the day, have I gained 100 or 200 reputation?  Edit  I Confirm that  address my problem.


Why is my Metz 58 AF-2 using long shutter values when my Canon 60D is in Av mode?

About one year ago I bought a Metz 58 AF-2 for my Canon 60D. Because of a lack of free time to experiment with automatic functions, I have used it only in manual mode with other manual flashes, without problem. Those few times I used it in auto-mode (E-TTL 2 w/o HSS)  I noticed some problem but I thought I was incompetent in setting it correctly.  The problem is that when the flash is in mode ETTL 2 or ETTL2 HSS (attached on the camera) the shots, sometimes (apparently randomly) are underexposed.  In my last experiment I've noticed a thing that made me suspect about a real hardware problem. If, on the camera, I set the AV (Aperture priority) mode (e.g. to f3.5)  and the flash is in the mode I just described, with the parabola oriented toward the ceiling, when I half-press the shutter button, the camera sets an exposure time much too long, between 1 and 2 seconds. Instead, I was expecting that, as it has a very powerful flash attached, it could reduce the exposure time to something like 1/300 and increase the output power of the flash.  These extra-long exposure times are set when I lock the ISO on 125. if I set ISO to AUTO, it reduces the exposure time to 1/60, but increases ISO to 1600... In no way does the camera seems to take in account that there is a 58GN flash attached that could improve the shot.  Anyway the camera is aware that there is a good flash attached, as I see it use the flash-focus-beam, and I can control flash parameters by the camera menu. Also the flash fires when I press the shutter button, but photos are underexposed.   Is this behavior normal? How could I solve it?


Can you get a USA visa and enter the country if you already have an Iranian visa in your passport

I am a Serbian national, living in the Netherlands. I traveled to Iran for business once and thus have an Iranian visa in my passport. I will likely need to travel to USA for work as well. Will the Iranian visa/stamp be a problem?


Prove that $a^2 + b^2 + c^2 \lt 2(ab + bc + ca)$

Given that $a, b$ and $c$ are the sides of a triangle.  How to prove that $a^2 + b^2 + c^2 \lt 2(ab + bc + ca)$? Maybe any hint? Am I going to wrong direction? $$2(ab + bc + ca)-a^2 + b^2 + c^2>0$$ $$2ab + 2bc + 2ca-a^2 + b^2 + c^2>0$$ $$2b(a+c) + 2ca-a^2 + b^2 + c^2>0$$ ...?


Good introductory book to computational physics

First time asking a question here. As per the title I'm trying to find a decent book that serves as an introduction to computational methods used in physics. A little background on myself will help understanding my problem: I'm a PhD student in experimental physics, recently I found myself dealing with a lot of works dealing with electron and phonon bandstructure calculations (mostly using DFT methods). I find these work really useful and fascinating, but there's a problem: I don't really understand what they are doing. So I'd like to close this gap by learning more on computational methods in  physics, especially methods useful in condensed matter (as bandstructure calculations, for example). I know there are plenty of good books and reviews on the topic, but I find it difficult to relate the integrals and formulae written in these books to actual code. My question in simple words is: do you know any book, online course, lecture notes, review that explain some of these concepts with practical examples? I have the feeling that once I've seen few of them I would be able to kick off by myself. Thank you


90s(?) book series about two people transported to a parallel medieval world, she joins city watch, he becomes wizard

I must have read his in the nineties.  I think it was a series of books.  The first book starts off with a woman in a cabin in a modern-day American desert. I think a biker dude turns up, and then a wizard appears with a baby, and transports them to a parallel medieval world. The woman joins the city watch, protecting the baby, and the biker dude becomes an apprentice to the wizard.  I remember one scene where the biker dude casts a spell to change his appearance to a dung beetle, to sneak past some guards thinking it would be inconspicuous, but the locals had never seen a dung beetle before.  The book was written in English.


Google Pagespeed: How to satisfy the new image compression rules?

We have several pages with good Pageseed-values - even those with 100/100. Since a few days however, Pagespeed claims across all sites (technically different, different servers) that our images could be more optimized.  Does anyone know what exactly has been changed by the algorithm?  On the one with PS 100/100 (before), we use jpegoptim, so we really don't know how to optimize further. Images are uploaded by our application and then optimized.  Any insight would be appreciated. Is there a changelog for PS anywhere?


public class StringTest {      public static void main(String[] args) {         String s1 = "java";         String s2 = "ja" + "va";          String s3 = "ja";         String s4 = s3 + "va";          System.out.println(s1 == s2);         System.out.println(s1 == s4);     } }   First System.out.println(...); statement as expected outputs true, but why is second statement showing false as output?  I want to know which string is created in pool area and which in non-pool area of pool.


How can I access a photograph on users phone to include in an App?

I have written a simple app and would like to include a photograph from the users phone. They would be asked to choose a photo on their phone ... Can anyone give any suggestions or helpful advice on how I could do this. It is my first ever app so I am not extremely knowledgeable in this area.


How to pose for a selfie so you don't look fat?

It is the biggest problem for a fat person to take a selfie in which he looks better . It's difficult for a fat person to take perfect selfie .


I would like to delete one of my questions because (1) it is closed and (2) it has been downvoted, but I am unable to do so since it had received an answer. It is found on the Linguistics SE and I have already flagged the question but no change has resulted, which brings me to ask on meta: "How (selecting which option) should a user  support for requesting deletion of a question."


Where to go to learn about web architecture? Youtube example?

I'm trying to build a web application that is similar to Youtube (it's not a knock off), but I guess I don't know how video is served on the internet very well.  I know how to build regular database driven web applications, but nothing like the scalability of Youtube. All of the applications I have built before have all been run on one server with the files stored on the same box as the web server.  How does one decouple the application server from the file storage from the media server? I would more or less want four machines (clusters of machines):   Application servers -- Present the web page, handle user uploads, link the user's flash player to the correct media server etc. Database shards -- Store user information, check favorites, etc. File storage -- Store the media files Media servers -- Serve the media files   How do I hook all of this together? Which technologies should I leverage? Where do I go to learn more about architecting this?  How does Youtube's embeddable flash stuff work? I want to embed my flash player on other websites and have it tie into my architecture.  Note: I have looked into:   But I still don't get the overall picture of how this stuff ties together. If someone can explain in high level terms how all of this stuff works?  Are there dedicated client servers running internally to shuffle around all of this stuff between the application servers, file storage, etc. Is it all via HTTP using JSON, what is going on here!  Thanks!


Moved old HD to new machine with Windows 10, how to delete files?

My old machine died. I installed the old disk as an extra disk in the new Windows 10 (old machine also was Windows 10). A lot of files I can' delete. I've tryied to take ownership of everything but some files fail. I don't need an unused windows installation in the disk. I've tried to take ownership, but it keeps asking me to that I need to be my user to delete the files. I managed to delete some dirs following , but there are still some dirs that I can't delete. How do I gain control of everything so I can clean the disk?


What does the tilde (~) mean at the end of a filename?

What is the file with the ~ at the end of the filename for?  $ ls # aliased to add flags -rwxrwxr-x  1 durrantm  2741 May 16 09:28 strip_out_rspec_prep_cmds.sh~* drwxrwxr-x 13 durrantm  4096 May 16 14:21 ../ -rwxrwxr-x  1 durrantm  2221 May 16 14:58 strip_out_rspec_prep_cmds.sh*   This is not the same as .swp files which are there while editing.  The two files have quite a few differences and the newer file (no ~ at the end) has the most recent changes and those changes are not in the older (~) file.  Looks like I can delete it?


Both SQL statements return the same result. So what is the difference when using where clause vs using a having clause? Any idea? select       min(internid), max(internid)  from       v_intern where        trainingterm= 'Fall - September' and trainingyear = '2020' group by      trainingTerm, trainingYear    select       min(internid), max(internid)  from       v_intern group by      trainingTerm, trainingYear  having       trainingterm = 'Fall - September' and trainingyear = '2020'


Command for getting number of lines in another file

My goal is to combine several documents into one, so maybe someone can recommend a different solution. More specifically, I need to input about 20 files in a master file, all from line 4 to the second-to-last line, inclusive (I am excluding the \documentclass tag, an \input{header} tag, and \begin and \end{document} tags).  I would like to have a command, very similar to @mpg's , except where the second number is relative to the number of lines in the file. For instance, something like   \partialinput{4}{-1}{pitest}   would be great. Or maybe  \partialinput{4}{\linenumber{pitest}-1}{pitest}    or similar (where \linenumber could be some command that gets the number of lines in the argument file). I would prefer not to use `subfiles', as that would require changing all the headers of the individual files. So, my questions are,   Is there a command that gives back the number of lines in another file, or Can the \partialinput command be modified to include all but the last line in a document?   I'm not very proficient at TeX or e-TeX, so the structure of the \partialinput command is not clear to me. I initially thought that making the counter look one line ahead and stop when it reaches the end would do it, but again, I don't know enough TeX to make that happen.


I try to prove that $[0,1]$ is connected.I have to  follow  the next steps: $R$ is complete using the construction of $R$ with Cauchy sequences $\Rightarrow$ $[0,1]$ is connected.How can I prove that?


Please add a way to reach the question's site from the question

Often (via Google Now, or when searching for a solution to some problem), I'll open a question from a non-favourite site in the app. Sometimes, I'd like to see what else is going on in the site where the question was posted. Currently, I have one of two ways:   Via tag icon:   Click one of the tag icons beneath the title Delete the [tag] text (at which point, thankfully, the sorting changes to Active from Votes).  Via manually searching for the site, which is more cumbersome. I type in hard and Hardware Recommendations is the fourth entry (below Ask Different, Raspberry Pi and Arduino)! This more annoying for meta sites, where I have to pick Meta from the dropdown menu.   Can I pretty please have a way to head to the site directly from the question? Maybe:   the site name in the top bar could become clickable and lead to the site, or an option in the More menu?     This would be especially useful for Meta sites, where questions posted around the same time could be related. Interestingly enough, most questions that Google Now are for metas of sites I visit on occasion, but haven't pinned to the list.


Is there a simple way to plot the error function in latex?  Something like the graph shown in the wikipedia page would be great. The function doesn't seem to exist in pgfmath.   Thanks!


regex for query string, a single case or multiple case

I have this string ?foo=bar&language=fr&bar=foo or this string ?language=fr   I want to capture (fr) so i did the below:  /language=(.*)(?:\&)?/   A link for the regex,


How to prove that $4^n-3n-1$ is divisible by 9?

How can I prove that $4^n-3n-1$ is divisible by $9$? I tried dividing the expression by $9$ and seeing if the terms cancelled in any predictable way but I still cannot prove it. Maybe there is a clever solution but so far I have been unable to spot it.


$010$ can be generated. If $s$ is a sequence which can be generated by these rules, then $01s, 10s, 0s1, 1s0, s01$, and $s10$ can all be generated.   *Prove, by induction, that in any sequence generated by these rules, there are more $0$'s than $1$'s.    PART 2 Again. consider sequences of $0$'s and $1$'s, this time generated according to the following rules: $10$ can be generated.  $01$ can be generated.  If $s$ is a sequence which can be generated by these rules, then $0s1$ and $1s0$ can be generated by these rules.  If $s$ is a sequence which can be generated by these rules, then the sequence $ss$ ($s$ followed by another copy of $s$) can be generated.  If $s$ is a sequence which can be generated by these rules, and $s$ is of the form $t00$ or $t11$ for some smaller sequence $t$, then $t$ itself can be generated.  Prove that no sequence with an odd length can be generated by these rules.


How to check if list item already exist when adding it with

how to check Title( Country) if exists in the list. if exists it is necessary to do the update if not it is necessary to add it ?  function AddListItem() {      var listTitle = "Test";     //Get the current client context       context = SP.ClientContext.get_current();     var airportList = context.get_web().get_lists().getByTitle(listTitle);          //Create a new record       var listItemCreationInformation = new SP.ListItemCreationInformation();     var listItem = airportList.addItem(listItemCreationInformation);      //Set the values      var country= $("#Country").val();     var client= $("#Client").val();     // var nb1 = $("#nb1").val();      // var nb2 = $("#nb2").val();       // var nb3 = $("#nb3").val();      // var nb4 = $("#nb4").val();       // // var nb5 = $("#nb5").val();        listItem.set_item('Country', Country);     listItem.set_item('Client', Client);     listItem.update();     context.load(listItem);     context.executeQueryAsync(AddListItemSucceeded, AddListItemFailed); } function AddListItemSucceeded() { } function AddListItemFailed(sender, args) {     alert('Request failed. ' + args.get_message() + '\n' + args.get_stackTrace()); }


Intuitive explanation of convergence in distribution and convergence in probability

What is the intuitive difference between a random variable converging in probability versus a random variable converging in distribution?  I've read numerous definitions and mathematical equations, but that does not really help. (Please keep in mind, I am undergraduate student studying econometrics.)  How can a random variable converge to a single number, but also converge to a distribution?


I have an old Ubuntu version 11.04. Version is obsolète. I want to upgrade directly to 13.04 version using my terminal. How can I do it ?  thx in advance Anis


Greatings!  I'm trying to understand special relativity and have one question bugging me.  In almost every book or video about the subject there is a thought experiment with moving light clock. I hope I need not elaborate on the sutup and the outcome of the experiment.  So the question is this: When a light source on the MOVING light clock emits a photon of light the path of the photon is triangular.   How this can be?   I thought since light speed is constant in every reference frame the movment of the "emmiter" can't affect the movment of the light so light should shoot right up (from the point of stationary observer) and thus move backward and up from the point of moving observer.  So you see my logic is: light speed is invariant => you can't make it move UP & FORWARD only UP. i.e. you can't change it's direction once it's emited in UP direction. Why the hell light moves sideways then?  And I'm puzzeled. There is flaw in the logic but I don't see it.  Thanks for help.


I want to select "Apple" then output "John" and "Michelle". I try to run the code but it is not working. Please help.  select @start := title as 'title', id, parent from mytable join  (select @start := 0) temp where parent = @start and title = "Apple";   Link :


Apply an image to a depth map in Photoshop CS6

I created a depth map based on an image of the back of a man wearing a coat. Now I want to apply an image to the depth map, giving the appearance that the image part of the jacket. How is this done?


48 hour accept own answer delay wastes other answerers' time

I have read all the discussions around the 48 hour delay on accepting ones own answers. To quote Jeff Atwood:  You must wait 2 days from the time you originally asked your question before you can accept your own answer. This gives other users a chance to answer the question in good faith, and earn the accepted answer.  Let's suppose you ask a question. You finish typing it out, but don't press Post Your Question. Instead, you go off and do a bit of research. You find a solution. Instead of discarding the question, you decide to share your new knowledge with the community because you're just that type of person. So you check Answer your own question after reading that it is . You enter your answer and submit both the question and answer. Knowing that your answer solved the problem, you try to accept your own answer to indicate as much to everyone. You are then confronted with  You can accept your own answer in 2 days.  Now, your intention is to come back in two days and accept your answer. You come back two days later, but in the meantime, others have provided answers in the hope of getting accepted. However, your intention has always been to accept your own answer because you know it is correct. You have just lured them into wasting their time providing answers that you already know will not be accepted. You accept your own answer and that's that. But not quite... you get annoyed when you realise that your effort to share knowledge has been sabotaged by your correct answer not appearing at the top. Can we have the system changed to work like this:  Provide an additional "Answer and accept your own question"; Always keep the accepted answer at the top, no matter whose answer it is; Don't count votes on the question or answer toward the user's reputation. If the user decides to accept another person's answer after the fact, allow votes on the question only to affect the user's reputation.  If you're going to say that you encourage users to ask and answer their own question, you should not sabotage their efforts to do so by demoting their answer. It's just pointless. You already have measures in place to prevent gaming, such as not counting the answer towards the user's reputation.


Stored Procedure: table-Value parameters

We have a number of stored procedures where we pass in a user defined table type parameter. As per the MS doc below, my understanding is that SQL Server doesn't retain statistics on these (and therefore should only estimate a single row?).    Recently, we've seen issues with plan generation where the estimated number of rows in the table is a high as 2000 (normally only 1 or 2 rows are in passed in).  This is caching a plan which is highly inefficient (wrong join order with a largish table ~160M rows) and causing some issues.  Am I wrong here about what the estimates should be? I could force the join type/order but I'd rather avoid this if at all possible.  Would really appreciate any thoughts/feedback people might have.  Thanks Dave


What to do if I am unable to present at airport if I booked ticket online with my credit card for a friend at Qatar airways?

I have booked a ticket for my foreigner friend for Qatar airways flight. Flight is now day after tomorrow. But now that I saw Qatar airways say that I need to be present at airport at the time of departure. This is impossible for me. Which documents required to submit and who to contact regarding this?


Lightning component calling wrong overloaded apex class method

I have a lightning component that displays Knowledge Articles based on Topic IDs that it is configured for. This works great so I went to create my test coverage for it and discovered that the inserted test Knowledge Articles can only ever be 'Draft' making my tests fail since the apex class only looks for 'Online'. Instead of rewriting my component I decided to overload the apex method so that when called without the status parameter it passes in 'Online' allowing my tests to pass in 'Draft' instead. However, the first method signature does not get called from the component resulting in null for the status parameter.  Here is the component controller:  ({     "retrieveArticles" : function(component, event, helper) {         var action = component.get("c.returnArticlesWithTwoTopicIds");         action.setParams({             mainTopicId : component.get("v.mainTopicId"),             secondaryTopicId : component.get("v.secondaryTopicId"),             limitAmount : component.get("v.limitAmount")         });          action.setCallback(this, function(response) {             var state = response.getState();             if (component.isValid() && state === "SUCCESS") {                 // handle SUCCESS             }             else if (component.isValid() && state === "ERROR") {                 // handle ERROR             }         });         $A.enqueueAction(action);     } })   Here is the apex class:  public with sharing class KnowledgeArticleVersionCtrl {     @AuraEnabled     public static List<KnowledgeArticleVersion> returnArticlesWithTwoTopicIds(String mainTopicId, String secondaryTopicId, Integer limitAmount) {         return returnArticlesWithTwoTopicIds(mainTopicId, secondaryTopicId, limitAmount, 'Online');     }      @AuraEnabled     public static List<KnowledgeArticleVersion> returnArticlesWithTwoTopicIds(String mainTopicId, String secondaryTopicId, Integer limitAmount, String status) {         // build query string         List<KnowledgeArticleVersion> articles = Database.query(query);         return articles;     } }   Is there something about the component that would cause it to not use the first signature, the one it should match, in place of the second one, which it shouldn't match?


Show that $j_{*}j^{-1}\mathcal{F}_{x}=\mathcal{F}_{x}$ if $x\in Z$ and $0$ otherwise, if $j:Z\rightarrow X$ is a closed subscheme of $X$

Let $X$ be a scheme and $j:Z\subseteq X$ be a closed subscheme. Let $\mathcal{F}$ be a sheaf of modules over $X$. Show that \begin{equation*} j_{*}j^{-1}\mathcal{F}_{x}=\left\{\begin{matrix}\mathcal{F}_{x} & \text{ if $x\in Z$}\\0 & \text{otherwise}\end{matrix}\right. \end{equation*} I think I can show that $j_{*}j^{-1}\mathcal{F}_{x}=0$ if $x\notin Z$ and $j_{*}j^{-1}\mathcal{F}_{x}=\mathcal{F}_{x}$ if $x$ is contained in $Z^{o}$ (the largest open subset of $Z$), but what do I do if $x\in Z\setminus Z^{o}$?


I have a hard time understanding, on an intuitive level, what matrix multiplication actually does. I have used it a lot, but I do not really know what it does.  I know that $Ax = y$, where $A$ is a matrix and $x$ is an $n$-tuple, is just another way writing a system of equations. Seeing it this way, matrix addition is quite intuitive. Since every elementary matrix can be seen as representing an elementary row operation, I can understand what matrix multiplication does with invertible matrices. However, that still does not explain anything when we are working with matrices that are not invertible.  What is a good way of thinking about matrix multiplication?


We adopt the approach under which the ...   We adopt an approach under which the ...   We consider the scenario where ...   We consider a scenario where ...      Suppose that I say nothing about the approach or the scenario before there corresponding sentences. However, suppose that the scenario is known in the literature.  I am a bit confused about the article usage here since I am explaining/clarifying things about the approach (resp. scenario) after under which (resp. after where)  Question: (a) which one between 1 and 2 is correct ?            (b) which one between 3 and 4 is correct ?


Binomial theorem in a field of cardinality q=p^r

If $a$ and $b$ are roots of the polynom $X^q -  X$, how do you show that $$(a+b)^q = a^q + b^q$$  Thanks!


Hide votes for answers for the first few minutes?

I think it would be useful to hide votes on existing answers for the first X minutes of a question's life. Early answers have a higher chance of being upvoted, so if you're ten minutes late to the show, your answer will be the last one displayed even if it's great.  Not everyone will check all answers to a question, especially if the first one already has some upvotes.  Also, there's another twist to it. Seeing an answer with 5+ votes, some will assume it's the best one without even looking at the others, due to herd mentality.  The main upside to this would be that others are not influenced by existing votes when they cast theirs. This doesn't have to occur for everyone (the OP could still see the votes in case he's looking for a quick solution, and answerers could see the votes on their own answers).     And... what if the answer is wrong? Indicating that it's wrong early is very, very good.   Of course it is, but then again, a wrong answer that appears to be right that has several upvotes is very, very damaging (especially if it reaches a score of 10+). From my experience, in C++, this is highly visible with undefined behaviour. An explanation for some piece of code comes along, which may make sense or even apply to a particular compiler, and be taken for granted, when, in fact, the answer is wrong.


I have a 10GB Ubuntu partition and I am starting to run out of hard disk space.    What are some large things I can remove to free up space and where are they located?


I’m adding explanations for definitions in the margin paragraph. I have a macro which looks as follows (simplified):  \newcommand*\define[2]{%   \marginpar{{\sffamily\footnotesize\textbf{#1}: #2}}}   This works fine, but unfortunately it uses the baseline skip from the main text, which is of course much too large for the footnote-sized font.  So I tried changing the inter-line spacing, but to no avail. These are the two alternatives that I have tried:   Using \fontsize instead of \footnotesize:  \marginpar{{\sffamily\fontsize{8}{8}\selectfont\textbf{#1}: #2}}  Setting \baselineskip:  \marginpar{{%   \sffamily\footnotesize%   \setlength\baselineskip{1ex}%   \textbf{#1}: #2}}    Neither variant works (and I’ve tried other values: the inter-line spacing won’t budge). So here’s my question:  How do I re-assign the baseline skip for margin paragraphs?


I got new issue from my client. He want to back up sharepoint site for restore, if something is going wrong. And the challenge is not to use 3rd party solution(MetaVis, AveDoc). Is there any other way to get back up? I think about to write my own application for backing up,maybe using CSOM, but i don't find a way to connect SharePoint storage(site description schema), where could I start? Please, share your experience if you had challenges like that.I want to find programmatic solution for this challenge.


CS0426 error thrown in switch block, but not within an if statement, how to fix?

I've got this enum: namespace MyApp.Internal.Enums {     public enum EServerType     {         API     } }  I am trying to use the Factory pattern to get a class according to a string, and this is my factory (with both the working code and the error): using MyApp.Handlers.Interfaces; using MyApp.Internal.Enums; using MyApp.Services.Interfaces;  namespace MyApp.Handlers {     public class ServerCallerFactory : IServerCallerFactory     {         public IServerCaller GetServerCaller(string serverType)         {             if (serverType.ToUpper() == EServerType.API.ToString())             {              }              switch (serverType.ToUpper())             {                 case EServerType.API.ToString():                     break;                 default:                     break;             }         }     } }  I prefer switching over the string instead of using multiple if statements of course. The if block isn't throwing any compiler error, however, the switch block is! Error thrown by compiler: CS0426 The type name 'API' does not exist in the type EServerType. Why is this happening and how to fix it?


.sh Help Please. Trying to convert this to .bat

I have a .batch file with switches and parameters how would i run that in a bash file?   Any help would be appreciated  @echo off title runserver "C:\Program Files\Java\jdk1.7.0_25\bin\java.exe" -Xmx815m -cp bin;lib/*; com.rs.Launcher true true false pause   How could u get a bash file to run the same way as the batch file?


Isomorphic as affine schemes v.s. isomorphic as affine $k$-schemes

Let $k$ be an Algebraically closed field. Let $A,B$ be integral domains which are finitely generated as $k$-algebras.   If $A$ and $B$ are isomorphic as rings, then are $A$ and $B$ also isomorphic as $k$-algebras ?


Do you get an Opportunity Attack with an unarmed strike at 5ft. when holding a 2-handed reach weapon?

A reach weapon adds 5 feet to your reach making it 10 feet.  If you are holding a 2-handed reach weapon (eg a glaive) with 2 hands and someone moves from 5 feet away to 10 feet away do you still get an opportunity attack? Or because you are holding the weapon are you unable to use an unarmed strike for opportunity attacks?


Tool A vs Tool B questions are not off topic (in my opinion)

I have been using Subversion for a while, but am seeing all my colleagues switch to (or advocate) GIT.  So I googled to find some info on the differences.  In the top ten results was this SO thread...    It was closed as off topic.  But, of all the Google results I received, that SO post was the most objective and informative.  This because it was written by multiple authors and allowed point/counterpoint.  Additionally it had the collective brain power of several dozen of SO's resident geniuses behind it.  I wanted to know more about why it was off topic.  I looked at the FAQ.  In the FAQ one of the criteria was "software tools commonly used by programmers".  Well, is this not a question about exactly that?  Software tools commonly used by programmers?  I agree that if a software tool comparison question is asked more than once, it should be closed as a duplicate.  But software tool comparison questions are not off topic according to the FAQ and should not be closed.  More than that, we will lose access to useful/valuable/above-average information if we do.  EDIT:  Sorry I mis-spoke.  It was locked not closed.  But only because it was historically significant.  However, had it been a new question, I assume the moderator would have closed it as off topic.


how to prevent load image on special sites

how to prevent load my website images on special sites   because many websites hotlink my website images How to Detect and Stop Image Hotlinking on my Website thanks


Old Sci-fi short story about lizard creatures on a planet who kill their wives and never lie

I got most of it in the title, but here you go anyway:  I think it's only revealed part way through that they're aliens, and the creatures that land on their planet are actually the human ones. The humans give the aliens potatoes or something. For some reason one of the aliens wonders if one of the humans wants him to kill his wife, so he does so. The guy starts shooting them when earlier he said he wouldn't hurt them, and the aliens are shocked that he 'told an untruth'.  Cheers!


Is it C++ standard-compliant to define a variable using `A::template B x;`?

The following code is accepted by gcc, vc++, and clang.  template<class T> struct A {     template<class U>     struct B     {}; };  int main() {     A<int>::B<int> y; // OK as expected     A<int>::template B<int> x; // Also OK! Is this standard-compliant? };   Is it C++ standard-compliant to define a variable using A<int>::template B<int> x;?


Does invariant mass depends of temperature?

From special relativity theorie we know that $E = mc^2$.  When a system acquires energy, mass becomes greater. That is clear for kinetic energy, because we have a formula that gives m as a function of $v$:   $$m = \gamma M$$  with $M$ the invariant mass.   So when the system has a greater velocity, m is greater and E is greater.  But what when we heat a system?  The energy of the system also becomes greater, so m is greater too. If the system is at rest, v = 0, so m = M and E = m c² = M c². Is it right to conclude that the invariant mass M becomes greater? Is it reasonable to think that there is a formule (not already found, but maybe one day??) to calculate m as a function of the temperature to calculate m (or M) and E when heating a system?  Sorry for my bad English. I hope you understand my question.


On the meta home page I noticed the  is listed as doing something, but cannot figure out what it is.  There is nothing on the  or its , but the recent activity is listed with the same timestamp.


Downloading error "Could not retrieve the required disk image "

When I try to download Ubuntu 12.04 using the Windows installer (Wubi) through a proxy server which requires proxy authentication, after I choose the Ubuntu installation size, username and password, when I click the Install button, I get this error:  An error occurred: Could not retrieve the required disk image files For more information, please see the log file: c:\users\(myusername)\appdata\local\temp\wubi-12.04-rev266.log   The log file says: proxy authentication error  How can I solve this problem?


Let $a,b,c$ be the sides of a triangle. Show that: $$(\sqrt a + \sqrt b - \sqrt c)(\sqrt a - \sqrt b + \sqrt c)(-\sqrt a + \sqrt b + \sqrt c) \ge \sqrt {(a+b-c)(a-b+c)(-a+b+c)}.$$


NullPointerException when creating listview

I want to create list view in alert dialog. I pass not empty strings to ArrayAdapter but i receive error "java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ListView.setAdapter(android.widget.ListAdapter)' on a null object reference"  @Override protected void onListItemClick(ListView l, View v, int position, long id) {     super.onListItemClick(l, v, position, id);     PackageManager pm = getPackageManager();     ApplicationInfo app = applist.get(position);     ArrayAdapter arrayAdapter = null;      try{         AlertDialog.Builder builder = new AlertDialog.Builder(ViewAppsPermissions.this);         final View mView = getLayoutInflater().inflate(R.layout.popup_layout,null);         AlertDialog dialog = builder.create();         builder.setView(mView);         Button button = (Button) mView.findViewById(R.id.button7);         ListView listView = (ListView) mView.findViewById(R.id.textView);         try {              PackageInfo packageInfo = pm.getPackageInfo(app.packageName, PackageManager.GET_PERMISSIONS);             String[] requestedPermissions = packageInfo.requestedPermissions;             System.out.println("lenght :" + requestedPermissions.length);             arrayAdapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, requestedPermissions);          } catch (PackageManager.NameNotFoundException e) {             e.printStackTrace();         }           listView.setAdapter(arrayAdapter);         dialog.show();     } catch(ActivityNotFoundException e) {         e.printStackTrace();     } catch(Exception e) {         e.printStackTrace();     } }   XML:  <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"     android:layout_width="match_parent"     android:layout_height="match_parent"     android:orientation="vertical" >       <ListView         android:id="@+id/listView"         android:layout_width="match_parent"         android:layout_height="match_parent" />      <Button         android:id="@+id/button7"         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:text="Close" />  </LinearLayout>   Stack Trace :  W/System.err: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ListView.setAdapter(android.widget.ListAdapter)' on a null object reference W/System.err:     at com.example.admin.sap.displayScreens.ViewAppsPermissions.onListItemClick(ViewAppsPermissions.java:75) W/System.err:     at android.app.ListActivity$2.onItemClick(ListActivity.java:319) W/System.err:     at android.widget.AdapterView.performItemClick(AdapterView.java:334) W/System.err:     at android.widget.AbsListView.performItemClick(AbsListView.java:1531) W/System.err:     at android.widget.AbsListView$PerformClick.run(AbsListView.java:3667) W/System.err:     at android.widget.AbsListView$3.run(AbsListView.java:5590) W/System.err:     at android.os.Handler.handleCallback(Handler.java:739) W/System.err:     at android.os.Handler.dispatchMessage(Handler.java:95) W/System.err:     at android.os.Looper.loop(Looper.java:145) W/System.err:     at android.app.ActivityThread.main(ActivityThread.java:5942) W/System.err:     at java.lang.reflect.Method.invoke(Native Method) W/System.err:     at java.lang.reflect.Method.invoke(Method.java:372) W/System.err:     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1400) W/System.err:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1195) V/ActivityThread: updateVisibility : ActivityRecord{75ac80f token=android.os.BinderProxy@239ba43c {com.example.admin.sap/com.example.admin.sap.displayScreens.ViewAppsPermissions}} show : true


So I was following up with this link  I'm stuck with the 7th step. I'm pasting the output of the 6th step just in case if the error is somewhere over there. root@Sphinx-PC:~/reaver-1.4/src# ./configure checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for pcap_open_live in -lpcap... no error: pcap library not found! root@Sphinx-PC:~/reaver-1.4/src# make make: *** No targets specified and no makefile found.  Stop. root@Sphinx-PC:~/reaver-1.4/src# make make: *** No targets specified and no makefile found.  Stop. root@Sphinx-PC:~/reaver-1.4/src# make install make: *** No rule to make target 'install'.  Stop. root@Sphinx-PC:~/reaver-1.4/src#"


C Program - How to get the output of a shell command and compare it with a variable?

I would like to verify the serial number of my device with C program, so the command to get the serial number is in shell:  dd if=/dev/mtd0 bs=1 skip=$((0x1fc30)) count=16 2>/dev/null   This will result something like this:  1866203214226041   Here's basically what I want to do:  #include <stdio.h> #include <string.h>  int main () {     int sn;     sn=1866203214226041;      system("dd if=/dev/mtd0 bs=1 skip=$((0x1fc30)) count=16 2>/dev/null");      if (output of system == sn) {         printf("The serial number is verified\n");     }     else {         printf("The serial number is not verified\n");     }     return(0); }   How can I do this ?


Do we have $K(\beta)=K(\beta^2)$ for field extension of odd degree?

Let $K\subseteq K(\beta)$ be a finite  of odd degree. Does this imply $K(\beta)=K(\beta^2)$?


Techniques for securing mod_php for shared hosting (WAMP)?

I've setup a web server for production use. The OS is Windows Server, and it runs Apache 2.0 and PHP 5.3 as an apache module (and MySQL too...). It is used to host several virtual hosts (Apache vhosts) belonging to different customers.  At this point PHP is running as the system user. In the future FTP access might be granted to customers, so - by default - every customer would be able to access the whole system through PHP. That is obviously unacceptable.  I understand that I can set open_basedir in PHP, yet I am not sure if it is encompassing and solid enough to be considered a solution - does it limit access on all PHP functions, such as include...? How about PHP streams?  I also know that IIS offers a solution to that problem, but I prefer to keep Apache.  What I would ideally like to set up, is a solution that would fulfill the following requirements (mainly):   Be elegant and somehow automatic. I am manually managing the server - I want the setup of each vhost to involve the least amount of setup and configuration editing as possible. Allow for an exception. Most hosted websites are developed by myself, and I'd like to link all of them to a single library folder, so read-only access should be allowed to that folder although it would be outside the root of the vhost.   So, what are the options available, if any? I already did some research and it seems that most work in that field was done on Linux systems.


How do I remove the just added tr with append

Finally found a way to a new table-row with jQuery but I don't know how I can remove the same table-row with a button click.  I have tried using this code but nothing happens.    $(document).ready(function() {     $("#btnAdd").click(function() {       $("table").append(         "
<input type='list' class='form-control'></input>	<button type='button' class='btn btn-info btn-rounded btn-sm my-0'>Omhoog</button>	<button type='button' class='btn btn-info btn-rounded btn-sm my-0'>Omlaag</button>	<button></button><button id='btnRemove2' type='button' class='btn btn-danger btn-rounded btn-sm my-0'>Verwijder</button>
"       );     });     $("#btnRemove").click(function() {       $("#tr1").remove();     });     $("#btnRemove2").click(function() {       $("#tr2").remove();     });   });   I wish to remove tr2 when clicking the button with id='btnRemove2' but when I click remove button nothing happens.


Why do Gmail addresses without dot appear in my contacts?

Some weeks ago I found out that some of my contacts in Gmail have two addresses, one with dot and one without a dot in their name. For example johndoe@gmail.com and john.doe@gmail.com.  First I thought my friends switched from dotted to non-dotted but now I realized, they never used the non-dotted address. The address just has been added automatically to all of my contacts with Gmail-addresses.  Does anyone know why? I don't like the idea of Google editing my contacts without asking me.  Clarification: I know that Gmail does not recognise dots in addresses. I know that the two addresses above are equal for Gmail. My question is about my contacts: Who edited them? I never added the addresses without dots but now they are there.


Sum of all possible surjective functions.

For my combinatorics homework I have the following problem: Let $A = \{a_1, a_2, ..., a_m\}$ and $B = \{b_1, b_2, ... , b_n\}$ with $m \geq n$. Show that the amount of surjective functions $f$ from $A$ to $B$ is equal to: \begin{equation}  \sum_{i=0}^n (-1)^i {n \choose i} (n-i)^m \end{equation} My first thought was that, because these functions must be surjective, for every element $b \in B$ there must be a unique $a \in A$ such that $f(a) = b$. Therefore we must choose $n$ elements in $A$ that have a unique image on $B$ and the rest of the elements in $A$ can be sent to a random element in $B$. So i was thinking about: \begin{equation} {m \choose n} \cdot n! \cdot n^{m-n} \end{equation} as the amount of all possible surjective functions $f$ from $A$ to $B$. My second thought was that the combination is unnecessary and therefore the formula must be: \begin{equation} n! \cdot n^{m-n} \end{equation} Is this correct? If so, how can i prove that this is the same as the summation given at the beginning? I hope anybody can help me with this problem. Thanks in advance!


Simple Word Problem about Balls and Algebra

You, 4 other people, and a dog are in a room. You have a bunch of tennis balls in the center of the room. When no one is looking except for the dog, you give one tennis ball to the dog and then you divide the remaining tennis balls into 5 equal piles. You take one of the piles and hide it somewhere else in the room. Each of the 4 other people in the room do this to the remaining stash of tennis balls in the center (1 for the dog, 1/5 of the remaining for them). You again give one tennis ball to the dog after all four people have done the same and divide the remaining tennis balls evenly among all 4 people and you. There are no more balls left. What is the minimum number of tennis balls that could have been in the center of the room at the beginning?


Where to find information about coronavirus travel restrictions for different countries (Spain and Bulgaria)

I need to travel to both Spain and Bulgaria in the next month. Unfortunately, there is a 14 day quarantine period for entry to the UK from either of these countries, so I would have a significant wait in between if I were to come back to the UK. But I thought that maybe travelling to Spain from Bulgaria would be an option. I doubt the other way would be. But Im not sure where I can find information about the travel restrictions in other countries. Would I have to isolate coming into Spain from Bulgaria? Might there be other issues encountered? It would be a disaster if I couldn't get from one country to the other.


Can I travel to other Schengen countries with a single-entry visa type D?

I am an exchange student and studying in Poland for one semester, but I have a visa type D with a single entry.  Is it possible to travel other Schengen countries? Or do I need to apply for a short-term Schengen visa again?


I have a doubt regarding electric field inside uniformly charged spherical shell

A spherical shell, uniformly charged, exerts no field inside it ; the point being either at centre or off-centre. According to Gauss law if we construct a spherical Gaussian surface all inside the shell, it contains no charge inside and thereby zero net flux on that surface. Now, here we usually conclude that the field is zero as flux is zero. My question is how can we say the field is zero,  whereas the flux can also be zero in other configurations, where ingoing and outgoing field lines are equal in number. For instance, spherically symmetrical $1/r^2$ field and the source point being outside Gaussian surface.


Here is a contour map for which all the polygons of levels are available.  Let ask how to smooth the polygons keeping all vertices preserved in their exact locations?    Indeed the contour is made on top of a grid data, you may suggest then to smooth the grid data and hence the resulting contour will be smoother. Note that this is not working as my desire since the smoothing function such as Gaussian filter will remove small packs of data and will change the range of the third variable e.g., the height which are not allowed in my application.    Actually I'm looking for a piece of code (preferably in Python) which can do the smoothing of 2D polygons (any type: convex, concave, self-intersecting etc) reasonably painless (forget pages of codes) and accurate.   FYI, there is  that does this perfectly, but using third party commercial applications is not my choice for this question.        1)    Scipy.interpolate:        As you see the resulting splines (red) are not satisfactory!  2)    Here is the result using the code given in . It is not working well!      3)    To me the best solution should be something like the following figure in which a square is being smoothed gradually by changing only one value. I hope for similar concept for smoothing any form of polygons.       Satisfying the condition that spline passes the points:     4)    Here is my implementation of "whuber's idea" line by line in Python on his data. There are possibly some bugs since the results are not good.         K=2 is a disaster and so for k>=4.   5)    I removed one point in the problematic location and the resulting spline is now identical to whuber's. But it is still a question that why the method does not work for all cases?        6)    A good smoothing for whuber's data can be as follows (drawn by vector graphics software) in which an extra point has been smoothly added (compare with update   4):      7)    See the result from Python version of whuber's code for some iconic shapes:     Note that the method seems doesn't work for polylines. For the corner polyline (contour) green is what I want but got red. This needs to be addressed since contour maps are always polylines although closed polylines can be treated as polygons as in my examples. Also not that the problem emerged in update 4 has not been addressed yet.  8) [my last]    Here is the final solution (not perfect!):        Remember that you will have to do something about the area pointed by stars.  There is perhaps a bug in my code or the proposed method needs further development to consider all situations and to provide desired outputs.


Does anyone know how to make the character picker appear more quickly?   I use it enough now in my German language studies that it has become second nature for the critical marks and much faster than using the alt+keypress shortcuts.   Only problem is that it's so second nature that sometimes it doesn't pop up quickly enough so I end up typing the character and the number shortcut sometimes (IE u2 instead of ü). Anyone know how to make it appear with less delay? Ideally, I'd love if I could just hold the character and press the number but it appears that OSX insists on waiting for the menu to pop up.


Convolution operator has norm 1 with respect to $L^2$ norm

Let $C_c(\mathbb{R})$ be the following:  $$C_c = \{ f \in C(\mathbb{R}) \mid \exists \text{ } T > 0 \text{ s.t. } f(t) = 0  \text{ for } |t| \geq T\}$$  Let $T_n \in L(C_c(\mathbb{R}))$ be a linear operator such that:  $$T_n u = \delta_n *u, \forall u \in C_c(\mathbb{R}),$$  where  $$ \delta_n(t)= \begin{cases}        n^2(t+1/n) & -1/n \leq t \leq 0 \\       -n^2(t-1/n) & 0 < t \leq 1/n \\       0 & \text{elsewhere}     \end{cases} $$  I have to prove that with respect to the 2-norm, the operator $T_n$ has $\|T_n\| = 1$ and I have succeeded in proving that $\|T_nu\|_2 \leq \|u\|_2, \forall u \in C_c(\mathbb{R}).$  Now, I remained  to prove that $\exists \text{ } u \in C_c(\mathbb{R}) \text{ s.t. } \|T_nu\|_2 = \|u\|_2$, but I really don't get how $u$ should be shaped in order to satisfy it.


How to solve the diffencial equation for power series $(1+x²)y'' - 6xy=0$ in $x_{0}=0$

I have tried for the power series but when suppose the solution is $y(x)=\sum _{n=0}^\infty a_nx^n$ appeared sums dependents of $a_n$,  $a_{n+2}$ and $a_{n-1}$ and this is not possible.


I want to delete an option from the wp-options table when clicked on a button in the back-end.  i have created an option with this :   get_option( string $option, mixed $default );   is there any method in WordPress to get this done? i want to set it back to $default so basically deleting the $option


Comparing two proportions asymptotic distribution

Let $X_1, \ldots, X_{n_X}$ and $Y_1, \ldots, Y_{n_Y}$ be $n_x$ and $n_Y$ iid observations from two independent Bernoulli populations with probabilities of success $p_X$ and $p_Y$. Define the statistics $T_X = \sum_{i=1}^{n_X}X_i$ and $T_Y = \sum_{i=1}^{n_Y}Y_i$. I am testing the hypothesis:  $$ H_0 : p_X = p_Y \ \ \ \text{and} \ \ \ H_1 : p_X \neq p_Y $$  Consider the test statistic:  $$ T = \dfrac{\hat{p}_X-\hat{p}_Y}{\sqrt{\hat{p}(1-\hat{p})\left(\frac{1}{n_X}+\frac{1}{n_Y}\right)}} $$  where $\hat{p}_X = \frac{T_X}{n_X}$ and $\hat{p}_Y = \frac{T_Y}{n_Y}$, and $\hat{p} = \frac{T_X+T_Y}{n_X+n_Y}$.   I would like to derive the asymptotic distribution of $T$ under $H_0$ as both $n_X$ and $n_Y$ go to infinity that is that under the null: $$ T = \dfrac{\hat{p}_X-\hat{p}_Y}{\sqrt{\hat{p}(1-\hat{p})\left(\frac{1}{n_X}+\frac{1}{n_Y}\right)}} \to_D N(0,1) $$  Now this question has been asked before see:   However the answer given there is wrong because it gives a justification based on the continuous mapping theorem. The continuous mapping theorem says that for random variables $X_n$ and $X$ such that $X_n$ converges in distribution to $X$ and if $g$ is a continuous function, then $g(X_n)$ converges in distribution to $g(X)$. However $g$ cannot be a function of $n$.  The function $\varphi$ used in the answer is itself dependent on $n_X$ and $n_Y$ and so the continuous mapping theorem doesn't apply.   In which case how do you find the asymptotic distribution?


Multivariable limit $\lim_{(x, y) \to (0, 0)} \frac{x \sin(x^2 y^2)}{x^2 + y^2}$

I'm learning multivariable calculus, specifically multivariable limits and continuity, and need help to understand the solution to the following problem:  Let $$f(x,y) = \begin{cases} \frac{x \sin(x^2 y^2)}{x^2 + y^2}, & (x,y) \neq (0, 0) \\ 0, & (x,y) = (0, 0).  \end{cases}$$ Show that $f$ is continuous at $(0, 0)$.  So we need to show that $$\lim_{(x, y) \to (0, 0)} f(x, y) = f(0, 0)$$ that is $$\lim_{(x, y) \to (0, 0)} \frac{x \sin(x^2 y^2)}{x^2 + y^2} = 0.$$ Solution: (from textbook) We have that $$\left| \frac{x \sin(x^2 y^2)}{x^2 + y^2}  \right| = \frac{\left|x\right| \left|\sin(x^2 y^2)\right|}{x^2 + y^2} \leq \frac{\left|x\right|x^2 y^2}{x^2 + y^2}  \leq \frac{\left|x\right|^3 y^2}{x^2 + y^2} \leq \left|x\right|^3.$$ Question: I don't understand how the author found the upper bound for the sine function. Why does $\left|\sin(x^2y^2)\right| \leq x^2y^2$? When I first tried to solve this problem I used $\left|\sin(x^2y^2)\right| \leq 1$ without success. Can someone explein my error?


Croatia Multiple entries on a multi-entry Schengen Visa

I know that I will be able to enter Croatia on a multi-entry Schengen visa. What I wanted to ask is if I can leave Croatia, go to maybe Bosnia. Will I be allowed to re-enter Croatia?  I am holding an Indian passport.


I have had Minecraft for a long time and want to go to the end.  I've tried to make the end portal but it won't  work. Is it that you can only go there on the computer?


Why are some initialisms sometimes spelled with a slash? E.g. O/S for Operating System

I've only ever seen this practice used to refer to "Operating System" with "O/S", but  there are a few more. Why is the slash in the middle sometimes used? Isn't "OS" or "O.S." more appropriate?


I'm currently working on a computation in python shell. What I want to have is Matlab style listout where you can see all the variables that have been defined up to a point (so I know which names I've used, their values and such).  Is there a way, and how can I do that?


Batch regedit replace all keys or values that cointains specific word

How can I substitute just the part of strings keys or values strings in regedit keeping the part of strings should not be replaced? ig.  key "KeyX1_2020" into "KeyX1_2021" key "KeyY2_2020" into "KeyY2_2021" value "VX1_2020" into "VX1_2021" value "ValY1_2020" into "ValY1_2021"  Like this code do for files for /f "tokens=* delims= " %i in ('dir /b "*"') do Set LIST=%i& set LIST | ren "%~fi" "%LIST:2020=2021%"


This question led to a new feature in a package:      One rule in French typography is that the last line of a paragraph should not be shorter than the double of the indentation of the next paragraph.  Is it possible to specify that, or least considering that all paragraphs are indented of the same value, to make sure the last line is longer than twice this value?  A LuaTeX-specific solution is welcome, too.


How click insert key on mac keyboard for virtualbox windows machine?

I need to use insert + f7 on a virtual Windows machine set on Virtualbox. This is driving me insane I can not get windows to comprehend insert from my mac keyboard. How can I solve this? I tried virtual windows keyboard but it does not keep the key pressed. Any help would be amazing!


Repository of functions which do not have elementary integrals

If there is some function and I suspect that the primitive function cannot be expressed , I would like to have some argument that there indeed is no such expression.  One possibility is that I learn about theories that are used to prove thinks like this, as discussed, for example, , , .  But if I can take for granted that some functions are "famously" non-integrable in terms of elementary functions, for example $\int e^{x^2}\,\mathrm{d}x$, then I can use this fact when discussing integrals of other functions. (The argument would go like: If it was possible to integrate this function, then using the following steps, we would also be able to integrate $e^{x^2}$. Hence, the given function does not have elementary integral.)  (If I may make a comparison, this is somewhat similar to situation with set-theoretical results: Wise people, who have knowledge of forcing and other advanced stuff, have proven many results which are . If I obtain some of these statements as a consequence of some conjecture, I get that this conjecture is also undecidable.)     So I wonder whether there is some book or website which gives some large list of integrals, which are known to be non-elementary. (And thus can be used in proofs that other functions do not have elementary integrals.)   Ideally, it would be good if there were also references to the proofs that the functions in the list do not have elementary integrals.


Visualizing ansi color escape codes in log files correctly in Emacs

I have some log files that have ansi-color codes in them. When I open them in Emacs I see garbage:              As an example, I run the following:  ls --color=yes -ald -- * > my_files.txt   on a generic folder (using gnome-terminal in Ubuntu with zsh)  The interesting thing is that if I run  cat my_files.txt   the shell displays the contents correctly in color (i.e. the shell knows how to interpret those ansi-codes)  Is there any way to have Emacs display such files correctly as well?


How to customize the title of the table of contents?

everybody.  I need to pass from this   to this   using this picture   This is my WME  \documentclass{book} \usepackage[spanish,english]{babel} \usepackage[toc,page]{appendix} \usepackage{tocloft} \usepackage{fontspec}    \setmainfont{georgia.TTF}[%Fuente para el cuerpo Path=/usr/share/fonts/Win10/, BoldItalicFont=georgiaz.TTF, BoldFont      =georgiab.TTF, ItalicFont    =georgiai.TTF]  \newfontfamily\myfont{calibri.TTF}[%Fuente para secciones Path=/usr/share/fonts/Win10/, BoldItalicFont=calibriz.TTF, BoldFont      =calibrib.TTF, ItalicFont    =calibrii.TTF]   \addto{\captionsspanish}{\renewcommand{\contentsname}{\color{myGris3} Contenido}} \renewcommand{\cfttoctitlefont}{\Huge\bfseries\myfont}%Fuente para el título de la ToC \renewcommand{\cftchapfont}{\Large\myfont}%Fuente para los capítulos \renewcommand{\cftsecfont}{\myfont}%Fuente para las secciones \renewcommand{\cftsubsecfont}{\myfont}%Fuente para las subsecciones  \begin{document} \tableofcontents  \chapter{First Chapter} \chapter{Second Chapter} \appendix \chapter{Appendix}  \end{document}   How could I do it?  Thanks for your help.  EDIT:  This is my MWE without TTF fonts.  \documentclass{book} \usepackage[spanish,english]{babel} \usepackage[toc,page]{appendix} \usepackage{tocloft}  \addto{\captionsspanish}{\renewcommand{\contentsname}{\color{myGris3} Contenido}} \renewcommand{\cfttoctitlefont}{\Huge\bfseries\myfont}%Fuente para el título de la ToC \renewcommand{\cftchapfont}{\Large\myfont}%Fuente para los capítulos \renewcommand{\cftsecfont}{\myfont}%Fuente para las secciones \renewcommand{\cftsubsecfont}{\myfont}%Fuente para las subsecciones  \begin{document} \tableofcontents  \chapter{First Chapter} \chapter{Second Chapter} \appendix \chapter{Appendix}  \end{document}


Let $X \sim Multinomial(n,p)$. The data takes the form $X=(X_1, \dots, X_k)$ where each $X_j$ is a count. Let $p=(p_1, \dots, p_k)$ where $p_j \geq 0$ and $\sum_{j=1}^{k}p_j =1$. The variance-covariance matrix of $X$ is: $$V(X) = \begin{pmatrix} np_1(1-p_1) & -np_1p_2 & \dots & -np_1 p_k \\ -np_1p_2 &  np_2(1-p_2) & \dots & -np_2p_k \\  \vdots & \vdots &  \vdots & \vdots \\ -np_1p_k & -np_2p_k &\dots &np_k(1-p_k) \end{pmatrix} $$ I understand the terms on the diagonal since $X_j \sim Binomial(n,p_j)$, but I'm stuck in proving the expressions of the terms outside the diagonal.


In §2.2 of , Eugenia Cheng includes the following example:        Why is it possible for an irrational to the power of an irrational to be rational?      Here is a nice little proof that it is possible:           Consider $\sqrt{2}^{\sqrt{2}}$.           If it is rational, we are done.          If it is irrational, consider     $$ \left(\sqrt{2}^{\sqrt{2}}\right)^\sqrt{2} = \sqrt{2}^2=2.$$         However, as Cheng notes, this doesn't tell us whether $\sqrt{2}^{\sqrt{2}}$ itself is rational or not. So which is it?


Precise meaning and effects of volatile in Java?

Question inspired by the question at  .  One of the ansers says this about the "volatile" keyword :  "Also, it is declared volatile, which means that if any thread changes the value of the variable, this change will immediately be reflected in all other threads."  This seems to suggest that if a variable is NOT declared volatile, then it will not be the case that "change will immediately be reflected in all other threads", or IOW, "changes to the variable will be reflected only later".  Questions :  (a) is that understanding correct ? (b) If so, when precisely ARE changes then applied / exposed to other threads ?


Synchronization (of clocks) between two remote computers

I'm looking into writing a simple synchronization ability into my app and one of the concerns that has popped up is synchronization of time between two remote computers, each with their own clock (in particular concerning the modification dates of files/objects).  I'm sure a lot of research has been done on this topic and don't want to get too theoretical, but I'm wondering if there are any accepted best practices for minimizing temporal discrepancies between remote clocks?  For example, a start is to always use universal time (UTC) as that avoids timezone problems, but there is no guarantee that two computers will have exactly the same system time. Luckily the work I'm doing isn't very fine-grained, so it's not a terribly important concern, but I'm still curious nonetheless.  One solution would be to always use the same clock on both ends, such as a global time server, rather than the local system clock. Presumably this (combined with shared resource locks) could guarantee no accidental overlap of synchronized time, but it's not very practical.  One thought that just popped into my head would be to synchronize each node (each client) with an offset calculated at some point prior, perhaps by calculating the offset of the system clock with a global time server. This would only need to be done occasionally as the offset itself would not likely change greatly over a short period of time.  Update: Let me just add that I'm not interested in actually synchronizing the system clocks of two computers--I'll presume that the operating system will handle this in most cases. This is just a question of how to ensure two instances of an application are using synchronized times, though in this day and age I suppose the system clocks would almost assuredly be synchronized to within some very small delta anyway.


I have the following table:  -------------------------------- oGroup      oValue -------------------------------- 1           Us 1           Uk 1           In 2           Ch 2           Ar   My question is, how can I combine some records with the same oGroup value? The result should be:  --------------------------------- oGroup      oValue --------------------------------- 1           Us, Uk, In 2           Ch, Ar   Please advise.  Thank you.


While sending an attachment as an email to be attached to the salesforce record.Salesforce is giving the below given error.  Generating server: mx1.madison.gov  6-2j26dncatawfg1112dv2uwxupq9hzfgmjrrlrn2rx48cxm93nt.8-dea8eae.c.le.salesforce.com mx1-asg.mta.salesforce.com # #SMTP#  Is this salesforce problem or it is the Internal company server problem as I could see that error mentions company server name also.But to me doesn't look like company server error.


You know how most NAS devices come with Atom processors and have a hard time indexing or dealing with large data dumps, (I am talking about synology in this case), I was wondering is it possible to lend the desktop idle CPU power to the NAS to improve it's operations?     For example, it has been a few days and the indexer is still running. Is there anyway to do this on the PC?   I know that typically you could run a software specifically designed for doing that, like an indexer running on the desktop and updating the NAS or some other way.  /edit: deleted the general purpose thought


First and last IP address of the network 192.168.176.0/23 (subnet 23)

Let's have the following address of the network: 192.168.176.0/23. What are the first and last IP addresses of this network?   Following this answer  I assume that:  /23 means 23 bits for the subnet. At 8 bits per byte we get 16 bits for the first two bytes, and then seven (7) for the third => 1111 1111. 1111 1111. 1111 1110. 0000 0000, right?   It means our last two bytes will be of the form (nnnn nnnH. HHHH HHHH), where n is a subnet bit and H a host bit.  Thus the network address is (nnnn nnn|0 0000 0000) -> .0,  the broadcast is (nnnn nnn|1 1111 1111)  -> 2^9 is broadcast? Impossible. Here I miss something, something simple. So what would be the first and last IP? This is what I don't get following the answer mentioned in the link above (by b0fh).  First 192.168.176.1, last 192.168.177.254?


How to interpret these results from poly() in binary logistic regression with GLM?

I am currently studying the effects of intercontact time in a customer's purchase journey related to his/her purchase probability, as well as the influence of the number of contacts. Based on extensive literature I expected an inverted U-shaped relationship between intercontact time and purchase probability, which is why I developed the following model:  mylogit_poly <- glm(purchase_any ~ poly(intercontact_time, 2)  + number_contacts_mc, data = Subs1, family = "binomial"(link="logit")) summary(mylogit_poly)   Which results in:  [  Now, based on feedback I received from my supervisor, I tried different levels of the polynomial term. When I got to the model below (with poly being 4), I suddely get all significant results.  mylogit_poly4 <- glm(purchase_any ~ poly(intercontact_time, 4)  + number_contacts_mc, data = Subs1, family = "binomial"(link="logit")) summary(mylogit_poly)   [  My question now is what to make of this? Does this mean that the relationship can be considered fully non-linear? Can I infer something from this?  PS: My full model exists of an additional 15 control variables that I left out for the sake of complexity. The output shown above comes from the full model.


How to compare an html entity with jQuery

I have the following html code:
&uArr;Header title
   I would like to toggle between up arrow and down arrow each time the user clicks the span tag.   function expandCollapse(id) {        var arrow = $("#"+id+" span").html(); // I have tried with .text() too     if(arrow == "&dArr;") {              $("#"+id+" span").html("&uArr;");                    } else {                 $("#"+id+" span").html("&dArr;");                    } }   My function is going always the else path. If I make a javacript:alert of arrow variable I am getting the html entity represented as an arrow. How can I tell jQuery to interpret the  arrow variable as a string and not as html.


Completion of $R[x,x^{-1}]$ at the ideal $(1+x)$

Consider the ring $R[x,x^{-1}]$ where $R$ is a commutative ring. I want a description of the ring after completing at the ideal $(1+x)$. So my guess is that it is isomorphic to $R[[y]]$, where the isomorphism is given by $y \to 1+x$. The reason I guessed this was because $x$ is already invertible after completing at the ideal $(1+x)$. So intuitively I think it should be same as $R[x]$ completed at the ideal $(1+x)$ and therefore the guess. Any help with proving this or any references are appreciated. Thanks in advance.


What does the "Alternative Character Sheet" mean when it asks you for the "Maximum Hit Dice" and the "Remaining Hit Dice"?

I am trying to fill in the "Alternative Character Sheet" (one of the ). It asks me for my "Maximum Hit Dice" and the "Remaining Hit Dice". What do these terms mean?


How to use DNS/Hostnames or Other ways to resolve to a specific IP:Port

This is a  about DNS/Hostnames resolution to IPs/Ports   Example 1  I'm running a web server on port 80 and another on port 87. I would like to use DNS so that www.example.com goes to port 87. How can I accomplish this using DNS only?  Example 2  I'm running a service on my server on a non-standard port. How can I get clients to connect to this non-standard port automatically? Can I use DNS? Is there some application specific support where DNS could indicate the IP and Port?   Example 3  Do some application protocols specifically support hostname awareness, and allow special actions to be taken based on this information? Are there other questions on Server Fault that cover some of these?  Commandeering: This question was originally asking about running IIS and Apache on the same server, but the same concepts can be applied to any server software receiving connections from clients. The Answers below describe the technical problems and solutions of using DNS and application protocol support to assign a port number for a client to connect.


I am not sure if this is correct but, if I am not mistaken, a unions is a [StructLayout(LayoutKind.Explicit)] structure where 2 or more elements are on the same field offset.  So if I have this:  typedef union _FILE_SEGMENT_ELEMENT {     PVOID64 Buffer;     ULONGLONG Alignment; }   would this be in C# as:  using System.Runtime.InteropServices;  [StructLayout(LayoutKind.Explicit)] public struct FileSegmentElement {     [FieldOffset(0)]     public IntPtr Buffer;     [FieldOffset(0)]     public ulong Alignment; }   or is this incorrect?


Does Pokemon Go have same points as Ingress?

Pokemon go and ingress are both developed by the same company. Does Pokemon Go have same points (pokestops and gyms - portals etc.) as Ingress?


Restrict duplicate words in email regular expression javascript/jquery

I want to restrict duplicate words in an email using regex.  Currently I am using below regex that also restrict 2 consecutive dots (ex: a@gmail..com)  regexp: /A(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z][{a-z},0-9](?:[a-z0-9-]*[a-z0-9]){1-2}?)$/i,   Now I want to also restrict duplicate words in email for example :-  abc.xyz@gmail.com.com   It should not accepted second .com .


How to partition for Windows/Ubuntu dual boot on same SSD

I have a 500GB SSD in which i would like to have both Windows and Ubuntu. My plan is to have something similar to this: Windows 8.1 and ubuntu 14.04 Uefi boot   an efi partition (created by windows installer) which will have Grub as bootloader 150GB ntfs for Windows 15GB ext4 for Ubuntu (root) 35GB ext4 for Ubuntu (home) ~8-16GB swap for Ubuntu (I have 16GB RAM) ~284-292GB ntfs for Data shared for both Windows and Ubuntu   My current setup is   200GB ntfs Windows 300GB ntfs for Data   I plan to shrink both the Windows and the data partiton in order to achieve my desired plan.  My questions:   Does the order of partitions matter? Does it matter if the ubuntu partitions are not at the end/beggining of the drive? Does the swap partition behaves better if its the last/first partition? Can I use the shared NTFS Data partition between windows and ubuntu without encountering problems? Do I have enough space for my ubuntu /home partition (thinking that I'll have access to the ntfs shared partition)?   Edit: Laptop, Asus N56jr, i7, 16Gb Ram, SSD samsung 850 evo 500gb  Windows 8.1 and Ubuntu 14.04


I received a strange Pop Up message. The unsettling part is password will be sent in clear text.  Is my phone affected with any malware or app virus ?


What's the best way to deal with hot/stuck pixels in long exposure night photographs?

I discovered red/blue/white pixels on my night photographs tonight. Trying to confirm this, I took a black image with the lens on and indeed I saw a whole lot of them (I didn't count them but at least a good fifty on the whole picture).   I'm not exactly sure if they are hot pixels, stuck pixels or anything else.  I quickly gave a check to my last exported JPEG files (I get RAW out of the camera) and couldn't find anything. After a quick search, I've seen that Lightroom is caring about those pixels after RAW conversion.  I've read that, with Canon DSLRs, there is a software process that could take care of that directly on my camera. I don't know if I can use it without getting things even more messy.   My question is: Considering my crazy pixels are not visible on my pictures, should I get too emotional about them? My camera is under warranty but is it really worth it to return it to Canon? If it's only to receive it back 1 month later after Canon just used the very same menu to map out the pixels, it's a bit ridiculous. Could this be a sign that my camera has a bigger problem?  It seems related to shutter speed. When shooting a black image at 1/250s I get nothing. When shooting the same setup but 1s, I get a few of them. The more I increase the shutter speed, the more crazy pixels I get.


I have an application that has sent me two of the exact same exception stacktraces from two different users using Galaxy S8+ on Android 7.0  The stacktrace in it's entirety makes no references to any specific part of my own code, so I really have no idea where it's coming from within the app.  Does anyone recognize this stacktrace and what could possibly be causing it?  edit: I know what a NPE is and I know how to fix it, but this stacktrace does not show me what part of the app is causing the NPE.  the stacktrace is sent to me via email when a user has a crash of any kind, 99% of the time the stacktrace contains a clear 'caused by' line that i can see where in the app caused the exception, but these stacktrace below do not.  Stacktrace: java.lang.NullPointerException: Attempt to invoke virtual method 'int android.view.View.getVisibility()' on a null object reference  at android.widget.FrameLayout.layoutChildren(FrameLayout.java:275)  at android.widget.FrameLayout.onLayout(FrameLayout.java:261)  at android.view.View.layout(View.java:18874)  at android.view.ViewGroup.layout(ViewGroup.java:5954)  at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)  at android.widget.FrameLayout.onLayout(FrameLayout.java:261)  at android.view.View.layout(View.java:18874)  at android.view.ViewGroup.layout(ViewGroup.java:5954)  at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)  at android.widget.FrameLayout.onLayout(FrameLayout.java:261)  at android.view.View.layout(View.java:18874)  at android.view.ViewGroup.layout(ViewGroup.java:5954)  at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)  at android.widget.FrameLayout.onLayout(FrameLayout.java:261)  at android.view.View.layout(View.java:18874)  at android.view.ViewGroup.layout(ViewGroup.java:5954)  at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)  at android.widget.FrameLayout.onLayout(FrameLayout.java:261)  at com.android.internal.policy.DecorView.onLayout(DecorView.java:935)  at android.view.View.layout(View.java:18874)  at android.view.ViewGroup.layout(ViewGroup.java:5954)  at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2697)  at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2413)  at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1550)  at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7189)  at android.view.Choreographer$CallbackRecord.run(Choreographer.java:959)  at android.view.Choreographer.doCallbacks(Choreographer.java:734)  at android.view.Choreographer.doFrame(Choreographer.java:670)  at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:945)  at android.os.Handler.handleCallback(Handler.java:751)  at android.os.Handler.dispatchMessage(Handler.java:95)  at android.os.Looper.loop(Looper.java:154)  at android.app.ActivityThread.main(ActivityThread.java:6776)  at java.lang.reflect.Method.invoke(Native Method)  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1520)  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1410)


How do I make apt-get install less noisy?

If I use apt-get install -qq mono-devel, I expect it to be quiet except for errors, according to the help:  -qq No output except for errors   Instead I get:  Extracting templates from packages: 100% Selecting previously unselected package binfmt-support. (Reading database ... 84711 files and directories currently installed.) Unpacking binfmt-support (from .../binfmt-support_2.0.8_i386.deb) ... Selecting previously unselected package cli-common. Unpacking cli-common (from .../cli-common_0.8.2_all.deb) ... Selecting previously unselected package libgdiplus. Unpacking libgdiplus (from .../libgdiplus_2.10-3_i386.deb) ... Selecting previously unselected package libmono-2.0-1. Unpacking libmono-2.0-1 (from .../libmono-2.0-1_2.10.8.1-1ubuntu2.2_i386.deb) ... Selecting previously unselected package libmono-2.0-dev. Unpacking libmono-2.0-dev (from .../libmono-2.0-dev_2.10.8.1-1ubuntu2.2_i386.deb) ... Selecting previously unselected package libmono-corlib4.0-cil. Unpacking libmono-corlib4.0-cil (from .../libmono-corlib4.0-cil_2.10.8.1-1ubuntu2.2_all.deb) ... Selecting previously unselected package libmono-system-xml4.0-cil. Unpacking libmono-system-xml4.0-cil (from .../libmono-system-xml4.   and more...   In fact, a couple hundred lines worth of output. This does not appear to match up with no output except for errors.   How do I actually get apt-get install to print out only when there are errors keeping it from installing?


Save button missing from content type edit form

Here is what the bottom of my "leaflet" content type edit form (i.e. admin > structure > content types > leaflet > edit) looks like:   Here is what the bottom of my "testimony" content type edit form looks like:   Note that there are no save/delete buttons! Another of my content types has also now picked up this bug. This just happened. I have no idea why. I can't save changes! I tried flushing all caches and it didn't help. I'm an administrator and I have permissions for everything.  Why would this have happened and what can I do? Drupal 7.19.


Show that group of order 105 with normal 3-sylow is abelian.

I'm having trouble solving this question.   What i've managed so far is. Let G be a group and $|G|=105=3*5*7$, $n_p=|Syl_p(G)|$ and let $P\in Syl_3(G)$, $Q\in Syl_5(G)$ and $R\in Syl_7(G)$. We have that   $$n_3=1 \text{ (from assumption.)}\\ n_5=1|21,\\ n_7=1|15.$$  Since the 7-Sylow and 5-Sylow groups are generated by a single element if two 5-Sylow or 7-Sylow must have a trivial intersection, otherwise they are the same group. By a counting the elements we find that at least two of the p-Sylow in G must be normal. This reduces the problem into three cases as follows.  Case 1: $n_7= 15$ and $n_5=1$:  Case 2: $n_7= 1$ and $n_5=21$:  Case 3: $n_7= 1$ and $n_5=1$:  Any suggestions on how to proceed from here?


Searching for question having strictly a certain set of tag

Is there a way to search for question which contains a specific tag (or set of tag), but no other tags.  For example if I wanted to have only pure [php] questions I would input in the search filed the following:  ![php]   Or for question only concerning html and css I would input:  ![html+css]  Is there already such a feature hidden in the SO Engine? If not, with the high number of question in SO, I feel like it would be a good feature.


Why do people do this  int myInt { get; set; }   rather than just this?  int myInt;


Just bought a Samsung Series 9 laptop (I7, 128GB SSD) with Windows 8 preinstalled. Can I remove and save Windows 8 (perhaps for future use) and install Ubuntu instead?


12.04.3 can start only after I press "resume" in rescue mode (every boot) - problem with Nvidia driver

I've tried to install maybe ten Linux distros on my new PC, and every time I have problems with video drivers: black screen or visual artefacts.  I was able to install only Ubuntu 12.04.3 64-bit, but also with problems: black screen on startup (sometimes all was normal when I used Live mode before install, sometimes I was not able to load Live Mode - Ubuntu says that I have problems with video and gives me a choice with four elements, one of them "use safe graphics mode", but I even can't choose this - the system is frozen).   In tty I installed nvidia-current, but it didn't help me. Every boot I need to press ESC and enter rescue mode and just press Resume and after this the system boots normally. If I try to do a normal restart I get a black screen after Ubuntu logo again.  I tried switching nvidia driver in the options - I have version 319-updates and version 319 [Recommended], but neither works.  I have Palit GeForce GTX650, all updates.


java program written in Vscode IDE having different package is not executing properly

I am getting the following error in VScode IDE . Kindly help me with the Solutions related to VScode   I created a package named as test in visual studio code . The program written in that package failed to execute  , program is :  package test; public class Example{ public static void main(String args[]) {     System.out.println("HELLO"); } }   It throws an   the same program works completely fine when placed in the default package  kindly help me with the package working or help me if there is any setting in vscode which has to be setup


Someone made subdomains mysite.com/bellagio without my permission and I cannot remove it

Ok first, It's Not a duplicate question My Problem is different.  I recently searched my domain in google like site:mysite.com and I see a load of links to casinos that are not mine. The subdomain structure is www.mysite.com/bellagio  I never created a folder called bellagio and this subdomain(sry I don't know what we call it) is pointing directly to a casino site.  I am using wordpress on godaddy hosting and registered domain there too.  It is something like this question  but not exactly the subdomains.  I tried actually creating a folder named bellagio and then clicking the link but yet it redirects to that spam site.  When I did some research not only me but hundereds on websites were hacked this way.(try searching The Bellagio - Why To Gamble At Bellagio)  I am using free ssl certificates from startssl, is that the cause ?  any help would be greatly appreciated, atleast tell me what and how to check ?


Is it okay to say      "a big news"   for example,     "I am telling you a big news"   or is it wrong? I heard a non-native English speaker say that.  The word "news" is mystery to me. It has a plural form, but it's singular non-countable. I have no idea how to use it properly.


Difference between compiling source and installing package?

Most distros have a package manager which allows you install programs quite effortlessly. For packages with source, you could always compile youself. Are there are notable differences between the results of compiling by hand and installing a package? (assume the code base is the same)


A simple option for graphing CPU usage on a remote Linux Server

My requirements are very simple. I need to graph the CPU usage on a remote Linux server. I'm not looking for anything complicated, I just need to be able to plot the CPU usage on a Linux server over a week.  I started down the cacti route - it's not simple, it's not straight forward and it definitely feels like overkill.  Is there a simpler, quicker and more straightforward option?


light is allowed to pass through transparent objects?

light passes through transparent objects like water and glass ,where in case of glass the molecules are more tightly packed or concentrated then to it allows light to pass, Why?(yet reflection occurs but why the rest light passes)


Bank Statement and explanation of all credits uk visitor visa?

We submit bank statment for visitor visa, with government pension and private company pay being credited in. There are big and small credits from sale purchase of own property and other amounts.  Do we need to give an explanation of all credits?  I think yes.  Also legal official papers of each and every credit?  Is this really required other than written explanation, when the pension proof and employment proofs are being given already?  Our previous visitor visa got approved.


Magnetic induced electric field and vice versa

Well it is known that electric fields originated due to changing magnetic field has different properties from those than formed due to static charges. My doubts:   Why is it so? Is it something we had to assume. Or some logical reason behind it. Ex: Closed line integral of electric field isn't zero in former etc.  Is magnetic field induced due to changing electric field (after maxwell) also different.


Some references do not show in my bibliography

In my .bib archive I have other references, but when compiling only shows those that I have reference them in my .tex document.  How could I make that those that I dont reference in my .tex document shows at the end of my document in my bibliography? –


I was reading a description of the CRT which went like this $x = a \mod p$ $x = b \mod q$ has a unique solution for $x \mod pq$ It also said - The reverse direction is trivial. Give $x \mod pq$ we can reduce it to $\mod p$ & $\mod q$ What are the steps to do the reverse. If I have an equation for $\mod pq$, what do I to obtain equations in $\mod p$ & $\mod q$?