What are the limits to the magical knives in Supernatural?

There are two kinds of magical knives that we've seen in supernatural so far:   'Ruby's knife' the magical demon killing knife Angel Knives which kills angels.   It seems from what I can recall Ruby's Knife can't kill anything but Demons, and the angel sword can kill angels and hellhounds, at the very least.  Is that the limit of their power? Do we know if they've been tried on any other supernatural creature (Shapechangers, Leviathans etc)? Were they effective? Do we know if particularly powerful creatures are immune (like Castiel in god-mode)?


I found this:     Fear is an essential attribute of human nature. It plays a crucial role in human survival.   But we cannot use:     Fear is an essential attribute of human nature. It plays a crucial role in human's survival.   Why?


I have an HTML link that links to an external site. I want to be able to add a dialog message when the user taps on the link and no internet connection is available. I want to be able to do this using HTML and javascript.  See this example of what I am trying to achieve. Thanks.


Of all the half-Muggles in JKR work, what is the percentage of those with muggle mother vs father?

As part of my digging into heritability of magic, I am trying to see if there's any difference between the chances of being a wizard with one Muggle parent if your mother vs. your father was a Muggle.  As far as I know, JKR didn't cover that explicitly, but we can at least make a guess based on statistics.  As such: Of all the half-Muggles mentioned by JKR (books, supplemental books, interviews, Pottermore) where we know who was a Muggle among parents, how many were Muggle fathers vs Muggle mothers?  To avoid creating an endless list of answers, if you can think of another example that wasn't tallied before, please edit it into an existing answer.  NOTE: this question uses "half-Muggles" instead of JKR's term "half-blood" because I only care about kids whose one parent was a Muggle; whereas in Potterverse, the "half-blood" term also applies to those whose second parent was Muggle-born magic user (such as Harry Potter).


Networking - Dell Gaming - Ubuntu 14.04 WiFi (Wireless) not working - Kernel issue

I recently installed 14.04 on my Dell gaming laptop. This  gives my laptop specs.  As the title suggests, the Wireless connection isn't working (isn't visible for access). I scoured the net for possible solutions. I found 3 relevant links on askUbuntu -     suggests that 14.04 is too old for my laptop configuration and hence I should be installing 16.04. However, I need 14.04 itself, since I need it mainly to work on  which is compatible only with 14.04.  suggests that I should be installing a 4.8.14 kernel to solve this issue. But one of the links in the answer is broken. I'm not sure whether I should go ahead with the procedure given.  again suggests that I should be updating my kernel. Again, I'm not sure whether that's the procedure I should be following since that is not the exact network controller I have.   Here are some relevant outputs from my system -   srinidhi@srinidhi-Inspiron-7577:~$ lspci -knn | grep Net -A2   3c:00.0 Network controller [0280]: Intel Corporation Device [8086:24fd] (rev 78)     Subsystem: Intel Corporation Device [8086:0050]   Here is the Network controller output of lspci -v  3c:00.0 Network controller: Intel Corporation Device 24fd (rev 78) Subsystem: Intel Corporation Device 0050    Flags: fast devsel, IRQ 255    Memory at dd100000 (64-bit, non-prefetchable) [disabled] [size=8K]   Capabilities: access denied   Here is my lsusb output  srinidhi@srinidhi-Inspiron-7577:~$ lsusb Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub    Bus 003 Device 003: ID 04e8:6863 Samsung Electronics Co., Ltd GT-I9500 [Galaxy S4] / GT-I9250 [Galaxy Nexus] (network tethering)    Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub    Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub    Bus 001 Device 004: ID 27c6:5301      Bus 001 Device 003: ID 8087:0a2b Intel Corp.     Bus 001 Device 005: ID 0c45:6718 Microdia     Bus 001 Device 002: ID 04ca:00a5 Lite-On Technology Corp.     Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub     I would greatly appreciate anyone to help me out with fixing this as I am not sure how to solve this issue. I've worked with ubuntu before in my undergrad mainly for ROS and I desperately need it working for grad school now. Thanks.


Removing an object by key inside another object

I'm trying to remove an object which is nested in another object by using the sub-object key.  Example:  var myMainObj = {      'subObjA' = {          'randomstuff' : 1,          'randomstuff2' : 2,       },      'subObjB' = {          'randomstuff' : 1,          'randomstuff2' : 2,      }  }   Now how would I go about completely remove the object "subObjB" if I know the keyname of it?


