As far as I can tell this hasn't been reported yet.  BUG: The "How to Format", and "Similar Questions" widgets (?) seem to be overlapping the footer when you scroll to the bottom.  Pictures attached.  This happens on the questions/ask pages on SE.  I have confirmed it on meta, SO, and Programmers.  On both Edge 25 and Chrome 48, on both a laptop with a 1366x768 and a computer with a 1080 display.

I have noticed that while asking questions and scrolling to the bottom of the page, the right sidebar containing recent questions covers the footer partially. Also, a part of it goes beyond the browser's boundary. It may not be a big problem but it still doesn't look good.    This also happens on the  page


I am creating a simple query in mySql to insert some values from a form into my db.  My question is simple, but in reference to the difference between binding variables vs specifying them into the sql statement.  Binding:  $query = "INSERT INTO test (name, lastName, price) VALUES (:name, :lastName, :price)"; $apply = $con -> prepare($query); $apply -> execute (array(':name'=>$name,':lastName'=>$lastName,':price=>$price'));   Typical:  $query = "INSERT INTO test (name, lastName, price) VALUES ($name, $lastName, $price)"; Execute the query....   Is the Binding option really recommended even for simple cases as the one above? Why is that?  Thanks!

If user input is inserted without modification into an SQL query, then the application becomes vulnerable to , like in the following example:  $unsafe_variable = $_POST['user_input'];   mysql_query("INSERT INTO `table` (`column`) VALUES ('$unsafe_variable')");   That's because the user can input something like value'); DROP TABLE table;--, and the query becomes:  INSERT INTO `table` (`column`) VALUES('value'); DROP TABLE table;--')   What can be done to prevent this from happening?


I like using the 1Password browser, so it would be nice if Stack Overflow for iOS had a setting specifying what browser to use. Right now it opens Chrome.  edit: 1Password does has a published URL scheme already:  ophttp:// or ophttps://     Scroll down to "Open URLs externally, set 1Password as the default external browser"  edit2: I now see this in related posts. So this is a duplicate from 2014.

Please implement the URL scheme to call 1Password for password lookups on the iOS app.   a URL scheme for switching to 1Password to search item titles for a custom term, usually a service name like “twitter” or “evernote”. This speeds up the process for the user so they can copy something like their password and get back to your app  That will ease sign up speed using long, complicated or unmemorable passwords for many users of both apps. In the two years since the above blog was published there are now updated instructions for implementation and code on github:


I'd like my zip files to be extracted, then recompressed into 7zip files. Example: Before: $ ls 001.zip 002.zip 003.zip --snip-- 997.zip 998.zip 999.zip  After: $ ls 001.7z 002.7z 003.7z --snip-- 997.7z 998.7z 999.7z  I've tried doing this with GUI programs, but I can't bulk compress files into seperate archives. Speed Some of my folders have up to 17,000 zips in them, which I need to recompress into 7z. So speed is preferable

I have a directory with a lot of .7z files, I need to repack each of them as zip archive, how can I do this automatically on linux?


Is there any way to see your design in different sizes in real-time in Illustrator/Photoshop? Like, designing an icon and you wanna see how it will look like in 16x16 or in 512x512?  I know you can Save for web in any size but that's cumbersome for every little tweak you make.

I'm designing a favicon in Illustrator and I'd like to see what it would look like in pixels at 128px and 16px as I'm working on it.  Is this possible?  Edit Found the answer - posted below.


I'm currently looking into the how redstone works in Minecraft and I stumbled across this behaviour and I can't explain why this works.  Legend: Obsidian Block:  O Redstone Wire: |, +, - Glowstone Lamp: L  OLO LOL  |   |   Right so if I power the redstone wire, all three Lamps light up although there is no real connection to them. This however won't light the Lamp:  -+ L| O|   I read through the Minecraft wiki but there was nothing explaining this. How does this work?

According to the wiki on :   Redstone Wire powers itself, the block below it, or the block it is pointing to.   I'm having trouble understanding what this is saying.  According to the statement, it sounds like only a one of those three things is ever true at once per redstone wire.  However, from my testing it appears redstone can power both the block it is in and the block below it at the same time.  I've also noticed that the block below redstone wire can activate a piston next to it (or a redstone torch), but not a redstone wire running next to it (i.e., if you have a block between preventing the redstone wire from running down from the upper block to the lower block).  So what are the conditions that determine whether the block below redstone wire becomes powered?  And is there a difference between a "powered" block from redstone wire versus powered blocks from other sources?  What am I missing in my mental model of how redstone transmission works?


It is possible -- indeed, quite easy -- to rotate JPEG-files without re-encoding them, which means, no additional loss of quality is introduced in the process.  Is the same possible for the similarly-lossy video-formats (MPG, MP4)?

I am recording videos on iPhone and uploading them to my Linux server. Users can see these videos on website. If users are seeing videos on mac or iDevices the video is looking fine but when users are seeing that video on windows systems these videos are getting rotated.   I am assuming this is because of some apple's flag in the recorded video which Windows systems are not able to read. Can I record videos in some way so they don't get rotated on Windows systems? Or is there any way I can re-encode videos with proper interface orientation using FFmpeg?  I am open to both FFmpeg or iOS way.


I have installed LAMP SERVER IN UBUNTU 13,04 .But could not login to phpmyadmin,showing the error message #1045 Cannot log in to the MySQL server,  and Connection for controluser as defined in your configuration failed.  Please give me a solution

I just can't login to PhpMyAdmin anymore, it says bad logins. PHP works perfectly. Please help. Thank you.  2002 Cannot log in to the MySQL server Language Log in Username: Password:  Connection for controluser as defined in your configuration failed.


I understand the other way around, where if a function is exponential then it will satisfy the equality $f(a+b)=f(a)f(b)$. But is every function that satisfies that equality always exponential?

The  asks about functions $f \colon \mathbb R \to \mathbb R$ such that $$f(x+y)=f(x)+f(y).$$ It is a very well-known functional equation, which appears in various areas of mathematics ranging from exercises in freshman classes to constructing useful counterexamples for some advanced questions. Solutions of this equation are often called . Also a few other equations related to this equation are often studied. (Equations which can be easily transformed to Cauchy functional equation or can be solved by using similar methods.) Is there some overview of basic facts about Cauchy equation and related functional equations - preferably available online?


I created a Ubuntu 18.04x64 VM and into this I installed the virtualbox and created a windows7x64 VM, but, when I start this win7 VM I got this error bellow: Failed to open a session for the virtual machine win7. VT-x is not available (VERR_VMX_NO_VMX) Result code: NS-ERROR_FAILURE (0x80004005) Component: ConsoleWrap Interface: |Console {872da645-4a9b-1727-bee2-5585105b9eed}  I checked the Nested VT-x/AMD-V option in the system>processor. Does anyone know how to fix this error?

I am trying to install open edx with  ubunty 16.04 and I get this error  There was an error while executing `VBoxManage`, a CLI used by Vagrant for controlling VirtualBox. The command and stderr is shown below.  Command: ["startvm", "c60f0594-d584-4e0b-b863-2801168e641e", "--type", "headless"]  Stderr: VBoxManage: error: VT-x is not available (VERR_VMX_NO_VMX) VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component ConsoleWrap, interface IConsole   this occurs when using vagrant up


New words are constantly being invented in science and technology, and after a while people start to use them.  Along similar lines, would it not be much less hassle to use an invented word instead of 'he or she' or 'he/she'? (If we use 'they', we are using a plural pronoun.)  Meanwhile, my question also concerns the question of whether such an institute exists, not just whether a good substitute for the expression 'he or she' is possible.

Is there a pronoun I can use as a gender-neutral pronoun when referring back to a singular noun phrase?  Each student should save his questions until the end. Each student should save her questions until the end.


I'm building a large screen porch.  The roof is held up by wooden trusses and there is no ceiling.  There will be ceiling fans attached to the joists on the trusses (but they won't be run when we have a fire in the fire pit).  I'm planning a chimney on the ridgeline of the roof.  (The fire pit may be off center, but I figure if the chimney is on the ridge, then the smoke will rise and always find its way up to the chimney.)  I'm thinking about putting a wood burning firepit on the porch.  If I do that, how high would the bottom of the roof trusses have to be to be fire-safe?  (Note I'm not worried about discoloration.)  Also, what if I switched to a propane fire pit?    This is not the same as .  The variations may be slight, but the other question is in enough of a different setting that the answers there didn't give me the answers I needed.

I just got a portable fire pit and some new furniture for my back porch. The fire pit is 3' in diameter, and the porch is 10'×10', with a 9' ceiling.  It would be nice to be able to have a small fire with the fire pit sitting at the far edge of the patio without having to move it to the yard every time I'd like to use it. My only concern would be that the heat from it might cause damage to the paint on the ceiling of the patio. Certainly, after time, I might be able to see some residue from the smoke, but as long as it's not causing damage, I'm okay with that.  Would this cause damage to the paint, or should this setup be fine?    Additional details   The patio ceiling is painted with the same exterior paint as the rest of the house. The house was built earlier this year. The area I live in almost always has at least a slight breeze. There are no obstructions near the patio that would block wind. I'm not interested in creating any gigantic bonfires in this fire pit—just a few logs at a time.


We all know the variation in the velocity of an individual causes different time periods . If we move with the speed of light ,then the time stops for us. Then why does sunlight take time to reach us?

How does light travel, does this not contradict the idea that going the speed of light stops time? Because if going the speed of light stops time and light goes the speed of light shouldn't it be dark?


public static <T> List<T> toArray(JSONArray array) {         if(array == null) {             return Collections.emptyList();         }          List<T> o = new ArrayList<>();          for(int i=0, l = array.length(); i < l; i++) {             o.add((T) array.get(i));         }          return o;     }      public static void test() {         List<Object> values = new ArrayList<>();         values.add("Product");         JSONObject jsonObject = new JSONObject();         jsonObject.put("key", values);         List<Long> test = new ArrayList<>();         test = toArray((JSONArray) jsonObject.get("key"));         System.out.println(test);     }  The above code allows storing String values in a List<Long>, totally absurd. Any help much appreciated?

What is the concept of erasure in generics in Java?


My heart was set on the blah blah blah program offered at blank   university; it had (has) a lot of positive feedback from previous   students and it also offered (offers) an interesting variety of   graduate courses.   By using "was" at the very beginning of the sentence have I locked myself into a rule of needing to stay in the past tense for the following clause. I ask this because while my heart "was", but no longer is set on that program. The positive aspects of the program still exist. So, by stating that the program "offered" or "had" am I suggesting that it longer does not? Because it most certainly still does.

Non-native speakers often get confused about what the various tenses  and aspects mean in English. With input from some of the folk here I've put together a diagram that I hope will provide some clarity on the matter.  I offer it as the first answer to this question. Consider it a living document. Input is welcome, and good suggestions will be  incorporated into the diagram.    Nota bene: What this is not is a discussion of whether there are  more than two tenses in English. , to which this question is not intended to supply arguments one way or the other.  Here, the aim is to provide an overview of what constructions English-speaking people use for conveying information about actions referring to past, present, and future, and to provide it first and foremost to precisely the people who are likely to use "tense" as a catch-all term in their search, rather than to linguists who know better.  Breaking News There is now an excellent ELU blog article titled  . It is highly recommended reading.


I am not able to find an appropriate word to fill in for "scared".  He was so scared, he couldn't move. He turned to stone. He was too shocked. He almost turned to stone and could not move.  What would be a single word that has more intensity than scared or shocked. A word that can convey the figurative meaning of "he turned to stone".  [The following edits are the text of a well-formed and well-considered question () posed by  2017-8-2, later closed as a duplicate of this question. This question had previously been closed due to lack of research. The answers to Geiselmann's question have been merged with the answers to this question.] I am searching for a nice, possibly picturesque and idiomatic way of expressing in English what Germans call Schockstarre - being paralyzed by fear.  in Schockstarre verfallen  The word is used, first, to discribe the state some animals fall into when under threat, for example a beetle may have such a condition - not moving, apparently dead, so that a predator would hopefully turn away disinterested. Second, the word is used to picturesquely desribe a similar state in humans; usually ironically. I tried to find adequate expressions in English but what I found so far seems too normal, not pointed enough to me:  to be paralyzed from shock to be in a state of shock  These expressions seem to be mere descriptions of an actual state of shock, and I feel they lack the expressive power of German in Schockstarre verfallen (which evoces the picture of a motionless beetle or other funny animal). Any ideas? If you need a context: imagine, for example, a newspaper article describing a dangerous international situation, and the White House is unable to do anything meaningful due to inner confusion (I make this up, nothing real is intended here). Or take German car makers who seem to be paralyzed by daily new revelations of their fraudful schemes. Anyway, people who should actually do something, but do conspicuously nothing, and you describe this with irony.


