How to use Picture in Picture (Mini View) mode in Windows 10

I have found several news sites that say that Windows 10 Anniversary update could bring PIP mode for Windows 10. Here is one article from  which says the following (Published April 13, 2016)     Microsoft could add a new feature called “Picture in Picture” for Windows 10. The update will most likely land with Windows 10 Anniversary Update and the tech company hinted at it in its official roadmap for Windows 10.   This is an image that shows what PIP mode looks like   Is this feature available yet and if so how can I use it?  With Windows 10 built in features or using third party software, is there a way that I can get PIP mode in Windows 10?  My overall goal is to watch instructional videos in a mini view while I do programming tasks or even play games on the same screen (I use a 55" TV).


Continuity of the linear operator $A:V\to V'$ induced by the bilinear continuous form $a:V\times V\to{\bf R}$?

Let $V$ be a Hilbert space with inner product $(\ ,)$ and norm $\|\cdot\|$. Suppose $a:V\times V\to{\bf R}$ is a bilinear continuous form. One can then define $A:V\to V'$ with $A(u)=\xi_u$ where $\xi_u(v)=a(u,v)$ for all $v\in V$. One can show by checking the definition that $A$ is linear.      Question: how to show that $A$ is continuous?     Suppose $u_n\to u$ in $V$. I end up with showing the estimate  $$ \sup_{v\in V, \|v\|=1}|a(u-u_n,v)|<\epsilon.  $$ For each $v$, by the continuity of $a$, one has for some constant $M_v$,  $$ |a(u-u_m,v)|\leq M_v\cdot \|u-u_m\|\tag{*} $$ But I don't see how to get a bound for $\{M_v:\|v\|=1\}$ so that (*) can be used.


Sum of cached memory and shared memory exceed total memory

When I run free -h, I get:               total       used       free     shared    buffers     cached Mem:          251G       208G        43G       179G       144M       190G -/+ buffers/cache:        17G       233G Swap:         5.6G       5.6G       1.1M   How can shared memory(179G) + cached memory(190G) exceed total memory (251G) ? Can memory be count as both of cached memory and shared memory?


What are the roots of the creeping usage of "there's" for both singular and plural predicates? (This seems to be more common in spoken English.) I have 2 theories.  Perhaps it is because spoken communication our society is becoming less formal by the day. Or perhaps it is a reflection of speakers of other languages having increasing contact with native English speakers.  I am aware of German  "es gibt" and Spanish  "hay" constructions. Please comment.  3/06/14 I ran a couple of Google Ngrams and was surprised to find a greater rise in the use of "there's" in English fiction than in general English language books, since the turn of the century.  This would seem to support my contention that informality is behind the shift.


Am I the only one who hasn't got a look back video at all? Every time I click the link for it, it just brings up photos for me. I'm kinda getting annoyed because everyone else is getting one and I'm the only one so far who seems to be having this problem.   Anyone any ideas on what I can do or if there is anything I can do?


I got an external drive that may need to be repaired.  When I try to mount it, I get the following error:  wrong fs type, bad option, bad superblock on /dev/sda1, missing codepage or helper program, or other error.   I have issues to repair the disk. I wanted to make a image copy of the disk before attempting any fsck repair. However making a image clone with dd takes 111 days for 300GB, and this is not an option:  dd if=/dev/input/DEVICE-HERE of=/dev/OUTPUT/DEVICE-HERE bs=64K conv=noerror,sync   This is the output from the dd command, and it is warning me that there is an error in the drive:  42598400 bytes (43 MB, 41 MiB) copied, 2035.41 s, 20.9 kB/s 42663936 bytes (43 MB, 41 MiB) copied, 2039 s, 20.9 kB/s dd: error reading '/dev/sda1': Input/output error 437+214 records in 651+0 records out 42663936 bytes (43 MB, 41 MiB) copied, 2042.48 s, 20.9 kB/s 42991616 bytes (43 MB, 41 MiB) copied, 2048 s, 21.0 kB/s dd: error reading '/dev/sda1': Input/output error 441+215 records in 656+0 records out 42991616 bytes (43 MB, 41 MiB) copied, 2051.39 s, 21.0 kB/s 43253760 bytes (43 MB, 41 MiB) copied, 2055 s, 21.0 kB/s dd: error reading '/dev/sda1': Input/output error 444+216 records in 660+0 records out 43253760 bytes (43 MB, 41 MiB) copied, 2058.75 s, 21.0 kB/s 43581440 bytes (44 MB, 42 MiB) copied, 2062 s, 21.1 kB/s   Any suggestions?


Ubuntu Welcome Screen Returns After Install

I am a brand new Ubuntu user. I recently made the switch by creating a USB Boot Drive with PenDrive. I followed the online instructions to have computer boot from the USB. Initially, I chose the 'Try Ubuntu' option. I liked what I saw, so I chose to 'Install Ubuntu".   My problem is this: I believe I had followed the 'Install Ubuntu' instructions to a tee; however, after I am prompted to restart my computer after installation, I am brought back to the Ubuntu Welcome screen with the option to "Try Ubuntu" or "Install Ubuntu". The bloody Welcome Screen keeps coming back!  My apologies if this has been answered in another forum.


I'm newbie to java.   class Demo{     public static void main(String[] args) {         String s1=new String("abc");          String s2=new String("abc");          String s3="xyz";         String s4="xyz";          System.out.println(s1==s2); //line 7         System.out.println(s3==s4); //line 8     } }   I just don't understand why line 7 got false and line 8 got true.  I would be so grateful if someone explain me this.


One of my friend's minecraft times out every time he joins my server

One of my friend's Minecraft gets a "connection timed out" every time he joins my server. I use hamachi to host the server. Any ideas about the issue?


Do not force editors of old questions to change a title with problem words

Since  was declined, I am proposing something a bit more conservative:     When editing old posts and the title itself is not edited, allow the existing title to remain, even if it does contain a word-that-shall-not-be-mentioned.   While reviewing, I often stumble upon answers that are clearly follow-ups to the question by the OP. My usual response involves moving their content to the question and then flagging the follow-up as "Not-an-answer". Sometimes, though, I am unable to complete the edit of the question, unless I change the old title to something that does not contain a problem word.  I find this annoying for several reasons:   While the original title was probably not very useful, selecting a new title properly is not a task to be taken lightly. It requires clear understanding of both the question and its context. Moving in the contents of a follow-up is relatively simple. Choosing a new title, in my opinion, is not. It forces upon each potential editor an all-or-nothing deal. I, for example, have already avoided editing several questions when I was also forced to choose a new title, since I did not feel qualified to do so. Changing the title of another person's question, while generally acceptable in a collaboratively-edited site, is still an issue when it happens months after the fact to retroactively enforce a new rule. I can easily imagine a user using a remembered title to search for an old question of theirs to no avail. I can just feel the urge to play word games with the original title in order to slip through the filter, rather than spend time and brain cells formulating a new title. Even if that means that the new title would be just as bad as the previous one.   I posit that, while leaving the old titles unedited does not reduce the noise ratio, it does not increase it either. So why don't we just let them rest in peace?  PS1:  is the question that sparked this feature request.  PS2: If we really want people to start editing old titles, why not encourage it separately, rather than force it? Perhaps with a new "Clean-up" tab in Review? Or even a "Janitor" silver badge?


Starting with D&D: Starter Set vs Dungeon Master's Guide

I have been GMing Call of Cthulhu 7th Ed. for some time and now want to try something different. I would like to go with D&D 5.0 since it will be available in my native tongue in a few weeks - the DM Guide is coming in few weeks, the Monster Manual and Starter Set are already translated and easily purchasable.  I wonder if I should buy the Dungeon Master's Guide or should I start with Starter Set? I don't mind waiting for the book to be available so it's not an issue of any sort. I suppose the Starter is easier to swallow, but what is your experience?


How to clean off keyboard marks on screen?

On the screen on my MacBook Air, there are some little square marks from the keyboard.  Are they permanent, or can I clean them off? How can I prevent this from happening in the first place?


How to prove an analytic function is analytic

I know the fact that not every $C^{\infty}$ function is analytic, for which there is the famous example:  $$f(x):= \begin{cases}        e^{-1/x} & x>0 \\       0 & x\leq 0    \end{cases} $$  In that case, $f$ is $C^{\infty}$ but its Taylor series is identically zero, which is clearly different from $f$ itself.  But how can I prove a function is actually analytic? Take $\sin(x)$ or $\cos(x)$, for example. We can easily calculate each Taylor series $T_{\sin}(x):=\sum_{k=0}^{\infty}\frac{(-1)^{k}x^{2k+1}}{(2k+1)!}$ and $T_{\cos}(x):=\sum_{k=0}^{\infty}\frac{(-1)^{k}x^{2k}}{(2k)!}$ and check the convergence of both. But how do we prove that $T_{\sin}(x)=\sin(x)$ and $T_{\cos}(x)=\cos(x)$ for all $x\in\mathbb{R}$?   What about other examples ($\tan(x)$, $e^x$ etc)? Do we really have to treat each case separately? Is there any theorem that makes this task easier?  Thanks!


Count number of unique comma separated values in an entire column

In Excel 2016, I have a column with cells that contain comma delimited strings. I am trying to count the number of unique strings in the entire column.   I know how to count the number of unique comma delimited strings within one cell and I know that I could collapse the data in my column into a single cell and do it that way. The problem is that would exceed the character limit of one cell since I have too much data.  Here is an example image which shows what I am trying to do:    The number 8 in B3 is the final result I am looking to get.  I don't know if this is possible to do using an array formula but I have attempted to write down the logic of a vba function to accomplish this. What I have so far is this pseudocode:   Function UniqueK (cells As Range) As Integer     Dim count As Integer     Dim temp_array() As String     Dim final_array() As String     Dim cell As Variant  For cell In cells     temp_array = split(cell,",")     append temp_array to final_array Next cell  remove duplicates in final_array count = number of entries in final_array UniqueK = count End function   This is probably a really slow way of doing it and I was wondering if there was an easier way of accomplishing this task or if there is an existing way of doing it that I could not find. If not, are there ways to remove duplicates in a string array and ways to append a string array to the end of another string array so I can get this function to work?


How to identify whether code runs under ASP.Net or regular AppDomain

I have some infrastructure code that can run under regular AppDomain and in some other case under the ASP.Net AppDomain.  The behavior of the code should be different for these two cases.  How can I identify under which type of AppDomain I am running without depending on the System.Web namespace assemblies since this is infrastructure code?  For example:  public static string BasePath {     get     {         var isAspNetAppDomain = ...         return isAspNetAppDomain              ? Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "bin")              : AppDomain.CurrentDomain.BaseDirectory;     } }


Parsing float is rounding the value incorrectly in Java

public class HelloWorld {      public static void main(String[] args) {         float amt = Float.valueOf("21111111.00");         System.out.printf("%f\n", amt);      } }   Output is: 21111112.000000  Why is the float value being incremented by 1 automatically?


Why my splines are moving all together when only one is selected?