I have an Indian passport, with F-1 visa living in US. I am travelling to India via Europe (exact point of change of flight isn't fixed, but it is either Amsterdam, Paris or the Frankfurt.) I wish to visit a friend in Paris for 4-5 days while coming back. (And also, we might travel to Netherlands or Spain in this period)  I am wondering, which consulate to apply for tourist Schengen visa in Atlanta, my trip starts on 23rd of May, so I have little more than 3 weeks time. While, it may be considered safe time frame, I wish to expedite the visa approval so that I can book the tickets.   More info: In the past, I have been issued Schengen visa twice: One a student visa from Chennai consulate in India; another, a Business visa issued from Swiss consulate in Atlanta. (Business visa from swiss consulate in Atlanta was issued in just one day, despite they said it might take a week.)


When looking at , there is very little space between link and full:    Info:   iOS 13.4.1 Firefox 25.1


Rationalizing a Denominator with Cube Roots

Rationalize   $\dfrac{1}{\sqrt[3]{p^2}+\sqrt[3]{pq}+\sqrt[3]{q^2}}.$  How would I go about doing this without wading through lots of algebra?  Is there a trick similar to how you can multiply by $\dfrac{\sqrt a-\sqrt b}{\sqrt a-\sqrt b}$ with square roots?  Thanks in advance!


Evaluate $\int_0^1 \frac{(x^2-1)}{\log x} dx$

Evaluate$$\int_0^1 \frac{(x^2-1)}{\log x} dx$$  Context:  I came across a similar integral some time ago, and now I would like to know how to tackle this. Any hint is very welcome.


In Splendor there is a max coin limit of 10. If I exceed that limit by one, Would I need to return the most recently acquired coins, or could I return any in my hoard?  The rules:     A player can never have more than 10 tokens at the end of   their turn (including jokers). If this happens, they must return   tokens until they only have 10 left. A player can return all or   some of those they’ve just drawn.


Can we have this situation? If so, what examples are there of it?

Let $G$ be a group, let $F$ be a normal subgroup of $G$, and let $E$ be a normal subgroup of $F$. That is, let $E$ be a normal subgroup of $F$, and let $F$ in turn be a normal subgroup of $G$. Is $E$ normal in $G$? If not necessarily, then what example illustrates this situation?


In my website I would like to limit product quantity to 1, meaning is that user can order only one of a product in one order. And my question is how to configure to set maximum quantity to 1 . Any suggestion is greatly appreciated.  Thanks.


Transparency in opengl - texture with alpha, color from background

I have to draw texture with transparent areas on square. But I don't want this transparencies to take color from this polygon, but from the background. Do you have any good tutorial to achieve it?  --EDIT--     glColor4f(1,0,0,1);    glBegin(GL_QUADS);    glTexCoord2f(0,0); glVertex3f(-0.5, -0.5, -1);          glTexCoord2f(1,0); glVertex3f(1, -1, -1);          glTexCoord2f(1,1); glVertex3f(0.5, 0.5, -1);          glTexCoord2f(0,1); glVertex3f(-0.5, 0.5, -1);    glEnd();   I just takes color from polygon. How to make this polygon transparent.


I have a new website on Nette Framework, the problem is that the old website had URLs in the form: https://example.com/Questions/ https://example.com/Tags  So all over the internet there are backlinks to the above URL formats. The problem is that the new site displays 404 on those pages because the correct addresses are: https://example.com/questions/ https://example.com/tags  So I need to somehow overwrite .htaccess to rewrite the URL from the wrong form of addresses to the correct form, so automatically rewrite the following in the URL: A -> a B -> b ... Z -> z  Is it going through .htaccess somehow please? Note that the 404 is generated by the Nette Framework itself, so something like: CheckSpelling On CheckCaseOnly On  It will not work.


Between on and upon, which word better suits in the context of the following sentence.  The impression the victim made on / upon me when he testified was that of a witness of truth  I intend to impress a statement that the witness is a truthful witness.


converting a string to an integer returns a nullPointerException

I am trying to convert a string to an integer but in case it's not possible.  I want that integer variable to have a null value but I keep on getting a null pointer exception when the string is unconvertable while I need it in such case to catch the exception and handle it the way i want which is to put null in the integer variable.  This is my code:  String numt=request.getParameter("telephoneClient"); Integer tel; try{     tel=Integer.parseInt(numt); } catch(NullPointerException ex1) {     tel=null; } catch (NumberFormatException ex2)  {     tel=null; } catch(Exception ex) {     tel=null; }


So I'm trying to connect to an external db in order to access/update information located on a different non-wordpress database (oracle).  I tried constructing a new wpdb object (as suggested by many other posts on stack exchange) like so:  function initialize_rgr_db() {    global $rgr_db;    $rgr_db = new wpdb('usr', 'pw', 'sid', 'host'); }    However, I kept getting the "error connecting to database" when vardumping the $rgr_db object  debug.log displayed the following:  PHP Warning:  mysqli_real_connect(): (HY000/2003): Can't connect to MySQL server on 'host' (111) in /home/dowxx543z3a1/public_html/wp-includes/wp-db.php on line 1612   Alternatively, I tried using oci_connect like so:  $conn = oci_connect('usr', 'pw', '(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(Host=host)(Port=1521)))(CONNECT_DATA=(SID=sid)))'); if(!$conn) {         error_log('DB CONNECTION ERROR NOOO');         die(); } ...   But then I got call to undefined function.  Based on what I found, it seems like oci8 is not installed in wordpress. Online I found instructions on how to install oci8 on things like xampp or local environments, but nothing related to wordpress and frankly I'm afraid to mess something up.  So, here's my question. If someone could tell me what I'm doing wrong with wpdb, I'd love to find out. My guess is maybe that the oracle sid != the dbname that wpdb requires as the third argument.  Otherwise, could someone offer some guidance as to how to install oci8 (through cpanel)?  Thank you so much.


Why do sunbeams diverge even though the sun is much more than a few kilometers away?

Consider this picture of sun beams streaming onto the valley through the clouds.    Given that the valley is only (at a guess) 3km wide, with simple trigonometry and the angles of the beams, this gives the result that the position of the light source is being a few tens of km away at most.   What is wrong with the analysis?


Removing a comment under a migrated question

I just commented a  asking the OP to rewrite his question in english (I didn't think of ru.SO at all, my bad).  Anyway, the question got migrated to ru.SO, making my comment totally irrelevant, of course. But I don't find any way to remove it.  Is there a way I'm missing ?


Consider this scenario...Sam ate 4 cookies. Now if someone asks Sam How many you had, then Sam will reply 4. But how should the question be formed so that the answer Sam gives will be 4th instead of 4?


Is force really defined by the second axiom of Newtonian mechanics?

Many people claim that force is defined by the second axiom of Newtonian Mechanics, which is:  "In an inertial reference frame, the rate of change of momentum of a particle equals the sum of the forces exerted on it"  However, force is a fundamental quantity in Classical Physics and therefore it shouldn't be defined in terms of other (fundamental) quantities. Thus, the second law cannot be a definition for the force.  Is my reasoning wrong? Am I stating something that is incorrect?


TeXLive Pretest 2018: beamer and subfig collide

\documentclass{beamer}  \usepackage{subfig}  \begin{document}  test  \end{document}   returns undefined control sequence \@@magyar@captionfix  (It was not so in January; I am on fully updated pretest)


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 had an issue when joining the parenting Community.  I tried to join the community but it gave me an error, I came back a couple of hours later and had the reputation alert telling me that because I had rep..... I had been give 100 points. So I'm guessing the join request got processed.  I just went to comment on that site and instead of my name showing on the comment it gave me a25bedc5-3d09-41b8-82fb-ea6c353d75ae. When I click on my profile icon while on that site I get the right profile with my linked network accounts but the wrong name. Is fine if I view the profile from other sites though.


Can the form of a verb be determined by the meaning of the subject instead of its grammatical number?

In school we were taught that a subject in singular form required a corresponding verb, for example:     The multitude of insects is astonishing.   multitude is singular, therefore is must be used.  But now I have been told by an experienced (but not native) speaker that a subject with a plural meaning can be used with a verb "in plural form", for example:     The multitude of insects are astonishing.   multitude means plural, therefore are can be used.  Is this just an exception which is not taught to English language learners, or is it informal use, or is this wrong altogether?


Ray Intersecting Plane Formula in C++/DirectX

I'm developing a picking system that will use rays that intersect volumes and I'm having trouble with ray intersection versus a plane. I was able to figure out spheres fairly easily, but planes are giving me trouble. I've tried to understand various sources and get hung up on some of the variables used within their explanations.  Here is a snippet of my code:     bool Picking()  {   D3DXVECTOR3 vec;   D3DXVECTOR3 vRayDir;   D3DXVECTOR3 vRayOrig;   D3DXVECTOR3 vROO, vROD; // vect ray obj orig, vec ray obj dir   D3DXMATRIX m;   D3DXMATRIX mInverse;   D3DXMATRIX worldMat;                  // Obtain project matrix   D3DXMATRIX pMatProj =   CDirectXRenderer::GetInstance()->Director()->Proj();                 // Obtain mouse position   D3DXVECTOR3 pos = CGUIManager::GetInstance()->GUIObjectList.front().pos;                  // Get window width & height   float w = CDirectXRenderer::GetInstance()->GetWidth();   float h = CDirectXRenderer::GetInstance()->GetHeight();                  // Transform vector from screen to 3D space   vec.x =  (((2.0f * pos.x) / w) - 1.0f) / pMatProj._11;   vec.y = -(((2.0f * pos.y) / h) - 1.0f) / pMatProj._22;   vec.z = 1.0f;                  // Create a view inverse matrix   D3DXMatrixInverse(&m, NULL, &CDirectXRenderer::GetInstance()->Director()->View());                  // Determine our ray's direction   vRayDir.x = vec.x * m._11 + vec.y * m._21 + vec.z * m._31;   vRayDir.y = vec.x * m._12 + vec.y * m._22 + vec.z * m._32;   vRayDir.z = vec.x * m._13 + vec.y * m._23 + vec.z * m._33;                  // Determine our ray's origin   vRayOrig.x = m._41;   vRayOrig.y = m._42;   vRayOrig.z = m._43;     D3DXMatrixIdentity(&worldMat);   //worldMat = aliveActors[0]->GetTrans();   D3DXMatrixInverse(&mInverse, NULL, &worldMat);     D3DXVec3TransformCoord(&vROO, &vRayOrig, &mInverse);   D3DXVec3TransformNormal(&vROD, &vRayDir, &mInverse);   D3DXVec3Normalize(&vROD, &vROD);   When using this code I'm able to detect a ray intersection via a sphere, but I have questions when determining an intersection via a plane. First off should I be using my vRayOrig & vRayDir variables for the plane intersection tests or should I be using the new vectors that are created for use in object space?   When looking at a site like this for example:   I'm curious as to what D is in the equation AX + BY + CZ + D = 0 and how does it factor in to determining a plane intersection?  Any help will be appreciated, thanks.


Why didn't Obi-Wan remember R2-D2 and C-3PO in A New Hope?

How is it that, per       As for Obi-Wan, he forgot all about R2-D2 and C-3PO after spending three whole movies with them    I know people might say "well, would you remember a toaster you had 20 years ago" but really these robots have a personality, and C-3PO is probably fairly unique having been hand-built by Anakin.  How many people do remember cars, computers, TVs, and so on they used and interacted with throughout their life, or even closer, pets and work animals?  I'd say most.  So, other than OB-1 being a clone, what possible in-universe reason could be given for him totally not showing any sign of remembering these droids?  (It's a teensy bit easier to believe that Darth Vader doesn't show recognition of them given him being possessed by the dark side and being so busy terrorizing the galaxy and all)


Contrabasson or contrabass in the begining of this Harnoncourt recording of Johannespassion, BWV 245, Part 1: "Herr, unser Herrscher"

== Crossposted from  as the question was deemed more appropriate for this site by a user with lots of rep == Consider . I can't figure out if the very low notes at the very beginning are played by a (contra)basoon or a contrabass (or both). I don't know how to figure this out since there's is no guarantee that Harnoncourt adhered to the instrumentation of any sheet music of this piece that I can find. To me, the first note really sounds like a string being played, while the other ones could also be a woodwind instrument playing. I'd be grateful for anyone with a more precise ear than me and even more for someone with a source for the correct answer of this question. Kind regards


What crimes can a Thane commit without punishment?

I'm now a Thane in Whiterun - I was caught picking a simple lock in an inconsequential area and I was able to pull rank and tell the guards that they should remember who they're talking to, and they told me that they'd let it go but that I should be more careful.  Is that just talk, or can I get away with things repeatedly? I'm guessing that I can't murder people and then claim diplomatic immunity, but can I always get away with low level crimes like picking locks or pickpocketing? Is there a (daily?) limit after which I'm arrested? Does it matter which guard sees me?  Aspiring supervillains want to know.


Show that $\|f\|^{2}$ attains a minimum value on the interior of $B$

I am looking for any help, hints, or suggestions in how to go about this problem from a previous qualifying exam.  We are given a smooth mapping $f: U \rightarrow \mathbb{R}^{n}$ whose differential $df_{p}: \mathbb{R}^{n} \rightarrow \mathbb{R}^{n}$ is of rank $n$ and we have that $\|f(x)-x\|<\frac{1}{2}$. Here $U \subset \mathbb{R}^{n}$ is an open subset which contains the closed unit ball $B=B_{1}(0)$. The problem asks us to show that $\|f\|^{2}$ attains a minimum on the interior of  $B$.   As of right now, the only thing that comes to mind is the inverse function theorem, that there is an open subset $V \subset U$ where $f$ is an diffeomorphism on.


Influence of spacetime curvature on electromagnetic wave propagation

Classical physics assumes that spacetime is evenly distributed in the sense that Coulomb's Law predicts that a charged particle will create a spherically symmetric electric field around its location.  Coulomb's Law also predicts that the magnitude of the electric field's strength is dependent purely upon a point's distance to the location of the charged particle. However, these ideas do not seem to take into account relativistic effects due to gravity and velocities approaching the speed of light.  Here are my questions:   Is there a version of Coulomb's Law (and possibly Maxwell's Equations) that takes relativistic effects into consideration? How does spacetime curvature affect the propagation of electromagnetic fields?  It seems to me intuitively that if there was a 'denser' region of spacetime, that an electromagnetic field passing through that region would act as if it had traveled through a greater length of non-warped spacetime.  Is this correct? How does an electromagnetic field theoretically behave around the singularity of a black hole?  If an electromagnetic field's propagation is influenced by spacetime distortion due to gravity, how does the field behave as spacetime curvature/distortion approaches infinity?


Story Identification: Novel in which the dead are terraformed to create a satellite near stranded spaceship

I remember that there was a stranded spacecraft and several splinter groups made up from its survivors/desendants set up camps nearby, one of which was a "Planet" built up by using deceased crewmembers. It was a short novel, 180-200 pages. I read it in the 80's. The opposing factions of the living had to work together to repair the main spacecraft to escape whereever it was they had been stranded.  Edit- IIRC, Gravity played a major factor in the tale.


Difference between Debian 7.1 and Linux Mint 15 Debian

What is the main difference between Debian 7.1 and Linux Mint 15 Debian besides look and Desktop Environment. Basically with a special reference to security stability, and updates if you are going to use the machine as as server.  Themes, colors, desktop environments, ease of use do not have anything to do with the answers.


If $A$ is a set, we can use the set notation  $$A=  \{ b \mid\text{property $p_1$ of $b$}\}$$  But say $A$ is an element like $b$,  $$A = b \mid \text{property $p_1$ of $b$}$$  is this a usual notation?  I am trying to say that $A$ is a $b$ that such that( $\mid$ ) it satisfies property $p_1$ of $b$, and assume that exactly one $b$ satisfies property $p_1$.  Otherwise, is there a more usual convention to express this?


as far as I know the well known Instrumentation Java method is unable to correctly calculate the deep size of an object.  Is there a reliable way to compute on the JVM the correct deep size of an object?  The use case I'm thinking about is a fixed (or upper bounded) memory size data structure, i.e. a cache.  Note: as far as possible, I would like an enterprise-ready solution, so either a "standard" coding practice or a well tested library


Someone's DNS is pointing to my IP. What are my options?

There is a domain name that is incorrectly pointing to our company's static IP address. We've had the IP address assigned for a couple of years now. I've checked the whois entries and tried to contact the person by email (fails because of the bad DNS), LinkedIn and Facebook but no response so far.  I'm think this is just a mistake on their part because it causes their website and emails to fail.  What are my options now? Can I do anything if the person won't repsond?


Schengen visa refusal on threat to public policy, security, health

I applied for German Schengen visa as a medical escort to my relative in a different country from  where I reside, but my visa application was refused and the refusal letter  was written in German as the following:        Ein oder mehrere Mitgliedstaaten sind der Auffassung, dass Sie eine Gefahr für die öffentliche Ordnung, die innere Sicherheit, die   öffentliche Gesundheit gemäß Artikel 2 Absatz 19 der Verordnung (EG)   Nr 562/2006 (Schengener Grenzkodex) oder die internationalen   Beziehungen eines oder mehrerer Mitgliedstaaten darstellen.      I was in Germany for nearly a year with my relative during his treatment; I extended my stay there 3 times; and I returned back home two months ago in order to renew my passport. I applied again using the same documents that I used for my extension in Germany.    First, can anyone tell me what the refusal means? Next, is there any possibility that there is a mistake in the assessment?    Note: In English this reason is...     One or more member state(s) consider you to be a threat to public   policy, internal security, public health as defined in Article 2(19)   of Regulation (EC) No 562/2006 (Schengen Borders Code) or the   international relations of one or more of the member states).