I sent an article to a top journal. It was reviewed by 2 reviewers. The decision made was 'revision'. I revised the manuscript and sent a detailed point by point response to reviewer comments. During revision the status changed directly from 'with editor' to 'decision in process' within a span of 4 days. I was under the impression that the reviewers would go through the paper again and based on their comments a decision would be made by the editor. But it seems that the editor is making the decision himself. Is this correct? . The result is yet to be received, so fingers crossed ;)

What steps does a manuscript typically go through from submission to publication (or rejection) in a typical journal? How are these steps referred to, in particular by editorial systems, and how long do they each typically take?  Note that this question is about the typical situation and hence not about:   Journals with an atypical workflow, e.g. those that allow for an instantaneous reviewer–author interaction. Exceptional steps or rare occurrences such as withdrawal or .   This is a canonical question on this topic as per . Due to its nature, it is rather broad and not exemplary for a regular question on this site. Please feel free to improve this question.


I want to understand very deeply the meaning of the work integral formula:  $$ \int m\frac{d\bar{v}}{dt}d\bar{l} \, .$$  It is not enough for me to know that it was defined in this way, I want to know why it was defined in this way. My intuition says that is due to the conservation of energy, however I don't fully understand the meaning of this term.  To start, what is the physical meaning of $m\frac{d\bar{v}}{dt}d\bar{l}$, what we are looking for when we calculate it?

A few days ago I started studying classical mechanics and today I'm stuck with the integral formula for work. I didn't take the formula for granted and i tried to understand it, however, the presence of both dt and ds didn't allow me to grasp it deeply  $W=\int m\frac{d\mathbf{v}}{dt}\cdot d\mathbf{s}$  So I tried to elaborate this formula, and I get:  $dW=mvdv$  This means that the infinitesimal work is simply the dv of a body with momentum mv, and is very intuitive.  Why in books the work formula is always presented as $W=\int \mathbf {F}\cdot d\mathbf{s}$ ? Wouldn't be better to explain first of all the momentum and then the fact that an infinitesimal change of energy is $dW=mvdv$ ?


How do we prove $[ABC]=s \cdot r$ (where s is the semi-perimeter and r is the inradius). I refer to the area of ABC as [ABC].

Prove that: area of triangle $S_{ABC}=p \cdot R$, where p is half perimeter of triangle $DEF$. $AD,CF, BE$ are altitudes. Is there a simple way?


How can I put text over a picture (.jpg, say) in a tex document? I have a graphic in my document as a .jpg:  \begin{figure}[ht!] \centering \includegraphics[scale=.4]{graphic_1.jpg} \caption{The map $\phi_0$ } \end{figure}    and I want to label certain parts of it with some mathematical symbols. I'd prefer to do this without tikz, but if someone has a solution using it, then that would be fine.  Thanks.

I know how to add a picture to my LaTeX file, e.g. \includegraphics[width=7cm]{curve.pdf}. What I'd now like to do is place some latex symbols onto the picture. Like a \gamma to name a curve. I do not want to do that in the graphics editing program e.g. because I might want to rename that curve later and don't want to repeat the editing process.  I know I can do a \put in a picture environment. But this environment forces me to specify its size at the beginning. That would be cumbersome since I'd have to go open the graphics file and do some calculations. Is there a way to get the dimensions (or aspect ratio) of a graphics file within LaTeX, so I might use it there? But even if I could do these calculations automatically, I still wouldn't like the redundancy of specifying the width for \includegraphics again, but I could live with that.  Also, is it possible to specify the size in cm to the picture environment? I just tried and got some errors.  So basically what I am looking for is a solution as simple as possible which:  a) lets me specify a width or a height and a file, and displays the image scaled while keeping its aspect ratio and then   b) lets me put LaTeX stuff inside the image in relative coordinates (percentages or 0...1), so I won't have to redo anything should I decide that the image needs to be a bit larger or smaller.  (b is kind of like setting \unitlength to the whole width=height for the 'picture' environment. But of course most images are not square and I also don't appreciate the redundancy (but could live with it).)


I have windows server 2019 standard edition installed on my host machine and with 2 additional Windows server 2019 on Hyper-V virtual environment.  Now I want to install 2 more windows 10 client VMs (Hyper-V) on same host machine.  As I have read some of the Microsoft’s articles which say that there are only 2 VMs (Hyper-V) allowed in windows server standard edition, for adding more VMs (Hyper-V) Do I need to purchase another license for Hyper-V?  This are the following links which I follow

This is a  about Licensing.    Questions on licensing are off-topic on Server Fault.  If your question has been closed as a duplicate of this question, then this is because we want to help you understand why licence questions are off topic rather than just telling you "it just is". In all likelihood, this question will not address your question directly, it was not meant to.    I have a question regarding software licensing. Can the Server Fault community please help with the following:   How many licenses do I need? Is this licensing configuration valid? What CALs do I need to be properly licensed? Can I run this product in a virtual environment? Can I downgrade this product to an earlier version? Am I entitled to feature X with license Y?


The downfall of Sauron and the end of the War of the Ring occurred on the  in the year 3019 of the Third Age. Many  and  have  that Tolkien chose this date specifically because of its relevance in the Christian calendar as the . This indeed seems very likely to be the case, given the immense significance of the date both in Middle-earth history and in Christian tradition, and the fact that Tolkien was a devout Catholic.  Did Tolkien ever confirm that he chose the date for this reason? Failing that, what information do we have from which the strongest argument can be built up for the connection not being a coincidence - e.g. about Christian themes present in LotR, or about his choice of other significant dates in the story?

Did the date of Frodo's rescue out of the fire of Mordor have any particular meaning in The Lord of the Rings?  We read in The Return of the King (Book 6 Chapter 4) that Gandalf states to Frodo and Sam:     The fourteenth of the New Year, or if you like, the eighth day of April in the Shire reckoning. But in Gondor the New Year will always now begin on the twenty-fifth of March when Sauron fell, and when you were brought out of the fire to the King.   Did Tolkien have any particular reason for choosing this date for Sauron's fall and Frodo's rescue out of the fire of Mordor, either allegorically or otherwise?  We are aware that Tolkien was not a fan of , but preferred the term applicability instead.


Here is my reasoning so far: $A$ is a infinite set and $B$ is a finite subset of $A$, therefore $B\subset A$.  If $C=A\setminus B$ that means that $C$ also is infinite and also, $C\subset A$.  Though, how could one prove that there is a bijection between $A$ and $C$?

Suppose that $X$ is infinite and that $A$ is a finite subset of $X$. Then $X$ and $X \setminus A$ are equinumerous.     My attempt:  Let $|A|=n$. We will prove by induction on n. It's clear that the the theorem is trivially true for $n=0$. Assume the theorem is true for all $n=k$. For $n=k+1$, then $|A \setminus \{a\}|=k$ for some $a \in A$. Thus $X \setminus (A \setminus \{a\}) \sim X$ by inductive hypothesis, or $(X \cap \{a\}) \cup (X \setminus A) \sim X$, or $\{a\} \cup (X \setminus A) \sim X$. We have $\{a\} \cup (X \setminus A) \sim X \setminus A$ since the theorem is true for $n=1$. Hence $X \setminus A \sim \{a\} \cup (X \setminus A) \sim X$. Thus $X \setminus A \sim X$. This completes the proof.       Does this proof look fine or contain gaps? Do you have suggestions? Many thanks for your dedicated help!     Update: Here I prove that the theorem is true for $n=1$.  Assume that $A = \{a\}$ and consequently $X \setminus A= X \setminus\{a\}$. It's clear that $|X \setminus A| \le |X|$. Next we prove that $|X| \le |X \setminus A|$. Since $X$ is infinite, there exists $B \subsetneq X$ such that $B \sim X$ (Here we assume Axiom of Countable Choice). Thus $|X|=|B|$. There are only two possible cases.   $a \in X \setminus B$   Then $B \subseteq X \setminus \{a\}=X \setminus A$ and consequently $|X|=|B| \le |X \setminus A|$. Thus $|X| \le |X \setminus A|$ and $|X \setminus A| \le |X|$. By Schröder–Bernstein theorem, we have $|X \setminus A| = |X|$. It follows that $X \setminus A \sim X$.   $a \in B$.   Let $b \in X \setminus B$. We define a bijection $f:X \setminus \{a\} \to X \setminus \{b\}$ by $f(x)= x$ for all $x \in X \setminus \{a,b\}$ and $f(b)=a$. Thus $X \setminus \{a\} \sim X \setminus \{b\}$. Since $b \in X \setminus B$, it follows from Case 1 that $X \setminus \{b\} \sim X$. Hence $X \setminus \{a\} \sim X \setminus \{b\} \sim X$. Thus $X \setminus \{a\} = X \setminus A \sim X$.  To sum up, $X \setminus A \sim X$ for all $|A|=1$.