I'm very new to blender so sorry if I say stupid things.  I am trying to put a series of splines along a circumference (at different distances so I can't use duplication... I suppose)  For easiness I set the origin of the splines at the center of the circumference with CtrlAltShiftC "Origin to 3D Cursor" but when I try to "move" one single spline along the circumference (rotating with RZ) even the other splines are moving with the selected one.  Edit: I've switched off proportional editing but still doesn't work.


In my sql server 2008, after running the query the data return is very huge say in millions. I tried copying but it gives an exception sql memory error. Can you let us know how can i copy the entire data and paste it into excel.  I don't want to export it to txt file as the data is not getting aligned. So i want to manually copy and paste it into excel. Please let me know the solution for thhis


Inserting non-geotagged terrestrial photos in ArcGIS using coordinates/file path in table

using ArcMap, I want to create data driven pages of road signs along a highway with terrestrial photos that are NOT geo-tagged (Two photos per road sign). The image names/Network folder paths/coordinates are stored in the feature attribute table of signs.   My wish is that the data driven sheets will show these photos, which are automatically inserted near the POINT feature (road signs) they belong to (in data view or layout). The images are on a network folder. So, basically, I wondering how I can implement a script/tool to look inside the table, look at the feature, then the network link, pull the image and insert it next to the feature in layout view or data view. Since there are two photos, they need to be "staggered" (not overlap with one another) so they don't fall on top of each other.   Is there a way to do this in ArcMap (or other method)?  There are 907 signs with approximately 1700 photos.   I'm using ArcGIS Advanced 10.2 with Spatial/3D Analyst extensions.


$f(z)$ and $g(z)$ are Meromorphic functions such $|f(z)|\le|g(z)|$ for all $z\in\mathbb{C} $ then $ f=ag$

We know that if $f(z)$ and $g(z)$ are entire functions such that $g(z)\ne0$ and $|f(z)|\le|g(z)|$ for all $z\in\mathbb{C} $ then by Liouville's theorem $$ f=ag$$ for some constant $a\in \mathbb{C} $ .  Now my question is this that similar to above argument, if $f(z)$ and $g(z)$ are Meromorphic functions such $|f(z)|\le|g(z)|$ for all $z\in\mathbb{C} $ then I want to show $$ f=ag$$ for some constant $a\in \mathbb{C} $ .  I am thinking in this way that because because poles and zeros of Meromorphic functions are isolated , by the Riemann's theorem on removable singularities and By using analytic continuation to eliminate removable singularities also we can have $$ f=ag$$ for some constant $a\in \mathbb{C} $ .  Is this true way?


It's embarrassing for her, having me for a brother

I found this sentence on a book. As I feel the part, 'having me for a brother' describes the pronoun, 'it', not 'she'. Shouldn't the sentence start with 'she'?


Question:  Let $ A_{1}, A_{2}, ...$ be a sequence of sets, each of which is countable. Prove that the union of all the sets in the sequence is countable.  My attempt:  We know that for each set in the sequence, $ \exists \ f: \mathbb{N} \to A_{k}$  a bijection. Now I'm not sure how to prove that the union of all these sets is countable.


Ubuntu 12.04 on Dell Studio 1558 Laptop?

I was just wondering if it would be possible to put 12.04 on my Dell Studio 1558. I was poking around the Ubuntu website, and other websites and was unable to find any specific drivers for this model of laptop.  Does anyone know where I could find the appropriate drivers so I can get a better grip if ubuntu is right for me?  Thank you


using L'Hospital solve $\lim_{x \to \infty} x - x^{2}\ln(1 + \frac{1}{x})$

I can't get this to $ = \frac{0}{0}$ form so I can use l'Hospital rule $$\lim_{x \to \infty} x - x^{2}\ln\left(1 + \frac{1}{x}\right)$$  tips?  [EDIT] $$\lim_{x \to 0} \frac{1}{x} - \frac{\ln(1 + x)}{x^{2}}$$ second term $$\lim_{x \to 0} \frac{\ln(1 + x)}{x^{2}} =  \lim_{x \to 0}  \frac{\frac{1}{1 + x}}{2x} = 2\lim_{x \to 0}  \frac{x}{x+1} = 0$$ first term $$ \lim_{x \to 0}  \frac{1}{x} = \infty$$  is this okey?


Changing Page Number Style without Fancyhdr

I want to change the page numbering of my document to say "Page # of ##" instead of just "#". The fancyhdr package appears to change a lot, and it seem unfortunate to have to import it for one small thing.


How to evaluate $\lim_{x\to0} \frac{1-\cos(x)}{x^2}$ in terms of $\alpha = \lim_{x\to0} \frac{\sin(x)}{x}$?

I need to evaluate :  $\lim_{x\to 0} \frac{1-\cos(x)}{x^2}$  In terms of the number:  $\alpha = \lim_{x\to0} \frac{\sin(x)}{x}$  What I am thinking is that $\cos(x) = \frac{\sin(2x)}{2\sin(x)}$  But I don't know if this is the correct beginning  One example (I am doing this just to show that I can't derivate) I already did was:  $\lim_{x\to0} \frac{\sin(ax)}{\sin(bx)} =\lim_{x\to0} \frac{\sin(ax)\cdot bx\cdot a}{ax\cdot \sin(bx)\cdot b} = \alpha \cdot \frac{1}{\alpha}\cdot\frac{a}{b} = \frac{a}{b}$


How do I decipher these cryptic COMExceptions that ArcObjects are throwing?  I got this exception System.Runtime.InteropServices.COMException: HResult: 0x8004151C and thats it, no more info no nothing. How do I go about debugging?  I managed to decipher the exception after hours of googling, talking to colleagues, searching ESRI's forums and resources and at last gis.stackexchange.com.  I found this resource  and some other resource I cant manage to find again, where I was supposed to use the calculator in scientific mode, and do 10 steps of stuff get a 10 digit error code.  While doing so I couldn't help but get annoyed and wonder if this is the way its meant to be, or if there is any solution, code or anything else out there that could ease the job.  Or do we developer really have to wait for an exception to happen, and then do a manually lookup on the internet and maybe, just maybe find the cause for the exception after a long period of time?  So thats why I'm asking here, hence the question in the top.


I am developing new framework that will be released soon.  I want to use Stackoverflow as my support site. If anyone got question he should ask it here. Also I want to suggest people to use some unique tag so it will be easier for me to fallow.  Can I create new tag, without asking question for future use?


How to select an element and its children in jquery?

I have a div with further divs contained in it.These divs internally contain table/div in them. How can I select this parent div and its children in jquery? Parent div has the class "AccordionTitle AccordionTitle-selected"   I have tried following  var klo=$(".AccordionTitle.AccordionTitle-selected").contents()   and   var klo=$(".AccordionTitle.AccordionTitle-selected").children().clone()   but it is only selecting parent div and its children.Its not going deep to the root.I am using jquery 1.9.0  Thanks


How do I prevent Eclipse from hanging on startup?

I am using Eclipse 3.3 ("Europa"). Periodically, Eclipse takes an inordinately long time (perhaps forever) to start up. The only thing I can see in the Eclipse log is:       !ENTRY org.eclipse.core.resources 2 10035 2008-10-16 09:47:34.801     !MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.   Googling reveals  that I remove the folder:  workspace\.metadata\.plugins\org.eclipse.core.resources\.root\.indexes   This does not appear to have helped.  Short of starting with a new workspace (something which I am not keen to do, as it takes me hours to set up all my projects again properly), is there a way to make Eclipse start up properly?


A 30 year old Engineer's plan on becoming a Graphic Designer

I was never good nor interested in math and programming, and I have poor logic-mathematical skills. Ironically I graduated as an "Information Systems Engineer" mainly for the fame and money. I switched several jobs and even tried doing an advanced degree but found them all boring, dull, uninspiring, and I was not very good at it.  On the other hand, I do consider myself having strong spatial and visual skills, which made my thinking about becoming a Graphic Designer. Unfortunately, I can't leave my job and go to a design school for I need income to sustain myself (no family to support me) and that my portfolio is empty for I have almost no skills, yet.  I assume the best thing will be to start learning on my own and create a portfolio, maybe even to take a less demanding job to have more time, and if I see good progress, than to consider becoming a poor student once again and enroll into a design school.  Have I devised a good plan? Any improvements you can suggest which will make my progress better and save me time?


Bash copy all files that don't match the given extensions

When I import pictures from my camera in Shotwell, it also imports the video clips. This is somewhat annoying, as I would like to store my videos in another folder. I've tried to write a bash command to do this, but have not had success.  I need a command that meets the following requirements:   Locate all files in a directory structure that do not have an extension of .jpg, .png, .gif, or .xcf (case insensitive). Move all of these files into a target directory, regardless of whether the file names or directory paths contain spaces or special characters.   Any help would be appreciated!  EDIT: I'm using the default shell in Ubuntu, meaning that some commands are aliased, etc.  EDIT 2: I've attempted this myself (not the copy part, just the listing of files part). I turned on extglob and ran the following command:  $ ls -R /path | awk '   /:$/&&f{s=$0;f=0}   /:$/&&!f{sub(/:$/,"");s=$0;f=1;next}   NF&&f{ print s"/"$0 }'   This lists everything. I tried using grep on the end of it, but haven't the foggiest idea of how to get it to not match a pattern I give it. The extglob switch didn't help much with grep, even though it does help with other commands.


What's the best way to represent a stage script in HTML?

