Force my MacBook Air that uses external USB as boot drive to hibernate/suspend to disk?

There are several questions about hibernating (suspending to disk) but most are concerned with battery life and so many answers basically say just use sleep (suspend to RAM) because the battery will last better than you think. Other answers are simply out of date.  I don't want to use hibernate because of battery concerns. I want it because the SSD is dead and I use an external USB 3 hard drive as my boot drive. In other words, I have only this one drive. No working built-in drive.  It's almost as fast and I'm happy with it. But if the cable moves too much while the MacBook is in my backpack the OS will crash and anything that was in RAM is lost. I want to transport the gear with the drive separate from the computer. This requires true hibernate and not just sleep.  I've read that MacOS has several heuristics about when to suspend to disk (hibernate) rather than to RAM (sleep) and that one of those is whether any USB devices are plugged in, which for me is always.  I have sudo pmset -a hibernatemode 25 but when I put the Mac to sleep now it starts right up when pressing a key or plugging in the AC, which tells me it's not suspending.  Is there a way to really suspend my MacBook to disk, then safely remove the HD, transport everything, plug the drive back in, wake up the Mac, all without losing what I was working on at the time?  Mid-2013 11" Air / Sierra 10.12.6    Output of sudo pmset -g assertions  2017-08-20 12:10:43 +1000  Assertion status system-wide:    BackgroundTask                 0    ApplePushServiceTask           0    UserIsActive                   1    PreventUserIdleDisplaySleep    0    PreventSystemSleep             0    ExternalMedia                  1    PreventUserIdleSystemSleep     1    NetworkClientActive            0 Listed by owning process:    pid 59(powerd): [0x0000004100088000] 39:29:46 ExternalMedia named: "com.apple.powermanagement.externalmediamounted"     pid 251(mds_stores): [0x0001272e000ba305] 00:04:18 BackgroundTask named: "com.apple.metadata.mds_stores.power"     pid 114(hidd): [0x000100dd0009997a] 03:36:53 UserIsActive named: "com.apple.iohideventsystem.queue.tickle.4294967962.3"      Timeout will fire in 110 secs Action=TimeoutActionRelease    pid 72(mds): [0x000126ae000ba2d1] 00:06:26 BackgroundTask named: "com.apple.metadata.mds.power"     pid 57(configd): [0x000122640007a186] 00:24:44 DenySystemSleep named: "InternetSharingPreferencePlugin"     pid 193(coreaudiod): [0x000122260001889a] 00:25:46 PreventUserIdleSystemSleep named: "com.apple.audio.AppleHDAEngineOutput:1B,0,1,1:0.context.preventuseridlesleep"      Created for PID: 438.  Kernel Assertions: 0x4=USB    id=503  level=255 0x4=USB mod=1/1/70, 10:00 am description=com.apple.usb.externaldevice.14500000 owner=BUP Slim Mac SL Idle sleep preventers: IODisplayWrangler


I am a new user of Ubuntu. By mistake changed the /var folder permission using chmod -R 777 /var  and I  can not use sudo command now.  Thanks


2 points of same potential in a single circuit

Can we just say that if between 2 points in some given circuit, there's no load, then the potential at those 2 points are same?


scope of Javascript vars in nested loops