If a resistor is suppose to resist over current to the load through a cable in a series DC circuit then why would you ever place a resistor on the positive cable side instead of the negative cable side. I mean that's where all the electric current with it's electric energy (negatively charged electrons) is coming out of to power the load with electric energy to DO WORK, and in this case too much of it before reaching the load and destroying the load. If the electrons with their electric energy charge were coming out of the positive side I would understand, but they don't...or do they.  -the question is in the title.  Edit: I don't want to know if or how the electrons KNOW what to do at the resistor. I want to know why would you put a resistor on the cable that's on the positive red side of the battery that doesn't supply any electrical energy/voltage/force to the load it just accepts electrons back into the battery.

With the following circuits as examples :    and    How will the current I know how much to flow? Would any other wave travel first in the circuit and then come back and say so much current should flow?


Who is the root user in Ubuntu  or on any Linux based distribution? Is by default the rootpassword for every system running Ubuntu is same.Many documents over WEB supports not to enable root login manually or Graphically?as it has been said that let all applications should run on User level or with Administrative accounts only?

I've often come across posts on forums or other websites where you see people joking in such a manner about running/logging in as root as if it's something awful and everyone ought to know about it. However, there isn't much that a search reveals on the matter.   It may be widely known to Linux experts, but I really don't know why. I remember always running as root when I first tried Linux years ago (Redhat and Mandrake) and don't remember running into any problems because of that.   There are actually some distros that have a bright red background with alert signs all over it as wallpaper for the root user (SuSe?). I still use the "Administrator" account for regular use on my Windows installation and haven't ever run into any problems there either.


I'm trying to convert osm to shapefile but I can't find the  Vector > OpenStreetMap > Import Topology from XML

In QGIS 1.8 I used the openstreetmap plugin to request data from the server, or open a .osm XML file, which produced 3 layers (polygons, polylines and points) in QGIS.  This was great (give or take the 64bit bug which highly affects the freshly mapped area I work on), but how do I do that in QGIS 2.x?   I can't find any updated documentation about it.  In the vector menu, I've tried importing from osm servers, I get a .osm file, but then I'm stuck. There's a menu option for loading an XML file, but it produces a spatialite db, which apparently only has non-geometry tables when I try to add it as a spatialite layer. If I open the attribute table, I can see node ids, ways and so on, but I can't figure out how to actually make use of them.  I've also tried adding a vector layer from a .osm XML file. I get a gpsbabel window that shows nothing, then finally an invalid data source message in QGIS.


What would be the answer for the following question?     If $3 \sin \theta + 4 \cos \theta = 5$, find the value of $\sin \theta$.

$$4\sin\theta +3\cos\theta  = 5$$   How would we solve this trigonometric equation using vectors? Since I'm not advanced, I do not truly know where to use vector product.   Regards!


Let's say I have this simple style:     .element {      width: 60px;    }   But I have no DOM element with that class. Can I use pure JS to get that style?  presupposes you are accessing a something the DOM has computed. If so, could someone explain which CSSOM element would be used to access it?

I would like to return a string with all of the contents of a CSS rule, like the format you'd see in an inline style. I'd like to be able to do this without knowing what is contained in a particular rule, so I can't just pull them out by style name (like .style.width etc.)   The CSS:  .test {     width:80px;     height:50px;     background-color:#808080; }   The code so far:  function getStyle(className) {     var classes = document.styleSheets[0].rules || document.styleSheets[0].cssRules     for(var x=0;x<classes.length;x++) {         if(classes[x].selectorText==className) {             //this is where I can collect the style information, but how?         }     } } getStyle('.test')


I am in the early stages of my career (post PhD) and I would like to referee papers to (1) get the experience and (2) be exposed to unpublished writing to learn to improve upon my own writing. How do you become a referee? Can you register? Edit: I'm not asking about reviewing.

Possible Duplicate:          Assume that I have just finished my postdoc and am now starting a professorship/scientist position (I am not). How do I start joining the ranks of peer reviewers? More importantly, how do I become a peer reviewer of a particularly prestigious journal rather than some junk journal? Does the journal contact me or do I start to publish in those journals, the editors recognize my "expertise" and then they solicit me? Even though everything is "blind" does my reputation of doing quality reviews get shared with other editors?


When I reboot from using Ubuntu 18.04 (dual-installed with Windows 10) and load into Windows, the clock will almost always be 1 hour behind, irrespective of daylight savings. Sometimes it's 13 hours behind instead, showing AM when it's PM and vice-versa. Any idea what could be wrong here? If I turn the auto-set feature off and back on again it corrects itself, but I frequently forget, which has led to some awkward situations.

I have dual booted Windows 10 and Ubuntu 16.04 in UEFI mode (secure boot off). My time in BIOS is correct.  When I boot into Ubuntu and then boot into Windows 10, it shows the wrong time. I have to correct it manually or by the internet in Windows 10, and when I reboot into Windows 10 then it is not a problem. The clock will show the correct time. And then when I reboot to Linux the clock is correct, but switching back to Windows 10 the clock messes up again.


I have Samsung Galaxy S7 and I want to check if I have a Snapdragon or Exynos chipset. I need this info because I plan to install Android Pie or 10 and I need to know exactly which chipset the phone has. My baseband is G930SKU3ETG1, Build number R16NWG930SKSU3ETG2, yet back casing SM-G930P. SNAPDROGON or EXYNOS? It has already been rooted with android 8.0.0. Can anyone help please?

How can I find information on the hardware of my Android device like processor architecture, RAM, etc?


Why are my rendered images blurry... when I zoom in, its completely blurry. I render my images to see how they are looking so far, and I zoom in to see blurry results... when I zoom in on the final rendered image, it is also blurry. I tried changing the resolution, but it didn't help. You may not think this image is blurry, but it is trust me. Does anyone know how to help?

When I hit F12 to render an image and zoom in it is quickly pixelated. How can I render a higher res display? I have looked through the settings and couldn't find a solution.


I have to make a photo artwork of 8 meters by 3,56 meters.  I am looking for pictures on shutter stock to work with, but I can only find images of about 50/80 cm high / 300 dpi. (I will work them into a kind of 'collage', so I'm not looking for just one picture).  I read somewhere that you can scale these kind of pictures as much as you want, for a billboard for example, but this will be for a wall which will NOT be seen from distance, but from up close.   So my question is, how much can I scale up the pictures without losing (noticeable) quality?   Thank you very much in advance!!   Elisabeth

For wall-sized graphics and large banners (e.g. 3m × 5m), what is an acceptable PPI for print? As I understand it 300 ppi is the typical for 'small' artworks (esp. for clean text resolution). However, for small artworks, the audience usually engages at a much closer distance. Therefore, in the interests of keeping a bitmap file down to a reasonable size, can you get away with a much-reduced PPI for a large format/banner print?


I am creating a local repository which will contain all the debians (debs) for Ubuntu. It will also contain kernel debians for 2 different branches like say 1.1 and 2.1  I have created a single empty debian package, say test-package which contains information for all other dependent debians from same repo. Currently it has information on kernel 1.1.  Structure of local repo is as follows:  The folder dists/xenial/release/test-package contains folders k, l, m, v which contain debs.  The folders binary-amd64 and binary-i386 are also created which contains Packages file for corresponding architectures.  Steps performed on the client machine:   Adding URL in sources.list Running command apt-get install test-package   My issue is:  How can I inform sources.list to pick specific kernel installation and its corresponding debians (debs) available from local repo. i.e. it should install either 1.1 or 2.1 kernel.  TIA

Is there a way to cherry pick packages from a ppa repository you add? That is, to exclude some from updating while including others?  For example, I want just the chromium-browser package from  but not the others. So I don't want my sudo apt-get upgrade to have that ppa's other (besides chromium-browser) packages install over my existing ones, just that one.   I realize this is a license to shoot myself in the foot if I misread dependencies and exclude ones that are needed to ones that I included, but I know for a fact in this case that the other packages are not dependencies for that one.  Is this at all possible? Maybe there is some whitelist/blacklist file or something?


We're moving servers and I need to make a list of all software installed in our server so we could install it too in the new one we'll get.  Current server details:   Redhat Enterprise Linux 5 Using Virtualmin / Webmin to do occasional config changes I know basic SSH commands, enough to move files around, restart services, install & uninstall, etc.   Is there a command I could use to make a list of all installed software in our server? And also possibly find out what version we're using?

I want the ability to setup new servers for dev/testing/prod very easily. The reasons for being able to setup a new dev VM is obvious, but for prod my concern is adding a new production server/migrating to a new server.  I assume a traditional backup solution won't work as hardware may be different so the binaries/config might be different.   I want to get experience with puppet anyways, so I was thinking about creating a manifest that would setup my users, install Postgres, Nginx, PHP-FPM, etc, and configure them the way I specify. Then I could install puppet on a new server, copy down my manifest and apply it locally. This would make keeping my server configs in sync easier too.   Is there a better approach I'm not aware of, and does my approach have any pitfalls?


Question:- Consider the following statements  i. an incident may be closed without being fixed ii. incidents may not be raised against documentation iii. the final stage of incident tracking is fixing iv. the incident record does not include information on test environments v. incidents should be raised when someone other than the author of the software performs the test   a) ii and v are true, i, iii and iv are false b) i and v are true, ii, iii and iv are false c) i, iv and v are true, ii and iii are false d) i and ii are true, iii, iv and v are false e) i is true, ii, iii, iv and v are false  The given answer is 'b'. 'i' is true, that is fine, but how is it that 'v' is also true? I need an explanation for that, Please some one help me on this.

I am preparing for the ISTQB Foundation Level Exam by taking .  Consider the following statements i. an incident may be closed without being fixed ii. incidents may not be raised against documentation iii. the final stage of incident tracking is fixing iv. the incident record does not include information on test environments v. incidents should be raised when someone other than the author of the software performs the test  Possible answers are:  a)  ii and v are true, I, iii and iv are false b)  i and v are true, ii, iii and iv are false c)  i, iv and v are true, ii and iii are false d)  i and ii are true, iii, iv and v are false e)  i is true, ii, iii, iv and v are false  Supposedly, the correct answer is b: "i and v are true, ii, iii and iv are false". But, how can "incidents should be raised when someone other than the author of the software performs the test" be true? It makes no sense to me. Am I missing something?