Exception in thread "main" java.lang.NullPointerException For Beginner

I know this has been told many times but I've been programming with java for about 3 weeks and I've just been having some fun making stuff. Most of the other reports people have made did not fix my problem. The screen displays but not the rect. Here is my code:  import java.awt.Rectangle; import javax.swing.JFrame; import java.awt.Color;  public class something {     public static int SCREEN_WIDTH = 500;     public static int SCREEN_HEIGHT = 500;     public static int Y = 10;     public static int X = 10;     public static int Width = 50;     public static int Height = 50;     public static Color player_color = Color.black;     public static Graphics g;      public static void screen() {         JFrame screen = new JFrame();         screen.setVisible(true);         screen.setSize(SCREEN_WIDTH, SCREEN_HEIGHT);         screen.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);         screen.setTitle("test");         screen.setResizable(false);     }      public static void player() {         Rectangle r = new Rectangle(Y, X, Width, Height);         g.fillRect((int)r.getX(), (int)r.getY(), (int)r.getWidth(), (int)r.getHeight());         g.setColor(player_color);     }      public static void main(String[] args) {         screen();         player();     } }   By the way I am using Eclipse and I think the problem means I'm using a value which has a null value? Correct me if I'm wrong.


In the android app (1.0.58) I have been running into questions where there is no text in the question and or answers. On some questions it is just the answers where nothing is shown on other questions it is both the question and the answer. When the text does not show I can still see comments that have been posted to the question and answers. I have not been able to determine a pattern about which questions this happens to but the latest example would be  which I was not able to see the text for the question or answer.  I am using a Galaxy S3 with android 4.4.2 and the app is 1.0.58  I am unable to provide a screen shot for this problem  Also I don't feel this should be a duplicate of  as that is not only from a earlier version of the app (posted almost a year ago), has no answer or solution and also appears to have no developer response at all.


Jquery append link ( link 'click' not working )

Hi I am trying to append url from the server and show the link to the user to click it but the 'click' doesn't work. Can you help me fix it?  Thank you!  $("#uurl").append("
"+data[1]+"
")


A particle mass $m$ moves down a frictionless inclined plane. Does a normal force cancels a normal component of $m$ g?


Text and scripts overlapped if subscript and superscript used at the same time

I am using following method to display superscript and subscript at the same time but due to the length of for e.g., superscript, the text and the superscript is being overlapped.   \documentclass[aspectratio=169]{beamer} \usepackage{fixltx2e}  \def\SPSB#1#2{\rlap{\textsuperscript{\textcolor{red}{\small #1}}}\SB{\small #2}} \def\SP#1{\textsuperscript{\textcolor{red}{#1}}} \def\SB#1{\textsubscript{\textcolor{blue}{#1}}}   \begin{document}  \begin{frame}   \frametitle{XYZ}   {\fontsize{18pt}{20}\selectfont     R\SPSB{k}{ij} = R\SPSB{k-1}{ij} + R\SPSB{k-1}{ik}(R\SPSB{k-1}{kk})* R\SPSB{k-1}{kj}.} \end{frame} \end{document}   Do I need to space the subexpressions manually or is there any elegant way to do it?


I found a nautilus script I would like to use. How do I install it?


Hi is there any importers for blender 2.79 for importing JSON files?  I have found an importer for 2.50 but this doesn't work for 2.79 nor does it work for 2.50 as after installing the addon on blender 2.57 it doesn't let you enable the addon and will not let you check the enable box.  It's also a bit strange that blend4web doesn't have an importer as it has an exporter for json...  Thanks in advance!


The strange thing about the maximum in Planck's law

I read that it makes a difference whether you calculate $\frac{dE(\lambda) }{d \lambda}=0$ or $\frac{dE(\omega)}{d \omega}=0$ in the sense that the maximum energy density with respect to the wavelength does not coincide with the frequency maximum that one would assume to be at $\omega_{max} = \frac{c}{\lambda_{max}}$. Actually, I do not understand why this is so ( Now, I am only interested in a pure physical explanation, mathematically this is clear and due to the chain rule). Does anybody know how to explain this odd thing?  Somehow I feel that the core of the question has not been completely answered. Although I can easily look up wikipedia, where the need for the chain rule is explained, I am rather interested in understanding where the following argument breaks down, which seems to be why this question has caused some confusion in the past(as you can see by googling this question):  So we have $E(\omega)$ the energy radiated at a given frequency. Now this function has a maximum somewhere, so there is a frequency where a maximal amount of energy is emitted. In other words: If you add the sum of the photon's energies at each frequency that are emitted, you will notice that the maximum is reached at this frquency. Now $E(\lambda)$ tells you basically the same for the wavelength, but again: We know where at which frequency the maximal amount of energy is radiated, so we know the corresponding wavelength.   I think there is a need to explain this.   If anything is unclear, please let me know.


Does a moving object really shrink due to length contraction?

Is length contraction an optical illusion? Does object really shrink? Though measurements say yes, does it really happen? Or I have to say object is really measured to shrink?


I can't delete photos on my iPhone 4s even though the delete button is there, why?

I've selected the photos I want to delete but, the delete button isn't turning blue. They were all taken on the iPhone but, the sim card has been removed. Do I need the sim card or not to delete the images?


Posting solutions to textbook problems online

I'm interested in knowing whether there are any legal issues (e.g., copyright infringement) in posting solutions to problems of a (paid) textbook.  I have mentioned these problems in class and did not have the time to thoroughly solve them on the blackboard. I thought about typing up the solutions with an extended discussion on each problem and the concepts employed. However, before I do that, is there any legal action about which I should be concerned? More specifically, I'm thinking about typing them up in Jupyter Notebook-style and was planning on putting those up on a public Github repository.  I had initially typed up the problems as well, but decided to reference to the exercise number in the book, as the "wording" problem itself may be proprietary.  I'm aware that the book has a paid solutions manual to which I don't have access.


At what age is handedness preference firmly established?

Based on the discussion in the comments here:    Some of us are interested in knowing when hand dominance becomes firmly established.   I'm looking for a general timeline of the related developmental milestones. I know that there's ambiguity and fluidity regarding handedness in young children, but I'm not positive on when the switching becomes less common, and when it zeroes in on one or the other.  Some reports are that it happens quite early, but when 90% of the population ends up being right-handed, I think it's a bit of a self-fulfilling prophecy.  suggests it actually happens quite late. I'm not sure if there's more to back up/refute the information found here.    Both of these:       are related questions, but discuss the how/why, not the when.