I have a sketch that I want to put up on my website, and I also intend to write a short play at some point which I'd also want to make freely available.  I'm trying to work out the best way of representing this in HTML. I basically need two columns - one for the character speaking, and one for the text. Each speech obviously needs to line up with the speaker though. In other words, something like this:       Jeff        This sure is a nice website we've got now.      Joel        It certainly is. By the way, working at FogCreek rocks.      Jeff        Of course it does. Have you played Rock Band yet? It's                  a lot of fun.   (Well it's better than lorem ipsum...)  I know how I could do this with HTML tables (with one table row per speech) but that seems pretty ugly, and everyone certainly seems to be keen on using CSS to represent non-tabular data. I can't see how this really counts a tabular data - my use of "row" and "column" earlier was to do with the layout rather than the fundamental data.  So, any ideas? I think most of the script websites I've seen (not many, admittedly) either use <pre> like my example above, or don't bother trying to keep the normal script format, instead just prefixing each paragraph with the speaker's name. (See the podcast wiki for an example of this style.) I'm having trouble working out even what HTML elements I should be using to represent this, frankly - a dictionary definition list with the speaker as the term and the speech as the definition is probably the closest I've thought of, but that feels like abuse.


Why is ridge regression called "ridge", why is it needed, and what happens when $\lambda$ goes to infinity?

Ridge regression coefficient estimate $\hat{\beta}^R$ are the values that minimize the   $$ \text{RSS} + \lambda \sum_{j=1}^p\beta_j^2. $$  My questions are:   If $\lambda = 0$, then we see that the expression above reduces to the usual RSS. What if $\lambda \to \infty$?  I do not understand the textbook explanation of the behaviour of the coefficients. To aid in understanding the concept behind a particular term, why is the term called RIDGE Regression? (Why ridge?) And what could have been wrong with the usual/common regression that there is a need to introduce a new concept called ridge regression?    Your insights would be great.


About the infinite geometrical sequence factored with n

I just came across  thread, and i asked myself:  I know that $\sum^\infty_{n=0} x^n = \frac{1}{1-x}$  But what happens when we set up the sum like  $$\sum^\infty_{n=0} nx^n = ?$$  There is probably a formula for that as well, at least there must be some coincidence, for the limited sums i already saw the prove in the thread i mentioned above. My books could not help me out so far.. If there is a formula for this, i would also like to see the derivation of it..   Searched the web with no luck so far. If you know a website or thread where this is explained, probably a link is enough for an answer.. I appreciate your help!


Unformatted string in new close-vote review queue format

In the new review queue page, in the "This question has been flagged as" section, there is a header that shows up as "subreason.InputTitle"  I believe this is unintentional since that string doesn't seem to be very helpful.


I have a method which returns [2] array, each value returned are doubles:  public class additions; {      public double [] Number ()     double [] z;     z = new double [2]      z[0]= 12+5;     z[1]= 58-8;      return z;// I would assumed values returned are stored in "Number"; }   Then in the main class, I have        additions  calculus_1 = new additions();      System.out.print(Arrays.deepToString());//neither of them seems to be working      System.out.print([0].Stringform());      System.out.print(calculus_1.Number());   I am unable to print the answer, Can you use a loop? where should I printing out the answer in the main class?  I am looking for a dynamic since I would be changing the calculation for Z.


Any Collection which can reorder after changing an element in Java

As the title, I'm looking for a built-in Collection in java that can reorder after changing an element. For example, let Col is the Collection expected containing ordered integer elements: [0, 2, 4, 6, 8, 9, 11]. Now we change the 2nd element as 1, e.g 4 to 1. After that the Collection will accept the change and update the order of elements as [0, 1, 2, 6, 8, 9, 11]. I know some java collections that can keep the elements order after adding a new element but is not auto-update or very expensive after changing an element.  So I'm very grateful if you can give me any suggestion about this issue. Thank you


"along the road" vs "alongside the road"

This "along" and "alongside" will drive me crazy, because examples are just the opposite of what we are taught.  On the Cambridge dictionary, I have seen the sentence:     .   I have been studying "along" and "alongside", and I have learnt that thin, long places like road, rivers, paths, beaches etc should be followed by "along" because it means "towards the end of something long in a line".   So, in the above sentence, we understand that pedestrian pathways are being built, which means that the pathways should start from the start of the road, in parallel to the road, and continue until the end of it, which perfectly requires the preposition "along". But why does the sentence have "alongside" and not "along"?  Please help.


How to temporarily prevent a web page in Chrome to intercept a paste operation?

I am using a password manager to generate safe, long, unique passwords. Because those passwords tend to be 20-characters long they are a pain to type, but they are not even intended to be typed, merely cut and paste.   Now, some webapps (e.g. PayPal when creating a new user) actively intercept paste operation from the JS in the page in order to prevent me from actually pasting my nicely generated password.  How can I temporarily prevent the JS in Chrome to intercept the paste operation, making it appears as if I had entered sequentially, albeit very fast, the content of buffer?


I am trying to run a program from cmd, but not as a child of the prompt. I have tried calling the program directly: program, but this starts it as a child process. I have tried start "" program, but this also starts it as a child process. Is this possible? I don't want the program to close when the prompt is closed.  Edit: This is not a duplicate question - start doesn't work in this case. I don't know enough to explain better, but some things to note:   The program in question doesn't open a new window The path to the program contains spaces, so requires inverted commas. However, the inverted commas seem to suggest to start that the argument is intended to be the name of the new command window. I need to pass switches to the program, which makes things a bit more complicated


Girl in / on / at / with a Mercedes (when talking about driving, possession and demonstration)

A girl is driving a Mercedes. Or maybe she is just sitting on a driver's seat. She owns this car, or maybe the car is her mother's and she is just flossing.   If I refer to her as "a girl in a Mercedes", then there will be no meaning of driving and/or possession. Maybe she is just sitting on the passenger's seat.   If I refer to her as "a girl with a Mercedes", then there will be no meaning of being inside of the car. Maybe she is just staying near the car.   When referring to this girl, in Russian we usually say "девушка на Мерседесе" (girl on a Mercedes). Saying that we don't mean "a girl on top of a Mercedes". We mean "a girl who is driving a Mercedes", or "a girl who is sitting on a driver's seat or looking out the driver's window". It also has some connotations of possession and demonstration (of the car).  But what's with American English? What preposition would be more appropriate for this exact situation? Is there any equivalent for the Russian "девушка на Мерседесе"?  I need to refer to her in a sentence like:     There were a lot of racers. A girl (in/on/at) a Mercedes SLK250. A guy (in/on/at) a Honda S2000...   Which preposition do American English speakers use — in, at, on?  In Russian, I can also say "девушка в Мерседесе" (girl in a Mercedes). All these Russian sentences are correct and all these sentences mean that the girl is inside the Mercedes. I wonder if it's the same in American English.


I have created one table in my PostGIS nut I cannot insert point.  What is wrong with my query?  CREATE TABLE app (    p_id INTEGER PRIMARY KEY  );  SELECT AddGeometryColumn('app','the_geom','4326','POINT',2);  INSERT INTO app(p_id, the_geom) VALUES(2, POINT(-71.060316, 48.432044));   After the last query it shows some error..  ERROR:  column "the_geom" is of type geometry but expression is of type point LINE 1: ...SERT INTO app(p_id, the_geom) VALUES(2, POINT(-71....                                                              ^ HINT:  You will need to rewrite or cast the expression.   ********** Error **********  ERROR: column "the_geom" is of type geometry but expression is of type point SQL state: 42804 Hint: You will need to rewrite or cast the expression. Character: 53   I already check my PostGIS version.   SELECT PostGIS_full_version();   I got the following output..  "POSTGIS="1.5.3" GEOS="3.3.1-CAPI-1.7.1" PROJ="Rel. 4.7.1, 23 September 2009" LIBXML="2.7.3" USE_STATS"


How to prove that $\sum\limits_{n=1}^{\infty}\frac{1}{n(n+1)(n+2)...(n+k)} = \frac{1}{kk!}$ for every $k\geqslant1$

Does anyone have any idea how to prove that  $$\sum_{n=1}^{\infty}\frac{1}{n(n+1)(n+2)...(n+k)} = \frac{1}{kk!}$$


Impossible to Install Ubuntu 18.04 alongside Windows 10 from a USB drive using NTFS?

I have a new computer with no disk drive and a Windows 10 (NTFS) partition, and I wanted to install Ubuntu 18.04 in dual boot configuration from a USB boot drive (exactly as I have done before for 16.04 on a Windows 7 (FAT32) machine). I followed several instructions (e.g. ) which recommend using Rufus 3.8, which does the job if I keep the default file system (FAT32), however when the installation comes to the screen for choosing Installation type there are no options. This appears to be because the installer cannot recognize the existing Windows NTFS partition.   On the other hand, if I specify an NTFS file system in Rufus, then it creates two partitions on the USB drive (one FAT and one NTFS) and gets stuck in grub without progressing to the installation options, regardless of which USB partition I prioritize in the boot menu. I tried some tips for getting out of grub, but "exit" is all that works, and the system resorts to Windows.   I have tried other USB formatting tools, but with less luck. I have disabled Secure Boot in the menu, and I have disabled hibernation completely. The only hint I have is snapping some lines that come up, for about 0.5 sec., just before the grub prompt takes over.  These seem to be talking about detecting and then disconnecting an existing NTFS system. It seems that what I am trying to do should be straightforward, but I am beginning to doubt whether it is possible at all.  Perhaps the Rufus developer, Akeo, could respond, as he mentioned that he had managed this about 18 months ago: .


Is there a way I can see a list of all my YouTube comments over time?

I posted something the other day and wish I could find the video again. Is there a way I can see all of my comments?


At the cost of about or At a cost of about

According to preliminary estimates, the project should be completed by 2020 at a cost of about RUB 40 bn.    or      According to preliminary estimates, the project should be completed by 2020 at the cost of about RUB 40 bn.    Are both options okay, or is the first better?   We are introducing the sum to the reader, so logically it should be the first option. But there's a lot of google-hits for "at the cost of" too.


I'm attempting to make an EEPROM burning circuit using an Arduino Uno. Due to the lack of pins on the Uno, I opted to use shift registers for the address and data pins of this EEPROM. Aside from my current issue, everything will be powered from the 5v pin.  Before I ask my question, I'd like to clarify that I am an electronics beginner. Sure, I could have purchased an EPROM burner for ~$100 USD for this chip, but I'm a very DIY kind of guy and I only have a couple of these to burn, so the price doesn't seem to justify the cost.  The issue I'm examining now, before plugging in my circuit is I can't seem to find the maximum current allowed through a Q pin on this dual flip flop (). I want to ensure I won't release the magic smoke from this IC by simply plugging it in. The purpose of this flip flop (as of now) is to toggle between read and write states for the EEPROM. As such, I've wired the VCC pins of an  and  to Q and !Q (unsure how to notate that here on SE) such that if one is on the other is off, and vice versa.  The CD4013B is running at only 5V, that's power and all inputs.  Here is what I think I know, and please correct me if I'm wrong!  (I mean, I bought extras just in case, but still...)   The SN74HC595 should not draw (or be loaded) over 35mA, or more likely 30 for a safety margin. The SN74HC165 should not draw (or be loaded) over 25mA / 20 or so for safety.   Now, being as these are both being used as for EEPROM data pins, I can imagine that the actual power draw will be significantly less than those maximums (though by how much I am really unsure).  Looking at the CD4013B datasheet, I can't seem to find any information regarding how much current this chip can handle.  Also, while I'm here talking about this specific IC, I'm finding the datasheet somewhat confusing.   The output high current is always listed as a negative amperage... I didn't even realize this was possible. Is it due to the transistor logic of this particular device that current flows (I would assume) backwards?  I also find it strange that the pins on this device are Vdd and Vss rather than Vcc and ground. Anybody care to explain why this is?


Our clothes sell so well in this country that we have no need to export.   Two questions.        Our clothes sell so well in this country...      Is this part of the sentence a noun phrase although it has two words which are not nouns (so and well)? Can a noun phrase have adverbs and adjectives in it? Please explain.        We have no need to export.      The second part of the sentence does not show any tense like present or past or future. Sometimes sentences have no situation, like present or past as in "all is well" or "everything is good". Does in such cases in sense of grammar we should use "be" verbs or sentence will be used as the present simple tense? What are the rules of grammar in such situations?


Regex - replace word having plus or brackets

In Python, I am trying to do  text = re.sub(r'\b%s\b' % word, "replace_text", text)   to replace a word with some text. Using re rather than just doing text.replace to replace only if the whole word matches using \b. Problem comes when there are characters like +, (, [ etc in word. For example +91xxxxxxxx.   Regex treats this + as wildcard for one or more and breaks with error. sre_constants.error: nothing to repeat. Same is in the case of ( too.  Could find a fix for this after searching around a bit. Is there a way?


Bluetooth malfunctioning with Ubuntu 16.10

I installed Ubuntu 16.10 and from that moment I was never able to operate the bluetooth on my laptop. I specify that with the previous version of Ubuntu 16.04 installed on the same computer I never had problems with bluetooth. Moreover if I run the application Checkbox I get everything up and running. Nevertheless, there are times when the power indicator does not appear at all, and times when although the indicator appear, activating the function of adding new devices, it never interrupts without giving any message. I note that during startup of the operating system display shows the following error message:  Bluetooth: hci0 command 0x1003 tx timeout.    Can you help me? Thanks a lot       Computer Information: - HP-15-Notebook - Memory: 3.3 GiB; - Processor:  AMD A8-6410 APU with AMD Radeon R5 Graphics × 4; - Graphics: Gallium 0.4 on AMD MULLINS (DRM 2.46.0 / 4.8.0-26-generic, LLVM 3.8.1); - OS type: 64-bit     Requested output of lspci -knn | grep Net -A2; lsusb  ansfed@ansfed-HP-15-Notebook-PC:~$ lspci -knn | grep Net -A2; lsusb 03:00.0 Network controller [0280]: Broadcom Limited BCM43142 802.11b/g/n [14e4:4365] (rev 01)     DeviceName: Harrier     Subsystem: Hewlett-Packard Company BCM43142 802.11b/g/n [103c:2230] Bus 002 Device 003: ID 04f2:b40e Chicony Electronics Co., Ltd HP Truevision HD camera Bus 002 Device 002: ID 0438:7900 Advanced Micro Devices, Inc.  Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 003: ID 0a5c:216c Broadcom Corp. BCM43142A0 Bluetooth Device Bus 001 Device 002: ID 0438:7900 Advanced Micro Devices, Inc.  Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 003 Device 003: ID 0000:0538   Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


Very new LaTeX user here!   There are a ton of impressive graphs on this site. I, however, am trying to make a nice looking line on a simple graph by plotting two (x,y) coordinates: (8, 2) and (-2, -3).  Can somebody please help me with this? Here's what I had in mind:   I've found a lot of information on parabolic graphs and much more advanced stuff, but nothing on really simple graphs.   Here's what I made:  \begin{tikzpicture}     \draw [thin, gray, ->] (0,-5) -- (0,5)      node [above, black] {$y$};       \draw [thin, gray, ->] (-10,0) -- (10,0)        node [right, black] {$x$};                   \draw [draw=red,ultra thick] (8,2) -- (-2,-3);   \end{tikzpicture}   I spent a long time trying to figure this out and mad a pretty stupid looking graph (which is huge):


How to place text on the same page as title page

\documentclass[12pt,titlepage]{article}  \usepackage{setspace}  % Single-spacing, double-spacing, e.g., \setstretch{1.0} \usepackage{ifthen} \usepackage{booktabs} \usepackage{array} \usepackage{multirow} \usepackage{tabularx} \usepackage[font=bf, labelsep=period]{caption} \usepackage{changepage} \usepackage{amsmath} \usepackage{graphicx} \usepackage{epstopdf} \usepackage{endnotes} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Document Dimensions %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \setlength{\textwidth}{6.2in} \setlength{\textheight}{8.6in} \setlength{\topmargin}{-0.1in} \setlength{\oddsidemargin}{0in} \setlength{\parskip}{2mm} \newcommand{\otoprule}{\midrule[\heavyrulewidth]}  \setstretch{1.6}   \date{}  \begin{document}          \begin{titlepage}  \title{some title}  \author{blah\thanks{blah}, blah\thanks{blah}, blah\thanks{blah}, blah\thanks{\textbf{Corresponding author:} blah}, and blah\thanks{blah}}   \textbf{Keywords:} Performance Measure, Performance Manipulation, Return Smoothing  \textbf{JEL Classification:} C10, G10, G20  \maketitle   \end{titlepage}    \end{document}   The above produces the following:      However I want to have the text that says JEL classification and Keywords right ABOVE the author affiliations on the title page, but when I compile I keep getting them on separate pages. How can I make them appear on the same page?


Close reason changed: Comparing old with the new

Recently, the options on the closed vote reasons on StackOverflow have changed.  I was curious about the differences, and would like a bit of clarification on the new one.     This question was caused by a problem that can't be reproduced or a simple typographical error. While similar questions may be on-topic here, this one was solved in a manner unlikely to help future readers. This can often be avoided by identifying and closely inspecting the shortest program necessary to reproduce the problem before posting.   Whereas the previous said:     Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist   Now, perhaps these are completely different reasons and should not be compared.  But given that one replaced the other, I'm curious if this indicates a shift in how we respond to a question that doesn't include code, but is asking for code.  This first would seem to indicate that the question, while it may include code, might be too specialized to be of value.  Those exist, to be sure, but seem much more rare.  Whereas questions that do not contain code, but ask for it, are prevalent.  If this is the case, what is the best way to respond to the myriad of questions that ask for code, but show no effort?  And is there subtly that I am missing in the new answer that I might look for in other questions?


Always be 100% bright when I'm using battery

When I'm using battery only - Ubuntu turns in some mode, when If I do not use my PC for about 5-10 seconds - the screeen becomes darker.  Where do turn this option off? Because I often need to read (without pressing keys and moving my mouse) and I can't see with dark screen.


I need to create a file if i double click it it will directly be opened by terminal. I wasn't able find info about that rather than clicking make file ex.. under properties section of a file. Can you guide me or mark this as duplicate of some other question?


Libgdx Networking (http requests) - Login

I am new to Networking and Databases, but im trying to learn MySQL and HTTP Requests to create a user Login for a game.  My goal is to let users create accounts and login to them etc (for Highscores etc). I discovered the Libgdx Net Module and also got my server running with MySQL, Apache and PHP.  I want to use php files to communicate with the Database on the Server.  But my question is (since there is not a big documention for libgdx Network Module):  Where and how can i learn how to create proper HTTP Requests in LibGDX and should i use JSON?   Just give me a hint how to start.  Thanks ;)


Under what conditions will healers switch targets?

I've been using healers lately, which I haven't really utilized much before. I've noticed that they will sometimes switch targets, even when their original target still lives.   What conditions are needed for healers to switch targets?


I am looking for visual Latex editor (Something like Microsoft Word). Is there any helpful.   The reason why I am looking for one is that I am tied to a deadline and I don't have enough time to get adapted with scripting language of Latex.  Most of visual editors are not available under Mac OS (Based on this  ), Can anyone help finding one with double interfaces (Scripting and visual).


For you, this might be very simple but I have no idea what the difference is.I just want to know the difference between these two codes. Suppose I have some codes as described below.   The first class is Animal which will be the Superclass   public class Animal {      private String name;     private int weight;     private String sound;      public void setName(String name){         this.name = name;     }      public String getName(){         return name;     }      public void setWeight(int weight){         if(weight > 0){             this.weight = weight;         } else {             System.out.println("Weight must be bigger than 0");         }     }      public int getWeight(){         return weight;     }      public void setSound(String sound){         this.sound = sound;     }      public String getSound(){         return sound;     } }   The second class is Dog which extends the class Animal   public class Dog extends Animal {      public void digHole(){         System.out.println("Dig a hole");     }      public Dog(){         super();          setSound("bark");     } }   The last class is the WorkWithAnimals which will print the output   public class WorkWithAnimals {      public static void main(String args[]){          Dog fido = new Dog();          fido.setName("Dadu");         System.out.println(fido.getName());          fido.digHole();         fido.setWeight(-1);     } }   My question is, what is the difference between Animal fido = new Dog() and Dog fido = new Dog() ?  Since Dog already extends Animal, why do we have to write the code like Animal fido = new Dog() ?  Both of them print the same result, don't they?


Transform Data to Desired Mean and Standard Deviation

I am looking for a method to transform my dataset from its current mean and standard deviation to a target mean and a target standard deviation.  Basically, I want to shrink/expand the dispersion and scale all numbers to a mean. It doesn't work to do two separate linear transformations, one for standard deviation, and then one for mean.  What method should I use?


I'm trying to write a custom Beamer theme and I'm having trouble figuring out how to manage the title page to allow an arbitrary assignment of authors or titles.  I've managed to figure out how to place the title, date, and author information in relative position, but the text must be of a certain number of lines to make everything line up properly with the display boxes (i.e. the Title in the center of the blue box and the author and date information in the center of the green box.) If the title is more or less than 2 lines, it breaks the formatting. If the authors span more than 2 lines it breaks the formatting. I ultimately want the Title to resize within a certain bounding box within the blue area and the author and date to resize within a bounding box in the green box.  What is the best way to accomplish this?  My beamerinnerthemeUniversity.sty file contains the following:  \definecolor{UniversityGreen}{RGB}{0, 133, 66} \definecolor{UniversityOrange}{RGB}{199, 91, 18} \definecolor{UniversityBlue}{RGB}{0, 161, 222}   \setbeamertemplate{background}{   \begin{tikzpicture}   \useasboundingbox (0,0) rectangle(\the\paperwidth,\the\paperheight);   \fill[color=UniversityBlue] (0,2) rectangle (\the\paperwidth,\the\paperheight);   \fill[color=UniversityOrange] (0,0) rectangle(2.95,1.9);   \node[inner sep=0] at (1.475,0.95) {\includegraphics[width=.25\textwidth]{University_logo.pdf}};   \fill[color=UniversityGreen] (3.05,0) rectangle(\the\paperwidth,1.9);   \ifnum\thepage>1\relax%    \fill[white,opacity=1] (0,0) rectangle(\the\paperwidth,\the\paperheight);    \fi   \end{tikzpicture} }   \defbeamertemplate*{title page}{university}[1][] {     \vskip4cm%     \begin{beamercolorbox}[wd=12cm,leftskip=2cm,sep=8pt,#1]{title page header}       \usebeamerfont{title}\inserttitle\par%     \end{beamercolorbox}%     \vskip1.75cm%     \begin{beamercolorbox}[wd=12cm,leftskip=3cm,#1]{author}       \usebeamerfont{author}\insertauthor%     \end{beamercolorbox}      \vskip0.2cm%     \begin{beamercolorbox}[wd=12cm,leftskip=3cm,#1]{date}       \usebeamerfont{author}\insertdate%     \end{beamercolorbox}   \vfill }  \setbeamertemplate{items}[square] \setbeamertemplate{sections/subsections in toc}[square]   \mode <all>   Here is an example of the output when everything is lined up with a 2-line title and 2 authors with short names:  \documentclass[xcolor={table}]{beamer} \usepackage[T1]{fontenc}  \usetheme{default} \RequirePackage{tikz} \useinnertheme{University}  \begin{document} \title[A Presentation of Great Import]{A Presentation of Great Import:\\Important discoveries in science} \author{Bob Smith \and  Sally Johnson} \institute{State University}  \date{February 24, 2016}  \frame{\titlepage} \end{document}     Here is an example of the overflow with a longer title and more authors  \documentclass[xcolor={table}]{beamer} \usepackage[T1]{fontenc}  \usetheme{default} \RequirePackage{tikz} \useinnertheme{University}  \begin{document} \title[A Presentation of Great Import]{A Presentation of Great Import:\\Important discoveries in science\\and a further digression on important things} \author{Bob Smith \and  Sally Johnson \and Uma Thirugnanasampanthan} \institute{State University}  \date{February 24, 2016}  \frame{\titlepage} \end{document}


This question is a follow up question to  Definition 1. A non-compact Hausdorff topological space X is called almost compact if its Stone-Cech compactification coincides with its one point compactification. The only two examples of almost compact spaces I know are from the book . On the page 17 authors say that $[0,\omega_1)$ is almost compact and Mrowka-Isbell space $\Psi(\mathcal{A})$ is almost compact for some specific maximal almost disjoint family $\mathcal{A}\subset 2^\omega$. I would like to know more on almost compact spaces, but I found almost nothing on this subject. Questions:  What are other examples of almost compact spaces? Is true that $\beta\mathbb{N}\setminus\{p\}$ is almost compact for $p\in\beta\mathbb{N}\setminus\mathbb{N}$ ? Is it true that $X\setminus \{p\}$ is almost compact whenever $X$ is extremally disconnected and $p\in X$.


Let's play a small game first:  Illustration: Has the bounty been awarded?  Here are two images cut from two screenshots. One of them has an active bounty, while the other has an awarded bounty. Make your guess base on the images!     Haha I bet you can't, so here's the answer:       and the original (uncut) screenshot:      and the original (uncut) screenshot:     Actually they look identical! Shouldn't that be changed and make unawarded bounty (the "award" button) look lighter like the grey tick for "accept this answer" button do?


Hovering over deleted messages shouldn't highlight what it replied to

I hovered the mouse over the deleted message by tripleee, whose content used to be  :46713033 still up   Well now, message 46713033 is highlighted. But it shouldn't. The message that refers to it is deleted already.  I've confirmed that any user (including anonymous users - unlogged-in) can see the highlights, after page refresh.  Note that this is not a duplicate of , as that one is a bug report that has been considered by design, this is a feature request asking that the design be changed.


Given some category ${\mathcal C}$, then the opposite category will consist of the same objects with the morphisms "turned around."  Given $f:A\rightarrow B$, for $A,B$ objects of ${\mathcal C}$, then in general do we have a canonical $f^{op}:B\rightarrow A$ which is induced by $f$?    Slight Motivation:  This is something that's just been bothering me recently, and I feel like I am thinking about this concept incorrectly.  To make this question slightly less vague, if we had, say, the category of rings and we had the mapping $f:{\mathbb Z}\rightarrow {\mathbb Z}/2{\mathbb Z}$ by $f$ sends even numbers to 0 and odd numbers to 1, then what is the corresponding map in the opposite category, $f^{op}:{\mathbb Z}/2{\mathbb Z}\rightarrow {\mathbb Z}$ induced by $f$?  Also, I always see this $f^{op}$ that I've mentioned just written as $f$; is this shorthand, or is there something deeper there?


I'm looking for a precise piece of information in a database which I have no knowledge about. The database is on a separate machine, but I can log into it, and launch a psql command line, with administrator rights. It's a third-party product, and they are slow to answer questions. I know the data is inside that database, so I want to do a little bit of reverse-engineering. Given a table name, is it possible to get a list of the names of the columns in that table? For example, in SQL Server, it's possible to dump a table into a reusable CREATE statement, which textually lists all the columns the table is composed of.


Short story - spaceship pilot needs second personality to fly ship

Possibly from the 1970s or 1980s. Humans can't pilot a spaceship without going insane, so spaceship pilots have a secondary personality that kicks in as they walk through the cockpit door. The pilot can't remember anything that happens after that, until they go back through the door and their own personality comes back. The pilot later finds out that he has a third personality which takes over in an emergency.


Passing a Generic Type Using Fully Qualified Class Name And Reflection

I get the 'objType' is a variable but is used like a type compiler error when I try the following code:  Type objType = Type.GetType(objFullyQualifiedName); object jsonObj= JsonConvert.DeserializeObject<objType> (jsonString);   How can I pass the type I obtain from the fully qualified class name to the DeserializeObject method?


How to get the key with biggest number(?) in a nested-dictionary? (Python)

Let's say I have a nested dictionary that looks like:  { 'word1':     {'VERB': 129}     {'NOUN': 151}     {'DET': 26426} ... }   I want to get DET from the nested dict since it has the highest frequency. I tried to do it by iterating the dict[word1] but it seemed every inefficient. Is there an easy/simple way to do this?


i have 16 gb flash drive and whenever i try to format it, the error "windows was not able to complete the format". so i tried formatting it via disk management but it still didn't work and when i tried using diskpart it encounters an error saying "the request could not be performed because of an I/O device error" and yes i did run as admin when using the cmd. Any tips on fixing this thing ?


"Down for" something vs. "Up for" something?

Is there any difference between someone saying they're "down for" something as opposed to being "up for" something?  For example:     I'm totally up for ice cream tonight!   vs.     I'm totally down for ice cream tonight!


What's the best way to store PHP class properties?

Duplicate of:    For some time I've been having this discussion with a co-worker on how should you store attributes within a PHP class.  So which one do you think it should be used. Something like this:   Class test{     public $attr1;     public $attr2;     ..............      public function __construct(){         $this->attr1 = val;           $this->attr1 = val;         ...................        } }   Versus:  Class test{     public $data;      public function __construct(){         $this->data['attr1'] = val;         $this->data['attr2'] = val;         ..........................            } }   This is important when you have objects with many attributes that have to be stored and retrieved within often.  Also important when dealing with objects with many attributes, do you use getters and setters for each attribute or rather one method to set all and one method to get all ?


Why do electrons around nucleus radiate light according to classical physics

As I navigate through physics stackexchange, I noticed .  Electrons radiate light when revolving around nucleus? Why is it so obvious?  Note that I do not know anything about quantum mechanics - and I just want classical stories.


How to access a variable from another script in Unity c#

I need to access a variable from another script in Unity, but I can't figure it out. Script:  public class move : MonoBehaviour { public float speed; // Use this for initialization void Start () {  }  // Update is called once per frame void Update () {     transform.position += Vector3.left * Time.deltaTime * speed; }  }   I want to access the variable speed in another script, but I can't. Any help will be appreciated :)


Why isn't kpathsea picking up my local version of a file?

I've just made a minor alteration to a file from a TeX package.  I copied it into my local texmf tree and made the change there.  When I tried kpsewhich <filename> to test that it was finding my local version, it returned the original one and not the new one.  In actual fact, the original file was from my local texmf tree already so I renamed the old one something simple.  Now kpsewhich <filename> returned the system version of the file.  To check that the file was there, I tried kpsewhich -all <filename> and got the correct two versions of the file: my modified one and the system one (in that order).  If I try this with another file that I know exists in both places, then kpsewhich <filename> returns my local file.  Here's the various invocations and their results:  ~% kpsewhich pgfsys-pdftex.def /usr/local/texlive/2012/texmf-dist/tex/generic/pgf/systemlayer/pgfsys-pdftex.def ~% kpsewhich -all pgfsys-pdftex.def  /Users/stacey/Library/texmf/tex/latex/bzr/pgfsys-pdftex.def /usr/local/texlive/2012/texmf-dist/tex/generic/pgf/systemlayer/pgfsys-pdftex.def ~% kpsewhich tqft.sty               /Users/stacey/Library/texmf/tex/latex/bzr/tqft.sty ~% kpsewhich -all tqft.sty /Users/stacey/Library/texmf/tex/latex/bzr/tqft.sty /usr/local/texlive/2012/texmf-dist/tex/latex/tqft/tqft.sty   Is it something special about the .def extension?  Is there some command that I forgot to run?  Are there some other options to kpsewhich that will help me debug this?


Show that $y=x^{k}$ with $gcd(k,n)=1$ is a generator of $G$.

Could someone please verify whether my solution is okay?      Let $G$ be a finite cyclic group with $|G|=n$ and generator $x$. If $y=x^{k}$ and $gcd(k,n)=1$, then show that $y$ is a generator of $G$.   Let $y=x^{k}$ with $gcd(k,n)=1$. Then $|\langle y\rangle|=|y|=\frac{n}{gcd(k,n)}=\frac{n}{1}=n$. Then $G=\langle y\rangle$.


How do I get a pet shop on the sims free play. Because I tried buying it some where in the town but all I get is houses and work places.


Why is my address bar in safari doing this?

Randomly my safari just started doing this:   I tried recreating the com.apple.Safari.plist file but nothing changed. Whats up with this?


Let $X$ be a connected metric space, let $A \subseteq X$ be a connected set. Let $\mathcal{C}$ be a connected component of $X-A$. Show that $X-\mathcal{C}$ is connected.   Ok, so Im been dealing with this exercise for a while, and I am completely stucked.   I've managed the following (which I don't know if it is even true.)  Since $X-A \subseteq \mathcal{C}$ we have that $X-\mathcal{C} \subseteq A$. Now since $A$ is a connected set, and $\mathcal{C}$ is closed (since it's a connected component), one way to prove the statement is to see that $X-\mathcal{C}$ is closed in $A$ because in this case, $X-\mathcal{C}$ would be open and closed in $A$, connected which implies $A=X-\mathcal{C}$ and therefore $X-\mathcal{C}$ is connected.   However Im not being able to show that $X-\mathcal{C}$ is closed in $A$, (im not sure if in fact it is).   If not, If its possible, I would like a hint, not a complete solution!


Induction proof that $\sum_{j=n}^{2n-1} (2j + 1) = 3n^2$ - what happened?

So I have the general summation formula that I was to prove using mathemathical induction on a Calculus level.  For all $n = {1,2,3,...}$ we have:  $$\sum_{j=n}^{2n-1} (2j + 1) = 3n^2$$  In the answer, the one completing the proof gets this, on the $n=k+1$:  $$\sum_{j=(k+1)}^{2(k+1)-1} (2j + 1) = \sum_{j=k}^{2k-1} (2j + 1) - (2k+1) + (4k+1) + (4k+3)$$  $$= 3k^2 + 6k + 3 = 3(k+1)^2$$  Can anyone explain how on earth this was done? When I tried, I was unable to factorize - I tried by adding the $(2(k+1)+1)$ to the $S_n$ formula and thereby confirm it, but I couldn't do it...


Python - Setting Values within an Array of Array

I have the function below:  def set_x(self,index1, index2, val):     print('Setting X with index1 : ' + str(index1) + ' , index2 : ' + str(index2) + ' with value : ' + str(val))     print(self.x)     self.x[index1][index2] = val     print(self.x)     print('hehe')   Say for example I called it, with parameters, 0, 1 and 785. The actual ouput is below:  Setting X with index1 : 0 , index2 : 1 with value : 785 [[305, 665], [305, 665]] [[305, 785], [305, 785]]   Im expecting it to be:  Setting X with index1 : 0 , index2 : 1 with value : 785 [[305, 665], [305, 665]] [[305,785],[305,665]]   It's like my assignment is setting all the second element of all the array within the array. How will I fix it?


If $\sigma\in S_n$ is of length $n$, then $\sigma$ generates its centralizer

Let $S_n$ and $C_G(\sigma)$ denote the  and the  of $\sigma\in S_n$, respectively. I want to show: If $\sigma$ is of length $n$, then $C_G(\sigma)=\langle\sigma\rangle$, i.e. $\sigma$ generates $C_G(\sigma)$


If a normal subgroup $N$ of order $p$($p$ prime) is contained in a group $G$ of order $p^n$,then $N$ is in the center of $G$.   I want to use induction to prove this:  It is trivial when $G=p(n=1)$, assume $G=p^n$, $N$ is a normal subgroup in $G$ with order $p$. Since $G$ is p-subgroup, $G$ has a normal subgroup $H$ with order $p^{n-1}$,according to assumption, $N \subset C(H)$. But I don't know how to go on, is $C(H)=C(G)$?Can induction work in this case?


After watching Divergent and talking with some friends, I've linked it with another film, which I'm trying to recall. I clearly remember white rooms, lots of lights, some sort of tests (and there was a entry test, or meeting with doctors(?) maybe). The tests might be only for women and the main character might have blonde hair. I remember she was told by one of the testers or competitors that she isn't "compatible" for this programme and she would fail the real tests or that she wouldn't make something (the longer I think about it, it might be for some sort of space programme). I am certain that this film was made before 2014, maybe even 2010, but after 2000. This lab had futuristic glass screens.  I vaguely remember blue suits and that the tests were more mental than physical (if any).  Any clues? I would love to watch that again.


Can anybody solve the following problem with javascript  var i = 10152233307863175; alert(i.toString());   alert shows value 10152233307863176. Any solution. Problem is when I get json object on client and when string is converted to json it contains wrong values.


How do I split subjacent lines and merge attributes in QGIS

I have 2 vector line layers. They are subjacent, so one of them is exactly on top of the other but the features have different nodes and attributes.   My goal is to create labels and descriptions for the features which contain attributes from both. The idea is to create a third layer which is split up like the two existing ones and has the attributes from both.   So I want to merge both layers and the result layer should have all the nodes and all attributes.


Is there any way to set Gmail app as the default mail client in iPhone and iPad?

I want to be able to one-click email links from apps such as Twitter, Safari and Instapaper. Is this possible if I'm using Gmail and not Apple's Mail app?  Do I have to set Gmail as the default mail client? Is this possible?


How can I post an answer with many links, or earn that privilege without being allowed to post such quality answers?

I cannot submit my answer to    I am aware that my reputation is low. Also, spam posting is discouraged.  My answer includes a compilation of Android graphing libraries, with links, so fellow hackers do not have to Google each and every one of them.  I believe this answer is superior to the current answers, because it is updated to 03/2012 and covers more than 90% of all Android charting libraries.  How can I post the answer, or how can I increase my reputation without being able to post quality answers? The old school websites included just a bunch of links to other places, I am an old man!  Alternative solution would be to blog it, and just post a link to my blog, which is not optimal.


What is the letter in red box. How to write it in LATEX? Thank all!


Special characters in S type colum from siunitx package

I'm doing a table with a S column type from siunitx package (I've recently started to use this package). I usually represented empty values in cells using the character ---, however, S type colum doesn't alingn correctly this symbol. Hoy can I put this symbol in the center of the column?  \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{booktabs} \usepackage{siunitx} \begin{document} \begin{table}[htb] \centering \caption{Example Table} \begin{tabular}{cS[table-format=2.3]} \midrule \textbf{Parameter} & \textbf{Value}\\ \midrule Parameter 1 & 12.56\\ Parameter 2 & 9.038\\ Parameter 3 & 12.6\\ Parameter 4 & 0.732\\ Parameter 5 & \text{---}\\ \midrule \end{tabular} \end{table} \end{document}


Find the circle circumscribing a triangle related to a parabola

Consider the following lines   $x-y-1=0$ $x+y-5=0$ $y=4$   The line 1 is the axis of the parabola, the line 2 is the tangent at the vertex to the same parabola, and the line 3 is another tangent to the same parabola at some point $P$.  Now let a circle $C$ circumscribe the triangle formed by tangent and normal at the point $P$ and the axis of the parabola.  Then how can I find the equation of the circle?  I found that the vertex of this parabola is $(3,2)$. Don't know how to proceed further.


What is the probability that the randomly selected onto function maps prime numbers to prime numbers?

Let $X=\{1,2,3,...,25\}$. If a student selects a function randomly from the set of all functions from $X$ onto $X$,then what is the probability that the selected function maps prime numbers to prime numbers? please reply in factorial format no need to open the factorials


I am confused in the following questions:  If i were/was a rich man.   I was rich.  If i were a rich man sounds correct to me but were is used after plural  Please answer this question.


I have a problem with an object I have created that looks something like this:  var myObject = {      AddChildRowEvents: function(row, p2) {         if(document.attachEvent) {             row.attachEvent('onclick', function(){this.DoSomething();});         } else {             row.addEventListener('click', function(){this.DoSomething();}, false);         }     },      DoSomething: function() {         this.SomethingElse(); //<-- Error here, object 'this' does not support this method.     } }   The problem is that when I am inside the 'DoSomething' function, 'this' does not refer to 'myObject' what am I doing wrong?


I have written two equations for the report of my Master thesis:  $NLL_{k} = - \sum_{j=1}^n \ln(pdf(PD_{k}^{i},skill_{i}^{j}))$  $person_{k}(interest) = \dfrac{1}{n} \sum_{p=1}^n \dfrac{person_{k}(task_{p})}{\alpha_{k}^{i}}$       In math mode everything is italic (except \ln). Is this ok or how should this be correctly formated?   Second, let's say I would like to use part of the equation in text. For example, I would like to write "It is visible that $person_{k}$ has very high interest.". Should $person_{k}$ in this case be in italic?


I'm currently taking a nuclear physics class, and of course, earlier courses taught me how electrons "moves" in orbits around the nucleus. In that case, it is their wave function that is spread out in s, p, d and so on, orbitals, and therefore can exist in those regions.  But now, after having this course a while, is it really just the same for the nucleus ? For electrons each electron can be in a different state, we know that, but is it the same with a nucleus ? Is the individual protons and neutrons in different states, just as electrons, or is it only the whole nucleus that are in some specific state. And the last thing: Is the orbitals for the nucleus, pretty much the same as for electrons, with s begins spherical, and p being the "flower" and so on.  I don't know why I'm so confused. But I've just always seen the nucleus as a rigid entity that does not behave like an electron would do. But I'm probably mistaken, or...?


What are the moderation tools available to 10,000+ reputation users?

The site FAQ refers to moderation tools, available to users who've earned more than 10,000 reputation:      10,000   Delete closed questions, access to moderation tools   What are these tools exactly?


Should my first trip be to the country which issued my Schengen Visa?

In case, if I get a multiple-entry Schengen visa in one of the embassies in Ukraine, Kyiv - should my first trip be to the country which issued the visa?  Any there any requirements of this sort? Does this condition vary depending on embassy which issued the visa?  What are the possible consequences on not visiting that country first? Does it somehow depend on country where the embassy is (i.e. non-Schengen and not EU members)?


Why does English need an article before any noun?

In my native language, we can say:     I have dog   Because I don't want to say a dog (one dog, how many dogs) or the dog (that dog, the listener don't care which dog).  p.s. after 3 years later, I have to say, why I ask this question, is I still cannot grasp how to use the right 'article word'. sometimes, a noun will use an article, sometimes, a noun could not(or omit) the article word before it. there aren't a formula for this. So, I have to remember all the time! I feel so frustrate


How to automatically reboot my server every 4 hours?

I need help with my dedicated Ubuntu server. How can I reboot my server every 4 hours?


Hartshorne's Exercise II.4.5(c). A third time.

It seems that I am the third one to pose this question. I think the proof in  has a gap. He have not shown the lifting he constructed is compatible with $\mathrm{Spec}k(p) \rightarrow X$. And the proof given in  have not shown why Z satisfies the property as described in the exercise, which in my opinion is the most key part. Any way to fill the gap is admired.


What is the variance of n standard normal distributions?

I have $X_1, X_2, .., X_n$ i.i.d. standard normal random variables. If $\overline{X}_n$: $$\overline{X}_n = \frac{X_1 + X_2 + .. + X_n}{n}$$ What is $Var(\overline{X}_n)$ in terms of n? The solution steps is: (1) As $X_1 + X_2 + .. + X_n \sim N(0,n)$ (2) We multiply by $1/n$ we get $N(0,1/n)$ (3) as scaling a random variable with a constant $a$ scales its variance by $a^2$. Therefore $\overline{X}_n$ is a gaussian random variable with mean $0$ and variance $1/n$ My problems:  Can you just multiply or add to a distribution? For example, is it right to do: $$N(0,1) * k = N(0,k)$$  $$or$$ $$N(0,1) + r = N(r,1+r)$$ Or it depends on the distribution? When can you and when you can't do this kind of computation with a distribution?  I understand that $Var(X*a) = a^2*Var(X)$. But I don't understand how this apply to (3).  I tried to do the next integral with wolframalpha, but it tells me "standard computation time exceeded" so I guess it's a fairly complex integral: $$ Var(\overline{X}_n)$$ $$= E[\overline{X}_n^2] - (E[\overline{X}_n])^2$$ $$= \displaystyle \int_{-\infty}^{\infty} x^2*\frac{1}{\sigma\sqrt{2\pi}}    \exp\left( -\frac{1}{2}\left(\frac{x-\mu}{\sigma}\right)^{\!2}\,\right) dx - \left( \int_{-\infty}^{\infty} x*\frac{1}{\sigma\sqrt{2\pi}}    \exp\left( -\frac{1}{2}\left(\frac{x-\mu}{\sigma}\right)^{\!2}\,\right)dx \right)^2$$


How to transform a dataset so that it has a given mean and standard deviation?


UFW Allows 22 for IPv4 and IPv6 but SSH Disconnects When Enabling

sudo ufw disable followed by sudo ufw enable kicks me out of SSH  DMESG reports  [UFW BLOCK] IN=eth0 OUT= MAC=30:........ SRC=192.168.1.me DST=192.168.1.server LEN=52 TOS=0x00 PREC=0x00 TTL=128 ID=15776 DF PROTO=TCP SPT=55640 DPT=22 WINDOW=253 RES=0x00 ACK URGP=0  I can log back in without having to change rules via the console (UFW still enabled).  This started after upgrading Xenial (16.04) from kernel 4.4 to 4.15 (HWE). Upgrading to 18.04.1 did not solve the issue.  Versions:   iptables v1.6.1 ufw 0.35 4.15.0-29-generic #31-Ubuntu Ubuntu 18.04.1 LTS   UFW status verbose is (some rules were omitted, but they are all ALLOW)  Logging: on (low) Default: deny (incoming), allow (outgoing), disabled (routed) New profiles: skip  To                         Action      From --                         ------      ---- 22                         ALLOW IN    Anywhere 22 (v6)                    ALLOW IN    Anywhere (v6)   Why is this happening, or at least, how to revert to the expected behavior?  I looked at , and I am not sure it applies, but here's /etc/ufw/before.rules  # # rules.before # # Rules that should be run before the ufw command line added rules. Custom # rules should be added to one of these chains: #   ufw-before-input #   ufw-before-output #   ufw-before-forward #  # Don't delete these required lines, otherwise there will be errors *filter :ufw-before-input - [0:0] :ufw-before-output - [0:0] :ufw-before-forward - [0:0] :ufw-not-local - [0:0] # End required lines   # allow all on loopback -A ufw-before-input -i lo -j ACCEPT -A ufw-before-output -o lo -j ACCEPT  # quickly process packets for which we already have a connection -A ufw-before-input -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT -A ufw-before-output -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT -A ufw-before-forward -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT  # drop INVALID packets (logs these in loglevel medium and higher) -A ufw-before-input -m conntrack --ctstate INVALID -j ufw-logging-deny -A ufw-before-input -m conntrack --ctstate INVALID -j DROP  # ok icmp codes for INPUT -A ufw-before-input -p icmp --icmp-type destination-unreachable -j ACCEPT -A ufw-before-input -p icmp --icmp-type source-quench -j ACCEPT -A ufw-before-input -p icmp --icmp-type time-exceeded -j ACCEPT -A ufw-before-input -p icmp --icmp-type parameter-problem -j ACCEPT -A ufw-before-input -p icmp --icmp-type echo-request -j ACCEPT  # ok icmp code for FORWARD -A ufw-before-forward -p icmp --icmp-type destination-unreachable -j ACCEPT -A ufw-before-forward -p icmp --icmp-type source-quench -j ACCEPT -A ufw-before-forward -p icmp --icmp-type time-exceeded -j ACCEPT -A ufw-before-forward -p icmp --icmp-type parameter-problem -j ACCEPT -A ufw-before-forward -p icmp --icmp-type echo-request -j ACCEPT  # allow dhcp client to work -A ufw-before-input -p udp --sport 67 --dport 68 -j ACCEPT  # # ufw-not-local # -A ufw-before-input -j ufw-not-local  # if LOCAL, RETURN -A ufw-not-local -m addrtype --dst-type LOCAL -j RETURN  # if MULTICAST, RETURN -A ufw-not-local -m addrtype --dst-type MULTICAST -j RETURN  # if BROADCAST, RETURN -A ufw-not-local -m addrtype --dst-type BROADCAST -j RETURN  # all other non-local packets are dropped -A ufw-not-local -m limit --limit 3/min --limit-burst 10 -j ufw-logging-deny -A ufw-not-local -j DROP  # allow MULTICAST mDNS for service discovery (be sure the MULTICAST line above # is uncommented) -A ufw-before-input -p udp -d 224.0.0.251 --dport 5353 -j ACCEPT  # allow MULTICAST UPnP for service discovery (be sure the MULTICAST line above # is uncommented) -A ufw-before-input -p udp -d 239.255.255.250 --dport 1900 -j ACCEPT  # don't delete the 'COMMIT' line or these rules won't be processed COMMIT   PS: I didn't expect this to "fix" the issue but just for reference I changed the port SSHD listens on (and the corresponding rule) and the problem persists.


The Problem:  Let $X, Y, Z$ be sets and $f: X \to Y, g:Y \to Z$ be functions.  (a) Show that if $g \circ f$ is injective, then so is $f$.  (b) If $g \circ f$ is surjective, must $g$ be surjective?  Where I Am:  So, I really have trouble with these, for some reason. I can draw pictures and make sense of the problems, but writing down proofs is very difficult for me.   Basically, for (a), I ended up with some complicated statement involving an implication implying another implication and then tried to derive a contradiction. It just got so convoluted that I couldn't make sense of it anymore, and I know there's a quick, elegant way to show it.  For (b), I know that $g$ need not be surjective. Once again, though, proving it directly from definitions has given me a bit of a headache.  Any help here would be appreciated. Thanks in advance.  The Proofs!  Ok, I did it. Thanks for the help, everyone! Let me know if there's anything wrong with these proofs, or if they could bet any better.  (a) Suppose $f$ is not injective. Then $$ f(x_1)=f(x_2) \implies x_1 \ne x_2 \text{        }(*).$$ Let $f(x_1)=y_0=f(x_2)$ and let $g(y_0)=z_0$. Then $$ (g \circ f)(x_1) = (g \circ f)(x_2) = g(y_0) = z_0. $$ Since $g \circ f$ is injective, $$ (g \circ f)(x_1) = (g \circ f_2) \implies x_1 = x_2. $$ However, this contradicts $(*)$. Therefore, $f$ must be injective.  (b) Suppose $g$ is not surjective. Then  $$ \forall y \in Y, \exists z \in Z \text{ such that } g(y) \ne z \text{         }(**).$$  Since, $g \circ f$ is surjective,  $$ \forall z \in Z, \exists x \in X \text{ such that } g(f(x)) = z \text{       } (***). $$  Let $f(x) = y$. Then,  $$ g(f(x)) = g(y) = z. $$  Because of $(***)$, this is true for all $z \in Z$, which contradicts $(**)$. Therefore, $g$ must be surjective.


There is always a zero at the end of my algorithm

There is my source code.  \documentclass[conference]{IEEEtran} \usepackage{algorithm}  \usepackage{algorithmic}  %\usepackage{algpseudocode}   \usepackage[algcompatible]{algpseudocode} \usepackage{amsmath}  \begin{document} \begin{algorithm}[!b]       \caption{algorithm 1}       \label{alg}       \begin{algorithmic}[1]         \Require           INFORMATION         \Ensure           Model;         \STATE CALCULATE         \STATE END         \RETURN MODEL     \end{algorithmic}   \end{algorithm}  \end{document}   When I compile it, it looks like this. No matter what I modified the content, the zero is always there.


Hot network posts not shown in MathOverflow

I've been exploring some of the Hot Network Questions and I noticed that it doesn't show on   I suspect it's a bug


I'm using jQuery plugin with $.ajax() functions. There is some way to upload a file with POST and do some function when is it done? here my code.... what i do wrong?  $.ajax({                 url: "../index.php?rqst=upload",                 type: 'POST',                 data:{                     'fileToUpload': $("#fileToUpload").val()                  },                 success: function(data) {                     alert("file upload");                 }});    and this is the file input:  <input class="form-control" type="text" name="fileToUpload" id="fileToUpload">   and there is a way to display a gif during the load??? thanks in advance


Connection Refused for Apache 2.4 Virtual Host

I have Apache 2.4 running on Mac OS X. apachectl configtest give me: Syntax OK.  I have two virtual hosts set up, one called localhost, one called test.dev.  <VirtualHost *:80>     DocumentRoot "/Users/psychomachine/Development/_localhost"     ServerName localhost     ServerAlias www.localhost     <Directory />         Require all granted     </Directory> </VirtualHost>  <VirtualHost *:80>     DocumentRoot "/Users/psychomachine/Development/test"     ServerName test.dev     ServerAlias www.test.dev     <Directory />         Require all granted     </Directory> </VirtualHost>   localhost just works:  ↪ curl -I -L localhost                                                                                15:51:08 HTTP/1.1 200 OK Date: Tue, 08 Dec 2015 14:51:17 GMT Server: Apache/2.4.16 (Unix) Last-Modified: Tue, 08 Dec 2015 08:52:04 GMT ETag: "c-5265f1673f500" Accept-Ranges: bytes Content-Length: 12 Content-Type: text/html   whereas test.dev doesn't:  ↪ curl -I -L test.dev                                                                                15:51:01 curl: (7) Failed to connect to test.dev port 80: Connection refused   My hosts file has an entry for test.dev, which is why I can ping test.dev and hear back from 127.0.0.1.  ↪ ping test.dev                                                                                15:53:39 PING test.dev (127.0.0.1): 56 data bytes 64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.069 ms 64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.096 ms 64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.111 ms ^C --- test.dev ping statistics --- 3 packets transmitted, 3 packets received, 0.0% packet loss round-trip min/avg/max/stddev = 0.069/0.092/0.111/0.017 ms   I've spent hours looking at this, but I still don't understand how it is possible to ping test.dev but still get connection refused. Apache is listening on port 80, and I am not getting a page forbidden kind of error. There is nothing in Apache logs for test.dev, because the request for test.dev never makes it to Apache.  I am missing a crucial element of the puzzle — and I hope somebody will be able to point me in the right direction.  Many thanks in advance.  Edit: As I said, Apache is listening on 80:  sudo lsof -i ':80'                                                                                16:54:46 COMMAND  PID   USER   FD   TYPE             DEVICE SIZE/OFF NODE NAME httpd   2464   root    5u  IPv6 0x8883a2a43af0ca7f      0t0  TCP *:http (LISTEN) httpd   2466 daemon    5u  IPv6 0x8883a2a43af0ca7f      0t0  TCP *:http (LISTEN) httpd   2467 daemon    5u  IPv6 0x8883a2a43af0ca7f      0t0  TCP *:http (LISTEN) httpd   2468 daemon    5u  IPv6 0x8883a2a43af0ca7f      0t0  TCP *:http (LISTEN) httpd   2469 daemon    5u  IPv6 0x8883a2a43af0ca7f      0t0  TCP *:http (LISTEN) httpd   2470 daemon    5u  IPv6 0x8883a2a43af0ca7f      0t0  TCP *:http (LISTEN)   Additional info   scutil -r test.dev                                                    08:25:59 Reachable   telnet test.dev                                                       08:26:17 Trying 127.0.0.1... telnet: connect to address 127.0.0.1: Connection refused telnet: Unable to connect to remote host  telnet test.dev 80                                                    08:26:43 Trying 127.0.0.1... telnet: connect to address 127.0.0.1: Connection refused telnet: Unable to connect to remote host   127.0.0.1 test.dev is in /etc/hosts and Listen *:80 is in apache's conf.


Why would a slug thrower be more effective against a lightsaber/Jedi than a blaster?

From  question about gunpowder in the Star Wars universe it is  that the shot from a  slug thrower is not completely deflectable by a lightsaber. This seems to be listed as an advantage (over blasters) against lightsabers and Jedi.     For example, during the days of the Galactic Republic, mercenaries fearing an intervention by Jedi Knights used rapid-fire slugthrowers that were impossible to completely deflect, unlike blaster bolts.   This doesn't make much sense though. A slug, while maybe not as deflectable should be just as ineffective against a lightsaber as a blaster shot is, due to the nature of a . That is, a blade made of plasma should simply vaporize the slug, should the slug manage to penetrate the containment field.     The weapon consisted of a blade of pure plasma emitted from the hilt and suspended in a force containment field. The field contained the immense heat of the plasma, protecting the wielder, and allowed the blade to keep its shape.   While a slug would seem to be more accurate than a blaster bolt (at least when used by a skilled marksman), I can't imagine that the slug would be faster than a bolt. Or if it is faster I wouldn't imagine it would be so fast that a Jedi would be unable to react with enough speed to block it, either with their saber or with the force. So what is the implied advantage of a slug thrower, versus a blaster, when used against a Jedi?


I just put Ubuntu 15.04 on a flash drive using pendrivelinux, and when attempting to install it on my computer, it asks for a username and password.  What is the default username and password?  I haven't been able to find it anywhere on the web.  Thanks!


How to explain the following definition of $\lim\sup s_n$ intuitively?  let $\lim\sup s_n$=$l$  The definition is ($\forall t<l,\forall N,\exists n>N, s_n>t$) and ($\forall t>l,\exists N,\forall n>N, s_n<t$)  For the first one, if we have a increasing sequence from very negative to $0$, how is it still true. i.e. $\{-1, -0.5, ... , -0.00001,...\}$, here $\lim\sup s_n=0$. let $t=-1,$ so $t<0$, but not all terms are greater than $t$.  For the second one, I am also confused. I think It would be great if someone could show some valid examples.  Also when we prove the such limit exists, is it necessary to show both characteristics?


Is it still possible to set your username in offline mode in Minecraft 1.6 and later?

How can I change my username in Minecraft 1.6 or later? , but that method doesn't work anymore since the way the game launches has completely changed. Is it still possible to set your username using a command, script, or anything else?  (Solutions tailored to Mac OS X specifically are appreciated.)


How can I render the output in a certain language in a Twig template?

I am trying to override the titles of the nodes on my view page for Drupal 8. As my whole website is in English, but only on one view page I need to fetch the french translation of the titles, without translating the whole interface.   For this I am overriding the views-view-field.html.twig template with custom views-view-field--my-view--title.html.twig.  In the preprocess function in MYTHEME.theme I am sending the language = 'fr':  function MYTHEME_preprocess_views_view_field__MYVIEW__title(&$variables) {   $variables['language'] = 'fr';   $variables['#cache']['contexts'][] = 'route'; }   The Twig template receives the language, but still displays titles in English. This is how my Twig template currently looks like. How can I say to fetch output in French?  {{ output }}   UPDATE:   thanks to Kint sub-module I could get all possible . Now I need to fetch the right translation.   How can I reach french translation? I have tried already few options:   {{ row._entity.title.value.translation('fr') }} {{ row._entity.title.value.fr }} {{ row._entity.values.title.translation('fr') }} {{ row._entity.values.title.fr }}   None of them is working.  As I can see the values is an array, then it should be some special may accesing the elements inside


How to identify and highlight features programmatically?

In QGIS there is an option to select features of a selected layer using a "identify feature" tool. Then the feature get highlighted in a different color and attribute dialog is poping up. like that i want to highlight the multiple features programatically.  Ex: I have a set of vector layers which consists of number of roads as features. I need to select few roads by looking at its attributes and highlight.  Is there any way of achieving this using python code?


The other day i was trying to create an object by calling the default constructor of another class, and it ended up making a function declaration, Here is an example:  struct integer {     integer(){} //Default constructor. };  struct rational {     rational(integer n, integer d){} //Default constructor. };  void multiply(rational(), rational()) { //Valid syntax? Takes two function pointers.  }  rational one_half() {     return rational(integer(), integer()); //Here doesnt make a function declaration. }  int main() {       rational num(integer(), integer()); //Here makes a function declaration,                                         //instead of constructing a rational object.     multiply(one_half, one_half); //function taking two function pointers. }   Why does this happen? I know and can call the constructor like this integer::integer() but i would like to understand what's happening here and why integer() is behaving like integer(*)() in this example.


I have heard about “in/on the news”. What about “at the news”?

I know that we commonly use “on the news” or “in the news”. However, I came across a sentence which is:        They were overcome by a wave of horror at the news.       As far as I can understand is that “at” in this context is referring to a specific piece of news.   Though, is “at the news” interchangeably used with on the news, or it has a different meaning?


Pass a value and call previous, current and next values in order

I'm using PDO. I want to be able to fetch 3 values from 3 different rows using a single query. I've got a table as below.   itemID    |  Item_Name ____________________ 125       |  apple 297       |  Lychee 851       |  Mango 005       |  Orange 1009      |  Strawberry   I want to be able to send an Item_Name and sort the table by Item_Name and to be able to call the next Item_Name and the previous Item_Name. How can I do this?  e.g.:    if the $passedItem is Orange I want to output Mango and Orange and Strawberry. if the $passedItem is Mango I want to output Lychee and Mango and Orange   Using the on() operator did not work because only one Item_Name could be passed on to the query.  $sql = "SELECT Item_Name FROM itemsTable WHERE Item_Name = :passedItem" ORDER BY ASC; $stmt = $con_db->prepare($sql); $stmt->execute(array(':passedItem'=>"Orange")); $rslt = $stmt->fetchAll(PDO::FETCH_ASSOC);


I'm encountering a problem when I am trying to fill in this textbox. It just doesn't works.  This is the code of the textbox:

   And this is what I have tried:  document.getElementsByClassName("input-field")[0].value = 'lmao';


Say we've got a logistic regression model $M$ used as a classifier in a binary case. Now we take a test set $\tau=\{(x_1,y_1),...,(x_n,y_n)\}$, each test sample is assigned with $\hat{\pi}_i=P(y_i=1|x_i)$ and then, assuming naive threshold of 0.5, a prediction is made: $\hat{y}_i=\left\{\begin{matrix}1 & \hat{\pi}_i\geq 0.5\\ 0 & \hat{\pi}_i< 0.5\end{matrix}\right.$.  We can then $M$'s discuss accuracy rate as $\frac{1}{n}\sum_{i}{I\{\hat{y}_i=y_i\}}$ or maybe its certainty rate $\frac{1}{n}\sum_{i}{max(\hat{\pi}_i,1-\hat{\pi}_i)}$.  Wherever I've looked, a logistic regression classifier is assessed either by information criteria or by cross-validation, both eventually relating to the degree of fit to the train dataset.  It might look a total stranger's question, but are there are known methods using accuracy or certainty? it might be just me missing this info somehow.


How to draw a partial or incomplete box around one or more words within a paragraph

I am trying to draw a partial box around one or more words within a paragraph--that is, a rectangle with one or more sides missing. I have read the documentation for the fancybox package and it doesn't seem to be able to do what I want. I was able to produce thus ugly hack:    That's just a vertical bar | followed by a word with \overline and \uline. The trick is to connect the vertical and horizontal lines so that you have a rectangle missing just one side.  Is there an easy, general way to do this, perhaps with Tikz? I don't know enough about that package to be able to do this myself, but I'm wondering if there might be other solutions too.


Why do we remember the past but not the future?

The question is sometimes referred to as the "psychological arrow of time" (Hawking, 1985). Here the past is understood as a moment or time when the entropy of the universe was lower, and contrarily for the future. So it is generally thought that PAOT is a consequence of the thermodynamic arrow of time of our universe. If so (maybe not?), how do the two relate?   Some explanations in the literature:   Practical memory systems work in a way that the formation of new memories entails an overall increase of total entropy of the system and the environment. For example, to create a memory, i.e. to cause our neurons to orient in a particular fashion, requires energy which results in our body heating up a little bit, increasing the total entropy (Hawking, 1985 and 1994); The initialization of memory to make it reusable is an irreversible process that increases total entropy (Landauer, 1961. Wolpert, 1992). More recently, People have argued that even reversible and non-dissipative memory systems are subject to PAOT (Mlodinow and Brun, 2014). The conclusion is arrived by imposing some constraints on what a memory system should be like. Specifically, they argue that a memory should be somehow robust to small microscopic changes in states of the system it records (what they call "generality" requirement). But the smallest changes in the future state destroy the thermodynamic arrow of time between now and the future. So any memory of the future of the system "could remember only one possible configuration of that system". This fine-tuning disqualifies it as a bona fide memory.   My problem with explanation (1) is that even if it's correct, it doesn't seem to be a complete answer in itself. Yes, increase of (new) memory happens only as total entropy of the universe increases. So what? It doesn't have anything to say on the nature of that memory. Why couldn't it occasionally be a memory of the future for that matter? Explanation (2) leaves no such ambiguity. But the generality requirement seems artificial: surely a memory that records the only future configuration of the system remembers the future in a deterministic world, there being no "what ifs" regarding that state?   Of course, my understanding of the problem is only preliminary. I'd like to know whether there is not some generally accepted explanation, or any other thoughts you have on it.


Prevent SQL injunction for select statement

i am doing a project in php i want to know is my code is preventing SQL injunction    $pageid=mysql_real_escape_string($page);         $query = "SELECT * FROM distdb WHERE BANK_ID = ".$pageid;


I just installed Ubuntu 14.04 and need to install Internet Explorer. My banks require that I use it. Any help would be appreciated. I've only found very old answers online.


I'm wondering if some power of $2$ can be written in base $10$ as $2013$ followed by other digits.  Formally, does there exist $k,q,r \in \mathbb N$ such that $$2^k=2013 \cdot 10^q+r \,\,\,; \,\,\,r<10^q $$  I'm not sure if it's true or not. I would go for a 'no', but I can't prove it.  Thanks for your help.


I use the document class "book(more font sizes)", with French language. Tables appear as "Table" in the pdf. I tried \renewcommand\tablename{TABLEAU} in the preamble, but even if it does not generate an error, it does not work neither.


I'm fairly new to Blender.  I am trying to inset the roof on the top of this building...the roof is below the top of the walls. As you can see from the picture, the wall is higher than the roof with a thick border along the edge. What I need is a kind of "create inner edge (or cut) along the border" at the same distance from my existing border all the way around so I can keep the wall height and lower the plane of the roof down where it should be. Can someone tell me how to do this?


When I close the lid of my laptop, the computer shuts down immediately and won't power on again. I need to take a screwdriver and disconnect-reconnect the battery in order to make it power on.  I really want Linux to ignore the lid switch.  I already tried a lot of answers on stack overflow but none works. What I tried:   Put HandleLidSwitch=ignore in /etc/systemd/logind.conf systemd-inhibit --what=handle-lid-switch sleep 1d cat /etc/systemd/logind.conf | grep -i lid does throw nothing Put IgnoreLid=true in /etc/UPower/UPower.conf systemctl unmask sleep.target suspend.target /etc/acpi/lid.sh does not exist In gconf-editor, in apps > gnome-power-manager > buttons, set lid_ac and lid_battery to nothing   I reboot my computer after changing those config files to be sure all services are restarted.  How is this possible? What could I try next in order to make the lid switch be ignored?  I'm using Ubuntu with Cinnamon.


I was looking at the traces of a computer's mother board and noticed that some traces appear excessively long and zig-zaggy(Really couldn't think of a better term). I am wondering why the designer would have added all the extra turns. Is this just a way to fill the empty spaces? Or just this have a purpose such as increasing inductance/capacitance or for EMI? I am aware that there are probably different rules for different things, but is there a semi-generic reason for this? I can't figure out what the little "bumps" in the trace would be necessary for. It should be noted that the traces in the picture connect 2 RAM sticks to the main processor.


leading digit in css class name = not working

I was struggling with an image styling:  <img class="2logos" src="logos.png" />  .2logos {width: 166px}   Whatever I tried, it did nothing. Until I removed the digit from the class name. As soon as I named it "logos" instead of "2logos", it worked. I never noted something like this before. Where may the restriction come from? I find this very strange!


Least positive integer $\equiv 3^{18} \pmod{37}?$

To determine this for $13^{33} \pmod{64}$ is easy since $\phi(64)=32$ and $\gcd(64,33)=1$, we have $13^{\phi(64)}=13^{32}\equiv1 \pmod{64}$. This means that  $$13^{33}=13^{31}\cdot13\equiv 13 \equiv1 \pmod{64}$$  But this method don't apply to $3^{18} \pmod{37}$ since $\phi(37)=36>18.$ How can I do this?