In the end, the table should look like     How to make the top row with "Team sheet" span more than one column? This is how far I came:


I have a simple Apache webserver setup and basic IP tables (ufw) for a development server.  In my logs I see lines like this:  [Fri May 16 10:10:36.258369 2014] [:error] [pid 15926] [client 69.147.158.130:8396] script '/var/www/html/wp-login.php' not found or unable to stat   I am not running WordPress at all, and I realize this is a very minor attempt at a hack (there are much more sophisticated attacks against Apache out there).  However I would like to automatically block this IP address (temporarily) without installing an IDS/IPS such as Snort.  I am just looking for a simple way to block an address that tries to connect to wp-admin or wp-login.  Is there an Apache module that would handle something like this?

I own a server that it's costantly being attacked by scripts (that try to access to phpMyAdmin's setup file's and stuff like this). I've heard that many people get this kinds of attacks, but I'm starting to worry since they are getting more common (last month I got 2 attacks, and on november 7th there are 3 attempts already (1st, 4th and 6th of nov).  I'm not really concerned about it, since I don't have any database. All the info i have on that server is absolutely public, but I'm worried about that attacking-rate increase.  So I thought I could -temporarily- block the IPs that come from those attackers, or something that could make my server ignore requests that ask for phpMyAdmin, pma, xamp, etc.  Is there something like that? my server is Linux+Apache+Php


I've started learning about embedded coding. The words 'firmware' and 'software' are a bit ambiguous to me still. My understanding is that software is high level language tailored for user interaction, loaded into the CPU and modified frequently; whereas firmware is low level language, modified infrequently and loaded into a microcontroller for direct hardware control? What are the differences in terms of speed, timers, memory, peripherals, compiler, debugging etc.?

In computing, firmware is a computer program that is "embedded" in a hardware device, that is, an essential part of the hardware. It is sometimes called embedded software.  I got this definition from Wikipedia and I am getting confused of the terms firmware and software. Can you give me clarification about these.


I've been an active participant on stackoverflow.com and meta.stackoverflow.com for a few years now. It's been a while since I've encountered rep-based permission restrictions. How am I supposed to build enough rep on meta.stackexchange.com to effectively participate? Most of my needs are handled on the site-specific meta, so I rarely have a need to actually answer or ask a question here... but I would like to up/downvote on discussion topics.   It seems weird to have to earn your way into a discussion that pertains to your site (via network-wide feature, policy, etc) when you're already 15k+ on an affected site. Worse, unlike meta.SO, I can downvote myself out of enough rep to downvote here.  So, after Martijn's comment, I realize the root of my question is this:     Why, on a meta site where upvotes and downvotes are an integral part of the discourse, am I first given the ability to "agree" and may only later earn the (limited and deteriorating) ability to "disagree"?   Which is essentially a duplicate of

I read in the FAQs that voting is done to express agreement or disagreement over here:     On Meta Stack Overflow, voting is often used to express agreement or disagreement, not to point out a lack of quality or helpfulness. Please don't be concerned if you receive downvotes – members of the community may simply disagree with your bug, feature request, support issue, or the nature of the discussion.   Then why is there a rep threshold for down vote? The first thing that comes to mind is that if we allow down voting from the start, we may get trollers who would keep down voting stuff. However, there are other ways to deal with it. For example, we could check the activity of the user in the discussion (measure by number of questions/answers/comments and also number of times upvoted (this is different from rep)) before enabling this privilege.  EDIT  Use Case(unfortunately my own):  When I first saw meta, I knew nothing of it and nothing about Area51 and got a lot of down votes for that question. I lost a lot of reputation for a starter that day and was paying for that first timers mistake for some time before I got that reputation back.  EDIT  Please condider the discussion of thread as a feature request. I think there are mainly two suggestions from the various comments:   Remove down-voting all together  OR Change the down-vote reputation threshold to 15(same as up votes)


I have a list of dictionaries  [{'abc':1},{'abcd':2},{'ab':1}]   Based on length of key list has to sorted  [{'abcd':2},{'abc':1},{'ab':1}]

I have a dictionary of values read from two fields in a database: a string field and a numeric field. The string field is unique, so that is the key of the dictionary.  I can sort on the keys, but how can I sort based on the values?  Note: I have read Stack Overflow question here  and probably could change my code to have a list of dictionaries, but since I do not really need a list of dictionaries I wanted to know if there is a simpler solution to sort either in ascending or descending order.


What is an example of a field $K$ which is of degree $2$ over two distinct subfields $E$ and $F$ respectively, but not algebraic over $E \cap F$?

Let $K=F(x)$ be the rational function field over a field $F$ of characteristic $0$, let $L_1=F(x^2)$, and $L_2=F(x^2+x)$. How to show that $L_1\cap L_2 = F$?


My question is simple, but I cant find solid answer for this. I can make hole in face like this:  But it makes a lot of 3 polygons faces. or make hole like this:  Is it better to make holes in few seconds like on first picture with a lot of 3-gons or is it right to take time and make it like on second picture with all 4-gons? and why? I looked at some youtube videos or websites, but they make hole and dont really say anything about topology.

Support for N-Gons (polygons consisting of more than 4 vertices) has been in Blender for a while now, but many of us still may not know when to use them, and how to do so effectively.  In what situations do N-Gons really come in handy? When should they be just plain left out? Do they have any place in finished models?


I have many files with different extensions in one directory (for example .aa, .1ab, .412 . etc). How can I change extensions of all this files to .txt There is now other files in folder, only those I want to change extensions.  Thank You.

I have a grader for COCI (a competitive programming contest) that reads input files (txt[number].in), compiles and runs a code (txt.cpp) and matches the result with an output file (txt[number].out). The problem is, COCI problem's input files have format (txt.in.1), (txt.in.2), (txt.in.3) etc and similar names for output files.  I need to change the extensions of the input files from txt.in.[number] to txt[number].in. (Need to do the same for the output files as well)  Can anyone help me with this?  I'm currently using 13.04 Ubuntu.


If we have integers $h$, $i$, $j$, and $k$, would it be true to say that $\gcd(h,i)\gcd(j,k)|\gcd(hi,jk)$? If so, how can we prove it?

So far I have that $a|b$ implies $b=ax$ for some x in the integers and $c|d$ implies that $d=cy$ for some y in the integers.  From here I can see that $gcd(a,c)|gcd(b,d)$ is logically equivalent to $gcd(a,c)|gcd(ax,cy)$ but I am not sure where to go from there.


Creating a flow in the sandbox to capture a survey.   Enabled the ability to Pause the flow and added the component to Home page. All the screens for the flow is complete and when I test, two issues are found.    In the last screen I do not find the Finish Button  When I resume a Paused flow, after clicking on the last screen, instead of redirecting to the Account page, the flow is restarting again.   Please let me know what is going wrong and what can be done.

Created a flow in the sandbox to capture a survey.  I have enabled the ability to Pause the flow and added the component to Home page.   All the screens for the flow is complete and when I test run below 2 issues are found.  1. In the last screen I do not find the Finish Button. There is a record update after last screen. When I add a screen after record update It shows the finish screen But if click the previous button present there it moves to the first and create a new record. Is there any possibility to finish without going on the previous screens   When I resume a Paused flow, after clicking on the last screen, instead of redirected to the Account page, the flow is restarting. Appreciate your help.   On pause going to first screen is normal functionality , Is there any modification that can be done.


I have a rather basic question but I couldn't find a straight answer anywhere. Consider $C \subset [0,1]$ a Cantor set, that is a closed, nowhere dense and perfect subset of $[0,1]$.  Is the Hausdorff dimension of $C$ necessarily positive?  And even more basic: is it possible to find $A$ an uncountable subset of $[0,1]$ whose Hausdorff dimension is $0$? Obviously a negative answer to the former question would provide such an example.  I'd be very satisfied with dry answers with references if that's all you can provide :)

Let $A \subset \mathbb{R}$ be a countable set.  It is easy to see that $A$ has Hausdorff dimension $\dim_H(A) = 0$.  Do there exist uncountable sets $A \subset \mathbb{R}$ with $\dim_H(A) = 0$?


I posted my first question to Stack Overflow and received two replies. I clicked on the link in the provided e-mail and the question, and two responses, were shown. I decided to accept one of the responses as my answer.. According to the help pages, there should be some indicators next to the replies: a way to vote the answer up and a check mark so I can accept the answer. Both of my answers do not have any such indicators. What am I missing?

Sometimes I have asked a question which got no answers, but is answered in the comments to the question.  How should I handle these questions? I can't accept an answer, so it is never an accepted question.  For example this one:   (ok here the answer in the comments is from me, but nevertheless I also have others of them)


The version of flash player installed in my ubuntu is 11.2.xxx  Adobe says this is the last version they are going to produce for the Linux operating system and they're not going to release further versions for Linux.   Is it possible to use the flash player ppapi plugin that chrome uses in firefox so that the latest version can be used in ubuntu?

Even though I have the latest Adobe Flash player 11.2 for Linux in Firefox -   - a particular online flash game still requests that I update to the latest flash player.  I've tried this online game on my laptop (Windows 8 with Flash Player 11.8) and it has no problems.  Is there a way to trick Ubuntu or this game into thinking Flash Player 11.8 is "installed"?


I am an Indian citizen, I am traveling from Guanzhou (China) to Kolkata (India). I have transit at Bangkok airport, the first flight is by Spring airlines and the next is from Spice Jet. So I need to do my own luggage transfer and the transfer time is 4.5hrs. Could anyone kindly tell me do I need a transit visa for that?

Hello I am Indian Citizen currently studying in Australia and I am on a student visa. In the month of November 2019 I am travelling to India for vacations and I booked a ticket from Melbourne to Bangkok and than form Bangkok to India with a layover time of 7 hours in Bangkok and I am not going to leave the airport but my flights are different, so do I need to get and Airport Transit Visa in Bangkok.


Given the space $\mathbb N^ \mathbb N$ with the topology generated by basis sets of the form:  $$[V,n] = \{x \in \mathbb N^ \mathbb N ; V \text{ is an n prefix of x}\}$$  I can see that this space is separable.   My question is: is it metrisable? or even completely metrisable?  Thank you!