I'm writing a script to get all files within a folder(including sub-folder):  #!/bin/bash function loop() { files=`ls -1Fd $1` echo "$files" | while IFS= read -r file; do     if [[ "$file" == */ ]]; then         loop "$file*"     else         echo "$file"     fi done } loop "$PWD/*"   I tried to test the script in this way:  #create folders and files mkdir test\ folder && mkdir test\ folder/test\ subfolder && touch test\ folder/test\ subfolder/test\ file && cd test\ folder  #execute the script ~/path_to_the_script/test.sh   But it doesn't work, here is the error:  ls: cannot access /home/user/Documents/test: No such file or directory ls: cannot access folder/*: No such file or directory   How to modify the script to achieve it?


I have been approved for a second working holiday visa in Canada on my Dutch passport, after having used my New Zealand passport the last time for the working holiday visa. This time I want to fly from NZ to the USA and arrive into Vancouver on land.  Apparently, I can't get a visa waiver for the USA because Canada is included in the 90 days limit. I already have a multiple entry USA tourist visa on my NZ passport, though. Could I enter the USA on my NZ passport, and then enter Canada on my Dutch one? Any suggestions on how to navigate having two passports in this situation?


I have a matrix where the rows are the data points (samples) and the columns are the features (predictors). Let's say I have 1000 data points and 20 features, i.e. the matrix is of size 1000 x 20.  Now I want to detect and possibly remove outliers. I have read a good introduction:   One possibility is for example to use the modified Z-score and remove everything with a value of above 3.5.  First, how should I apply this? Should I just calculate the modified Z-score for each row (data point) of the matrix and removing those rows which are flagged as outliers or should I calculate it for each column (feature)? The same problem I have with making plots (e.g. histograms)...  Second, which outlier detection method is best (possibly also for not normal distributed data)? There are so many. Simply methods like modified Z-score or just looking at the standard deviation seems to be often used.


type 2 and type 3 conditional sentences (a subordinate clause within the protasis or apodosis)

I read this sentence today:  If I were five years old again, I would sleep in every Saturday while I still had the chance!  I am confused why is had used in the last part. When the first part is referring to a hypothetical present/future then how can the last part be in past tense. The answer I received from a native speaker is that :  in type 2 and type 3 conditional sentences, a subordinate clause within the protasis or apodosis goes in the past (sometimes past perfect) tense.  Is this true? If yes, where can I find this information ? These are very advanced grammar concepts for me and any resource suggestion can be very helpful for me.


I would like to generate an output similar to the one that can be found in the foto, any ideas?


This came up in game tonight.   is a spell with Range: Self (15-foot cube).  The description reads:     A wave of thunderous force sweeps out from you.  Each creature in a 15-foot cube originating from you...   Players Handbook, 282-283  Does the area of effect center on the caster (extending 7.5 feet in each direction), or does it begin from the caster, and extend in the direction desired (for a full 15 feet)?


tmux: ncurses apps are displayed wrong (with garbage and so on)

I have ncurses apps (say, aptitude) working nice in plain xterm (or gnome-terminal, or any other terminal I've tried), but if I run it inside tmux session, screen isn't properly refreshed while I do some navigation through the menu.  Example screenshot:   (full resolution: )  The same happens with other ncurses apps inside tmux: say, . And again, without tmux they work nice.  How to make it work correctly in tmux too?  (OS is Linux Mint 13, if that does matter)


Editor not responding. Should I withdraw my submission?

I submitted a paper in October 2018. After 2 months, the status changed to "awaiting CE decision" and stayed it ever since. I waited a month and sent an email to CE in February 2019. I did not receive any reply. I then waited another month and sent a second email to CE and editor assistant in March 2019, still no response . I don't know what to do next? Should I email publisher? Should I send another email to CE. Since the paper has been in the review process for 6 months, should I withdraw my submission? What if CE doesn't respond to my withdrawal, can I submit the paper to another journal?


Showing that the unit circle has measure zero

How can  I show that $\{x \in \mathbb{R}^{2}: |x| =1\}$ has measure zero using the definition of measure zero? I don't want to use the interpretation of measure in $\mathbb{R}^2$ as area (and then show this by using the fact that the area of a circle is $\pi r^2$. I was thinking somehow find rectangles to that contain the circumference of this circle and keeping one of the sides of each rectangle free to make $\varepsilon$-small. I'm not able to get ahead with this approach though. Thoughts and ideas?  Note - this question is NOT a duplicate of  because it focuses on a specific example. The results from the other question might be modifiable to apply here, but look at something different.


How to render alpha channeled animated 2D sprites in OpenGL ES 2.0

I searched, but I can't find specifically how to render animated 2D sprites with an alpha channel onto a 3D polygon, z=0, in OpenGL ES 2.0.  This is just a basic 2D concept, but since I'm using, OpenGL ES 2.0, I need to use 3D vertex data to render to the viewport. I'm also assuming I'll need a 0.01 like z-depth projection matrix.  I don't know if I load parts of the bitmap first onto the texture data, or just use a large texture and manipulate the UV onto the 2D/3D vertices? Should it all be done in a shader?, if so, how would that be done (using uniforms and attributes in a shader)? What is the best technique for this? When do I update the animation as well, in the draw function or a separate update function?


Trying to understand the standard deviation's formula

I have just started learning standard deviation and I'm trying to understand the formula.  $$ s = \sqrt{ \frac{\sum(x-\bar x)^2}{n-1} } $$  Can anyone explain to me the square (and square root) part? If they are using the square & square root to prevent having negative value, why not just use | | for absolute value?  And I have another question. Why is the $-1$ sometimes omitted?  $$ \sigma = \sqrt{\frac{\sum(x-\bar x)^2}n} $$  Should I -1 or just omit it? I googled the standard deviation formula and some show -1 while some don't.  Thank you so much.


How to fix a broken package, when "apt-get install -f" does not work?

I tried to install  and got into trouble. Now I cannot do much with apt (except update), the broken package seems to be impossible to remove/clean:  Here's the result of apt-get -f install:  $ sudo apt-get -f install Reading package lists... Done Building dependency tree        Reading state information... Done Correcting dependencies... Done The following packages were automatically installed and are no longer required:   gstreamer0.10-fluendo-mp3:i386 scala-library liboil0.3:i386 Use 'apt-get autoremove' to remove them. The following extra packages will be installed:   scala The following NEW packages will be installed:   scala 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 4 not fully installed or removed. Need to get 21.5 MB of archives. After this operation, 0 B of additional disk space will be used. Do you want to continue [Y/n]? Y Get:1 http://apt.typesafe.com/ unicorn/main scala all 2.9.2-400 [21.5 MB] Fetched 21.5 MB in 13s (1,567 kB/s)                                                                           (Reading database ... 329381 files and directories currently installed.) Unpacking scala (from .../scala_2.9.2-400_all.deb) ... dpkg: error processing /var/cache/apt/archives/scala_2.9.2-400_all.deb (--unpack):  trying to overwrite '/usr/share/java/scala-partest.jar', which is also in package scala-library 2.9.1.dfsg-3 dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) Errors were encountered while processing:  /var/cache/apt/archives/scala_2.9.2-400_all.deb E: Sub-process /usr/bin/dpkg returned an error code (1)   Here's my attempt to autoremove:  $ apt-get autoremove E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root? phdp@desktop:~/work/manuscripts/ideas/ibm_food_webs$ sudo apt-get autoremove Reading package lists... Done Building dependency tree        Reading state information... Done You might want to run 'apt-get -f install' to correct these. The following packages have unmet dependencies:  typesafe-stack : Depends: scala but it is not installed E: Unmet dependencies. Try using -f.


If I were to post something, innocently, on the wrong site and became aware through my own observation or from the comments of others that another site was more appropriate for the question, am I able to migrate it myself or is that function only available to mods?


Feature-length animated movie from 80s or early 90s about humans avoiding androids

Back somewhere between 1995 and 1998 I have watched feature-length animated movie on home video. Sadly, tape was broken and I have never seen last 15-20 minutes. Animation quality was remarkably better than anything on TV at that time, so I think it was relatively new then. I don't remember anything from plot for certain, probably because I was too young to understand any of it (but hey, if it's animated it must be for children, right?).  What I do remember, though:   There were only two main human characters - male and female. I'd say they were in 20s. Female might have been introduced in later part of the movie. If there were other humans, they didn't play significant enough role for me to remember them. There were a lot of androids, all looking exactly the same. They were painted black or dark-grey. Being androids, they were very human-like. I think they had blank heads, as if wearing helmets. I think they had very smooth movements and maybe main characters initially thought that they are humans? Androids had some specific, in-universe name. I think it did end with "-oid". It might have been in a title of movie. Main characters preferred to avoid these androids, rarely engaging in open confrontation. I don't remember any cities, forests, seas or grasslands. Most of the action was out in open air on some desert and/or rocky area, like real-world planet Mars. Art style was realistic. Think of something similar to . Colors were rather dim, with heavy usage of dark orange/red. There was shooting. I think that shooting device had big caliber, like . It shot laser beams or some kind of waves. Humans definitely shot at androids, but I don't remember if androids ever shot back. I think androids were empty inside. Main characters might have discovered that when they shot android for the first time and investigated the body. I think that close to end there was a scene with human(s?) floating in some reddish substance. That might have been a dream, some kind of out-of-body experience or them dying.   So, I remember rather visuals than plot, making it much harder for me to find. I did went through some "100 of best animes" lists and Wikipedia list on robot characters, but couldn't find it. So far I am only sure that it wasn't something from .  Does anyone remember that movie and can name it?


What is the US Visa Waiver Program and what is an ESTA?

I wish to travel to the US and think I am eligible to do so under the Visa Waiver Program. I found a lot of information out there but am still having some trouble understanding how this works.  What is the US Visa Waiver Program? What is an ESTA?


How to typeset sampling rate using siunitx package?

I want to show 1 GS/s (one giga sample per second) in my article. How to make use of siunitx package to produce the rate correctly?  I assume there to be something better, than \SI{1}{GS/s}.  I would like to write something like  \SI{1}{\giga\sample\per\second}, but \sample is not defined in the package.  Related:


Bring coca leaves from South America to Europe

Soon I will fly back home from Argentina. Here in some places (as in other Andean countries) coca leaf from Erythroxylum Coca are legal and of common use for plenty of reasons, mainly historical. You can find it everywhere and usually sold in packets of about 20g of leafs. My question is: can I fly back to Europe (Buenos Aires->Madrid->Milan) with two packets of those leaves?


Number of natural numbers smaller than a given natural number!

Let $m,n$ be natural numbers. Is there a formula or a (non trivial) bound for the number of natural numbers smaller than $n$ and coprime with $m$?  Thanks in advance!


Do calculations support the idea that our universe should be a black hole?

In "The Physics of Star Trek" by Lawrence M. Krauss, he mentions that our universe, by all calculations, should actually be a black hole. I read it a while ago, but I think he mentioned that the mass in our (observable) universe is higher than the size of it, to the point where the observable universe is smaller than the Schwarzschild radius. If that is correct, then our universe should collapse into a singularity. Maybe I don't remember it correctly, or the problem is that we do not "see" the actual size of the universe, but only a small part (however, due to the homogenicity of it all, the density would be the same).  My question is if Krauss is correct in what he says (assuming I remember correctly), and if there is a reference to the original paper?


Calculation problem with Central limit theorem

Let $X_1,X_2,\dots\,$ i.i.d random variables with mean zero and variance $1$. Let $S_n=\sum_{i=1}^n X_i\,,n\in \mathbb N.$ Compute the weak limes $\lim_{n\to\infty} \frac1n \sum_{i=1}^n \frac{S_i}{\sqrt n}$    Surely we will have to use the CLT. First I tried to simplify the expression, but I am not sure how to continue here. $$\lim_{n\to\infty} \frac1n \sum_{i=1}^n \frac{S_i}{\sqrt n}=\dots=\lim_{ n\to\infty}\frac{1}{\sqrt n} \frac{nX_1+(n-1)X_2+\dots+X_n}{n}$$  Edit(2)  According to the comments, we have to verify Lindberg's condition ()  Lindberg's condition: $$\lim_{n\to\infty} \frac{1}{s_n^2} \sum_{k=1}^n E[(X_k - \mu_k)^2 \mathbb 1_{\{\mid X_k - \mu_k \mid > \epsilon s_n \}}=0,\quad \text{for all $\epsilon >0$}$$  Here:  $E(S_i) {\overset{\text{$X_i$ i.i.d}}{=}}0$ , $Var(S_i) {\overset{\text{$X_i$ i.i.d}}{=}} \sum Var( X_i) {\overset{\text{$X_i$ i.i.d}}{=}} i$ for all $i=1,2,\dots$ Furthermore $s_n^2= \sum_{i=1}^n \sigma_i^2 =Var(S_1)+Var(S_2)+\dots + Var(S_n)=1+2+\dots +n=\frac{n(n+1)}{2}$.  Plugging in: $$\lim_{n\to\infty}\frac{2}{n^2+n}\sum_{k=1}^n E(S_k)^2 1_{\{\mid S_k \mid > \epsilon  {\frac{\sqrt {n^2+n}}{\sqrt 2}}\}}$$  Intuitively this does not seem correct to me. Furthermore I am not sure how to simplify this expression.  Some help is welcome and obviously needed!


Evaluate the summation $\sum\limits_{i=1}^n\sum\limits_{j=1}^i 4$

Can somebody explain to me step by step how you solve this problem.  Evaluate the summation $$\sum\limits_{i=1}^n\sum\limits_{j=1}^i 4$$  This is what I did: 1)I did the inner summation which gives us $4i$. 2)I did the outer summation which is $4(1)+4(2)+4(3) \dots 4(n) = 2n(n+1)$


Why people have less hair than other primates?

Well as you can figure out, most primates such as monkeys, gorillas and chimpanzees, have all their body covered with fur. As we know they are evolutional "relatives" to us humans, but we dont have much hair(only on the head,on the armpits, on the groin, etc.). I would like to know why this "evolution" happened in a such brief era and why.


Consider the following two sentences:        From a roof cluster, the longest gutter line of each face is selected   if its height fall into a certain height range.    The one with the   lowest height is taken as the base height.      Can whose refer to a thing? As follows:     From a roof cluster, the longest gutter line of each face and whose   height fall into a certain height range is selected and the one with   the lowest height is taken as the base height.


Clarify the difference between "program" and "programme"

What is the difference between The Noun: Program and Programme ??  What should i use?


Order of growth according to Big-O Notation

Hello Stack Users, I am having trouble finishing this growth according to size algorithm problem. I was able to figure out the first two of the problem which are not listed in the picture. That would be 1. O(1) and 3. O(N) I was able to place these into their correct slots. I still cannot figure out how to determine the growth rate for 2,4,5,6 into the slots provided. Any suggestions on how to determine this?


I read a trilogy of books 5-10 years ago (it could have been an old story by then though) and went to recommend to a friend - but I can't for the life of my remember the author/titles.  In this world, magic and blacksmithing are linked somehow - "mastersmiths"enchant their creations while making them. There are few true "mastersmiths" who can craft in this way, and are held in high, almost god-like esteem.  What I remember:  The main protagonist is recruited by a mastersmith who teaches him the trade     it turns out this master is a bad guy, and he was helping him build some mega-sword of super-death   Later in the story he goes into a sort of self-imposed exile, not making anything too fancy     until someone talks him out of it? I think?   I'm hazy on the main plot details in this one, but     near the end of the book, he forges what to modern eyes would be an iron-man suit, possibly fighting a dragon...   Can anyone help?


SharePoint deployment - Deployed to: GAC (WebURL/Global) / BIN

I know that when we deploy farm solutions then they are available under Central Admin --> System Settings --> Manage farm solutions.  In this list of solutions, there are 3 columns. Name, Status and Deployed to. I have noticed that the Deployed to value is dependent upon the powershell you use to deploy the farm solution.  Example:-   This deploys to GAC and Globally: install-spsolution -Identity $solution -GACDeployment -Confirm:$false. The solution dll will go and sit under GAC. This deployed to GAC and to the web url: install-spsolution -Identity $solution  -WebApplication $oUrl -GACDeployment . The solution dll will go and sit under GAC. If we used the foll. powershell: install-spsolution -Identity $solution  -WebApplication $oUrl . The solution dll will go and sit under inetpub/weburlport.   I would like to know specifically, when do you choose option 1 or 2 or 3? Ideally, I would like to know the impact that each of the above example will have when the feature is scoped to Farm/WebApp/SiteCollection/Site respectively...


I believe my classmates plan to hand in a plagiarized project, how should I handle this?

In my class, we have project groups of 4 or 5 students. This period has everything to do with game development. The project is to build a XNA game for children at primary school.  Now, there is one group of students in my class, who snitched a game from the internet and are going to hand that in. I saw a Facebook post from one of the students about "their" game, and a fellow student found almost the exact same game on a Dutch game site.  What is according to you the right way of handling this -in my eyes, plagiarism? Should I inform the project teacher, to have them exposed to the exam committee?


Procedual material not applying correctly

i have an issue i need to fix ASAP because is getting in the way of my work, i started modelling with Blender and i love it, specially Vehicle modeling, and i have an issue, i created procedual materials like Metal, glass, tinted glass, carbon fiber using nodes in blender without any textures, and the problem i have is that whe ni apply the material in the vehicle for expample the windows i'm not getting the result i should be getting but when i apply the material to a plane or monkey head it applyes correctly, i have a few Screenshots to show you guys what i'm talking about with hope you guys can hellp me understand what's the problem cuz i really can't find any solution to this...   here another example on my carbon fiber material that's different in both meshes but is the same exact material... i really need help with this. i may be a noob and this is an easy thing to solve but i really need help to figure it out... PS: english is not my native lenguage and in the picture i wrote in spanish in red "mismo material" it means "same material" PS2: i'm rendering with experimental build GPU supported (Cycles)


Does a creature need to roll Stealth check again if it moves?

Suppose a creature succeed on a Stealth check to hide, say, in a brake. Suppose also the brake is large enough to move within it (100 × 100 feet, for example). If a creature wants to make a move and/or take a Dash action while remaining in the brake, does it need to re-roll its Stealth check? If yes, then when has it to re-roll (before the move, or after?) and how often (every turn of moving, with every move and every Dash action separately, etc.)? Also, what kind of action does this check take (an action, a bonus action, etc.)?


Rationale for disallowing close votes after rescinding my vote

Today, while working through the Close Votes Review queue, I was distracted for a moment and clicked to close a question for the wrong reason.  So I opened the question page and rescinded my close vote.  A message popped up saying that I would not be able to vote to close the question again, which is exactly what I wanted to do.  So my question is, why are users disallowed another close vote after rescinding an earlier close vote?  EDIT1  Firstly, thanks to our mods for the migration.   The linked possible duplicate question certainly does cover much of the same ground, and more. Like this question, it has generated lots of interesting discussion, but no definitive answer. The slight difference in this question is that I was seeking to correct an error.   The system disallows such repeat votes. It seems to be a design decision. It doesn't matter which of the questions is answered, but it would be good to hear the definitive design rationale for the policy decision.  EDIT2  A question linked to by the "possible duplicate" does contain the answer I seek: .  The answer boils down to open to abuse.


$A.createComponent doesn't include aura:id

Going straight to the point, i have spent quite some time yesterday figuring out createComponent and now it finally works, but the main reason i wish to use $A.createComponent instead of a iteration is because i found out that you can use a dynamic aura:id with $A.createComponent.  Code snippet from the helper:  $A.createComponent("nvmsconfigtool:pageComponentCard", {             "aura:id": "cardId",             "component": results[i],             "class": "slds-size--1-of-1 slds-medium-size--1-of-2 slds-large-size--1-of-3 slds-p-around--small",             },             function(comp, status, errorMessage) {                 if (status === "SUCCESS") {                     var body = cmp.get("v.body");                     body.push(comp);                     cmp.set("v.body", body);                 } else if (status === "INCOMPLETE") {                     console.log("No response from server or client is offline.")                  } else if (status === "ERROR") {                     console.log("Error: " + errorMessage);                 }             }         )   If my research is correct, this code should be working just fine and it does! Its just that it doesn't seem to make the Aura:id, i tried to find it using cmp.find("cardId")


Let $p$ be a prime of the form $3k+2$ that divides $a^2+ab+b^2$ for some integers $a,b$. Prove that $a,b$ are both divisible by $p$.    My attempt:  $p\mid a^2+ab+b^2 \implies p\mid (a-b)(a^2+ab+b^2)\implies p\mid a^3-b^3$ So, we have, $a^{3k}\equiv b^{3k}\mod p$ and by Fermat's Theorem we have, $a^{3k+1}\equiv b^{3k+1}\mod p$ as $p$ is of the form $p=3k+2$.    I do not know what to do next. Please help. Thank you.


Page download speed of Stack Overflow. What's the tech and trick?

I am baffled by the way Stack Overflow pages are loaded. Even through a mobile connection.(Where download speed is 8kbps & I am not talking about the mobile site. I am taking about using the mobile as a modem and accessing Stack Overflow through a desktop browser).  What makes Stack Overflow pages download so instantaneous? I have seen AJAX coming into play all the time. This is made more explicit when I see the header and footer remaining fixed and content changes slowly (Thanks to mobile connection). And they also use something like Stackexchange.ready(). What is that about?  Overall what do they use and how are they doing it so good?  I am really curious. The only other site I have seen that shows this kind of optimization is Google's main page.


Reference for statistical mechanics from information theoretic view

I am interested in knowing if some one here knows book/notes for statistical mechanics from the information theoretic viewpoint.  Additional Request from user83014  "Jaynes wrote a paper called Information theory and statistical mechanics (1957). I tried to read this but found it somewhat hard to follow, and I suspect it's because it's one of the earlier works, and that a modern text might be more refined since we've had time to work it out. On the other hand, what I've read from physics textbooks don't explicitly talk about information theoretic concepts like shannon entropy.  "Is there a good modern introduction to the information theoretic view of entropy?"


Fastest way to convert string to integer in PHP

Using PHP, what's the fastest way to convert a string like this: "123" to an integer?  Why is that particular method the fastest? What happens if it gets unexpected input, such as "hello" or an array?


Can I make edits made in edit mode appear in animations?

I'm currently working on a character which I want to be able to do most the animations a normal person could do (talk,blink,etc). However, in order to make a character do something such as talk, I would have to go into edit mode and move the mouth, except that I cant figure out how to make this a keyframe to put into the animation. Do I have to make the the head and the jaw/mouth separate parts and move them individually?Or is there something else I have to do to make it so edits appear in animation?


Customizing citations and the list of publications depending on the author

Say I use a bibliography file in my document, relying on Biblatex and Biber for citation management.  Given a citation command such as \cite{A, B, C} (or any other standard Biblatex citation command), I'd like the resulting citations to be typeset differently depending on whether a given field (e.g. the author field) in the corresponding bibliography entry contains a given string (e.g. someone's lastname).   Besides, I'd like to generate two different bibliography sections in the resulting document, depending on the same condition as above.  Typically this would be used to differentiate, both at the citation level in the main text and in the appendix, the publications that I co-authored from others.  EDIT: adding a MWE:  \documentclass{article} \usepackage{filecontents} \usepackage[backend=biber,style = alphabetic]{biblatex} \usepackage[colorlinks=true, breaklinks, allcolors = blue]{hyperref} \DeclareSourcemap{%   \maps[datatype=bibtex]{%     \map{%       \step[fieldsource=author, match=Doe, final]%       \step[fieldset=keywords, fieldvalue=doe]%     }%   }% } \begin{filecontents}{\jobname.bib} @Book{p1,   author =       "A. U. Thor and John Doe",   title =        "A Scientific Article 1",   year =         "1975"   } @Book{p2,   author =       "John Doe",   title =        "A Scientific Article 2",   year =         "1985"   } @Book{p3,   author =       "Joe Bar",   title =        "A Scientific Article 3",   year =         "1995"   } @Book{p4,   author =       "Jane Baz",   title =        "A Scientific Article 4",   year =         "2005"   } \end{filecontents} \addbibresource{\jobname.bib} \begin{document} % Requirement 1: should make citations of Doe bold In \parencite{p4, p1, p2, p3}, ``TD75'' and ``Doe85'' should appear in bold (the semicolon should remain plain).  % Requirement 2: separating bibliographies. IT WORKS. \section{Co-authored Publications} \nocite{*} \printbibliography[keyword=doe,heading=none]  \section{Other Publications} \nocite{*} \printbibliography[notkeyword=doe,heading=none]  \end{document}


QGIS 2.8 Change Colour of Selected features

How can I change the colour of the selected features in QGIS.  The light yellow is not easy to see.


I was participating to a  with another user. we both have 2 upvote and 0 downvote. Sadly none of us find a solution. According to :  the highest voted answer created after the bounty started with a minimum score of 2 will be awarded half the bounty amount. If there's no answer meeting those criteria, the bounty is not awarded to anyone.  The other user took is half reward and I didn't. Do I miss something? Update Thanks did not find this ... Now the question is: why the complete bounty info are only on meta and not on the  ?


I am 100% new to Blender and to the Blender Manual.  Could anyone tell me what a blend file is please.  It is discussed at length in the manual except for explaining what a blend file is.


Guidelines for determining shock hazard of capacitors

I'm looking for guidelines on how to identify capacitors which have the potential to cause pain, injury or death due to electrical shock if not handled correctly.  I recently purchased a "getting started with electronics" kit from Radio Shack. It contains an electrolytic capacitor of 1,000 µF and 25 V. I'm assuming this particular capacitor doesn't have the potential to cause such harm because it was included in an introductory kit. However, at what point does a capacitor have the potential to cause pain, injury or death due to electrical shock?  Ideally, I'd like links to reference material on the subject.


How to show that $\int_{0}^{\infty}{\sin(x)\sin(2x)\sin(4x)\cdots\sin(2^kx)\over x^{k+1}}\mathrm dx=2^{0.5(k^2-k-2)}\pi?$

$$\int_{0}^{\infty}{\sin(x)\sin(2x)\sin(4x)\cdots\sin(2^kx)\over x^{k+1}}\mathrm dx=2^{0.5(k^2-k-2)}\pi\tag1$$  $k\ge0$  Experimental using wolfram integrator, let me to conclude the closed form for $(1)$ is as follow above.  But I don't know how shows it.  How can we prove $(1)$?  We have  $$\prod_{j=0}^{k-1}\cos(2^jx)={\sin(2^kx)\over 2^k\sin(x)}\tag2$$  I am sure how is this product will relate to $(1)$  Setting $k=0$ we have the   $$\int_{0}^{\infty}{\sin(x)\over x}\mathrm dx={\pi\over 2}$$


How should I deal with a good suggested edit to my answer which was incorrectly rejected?

was in source code due to an API that changed. It's actually an awesome edit because I would have never have noticed the error in an old answer.  I'm not sure why the edit was rejected, by people who don't have knowledge of the API in question, it seems.  Should I just make the edit myself, or get the user to re-suggest it?


How to cite Kindle books/ebooks when no fixed page numbers are available?

I got the following info from the  website in relation to citing Kindle books or ebooks.     If no fixed page numbers are available, you can include a section title or a chapter or other number.   I am wondering is there a preferred method of citing in this case?   I am history Mlitt student and have only recently started to use a kindle for research purposes. At the moment I use the loc (location) reference that is produced by the kindle in the notes text file you can download from it, that shows all your highlights/bookmarks, but I am confused as to the proper citation method as my supervisor queried if this was the standard way of citing a kindle. I have a copy of my history department style-sheet but it makes no reference to kindle editions.


Hopefully a quick question - I am a US citizen currently residing in the UK on a visa. I am traveling to the US for 2 weeks with my wife, who is a British citizen. We do not yet share a last name (due to just not filing the paperwork yet and just being married recently).  She does not have any visas apart from the standard ESTA and there are no other further requirements, such as money, which we would need to worry about.  I've read online that since we are a family we should join the same line together when coming into the US border at the airport. However, because we don't share a last name, would this still apply? Should we just use our own appropriate lines? Would there be any issues with using our own lines?  If we do use one line only, which line?  US citizen or non-US?


I am trying to set up an SSH tunnel (on a Raspberry Pi) with the following command: ssh user@terbank.cs.kuleuven.be -L 5672:tabor.cs.kotnet.leuven.be:5672 -N (I should note that I can, or at least could, change the first port 5672 to whatever I want)  This worked before, as we were able to communicate with the Raspberry Pi with my laptop, which SSH'ed to that server the same way.  Now, after some reboots, we get this error (on the Pi) whenever we try to communicate with the Raspberry Pi:  channel 1: open failed: administratively prohibited: open failed   I already checked /etc/hosts, /etc/network/inferfaces and /etc/ssh/sshd_config to comply with solutions found on the internet.  This is a copy of our traceroute:  pi@raspberrypi ~ $ sudo traceroute -T -p 5672 tabor.cs.kotnet.kuleuven.be traceroute to tabor.cs.kotnet.kuleuven.be (10.33.14.4), 30 hops max, 60 byte packets  1  PenO8 (192.168.2.1)  2.033 ms  2.808 ms  3.168 ms  2  10.8.32.252 (10.8.32.252)  9.274 ms  9.380 ms  9.396 ms  3  rhmccoy1-vlan176.kulnet.kuleuven.be (134.58.252.17)  9.181 ms  9.158 ms  9.240 ms  4  * * *  5  * * *  6  * * *  7  * * *  8  * * *  9  * * * 10  * * * 11  * * * 12  * * *


Proving why $\Bbb Z_{4} \rightarrow \Bbb Z_{6} \text{ given by } f(\overline x) = [2x+1] $ is not a function.

Question presented: Is following a function from the indicated domain to the indicated co domain?     $f:\Bbb Z_{4} \rightarrow \Bbb Z_{6} \text{ given by }$   $ \bbox[white,1px,border:1px solid red]{f(\overline x) = {\left [ 2x+1\right]} } $   Q.S: So my main question for this problem is how does the co domain $f(\overline x) = [2x+1] $ affect the equivlanece class $\Bbb Z_{4}$?   QS: So according to my work here would it be correct to assume that $\Bbb Z_{4}$ would change because of the codomain.   Q.S: Lastly how does $x =y(mod)m$ affect the final result of the problem?  In this case we represent an element of the domain as an $\bar x$ and use the notation $[x]$ for equivalence classes in the co-domain.  The set of equivalence classes for the relation $\cong_{m}$ is denoted $\Bbb Z_{m}.$  $f(\overline0) = [1],f(\overline1) = [3],f(\overline2) = [5],f(\overline3) = [7],f(\overline4) = [9],f(\overline5) = [11],f(\overline6) = [13] $  $(4x+0)*2+1 \;\text{ This is what I am doing to get the result for the work bellow for  } \Bbb Z_{4} $ $x$ is an integer that is being multiplied to get the result it  is a visual representation for the function.  $\Bbb Z_{4},\; \overline 0 = \{ ...,-15,-7,1,9,17,... \} \; \Leftarrow \Rightarrow(4x+0)*2+1 $  $\overline 1 = \{ ...,-13,-5,3,11,19.., \} \Leftarrow \Rightarrow \; (4x+1)*2+1$  $\overline 2 = \{ ...,-11,-3,5,13,21,... \}$  $\overline 3 = \{ ...,-9,-1,7,15,23..., \}$  $\Bbb Z_{6}, \; \overline 0 = \{ ...,-12,-6,0,6,12,... \} \Leftarrow \Rightarrow \qquad (6x+0) $  $\overline 1 = \{ ...,-11,-5,1,7,13,... \} \Leftarrow \Rightarrow \qquad (6x+1)$  $ \overline 2 = \{ ...,-10,-4,2,8,14,... \} \Leftarrow \Rightarrow \qquad (6x+2)$  $ \overline 3 = \{ ...,-9,-3,3,9,15,... \} $  $ \overline 4 = \{ ...,-8,-2,4,10,16,... \}$  $ \overline 5 = \{ ...,-7,-1,5,11,17,... \}$  The reason for this not being a function is because $\Bbb Z_{6} \;  \overline 0 \neq \overline4 \; $ or $[1] \neq [9] $


I am trying to find a way to import an image, so that I can use it for 2D animation. Is there any way to use an image so it imports as an object like a plane? Thanks!


Microsoft Office document is "locked for editing by 'another user'"

A few of my users are in and out of various Excel 2007 spreadsheets all day. One of them reports that "50% of the time" she tries to open a spreadsheet from the file server, an information message comes up stating:       foo.xlsx is locked for editing        by 'another user'.      Open "Read-Only" or click "Notify" to open read-only and receive notification   when the document is no longer in use.   Nine times out of ten the document is not open by another user. My users immediately try to open the same document again, and it works.  I imagine this is caused by Excel leaving owner files on the server, but I do not know why.  An added clue: When one of my users selects "Notify," a dialog pops up in a moment informing them the file is available for them to edit.  Any guidance on how to solve this issue and make my users' days flow better?


I have the following question:     Prove  $$ n2^{n-1} + n(n-1)2^{n-2} = \sum_{k=0}^{n} {n\choose k} k^2 $$   The best I could do was get to   $$ \sum_{k=0}^{n} {n\choose k} \frac{1}{n-k-1} + \sum_{k=0}^{n} {n\choose k} \frac{1}{(n-k-1)(n-k-2)}$$


I defrosted ground beef in cold water for burgers for dinner, but dinner is delayed..I don't need it for another 2 hours.  But instructions say "use immediately" what exactly does that mean? Is there any wiggle room?


Could somebody please explain covariance to me

I feel kinda embarrassed to ask this question but for some reason I can't figure it out, so please help if you can  My dissertation involves two stock return datasets and essentially I am testing the relationships between the two stock returns. Calculating the correlation coefficient tells me when stock A rises, whether stock B rises, falls or is unrelated, as well as showing how strong the relationship is. What would calculating the covariance tell me?


What is the motivation for demeaning the data when doing PCA. I've been told to do it, but I've never heard a good and/or intuitive reason for it. Is this a case where doing it just makes the math easier, or is it more like: if you don't do it, you'll get the wrong answer.  This is something I've been wondering about for a while.  One other question: when you demean the data, do you also need to normalize it (i.e., divide by standard deviation)?


What is the best practice re: API Version of your Apex Classes?

I'm in the process of pushing some updates to some code I originally wrote 12-18 months ago, and the API Version is between 27.0 and 29.0  I know this is to protect the integrity of the test classes you've built (in case they have changed some things) but is there a best practice around either leaving these alone or trying to keep them up-to-date (maybe just once a year instead of at each release)?


How can I get grub2 to boot a different option only on the next boot?

I am setting up a dual booting headless Linux / Windows machine. I mostly want the machine to always boot up to Ubuntu, except for occasionally when I need to test something in windows.  I've installed Windows and Ubuntu, and currently it boots up to Ubuntu every time. I would like to be able to tell it to boot to Windows on the next boot only and then when I restart from Windows have the system return to booting Ubuntu.  I found  but I am using Ubuntu 14.04 server which has the newer version of grub. From what I've read, I need to make some changes to /etc/default/grub and use sudo grub-set-default when I want to boot to Windows.  I think those changes start with adding this to /etc/default/grub:  GRUB_DEFAULT=saved GRUB_SAVEDEFAULT=false   Anytime changes are made to /etc/default/grub I know that I need to then run sudo update-grub and which results in:  Generating grub configuration file ... Found linux image: /boot/vmlinuz-3.13.0-43-generic Found initrd image: /boot/initrd.img-3.13.0-43-generic Found linux image: /boot/vmlinuz-3.13.0-32-generic Found initrd image: /boot/initrd.img-3.13.0-32-generic Found memtest86+ image: /boot/memtest86+.elf Found memtest86+ image: /boot/memtest86+.bin Found Windows 7 (loader) on /dev/sda1 done   Since Windows is the 7th option in that list I believe I would run sudo grub-set-default 6 (0 based counting) - is this correct and is there a different method to get a numbered list of boot choices after the system is already booted?  Also, are the lines in /etc/default/grub sufficient to achieve this behavior or do I need to add additional configuration?


Switching between two monitors stacked vertically

So I have monitors stacked vertically.  Is there away to get my cursor to move between the monitors by going to the top of the lower monitor to get to the upper monitor?  Right now I have to go to the right of the primary to get to the other monitor.  I wonder if there's some third party app or system preference setting that I can set.


A "non-trivial" example of a Cauchy sequence that does not converge?

A Cauchy sequence doesn't necessarily converge, e.g. take the sequence $(1/n)$ in the space $(0,1)$.    Maybe my intuition is wrong but I tend to think of this as, "it does converge but what it converges to is not in the space".  Are there any examples of a Cauchy sequence that does not converge and avoids this type of saying?


PhD without previous academic degree: truth or myth?

Is it possible at all to do a PhD without a Master or a Bachelor's degree?   Every now and then I meet someone who claims he knows someone who knows someone who was able to do a PhD without previous degrees (maybe only with high-school).  Is that true, was it true in some specific cases?


Seeking software for automated facial recognition from photos?

A cousin of mine was doing some Thorp research, and found several unidentified photos that were in an album with some  photos and was wondering if there is a good facial recognition software that may be helpful in identifying the men in the photos?  In other words, could we teach such software with identified photos of men of various ages that are identified, and use that to get suggestions for the unidentified photos?  If not, what might be some other tools we might use?


Holomorphic function interpolating $e^{-n}$

Consider the question: does there exist a holomorphic function $f$ on the unit disk in the complex plane such that $f\left({1 \over n}\right) = e^{-n}$ ? I came up with an answer but I'd like to know if there is another argument.  Here's my answer: let $f$ be such a function. $f$ must vanish at $0$ by continuity. Any holomorphic function vanishes at $0$ satisfies the following estimate : $\left| f(z) \right|\sim_{z \to 0} \alpha \,|z|^m$, where $\alpha>0$ and $m$ is a positive integer (this is easily derived from the expression of $f$ as a power series). This contradicts the assumption $f\left({1 \over n}\right) = e^{-n}$.  By curiosity, I would like to know if there is another argument (maybe something about $f(z) - e^{1 \over z}$)?


Our group has determined that buying (almost exclusively) money and points is the way to go.  Most kingdom cards are ignored, or are bought very sparingly. This has lead to games feeling 'samey' and has taken a lot of the fun out for us.  What strategies should we use to counter ""?  Or are house rules needed here?


I was given an assigmnent in my Infintesiaml math course, and I'm having trouble proving the statement below: For every $a, b, x  \in \mathbb{R}$ such that $a \le x \le b$, we have $|x| \le \max\{|a| , |b|\}$ Hint: denote $r = \max \{|a| , |b|\}$. Could it be false? I have tried using the triangle inequality, with and without the mentioned hint, and also tried isolating $x$ and $a$, or $x$ and $b$, but i think there is something important that I am missing. I saw a similar question in a different post but the answers there are not explained very well.


When running my MBP, I attach an external monitor, a keyboard and trackpad to it so I have two separate desktops which are contiguous; like it's a "fancy" desktop.   Back in the day on Mavericks, it behaved properly: when I unplugged the external monitor to, say, take the laptop into a meeting, it would just put all of the desktops separately on the built in display, roughly preserving which window stayed on which desktop so all you'd have to use was a run a restore tool like Display Maid to restore your window positions when you plug your external monitor back in. This was handy because you didn't have to manually clean up your desktop when done.   Now, with El Cap, it would seem that when you unplug the external monitor, it used the monitor count of whichever screen had the most desktops and merges the windows from the two "combined desktops" into one desktop in a way that seemed to be random, which is clumsy.   Worse, setting back Display Maid to restore the original configuration automatic doesn't work like it used to - previously it saved positions on all desktops in one action, but now it does it one screen at a time and forcing you restore eech desktop separately, which is tedious. It would seem that Display Maid is not great software anymore.  Is there some other utility out there that must work better so you can restore how your windows and desktop setup was as it was before you unplugged the external monitor. Any ideas?


Is there a screen recording app that saves as .gif?

I have a blog, and sometimes I'd like to show my readers something specific about computers.  I've seen a lot of screen recording software, but all seem to save as video files.  Do any save as an animated GIF? I know how to transform a small video into a .gif, but I believe that I could make a smaller file if the .gif was created directly.  I'd like to be able to make something like this (from Codinghorror's ""):


What happens if the electronic chip on your passport is broken at a port of entry to the US under the Visa Waiver Program?

[Edit] Note that this is not a duplicate question. The law was changed on the 1st of April 2016:     Additionally, from 1 April 2016, all travellers wishing to enter the US under the VWP will need to hold a passport with an integrated chip (an ePassport).   I have an ePassport, but I'm not sure if the chip in it still works as the automated check in machines by Aer Lingus at Dublin Airport were unable to read my passport. The automated passport machines on arrival at Dusseldorf Airport seemed to work (although I have no idea if those machines literally just take a visual scan of the passport or read the (possibly broken) chip in my passport).   Just in case the chip in my passport is indeed broken, what would happen at a US port of entry under the new rules effective from April 1st 2016?   Would I be denied entry or just scrutinized more?  Is there a way to check if the chip still works?


Actual kickoff time, NFL, of a (say) "12:00" start time game?

Today (Sunday 8th, 2020, week 9) there's a Bears at Titans game, FOX, at "Noon".  (That's central time)  In fact, what time would literal kickoff be ?  Is there a consistent formula for that? Or does it really vary by network? Team? Start time? (Evening, Monday, etc.)  Is there even a specific kickoff-time (even for one specific game), or is it random, do you have to get to the TV at the stated start time to ensure you don't miss?  Is the literal kickoff time published anywhere, perhaps on the team's pages?   What if anything is the "general formula"?


Accept user input seperated by a comma and a space

I need to write a program that asks the user to enter 3 integers seperated by a comma and a space.  Here's what I've tried:  //start program //Prompt user to enter 3 numbers.   //obtain input marks as string getline(cin, snum1, ','); getline(cin, snum2, ','); getline(cin, snum3);  //convert marks from string to integer num1 = stoi(snum1); num2 = stoi(snum2); num3 = stoi(snum3);   I've tried both atoi and stoi,  1) stoi gives me an error saying: 'stoi' was not declared in this scope, which from what I have read on similar questions is because my compiler doesn't support C++11, which doesn't help me because I'm using the same compiler my teachers will use when I hand in my assignment, and if the code doesn't compile I get 0%.  2) atoi gives me an error saying: cannot convert 'std::string {aka std::basic_string}' to 'const char*' for argument '1' to 'int atoi(const char*)'.  I've searched this second error and all I've found is complicated solutions that I don't understand or don't work.  Is there no simple way of just getting this input into my variables as integers?  All hints much appreciated.  EDIT:  How is this a duplicate of splitting strings? That thread doesn't help.


How do i keep a newly started program from taking focus?

Say i'm coding in emacs and want to start up a music program. Because it takes too long to start up i go back to coding and type away.   When the music application starts up, the focus is stolen (gasp! stolen!) away from emacs and goes to the music application, often mid-thought.  Is there any way to keep this from happening and have the newly started application not have focus until i see that it's up and ready to be used?   Besides getting rid of my ADD of course. Or getting an impossibly fast computer that can keep up with my mind.  i'm using a Windows XP system, but i will soon have a Windows 7 system, and i have Linux at home.


Set theory proof, $\exists g(g\colon A\twoheadrightarrow C)$ or $\exists h(h\colon C\hookrightarrow B)$

Let $A$, $B$ and $C$ be such that $|A \cup B|=|C \times C|$. Prove that $\exists g(g\colon A\twoheadrightarrow C)\lor \exists h(h\colon C\hookrightarrow B)$ ($h$ is injection and $g$ surjection).


How to handle inventory and story of a player leaving

A player left my group recently. It was mutual and not-unexpected, and during the last session, the character left for an unspecified purpose.  The character (lawful-good wizard) who left had a few magic items:   A powerful necromantic artifact. An evil necromancer's spellbook. Miscellaneous scrolls & potions   These items were not an integral part of the story, and I feel OK letting them disappear together with the character. Since the player was a little problematic, I don't want the focus of the next sessions to deal with his character - I would like the spotlight to be on the players who remain.  However, It seems my players feel they are missing out on the monetary value of these items and wish to sell them to the highest bidder.  I would love some advice on how to handle the wizard's inventory and some generic advice on how such cases are usually handled in-game.


Centrifugal force in inertial reference frame

Take for example the case of a rod rotating about an axis passing through its centre of mass and perpendicular to it. It has a ring hung from one of its sides. The rotation of the rod causes the ring to move out wards and ultimately fall off the rod.   In the ground frame there is no real force acting on the body, but the ring still moves. If I am right, centrifugal force causes the motion of the ring. So does that mean that centrifugal force acts even in inertial reference frames?  Also, I am finding it difficult to imagine the ring's reference frame? Is it a rotating reference frame? How exactly will u visualize motion in this frame of reference?


This is the code I found online and was wondering How am I suppose to find exact value, for example I am using scanner, so if the user in this case enters 2, then I want to remove that row whose roll number is 2. So then it would only print 1 AAA 13, and 3 CCC 15.          public static void main(String[] args) {              //Creating user defined class objects               Student s1=new Student(1,"AAA",13);               Student s2=new Student(2,"BBB",14);               Student s3=new Student(3,"CCC",15);               ArrayList<Student> al=new ArrayList<Student>();             al.add(s1);             al.add(s2);               al.add(s3);                Iterator itr=al.iterator();                //traverse elements of ArrayList object               while(itr.hasNext()){                   Student st=(Student)itr.next();                   System.out.println(st.rollno+" "+st.name+" "+st.age);               }           }     }      class Student{           int rollno;           String name;           int age;           Student(int rollno,String name,int age){               this.rollno=rollno;               this.name=name;               this.age=age;           }       }


How to create a fancy table of contents for Beamer

How can I create a fancy-looking table of contents for a Beamer presentation?    \documentclass{beamer} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc}  \begin{document}  \frame{ \tableofcontents }  \section{Foo bar} \frame{} \section{Foo bar} \frame{} \section{Foo bar} \frame{} \section{Foo bar} \frame{} \section{Foo bar} \frame{} \section{Foo bar} \frame{} \section{Foo bar} \frame{}  \end{document}


Before the Universe.. it was always void. Void has no beginning. In-fact only Void can have no beginning. Because only something that does not exist... can be beginning-less.  the question is.. why didn't it permanently remain.. stay..  as void ?  shouldn't it have permanently.. remained.. stayed.. as void.. ?  wouldn't it only be logical for it to remain.. stay... as void.. forever ?  How can some concept without a beginning have an ending ?  How can Void.. which has no beginning.. have an ending ?  When the Universe came into existence.. isn't that like.. Void.. coming to an end ?  this simply makes no sense .  Void should have permanenty remained as void. because it is begining less.


How To Close A Certain Web Page With Command Line

How do I close a certain web page (in Chrome) with the command line?  I have tried taskkill /f /im (PID).  Also, I am looking for a way to do this without killing the entire Chrome process, e.g. my extensions and apps.  I have searched this on the web but I couldn't find anything.


What is the purpose of this sense pin in dual MOSFET package?

No info available in datasheet  After going through the answers I got some additional doubts:  Why is the sense pin only there for high side MOSFET? Why is the current rating different for high side and low side MOSFET in datsheet?


How to configure app to run in elevated mode from Standard User Account?

How to configure my c# app to run in elevated mode from Standard User Account?  Generally i would like to add permission for a program to run in elevated mode under standard user account without popping up the window:  "Do you want to allow the following program from an unknown publisher to make changes to this computer?" And The administrator password is required...


How can I elevate my cmd prompt using the the cmd line

I follow this script "runas /profile /user:administrator\administrator cmd"and when it prompts me for my password it always says that it is incorrect even though i am spelling it correctly. help please i am trying to write a batch script for school and this is all that is in my way.


I just started programming with Python and I have a question concerning 2D arrays. I need to create a matrix (numpy forbidden) of a certain size from av[1] and save it so that I can multiply it with another one later on. The logical thing for me was: 1- Get the length of av[1]; 2- Transform the av[1][] to it's ASCII equivalent with ord and finally 3- Insert that value into a list called key_matrix.  The matrix needs to be the smallest size possible and in a "square form", so I calculate the smallest square containing the len of av[1] ( called matrix_size ) and then I initialize my array like this:  key_matrix = [[0] * matrix_size] * matrix_size;    Like that I get my square matrix filled with 0. If matrix_size = 3 for example I get:  [[0, 0, 0], [0, 0, 0], [0, 0, 0]]   Now the strange part is (and also the part that I'm stuck on) the following, I use  index1 = 0; index2 = 0; key_matrix[index1][index2] = ord(sys.argv[1][0]); print(key_matrix);   to fill only the 1st element of the 1st line.  While the result should be:  [[97, 0, 0], [0, 0, 0], [0, 0, 0]]   I get:  [[97, 0, 0], [97, 0, 0], [97, 0, 0]]   Me and my friends really cant seem to figure out the reason why it does this, any help is welcome!  Thank you all for reading :)


If Isaac Newton believed that light is a particle, then how did he explain the interference phenomena?


Einbein in action for relativistic particles

Studying path integrals, in class we were looking for actions of relativistic particle. One of the possible action was $$S[x^\mu(\tau)]=-m \int d\tau\sqrt{-\dot{x}^\mu\dot{x}_\mu}$$ We introduced another action, which would eliminate the square root (and eventually allow massless limit) introducing the einbein $e(\tau)$ $$S[x^\mu(\tau),e(\tau)]=\int d\tau \frac 12(e^{-1}\dot{x}^\mu\dot{x}_\mu -em^2)$$ We then got an expression for $e(\tau)$ for which we obtain the first action. So with this expression of $e(\tau)$ the two actions are equivalent. My question is: how do we get the action with the einbein? We get it from the first action (without einbein) through some considerations, or is just "guessed" and then we impose condition on it reobtain what we already know?


I am ordering a flag.  It says "Welcome Summer" and then under that is the name                                 The Johnsons or The Johnson's  Husband and wife live in one dwelling.  I know if it stated The Johnson's Home that would be proper, but it just doesn't look right..  Thank you.


Fibonacci General Formula - Is it obvious that the general term is an integer?

Given the recurrence relation for the Fibonacci numbers, $F_{n+1}=F_{n}+F_{n-1}$ with $F_0=1$ and $F_1=1$ it's obvious that $F_n$ is a positive integer for all $n$. Suppose instead we were given $$F_n=\frac{1}{\sqrt{5}} \left(\frac{1+\sqrt{5}}{2}\right)^n-\frac{1}{\sqrt{5}} \left(\frac{1-\sqrt{5}}{2}\right)^n$$ Without spotting that $F_{n+1}=F_{n}+F_{n-1}$, how might one show that $F_n$ is an integer for all $n$?


Itemize environment too big for one frame in beamer

In the end of my presentation, I have a section with open questions in the form of an itemize environment. The \item-s of this environment are just too many to fit in one frame. How can I force the itemize environment to continue to the next frame, or make the frame probably two pages? What is a good solution for this problem? I can always end it and start again in next page. Is there anything more delicate? I tried \pagebreak without success.


I converted a curve to a mesh, and got the mesh data with:     mesh = bpy.context.object.data   This mesh had 47 vertices at this point. Then , I extruded the mesh (via script) along Z, and got 47 new vertices because of that (total 94)  However, this new addition is not reflected in my mesh data now. If I now perform some new operations using mesh.vertices , it only affects the older vertices and doesn't affect the new ones.  How should I go about this?


Can you figure out what is wrong with the statement below?   GCC error states:      'type name' declared as function returning array   #define MACRO(a) (a)[1]  class index { public:     typedef int index_type[2];     const index_type& operator[](int i) const; };  int k = 0; int i = MACRO(index()[k]);   btw: I know what is wrong, I thought it was amusing thing to share.   Many thanks to litb, his explanation of previous gotcha helped to solve this error pretty quickly.


What is the expected correlation between residual and the dependent variable?

In multiple linear regression, I can understand the correlations between residual and predictors are zero, but what is the expected correlation between residual and the criterion variable? Should it expected to be zero or highly correlated? What's the meaning of that?


What's the evolution of a state under an adiabatic evolution?

For an initial state $|\Psi\rangle_0$ as the ground state of a Hamiltonian $H(0)$, if it undergoes an adiabatic evolution $H(t)$ to reach the ground state $|\Psi\rangle_1$ of $H(1)$.   Then what's the evolution from the state $|\Psi\rangle_0$ and $|\Psi\rangle_1$?   Can the evolution be written in a form given by $H(t)$ something as $exp(-i\int H(t))dt$? If this is the case, then what's the difference between an adiabatic evolution and a non-adiabatic evolution?


Multiple Standard Actions With High Base Attack Bonus

A friend and myself were having a discussion and we had a small disagreement about a rule. He says that if he has a high base attack bonus, say 20/15/10/5, and has a special ability that is activated as a standard action that he can use it 4 times on his round similarly to a full attack action. My argument is that the high base attack bonus only applies to attacks. He says that since a single attack is a standard action the 4 attacks can be replaced by standard actions.  More specifically he says that his god character can use the Hand of Death salient divine power 5 times in a round, 4 for base attack bonus and 1 for haste.  Which one of us is right?


Habitat:  Men's room at a rest stop in Syracuse, New York.  Size: ~1 cm  Based on my limited searching ability, I think it's a type of "drain fly" (Psychodomorpha):   Hard to get a better picture without a macro lens, but is anyone able to speciate this fuzzy urinal-fly?


On php. How we use md5 encryption method? Suppose a login form. When we want an encrypted text we use  $encryptedtxt=md5('text');   Then we sent this $encryptedtxt to database. Now if we want this $encryptedtxt to compare with user new inputs to login , what should we do? If we should return text from encrypted form of it, how? Tnx.


How to close path for complex path in TikZ?

I'm doing a bit of 3D primitive fugures using this code:  \documentclass[tikz,10pt]{standalone} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \usepackage{mathptmx} \usetikzlibrary{arrows,shadows,calc,shapes,backgrounds,intersections,positioning}  \newcommand{\Grid}[2]{ \draw[white] (0,0)--(#1cm,0)--(#1cm,#2cm)--(0,#2cm)--(0,0); \draw[very thin,color=gray] (0,0) grid (#1,#2);  \foreach \j  in {0,...,#1} {       \node[] at (\j,0) {$\j$};     }   \foreach \j  in {0,...,#2} {       \node[] at (0,\j) {$\j$};     }} \begin{document}  \begin{tikzpicture}[line width=1pt,node distance=.1cm] \tikzset{drawstyle1/.style={draw=cyan,fill=brown!50}} \tikzset{drawstyle2/.style={draw=black,fill=cyan}}  %GRID %+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ \Grid{8}{10} %=================================================================== %Brown parr \coordinate (A) at (0,2); \coordinate (B) at (0,7); \coordinate (C) at (0.3,7); \coordinate (D) at (0.3,2); \def\Anf{60} \newcommand{\parr}[7]{ \draw[#7] (#1,#2)--(#1,#2+#3)--(#1+#5,#2+#3)--(#1+#5,#2)--cycle;  \draw[#7] (#1,#2+#3)--++(#6:#4)--++(0:#5)--(#1+#5,#2+#3)--cycle; \draw[#7](#1+#5,#2+#3)--(#1+#5,#2)--++(#6:#4)--++(90:#3)--(#1+#5,#2+#3)--cycle; } \parr{0cm}{2cm}{5cm}{3cm}{0.3cm}{45}{drawstyle1} \parr{.3cm}{2cm}{.5cm}{3cm}{7cm}{45}{drawstyle2}  \end{tikzpicture} \end{document}   This is what I got:   My problem is that I can not found right way to close paths? I close path in drawing rectangles by points like this:  \draw[#7] (#1,#2)--(#1,#2+#3)--(#1+#5,#2+#3)--(#1+#5,#2)--cycle;   But when I start to draw another rectangle touching first, there is a problem with lines at corners.  What is the simple or complex way to close paths correctly? Should I use clip somehow?


The Return key in my keyboard is broken, so I have chosen to make my PgDn key to act like the Return key. Now I learned how to do this using 'xmodmap'. The command I have to run is:  xmodmap -e 'keycode 117 = Return'   But I have to run this command everytime I reboot. I googled around and found that placing this command in the /etc/rc.local file should run it automatically at start-up. However, it does not work.  Can anyone tell me how can I execute this command when I boot up? I am using Ubuntu 14.04.


Centering  element with an image inside a div

How do I force my  element with an image appear in center of my div? And should I try to center an a element first, so it work out?


How to find a question regarding the negation/not operator (!)?

I am sure there are a few questions on SO about usage of the negation operator (!) in C#, but I haven't been able to find them.  How would one go about finding questions that discuss the proper usage of this operator on SO? I'm interested in suggestions regarding whether one should typically follow one or the other of these conventions:  if (!isValid) { ... }   or  if (isValid == false) { ... }   I realize this might be something on Programmers.SE instead, also, but the challenge in finding it still exists.


How to create a table with merged columns and rows, and wrapped text, like in MS Word?

The above can easily be created in MS word, but how can I create something like this in latex?  Basically changing the columns for specific cells, merging a bunch of cells together, wrapping text in a cell?


The topological space $X=\mathbb{N}\times \mathbb{Q}$ with subspace topology of $\mathbb{R}^2$ the set $S=\{(n,{1\over n}):n\in\mathbb{N}\}$ is closed in $X$?  $S^c=\phi\times\{{1\over n}\}^c$ right? but I know $\mathbb{Q}$ is neither open nor closed in $\mathbb{R}$, I am confused here, could any one help me to answer this question?  the boundary of $S$ is $\bar{S}\setminus $ int S. as int S is $\phi$ so boundary is $\mathbb{N}\times \mathbb{R}$?