I thought declaring something with "var" made it local to its scope.  Why, then, does this code seem to have not two distinct variables named "len", but just one?  for (var i=0, len=3; i<len; i++) {     for (var j=0, len=1; j<len; j++) {         console.log('i=' + i + ', j=' + j + ', len=' + len);     } }   In the output, instead of three lines, I get only one.  Why?  (True on Chrome and Safari, haven't checked others.)


copy|move sparse files on NTFS with Windows

How can I copy or move a sparse file from one NTFS volume to another NTFS volume while maintaining the sparseness using the native tools included with Windows?  If there is no way to do this with the native tools, then what is a free application from a trusted vendor that will do this?  Surely there is a command prompt command or powershell command that will do this.  I have a file that represents 250GiB that is taking up 20GiB of disk space and I would like it to continue only taking up 20GiB when I move it.  Thanks.


I am studying a combined bachelor of engineering (electrical) and bachelor of mathematics; I just started this year and will graduate in 2018. The reason why I am doing double degrees and not a single degree is because I love both electrical engineering and mathematics and I could not ignore any of them. So with this in mind, I am thinking of doing two PhDs when I graduate (one in electrical engineering and one in mathematics). Is this a good path or I should concentrate on only one of them?


For the need of more accuracy in my adc value, I have to average the adc value for particular time, what are the types of techniques handled in the averaging Can anyone help me with the example C programs for different types of averaging techniques PIC 16f877A.


Does code allow reducing wire size in a circuit?

I am running  12/2 from breaker to switch then 14/3 to garbage disposal and dishwasher but realized we have the new codes to think about and wasn't sure if this is code compliant. Because my coworker mentioned what if someone plugged in an under cabinet instant hot water heater to dishwasher plug instead?


In what physical situation would this expectation value be useful?


How do I create a player movement system in Farseer?

My group of students is helping produce a a 2D platformer. We tried making a pixel-based collision system which fell through. Now I am trying this physics engine on for size and see new ways to create and control my player. Like the obvious circle body player:    I was using a different type of player movement system like .  What system would work for a player that needs to be able to jump and move in mid-air (as in the above link), and can run up slopes like the circular body example?  I guess that the circular body can be made to do anything, but would like community input.


In retrospect, I realize that my question () is more suited for SE:Programmers. Can I ask a moderator to migrate it there? (If so, how?)  Update: sorry for the duplicated question. Here's the answer I was looking for:


will any usb extension cord work with usb3?

I know that with 1gbit ethernet 100mbit ethernet cables won't work. You have to use cables designed for 1gbit.  What about with USB3? If I have a ten year old USB extension cable (ie. one that was made well before USB3 was) will it work at USB3 speeds? Or do I need to buy a new extension cable made specifically for USB3?


Using Batch Script I want to get filename of every file in the directory one by one so that I may perform a specific operation on each of them

I want to get filename of every file with specific extension in a folder one by one ( something like foreach loop ) actually I am consuming them in a BizTalk application so being able to get it one by one is very important.


Best way to monitor and restart python script

I have a python script that run for few hours to process each record. Also, at the same time, I want to run the same script but with other arguments for other purpose.    Sometime an exception is raised and cause the script stop. Sometime the OS got restart.   So I would like to have something at the OS level to check.  Such that if the script is stop, restart the script.   What is the best approach to solve this problem?


Are "typical" black holes rotating or static?

From my (somewhat limited) understanding of GR I know that there are two different kinds of solutions that produce a black hole, some that rotate and some that do not. What I can't figure out from my reading so far is which of the two is considered "typical" (if either). That is, when we think we have detected a black hole in space, do we initially suspect that it's rotating or static?  My naive assumption would be, since they form from collapsing rotating stars, that most black holes would continue rotating after formation, increasing in speed as they decreased in volume. However, I see a lot of discussion about black holes that use Schwarzschild's equations, which describes a non-rotating object. Is this merely because those are easier to deal with and "close enough", or is it really believed that many black holes are non-rotating?


I found these step which explain how to integrate $\csc^3{x} \ dx$. I understand everything, except the step I highlighted below.  How did we go from: $$\int\frac{\csc^2 x - \csc x \cot x}{\csc x - \cot x}\,dx%$$ to  $$\int \frac{d(-\cot x + \csc x)}{-\cot x + \csc x} \quad?$$  Thank you for your time! $$ \int \csc^3 x\,dx = \int\csc^2x \csc x\,dx$$ To integrate by parts, let $dv = \csc^2x$ and $u=\csc x$. Then $v=-\cot x$ and $du = -\cot x \csc x \,dx$. Integrating by parts, we have: $$\begin{align*} \int\csc^2 x \csc x \,dx &= -\cot x \csc x - \int(-\cot x)(-\cot x\csc x\,dx)\\ &= -\cot x \csc x - \int \cot^2 x \csc x\,dx\\ &= -\cot x\csc x - \int(\csc^2x - 1)\csc x\,dx &\text{(since }\cot^2 x = \csc^2-1\text{)}\\ &= -\cot x \csc x - \int(\csc^3 x - \csc x)\,dx\\ &= -\cot x\csc x - \int\csc^3 x\,dx + \int \csc x\,dx \end{align*}$$ From $$\int \csc^3 x\,dx = -\cot x\csc x - \int\csc^3 x\,dx + \int \csc x\,dx$$ we obtain $$\begin{align*} \int\csc^3x\,dx + \int\csc^3 x\,dx &= -\cot x \csc x + \int\csc x\,dx\\ 2\int\csc^3 x\,dx &= -\cot x\csc x + \int\csc x\,dx\\ \int\csc^3x\,dx &= -\frac{1}{2}\cot x\csc x + \frac{1}{2}\int\csc x\,dx\\ &=-\frac{1}{2}\cot x\csc x + \frac{1}{2}\int\frac{\csc x(\csc x - \cot x)}{\csc x - \cot x}\,dx\\ &= -\frac{1}{2}\cot x \csc x + \frac{1}{2}\int\frac{\csc^2 x - \csc x\cot x}{\csc x - \cot x}\,dx\\ &= -\frac{1}{2}\cot x \csc x + \frac{1}{2}\int\frac{d(-\cot x+\csc x)}{-\cot x +\csc x}\\ &= -\frac{1}{2}\cot x\csc x + \frac{1}{2}\ln|\csc x - \cot x|+ C \end{align*}$$


Sound Proofing the wall between bathroom and bedroom

Is anybody able to recommend the best way to sound proof my wall which is adjoined to the bathroom.  I'm gutting out my bathroom and having it refitted which new shower, bath and etc and relocating the shower to the corner of the adjoining wall of the bedroom and exterior rear wall.  I want to minimise the sound that the shower,pipes etc would make.     What is the best product to use? Will the sound proof be resistant to water?


Python Panel Dropdownlist and Integer Button

I am trying to create a dropdownlist and a increment/decrement button in my custom UI Panel. I can't seem to find how to do this. Does anyone know how?  Here are visual Examples      Thank you in advance for your help and have a nice day! :)


What is the gravitational field inside a hollow spherical cavity embedded in a solid sphere?

Imagine a solid sphere of radius $R$. From the inside of this sphere we remove a smaller sphere of radius $r$. The sphere can be situated anywhere inside the massive sphere. How does the gravitational field in this hollow sphere look like?   I don´t mean how the field inside a hollow sphere looks like (which is obvious zero everywhere).  I thought it would look like this:  g=-4/3(pi)G(ro)r1-(-4/3(pi)G(ro)r2)=-4/3(pi)G(ro)(r1-r2)=-4/3(pi)G(ro)c  g is the acceleration ro is the (uniform) mass density r1 and r2 are the vectors from the centre of thebig sphere to a random point in the cavity and the vector from the centre of the cavity to the random point. c is the vector from the centre of the big sphere to the centre of the cavity (a constant).  So g is constant, and thus the force.


Bounded sequence with divergent Cesaro means

Is there a bounded real-valued sequence with divergent Cesaro means (i.e. not Cesaro summable)?  More specifically, is there a bounded sequence $\{w_k\}\in l^\infty$ such that $$\lim_{M\rightarrow\infty} \frac{\sum_{k=1}^M w_k}{M}$$ does not exist?  I encountered this problem while studying the limit of average payoffs criterion for ranking payoff sequences in infinitely repeated games.


Many pages with almost the same content but different in some area name keywords

If I run a car fixing business which I can offers services to every part of USA. Then If I create 1000-1500 pages (or maybe higher than this) which each page has almost the same content but only the location name in each page is unique. Is this bad for SEO? Example of pages:  Car fixing service in Alabama www.example.com/alabama Car fixing service in Alaska www.example.com/alaska Car fixing service in Arizona www.example.com/arizona Car fixing service in Delaware www.example.com/delaware Car fixing service in Georgia www.example.com/georgia and so on ............  The pages may even go deeper in to city or ever deeper like:  Car fixing service in Jefferson City www.example.com/jeffersoncity  Inside these pages the main content are 100% the same but the names of the state or city written in the content are changed according to each page target area. By doing this, is there any bad effect on SEO?. As if i finish all the state names, cities or even more deeper i might have around 1000-1500 pages with the same format.


How to force the browser to reload cached CSS and JavaScript files

I have noticed that some browsers (in particular, Firefox and ) are very zealous in using cached copies of .css and .js files, even between browser sessions. This leads to a problem when you update one of these files, but the user's browser keeps on using the cached copy. What is the most elegant way of forcing the user's browser to reload the file when it has changed? Ideally, the solution would not force the browser to reload the file on every visit to the page.  I have found  and  suggestion to be useful. It turns out there is a term for this: auto-versioning. I have posted a new answer below which is a combination of my original solution and John's suggestion. Another idea that was suggested by SCdF would be to append a bogus query string to the file. (Some Python code, to automatically use the timestamp as a bogus query string, was .) However, there is some discussion as to whether or not the browser would cache a file with a query string. (Remember, we want the browser to cache the file and use it on future visits. We only want it to fetch the file again when it has changed.)


How do I use a for loop inside a for loop? My code executes but does nothing

I am trying to implement a method within a 'Library' class that allows a member to take out an object of Book that has the Title and Author that the user specifies. It first checks to find a book that matches the title&author, and then checks to ensure the member does not already have that book on loan. Here is the code for  my method, please let me know where I am going wrong. The borrowBook and if(memberName.getBooks().contains(...) methods both work independently, however when I use them in this block of code they do not seem to execute.  public void memberBorrowBook1(Member memberName, String title2, String author2) {     //Test each book object in the library class to see if the parameters match     for(Book a:books) {         if(a.getTitle() == title2 && a.getAuthor() == author2); {             //If title and author match, check to see if the member already has a copy of this book on loan             for(Book b:memberName.getBooks()) {                 if(memberName.getBooks().contains(a)) {                     System.out.println("Member already has a copy of that book loaned out");                 //Otherwise, loan the book out to the member                 } else {                     memberName.borrowBook(a);                 }             }         }     } }


With the addition of Server Fault and the future addition of Super User, I can imagine it gets relatively hard to keep track of all that is going on without having three windows open at the same time and constantly refreshing each of your recent activity pages.  Would it be possible/feasible to create some sort of mini-site that would allow a user to keep track of their account statistics over all the sites and see the recent activity on them (new comments, answers, rep gains/losses, etc.) in one place?  All I am really looking for is almost a clone of the current Recent Activity page (the one you click on the envelope to get to) that would show the activity from all the sites (as long as you have them linked, such as with the same OpenID).   If you wanted to take it another step forward, you could take the personal profile page and modify it to allow for the inclusion of all sites at one time as well.


I currently have version 2.74. How do I update to version 2.76? I do not see any links in the UI to update my version of Blender


Let $f(r,\theta)=(r\cos\theta ,r\sin\theta)$ for $(r,\theta)$ $\in \mathbb R^2$ with $r\ne0$. then which are true statements?  $1$.$Df(r,\theta)$ is not zero for any $(r,\theta)$ with  $r\ne0$     $2$.$Df(r,\theta)=r^2I$ for any $(r,\theta)$ with  $r\ne0$   here $Df(r,\theta)$ is the matrix $$\begin{bmatrix} \cos\theta &-r \sin\theta \\ \sin\theta & r\cos\theta \end{bmatrix}$$.its determinant is $r$ which is nonzero.so $1$ true.but what about $2$?  Can anyone help me please .


How to resolve a package conflict when the problematic pkg is loaded by the class

Code excerpt:  \documentclass{l3doc} \usepackage{fvextra}   Symptom:     Package fvextra Warning: csquotes should be loaded after fvextra, to   avoid a wa rning from the lineno package on input line 37   Diagnosis:  l3doc loads csquotes (section 5.5 of the doc)  Question:  Can anything be done about it?


Determine integral range in function of 2 random variables.

X and Y are independent uniform r.vs in the common interval (0,1).   Determine where Z = X + Y.   There are 2 ranges of z: $0 < z < 1$ and $1<z<2$.  The diagrams given for both ranges to find $F_z(z)$ is given as follows.    For $1<z<2$,  $$F_z(z) = 1-P(Z>z) = 1-\int_{y=z-1}^{1}\int_{x=z-y}^{1} 1 \,dx \,dy$$  I understand the integral over x, but I don't understand how to get the integral over y, i.e. $\int_{y=z-1}^{1}$. How is the $y=z-1$ obtained?


Get CSS value even after it's been changed by JavaScript

I'm making an animation that effects a class of menu's, It slides the menu in and out the left side of the screen. But because I change the width value for another part of the app, I have to look into the css somehow,  This is what I have in CSS:   width (600px (dependant on device with))    Using Javascript I change:   Width (a relative amount) left (-width)   The left is easy, because I can just do -element.offsetWidth But the width is harder, because I don't know how much it's going to change, and I don't want to hardcode it in either.  Does anyone know a way that lets me look into the elements css, before it's changed? (as it's written in code)  What I've tried so far:   element.offsetWidth (Didn't work because it returns the current width and not the width written in the css) element.style.width (Didn't work because it returns an empty string)        NOTE:    There is a similar question , but the answer gives the current width, and I want the width that's set by the CSS (while loading the document)   Simplified code:


LaTeX Exam package: Align choices with oneparchoices

I'm a fairly new LaTeX user, so please excuse me if this is a simple newbie question.  I am using the exam package to create, well, an exam. I use both the \choices and \oneparchoices environments and I would like them to be aligned instead of the choices ones being far more indented. This MWE should illustrate my point:  \documentclass{exam}  \begin{document}  \begin{questions}     \question     Question 1     \begin{oneparchoices}        \correctchoice Answer 1        \choice Answer 2        \choice Answer 3    \end{oneparchoices}     \question    Question 2     \begin{choices}     \correctchoice Answer 1     \choice Answer 2     \choice Answer 3    \end{choices}     \end{questions}   \end{document}     I'm sure the more experienced users can solve this easily, but I'm stuck.


An elementary problem in Group Theory: the unique noncyclic group of order 4

Following the advice given in , I have started to study Group Theory from the very basics. My reference text is Abstract Algebra by Dummit and Foote. While going through the exercises (page 24) I found one problem which required more effort than others:  Assume $G = \{1, a, b, c\}$ is a group of order $4$ with identity $1$. Also assume that $G$ has no elements of order $4$. Use the cancellation laws to show that there is a unique group table for $G$. Deduce that $G$ is abelian.  I proceeded with solution as follows. Since $G$ is of even order there must be at least one element of order $2$ (this statement itself was one of the problems in the exercises and is easy to handle). From the wording of the question it seems that none of the elements $a, b, c$ is singled out with specific properties and hence $a, b, c$ must behave in exactly the same manner. Hence each of them is of order $2$. Thus $a^{2} = b^{2} = c^{2} = 1$.  Next I analyze product $ab$. Clearly it can't be $a$ (as $b$ is non-identity), or $b$ (as $a$ is non-identity) or $1$ (because $ab = 1 = aa$ implies $b = a$). Hence $ab = c$ and similarly $ba = c$. By the similar nature of all elements $a, b, c$ it follows that $bc = cb = a$ and $ca = ac = b$. Thus the operation of the group is defined properly for all elements and clearly it is abelian.  I think my solution is OK, but I am not sure. Note that I have not used the fact that $G$ has no elements of order $4$. Please let me know :  1) if my solution is correct. If not then point out the flaws.  2) if there is any better / shorter solution. If so provide hints and not solution.  The question may sound too easy / simple but I request to treat me like a beginner who has never heard of Group Theory and is reading fresh from the reference text I mentioned. Thanks in advance for your inputs.  EDIT: Thinking further about this problem I wondered what would happen if an element of order $4$ was allowed in $G$. In that case I think that the group has to be isomorphic to the group $G_{1} = \{1, 2, 3, 4\}$ with modulo $5$ multiplication as the group operation. The argument is as follows. Suppose $a$ is of order $4$ and let $b$ be its inverse then $b$ is also of order $4$. Now $c$ has to be its own inverse so that $c^{2} = 1$. Again $a^{2} \neq 1$ (as $ab = 1$), $a^{2} \neq a$ (as $a \neq 1$), $a^{2} \neq b$ (as it would mean $b^{2} = 1$ and thus $b$ would be of order $2$). Hence $a^{2} = c$ and similarly $b^{2} = c$. Next we can see that $ac \neq a$, $ac \neq c$, $ac \neq 1$ (as $ab = 1$) so that $ac = b$. Similarly $ca = b$, $bc = a$, $cb = a$. Also it is clear that this group turns out to be cyclic with both $a$ as well as $b$ as generators. And it also follows that there are the only two ($G$ in original question and $G$ in new variation) groups of order $4$ upto isomorphism.  I hope I have learnt something from the answers given for the original question and this solution is correct. Please let me know if there is any problem with this reasoning.


I am using a Journal's format, however, receiving the following error:      Package natbib Error: Bibliography not compatible with author-year   citations. ...mand\NAT@force@numbers{}\NAT@force@numbers.   How to get rid of this? The header of the LaTeX file is copied below for ready reference.  \documentclass[graybox, natbib, nosecnum]{svmult} \bibpunct{(}{)}{;}{a}{}{,} % suppress commas between author-names and year %\pdfoutput=1   %forces use of pdflatex. Disable if you prefer to use .eps  or .ps figures. % choose options for [] as required from the list % in the Reference Guide  \usepackage{mathptmx}       % selects Times Roman as basic font \usepackage{helvet}         % selects Helvetica as sans-serif font \usepackage{courier}        % selects Courier as typewriter font \usepackage{type1cm}        % activate if the above 3 fonts are                             % not available on your system  \usepackage{makeidx}         % allows index generation \usepackage{graphicx}        % standard LaTeX graphics tool                          % when including figure files \usepackage{multicol}        % used for the two-column index \usepackage[bottom]{footmisc}% places footnotes at page bottom \usepackage[normalem]{ulem} % for strike-through of text with \sout{}   \usepackage{hyperref}  %for hyperlinks \usepackage{soul}   % for high-lighting of text  \begin{document} \begin{thebibliography}{99.} % Book Chapter  \bibitem{science-contrib} Broy, M.: Software engineering  from auxiliary to  key technologies. In: Broy, M., Denert, E. (eds.) Software Pioneers, pp. 10-13. Springer, New York (2002) % % Online Document \bibitem{science-online} Cartwright, J.: Big stars have weather too. IOP  Publishing PhysicsWeb. \url{http://physicsweb.org/articles/news/11/6/16/1} (2007). Accessed 26 June  2007 % % Journal article \bibitem{science-journal} Hamburger, C.: Quasimonotonicity, regularity and  duality for nonlinear systems of partial differential equations. Ann. Mat. Pura. Appl. 169, 321-354 (1995) % % Journal article by DOI \bibitem{science-DOI} Slifka, M.K., Whitton, J.L.: Clinical implications of  dysregulated cytokine production. J. Mol. Med. (2000) doi:  10.1007/s001090000086  % % Monograph \bibitem{science-mono} Geddes, K.O., Czapor, S.R., Labahn, G.: Algorithms  for Computer Algebra. Kluwer, Boston (1992)  % \end{thebibliography} \end{document}


I'm fairly new to Ubuntu, so I don't know if this is a simple fix or not. I've read some fixes to answers for my problem but I don't really know how to do any of the things they're telling me to do (such as installing proprietary drivers). I'm having the same problem that UbhiSukhpal posted about, but my attempts at fixing the problem have not been successful. Starting Steam from Terminal hasn't worked either. This is the message I get when I try to do start it from the terminal.      chris@chris-VPCEE41FX:~$ steam     Running Steam on ubuntu 15.04 64-bit     STEAM_RUNTIME is enabled automatically     Installing breakpad exception handler for appid(steam)/version(0)     libGL error: unable to load driver: r600_dri.so     libGL error: driver pointer missing     libGL error: failed to load driver: r600     libGL error: unable to load driver: swrast_dri.so     libGL error: failed to load driver: swrast   Any help would be awesome. I apologize if this is going to be tedious. :p


The question is to find an approximate solution, up to the order of epsilon of following problem.  $$y'' + y+\epsilon y^3 = 0$$ $$y(0) = a$$ $$y'(0) = 0$$  I tried to solve the given problem using perturbation theory.  $$y(t) = y_0(t) + \epsilon y_1(t) + \epsilon^2 y_2(t) + \cdots$$ $$t = w(\epsilon)t = (1 + \epsilon w_1 + \epsilon^2 w_2 + \cdots )t$$  However, i failed to find an appropriate approximate solution... help me!!


So I've recently had to work on some web application that needed to be available in Korean, and I ran into the issue of unicode not working for me.  I looked at this answer, and tried these suggestions with no luck.   Here is my simple code :  <?php  header('content-type:text/html;charset=utf-8');  echo ' <!DOCTYPE html>  <meta http-equiv="Content-type" content="text/html; charset=UTF-8"> <meta charset="UTF-8">  ';  echo '안녕하세요
';    echo ' ';  ?>   All I get in my browser window are question marks...???????   Not sure what I'm doing wrong here...  If it matters I am using the Bitnami WAPP Stack 5.6.8-0...that includes Apache 2.4.12 and PHP 5.6.8


No way to remove accidental upvote on a comment

I frequently upvote someone's comment only to realise I've fat-fingered it (especially easy to do on a touch phone, but I've also done it with a mouse) and clicked someone else's comment.  Unfortunately I can't find a way to undo it!  The last thing I want to do is upvote someone I vehemently disagree with ;)


null pointer Exception when adding an object with multiple classes referring to each other

I have three classes: Crew, Plane and Driver. Crew class is accessed only through the Plane class and Plane class is actually used through the Driver class. The program compiles but upon execution, throws the error:  Exception in thread "main" java.lang.NullPointerException     at Plane.addCrew(Plane.java:180)     at Carrier.addCrew(Carrier.java:493)     at Carrier.process(Carrier.java:179)     at Carrier.run(Carrier.java:144)     at Carrier.main(Carrier.java:54)   Below is the snippet from the Plane class specific to the problem:  public void addCrew(String name, String role, int id, int missions) {     if(currentCrew < maxCrew)     {         Crew crew = new Crew(name, role, id, missions);         crewArray[currentCrew] = crew; //This is Plane.addCrew(Plane.java:180)         ++currentCrew;     }     else     {         System.out.println("Crew is full");     } }


SQL 2012 Server Database Transaction Replication performance issue

We have configured SQL 2012 Server Database Transaction Replication for our client's .NET Web application to distribute SQL transaction and reporting on different SQL servers.   We had implemented transaction replication on to SQL-Node1 is working as Master DB Server, We'd configured replication of Master DB on SQL-Node2 to pull out reports in to our web application which having lots of transactions and data uploading from excel sheet entries around 10 million entries each day.   After configured replication on Two SQL 2012 server, after few weeks we facing some performance issues and found some resource get locked during uploading files on to database that's why application unable to access those tables and data. Also found that server performing too much slow during day time when users access our web application.  Now we are looking to distribute loads on different 3 Nodes of SQL 2012 Servers. Where web application will access and transact data on SQL-Node1, Reporting queries get pull data from SQL-Node2 and SQL-Node3 will be get used to upload excel sheet data on to Database which will get replicated on all other SQL Nodes.  Current Setup, All Servers having Windows Server 2008 Standard and SQL 2012 Enterprise Edition.  Database size approx : 15 GB / Replication Used : Transaction / Distributor Role configured on SQL Node1 / Subscriber role configured on SQL Node 2.    We are looking for solution to resolve above issues which can distribute different loads (reporting, data uploading, transaction) and replicate data between all SQL Nodes.  Which feature will do perform well for above scenario among SQL 2012 HA, SQL Replication or SQL Mirroring ??  Quick response will be highly appreciated....


Ubuntu Windows 8 Dual boot GRUB Unknown File system error

After shrinking and increasing the size of a disk in Windows 8 .... this is the error that i get when i start up my PC , it says .... Entering GRUB Rescue Mode.


Missing model whilst viewing in active camera

Wonder if someone could help? Whilst viewing a simple pulley model in active camera view, I can only see the foremost part of the model. What am I doing wrong?   Much appreciate any help.    I attach a pic of the full model in 3D View.


I have the following code to read a line from a file and if it is equal to "true", set a boolean value to true, and if not, set the boolean to false:  BufferedReader reader = new BufferedReader(new FileReader(optionsFile)); stringFromFile = reader.readLine(); System.out.println("SFX plain text: " + stringFromFile); if (stringFromFile == "true") {     SFX = true; } else {     SFX = false; } System.out.println("SFX: " + SFX);   However, when executed, the following comes up in the log (I have excluded the package name because it has personal details on it):  04-09 23:35:39.980 9686-9686/<PACKAGE NAME> I/System.out: SFX plain text: true 04-09 23:35:39.980 9686-9686/<PACKAGE NAME> I/System.out: SFX: false   Obviously, the if statement is evaluating the string incorrectly, but I've tried many things, and I've been unable to fix it. Does anyone know what's wrong, or how to fix it? Any help would be much appreciated.  P.S: If it's relevant, the text file is written with the following code:  writer = new BufferedWriter(new FileWriter(optionsFile)); if (SFX) {     writer.write("true");     System.out.println("SFX: true"); } else {     writer.write("false");     System.out.println("SFX: false"); } writer.newLine(); writer.close();


Should 'favorite' stars migrate with a question?

was migrated from SO to  a short time ago, and a user on our site . It turns out it didn't - but it seems to me it wouldn't be a bad thing if it did, especially (but perhaps not only) if:  the user is registered on both sites the migration happened soon after the question was favorited the question isn't closed on the target site  Is there a good reason why this does not happen?


Where should I ask questions about architecture of physical spaces?

I would like to ask a question not about software architecture, but physical architecture, i.e., the design of buildings and other elements of the "built environment".  I was looking for a Stack Exchange site to ask what the meaning is of the huge stone symbols on the side of the new Scottish Parliament building.


solving the limit $\lim (\frac{x}{x-1}-\frac{1}{\ln x})\, \, \text{as } x\to1$

$$\lim_{x\to1}\left(\frac{x}{x-1}-\frac{1}{\ln{x}}\right)$$  Without l'Hospital.  Help me with this Excercises.. I cant do it!! Someone who could help me!!


Trying to clone some objects along a path (2.9.2)

I'm trying to do something similar to the lights around the edge of the Vegas sign, which would be really easy with the Cloner in c4d... I don't want them to deform (so Array + Curve seems to be no good) and I've tried cobbling something together in Geometry Nodes but I can't get the objects to align to the path normals: they all face the same way. Some solutions I've seen suggest doing it with Python - surely that's not necessary??


\displaystyle and \mathbf with cmbright font

I would like to use bold symbols in superscript equations. To do so, I use \displaystyle as in   \documentclass{standalone} \usepackage{amsmath} \begin{document}     $e^{\mathbf{A}t}=e^{\displaystyle \mathbf{A}t}=e^{{\displaystyle \mathbf{A}}t}$ \end{document}   The corresponding output is:    The first exponential is exactly what I'm looking for.  Now, if I add the cmbright package, the corresponding code  \documentclass{standalone} \usepackage{amsmath} \usepackage{cmbright} \begin{document}     $e^{\mathbf{A}t}=e^{\displaystyle \mathbf{A}t}=e^{{\displaystyle \mathbf{A}}t}$ \end{document}   yields:    As one can see, in the left exponential the A symbol is not bold, and the other symbols are larger (as expected with \displaystyle).  I guess there is a pretty simple explanation about cmbright but I am not aware of it. Any clues to get the bold symbol AND the normal size with cmbright?


characteristic function of stable symmetric distribution

I'm stuck with one problem of my homework:   "Show that $\phi\left(t\right) = {\rm e}^{−\left\vert\,t\,\right\vert^{\,\alpha}}\,, t \in {\mathbb R}$, is a characteristic function only for $0 \leq \alpha \leq 2$".  I'm trying with Polya's criterion but I cannot use it since the second derivative depends on t and it shouldn't $\left(~\mbox{it should be bigger than zero on}\ {\mathbb R}_{+}~\right)$. So, i tried with Bochner’s theorem, and again I cannot understand why it should be positive definite only for 0 ≤ α ≤ 2.   Could someone give me an idea on how to solve this problem?  Infinitely thanks


Google page title not matching html  tag

I've written an online book. When I search for the book on Google, it is labeled as <no_title> rather than the title in the HTML's <title> tag. Any idea how I can update the title in the Google search? Thanks!


What do you call a person who prefers the company of the opposite sex over their own (not in anyway sexual)

Example: a guy who is used to being around the opposing sex and has been for a long time, therefore he will usually be more comfortable with female friends than male ones   (I'm not good at explaining things and I have searched all over for a good word that describes this attitude so I hope you get gist of What I'm saying)


Add event for hyperlink included in JLabel

I have a jlabel show content, then  I add a hyperlink include on content. Using tag . I have a issue how to user can click this hyperlink, the mouseclick listener work.  Here is my code:  String languages=" Deutsch, English (All), English (United Kingdom), Bahasa Indonesia, Italiano   edit ";             GUIConstants.ELM_ALIGN_RIGHT), 240, 0));*/     JLabel lblLanguage= new JLabel();     lblLanguage.setFont((new Font("Arial", Font.PLAIN, 12)));     lblLanguage.setText(languages);   I wan if user click edit link, the popup will show. Otherwise, click the text on content, it's not working. Thanks


He comes out of no where and I haven't read the books. He just keeps torturing him and giving hints on who he is...


I've been reading many documentations on Linux containers. I also tried it out the  and the  .  Wikipedia says      it is an operating system–level virtualization.   Linuxcontainers.org says     LXC is a userspace interface for the Linux kernel containment features.   I cant get it clear.   Is LXC just a user interface and there is some other kernel module that provides the container features. Or is LXC something that gets patched to the kernel when package is installed and it also provides user space utilities. While trying it out on CentOS, installation lxc package was not required although it is available in the repositories. On CentOS, without installing lxc the libvirt daemon is able to connect to lxc:///  using the libvirt command utilies. So is there a lxc module already in the kernel? But I didnt find any with lsmod . BUT, which is that module in the kernel, that provides containerization?


$a,b\in\mathbb Z^+$, and the equations given are $a-b=120$, and $\operatorname{lcm}(a,b)=105\gcd(a,b)$. What is $a$?  So what I did was that I first found that $a=b+120$, and plugged that value of $a$ into the second equation:$$\begin{align}\operatorname{lcm}(120+b,b)&=105\gcd(120+b,b)\\\frac{ab}{\gcd(120+b,b)}&=105\gcd(120+b,b)\\\gcd(120+b,b)^2&=\frac{ab}{105}\\\gcd(120+b,b)&=\sqrt{\frac{ab}{105}}\\\gcd(120,b)&=\sqrt{\frac{b(b+120)}{105}}\end{align}$$I'm not too sure if this is the correct way to go. Should I manipulate the equations, or should I do something else?


I have the code:  \documentclass{article}                                                                                \usepackage[utf8]{inputenc}                                                                                \usepackage{pgf-pie}                                                                                \begin{document}                                                                                \begin{tikzpicture}                                                                                \pie[text=,before number=, after number=,color={blue!33.33, blue!33.33, white!33.33}]                                                                                {33.33, 33.33, 33.33}                                                                                \end{tikzpicture}                                                                                \end{document}         which produces the output    How can I hide the numbers (33.33)?


Distribution of this degree distribution plot

I have plotted this distribution, representing the degree distribution of the amazon co-purchase network (2003) graph. Sadly, I do not know how to interpret this. Do you know which distribution this is?


So I'm playing Skyrim, and I have a family in Whiterun. (Wife, and 2 children) I have a lot of items there. And I just bought a house in Windhelm. I tried to see if they would move. But there's no option.


I want to determine the set of natural numbers that can be expressed as the sum of some non-negative number of 3s and 5s.  $$S=\{3k+5j∣k,j∈\mathbb{N}∪\{0\}\}$$  I want to check whether that would be: 0,3, 5, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, and so on.  Meaning that it would include 0, 3, 5, 8. Then from 9 and on, every Natural Number. But how would I explain it as a set? or prove that these are the numbers in the set?


Postgres PSQL Import file from certain location

I have my dump file of DB Dump via psql, I want to import it to my windows Postgres via PSQL from a certain location. However when I try the following:   postgres-# psql cds < C:\Users\user\Desktop\cds_db.bak   I get the  following error:   Invalid command \Users. Try \? for help.   I also tried the following:   postgres-# psql cds < cds_db.bak   But it was quiet, nothing happened.   The file is located on my desktop, how can I import the file?


When a question is deleted by moderator, will the reputation received by answering be lost as well?

i recently answered a question and got upvoted for the answer. But the question was deleted later due to question being too generic. Then after a few minutes, i noticed that my reputation became the same as before when i got upvoted for it. Is this because the question was deleted? In such a case will the reputation earned be lost or was it maybe for some other reason that i overlooked??


I am having a problem with my image alignment. I want my image to align with inline elements in a specific way.   This is what I have now:                  ######################                 #                    #                 #                    #                 #       image        #                 #                    #                 #                    # inline elements ######################   but I want:   inline elements ######################                 #                    #                 #                    #                 #       image        #                 #                    #                 #                    #                 ######################   Is there anyway to do with with CSS?


How does a wand choose its new owner if the wand was created for the owner?

We know that wands choose their owners as we saw Harry buy his wand at Ollivander's in HP1.  We also know that wands can be made for their owners as we saw in HP7: Ollivander makes a wand for Voldemort as-well as Wormtail having a new one created for him.  But if the wand chooses the owner, how can you guarantee that the new wand will choose you, if you ask someone to create it for you?    As a clarification, this is not the same as  since that question is asking specifically about the Elder Wand, which is known to behave differently to other wands. Also, that's asking about the whole "winning over" scenario, whereas this question asks about a wand being built for the intended owner.


Placing the value of text of a selected tab in a global variable in Javascript

Am working on some custom tabs built using Jquery. When the user selects on a particular tab am capturing the text and storing it in a variable. This works fine but the issue is the variable should be in a global scope so that I can use it in another function (called execValue) outside the function that captures text from selected tab.  Markup

         Holiday/Business Trip

         Winter Sports

         Risky Sports

         Study

   Logic  let purpose = false; let value = ""; $(".columns").click(function (value) {     if (!purpose) {         let reason = $(this).text();         if(reason.trim() == "Holiday/Business Trip"){             value = 'holiday';         }         if(reason.trim() == "Winter Sports"){             value = 'Winter';         }         if(reason.trim() == "Risky Sports"){             value = 'Risky';         }         if(reason.trim() == "Study"){             value = 'study';         }               console.log(value);     } });   function execValue(){     //Capture value here }


If the universe is just a Matrix- like simulation, how could we ever know? Physicist Silas Beane of the University of Bonn, Germany, thinks he has the answer!. His paper ” has been submitted to the journal Physical Review D !.    Remark: This person claimed that the whole world is a great simulation, and the whole world started with a simulated big bang. and every things are results of spontaneous program self-organization and automorphisms. The big bang happened in a kind of supercomputer And now we're inside of it. the Big Bang occurred approximately 13.75 billion years to our eyes, But perhaps within less than a second for simulator.   If the universe is just a Matrix- like simulation, how could we ever know?


Accessing ArrayList from another class is returning null Java

I have a static arraylist defined in my loginactivity class. private static ArrayList<LatLng> userCoordinates;  // Removed some code for ease of reading but the contents of the list are defined and set here: ArrayList<LatLng> coords = new ArrayList<>();                                             for (String lat: lats) {                                                 for (String lng: lngs) {                                                     double a = Double.parseDouble(lat);                                                     double b = Double.parseDouble(lng);                                                     LatLng latLng = new LatLng(a,b);                                                     coords.add(latLng);                                                     break;                                                 }                                             }                                             setCoordinates(coords);  // Getter & Setter  private void setCoordinates(ArrayList<LatLng> coordinates) {         userCoordinates = coordinates;     }          public static ArrayList<LatLng> getCoordinates() {         return userCoordinates;     }  However when I attempt to access this from another class and print it in the onCreate() method: private ArrayList<LatLng> userCoordinates = LoginActivity.getCoordinates();  //In onCreate() System.out.println(userCoordinates.toString());  I get the error: Attempt to invoke virtual method 'java.lang.String java.util.ArrayList.toString()' on a null object reference


Run length control of 2 on a binary variable with python list

I want to pseudo-randomly create a list with 48 entries -- 24 zeros and 24 ones -- where neither zero nor one repeats more than twice in a row. For example:  [1,1,0,1,0,0,1,1,0,1,0,...]  import random l = list() for i in range(48):     if len(l) < 2:         l.append(random.choice([0,1]))     else:         if l[i-1] == l[i-2]:             if l[i-1] == 0:                 l.append(1)             else:                 l.append(0)         else:             l.append(random.choice([0,1]))   I have the above code, but it sometimes returns an uneven count of 1s or 0s. All possible solutions should have the same chance of coming up.


I'm curious which pricing model other feel best fits freelance design, in what situations, and why.  I am not seeking dollar values.   There are a few basic pricing models a freelancer can use:   Time-based pricing. This is where you calculate every minute you work on a project and break that down to your hourly rate and charge whatever the formula states you should. There are several questions here at GD.SE which refer to time-pricing models, with some excellent answers, such as:  /  /  This model can be accurate provided a client is aware each and every minute you work costs more. Therefore each revision will increase fees. Some clients are fine with this, some freak out because they didn't understand the pricing structure. Per-service or fixed fee pricing. Sometimes known as project-based pricing. This is where you calculate a price for each and every service you offer and essentially work off of a price sheet. This way you know a brochure costs $XXX every time, a 3-page web site costs $XXX every time, etc. This model does not allow for alterations should project scope become an issue. So it can result in those difficult conversations with clients telling them to stop with revisions or pay more. Value-based pricing. This model doesn't adhere to any set pricing or per hour structure. Value based pricing prices services according to their perceived value or importance to the client. This one is a bit tricky. Essentially it's the old "If you charge more, clients think you are worth it." model. You can often use this model to increase revenue without increasing workload. This is why "Name Brand" items cost more than generic items - a perceived value when in reality the items or workload are / is the same.   There are others such as licensing, use-based, royalties, etc. but I feel those are special circumstances which don't generally apply to most work. If you feel they do, please explain why.  It is also possible to use a combination of price models or hybrid model. For example, you may figure a job cost using time-based pricing but then add additional fees for value-based pricing.  It is also feasible that different services or projects are priced differently. For example:   sales piece creation fees are a hybrid calculation using time-based and value-based figures to arrive at final fees. Then, additional edits to that sales piece at a later date are strictly time-based priced. Poor Practice? After all , if it's a sales piece each and every copy seen by end users has potential to generate revenue for the client. So, is it more appropriate to use some value-based pricing for the edits? Web site creation fees are calculated using hybrid fees from time-based, per-service, and value-based figures. When an additional page is requested a year later, fees are based solely upon fixed fee rates for an additional page. Is this adequate? What if the additional page requires different services? Still a fixed fee then?   Obviously, all price models must cover your overhead at a minimum.  I am not seeking dollar values.   Which pricing model do you feel best fits freelance design services?   When do you feel it's appropriate to use the different price models, if you do?  Edit: I realize that in the end, most deliver what could be seen at fixed-fee pricing to their clients. This is just naturally what any hard quote appears to be. I'm not really thinking in terms of what a designer delivers to the client as the pricing. What I'm curious about is how you get to that figure the client sees.  I do realize this is a complex matter and few scenarios fit nicely into a specific category. Just looking for some general input from others in the industry.


Does velocity or acceleration cause time dilation?

What causes time dilation?  Acceleration or velocity?  I've seen multiple comments on this forum that assert velocity is the cause, but that doesn't seem right to me.  You can't have velocity without acceleration.  It's the inertial force with acceleration that breaks the symmetry.  My understanding is that the asymmetry is where the inertial frame changes.  Measuring time between two objects with different inertial frames is where you have time dilation.  When the acceleration ends, the object is effectively at rest in a new inertial frame and has velocity relative to another object in the original inertial frame.  In other words, acceleration (changing reference frames) is the cause...velocity and time dilation is the effect.  Am I right about this?  If there are flaws in my logic I'd like to find and correct them.


JSON.parse fails if the JSON stiring has \n

var jsonString = '{"htmluserresponse":"This is my firs \n test"}'; var jsonObj = JSON.parse(jsonString); console.log("Test Response------" + jsonObj.htmluserresponse);     JSON.stringify() actually created the string i pass into the jsonString, but JSON.parse fails if the string has \n character.   how to get the valid string ?


OS :-Suse Linux Enterprise 12.0 File System :- ext3  I hit rm -rf /home/, immediately I did Contol+C so the command got canceled but until that time I lost ~9GB of data from this /home dir.  I don't have System GUI access. Please suggest a suitable recovery command or packages so that i can recover my lost /home files.  I just want to recover only one lost dir from this /home dir that is, /home/cubot/etl/script. This /home/cubot/etl/script was having some important scripts and it is not visible now completely.


Where is the mass and gravitational influence of dark matter?

I'll have to ask an elementary level question about orbital motion and the mass/gravity that influences it.  In solar systems, the large mass of the sun pulls on the planets and we see the velocity of the outer planets traveling far slower than the inner planets because the mass in the rest of the solar system is far lower than the mass of the sun. If dark matter is spread throughout a galaxy, and not just at the center, would that not be like having massive planets in the outer part of a solar system, like a lot of jupiters that can have an effect on the planetary motion of the outer planets in the solar system? i.e. if there were a lot of jupiters in the outer regions of a solar system, would they cause the velocity of the outer planets to speed up, like we see in a galaxy with dark matter located throughout the galaxy?


If Tensor Product of Two Finitely Generated Modules Over a Local Ring is Zero then one of the Modules is Zero

Let $R$ be a local ring (commutative with identity) ans $M$ and $N$ be finitely generated $R$-modules.     If $M\otimes_R N=0$, then $M=0$ or $N=0$.   The problem clearly seems to be an application of the Nakayama lemma. If we can show that $M=\mathfrak mM$ or $N=\mathfrak mN$, where $\mathfrak m$ is the unique maximal ideal of $M$, then by Nakayama we would have $M=0$ or $N=0$, for the Jacobson radical of $M$ is nothing but $\mathfrak m$ itself.  I am unable to figure out what to do.


Cartoon movie set on Mars, human kids with alien pet

I've been trying to find a movie a saw when I was a kid. I don't remember the name, just a few details of the plot.  I remember it was set on Mars, there was a human colony there, like a dome city.  They had a conflict with an alien race that looked like furry humanoids.  The main characters were two kids, a boy and a girl. The girl had an alien pet, a little fur-ball animal.  Eventually they meet the "enemy" alien race and find out that their pet is an infant of that race.  Eventually the aliens help the humans to make the planet completeley habitable for humans, and in the end it is shown that the little pet has grown and is telling the story of the movie to some human kids.  Any idea what I'm talking about or did I make it up in my mind?


How does Tam know who "Maighdin" really is?

In The Gathering Storm, Rand meets with his father. A part of their conversation includes Perrin's exploits:  Rand's mood darkened slightly. "Wait. Perrin has been using Two Rivers folk?" Tam nodded. "He needed us. That boy's put on a balancing act to impress any menagerie performer. What with the Seanchan and the Prophet's men, not to mention the Whiteclocks and the queen-" "The queen?" Rand said. "Aye," Tam said. "Though she says she's not queen anymore. Elayne's mother." The Gathering Storm, Chapter 47  It's undoubtedly clear he is referring to Morgase. In the following book Towers of Midnight, Perrin mentions that Gaebril was actually Rahvin in disguise. "Maighdin" hears this and drops her teacups.  Maighdin stood, looking stunned, arms at her sides. The fallen tray lay on the ground before her. Towers of Midnight, Chapter 21  This whole exchange shows that at least Perrin and Faile and most of the camp didn't know of Maighdin's true identity (and later on when she does reveal herself). But how would Tam al'Thor been able to figure out beforehand? Only a handful of people who had been travelling with Morgase knew who she was, and Tam definitely wasn't part of that handful. At first I thought that the timelines hadn't caught up as with previous books, but then I remembered that Rand had already undergone his ascension when he meets the farmer Alden in the prologue. Coupled with the fact that chapter 13 clearly shows Rand returning after his ascension. So how does Tam know Morgase?


Server cost for smartphone app with web service

I am working on a smartphone application that will require a backend web service - but I have absolutely clueless to how much it will cost.  Web Service will handle:  - login of users  - cataloging of our user base  - holding minimal profile information for users (the only binary data is a display picture which will be < 20k each)  - performing some very minor calculation/algorithm before return results  - All the above will be communicated to server from a smartphone (iPhone/BlackBerry/Android)    Bandwidth Requirements:  - We want to handle up to 10k users throughout the day.  - I predict 10k * 50 HTTP requests a day = 500,000 requests a day * 30 = 15 million requests a month  Space Requirements:  - Data will be in SQL database.  - I predict 1MB/user * 10k = 10GB + overhead. In other words - space is not a big issue.    Software Requirements: (unless someone knows an alternative)  - Windows Server 2008 + IIS  - MSFT SQL Server    Note: This is 100% new to me, so please hit me with all you got. Do I need Windows Server or are there alternative? Is it better to get multiple cheap servers to distribute load? Will Amazon S3 work for me? How about Windows Azure?  EDIT note: At this point in time - I'm am more concerned with COST and how that cost will scale. So if you provide a service recommendation, could you help ballpark to how much these requirements would cost?    Thank you!!


On the existence of a holomorphic function

I have just encountered this exercise which has me stumped:     We are asked to prove that if $ f $ is holomorphic on the unit disk $ D $ and if $ f(z) \neq 0 $ on $ D $, that there is a holomorphic function $ g(z) $ on $ D $ such that $ f(z) = e^{g(z)} $. We are also asked to show that if $ D $ is replaced by an arbitrary connected open set, the result may not hold.   In fact, I have no idea where to start. Should I take a complex logarithm and show that it works, is there a straightforward solution here? I see that $ f(z) \neq 0 $ makes a lot of sense as an exponent can never be zero, but other than that I cannot show such a function exists and I also don't see why the unit disk is special as a domain. Any help would be appreciated.


Does Hawking radiation never happen because a black hole takes an infinite time to form?

Consider the classical solution of a black hole and imagine some matter crossing the event horizontal so that it cannot escape the black hole. I don't remember in the case of a rotating black hole, but in the simpler solution of a non rotating one, a distant observer should see this matter appear to slow down and freeze near the event horizon, never quite reaching it..I can't remember if the same is essentially true in a real back hole, i. e. one that rotates. If it were, and the physical picture were really that simple , then it would probably mean that from an external perspective,  not a single piece of matter has ever actually entered a black hole in all the time the universe has existed. Under intuitive causation  you might therefore not expect to actually observe Hawking Radiation, as to the external observer nothing will have reached the event horizon in all this time. Evidently this picture is wrong somehow.  So my question is: what is wrong with this simple picture that I have presented and why would we expect to see hawking radiation?


Can you ever have a question mark after a full-stop/period?  Imagine that Q.N. is the name of a secret society, and people just call it Q.N. Which one of the following is correct?  What time are you going to Q.N.? What time are you going to Q.N? I feel that the second is correct, but for some reason the first one is speaking to me as well. Any advice would be appreciated?


Compute Function to Full Machine Precision

If we want to evaluate $$f(x)=\frac{e^x-1-x}{x^2}$$ then we have to observe its large relative error as $x\to 0$.  My question is that how can we find a method so that we can compute $f(x)$ to full machine precision for all $|x|<1$?  So far, I have been able to use a Taylor series to show that $$f(x)=\frac{1}{2!}+\frac{x}{3!}+\frac{x^2}{4!}+\ldots$$ And now I suspect that we have to find the remainder, right? How would I do this?


Default behavior of a USB device in the presence of 5v

This is a follow on from   Given a home made USB charger that simply provides 5 volts across the GND and VCC pins of a USB port, what should the default behavior be of any mobile device (mobile phone, tablet, iphone etc) plugged into that device. ('data +' and 'data -' left unconnected)  Will it...   completely ignore the device (i.e. not charge at all) attempt to trickle charge very slowly at low current attempt to charge at a current of no more than 500ma attempt to charge at a current exceeding 500ma   I have read  but am no wiser.


Did Dumbledore know that Snape was bullying Harry and Neville?

Snape is a triple agent. He sided with Dumbledore because Voldemort killed Lily, the only person who Snape loved and cared. Snape was a spy among the Death Eaters and was giving information to Dumbledore. Why is Snape always bullying Harry and Neville,  since Snape has a reason to protect Harry? Did Dumbledore know this? If so, how did Dumbledore react to this?


Can I apply for a Schengen visa at a country where I'm not a citizen? If so, under what conditions?

I'm a citizen of country A who would like to apply for a Schengen visa at a consulate in country B. When is this possible?


How can I move the panel from the top to the bottom?

I am coming from Windows 8 and want to test new Ubuntu 12.xx.  How can i change the position of the panel from top to bottom?


What is a good Stack Exchange site to ask this question about general programming language tutorials and examples?

I have a question about programming tutorials / examples that I want to ask, but I don't want to get down votes doing so:     When you are learning how to program in a certain language or with a particular framework, it is very useful to have an actual real-world example of that project being used somewhere in the open source community.      Has any stumbled across a particular updated website or online resource that provides OSS source code links (like GitHub, SourceForge, etc.) to programming languages / frameworks?       This would be especially useful for software engineering professionals who need to learn a new language/framework and want to skip the "Hello World" and get right to something useful.    What Stack Exchange site is the best for this particular question?


I have DDL like the below, which returns data like such:  GP17    GP16 0       103 90      0 375     0   I am wanting to pivot the data somehow so that it returns only one row, like such:  Jan 17 ---- Jan 16 ---- Feb 17 ---- Feb 16 ---- Mar 17 ---- Mar 16 0            103         90          0           375         0      Now this is relevant to the date range being passed in below, for example, if the date range being passed in is 20170401  20170630 then I would want the dates to read Apr 17, Apr 16, May 17, May 16, Jun 17, Jun 16  How can this be achieved with SQL Server 2008 R2 and the DDL below?  Declare @Test Table (     dname varchar(100)     ,tr float     ,dc float     ,sdate date )   Insert Into @Test (dname, tr, dc, sdate) Values ('Green', 100.00, 10.00, '20170101'), ('Green', 200.00, 15.00, '20170201'), ('Green', 200.00, 10.00, '20170215') ,('Green', 10.00, 0.00, '20160101'), ('Green', 15.00, 10.00, '20160130'), ('Green', 110.00, 22.00, '20160101')  Declare @startdate date = '20170101', @enddate date = '20170331'  SELECT  ROUND(SUM(ISNULL(tr17,0))-SUM(ISNULL(DC17,0)),0) As GP17, ROUND(SUM(ISNULL(tr16,0))-SUM(ISNULL(DC16,0)),0) As GP16 FROM ( SELECT ZT1.dname, SUM(ISNULL(ZT1.tr,0)) AS tr17, 0 As DC17, 0 As DC16, 0 AS tr16, sdate As activityDate FROM @Test AS ZT1 WHERE ZT1.sdate >= @startdate AND ZT1.sdate <= @enddate GROUP BY ZT1.dname, ZT1.sdate UNION ALL Select t1.dname, 0 As tr17, SUM(ISNULL(t1.dc,0)) As DC17, 0 As DC16, 0 AS tr16, sdate as activityDate FROM @Test t1 WHERE t1.sdate >= @startdate AND t1.sdate <= @enddate Group By t1.dname, t1.sdate UNION ALL SELECT ZT1.dname, 0 As tr17, 0 As DC17, 0 As DC16, SUM(ISNULL(ZT1.tr,0)) AS tr16, sdate As activityDate FROM @Test AS ZT1 WHERE ZT1.sdate >= DateAdd(yy, -1, @startdate) AND ZT1.sdate <= DateAdd(yy, -1, @enddate) GROUP BY ZT1.dname, ZT1.sdate UNION ALL Select t1.dname, 0 As tr17, 0 As DC17, SUM(ISNULL(t1.dc,0)) As DC16, 0 AS tr16, sdate as activityDate FROM @Test t1 WHERE t1.sdate >= DateAdd(yy, -1, @startdate) AND t1.sdate <= DateAdd(yy, -1, @enddate) Group By t1.dname, t1.sdate ) AS A GROUP BY YEAR(activityDate), MONTH(activityDate)


On an 8x8 chess board we place rooks so that the number of them is odd on each line  or collumn. Show that the number of black squares that have rooks is even.  What I found: Obviously, since the sum of all rooks is even, the numbers of black and white squares with rooks have the same parity. Also since every line or column have even number of squares, the number of them with/ without rooks have the same parity so every arrangement generates another one. This is basically the only relevant thing I have got. I still dont know how to get the parity


How do I restrict a specified SSH user to connect only from one IP or hostname?

I have a monitoring server that requires the SSH connection details of a non-sudo user account of each box it monitors. Is there a way that I can configure a specific user account such that it can only be logged into from a specific IP (or better yet hostname)? I do not want to restrict the ability of other users on the server to be able to connect from other addresses (otherwise I'd just use a firewall), or .


I am using Windows 7. I do not like the way that the Task Manager looks, it is ugly compared to that of Windows 8. How can I replace my Task Manager from Windows 7 by that of Windows 8?   The nice looking task manager in Windows 8


Open program/windows on specific monitor

Is there a way to tell Windows on which monitor it should open a windows  independently of where it was closed?


I have a new 32-bit ubuntu and tried to download wine1.6. I followed the instructions on the winehq site but the response was that I had to "chose an application" to proceed. Having got no further with that I used the terminal window and with sudo apt-get install wine1.6.  That was running quite well but a window labelled "configuring ttf-mscorefonts-installer" appeared which looked like a standard terms and conditions. There was an "" in the window but it was not cursor sensitive nor did "return" have any effect.  Ideas, please!


How to have a one-to-many relationship with a privileged child?

I want to have a one-to-many relationship in which for each parent, one or zero of the children is marked as a “favorite.” However, not every parent will have a child. (Think of the parents as questions on this site, children as answers, and favorite as the accepted answer.) For example,  TableA     Id            INT PRIMARY KEY  TableB     Id            INT PRIMARY KEY     Parent        INT NOT NULL FOREIGN KEY REFERENCES TableA.Id   The way I see it, I can either add the following column to TableA:      FavoriteChild INT NULL FOREIGN KEY REFERENCES TableB.Id   or the following column to TableB:      IsFavorite    BIT NOT NULL   The problem with the first approach is that it introduces a nullable foreign key, which, I understand, is not in normalized form. The problem with the second approach is that more work needs to be done to ensure that at most one child is the favorite.  What sort of criteria should I use to determine which approach to use? Or, are there other approaches I am not considering?  I am using SQL Server 2012.


How can I draw an arc centered at the center of a node

I want to draw an arc centered at the center of a node (a), I have not been able to find how to draw te arc specifying its center as (a.center), the only option I found is either using cartesian or polar coordinates


Real Analysis: Continuity of a Composition Function

Suppose $f$ and $g$ are functions such that $g$ is continuous at $a$, and $f$ is continuous at $g(a)$. Show the composition $f(g(x))$ is continuous at $a$.  My idea: Can I go straight from definition and take $\delta=\min\{\delta_1,\delta_2\}$, where $\delta_1$ is used for the continuity of $g$ at $a$ and $\delta_2$ is used for f being continuous at $g(a)$. In my proof I just treat $g(a)$ as a point when referring to the composition. So it goes like this:  Proof: Given $\epsilon>0$, take $\delta=\min\{\delta_1,\delta_2\}$. Then $0<|x-g(a)|<\delta$ which implies $|f(g(x))-f(g(a))|<\epsilon$.


Is there a word for the beginning of a street? What word would be used to describe where a street begins? I have a friend who says that in Persian, it's described as the "head" of the street, but I can't think of how it would be described in English. Does anyone know?


T-SQL Concatenate & group multiple rows into a single row

I'm looking for a way to group whilst also concatenating rows into a comma separated string. Example:  Name            Place Steve Jones     New York Steve Jones     Washington Albert Smith    Miami Albert Smith    Denver   to ...  Steve Jones    New York, Washington Albert Smith   Miami, Denver   Greatly appreciated


How to find out the exact time of a tweet?

When viewing a , it only allows you to see the hour and the min (9:26AM).  Is there a way to find out the exact timestamp of that tweet, in milliseconds?


Consider the following theorem for equivalence of measures:  Let $(E, \mathcal{A})$ be a measureable space with $\mathcal{A} = \sigma(\mathcal{G})$ for a ($\cap$-stable family $\mathcal{G}$) and  $\mu, \nu$ be measures on that spaces. If there exists a sequence $(G)_{n \in \mathbb{N}} \in \mathcal{G}$ which ascends to $E$ (ie. $G_n \uparrow E$) and $\mu(G_n), \nu(G_n) < \infty$ for all $n$ then $$\mu(G) = \nu(G) ~~\forall G \in \mathcal{G} ~\implies~ \mu = \nu ~\text{on}~ \mathcal{A}.$$  Here are my questions:     Equivalently one can say, if ($\sigma$-finite) measures agree on $\mathcal{G}$, then they are already equal on $\mathcal{A}$. How can I translate this (more intuitive statement) to the "there exists a sequence" statement? Why is $\mu(G_n), \nu(G_n) < \infty$ required? Can someone give a pathological example if this requirement is not fullfiled?   Thank you.


What's the difference between SFTP, SCP and FISH protocols?

I used to think SCP is a tool to copy files over SSH, and copying files over SSH is called SFTP, which is itself a synonym to FISH.  But now as I was looking for a Total Commander plugin to do this in Windows, I've noticed that on its page it says "Allows access to remote servers via secure FTP (FTP via SSH). Requires SSH2. This is NOT the same as SCP!".  If it's not the same then what am I misunderstanding?


How do i give players already enchanted Tools

Im making a spleef mini-game map, and i want to give players already enchanted Shovels. I managed to find how to put restrictions on the shovels so they just break Snow, but I couldn't find how to put efficiency enchantments together /give @p diamond_shovel 1 0 {"minecraft:can_destroy":{"blocks":["snow"]}}  How do i modify this to enchant the shovels?


I am Working on Javascript Dates, i am stuck with adding 7 days to a date

var date = new Date();    var first_date = new Date(date); //Make a copy of the date we want the first and last days from   first_date.setUTCDate(1); //Set the day as the first of the month     var firstDay = first_date.toJSON().substring(0, 10);     console.log(firstDay)    I am Working on Javascript Dates, i am stuck with adding 7 days to this date Thanks in advance


User's name not being picked up by @@ superping suggestion in chat

I have a user, whose name is 2012User. When I try to superping them (@@) in the public 3DPrinting chatroom, with @@2012, their name does not appear in the auto-complete user search suggestions box thing1:        They have a rep over over 100 (192), they have posted questions on the 3D Printing site, so they are an established user. Why is superping not working, or rather, why is their username not listed in the user suggestions?  Note that @@13700@3dprinting.stackexchange.com seems to make the user suggestion work correctly, but it is rather longwinded:        I do wonder if it is the old issue of 3DPrinting's site name causing issues again? See   I have tried pinging them with both @@2012User and @@13700@3dprinting.stackexchange.com but the latter doesn't appear to resolve the name correctly, and ends up looking like this  @@13700@3dprinting.stackexchange.com please join us in chat    whereas I'd expect it to look like:  @2012User please join us in chat    Also, I'm not sure if either of them (@@2012User or @@13700@3dprinting.stackexchange.com) worked as the user has not responded.  Note that other users with usernames beginning with numbers appear in the user suggestion just fine, as the first screen shot shows, just this particular user.    1 I don't know the correct term for this UI component


Why atom has the straight discrete energy levels?

Interaction between a nucleus and electrons is in gravity(not considering) and electrostatics. Due to electrostatics nucleus attracts electrons. The force that describes this process is  $$F=k\dfrac{q_1 \, q_2}{r^2}$$  What I want to say, is that, the force is "smooth" depending on distance: it doesn't looks like a sinusoidal, I mean there are no strongly-marked values.  Why, then atom has a the straight discrete energy levels?


How do I get IE8 to open a blank page with CTRL-N?

When I used CTRL-N to open a new window with Firefox, it gives me a blank window (because I've set my start page to be blank).  How do I do the same thing with IE8? Using CTRL-N there opens a new window but it loads up the same page that was in the original window, even though the start page is set to about:blank.  This causes havoc when I'm on certain sites since those sites detect that I'm logged in twice and kick me out of both sessions.


Virtual printer redirected to real printer but with certain options set

How can I, in Windows 7, set up a virtual printer that's just an alias to another printer I have installed, but with certain options set? I'd like to make the virtual printer redirect to a certain network printer but with output going to the manual feed tray. (Some new software I just started using just sends the job right to the printer without going through the dialog that would allow me to choose the manual feed tray.)


Solving a six-degree polynomial of the form $ax^6+bx^3+g$.

I read that it is not always possible to solve but from Wikipedia:      Some sixth degree equations, such as $ax^6 + dx^3 + g = 0$, can be solved   by factorizing into radicals, but other sextics cannot.   So how do you solve this? I've stumbled upon this equation where; $a = n^2$, $d=m^2n-2p^2$, and $g=m^4$. Where the $a,d,g$ corresponds to the above mentioned sextic-equation and $m,n,p$ are input variables. I apologize for that ton of variables in use, might cause some confusion. Is this possible using Galois Theory or by any other means?


Comments from OP have a different font size than comments from others.   Example from :    Tested on Google Chrome on Samsung Galaxy S9 with Android 9 and with the "Desktop site" option activated in Google Chrome.


A word to describe low cost solutions that work well but lack aesthetics

I am looking for a word to describe the products or solutions to problems that are made at a very low cost, often home-made or by a very small organization. The products or solutions perform their function very well, but lack the aesthetics found in major brands or finished products at retail stores designed just for that purpose.  Examples include:   hand bags that are reasonably strong and functional, only a lot less attractive compared to expensive ones a home-made camera mount built by a few pieces of wood, glues and rubber bands blocking sunlight from the window with aluminum sheets   EDIT: There have been a few suggestions with "hack" and "improvise". However I do not wish to convey the meaning that the solution is temporary or rushed under time pressure. The key point is low cost and sacrificing elegance, decorations which are unnecessary to make it functional. The goal is cost-effective. I think "utilitarian" comes pretty close.


Why cannot we comment-reply more than one person in comments, and anyone in questions/answers?

I think the comment-reply (ping) mechanism is way too limited. You can only reply to one person in a comment. And you can't use an @ whatsoever in questions and answers. It just doesn't make sense to me.   Sometimes, when responding to a chain of comments, multiple commenters might be making the same point or similar points, and your answer to them might be the same. Therefore, it would be better to be able to comment-reply to all of the users in one comment, instead of posting multiple comments or only responding to one of them.  On a question asked before about this, user Manishearth answered that one can just add a comment under with the other user's name.  Not only is this less practical, but a few problems can arise.   Firstly, what if there is a lot of people you want to ping? If the comment chain gets too long everyone is moved to chat, which might not work too well in every situation.   Secondly, in a case of a sea of comments, your extra referral might get lost in all the comments, leaving the user tagged oblivious as to what comment they were actually tagged to.   In questions and answers, there are many times were pinging someone would be quite beneficial. Just look at this question, where notifying user Manishearth of his mention would've been great, as I'd be able to get his opinion, and he would be aware if I was using his name in vain (or just misrepresenting his opinions or answers).  If your question includes or links to a post of another user, then it would be great to be able to ping them. Or if the question is about something a user said, like this question:   And in questions, there are many times you find yourself quoting or pointing to something another user has already said. What if we could instead of just give credit to them, also let them know we referenced something they said first.  If there is a reason why this wouldn't work, or would be bad, please enlighten me.


First off, I'm not very experienced in math techniques, so I am wide open to suggestions.  I am working with a set of data in R.  I have a curve (mostly linear at first, peaking suddenly, then decreasing.)  I want to smooth it out, so I used a spline and that achieves what I want (especially the peak of the curve "off center" from the top point). But there is a dip right below the peak that I want to avoid, as its essentially linear right there.    I kind of understand (in a non-mathematical way) why this dip has to be there, to give the curve enough time to angle upwards.  But it doesn't represent that data.  Is there any way to avoid this dip?  I've thought about graphing it as two separate lines (a linear and a curved one), but that isn't appealing.  Is there something besides a spline?  Or code I can use to get around this?  Edited to include data  Time           Fe2+ 0.04    138.8181818    7    1258.636364   14    1320.545455   21     2110.37037   28    13730.37037   35    1550.909091


Somewhere, somewhat, somehow, some...day?

While talking to myself the other day, I noticed something odd.  We have the five W words and the H:   What When Where Who Why How   I've heard three of these words said with "some" at the start:   Somewhat Somewhere Somehow   But I've never heard "somewhen", "somewho" or "somewhy". If when, why, and who, are the same type of speech as what, where, and how, why don't we put "some" before the former three?


Alternative to using ArcGIS Online Geocoding

I have 1.4 million addresses that I need to batch geocode. I can't find a free service to do so. Does anyone know of something out there that I can use? Oh, the service needs to be were I can upload a file in a .txt file formate, not a copy and paste. Copy and paste services crash the 661 mb size file.


I am getting FATAL_ERROR|System.QueryException: List has no rows for assignment to SObject. I know that it is because it is not returning any rows in the SOQL query but what I want is that if it returns any row, it should update ALO field on contact object, if it is null then ALO field should be set to null.  Here is my code:  ziptoLOD = [SELECT Id, Name, LOD__c             FROM Zip_3_to_LOD__c             WHERE Name =: contact.Extract_Zipcode__c ];  Zip_3_to_LOD__c ziptoLOD2 = (ziptoLOD != null) ? ziptoLOD : null;  if (ziptoLOD2 == null) {     contact.ALO__c = ' ';    } else {     System.debug(System.LoggingLevel.ERROR, 'Zip to LOD' + ziptoLOD2);     contact.ALO__c = ziptoLOD2.LOD__c; }   My code gets stuck at the SOQL query and gives me the list has no rows error.


Use Case diagrams , UML diagrams and E-R diagrams in LaTeX

Does LaTeX allow to draw Use Case Diagrams, UML Diagrams and E-R Diagrams. How to implement these? What packages to use?


Can light be warped by a magnetic field?

I was thinking and came up with the question "Can the path of a photon be warped by a strong magnetic field?" I tried searching online for an answer but couldn't find much scientific evidence of it being possible or not.  So is it possible?


I am trying to get the achievement to let a goliath level up four times before killing him, but how does a goliath level up? I have leveled up four times already and I can't get it.


I have a canon lens FD 100-300/5.6 which is not compatible to my camera (canon 600D). I wonder to know does it worth if I convert the lens to my camera? (make it compatible to mount on).


Do you need to repeat the article "the" in a series?

Is it  These occur naturally in the Balkan Peninsula, Iberian Peninsula, Pannonian basin, and northern sides of the Black Sea.  or  These occur naturally in the Iberian Peninsula, the Balkan Peninsula, the Pannonian basin, and the northern sides of the Black Sea.  There seems to be occurences of both in places I checked.


if $f'(a)<0<f'(b)$ then there exists $c$ such that $f'(c) = 0$

Let's assume $r < a < b < t$ , and a function $f:[r,t] \to \mathbb{R}$ , $f $ differentiable in $(r,t)$, with $f'(a)< 0 < f'(b)$ . Prove that there exists $c$ such that $a<c<b$ and $f'(c) = 0$  (So basically, i want to something like Bolzano for $f'$, although $f'$ may not be continuous)


My first authorship is being turned into co-first authorship, what can I do?

I am currently submitting a paper for Nature Structural & Molecular Biology. I worked on this project for the last four years and was the only one working on this project. I had everything going very well. In order to get the crystallization, I gave the plasmid construct to another laboratory which has expertise in crystallization. Fortunately, they got the crystals. After the crystallization got successful, one researcher (say, A) from their lab came to my lab and my professor told me to teach him all the methods. I happily agreed to do so. After A went back to his lab, I got the draft of the paper from my professor, where, my name appeared as first co-author! I almost fainted. There were 20 figures in the paper. 13 were contributed by me, 4 by A and rest by 2 other people. The paper was mostly about my work. But in the contribution section, my prof and the prof of A  mentioned that I and A had equal contribution. In fact it is mentioned that A was solely contributor of crystals and he equally contributed in all other results. I discussed this issue with my prof, but he tells that he is getting pressure from A's prof to make A the first author. And my prof does not want to estrange relationship with A's prof. I am heart-broken and I don't know what to do. Please suggest me what to do. Edit 2021: It has been quite some time since I posted this question. I accepted the authorship as recommended by my advisor. Now I feel mature and realize that maintaining a cordial relationship with one's advisor and colleagues is more important than anything else. If one is capable enough, s/he will get more opportunities to prove their worth.


Let $f:(a,\infty)\to\mathbb{R}$ be a function. Suppose for each $b>a$, $f$ is bounded on $(a,b)$ and $\lim_{x\to\infty}f(x+1)-f(x)=A$. Prove  $$\lim_{x\to\infty}\frac{f(x)}{x}=A.$$  Here we assume $f$ to be arbitrary and no further conditions. $f$ could be continuous,discontinuous,as long as it fits all assumptions. I have some trouble with the intermediate steps.


How do to tension and true a rear wheel with a warped rim?

So, after doing extensive research and youtubing on bicycle truing and wheel building, I decided to completely de-tension a rear wheel on one of my old bicycles and try bringing it back up to tension/round/true/dish.  But, I ended up taco-ing my rim pretty badly in my truing process and rounding two of the nipples.  I guess my spokes were too tight or something.  I was just turning, turning, and then boom, taco'ed.  Now I know, I guess.  So, I detensioned all the spokes again to try and start over, except this time, I noticed my rim was physically deformed.  it wobbles and is out of lateral true pretty badly with no spoke tension on it.  I tried bending the rim back into shape, and got it slightly better, but I think it's as good as it's going to get.  I can't really follow any of the youtube or online tutorials now, since my relative tension between spokes is going to be very disparate because of the rim, and all those tutorials assume (rightly so), you have a good rim to begin with.  I was hoping someone could list a methodical way of bringing such a rim back into tension/true/round/dish-ness.  Thanks everyone.


How can i print without "\n" and with parameters  Example:  Print this : print("%d, %d" % (a, b)) without newline   I tried this (but don't work): print("%d, %d" % (a, b),end="")  I have this :     File "./test.py", line 9     print("%d, %d" % (a, b), end="")                                 ^                            SyntaxError: invalid syntax


Connection refused error while accessing my server with AWS elastic IP

I have followed all these below mentioned steps   Create an Elastic IP and point to the Amazon EC2 instance. Goto service Route 53, create a ‘A’ record and point to the Elastic IP. In Route 53, copy the Amazon NS (name server) urls and paste in Namecheap nameserver area.   But after 48 hours my domain name still not reachable. Even i cant access my server with AWS elastic IP.   I have created an elastic IP in AWS for my instance. And my public DNS address got updated.  I contacted Namecheap support team, they said the IP i pointed my domain to is giving them connection refused error. They are getting a "|52.25.76.52|:80... failed: Connection refused." error.  I have referred this  for configuring AWS & Namecheap  Pls help me to fix this


Can someone just explain to me the basic process of what is going on here? I understand everything until we start adding 1's then after that it all goes to hell. I just need some guidance. The Problem with the solution is attached.   Thanks in advance..


Where to download jquery library from internet?

I am new to jquery.I have downloaded jquery-1.12.2.min.js from  ,jquery-ui.css and jquery-ui.js from  want to use some jquery from my web application.Does it safe to use above mentioned js and css from mentioned site?Will it harm my code?


Suddenly I have found that usable RAM is showing less ( 3.19 GB ) than installed ( 8GB ) .. I have checked all videos related to this problem on YouTube.. I have checked with  Resetting BIOS ( Soft Brick and Hard Brick ) Check and Uncheck maximum memory in msconfig. Changed Memory Slots(4) Load with live linux on a pendrive and found same  But, still not getting any solution.. This happens in both Ubuntu and Windows. This problem may be happening from when I installed Ubuntu in Virtual Box and after some use I directly uninstalled virtual box.. I am in need of solution.. Please Help Me.. Thanking you in advance..


symetric inequality for a rational function of three variables

$a,b,c$ are positive real numbers such that $a+b+c=1$. Prove that: $$\dfrac{a^3}{a^2+b^2}+\dfrac{b^3}{b^2+c^2}+\dfrac{c^3}{c^2+a^2} \geqslant \dfrac{1}{2} $$ I have tried with Cauchy-Schwarz inequality in Engel form...


How can I create a reverse theme, like drawing on a black paper?

In Manim (The 3b1b programming language to do animations) we can get some beautiful animations where the background is black, can we do it in LaTeX using Tikz? Here's an example: I want to draw this figure but with a black background. \begin{tikzpicture}[ point/.style={circle,fill,inner sep=1.3pt}] \draw[thin, dashed, black!50!] (0,0) -- (8,0); \begin{scope}[rotate around={15:(8:0)}] \draw[thin, black] (0,0) -- (8,0); \draw[fill, gray!40] (2,0) rectangle (4,1); \draw[black] (2,0) rectangle (4,1); \draw (3,0.5) node{$\bullet$}node[above,right]{$G$}; \draw[dashed, black] (3,0) -- (3,3); \draw[thick, black, ->] (3,0) -- (2.4,1.5) node[above]{$\vec{R}$};  \coordinate(y) at (3,0); \coordinate(x) at (3,1.5); \coordinate(z) at (2.6,1); \pic [draw=black!15!black,text=black,angle radius=9mm,"$\varphi$",angle eccentricity=1.3, ->]{angle = x--y--z}; \end{scope}  \draw[thick, black,->] (2.86,1)--(2.86,0) node[above,right]{$\vec{P}$}; \coordinate(o) at (0,0); \coordinate(i) at (2,0.5); \coordinate(j) at (2,0); \pic [draw=black!15!black,text=black,angle radius=9mm,"$\alpha$",angle eccentricity=1.3, ->]{angle = j--o--i};         \end{tikzpicture}   Or plotting a function as an example Gamma function:  Here's the code from an answer: \begin{tikzpicture}[]  \begin{axis}[ xmin = -4.9, xmax = 5.1,  %ymin = -3.5, ymax = 3.5,   restrict y to domain=-6:6, axis lines = middle, axis line style={-latex},   xlabel={$x$},  ylabel={$y$}, %enlarge x limits={upper={val=0.2}}, enlarge y limits=0.05, x label style={at={(ticklabel* cs:1.00)}, inner sep=5pt, anchor=north}, y label style={at={(ticklabel* cs:1.00)}, inner sep=2pt, anchor=south east}, ]  \addplot[color=red, samples=222, smooth,  domain = 0:5] gnuplot{gamma(x)};  \foreach[evaluate={\N=\n-1}] \n in {0,...,-5}{% \addplot[color=red, samples=555, smooth,   domain = \n:\N] gnuplot{gamma(x)}; % \addplot [domain=-6:6, samples=2, densely dashed, thin] (\N, x); }% \end{axis} \end{tikzpicture}  Is there any method to make these figures with a black background "Dark theme"?


A case on verbs with plural/singular subject

In the following, I believe the first sentence is the correct one as the verb must follow the subject, which is 'A critical aspect' (thought 'nerdy creatures' is plural) Please let me know if I am mistaken.  A critical aspect that might threaten such achievement is the nerdy creatures.  vs.  A critical aspect that might threaten such achievement are the nerdy creatures.


I heard that using a resistor for each LED in parallel is good, and I also watched a video on youtube.  The guy said if your LEDs are the same type and color you can use just 1 resistor. Is there a simple explanation?


any solutions or suggestions on this one?  An integer $n$ is called a $k$-th power if $n = m^k$ for some $m ∈ Z$. Show that if $n > 1$ is not a $k$-th power, then its $k$-th root is irrational, i.e. not of the form $u/v$ for $u, v ∈ N$.


The command was installed on Ubuntu 18.04 LTS using:  sudo apt-get install clang-format  with the following result:  Reading package lists... Done Building dependency tree        Reading state information... Done The following additional packages will be installed:   clang-format-6.0 The following NEW packages will be installed:   clang-format clang-format-6.0 0 upgraded, 2 newly installed, 0 to remove and 2 not upgraded. Need to get 638 kB of archives. After this operation, 2,044 kB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 http://in.archive.ubuntu.com/ubuntu bionic/universe i386 clang-format-6.0 i386 1:6.0-1ubuntu2 [635 kB] Get:2 http://in.archive.ubuntu.com/ubuntu bionic/universe i386 clang-format i386 1:6.0-41~exp4 [3,024 B] Fetched 638 kB in 11s (59.1 kB/s)                                               Selecting previously unselected package clang-format-6.0. (Reading database ... 295327 files and directories currently installed.) Preparing to unpack .../clang-format-6.0_1%3a6.0-1ubuntu2_i386.deb ... Unpacking clang-format-6.0 (1:6.0-1ubuntu2) ... Selecting previously unselected package clang-format. Preparing to unpack .../clang-format_1%3a6.0-41~exp4_i386.deb ... Unpacking clang-format (1:6.0-41~exp4) ... Setting up clang-format-6.0 (1:6.0-1ubuntu2) ... Setting up clang-format (1:6.0-41~exp4) ... Processing triggers for man-db (2.8.3-2) ...   when running man clang-format as is expected:  clang-format - manual page for clang-format 6.0  the manpage is displayed. but when running the command it says:  clang-format: command not found  If anyone can clarify the reason for this (also why clang-format-6.0 works instead of clang-format) would be great.


A few days ago I apt-get installed vim-gtk, when suddenly the installation stopped and I killed my VM (Without letting it finish the installation). Ever since then, when I try to log in, after entering the password I see the screen loading but suddenly it logs out to the login screen again (after few seconds)...   I'm using Ubuntu desktop 16.04 Same behaviour when I log in with different users or guest Still, can have root terminal when logging through ubuntu recovery mode   Any ideas how to fix it? Thanks...


When part of an object becomes the name for the whole

Is there a word to describe when a part becomes the name for the whole, particularly in a jargon sense?  For example, a door to door salesman at the end of the day might talk about how many "doors" he visited, rather than houses, or a pathology nurse might talk about "doing veins" rather seeing patients?  I read a definition along these lines years and years ago, but I've completely forgotten the word. If possible I'm trying to find this same word again.


Use property to show that if $f_n \rightarrow f$ in measure on finite measure set $E$ then $f_n^2 \rightarrow f^2$ in measure on $E$.

Consider the following problem:     Let $E$ have finite measure, $\{f_n\} \rightarrow f$ in measure on $E$ and $g$ be a measurable function on $E$ that is finite almost everywhere. Use the fact that $\{f_n \cdot g\} \rightarrow f_n \cdot g$ to prove that $\{f_n^2 \} \rightarrow f^2$ in measure on $E$. Infer from this that if $\{g_n\} \rightarrow g$ in measure on $E$ then $\{f_n \cdot g_n \} \rightarrow f \cdot g$ in measure on $E$.   I'm struggling understand how I can apply the fact that $\{f_n \cdot g\} \rightarrow f_n \cdot g$ in measure to prove that $\{f_n^2 \} \rightarrow f^2$ in measure. I've been able to come up with a proof of the fact that if $\{g_n\} \rightarrow g$ in measure then $\{f_n \cdot g_n \} \rightarrow f \cdot g$ in measure, and this clearly implies the claim that $\{f_n^2 \} \rightarrow f^2$ in measure. Unfortunately my proof doesn't rely on the fact that $\{f_n \cdot g\} \rightarrow f_n \cdot g$ so it doesn't answer the problem since it explicitly asks us to prove it a certain way.  So far my best attempt to utilize the fact is as follows. Let $\eta > 0$ then by triangle inequality and monotonicity of measure  \begin{align*}     \lim_{n\rightarrow \infty}\mu\left\{ \left|f_n^2 - f^2\right| > \eta \right\} &\leq \lim_{n\rightarrow \infty}\mu \left\{\left|f_n - f\right|\cdot \left|f_n\right| + \left|f_n - f\right| \cdot \left|f\right| > \eta \right\} \\     &\leq \lim_{n\rightarrow \infty}\mu\left\{\left|f_n - f\right|\cdot \left|f_n\right| > \eta/2 \right\} + \lim_{n\rightarrow \infty}\mu\left\{\left|f_n - f\right| \cdot \left|f\right| > \eta/2 \right\} \end{align*}  By the fact that $\{f_n \cdot f\} \rightarrow f \cdot f$ in measure \begin{equation*} \lim_{n\rightarrow \infty}\mu\left\{\left|f_n - f\right| \cdot \left|f\right| > \eta/2 \right\} = \mu\left\{\left|f_n \cdot f - f\cdot f\right| > \eta/2 \right\} = 0. \end{equation*} I don't see how to deal with the other limit without first proving the most general statement $\{f_n \cdot g_n \} \rightarrow f \cdot g$ in measure.   Any help or advice is greatly appreciated.


Will they allow me to collect my luggage at the connection airport and not taking the connecting flight?

My flight is from Toronto to Istanbul through Vienna. Now I need to stay in Vienna and decided not the take the connecting flight.  First, do they let me to cancel the connecting flight? Second,if I am not allowed to cancel it, can I just-while checking in- ask the agent at the airport to put Vienna as my final destination so I can collect it at Vienna, and tell them that I am not gonna take the connecting flight?(I am OK with paying any penalty for that... but would they let me do that?)


Is it possible to have an object 100% pure white without sky blue or sun color tinting the pure whiteness of the photons reflecting/deflecting off an object? Are there any lights that can produce pure white photons (RGB)? And can we see that the color is white or is our eyes going to trick us into thinking the white is a different color? Can scientist produce what can be seen macroscopically as "pure white".


Converting LiDAR files from LAZ to LAS format

I'm trying to convert LiDAR files from the LAZ format (the compressed version) into LAS (the uncompressed version) using  software.   However, I am not really sure how it works. I created a new output folder as I entered in the app interface, but it is totally empty.  I also had tried the following code in the command prompt window:   D:\LiDAR\Laszip\laszip.exe *.laz    and got a message saying 'no input specified'.  In my folder, there are about 100-ish.laz files as well as one imu.laz. Any suggestions?


Which independent variables are most important in predicting the response variable?

I'm a biologist, and I have a large dataset that I'm trying to analyze. Here are the variables I'm working with:   levels of 211 different metabolites in 16 different blood samples (predictor variables) how well each of the 16 blood samples performed in a specific test (response variable)   I am trying to figure out which variable(s) are the most important in predicting the performance of a blood sample in the test.  I would like to make these data more manageable by doing a PCA, but I'm new to this sort of analysis. I understand that a PCA will create groups of principal components (it will group metabolites that covary with each other and label each of these groups a principal component), but I'm not sure how to take into account the response variable in this analysis.  Any help would be much appreciated!!! Thank you.  > summary(metabolites_princomp) Importance of components:                           Comp.1     Comp.2      Comp.3      Comp.4 Standard deviation     3.9608225 0.40128486 0.259868774 0.215004349 Proportion of Variance 0.9805072 0.01006435 0.004220736 0.002889179 Cumulative Proportion  0.9805072 0.99057153 0.994792267 0.997681446 [...]