I have almost solved the following problem but am stuck at the very end, can you help me finish it? Thank you for your help.       Let $n<\omega$ and $t\in {}^n\omega$. We define $U_t=\{s\in {}^\omega\omega : t\subseteq s\}$. The family   $\mathcal B=\{U_t : t\in\bigcup {}^n\omega\}$ is a basis for a topology $\tau$ on ${}^\omega\omega$. This means that a set $X$   is in $\tau$ if and only if $X$ is a union of elements of $\mathcal B$.      EXERCISE 50 (PG): Show that $\langle {}^\omega\omega,\tau \rangle$ is a second countable completely metrizable space. Hint:    For $r,s\in {}^\omega\omega$ such that $r\ne s$, the $\varrho(r,s)=1/\min\{n : r(n)\ne s(n)\}$. Moreover, let $\varrho(r,r)=0$.    Show that $\varrho$ is a complete metric on ${}^\omega\omega$ that induces the topology $\tau$.     (i) Second countable: the set of $n$-tuples is countable since it is a finite union of countable sets.  (ii) complete with respect to $$ d(f,g) = \frac{1}{\min \{n \mid f(n) \neq g(n) \}}$$ Let $f_k$ be a Cauchy sequence. This means that the index at which $f_k, f_i$ differ gets larger as $i,k$ get larger. Let $f(n)$ denote the pointwise limit, that is, $\lim_{k \to \infty} f_k(n)$. Then $f(n) \in \omega$ for every $n$ since $f_k(n)$ is eventually constant. Hence $f \in \omega^\omega$.  (iii) $d$ induces the same topolgy as $U_t$:  $\tau_t \subset \tau_d$: Let $s \in U_t$. Then $B(s, \frac{1}{n+1})$ is an open ball contained in $U_t$ hence $U_t$ is open in $\tau_d$.  $\tau_t \supset \tau_d$: Let $B(s, \frac{1}{k})$ be an open balls. If $k < n$, $s \in U_s \subset B(s, \frac{1}{k})$. But if $k \ge n$ then I'm stuck. The ball $B(s, \frac{1}{k})$ consists of all sequences that agree with $s$ on the first $k$ coordinates. So it is quite small. How do I make the $U_t$ small enough to fit in this ball? I have thought of intersection but since I'm only allowed to do finite intersections I don't see what to do.


As far as I know, whenever we talk about a black hole, we refer to a static or stationary solution to Einstein field equations. I know the formation of a black hole can be discussed by the numerical GR, but I have never saw an analytical solution which can describe the formation of a black hole. So do anybody know that there actually exists such solution which has power to describe the formation of a black hole? Even the simplest case, for example, the spherical symmetric collapse of radiation into black hole can satisfy me very well.

I think we all heard general statements like "once big enough star burns out there is nothing to prevent the gravitational collapse ending in a black hole". But I can't remember even seeing the process described precisely.  Here's the deal: at first there is a nice object, a star. Stars can be nicely modeled by general relativity, nuclear physics and statistical physics combined and very much is known about these models and it can be observed whether they agree with things like light and neutrino fluxes, surface temperature and probably also lot of other stuff I know nothing about.  After the collapse we are left with another nice object, a black hole. We know that .  The question is: what happens in-between? More precisely, between the time when all of the nuclear material has been burned out (and if possible ignore effects like reheating of the star after big enough compression) and the time where there is nothing more than just a black hole.        Give a description of what happens during the collapse?   How does the star "lose its hair"?   Can the actual collapse be solved analytically?   At what point is singularity created?      Update: I don't want to know what an outside observer will see. Instead, I'd like to find out what an individual part of the dead star will "feel" when a black hole is about to form near it. In other words, I want a complete solution (ideally analytical, but numerical would be also completely fine)  Feel free to assume anything that makes your life easier. Spherical symmetry is definitely fine. Also, if for any reason the questions don't make sense (like Cauchy problem is ill-defined in the presence of the singularity) feel free to interpret them in a way that make them sensible (e.g. assume that black hole is built from D-branes).    Also, I have a feeling that what I intended as a simple question at first ended up being pretty complex. If you think it should be split into smaller (and therefore more manageable and answerable) parts, let me know.


though i have connected to internet, when tried to update manager, it is showing this message. due to this, there is an error displaying on desktop at top right corner .. can any one help me to resolve this prblem.

Whenever I try to install anything with the Ubuntu Software Center, the following error appears.     Failed to download repository information      Check your Internet connection.      E:Unable to parse package file /var/lib/apt/lists/partial/archive.ubuntu.com_ubuntu_dists_precise_multiverse_i18n_Index (1)


i have a ciphertext C=TLNJG formed using the equation c=(7p+11) mod 27,c equivalent to numerical equivalent character of ciphertext and p the plaintext how do i get the plaintext back? for encryption:c=(7p+11) mod 27 for decryption:p=5(c-11) mod 27 let's say i encrypt the letter B(1) I would get  c=(7+11) mod 27 c=18 mod 27=18 (letter S)  but if I do decryption using the decryption equation of the letter S I will get the letter I instead of B.Why?  p=5(18-11) mod 27 p=35 mod 27=8(letter i)

I have an encryption function   $$E(p) = (ap + b) \mod{26}$$  where the parameters are  $a=7$, $b = 10$, and $p$ is the plaintext letter.  I was asked to decrypt the ciphertext  LJMKGM    using this information.   So, I tried to solve in this way:   I wrote the letters and indexed them from 0 to 25. For each indexed ciphertext letter, I used this function to decrypt $$D(c) = (ac-b) \mod{26}$$ where $c$ is the number that represents the ciphertext letter.    I know that the plaintext is "please". For the first ciphertext letter, my method works, but for the rest it doesn't work.. what is my mistake?


When I execute the command below no SQL SERVER 2017:  Create or Alter Procedure stp_Teste01  as  select name, type_desc  from sys.objectsx go   SQL SERVER does not validate if the SYS.OBJECTSX object exists. Only when I run the procedure that SQL Server presents the error message.  EXECUTE STP_TESTE01 GO Msg 208, Level 16, State 1, Procedure stp_Teste01, Line 3 [Batch Start Line 11] Invalid object name 'sys.objectsX'.   Why does it not validate at the creation stage of the stored procedure?  If you place the name of the TYPE_DESCX column, SQL Server displays the error message.  Create or Alter Procedure stp_Teste01  as  select name, type_descX  from sys.objects go  Msg 207, Level 16, State 1, Procedure stp_Teste01, Line 3 [Batch Start Line 5] Invalid column name 'type_descX'.   Is it not in the ALGEBRIZER phase that SQL Server validates the existence of objects in the database and the creation of the procedure does not execute the PARSE and ALGEBRIZER phase?

Today I noticed a strange behavior during the creation of a stored procedure in SQL Server 2014.  Below is my test procedure. Please explain why SQL Server disallows compilation with the first SELECT and allows compilation with second one.  CREATE PROCEDURE [dbo].[test] AS BEGIN      SET NOCOUNT ON;      IF 1=0  -- this will never occur     BEGIN         select x from Table -- TABLE EXIST BUT COLUMN NOT - STORED PROCEDURE IS NOT CREATED         --Msg 207, Level 16, State 1, Procedure test, Line 25         --Invalid column name 'x'.          -- But if i change          select x from TableWhichNotExistInDatabase  -- This table not exist in database, but stored procedure has been created without any problems and I can exec it without errors (    because of 1=0 in if )      END     ELSE      SELECT '' END   In my real procedure, I'm creating temporary tables with various schema (from XML passed as parameter). Next I'm trying to validate some data in the stored procedure. Validation blocks are controlled by IF statements.   The creation of temporary tables and the stored procedure call is executed by a dynamiclly created procedure.   I think the problem lies somewhere during the creation of the execution plan or something like that. If the table does not exist in the database, SQL Server allows the creation of the stored procedure when a table does not exist.  However, when the table exists, the creation of the stored procedure fails because of invalid schema - no column.  I was looking for a solution which disables schema checking but did not have any success.  Are there any ideas regarding how can I bypass this limitation?


Ok, so here is the question: Suppose $X$ has density $f$ and $\mathbb E|X|<\infty$. Prove: $m$ is a median of $X$ iff the function $g(a)=\mathbb E(|X-a|)$ is minimized at $a=m$. Recall $m$ is a median of $X$ iff $P(X \leq m)\geq 1/2$ and $P(X \geq m)\geq 1/2$.  For discrete case, I think I can just rearrange the data as order statistics. However, for continuous case, I tried to manipulte the integrals of the expectation but didn't achieve the conclusion.

Suppose $X$ is a real-valued random variable and let $P_X$ denote the distribution of $X$. Then $$ E(|X-c|) = \int_\mathbb{R} |x-c| dP_X(x). $$  of $X$ are defined as any number $m \in \mathbb{R}$ such that $P(X \leq m) \geq \frac{1}{2}$ and $P(X \geq m) \geq \frac{1}{2}$.  Why do the medians solve $$ \min_{c \in \mathbb{R}} E(|X-c|) \, ? $$


In order to produce the following output involving a chemical formula     I can attempt to write the chemical formula as a mathematical formula:  \documentclass{report} \usepackage{amsmath} \begin{document}     As the scintillator $\text{PbWO}_{\text{4}}$ crystals are used. \end{document}   However, this method is a brute force when approaching a chemical formula. How would a versed Latex expert solve this task?

What is the 'best' package for typesetting chemical formulas? (I don't need anything but the chemical formulas.)  Assume I want to typeset     The dissociation of a AgBr molecure requires an energy of $E = \SI{123456789}{\J}$.   I am using the  package for the physical quantity but what about AgBr?


I am having trouble passing parameter to a SQL Server query while using a case statement in where IN clause result not getting populated. When passing All its working but when passing multiple values it's not working. This is the SQL Server query that I have tried: select *  from      (select           concat(Size, '-', (case                                 when Type in ('DC', 'CA', 'GB')                                    then 'DC|CA|CB'                                when Type in  ('MC', 'OP')                                    then 'MC|OP'                                else Type end)) as current,           count(distinct(MSQ)) as MSQ        from xyz) as b  where       b.current IN (case when {{Parameter}} = 'All' then b.current else {{Parameter}} end)  Again in the above query, when passing {{Parameter}} without case statement it's working but I want it should work with the case. Any answer will be appreciated.

What are the best workarounds for using a SQL IN clause with instances of java.sql.PreparedStatement, which is not supported for multiple values due to SQL injection attack security issues: One ? placeholder represents one value, rather than a list of values.  Consider the following SQL statement:  SELECT my_column FROM my_table where search_column IN (?)   Using preparedStatement.setString( 1, "'A', 'B', 'C'" ); is essentially a non-working attempt at a workaround of the reasons for using ? in the first place.    What workarounds are available?


This is a Project Euler challenge where I'm trying to find the smallest positive number that is evenly divisible by all of the numbers from 1 to 20?   The logic while I came up with seems to run really slowly. It's been running for the last 4 mins and still hasn't found the number. I'm trying to figure out a) Is this logic correct? b) Why does this take so long? and c) Could someone give me a hint on an alternate logic that is more efficient.  # 2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder. # What is the smallest positive number that is evenly divisible by all of the numbers from 1 to 20? smallest_num = 2520 while smallest_num >= 2520:     divisor = 2     while smallest_num % divisor == 0 and divisor < 21:         print("Smalles num = {} and Divisor = {}").format(smallest_num, divisor)         divisor += 1     smallest_num += 1 print("Smallest number is: {}").format(smallest_num)   This is still processing and so far my terminal looks like this

How do you calculate the least common multiple of multiple numbers?  So far I've only been able to calculate it between two numbers. But have no idea how to expand it to calculate 3 or more numbers.  So far this is how I did it    LCM = num1 * num2 /  gcd ( num1 , num2 )   With gcd is the function to calculate the greatest common divisor for the numbers. Using euclidean algorithm  But I can't figure out how to calculate it for 3 or more numbers.


I am struggling with a Bad Math Delimiter error, could I please ask for some help with this issue?   \documentclass{article} \usepackage[utf8]{inputenc}  \usepackage{setspace} \usepackage{mathrsfs}  \usepackage{amsmath} \usepackage{graphicx} \usepackage{multirow} \usepackage{eurosym} \usepackage{amstext} \usepackage{hyperref} \usepackage{grffile} %Stops the file name of figures appearing \usepackage{color} \usepackage{mathabx} \usepackage{float} \usepackage{pdfpages} \DeclareRobustCommand{\officialeuro}{%   \ifmmode\expandafter\text\fi   {\fontencoding{U}\fontfamily{eurosym}\selectfont e}}  \title{UCFB Diss} \author{danrawly} \date{}   \title{Dissertation} \author{} \onehalfspacing \usepackage{algorithmic}  \renewcommand{\familydefault}{\sfdefault} \textheight=23cm \textwidth=16cm \topmargin=-2cm \oddsidemargin=0cm \parindent=0mm \pretolerance=2000 \tolerance=3000  \begin{document}    $$t= \dfrac{(\bar{x_1}-\bar{x_2})}{\sqrt{\dfrac{S_1^2}{N_1} +\dfrac{S_2^2}{N_2}}}\)$$  \end{document}   Thank you in advance

I am getting an Error: Bad math evironment delimiter for the following lines:`  \[ \sum\limits_{i=1}^{10} i z_{i}\equiv 0\)\ \textrm{mod}\ 11 \]   and  \[ z_{1} \equiv -  \(\sum \limits_{i=2}^{10} i z_{i}\)\ \textrm{mod}\ 11 0\leq z_{1}\leq 10  \]   The output is shown correctly


Is it possible to add multiple links to a single Lightning Datatable cell. For example, as in the screenshot. it should be something like this

Is it possible to add multiple links to a single Lightning Datatable cell. For example, as in the screenshot.    24 and 25 are different references that point to different records of the same object.  Now I use this code to display one link:  {label: 'Use Case', fieldName: 'Cases',  type: 'url', typeAttributes: {  label: { fieldName: 'CaseName' }, target: '_self' }, sortable: true }


Situation  I have a directory /home/foo on a server, and I guess that it is not needed any more.  Unfortunately nobody can tell me if this directory is still needed.  Goal  If this directory is still needed, I want to know which process accesses it.  Current Strategy  Watch all file opens below this directory.  Why not inotify  Unfortunately the directory contains a lot of sub-directories, that's why I don't want to use inotify.   1604508 files 287253 sub-directories   Question  How can I watch all file opens below a directory (recursive) tree? I want to know which process access it.  Environment   /home is an ext4 filesystem.  SuSE Linux 12.3. Kernel: 3.7.10   Not duplicate  My question is not a duplicate of  since ....:   I can't use inotify since the directory tree contains too many sub directories. I can't use loggedfs: I can't change the file system type of this directory.   Bounty  There are already two good answers. But I am curious, maybe there are other ways: Bounty of 50 :-)

Three files have suddenly appeared in my home directory, called "client_state.xml", "lockfile", and "time_stats_log". The last two are empty. I'm wondering how they got there. It's not the first time it has happened, but the last time was weeks ago; I deleted the files and nothing broke or complained. I haven't been able to think of what I was doing at the time reported by stat $filename. Is there any way I can find out where they came from?  Alternatively, is there a way to monitor the home directory (but not sub-directories) for the creation of files?


Why am I getting zero divergence of function $\vec{f} = \frac{1}{r^2} \hat{r}$, where $r$ is the distance from the origin and $\hat{r}$ is the unit vector in the radial direction. The divergence of this function over a sphere of radius $R$, which includes the origin.  $$\nabla \cdot f = \frac{1}{r^2} \frac{\partial}{\partial r}(r^2 f_r) = \frac{1}{r^2} \frac{\partial}{\partial r}(r^2 \frac{1}{r^2}) = 0$$

Consider the vector field $$\vec{\mathrm{F}} = \frac{\hat{\mathrm{r}}}{r^{2}},$$ then the divergence of this field is: $$\vec{\nabla}\cdot\left(\frac{\hat{\mathrm{r}}}{r^{2}}\right) = 4\pi\delta^{3}(\mathrm{\vec{r}})$$  What is the proof of this relation?


I tried searching this on google and looking at the question-answer websites like this one, looking at Youtube for answers, But had no luck, so I decided to make this question here. So... I want to change my username in Minecraft before 30 days, and I don't know what to do. I know that there are already questions like this but still I want to know what people will say to this one.

How do I change my name in minecraft name earlier than the 30 days please, I need help. My name is really dumb and I would like to change it early.   I do not hack and I would like to change it early with NO hacks. I already looked up this question but I got no help . I tried looking up and I am quite impatient.  is the link I used


I'm looking for a word to describe a solution that solves all problems, but such a solution is impractical or impossible.   For example, let this word be X: "Having a billion dollars is the X that would solve all my problems".   What candidates for X are there?

Some people hold the irrational belief that one object (or possibly idea) can fix all their problems. For example, someone who is unhappy or anxious might think that smoking is a cure to all their problems.   What's the idiom to describe this belief? I used to know it but it slipped my mind.


Hello All,                  Firstly i DO NOT want to sound redundant and tedious here but is there a very simple way to actually know the maximum amount of RAM your laptop supports.      I have been reading a lot about the limitations on Win 32 bit and all.     I use a 2 gb RAM on a WIN 7 32 bit OS and Dual core Processor.   And also if i install a 2GB with a 4GB RAM of the same clock speed, how would that affect the performance?

I want use 4GB of RAM.  Can I use in Windows XP 32-bit?  Or should I go for Windows XP - 64-bit? Does it support 4GB of RAM?  Does Windows 7 32-bit support more than 4GB of RAM, or is >4GB support only available in Windows 7 64-bit?


When reading a post in the app, the categories / tags are shown below the question and in the ListView as well. I would really like to be able to browse all questions with a specific tag (or a selection of tags, which seems to be a bit more difficult)   Are there any plans on implementing browsing by category / tag in the android app?

Another part of my daily  on SE sites.  When viewing a question and it's time to move on, I'll often simply click one of the tags in the question to bring me back to a list of questions with that tag.  This doesn't work in the Android app.  Obligitory screenshot.  I tried to draw a finger that looked like it was tapping a tag, but it ended up looking like, well...  something else, let's say.


I was wondering about the grammar of sentences like this:  They decided on him going to Japan and her going to China.  Or should it be like this?  They decided on he going to Japan and she going to China.  I'm a little confused as to whether "him/her" can be used as what appears to be the subject in the latter clauses. To me the former sentence sounds more natural though I don't know if it's actually more common in normal, spoken speech.

I assume that the following sentences are grammatically correct:   He resents your being more popular than he is. Most of the members paid their dues without my asking them. They objected to the youngest girl's being given the command position. What do you think about his buying such an expensive car? We were all sorry about Jane's losing her parents like that.   I'm still getting used to this possessive gerund structure. It sounded so weird to me at first. Is the structure used in both formal and informal contexts? Are there any alternative structures that result in the same meaning and are more frequently used? (Examples taken from )


My external hard drive uses EXT3 and must be read + written by Debian and Windows 7 (home and office boxes)  It used to work like a charm with  on Windows XP, but since this software doesn't support Windows 7, I now feel desperate.  I've Googled a bit, read some Superuser questions :          and tried some suggestions. Here's my experience :  ==> With Paragon ExtFs :   creates files and folders with the uig/gid "0" on the drive, so once back to Linux, all files belong to root:root. No big trouble, but not very convenient. I don't know how this happened but some day I discovered that the relation between file names and their contents was completely scrambled. No data "lost", no lost file, just file contents randomly "moved" into another file. Had to fsck and restore files from backups. This happened twice, so this Paragon software just gets a NO WAY from me now !   ==> With  (version 0.53)   It works not too bad. When it works : I boot Windows 7, plug my USB drive, it's detected by ext2fsd, I give it a drive letter and can read/write from/to it : GREAT ! But if I unplug my USB drive (what I do by clicking on the systray icon + "unplug storage device..."), then replug it later, it will detect the drive again, but will be unable to give it any drive letter. I've tried to "Remove dead letters", but even though the drive letter becomes available anew, I can't assign it to my drive  (like in  ). if I unplug everything and reboot : it works (but this reminds me of the glorious days of windows 9X ;-) if I unplug without reboot : impossible to assign a drive letter :-(   Do you have any suggestions ? Am I misusing ext2fsd ? Any ext3 tuning options ? Any Windows 7 tuning options ?  NB1 : So far, I'm not considering formatting the USB drive.  NB2 : the Linux and Windows 7 boxes are mutually out of reach from each other, so any network-related solution (Samba, FTP, WinSCP, ...) is not possible.  EDIT : the suggested solution, installing IFS-Drive in XPSP2 compatibility mode, didn't work on my side, and caused Windows 7 to crash :-(  However, I've been able to make things work with Ext2FSD. As a reminder, the problem was my drive was recognized only the first time it was plugged, but if unplugged then re-plugged : impossible to mount it anymore. Here's my solution :   Plug the external hard drive Open the Ext2 Volume manager GUI Remove dead letters if need be [F9] Select disk + "Change drive letter" [F4] Add Select the drive letter you like Click "Mount via DefineDosDevice", will be lost after reboot" "Ok", "Done". Enjoy !

I had to format a USB hard drive to ext3 to use it with a Linksys nas box.  Now I can't read the hd when I unplug it from the nas and plug it directly into my Windows 7 computer.  (The computer accesses the nas over a wireless connection, so I like to plug the hd directly into my pc when transferring large files.)  How can I leave the hd formatted with ext3 and yet be able to access it (read/write) when I plug it directly into my pc?


I am USA citizen and I want to sell my inherited property in India. If I bring that money to USA, do I need to pay taxes in USA?

I'm a US citizen. My father, who was a citizen of India, died last year. My father had CD in Banks and a property in India. The property was legally sold and all taxes in India paid. We are 4 sisters, so after dividing the total pool of inheritance money, there is a share of inheritance money that is now in my Bank account in India. This is an 'Ordinary' bank account and not a NRO or NRI account, as I have a PAN card, Aadhar card etc and use an Indian address. My elder sister has my POA and operates this bank account. I trust my sister completely. Inheritance money is less than $75,000  I would like to transfer this inheritance money from India to USA in dollars. I am aware of the procedure of filing forms 15CB, 15CA, A2 and then using NRO account to transfer the funds. However I guess this will require me to open a NRO account in India as the first step.  Question: Will it be better and easier for my sister to transfer this inheritance money from my 'ordinary' bank account into her bank account and then have my sister 'Gift' me the money under LRS OR is it advisable to go through the lengthy procedure of opening NRO account, then filling in 15CB, 15CA, getting RBI permission and using form A2 to transfer the funds. If my sister transfers the money into her bank account, will this be considered as income for her and will she need to pay taxes on it (even though the money in my account is from inheritance).   Thanks for your answers RRA


Which of the following is correct ?  1)  A, B, C and D  2)  A, B, C, and D

Should I put a comma before the last item in a list?     I would like crackers, cheese and some soda.   I would like crackers, cheese, and some soda.


Using phpinfo(), I have found that the installed version of PHP is 7.0.26. I want to upgrade it to PHP 7.2.

How can I upgrade to php 7.1 from php 7.0 in ubuntu 16.04 ?  If I do a php -v I get this message:  PHP 7.0.8-0ubuntu0.16.04.3 (cli) ( NTS ) Copyright (c) 1997-2016 The PHP Group Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies     with Zend OPcache v7.0.8-0ubuntu0.16.04.3, Copyright (c) 1999-2016, by Zend Technologies


How does Joel know he needs to meet Clementine at Montauk in ? Clementine tells Joel in one of his memories that he should meet her at Montauk. This is Joel's memory. Hence he's telling himself to meet Clementine at Montauk. The next day, because of the subliminal information in his head, he meets her on the train to Montauk. How does Joel know that Clementine is going to be on the train? He's never met her there before. How does he remember something he's not yet done?   Edit: This question assumes that Clementine was always going to be there at Montauk. She has had her memory erased a week earlier. The question is how does Joel know this information about Montauk.

In the movie , Joel gets a message from 'Clementine' in his dream inside his head, and since even that dream was erased  how do the real Clementine as well as the 'new' Joel know that they were supposed to meet each other in Montauk the next morning?


As the question states, I am interested in proving the AM GM inequality in 3 variables, namely: $$\sqrt[3]{xyz}\le \frac{(x+y+z)}{3}$$   Clearly, I expanded everything into the following: [a] $$ xyz \le \frac{x^3 + y^3 + z^3 + 3(x^2y + x^2z + y^2x + y^2z + z^2x + z^2y) + 6xyz}{27}$$  I have been given that we know the proof of the AM GM inequality in 2 variables, so I attempted from the base case of the mean between xy and z: [b] $$  \sqrt{(xy)z} \le \frac {xy + z}{2} $$  Thus: [c] $$xyz \le \frac {x^2y^2 +2xyz + z^2}{4}$$  If I can prove that the right hand side of c is less than the right hand side of a, I will have completed my proof.  I conjecture that my proof will look like: $$xyz \le \frac {x^2y^2 +2xyz + z^2}{4} \le something \le \frac{x^3 + y^3 + z^3 + 3(x^2y + x^2z + y^2x + y^2z + z^2x + z^2y) + 6xyz}{27}$$  However, this is proving challenging arithmetically. I know that this is possible with calculus, but I am interested in solving the problem without calculus, and from either a geometric, factorial, or arithmetic perspective. Any insight would be appreciated.

I am searching for an elementary proof of the AM-GM inequality in three variables:  $\sqrt[3]{xyz} \leq \dfrac{x+y+z}{3}$  The inequality of the geometric mean vs the arithmetic mean of two variables can be proven elementarily via   $x - 2 \sqrt{xy} + y \geq 0$  whenever $x,y > 0$. I am searching for a proof that uses a similar technique based on elementary arithmetic.


I am writing a document where I use tcolorbox to list code. I would like to have a couple of commands to list code from an external file, and one (or two) environment for inline snippets. What I have (and it's nicely working) is something along the way of this MWE:   \RequirePackage{filecontents} \begin{filecontents}{test.c} #include <stdio.h>  int main() {      return 0; }  \end{filecontents}  \documentclass{article} \usepackage[listings, breakable, skins, fitting]{tcolorbox}  % from http://tex.stackexchange.com/a/163617/38080 \newtcbinputlisting[auto counter]{\putcodecomment}[2]{     listing file={#1},     title={Listing \thetcbcounter: #1}, fonttitle=\bfseries,     listing and comment,     comment={#2},     %%% start of common things here      breakable,     width=0.9\linewidth,     bicolor,     lower separated=true,     colback=red!5,     colframe=red!75!black,     listing options={       language          = {[Visual]C++},           % Language       basicstyle        = \ttfamily,             % Default format                 keywordstyle      = \color{blue},          % Keywordformat                                      breaklines        = true,                  % Automatic line breaks       breakatwhitespace = true,                  % Line breaks only at white spaces       tabsize           = 4,                     % Number of spaces equal to a tab       showspaces        = false,                 % Show spaces in the code       showtabs          = false,                 % Show tabs in the code       showstringspaces  = false,                 % Show spaces among strings   }, }  \newtcblisting{justcode}[0]{     listing only,     breakable,     width=0.9\linewidth,     %%% start of common things here      breakable,     width=0.9\linewidth,     bicolor,     lower separated=true,     colback=red!5,     colframe=red!75!black,     listing options={       language          = {[Visual]C++},           % Language       basicstyle        = \ttfamily,       % Default format                 keywordstyle      = \color{blue},          % Keywordformat                                      breaklines        = true,                  % Automatic line breaks       breakatwhitespace = true,                  % Line breaks only at white spaces       tabsize           = 4,                     % Number of spaces equal to a tab       showspaces        = false,                 % Show spaces in the code       showtabs          = false,                 % Show tabs in the code       showstringspaces  = false,                 % Show spaces among strings   }, }  \begin{document}  \putcodecomment{test.c}{%     No comment here  }  \begin{justcode}     a = a + 1;  \end{justcode}  \end{document}     ... which works, but as you can see, I had to use copy and paste to "repeat" the common part of the options of the boxes. Now, if I want to change the color of the background, I need to change it in two (really they are four) different place.   I tried to put all the common option in a \def\commonoptions{...} but it choked...   Is there a way to put the common part in common "style" so that I can organize it better? Something on the line of the tikz styles?

TiKZ allows to define a .style which can be later be used in another one:  \tikzset{       first/.style={rectangle, draw},       second/.style={first, inner sep=2mm} }   any change in first is inherited by second. Is it possible to do something similar with tcolorbox?  As an example, take a look at next code, where a newtcolorbox and a newtcbox are defined with exactly same options. How can be same options applied to both definitions without having to type them again?  \documentclass{beamer} \usetheme{Madrid} \usepackage{tcolorbox} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[french]{babel} \usepackage{lmodern} \tcbuselibrary{skins}  \makeatletter \newtcolorbox{myblock}[2][]{     enhanced,     frame hidden, interior hidden, segmentation hidden,     coltitle=black,     fonttitle=\bfseries\rmfamily,     fontupper=\tiny,     title={#2},     overlay unbroken={\draw[gray,line width=1pt] (frame.north west) rectangle (frame.south east);     \draw[gray,line width=1pt] ([xshift=\kvtcb@lefttitle+\kvtcb@boxsep]interior.north west)--([xshift=-(\kvtcb@righttitle+\kvtcb@boxsep)]interior.north east);     \shade (frame.south west)--++(0,-1mm)--(frame.south)--cycle;     \shade (frame.south east)--++(0,-1mm)--(frame.south)--cycle;},     #1     }  \newtcbox{mybox}[2][]{       enhanced,       frame hidden, interior hidden, segmentation hidden,     coltitle=black,     fonttitle=\bfseries\rmfamily,     fontupper=\tiny,     title={#2},     overlay unbroken={\draw[gray,line width=1pt] (frame.north west) rectangle (frame.south east);     \draw[gray,line width=1pt] ([xshift=\kvtcb@lefttitle+\kvtcb@boxsep]interior.north west)--([xshift=-(\kvtcb@righttitle+\kvtcb@boxsep)]interior.north east);     \shade (frame.south west)--++(0,-1mm)--(frame.south)--cycle;     \shade (frame.south east)--++(0,-1mm)--(frame.south)--cycle;},     #1     } \makeatother  \begin{document} \begin{frame}{A nice box for beamer}  \begin{myblock}{Oups, nous avons rencontré une erreur.} Note partagée non trouvée  L'URL fornie ne correspond pas à une note partagée valide. Cela a pu être causé par une erreur typographique dans le lien, ou le propiétaire l'a privaisée. \end{myblock}  \mybox{Oups, this is a long title}{Note partagée non trouvée} \mybox[left=0mm,right=1cm]{Oups}{Note partagée non trouvée} \end{frame} \end{document}   Another example. I would like to define some tcolorboxes like beamer's block, example block and alert block. I can do something similar with \mybox definition in previous code where an optional parameter can help to change some aspect like title color, margins, whatever.   \mybox{Oups, this is a long title}{Note partagée non trouvée} \mybox[left=0mm,right=1cm]{Oups}{Note partagée non trouvée}   But if I would like to use \myexample, \myalert, \myblock, the only way I know is retyping all parameters in all definitions. Do you know an easier way?


What is the origin of the suffix: 'ship'?  Why was it chosen to become as a suffix ?  What made it special over other words like maybe 'cart' or 'rainbow' or something?     ie  friendSHIP might have been friendCART or friendRAINBOW         penmanSHIP might have been penmanCART or penmanRAINBOW Why was the word 'ship' chosen? Thank you.

I am curious if there is actual relation between all nouns ending in -ship, such as relationship, citizenship, sportsmanship, etc. with the vessel for transporting people or goods over the sea?


public class Solution {     public double myPow(double x, int n) {         if (n == Integer.MIN_VALUE) return 0;         if(n == 0) return 1;         if(n == 1) return x;         if(n < 0){             n = -n;             x = 1/x;         }         return x*myPow(x,n-1); // line 10     } }   above is my Java solution. However, I don't know why the leetcode compiler says: Runtime Error Message: Line 10: java.lang.StackOverflowError.  Thank you, guys. I found the problem is when n is large enough, it will takes a lot of time due to substraction. I should change in the way of binary search.  The accepted codes, although in 50.44%:  public class Solution {     public double myPow(double x, int n) {         if(x == 1) return 1;         if(x!=-1 && n == Integer.MIN_VALUE) return 0;         if(x == -1 && n == Integer.MIN_VALUE) return 1;         if(n == 0) return 1;         if(n == 1) return x;         if(n < 0){             n = -n;             x = 1/x;         }         return n%2==0 ? myPow(x*x, n/2):x*myPow(x*x, n/2);     } }

What is a StackOverflowError, what causes it, and how should I deal with them?


Please pardon me if you find this question very silly but this doubt has been troubling me for some time now whenever I want to run a regression.  I am working on SAS. I have a dataset which has 24,000 observations, and there are about 50 independent variables. There are no missing values and/or outliers. Dummy coding for categorical variables is also done. So, data preparation is complete. Now, when I run a regression model on this dataset, there are a few variables (8 variables) for which p-value is > 0.05 i.e. these variables are insignificant.  My question is what next? Do we remove these variables from the final regression equation? So, instead of having 50 independent variables, we'll have 42 independent variables (42 Beta coefficients + 1 for constant). Or do we need to remove one of these insignificant variables and re-run the regression model to see if there's any previously insignificant variable becomes significant now?

I have several covariates in my calculation for a model, and not all of them are statistically significant.  Should I remove those that are not?  This question discusses the phenomenon, but does not answer my question:   There is nothing in the answer to that question that suggests that non-significant covariates be taken out, though, so right now I am inclined to believe that they should stay in.  Before even reading that answer, I was thinking the same since a covariate can still explain some of the variance (and thus help the model) without necessarily explaining an amount beyond some threshold (the significance threshold, which I see as not applicable to covariates).  There is another question somewhere on CV for which the answer seems to imply that covariates should be kept in regardless of significance, but it is not clear on that.  (I want to link to that question, but I was not able to track it down again just now.)  So...   Should covariates that do not show as statistically significant be kept in the calculation for the model?  (I have edited this question to clarify that covariates are never in the model output by the calculation anyway.)  To add complication, what if the covariates are statistically significant for some subsets of the data (subsets which have to be processed separately).  I would default to keeping such a covariate, otherwise either different models would have to be used or you would have a statistically significant covariate missing in one of the cases.  If you also have an answer for this split case, though, please mention it.


In classical encyclopedias and dictionaries you can often find a reference to the first entry (and sometimes the last) entry of that page. E.g., in the header of the page (alpha - bravo) means that alpha is the first index entry on the page and bravo is the last one. I would like to create such a style for my index by placing this information in either the header or the footer. Currently, I use the standard LaTeX indexing mechanism (with makeindex and a style file in combination with the memoir class) to generate the index, however I could not find an easy way to implement this. Does anyone know which packages or custom code support this?

I would like to produce a document where I can display the first and last items of each two page spread in the headers of both the left and right pages. I know I can use \markboth{}{} to collect the usual form of marks that feed \leftmark and \rightmark. But that is limited to the text of one page at a time.  There doesn't appear to be a natural way to use the forward reference mechanism to do this, but there must be a trick, right?


I'm trying to get the customers which Company contains currentSearchViewValue.I want the LINQ to be case insensitive. I write the following:  string currentSearchViewValue = searchView.Query; var currentCustomersSearched = customers.Where(x => x.Company.Contains(currentSearchViewValue, StringComparer.InvariantCultureIgnoreCase)).ToList();   When I build it says that Contains has no overloads that take 2 arguments. I've seen a lot of examples on internet and they are very long or don't work. Is there a way to do what I want in one line?

Is there a way to make the following return true?  string title = "ASTRINGTOTEST"; title.Contains("string");   There doesn't seem to be an overload that allows me to set the case sensitivity.. Currently I UPPERCASE them both, but that's just silly (by which I am referring to the  issues that come with up- and down casing).  UPDATE This question is ancient and since then I have realized I asked for a simple answer for a really vast and difficult topic if you care to investigate it fully. For most cases, in mono-lingual, English code bases  answer will suffice. I'm suspecting because most people coming here fall in this category this is the most popular answer.  answer however brings up the inherent problem that we can't compare text case insensitive until we know both texts are the same culture and we know  what that culture is. This is maybe a less popular answer, but I think it is more correct and that's why I marked it as such.


I have two questions this morning with a positive score, yet neither the app or full site achievement drop downs are reflecting and rep changes after half an hour.  Neither answer is showing up in the "all actions" section either.  There appears to be a holdup somewhere.

Just like , which was marked as . But today, it's not working again. I'm still notified of new badges:      Update: it looks like new events are now updated; reputation events from earlier this UTC afternoon are still missing:


I have ten image view in my app that their visibility is set to invisible in XMl. I wrote if condition in java to visibility them programmatically but I don't know why they still are invisible.      EditText b = (EditText) findViewById(R.id.edit_b_beam);     EditText h = (EditText) findViewById(R.id.edit_h_beam);     EditText fc = (EditText) findViewById(R.id.edit_fc_beam);     EditText fy = (EditText) findViewById(R.id.edit_fy_beam);     EditText ffy = (EditText) findViewById(R.id.edit_ffy_beam);     EditText nAs = (EditText) findViewById(R.id.edit_nAs_beam);     EditText ds = (EditText) findViewById(R.id.edit_ds_beam);     EditText nAAs = (EditText) findViewById(R.id.edit_nAAs_beam);     EditText dds = (EditText) findViewById(R.id.edit_dds_beam);     EditText cover = (EditText) findViewById(R.id.edit_cover_beam);       ImageView image_b=(ImageView) findViewById(R.id.image_b);     ImageView image_h=(ImageView) findViewById(R.id.image_h);     ImageView image_fc=(ImageView) findViewById(R.id.image_fc);     ImageView image_fy=(ImageView) findViewById(R.id.image_fy);     ImageView image_nAs=(ImageView) findViewById(R.id.image_nAs);     ImageView image_ds=(ImageView) findViewById(R.id.image_ds);     ImageView image_cover=(ImageView) findViewById(R.id.image_cover);     ImageView image_ffy=(ImageView) findViewById(R.id.image_ffy);     ImageView image_nAAs=(ImageView) findViewById(R.id.image_nAAs);     ImageView image_dds=(ImageView) findViewById(R.id.image_dds);      if(!b.getText().toString().isEmpty())         image_b.setVisibility(View.VISIBLE);     if(!h.getText().toString().isEmpty())         image_h.setVisibility(View.VISIBLE);     if(!fc.getText().toString().isEmpty())         image_fc.setVisibility(View.VISIBLE);     if(!fy.getText().toString().isEmpty())         image_fy.setVisibility(View.VISIBLE);     if(!nAs.getText().toString().isEmpty())         image_nAs.setVisibility(View.VISIBLE);     if(!ds.getText().toString().isEmpty())         image_ds.setVisibility(View.VISIBLE);     if(!cover.getText().toString().isEmpty())         image_cover.setVisibility(View.VISIBLE);     if(!ffy.getText().toString().isEmpty())         image_ffy.setVisibility(View.VISIBLE);     if(!nAAs.getText().toString().isEmpty())         image_nAAs.setVisibility(View.VISIBLE);     if(!dds.getText().toString().isEmpty())         image_dds.setVisibility(View.VISIBLE);   it doesn't depend on what I write in my EditText for example:  b.setText("0"); if(b.getText().toString().equals("0"))         image_b.setVisibility(View.VISIBLE);   image_b is still invisible!

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?


I have a model of a hose that I'd like to pose for a render. The hose, pictured below, has two "rigid" ends. If I use a Curve modifie I can control where the bending starts, but not when it ends. This is deforming the other end that should not be bended as the middle. Is there a way to constrain the deformer for it to end at the "2" mark? Or should I try something else?

I want to create some parts that I can reuse for models. I was trying to make a steam punkish exhaust pipe. I want to be able to make the pipe of any length, and as curvy as I like but I want to keep the end cap always undeformed. I approximated my results by hand placing the "crown" at the end of this bezier curve.  I tried to make an array modifier that included the crown as the end cap, but that results in the end cap deforming.


I have a bag of 457 marbles, 111 of which are black, and 346 are white. How many marbles do I need to remove from the bag (without replacement) to be 95% certain that I get at least one black marble?  I'm not looking for a specific answer - I want to understand how to solve problems like this. TIA!

I plan to execute a little study on whether dentists tend to grant privately insured patients (PRIV) a sooner appointment compared with publicly insured patients (PUB). I want to restrict this study to the dentists of a single town in Germany.  In this town there are about 500 dental practices and I am willing to call maximum 100 practices (twice, once as a PUB and once as PRIV). (A sample without replacement of size up to 100)  So the result of this examination would be a list of up to 100 practices with an associated value of 1 - if the appointment for the PRIV was more than two days sooner - and a 0 - if not. The proportion of 1s is what I want to estimate.  Now the sources I have been reading always assumed a much larger population with a finite population correction close to 1. This is why I doubt that blindly using a conservative or approximate confidence interval would lead to a statistically meaningful result.   So my first question is, of course, whether it is reasonable at all trying to estimate the proportion using a confidence interval in this case? And if yes, then what statistical technology/method (leading to a CI) would be a good choice for this use case?   One idea that comes to mind is using a sample size of 25 f.x., in that case the FPC would be 0.95 - "close enough" to 1. But it seems stupid trying to improve the quality of an estimation by reducing the information used for the estimation.


I am asked to prove $$e^{Y\log(1+Z)} = (1+Z)^Y$$ using power series definitions for both the exponential function and natural log.  I am really stumped on this.  Our hunt was using the nth derivative of the power series $e^{Y\log(1+Z)}$ and determine the coefficient on $Z^n$ but I am really stumped.  Please help

I am asked to prove $e^{(Y \log(1 + Z))} = (1 + Z)^Y$ using the power series definitions for both $\log(Z)$ and $e^Z$.  Our hint is to find a formula for the nth derivative of the power series expansion of $e^{(Y \log(1 + Z))}$ with respect to Z and then use it to find the coefficient on $Z^n$.  I have found that the formula for the nth derivative is $$\frac{(Y)_n}{(1 + Z)^n}\sum_{n = 0}^\infty\frac{1}{n!}\left[Y \log(1 + Z)\right]^n$$ where $(Y)_n$ is the falling factorial.  I am stuck from here though and cannot figure out how to use this to find the coefficient on $Z_n$.  Any help would be greatly appreciated.  Thanks in advance.