How to make the space under footnotes disappear?

How do I make the space under footnotes disappear? And to space over the footnote's bar?    Code:  \documentclass[12pt,french]{report} \usepackage{mathptmx} \usepackage{helvet} \usepackage{courier} \usepackage[T1]{fontenc} \usepackage[cp1250]{inputenc} \usepackage[a4paper]{geometry} \geometry{verbose,margin=1in,headheight=12pt,headsep=25pt} \usepackage{fancyhdr} \pagestyle{fancy} \setlength{\parskip}{\medskipamount} \setlength{\parindent}{0pt} \usepackage{babel} \makeatletter \addto\extrasfrench{%    \providecommand{\og}{\leavevmode\flqq~}%    \providecommand{\fg}{\ifdim\lastskip>\z@\unskip\fi~\frqq}% } \makeatother \usepackage{latexsym} \usepackage{pifont} \usepackage{color} \usepackage{float} \usepackage{textcomp} \usepackage{graphicx} \usepackage{setspace} \usepackage[unicode=true,  bookmarks=true,bookmarksnumbered=true,bookmarksopen=false,  breaklinks=true,pdfborder={0 0 0},backref=false,colorlinks=false]  {hyperref} \hypersetup{pdftitle={tito},  pdfauthor={abc},  pdfkeywords={kiko}} \usepackage{lipsum}  \makeatletter \usepackage{multicol} \usepackage{fancyhdr} \usepackage{multirow} \usepackage{longtable} \setcounter{secnumdepth}{4} \setcounter{tocdepth}{4} \usepackage{array} \newcommand{\ts}{\textsuperscript} \renewcommand\theparagraph{\alph{paragraph}.} \renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}%                                     {3.25ex \@plus1ex \@minus.2ex}%                                     {0.5ex \@plus .2ex}%                                     {\normalfont\normalsize\bfseries}} \renewcommand*\l@paragraph{\@dottedtocline{4}{10em}{2em}}  \def\thickhrulefill{\leavevmode \leaders \hrule height 1ex \hfill \kern \z@}  \def\@makechapterhead#1{% \vspace*{10\p@}% {\parindent \z@ {\reset@font \usefont{OT1}{phv}{m}{n} \LARGE Chapitre \thechapter\par\nobreak}% \par\nobreak \vspace*{30\p@} \interlinepenalty\@M \usefont{OT1}{ptm}{b}{n} {\raggedright \Huge #1}% \par\nobreak \vskip 20\p@ \hrule height 1pt \par\nobreak \vskip 45\p@ }}  \def\@makeschapterhead#1{% \vspace*{10\p@}% {\parindent \z@ {\raggedleft \reset@font \scshape \vphantom{\@chapapp{} \thechapter} \par\nobreak}% \par\nobreak \vspace*{30\p@} \interlinepenalty\@M \usefont{OT1}{ptm}{b}{n} {\raggedright \Huge #1}% \par\nobreak \par\nobreak \vskip 45\p@ }}  \lhead{\nouppercase\leftmark} \chead{} \rhead{} \lfoot{} \cfoot{\thepage} \rfoot{} \renewcommand{\footrulewidth}{0.4pt}  \pretolerance=10000 \hyphenpenalty=10000 \exhyphenpenalty=10000  \AtBeginDocument{   \def\labelitemi{\Pisymbol{psy}{183}}   \def\labelitemii{\(\rhd\)}   \def\labelitemiii{\(\rhd\)}   \def\labelitemiv{\(\ast\)} } \makeatother  \begin{document} \chapter{Chap} \lipsum[1]\footnote{\lipsum[1]} \lipsum[1-8] \end{document}


Better way to normalize this kind of data where samples are very similar to each other?

I have a dataset which has float values in every feature, and the feature has the data-points not much varying, here is a part of training-set data :  95.08273,94.13686,95.843,95.83886,95.38811,1 94.37234,93.47385,94.54948,94.67984,93.80062,1 94.02294,94.96799,95.075,95.41348,94.93842,1 95.1664,94.84861,94.82346,95.61005,96.62745,0 95.23271,94.87994,95.42258,95.48337,96.3997,0 93.77203,94.3065,94.33946,93.70812,93.42625,0 94.79427,94.70049,94.40502,94.61435,94.92593,1  The last column of each train data is the class-label - either 0 or 1. And I need to predict the same for the similar test data samples.  I can't seem to determine what basis should be there for classifying the test data, since the samples in the training data are very similar.  I have already tried scaling the data by using scikit-learn's preprocessing.scale method, as well as taking the mean of a column, subtracting from each sample (xi), and then dividing by the standard-deviation, but still accuracy is same as before.  How should I normalize data, and which classifier I should use in this case ?


Is it bad to have Vertices/Edges/Faces just lying on top of the mesh and not actually be connected

Is it bad to have faces just lying on top of the mesh (marked with blue) or is it better to connect them by cutting the mesh under it with knife tool and create 4gon  faces but get more geometry as I did with red ones(marked in red). This is supossed to be game-ready object so it's better to have less faces, on the other hand, this blue marked bars are just lying on top of mesh, and I wonder is that bad for GameReady object.


My computer keeps typing the letter p repeatedly

I'm using an HP laptop running Windows 7 Home Edition.  The moment I reach the login screen the computer automatically types "ppppppppp" in the password place, luckily I have fingerprint login to counter that.  The moment I login, it keeps acting as if I'm typing 'p' repeatedly. I tried removing the button and cleaning under it but it was no use. I've tried restarting, uninstalling the keyboard driver, but it was no use.  I can't go to Control Panel because the moment I get there, it starts typing "pppppp" in the search field and I'm unable to find anything.  I'm typing this from my phone because going anywhere on my laptop seems impossible.


Why doesn't the parent deadlock the child?

I understand this is a single threaded example and this would lock in a multi-threaded example. But given the execution sequence, shouldn't the lock be consumed by the parent, therefore starving the child even in a single thread situation?  class Program {     static readonly object Lock = new object();      static void Main(string[] args)     {         Console.WriteLine("Main start");         Parent();         Console.WriteLine("Main end");         Console.ReadLine();     }      static void Parent()     {         lock (Lock)         {             Console.WriteLine("Parent start");             Child();             Console.WriteLine("Parent end");         }     }      static void Child()     {         lock (Lock)         {             Console.WriteLine("Child start");             Console.WriteLine("Child end");         }     } }   Console output     Main start   Parent start   Child start   Child end   Parent end   Main end


The best scroll direction | Apple v.s. Windows

The two biggest computer companies in the world use opposite scrolling directions!  When you switch from Windows to Apple, you'll notice that Apple has its scrolling reversed. But maybe it's Windows who has its scrolling reversed..  Which makes me wonder:  what scrolling direction is the right direction and should it be different than a the swiping direction of a touch pad?  Things to consider:    What's natural? In what direction would a first time user scroll to go down the page?  Should a mouse have the same scrolling direction as a touchpad?


Have a list of objects that I need sorted by specific object's variable in python

So I have a Person class derived from dict that contains details like first name, last name, and id.    I have the data loaded from a json file into object and instantiated person class per person in the json (about 30 people) and put them in a peopleList list in the following code:    import json  class Person(dict):     def __init__(self, firstname, lastname, personID):         super().__init__()         self.firstname = firstname         self.lastname = lastname         self.personID = personID  peopleList = []  with open('data.json', 'r') as peopleData:     dataObject = json.load(peopleData)      for registrant in dataObject['registrants']:         newperson = Person(registrant["firstname"], registrant["lastname"], registrant["personID"])          peopleList.append(newperson)     Now I'm trying write a function that takes the peopleList and criteria parameter.  This function will sort the list based in alphabetical order based on criteria (firstname, or lastname, or even ID)  Trying to use the peopleList.sort() menthod and failing hard with this.  Any input from you guys would be greatly appreciated here.  :)


I have a few junit tests that take a long time to run.  Is it possible to assign a thread to each test to run them concurrently?  How would this be done?


To get selected tab name from vf page and pass to controller

I need name of the selected tab and pass it to the controller. My code is below: VF page:                                                       Summary

             Incident-Problem

             Availability-Performance

             Service-Finance

         <apex:outputPanel >
                 <apex:repeat value="{!allQuestions}" var="qPreview" id="aQPreview">

                                                                  {!qPreview.orderNumber + ': ' + qPreview.question}
                         <apex:outputPanel >                             <apex:selectRadio layout="pageDirection" value="{!qPreview.selectedOption}" >                                 <apex:selectOptions value="{!qPreview.singleOptions}"/>                             </apex:selectRadio>                         </apex:outputPanel>
                 </apex:repeat>
         </apex:outputPanel>

         Item Three Content

      </apex:form>


What is the difference? "Are you watching" vs "Have you been watching"

What is the difference between these sentences?     Have you been watching TV for the last four hours? Turn it off and get   some exercise?      Are you watching TV for the last four hours? Turn it off and get some   exercise?


Consider this code:  [GlobalErrorBehaviorAttribute(typeof(GlobalErrorHandler))] public class Service1 : IService1 {     public string Recursive(int value)     {         Recursive(value);         return string.Format("You entered: {0}", value);     }   and this is my GlobalErrorHandler:  public class GlobalErrorHandler : IErrorHandler {     public bool HandleError(Exception error)     {         string path = HostingEnvironment.ApplicationPhysicalPath;          using (TextWriter tw = File.AppendText(Path.Combine(path, @"d:\\IIS.Log")))         {             if (error != null)             {                 tw.WriteLine("Exception:{0}{1}Method: {2}{3}Message:{4}",                     error.GetType().Name, Environment.NewLine, error.TargetSite.Name,                     Environment.NewLine, error.Message + Environment.NewLine);             }             tw.Close();         }          return true;     }      public void ProvideFault(Exception error, MessageVersion version, ref Message fault)     {         var newEx = new FaultException(                      string.Format("Exception caught at GlobalErrorHandler{0}Method: {1}{2}Message:{3}",                                   Environment.NewLine, error.TargetSite.Name, Environment.NewLine, error.Message));          MessageFault msgFault = newEx.CreateMessageFault();         fault = Message.CreateMessage(version, msgFault, newEx.Action);     } }   When I call Recursive in the WCF Test Client I get this error. Why can't I handle a StackOverflowException?  Is there any way for handle such this error?


Parts of Australia that aren't dominated by white Australians that are easy for tourists to visit

Basically,  but for Australia.  When I visited Alice Springs, while I was able to meet and exchange pleasantries a bit with Aborigines, virtually all of the staff I interacted with were white or Asian, except for a couple of the staff at the Alice Springs Desert Park.  Are there parts of Australia where a reasonable proportion of employees at ordinary shops, accommodation etc. are Aboriginal or Torres Strait Islander, are viable tourist destinations, and are legally open to outsiders?


How can I continue to access Wizards of the Coast's D&D 3.5 Web articles?

It appears that in anticipation of D&D Next Wizards of the Coast has removed much of the Dungeons and Dragons, 3rd Edition Web content. I didn't perform a thorough search to determine if all the content is removed (e.g. I know the Three Dragon Ante Web enhancement  and the Mind's Eye column about psionic tattoos  are both gone--better not to ask why those are my go-to articles), but it all might be.  What's the best way--and by best I mean both legal and convenient--to continue to access this content?


I recently had a number of my valid answers voted down because people objected to the fact that I added a tagline to the end. The answers were correct for the questions asked and the downvotes were only due to the tagline regarding hiring, which said:     We're hiring! Developers and QA in Washington, DC area (or looking to relocate) should send resumes to careers@example.com.   Are taglines and signatures disallowed?     For more information, see "" in the .


How to install gksu which was removed from distributions?

We are forced to install ClearPass OnGuard which seems to require gksu which was removed from Linux distributions. Is there a way to get it from some 3rd party PPA or other source? Preferably, updated to work well with Ubuntu Disco 19.04.


How to get global application menu for gvim?

Gvim does not have a global menu (appmenu / application menu) in 12.04, and when starting gvim from a terminal, the following warning appears in the terminal after 25 seconds:  ** (gvim:20320): WARNING **: Unable to create Ubuntu Menu Proxy: Timeout was reached   How to fix this?


I’m using importdata to retrieve Yahoo stock information, which works fine on individual rows, but when combined with arrayformula to fill down the page when additional symbols are added does not initiate continue. The formula I'm using is:  =arrayformula(ImportData("http://finance.yahoo.com/d/quotes.csv?s="&CONCAT(A2:A,B2:B)&"&f=snk2l1jkm3m4"))    A2:A contains the stock codes B2:B contains the exchange code, e.g., .ax for Australia


Votes cast from Android app don't highlight until refresh

When I vote using the Android app, the button highlights briefly in orange as expected and then returns to the normal black (so both vote buttons are the same color). I expected the highlighting to remain in place to show my vote.  The post score reflects my vote, and if I tap the vote button again it cancels my vote (and updates the score again).  So my vote is there; it's just not shown.  If I vote, navigate back to the list of questions, and then return to the page where I voted, my vote shows in orange and is persistent. Votes I've previously cast show up and are persistent on first view; it's only new ones that behave like this.  By its nature, it's hard to take a meaningful screenshot.  I don't use the app a lot, so I don't know how new this is. My phone says I'm up to date (1.0.77).


Looping through list and changing list values


Why is my Wi-Fi Process eating >2GB memory

Why is the Wi-Fi process taking so much memory?  EDIT: Apologies, I should have clarified my question. I'm a web developer that spends most of his time developing apps locally. Not interacting with third party apis or database interactions. Possibly it might be my app bundler Webpack serving updated changes constantly to my local server?  Specs   MacBook Pro (Retina, 13-inch, Mid 2014) 2.8 GHz Intel Core i5 8 GB 1600 MHz DDR3 Mojave 10.14.2   cwd / txt /System/Library/CoreServices/WiFiAgent.app/Contents/MacOS/WiFiAgent txt /Library/Preferences/Logging/.plist-cache.ptlzg4rP txt /private/var/db/timezone/tz/2018g.1.0/icutz/icutz44l.dat txt /System/Library/Caches/com.apple.IntlDataCache.le.kbdx txt /usr/share/icu/icudt62l.dat txt /System/Library/CoreServices/SystemAppearance.bundle/Contents/Resources/SystemAppearance.car txt /System/Library/CoreServices/SystemAppearance.bundle/Contents/Resources/VibrantLightAppearance.car txt /System/Library/Keyboard Layouts/AppleKeyboardLayouts.bundle/Contents/Resources/AppleKeyboardLayouts-L.dat txt /Library/MessageTracer/SubmitDiagInfo.default.domains.searchtree txt /private/var/db/mds/messages/502/se_SecurityMessages txt /System/Library/Frameworks/SecurityInterface.framework/Versions/A/Resources/CertLargeStd@2x.png txt /System/Library/Frameworks/SecurityInterface.framework/Versions/A/Resources/CertLargeStd.png txt /System/Library/Fonts/SFNSText.ttf txt /System/Library/Frameworks/AppKit.framework/Versions/C/Resources/Assets.car txt /System/Library/PrivateFrameworks/CoreWLANKit.framework/Versions/A/Resources/Assets.car txt /usr/lib/libobjc-trampolines.dylib txt /System/Library/Frameworks/SecurityInterface.framework/Versions/A/Resources/Assets.car txt /System/Library/CoreServices/SystemAppearance.bundle/Contents/Resources/DarkAquaAppearance.car txt /System/Library/CoreServices/SystemAppearance.bundle/Contents/Resources/DarkAppearance.car txt /System/Library/CoreServices/SystemAppearance.bundle/Contents/Resources/Assets.car txt /private/var/folders/d5/y540nrk96fnckhlwyy_9yxsw0000gp/C/com.apple.wifi.WiFiAgent/com.apple.metal/Intel Iris Graphics/functions.data txt /private/var/folders/d5/y540nrk96fnckhlwyy_9yxsw0000gp/C/com.apple.wifi.WiFiAgent/com.apple.metal/3902/libraries.data txt /usr/lib/dyld 0 /dev/null 1 /dev/null 2 /dev/null 3 /dev/io8log 4 /dev/io8logtemp 5 *:* 6 /Library/MessageTracer/SubmitDiagInfo.default.domains.searchtree 7 ->0x65d3d29751cfa425 8 /System/Library/Frameworks/CoreImage.framework/Versions/A/Resources/ci_stdlib.metallib 9 /System/Library/Frameworks/CoreImage.framework/Versions/A/Resources/ci_filters.metallib 10 /private/var/folders/d5/y540nrk96fnckhlwyy_9yxsw0000gp/C/com.apple.wifi.WiFiAgent/com.apple.metal/3902/libraries.maps 11 /private/var/folders/d5/y540nrk96fnckhlwyy_9yxsw0000gp/C/com.apple.wifi.WiFiAgent/com.apple.metal/3902/libraries.data 12 /private/var/folders/d5/y540nrk96fnckhlwyy_9yxsw0000gp/C/com.apple.wifi.WiFiAgent/com.apple.metal/Intel Iris Graphics/functions.maps 13 /private/var/folders/d5/y540nrk96fnckhlwyy_9yxsw0000gp/C/com.apple.wifi.WiFiAgent/com.apple.metal/Intel Iris Graphics/functions.data    Since I develop, I would prefer to have more memory for simulators, compilers and running dev infrastructure and tools. How can I diagnose why memory is being allocated for wireless networking?


When data gets deleted from your Recycle Bin, what happens to it?

Correct me if I'm wrong here, but when you "delete" something from your PC all your computer does is write over some of the binary with 0's replacing the 1's.  (Or something to that effect) So when you send something to the recycle bin it writes over part of the file, and when you delete from the recycle bin it writes more?


How to mount external SD card at a fixed path in CM13?

In Marshmallow (and consequently in CM13), the external SD card is mounted at a path that contains its serial number. I have a bunch of Tasker tasks, the occasional script, and lots and lots of apps configured with a specific path to the external SD card (in my case, /external_sd because that's where it was in CM12).  Is there anything sensible I can do about this change in Marshmallow? Fixing paths everywhere just because I've upgraded to a faster/larger SD card (which has a different serial number) is not going to be fun.  How would I go about making the external SD card available under "/external_sd" on CM13/Marshmallow?


I get an error when I run sudo /etc/init.d/activemq setup /etc/default/activemq. I'm trying to setup ActiveMQ as a service.  Error:  /etc/init.d/activemq: command not found


How is the tagging system implemented here at S[O|F|U]?

We have a home-grown learning management system (LMS - highly abused term, but I'll be damned if I can find a more succinct way of putting it) that includes a list of classroom classes (filed under various categories) and a list of online educational modules (filed under various categories) - and there have been some (justified) complaints about it being difficult to find things.  I've read a couple of articles on creating a tagging system, and have seen a number of implementations. I was curious as to how the S[O|F|U] implementation was set up as it seems to be much better than most of what I've found.  Please don't hear what I'm not saying: I don't want the code handed to me on a silver platter. I'm just curious as to the general DB/Infrastructure used for the tags here as I like the system much better than what I've found elsewhere.


From Hatcher :  Show that if $n$ is odd, then there exists even continuous functions from $S^n \to S^n$ of any even degree  What I know is there exists maps of any degree from any $S^n \to S^n$ (n need not be odd). But these are not even functions necessarily. How do I fix that?  Edit: $f:S^n\to S^n$ is said to be an even map if $f(x)=f(-x),\forall x\in S^n$.


Can I have a common account across the Stack Exchange family of sites?

. . . or is it set up so that I must have at least one account per site to participate? And if the latter, is there an easy way to keep my profile information synced across all the sites that I am a member of?  I would prefer to have just one login, password, personal description, picture, etc. to remember and maintain.


$A,B,C$ are positive reals with product 1. Prove that $$\left(A-1+\frac1B\right)\left(B-1+\frac1C\right)\left(C-1+\frac1A\right)\leq1$$  How can I prove this inequality. I just need a hint to get me started. Thanks


Let G be a finite group, $|G| = 1575$ and suppose $n_3 =1$. Prove $G$ is abelian

This is the full question:     Let G be a finite group, $|G| = 1575$ and suppose $n_3 =1$,then $n_5=1$ and $n_7=1$. Prove $G$ is Abelian. $n_p$ denotes the number of sylow $p$-subgroups in $G$   $1575=3^2\cdot5^2\cdot7$, I was able to prove that if $n_3=1$ then $n_5=1$ and $n_7=1$. But how do i show from here that $G$ is Abelian ? I was considering using the thm : $ G/Z(G)$ is cylic iff $G$ is abelian. But then there are many cases to consider. Any hints ?


How can I keep photos on icloud that I want to delete from my phone?  If I delete a photo from my phone after I have backed it up to iCloud will it stay in iCloud the next time I back up my phone?


Sorry this is a really basic question. I've only been using Kubuntu for a week or two, and a lot of it is unfamiliar to me still. I did a search, and tried things like sudo apt-get dist-upgrade and sudo do-release-upgrade -m desktop, but nothing I've tried has worked.... and I suspect it shouldn't be that hard. I'm used to using a system that automatically updates itself every day, so it is bizarre to me that I can't even update manually without putting some effort in to it. What's going on here? lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description:    Ubuntu 20.10 Release:        20.10 Codename:       groovy  `


C++ Program communicating with MySQL Database

Does anyone know of a simple way for a C++ program to communicate directly with a MySQL database?  I have looked at MySQL++ and found it to be very confusing.  If anyone knows of a very simple way of doing this, please let me know.  Thanks  P.S. I am developing on a Windows machine.  PHP and MySQL web web application setup.  C++ setup to talk to the serial port.  Thus why I need a way for C++ to talk to the MySQL database directly.


recently I've been reading through Scott Meyers's excellent  book. In one of the last tips he covered some of the features from TR1 - I knew many of them via Boost.   However, there was one that I definitely did NOT recognize: tr1::reference_wrapper.   How and when would I use tr1::reference_wrapper?


unable to connect to wifi and don't have ethernet cable

I have an old HP Mini 110-1026NR netbook. I recently installed Ubuntu 14.04 LTS 32bit. I am unable to connect to wifi and I do not have an ethernet cable, but I do have a working mac and a flash drive. The netbook has a Broadcom chipset BCM4312 and its PCI-ID is [14e4:4315]. The current kernel in use is b43-pci-bridge. Please help.


zsh: inconsistent error handling in assignments

This is zsh -f:  Fereidoons-MacBook-Pro% local a=$(jaja) && echo bad zsh: command not found: jaja bad Fereidoons-MacBook-Pro% a=$(jaja) && echo bad zsh: command not found: jaja Fereidoons-MacBook-Pro%   Why is local messing up error handling?


How do you expand the series:  The sum, starting at j=1 and ending at 6 when the value next to the summation symbol on the right is 4?  Are all of the terms of the series 4?


Measuring roundness using buffers around centroids

I'm trying to measure the compactness (roundness) of some 800 polygons of different shape and size. I created the centroids and what I want to do now is to buffer those centroids with the exact same area of their polygons.  Sorry if this is too simple but I just can't find the way to do it.


I have a site that was being hit with a DDOS the same time every day for the past month, and after spending a month researching and pinpointing the bug, we enacted a bash script which if the connection is reaching 80+ max connections in one minute then the IP is banned and put into IPTABLES.  This worked great for two days and I felt like I finally solved the problem.  But alas, now the person is sending multiple IPs with just one connection on each (review the output here ). This is bringing the site down just as it was when one IP was sending 150 connections per minute.  This of course is an entirely different ballgame when it comes to preventing a DDOS, and I am seeking help from the gurus and anyone nice enough to care, to give some advice. At this point I'm at a loss on how to fix this, and any help would be greatly appreciated.


I am trying to teach myself C language. My transition from C has been rough so far. I am doing a problem from the Book "Intro to C language" and there is a problem that should read a line from the user and then ask the user for an int. My job was to find that particular word corresponding to the int.   Example     Hello World, How are you all doing. // This is the line being read      2 // the word to be printed to the console   Expected Output     World   Below is a snippet of my code that i think is giving me the bus error.   void corrspndToInt (char *theLine, int word, char *result ) {      int start;     int end;     int spaces = 1;     result = "";      //int i;      //search for the nth non-blank character      for(start = 0; start < strlen(theLine) && (spaces < word); start++ ) {          if( isspace ( theLine[ start ] ) ) {              spaces++;         } // end if      } // end for loop      //only need to continue if we haven't gone past the end of the string      if( start < strlen(theLine) ) {          //the next blank character is the end          for ( end = start; end < strlen(theLine) && ( !isspace ( theLine[ end ] ) ) ; end++ ) {          ;          } // end for loop          //we now have the word          result = strncpy ( result, theLine+start, end - start);        } // end if  }   This is how i am printing the result in main function.  printf("%s\n", result );   Now that i have been teaching C language to myself and through SO i learned that returning char arrays should not be done. There were two methods dynamic allocation using function malloc and there was another method which is the one i implemented in my code. I have checked my other method and there seems to be nothing wrong with that. The problem here is with this method as it is not getting the correct word.  I have been trying to debug my program but apparently Mac doesn't accept the gdb command. I have installed the command line tools and everything else but it still says      Command not found   Can anyone please guide me in the right direction here? I have been overthinking this problem from the last 1 hour now.


Convergence/Divergence of $\sum_{n=1}^\infty$ $\frac 1{n^{1+{1/n}}}$

My question is does this series $\sum_{n=1}^\infty$ $\frac 1{n^{1+{1/n}}}$ converge or diverge?  My immediate thought was that this looks like $\sum_{n=1}^\infty \frac 1n$ which I know diverges.  My thinking was that my series diverges as well because for $n$ large, the series would tend to the $\sum_{n=1}^\infty \frac 1n$, but I wasn't sure.


How to get the integer values from the String

My String is like  String body = "GH 1234 RING 5";   I want to extract the number 1234, RING and last 5 into separate variables and want  to compare each of those values..It will be like.. pass = 1234, cmnd = RING and duration = 5 like this.. Please help me to figure out how to achieve this. Im doing like  String body="GH 1234 RING"; String pass=bodypass = body.replaceAll("[^0-9]", "");   to get the 1234 in it.But i cant find how  to retrieve RING and 5.


Is there any way ffmpeg send video to /dev/video0 on Ubuntu?

I want to send video to webcam device on Ubuntu which is loaded on /dev/video0  I've already seen this command that send desktop to it but is there any way to send video to it?     ffmpeg -f x11grab -r 15 -s 1280x720 -i :0.0+0,0 -vcodec rawvideo   -pix_fmt yuv420p -threads 0 -f v4l2 /dev/video0   I should mention that i specifically want to use ffmpeg command.


How can blackbody radition be explained by quantization?

I don't understand why quantization makes a peak on the blackbody radiation curve (so there is no ) and the relationship between that peak and quantization concept.  When the blackbody is heated, it starts to glow. All atoms start to vibrate. Total heating energy must be divided and equally shared by all atoms of blackbody. Right?  But what happens next?  Do some atoms get much more energy to radiate at higher frequency and waste the energy? What happens at the atomic level, so quantization can explain it? What does classical physics claim, so it can not explain the radiation curve?


How to check if specific folders exist in a path in C#

I have a path for example C:/desktop and i wanna know if in this path are any folders named like folder A, folder B... i dont care whats in them i just need to know if they exist. ive seen the similar questions being asked but they were about splitting the path name, but the only path name i have is the most basic one, in those other question the path name was like, c:/desktop/folderA/folderB i wanna just know if C:/desktop/folderA exists or not and do it with a bunch of other folder names


How many ways to choose the basis of a space

Let's consider the space $V = k^n$ for $k = \mathbb{F}_p$ where $p$ is a prime number. How many ways are there to choose the basis of this space?


I have a maps.conf with a lot of map blocks like  map $uri $page_redirect {   include /etc/nginx/maps/rewrites.map; }   ...and a lot of *.map files that redirect pages, for instance:  */homepage/* to *https://example.com* and */my-page/* to *https://example.com/page/*  Now I also have some sections of the site where I need to use a variable for a more dynamic redirect.  /dynamic-page/detail/o5u48i3u5 should redirect to https://example.com/show/page/detail/o5u48i3u5  What I have tried to far was this:  ~^/dynamic-page/detail/(?<location>.*)/$          https://example.com/show/page/detail/$location/;   The redirect itself works, but it won't replace $location in the URL so it looks like this: https://example.com/show/page/detail/$location/  I have even tried  ~^/dynamic-page/detail/(.*)/$          https://example.com/show/page/detail/$1/;   but the URL is https://example.com/show/page/detail/$1/  Can someone point me in the right direction?


How to delete all files in a directory except some?

I need to delete all files in a directory, but exclude some of them. For example, in a directory with the files a b c ... z, I need to delete all except for u and p. Is there an easy way to do this?


Interpretation of the confidence interval

I just read that a (1 - alpha)*100% confidence interval cannot be interpreted as follows: The probability that mu is in the confidence interval is (1 - alpha)*100%.  That is counterintuitive from the proof from NYU below.  In particular, doesn't the last line imply that the probability that mu is in the confidence interval is (1 - alpha)*100%?  If not, can someone explain why?  What am I missing?


Somewhere on Stack Exchange I saw the equation     $$\gcd(2^m-1,2^n-1)=2^{\gcd(m,n)}-1.$$   I had never seen this before, so I started trying to prove it. Without success...  Can anyone explain me (so actually prove) why this equation is true?  And can we say the same when replacing the '$2$' by any integer number '$a$'?


Separate compilation and template explicit instantiation

Summary  This question is about achieving separate compilation of a single template class instantiation in a several different translation units.  Question For non-template classes one can put definitions in several .cpp files and compile them separately. For instance:  file A.h:  class A { public:   void func1();   void func2();   void func3() { /* defined in class declaration */} }   file A1.cpp:  void A::func1() { /* do smth */ }   file A2.cpp:  void A::func2() { /* do smth else */ }   Now I tried to do something similar with template classes. Since I know exactly which instances I will need, I'm explicitly instantiating templates. I'm compiling each instantiation separately, because member functions contain rather large mathematical expressions, which could slow down compiler considerably on high optimization levels. So I tried the following:  file TA.h:  template <typename T> class TA { public:   void func1();   void func2();   void func3() { /* defined in class declaration */} }   file TA1.cpp:  template <typename T> void TA<T>::func1() { /* do smth */ } template class TA<sometype>;   file TA2.cpp:  template <typename T> void TA<T>::func2() { /* do smth else */ } template class TA<sometype>;   It works with clang and GCC on Linux, but fails with GCC on Mac during linking during duplicate symbols error (in this example due to func3, which got instantiated in both TA1.cpp and TA2.cpp).  Then I stumbled upon this sentence in the standard:     C++11.14.7, paragraph 5:     For a given template and a given set of template-arguments,      -- an explicit instantiation deﬁnition shall appear at most once in a program,   -- ...   Does it mean that separate compilation of template classes is not possible (not allowed) even when using explicit instantiation (it is obviously not possible with implicit instantiation)?  PS I don't care since I've got my answer, but whoever thinks it is answered in here  is wrong.


Mechanics of Horizontal Stretching and Shrinking

I know $y=2f(x)$ doubles the $y$ value in vertical shifting, and I know that $y=(1/2)f(x)$ halves the $y$ value. But, why does $y=f(2x)$ halve the $x$ value, and why does $y=f((1/2)x)$ double the $x$ value in horizontal shifting? I looked at the graphs, and I see the difference, but I want to know the math behind why it halves instead of doubling the $x$ value for $y=f(2x)$. Maybe this is a stupid question, but could someone help me out?  Thank you.


The Player's Handbook (p. 114) and Basic Rules use the following language to explain :  Copying a Spell into the Book. When you find a wizard spell of 1st level or higher, you can add it to your spellbook if it is of a spell level you can prepare and if you can spare the time to decipher and copy it. [...] For each level of the spell, the process takes 2 hours and costs 50 gp. The cost represents material components you expend as you experiment with the spell to master it, as well as the fine inks you need to record it. Once you have spent this time and money, you can prepare the spell just like your other spells.  In the Unearthed Arcana that first described Order of the Scribes wizards (), the  feature used the following language:   The quill doesn’t require ink. When you write with it, it produces ink in a color of your choice on the writing surface. The gold and time you must spend to copy a spell into your spellbook are halved if you use the quill for the transcription.   In the final release of the class in Tasha's Cauldron of Everything (p. 77), the language of the 's  feature has changed to the following:   The quill doesn’t require ink. When you write with it, it produces ink in a color of your choice on the writing surface. The time you must spend to copy a spell into your spellbook equals 2 minutes per spell level if you use the quill for the transcription.   Do Order of Scribes wizards have reduced GP costs for copying spells into their spellbook? ** There seem to be at least two possible interpretations of how this affects the GP cost of copying a spell into your spellbook:  Wizardly Quill does not say anything about the GP cost of learning spells, and therefore, the costs remain unchanged. Wizardly Quill reduces the cost of ink to 0 GP. Spells cost 50 GP/level when learning spells that require costly material components (e.g. find familiar). Spells cost 0 GP/level when learning spells whose material components are substituted by an arcane focus (e.g. feather fall).  My inclination, based on the Rule of Specificity, is to rule for the first option.


How exactly does one “control for other variables”?

Here is the article that motivated this question:   I liked this article, and it nicely demonstrates the concept of “controlling for other variables” (IQ, career, income, age, etc) in order to best isolate the true relationship between just the 2 variables in question.    Can you explain to me how you actually control for variables on a typical data set?      E.g., if you have 2 people with the same impatience level and BMI, but different incomes, how do you treat these data?  Do you categorize them into different subgroups that do have similar income, patience, and BMI?  But, eventually there are dozens of variables to control for (IQ, career, income, age, etc)  How do you then aggregate these (potentially) 100’s of subgroups?  In fact, I have a feeling this approach is barking up the wrong tree, now that I’ve verbalized it.  Thanks for shedding any light on something I've meant to get to the bottom of for a few years now...!


How do I make a(n ascii) table to support my Excel question on superuser?

I'd like to ask a question regarding Excel on the Stack Exchange Superuser site, and I have a sample set of data to help illustrate my request for help with a formula. It doesn't seem that HTML tables are supported, so I used an  to try and create something I could post as text. I have tried different formatting options but can't seem to get the columns lined up once it converts from mono spacing to the posting font. Here is an example of what my data looks like (with break tabs added, otherwise it would be even more of a jumbled mess). Can anyone please advise me how they format table data on these forums?  Do you use ASCII? Something else?   +-------------------+----------------------+----------+ | Contribution Type | % Contribution Match | % Salary | +-------------------+----------------------+----------+ | Type 1            |                  0.5 |        - | | Type 1            |                  0.6 |        - | | Type 1            |                      |        - | | Type 2            |                    - |     0.03 | | Type 2            |                    - |     0.04 | | Type 2            |                    - |        0 |  Update thank you! This was marked a duplicate to a question on markdowns, which did help me to solve this by redirecting me to a related question about . The short answer is that yes, I can use ascii to post tables, so long as they are contained within a code block, which is created by putting four spaces at the beginning of each line. You can see the result of this below:  +-------------------+----------------------+----------+ | Contribution Type | % Contribution Match | % Salary | +-------------------+----------------------+----------+ | Type 1            |                  0.5 |        - | | Type 1            |                  0.6 |        - | | Type 1            |                      |        - | | Type 2            |                    - |     0.03 | | Type 2            |                    - |     0.04 | | Type 2            |                    - |        0 |   Update #2: special thanks to Pierre for providing me with the  via the comments section. I do not see any icons to upvote, only flag, but I would like to give you credit for your help here. I hope I've done this properly. Thank you again.


Python library for rendering HTML and javascript

Is there any python module for rendering a HTML page with javascript and get back a DOM object?  I want to parse a page which generates almost all of its content using javascript.


I want to permanently delete my facebook account, but it doesn't allow me despite me putting in the correct password! Kindly help me


How to detect malicious script in my CentOS server?

I am warned from my VPS provider that my server sends a lot of SSH SYN Attack to other servers, but I have no idea how to deal with it.  Here's the detail my provider sent me:     Where can I find the logs that record all of these attack in my server? How do I deal with this (find the script that send these request) step by step ?


What's the difference between a random variable and a statistic?  It seems that formally, a random variable is simply any real-valued function (and its domain is a set that we call a "sample space").  But isn't the exact same also true of a statistic? That is, isn't a statistic also simply any real-valued function (whose domain is a set called a "sample space")?    Example. We roll a die. The sample space is $\Omega=\{1,2,3,4,5,6\}$.  Let $T$ be double the value of the die roll: Formally, $T:\Omega\rightarrow \mathbb R$ is the function defined by $T(x)=2x$.  Is $T$ a random variable, a statistic, or both?    In your answer, please give:   A precise definition of a random variable A precise definition of a statistic An answer to the question in my example: "Is $T$ a random variable, a statistic, or both?"


How to change the Nautilus keyboard shortcut for changing tabs?

I'm looking for a way to change the keyboard shortcut for changing tabs from CtrlPageUp to CtrlTab.  I think it's a very common and useful shortcut and I was surprised to discover it isn't include in the Keyboard Shortcuts editor.


Extracting specific OpenStreetMap tags in ArcGIS Desktop?

The purpose of my research is to look into public ITS (Intelligent Transport System). To do this in a realistic way I need not only the city map but also the public transport routes.   I work with ArcMap 10.3. As input data an OSM file, I use ArcGIS Editor for OpenStreetMap to import it.   I have the list of points , lines and polygones but in attribute table most of information are missing (e.g., public route numbers, directions and operation time)  How can I extract the missing information?


I have a skeleton rig and mesh configured in blender that I have imported from 3rd party application.  The rig and mesh are already working together correctly in blender.  I would like to adjust the position of some of the bones to align with animations from another 3rd party application.   Currently 1 or 2 bones cause the mesh to deform incorrectly due to differences in bone position between the animations and the armature for my skeletal mesh.  So the question, is it possible to move the position of the bone without the attached mesh being deformed during the move and maintain the existing weight painting for the new bone position?  So for example in my rig the neck bone is positioned more towards the back of the neck surface, but the neck bone in the animation is more centered, so when I apply the animation the head of my mesh is artificially leaning forward due to relocation of neck bone.  When I try to move any bone in my rig the attached mesh moves with it  Hopefully the makes some form of sense :oo  Thanks in advance


Evidence for data mining (specification search) in published results

Is there an established way to assess the prevalence of data mining (as in specification search, not in the machine learning sense) in academic publications?  I vaguely remember hearing something about meta studies plotting p-values against sample-sizes or something of that sort, but I can't seem to find a single reference and fail to see right-away why this would be informative.


Is there a way to catch the change event of a particular field/component? I saw on the AuraDocs that there is a valueChange event but trying to handle it makes the app throw an error on load. I was wondering if I could build some automatic field validation / search suggestions without relying on other js libraries.


The french babel gives me a missing \begin{document}

My impression is that is an already answered question. However, I am really stuck with this:  This code:  \documentclass[french]{book}  \usepackage[utf8]{inputenc} \usepackage{babel}  \usepackage{lipsum} \usepackage[backend=biber, uniquename=false, uniquelist=false, style=apa, doi=false, isbn=false, url=false, maxcitenames=3, uniquelist=false, natbib]{biblatex}      %%Bibliography format \addbibresource{allbiblio.bib} \DeclareLanguageMapping{frenchb}{american-apa}  \AtEveryBibitem{\clearfield{labelmonth}} \AtEveryBibitem{\clearfield{note}}  \DefineBibliographyStrings{frenchb}{bibliography = {Bibliographie}, references = {Références},}   \begin{document}  \lipsum  An example of citation \citet{Aslin1998}  \printbibliography  \end{document}   gives the following error:  ! LaTeX Error: Missing \begin{document}.  See the LaTeX manual or LaTeX Companion for explanation. Type  H <return>  for immediate help.  ...                                                l.515   \StartBabelCommands*{\BabelLanguages}{d                                                ate}   I tried some other thing in place of "french" :   "francais" and "frenchb" give the same output Other language as "english", "canadian"... are ok when I delete the .aux files   And when I try to just remove the babel package :  \documentclass{book}  \usepackage[utf8]{inputenc}   \usepackage{lipsum} \usepackage[backend=biber, uniquename=false, uniquelist=false, style=apa, doi=false, isbn=false, url=false, maxcitenames=3, uniquelist=false, natbib]{biblatex}      %%Bibliography format \addbibresource{allbiblio.bib} \DeclareLanguageMapping{frenchb}{american-apa}  \AtEveryBibitem{\clearfield{labelmonth}} \AtEveryBibitem{\clearfield{note}}  \DefineBibliographyStrings{frenchb}{bibliography = {Bibliographie}, references = {Références},}   \begin{document}  \lipsum  An example of citation \citet{Aslin1998}  \printbibliography  \end{document}   I can't get rid of this error:  ! Undefined control sequence. <argument> \mkbibdateapalongextra                                    {labelyear}{labelmonth}{labelday}\iffieldu...   Question:  Is there a way to create document in french (and keep the american APA formatting for the bibliography) ?


What is the outward force on the Moon that makes it go in orbit rather that falling straight to the Earth?

So, we know that the gravity is responsible for pulling the Moon towards the Earth. But because it moves in an orbit, it makes me think that there must be a force that is causing the moon to travel in the direction other than the Earth's. So it doesn't fall straight to the Earth.


Java passing values into IN in sql WHERE clause

I have a sql query like  (sqlQuery) SELECT * FROM table1 WHERE to_char(id) in (?)   Then in my prepared statement  preparedStatement ps = new preparedStatemend(sqlQuery) ps.setString(1,param);   where my param is a string chain looking like param = '12','34', '444'  Now, I thought that when I execute it then everything will be ok, but it's not and I get and error like ORA 01460 uninmplemented or unreasonable conversion.  So, how can I pass my parameter consists of a few valuse into the IN clause in sql query?


Activate WinXP Pro downloaded from MSDN with a retail license key

I've rebuilt an old laptop for a friend that had WinXP Pro installed. I downloaded an ISO from my MSDN subscriber account because I figured that's a safe and legal way to get the ISO, and I'd just use the license key from the label on the bottom of the (Dell, FWIW) laptop.  However, using that license key I just get errors about it being invalid.  The download wasn't marked as a volume license edition or anything, but could it be they've done something to the MSDN ISO such that it can't be used with even a legal retail key?  Do I need to find somewhere to download a "safe" retail ISO and start over?


Most entries for undead say they are animated by magic, usually described as dark, necromantic, etc, but still magic. Could these undead be destroyed by Dispel Magic if upcast enough to match the level of magic used to create that Undead?   The only undead creature I could find whose entry mentioned Dispel Magic was the Lich, and use of Dispel Magic only freed any trapped souls in the Phylactery, and didn't dispel the phylactery itself. Other than that, most undead entries talk about how they are magically animated. (Banshees being one exception I found, with no mention of magic involved in creating them)


Basically, I am writing an addon for a Minecraft mod called Aura Cascade.  Aura Cascade adds aura (as the name suggests), which comes in different colors. I wanted to add some colors of aura, but the valid colors are defined in an enum like this:  public enum EnumAura{WHITE,BLACK,RED,ORANGE,YELLOW,GREEN,BLUE,PURPLE}   How would I add values to EnumAura at runtime?  To clarify, all of my code must run after Aura Cascade is initialized.


If I'm using only one focus point, am I doing it wrong?

Unless I have to shot a person or an object which moves, I set my camera to use only one focus point at the middle.  It feels just more natural and so easy: when I need to focus on something which is not in the center of the photo, I start by focusing on it, then move my camera to take a shot. When doing otherwise, I failed to capture numerous moments because of the camera deciding to focus somewhere else.  On the other hand:   My Nikon D7000 has 39 focus points, and newer and more expensive cameras have even more. Also, the factory settings are to keep all the available focus points active, including, I believe, on professional cameras such as Nikon D4. I often see people doing DSLR reviews keeping all the focus points active.  keeping the default auto-focus settings, highlighting the fact that the camera figures very well which point should be used to focus.   Have I misunderstood how to use properly all auto-focus points settings? What could explain that I find it much easier to use a single focus point, while it's not the case for many people?


I am wondering if and how to add your own picture here.


WxPython offline installation on Ubuntu 13.04

How can I install WxPython offline on my Ubuntu 13.04.


Here is my code:  String[] magic = {"stick", "hat", "witch"}; String magic1 = magic.toString(); String magic2 = Arrays.toString(magic);  System.out.println(magic1);         // this is printing a memory location System.out.println(magic2);         // this one prints: [stick, hat, witch]     What is the difference between magic1 and magic2?


Functor from category of commutative F-algebras to Sets is representable

Here's an interesting question:  Let $F$ be a field and $a\in F$. Prove that the functor from the category of commutative $F$-algebras to $\textbf{Set}$ taking an algebra $R$ to the set of invertible elements of the ring $R[X]/(X^2-a)$ is representable.  To make my writing easier, let $\textbf{F-alg}$ denote the category of commutative F-algebras, and let $\mathcal{F}$ denote our functor from $\textbf{F-alg}$ to $\textbf{Set}$. We want to find a commutative $F$-algebra $K$ such that there is a natural isomorphism $\textbf{F-alg}(K,-)\cong \mathcal{F}$. I think it might follow from the fact that the set of invertible elements of $R[X]/(X^2-a)$ is in 1-1 correspondence with $\textbf{F-alg}(F[Y,Y^{-1}],R[X]/(X^2-a))$ for all commutative $F$-algebras $R$. Other than that, I am stuck. Having an $F$-algebra homomorphism mapping to $R$ correspond to an invertible element of $R[X]/(X^2-a)$ doesn't seem obvious. Any hints are appreciated!


List of Menu bl_idnames? INFO_MT_file_export, etc

I am loosing my mind here.   Every example addon in blender uses bpy.types.INFO_MT_file_export yet not a single doc explains where the hell the name INFO_MT_file_export comes from.  The doc for bpy.types doesn’t have anything about it. Which leads me to believe we are accessing some object.  I can draw the conclusion that it’s a bl_idname for the info menu and the export submenu, but I don’t understand why we can access it using the dot operator inside of bpy.types, or why we can call the append and remove function if it’s a type of Menu.  Moreover, is there a list or something of all of these predefined possible menu ids?


Story about a 4 dimensional creature attacking earth

It's in a similar vein to Flatland, except in 3D. A 4D creature attacks Earth, using its 4-dimensional capabilities to its advantage. The protagonist defeats the creature by staking it to the ground. I'm fairly sure it's a well known story but the name evades me.


Is there any way/ function to unclick in jQuery?

I am basically selecting a checkbox by click function. And i want to unclick /unselect it.  $("#element").click();  Is there any function unclick() exists ?  I tried with with prop(),unbind(),off() but no luck. Please assist me in getting this right.


Can't log into ubuntu 13.10, tried unity, cinnamon and gnome session

I try to log in on the normal log in screen and the screen goes black for a second and then kicks me back to the log in screen. I can log in with a guest session just fine, however. I've tried this with unity, cinnamon and good old fashion gnome, and the same thing happens with all three. I've looked through the log files, but none of them seem to have anything related to this problem. Right now, cinnamon and unity have been completely removed from the system.


How do you display words, not variables, in equations in LaTeX?

In particular, I need to display the following: P(success) = size of successful region/size of possible region But with a nice divisor line for the fraction. If I just enter this in typical fashion LaTeX makes each letter look like a variable:  $P(success) = \frac{size of successful region}{size of possible region}$


Array of Strings into an ArrayList of Arraylist

I would like to convert an Array of Strings into an ArrayList of ArrayList, where the inner ArrayList has a dynamic number of elements. Who can help ? Thanks in advance  String[] sentences = {"hello","how are you","i am fine","and you ?","thank you"} //Output with number of elements = 2 ["hello","how are you"] ["i am fine","and you ?"] ["thank you"] //Output with number of elements = 3 ["hello","how are you","i am fine"] ["and you ?","thank you"]


I am facing a problem here with PDO::execute(). The thing is that i have 3 databases and i want to build a Singleton class and a universal query method. So my DB class structure is this:  class DB{         private static $_instance = null;         private $_pdo1, $_pdo2, $_pdo3,                 $_query,                 $_results,                 $_error = false,                 $_count = 0;          private function __construct(){             try{                 $dns1 = 'mysql:host='.Config::get('mysql1/host').';dbname='.Config::get('mysql1/dbname').'';                 $dns2 = 'mysql:host='.Config::get('mysql2/host').';dbname='.Config::get('mysql2/dbname').'';                 $dns3 = 'mysql:host='.Config::get('mysql3/host').';dbname='.Config::get('mysql3/dbname').'';                 $username1 = Config::get('mysql1/username');                 $username2 = Config::get('mysql2/username');                 $username3 = Config::get('mysql3/username');                 $password1 = Config::get('mysql1/password');                 $password2 = Config::get('mysql2/password');                 $password3 = Config::get('mysql3/password');                 $this->_pdo1 = new PDO($dns1, $username1, $password1);                 $this->_pdo2 = new PDO($dns2, $username2, $password2);                 $this->_pdo3 = new PDO($dns3, $username3, $password3);             }catch(PDOException $e){                 die($e->getMessage());             }         }           public static function getInstance(){             if(!isset(self::$_instance)){                 self::$_instance = new DB();             }             return self::$_instance;         }           public function query($sql, $params = array()){             $this->_error = false;             if($this->_query = $this->_pdo1->prepare($sql) || $this->_query = $this->_pdo2->prepare($sql) || $this->_query = $this->_pdo3->prepare($sql)){                 if(count($params)){                     $x = 1;                     foreach($params as $param){                         $this->_query->bindValue($x, $param);                         $x++;                     }                 }                 if($this->_query->execute()){                     echo "Success";                 }             }         }     }   in Line 49 i get this error:  Fatal error: Call to a member function execute() on boolean in /htdocs/DatabaseStructure/classes/DB.php on line 49   line 49: if($this->_query->execute())  Also tried but without success:  if($this->_query->execute() == TRUE) if(!$this->_query->execute() == FALSE)   Any ideas why this is giving me an error?


Fitting power law with loglog or exponential?

I have $x$- and $y$-data, and I want a power-law fit ($y=ax^b$). I always fit $\log(x)$ and $\log(y)$ by $p_1x+p_2$ (Matlab poly1), but when I fit $x$ and $y$ with $p_1x^{p_2}$, I did not get exactly the same result. Why?!  And what is the best way for doing this? First take logs then linear fit??


SyntaxError: EOL while scanning string literal while doing string interpolation for file names

I am trying to write the following line for a function:     a.to_csv("~\Desktop\" + file.split('\\')[-1])  but I get SyntaxError: EOL while scanning string literal  I also tried an f string: a.to_csv(f"~\Desktop\{file.split('\\')[-1]}")  but I get SyntaxError: f-string expression part cannot include a backslash  I didn't think this would be such a problem, any help would be appreciated. I am trying to extract the file name part of a path.


Can an electron be in two places at the same time?

So I've been reading a bit and watching some videos about the double slit experiment, and therefore the wave particle duality; I've also read this "implies" that a particle can be in two places at the same time. Can you clarify this, and how could that be possible?


New email template: small typo or you love us? :p

I want to say that I was very surprised to see the new email template, you did great work as usual.  I just wanted to point out that there is a small <3 at the bottom of the email. I guess that's not a typo, but anyway, it might be.    See you on Stackoverflow!


Attempting to Extrude Imported SVG Curve

I am attempting to extrude a logo that has been imported from an SVG file. The SVG file was made in Adobe Illustrator. I deleted many extraneous layers (at this point, curves) upon import to have just a few main layers.  However, I then desired to extrude this, either through a solidify modifier, or the extrude option in the curves panel. Whichever I try, the result is the same: even if the thickness is 0.1, the shape will go off into infinity for the extrusion.   It appears that the vertices are fine and there are no duplicate/overlapping ones (but please check me), and so I have no idea what could be causing this! This is the first time I've ever tried importing an SVG like this to use, so any pointers are welcomed!  showing extrusion off to infinity with settings    File:   Thanks, Nathan


QGIS 2.10.1 (64bit) rotation field setting missing

I cannot find the the rotation field setting under the properties-layer settings-advanced (for styles) menu in the new release of QGIS (2.10.1 64bit). The only setting what is available there is the "symbol levels". Any idea where can I find this function?


Recently I drove on a road not yet mapped on . As soon as I get back, I will add it. It made me wonder if every piece of land is already mapped, or if you could still have a bit of adventure, doing some real exploring.


Handle NullPointerException on reading null value from zoho reports database

Chatlet Created Chatlet Thrown Inside reply 5684dc24617149a601dea913 Yes, Please let me in. java.lang.reflect.InvocationTargetException  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)  at java.lang.reflect.Method.invoke(Unknown Source)  at com.teamchat.client.sdk.impl.TeamchatAPIImpl.invokeMethod(Unknown Source)  at com.teamchat.client.sdk.impl.TeamchatAPIImpl.onMsg(Unknown Source)  at com.teamchat.client.sdk.events.EventStreamConnector.onMsg(Unknown Source)  at com.teamchat.client.sdk.impl.SimpleEventsExecutor.notifyCallbackMessage(Unknown Source)  at com.teamchat.client.sdk.events.EventStreamImpl.handleLine(Unknown Source)  at com.teamchat.client.sdk.events.EventStreamImpl.fetchEventStream(Unknown Source)  at com.teamchat.client.sdk.events.EventStreamImpl.fetchOnceAndReturnInterruptedStatus(Unknown Source)  at com.teamchat.client.sdk.events.EventStreamConnector.getEvents(Unknown Source)  at com.teamchat.client.sdk.events.EventStreamConnector.mainloop(Unknown Source)  at com.teamchat.client.sdk.events.EventStreamConnector.access$000(Unknown Source)  at com.teamchat.client.sdk.events.EventStreamConnector$1.run(Unknown Source)  at java.lang.Thread.run(Unknown Source) Caused by: java.lang.NullPointerException  at frontEnd.sendRequest.onReply(sendRequest.java:75)  ... 16 more     I am currently working on task where I need to throw some message on reading null value from the database cell. But When I try to do so my code throws NullPointerException. I tried to handle it using try catch block but nothing helped me.    public String getCellData(String sql_query) throws Exception {   System.out.println("Inside getCellData");   String cell_data = "";   try{    JSONArray queried_data = (JSONArray)db_work.retrieveQueryRows(db_work.retrieveData(sql_query).toString());    for (int i = 0; i < queried_data.size(); i++) {     JSONArray queried_row=(JSONArray) queried_data.get(i);     cell_data = queried_row.get(0).toString();    }         }   catch(NullPointerException e)   {    cell_data="empty";    return cell_data;   }   return cell_data;  } if(response.equals("Yes, Please let me in.")){    String gender = fetch_details.getCellData("select * from Group_Join where Room='"+room_id+"'");    System.out.println(gender);    String goal = fetch_details.getCellData("select * from Group_Join where Room='"+room_id+"'");    System.out.println(goal);    api.performPostInCurrentRoom(new TextChatlet("Sure, thanks. We will add you to the support group."));    if (goal.equals("empty")) {     if (gender.equals("empty")) {      System.out.println("Gender and Goal Both Empty");      PrimaryChatlet gender_goal_chatlet=new PrimaryChatlet();      gender_goal_chatlet.alias("GenderGoal");      Form gender_goal_form=api.objects().form();      gender_goal_form.addField(api.objects().select().name("Goal").label("Goal").addOption("Weight Loss").addOption("Weight Gain").addOption("Muscle Tone"));      gender_goal_form.addField(api.objects().select().name("Gender").label("Gender").addOption("Male").addOption("Female"));      gender_goal_chatlet.setReplyScreen(gender_goal_form);      api.performPostInCurrentRoom(gender_goal_chatlet);     }


How to show that a polynomial has real root between two given values?

Let $C_0,C_1,\ldots,C_n$ are real constants. It is given that $$C_0 + \frac{C_1}{2} + \ldots + \frac{C_{n-1}}{n} + \frac{C_n}{n+1}= 0$$ We need to prove that the equation $C_0 + C_1 x + \ldots + C_{n-1} x^{n-1} + C_{n}x^{n} = 0$ has at least one real root between 0 and 1. This is taken from Rudin pg-114. I Need some help in the last part of the following proof:  Partial proof:   Let $f(x)= C_0 + C_1 x + \ldots + C_{n-1} x^{n-1} + C_{n}x^{n}$.  We have: $$f'(x)= C_1+ 2C_2 x + 3C_3 x^2 + \ldots +nC_n x^{n-1}$$  $$f'(0)=C_1, \ f'(1)= C_1 + 2C_2 + 3C_3 + \ldots +(n-1)C_{n-1}+ nC_{n}$$ I would probably want to show that $f'(0)$ and $f'(1)$ are opposite in sign so that we can claim that there exists at least one $x \in (0,1)$ such that $f'(x)=0$. This is possible because $f(x)$ is a polynomial and hence continuous, differentiable function. Going forward, we use: $$C_0 + \frac{C_1}{2} + \ldots +\frac{C_{n-1}}{n} + \frac{C_n}{n+1}= 0$$ to get: $$C_1 = -2\left(C_0 + \frac{C_2}{3}+ \ldots +\frac{C_n}{n+1}\right)$$ Using this we get the following: $$f'(1)=-2C_0 + \sum_{k=2}^{n} \frac{(k+2)(k-1)}{k+1} C_{k}$$ $$f'(0)=-2C_0 -2 \sum_{k=2}^{n} \frac{1}{k+1} C_{k}$$ But how do we conclude that $f'(1)$ is opposite in sign of $f'(0)$ ?


Looking for an appropriate English name to replace my Chinese name

Background: I am Chinese, and after living abroad from China for several years, I realize that I need an English name anyway. I’ve seen too many confused faces looking at my Chinese name. My Chinese Name: I am male, my Chinese first name is (IPA): /ʃəʊ/-/dəʊ/, and my family name is: /dʒi/. (Check ipa-reader.xyz if not clear.) Any advice about what could be a good idea of a first name, if the last name sounds like "G"? Something about myself: I'm a introvert, nerdy person. I don't like social, small talk, public area. I enjoy programming, writing, arguing. Physically I am short, slim, with a huge glasses.


A question on a sequence in a Banach algebra

If $\{u_{k}\}_{k=1}^{\infty}$ is a sequence in an Banach algebra (and more specifically, in the set of all the bounded linear operators of a Banach space $X$). If $$\sum_{k=1}^{\infty}\lambda^{k}u_{k}=0,\quad \text{for every $\lambda\in \mathbb{D}(0, 1/3)$},$$ where the $\mathbb{D}(0, 1/3)~$ denotes an open disc centered at $0$ and radius $1/3$.   Then can we conclude that $\boldsymbol{ u_{n}=0}$, for every $\boldsymbol{n}$?


What is the difference between POST and PUT in HTTP?

According to , POST is used to create a resource:  The POST method is used to request that the origin server accept the entity enclosed in the request as a new subordinate of the resource identified by the Request-URI in the Request-Line.  According to , PUT is used to create or replace a resource:  The PUT method requests that the enclosed entity be stored under the supplied Request-URI. If the Request-URI refers to an already existing resource, the enclosed entity SHOULD be considered as a modified version of the one residing on the origin server. If the Request-URI does not point to an existing resource, and that URI is capable of being defined as a new resource by the requesting user agent, the origin server can create the resource with that URI.  So which HTTP method should be used to create a resource? Or should both be supported?


How do I find out which DOM element has the focus?

I would like to find out, in JavaScript, which element currently has focus. I've been looking through the DOM and haven't found what I need, yet. Is there a way to do this, and how?  The reason I was looking for this:  I'm trying to make keys like the arrows and enter navigate through a table of input elements. Tab works now, but enter, and arrows do not by default it seems. I've got the key handling part set up but now I need to figure out how to move the focus over in the event handling functions.


How to create a class template including class in .h and two .cpp files?

My aim to create a very simple class template. I can do it in one .cpp file, but I insist on having the same class defined in .h file, its method in .cpp file and finally execute it in .cpp (main) and have some troubles.  So, in class.h I have what follows:  #include<iostream>  using namespace std;   template <class T> class templateClass {     T x, y; public:     templateClass(T, T); // constructor     T bigger(); };   On the hand in methods.cpp there is:  #include<iostream> #include"class.h"  using namespace std;   template <class T> templateClass <T> ::templateClass(T a, T b) {     x = a;     y = b; }  template <class T> T templateClass<T>::bigger() {     return (x > y ? x : y); }   Finally in main.cpp I have  #include<iostream> #include"class.h"  using namespace std;    int main()  {     templateClass<int> obj(12, 47);      return 0; }   In the end, I obtain an error unresolved external symbol "public: __thiscall templateClass::templateClass(int,int)" (??0?$templateClass@H@@QAE@HH@Z) referenced in function _main templateClass ...  Can you help me with explaing what is wrong and why the same works if put everything in one .cpp file without seperating?


Is it possible to set Firefox as the default browser in iOS?

Is it possible to search something using Firefox in Spotlight search? When I choose the option "search in the internet" it always open Safari. My question is then, is it possible somehow to set Firefox as the "default" browser in iOS?  I am using iOS 9.1 in an iPad mini.


public class Test {   public static void main(String[] args) {     int[] oldList = {1, 2, 3, 4, 5};     reverse(oldList);     for (int i = 0; i < oldList.length; i++)       System.out.print(oldList[i] + " ");   }    public static void reverse(int[] list) {     int[] newList = new int[list.length];      for (int i = 0; i < list.length; i++)       newList[i] = list[list.length - 1 - i];      list = newList;   } }   how come the method does not apply and still get 1 2 3 4 5? thank you !


In my module, I was trying to make use of db_or() in this way...  $filterSparten = db_select($this->tbl_hat_sparte, 'hs')   ->fields('hs', array('hat_AID'));  $or = db_or();  foreach($_GET['tags'] as $tag) {   $or->condition('hat_KID', $tag);  }   $filterSparten->condition($or)   ->execute()   ->fetchAssoc();   ...which, unfortunately, only returns a SelectQuery-object:  SelectQuery Object (     [fields:protected] => Array         (             [hat_AID] => Array                 (...   Why doesn't my code return a fetched results-object? I have compared it several times with the examples on the Drupal-pages, but I can't help myself with it.


Is it possible to run games in Dosbox with a better scaler / filter than the ones available in vanilla dosbox?

As many of you probably know, quite a few games on sites like GOG.com use Dosbox to start games which otherwise would be unplayable, due to their age. The graphics of such games (when played full screen on today's monitors) are abhorrent, of course.  For this reason, Dosbox offers to start the games with hardware acceleration (I use Direct3D), and to use a scaling engine to upscale the game to modern-day resolutions. The problem is that with most of these scaling engines, the picture becomes really small in fullscreen, since even when the picture is enlarged 3x, the resolution is too small. Dosbox offers no workaround for this (either have a very pixelated picture, or a small one).  However, then I saw videos such as this one , where the author claims to play the game at 1920x1200 (my own resolution), with a scaling engine termed HQ6x. The game looks quite gorgeous (if slightly cartoony). Problem is, in vanilla Dosbox, the highest scaler you get is HQ3x, and I couldn't find any scalers higher than that to download and easily install into Dosbox  Even after an hour of googling, I turned up empty. Is it possible to download, install and use a better scaling engine than what is available in vanilla dosbox, and if so, how?


I'm working in a project for university using LaTeX and I'll make a gif explaning the radians of math. And I really don't know how to make this type of line    What I have done so far  \documentclass[border=1cm]{standalone} \usepackage[utf8]{inputenc} \usepackage{tikz} \begin{document}  \begin{tikzpicture}      \begin{scope} \draw (0,0) circle (10cm); \draw[line width=0.15cm, blue] (10,0) arc (0:360:10) ;  \draw[-] (-12,0) -- (12,0) node[right] {$x$}; \draw[-] (0,-12) -- (0,12) node[above] {$y$}; \draw[line width=0.15cm,red] (0,0) -- (10,-0); \node[scale=15.5, red, right, opacity=0.5] at (2,2) {r};  \draw[red][fill] (0,0) circle (0.2cm); \draw[red][fill] (10,-0) circle (0.2cm);     \end{scope}   \end{tikzpicture}  \end{document}


I have frequently encountered both $\langle a,b \rangle$ and $[a,b]$ as notation for closed . I have mostly encountered $(a,b)$ for open intervals, but I have also seen $]a,b[$. I recall someone calling the notation with $[a,b]$ and $]a,b[$ as French notation.   What are the origins of the two notations?  Is the name French notation correct? Are they used frequently in France? Or were they perhaps prevalent in French mathematical community at some point? (In this  Bourbaki is mentioned in connection with the notation $]a,b[$.)      Since several answerers have already mentioned that they have never seen $\langle a,b \rangle$ to be used for closed intervals, I have tried to look for some occurrences for this. The best I can come up with is the article on , where these notations are called Czech notation and French notation. Using $(a,b)$ and $[a,b]$ is called English notation in that article. (I am from Central Europe, too, so it is perhaps not that surprising that I have seen this notation in lectures.) I also tried to google for  or . Surprisingly, this lead me to a  where this notation is used for open interval.


A waiter says to two customers who ordered two bottles of mineral water.  Which should he say? I'll get you the waters vs I'll get you the water  I found this page which contains:   Here are your waters and your watering place. Drink and be whole again beyond your confusion.  What does the "waters" mean in this example?


Are there any places to leave luggage in Brussels, for short and/or long periods of time?

Is there a place where one can leave luggage for more than one day in Brussels? It can be either in the airport or the central station.  I know that there are lockers in the central station. The problem is that these are usually restricted to 24h.  Are there any other services, in Brussels, that take luggage for longer than 24h?


Question based on Triangle Inequality $\displaystyle |x+y|\leq |x|+|y|$

If $x,y,z\in \mathbb{R}-\left\{0\right\}$. Then prove that  $\displaystyle 1\leq \frac{|x+y|}{|x|+|y|}+\frac{| y+z|}{| y |+| z |}+\frac{| z+x|}{| z |+| x |}\leq 3$   My Try:: Using Triangle Inequality  $\displaystyle | x+y | \leq | x |+| y |\Rightarrow \frac{| x+y|}{| x |+| y |}\le 1$  Similarly $\displaystyle | y+z | \leq | y |+| z |\Rightarrow \frac{| y+z|}{| y |+| z |}\le 1$  Similarly $\displaystyle | z+x | \leq | z |+| x | \Rightarrow \frac{| z+x|}{| z |+| x |}\le 1$  Now Add all three equations::  $\displaystyle \frac{| x+y|}{| x |+| y |}+\frac{| y+z|}{| y |+| z |}+\frac{| z+x|}{| z |+| x |}\leq 3$  But I did not Understand How can I calculate Lower value of the Given expression.


Reduce the number of reviews needed to complete an item in the CV queue

There are currently 95.3k items in the Close Vote queue, and 2 items in the Reopen Votes queue. The number of reviews needed to close a question from the CV queue is 5, which is ridiculously high. Here's :  In the past 90 days, 46,506 close flags have been processed; 45,707 were marked as "helpful" (resulted in at least one close vote) and 34,000 have resulted in questions being closed.  That's 73% accuracy from <3k users flagging; i.e. the people we believe to be least-able to recognise a close-worthly question are already getting 3/4 of them right... do we really need a further 5 >3k users to back them up?  Here's my actual : Let's find a number n, such that requiring only n reviews to end a review results in the same action being taken as requiring 5 reviews, y% of the time. If we require only 3 reviews instead of 5, and we end up with the same outcome 95/90% of the time as we would do using 5 reviewers, why aren't we doing that already? Yes, I just made those numbers up. Shog help me..  For those that are dubious as to whether this would open the floor for questions wrongly getting closed, let me calm you down with this;  Firstly, don't forget that we have the ability to "Vote not to Close" in the review queue. In the normal question view we don't have this. This is why the bar to close can be lower inside the queue than it is out of it, because people can vote for .  Secondly, my feature-request is not too different to how we already handle the Suggested Edits queue, and a wrong suggested edit is just as reversible as a incorrectly closed question. Hell, we even have a re-open queue; and it's empty. Let's use it.   If you're still struggling, then how about I knock you clean out by suggesting we add the ability to flag a question for reopening. This would force the question into the reopen queue, and handle the small percentage of questions that incorrectly get closed. It would also allieviate a proportion of the flags moderators have to deal with at the moment. If we're worried about the question-owner spamming the flagging option, only enable it for non-owners.


Why refrence p's values also changed?(explain why bc of heap?)

I've looked lotsa websides but i could not find my answer. My question is Why refrence p's values also changed? Even if i did not changed those? Here is my code and thak yu for explanation.  public static void main(String[] args) {      Person p = new Person();     Person q = new Person();     p.name="Sara";     p.birthyear= 1989;      q=p;     System.out.println("Name is "+q.name+" and birthyear is "+q.birthyear);      q.name ="Hanna";     q.birthyear = 1991;      System.out.println("Name is "+p.name+" and birthyear is "+p.birthyear); }   }  class Person {  String name; String surname; int birthyear;   }


Cannot upgrade Ubuntu 19.10 to the latest LTS

I need to update Ubuntu 19.10 to the latest LTS version. When I run sudo apt update it gives following output. Ign:1 http://security.ubuntu.com/ubuntu eoan-security InRelease Err:2 http://security.ubuntu.com/ubuntu eoan-security Release   404  Not Found [IP: 91.189.88.142 80] Ign:3 http://us.archive.ubuntu.com/ubuntu eoan-updates InRelease Ign:4 http://us.archive.ubuntu.com/ubuntu eoan InRelease Err:5 http://us.archive.ubuntu.com/ubuntu eoan-updates Release   404  Not Found [IP: 91.189.91.38 80] Err:6 http://us.archive.ubuntu.com/ubuntu eoan Release   404  Not Found [IP: 91.189.91.38 80] Reading package lists... Done E: The repository 'http://security.ubuntu.com/ubuntu eoan-security Release' no longer has a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. E: The repository 'http://us.archive.ubuntu.com/ubuntu eoan-updates Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. E: The repository 'http://us.archive.ubuntu.com/ubuntu eoan Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.  I know that this version is not supported anymore. But I can't do a fresh install, because I have important data on this machine. Any help would be greatly appreciated.


Why I cannot delete an account in 24 hours?

I deleted a profile yesterday. The system claimed it was to be deleted in 24 hours. However, I see the following message today.     This account is scheduled to be deleted 5 mins ago. To cancel deletion, click here.   Why the account isn't deleted on time? 5 mins after the deadline?


Stop DialogResult window from changing my mouse back to default

I have a problem with a MessageBox window changing my wait cursor back to default and not letting me override it again. If i comment out the "Are you sure" message box the wait cursor works as intended (wait cursor is visible during the long running method). However with the program as normal no matter what i do the mouse is always default.      private void btn_Click(object sender, EventArgs e)     {         this.Cursor = Cursors.WaitCursor;          if (string.IsNullOrWhiteSpace(textbox1.Text))         {             MessageBox.Show("Text Box 1 Can't Be Empty");         }         else if (string.IsNullOrWhiteSpace(textbox3.Text))         {             MessageBox.Show("Text Box 3 Can't Be Empty");         }         else if (string.IsNullOrWhiteSpace(textbox4.Text))         {             MessageBox.Show("Text Box 4 can't be empty");         }         else if (string.IsNullOrWhiteSpace(textBox2.Text))         {             HelperClass.MethodThatCanHandleEmptyTextBox2(textBox1.Text, textBox3.Text, textBox4.Text));         }         else          {             //problem line                             DialogResult result = MessageBox.Show("Are you sure you wish to proceed?", "Are You Sure?", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2);              if (result == DialogResult.Yes)             {                this.Cursor = Cursors.WaitCursor; //doesn't work                                    //long running method                HelperClass.DoMethodThatNeedsAllFields(textBox1.Text, textBox2.Text, textBox3.Text, textBox4.Text); //long running method                 MessageBox.Show("All done!");             }          }           this.Cursor = Cursors.Default;       }   I have tried all of these both inside and outside of the if (result == yes) condition, but to no avail:  Cursor = Cursors.WaitCursor;  Form1.ActiveForm.UseWaitCursor = true; //throws runtime exception  Cursor.Current = Cursors.WaitCursor;  Application.UseWaitCursor = true;  Application.DoEvents();  I have also tried threads AND tasks but neither of those have worked as well. Is there something I'm missing?


What are the issues with using percentage outcome in linear regression?

I have a study where many outcomes are represented like percentages and I'm using multiple linear regressions to asses the effect of some categorical variables on these outcomes.  I was wondering, since a linear regression assume that the outcome is a continuous distribution, are there methodological problems in applying such model to percentages, which are limited between 0 and 100?


What the -f in the "apt-get -f install" command do?

I know that the -f means --fix-broken from the manual and that it attempts to fix problems with the packages, but what exactly does? How it decides how to fix the packages or if they need fixing and the method of fixing? And why sometimes it fails?


Alternative section title using multicol

Compiling the following documents throws an error: "! Paragraph ended before \@sect was complete." I just want to add an alternative name to the table of contents and have no idea why this should be a problem using multicol :-)  \documentclass[% paper=B5,% ]{scrbook}% \usepackage{multicol}  \begin{document}  \begin{multicols}{2}[\section[test]{Test}]  Test  \end{multicols}  \end{document}


Flying back to Hawaii from Stuttgart Germany - Need Visa?

Do I need some sort of transit visa returning to Hawaii from Stuttgart, Germany with an 11 hr 50 min layover in London LGW then connecting on to Seattle, WA and on to Lihue, Kauai, Hawaii?


Advantage of accepting the axiom of choice

What is the advantage of accepting the axiom of choice over other axioms (for e.g. axiom of determinacy)?  It seems that there is no clear reason to prefer over other axioms..  Thanks for help.


Context: I am learning Dijstra's Algorithm to find shortest path to any node, given the start node. Here, we can use Fibonnacci Heap as Priority Queue. Following is few lines of algorithm:  For each vertex in PriorityQueue{     do_something() }   If $V$ is the number of vertices, the subsequent lookup times in the priority queue will be: $$O(\log V), O(\log V-1), \ldots$$   Question:  What would the value of $O(\log V) + O(\log V-1) + O(\log V-2) + .. + O(\log 1)$?


If I use an abbreviation like MMU ("memory management unit" in computers), should I write "A MMU" or "An MMU"? Is it the pronunciation or the letter that decides?


Couldn't find the answer on the internet. The leads of VZ1 component are directly connected to mains.


How to gave Count into some number or More for @a[nbt={SelectedItem:{id:"things id",Count:Count}}] in java minecraft 1.14

I was doing shop into java minecraft 1.14, but scoreboard didn't work on me. I get an idea to write command:  /give @p[nbt={SelectedItem:{id:"minecraft:gold_ingot",Count:20b}}] diamond_pickaxe{Enchantments:[{id:efficiency,lvl:300}]}   (Im not gonna want to do that unbreakable or set efficiencys level into 32767 because its too lagy for my computer) But 20b gets count work only with 20. I want to get it work in 20 or More. I have same button activating   /clear @p[nbt={SelectedItem:{id:"minecraft:gold_ingot",Count:20b}}]gold_ingot 20   But it dont work in more at 20. How i get that working with 20 or more?  PS. Now i just started using villager. You can guestion same thing on answers, if you need help with it.


Improper integral $\sin(x)/x $ converges absolutely, conditionaly or diverges?  We have that $$\int_1^{\infty}\frac{\sin x}{x}dx$$ $$u=\frac{1}{x}$$ $$du=-\frac{1}{x^2}dx$$ $$dv=\sin xdx$$ $$v=-\cos x$$ $$\int_1^{\infty}\frac{\sin x}{x}dx=-\cos(1)-\int_1^{\infty}\frac{\cos x}{x^2}dx$$ $$\int_1^{\infty}\frac{\cos x}{x^2}dx<\int_1^{\infty}\frac{1}{x^2}dx$$ So it converges. Now I need to find out if $\int_1^{\infty}|\frac{\sin x}{x}|dx$ converges or diverges.


Earth moves how much under my feet when I jump?

If I'm standing at the equator, jump, and land 1 second later, the  Earth does NOT move 1000mph (or .28 miles per second) relative to me,  since my velocity while jumping is also 1000mph.   However, the Earth is moving in a circle (albeit a very large one),  while I, while jumping, am moving in a straight line.   How much do I move relative to my starting point because of this? I  realize it will be a miniscule amount, and not noticeable in practise,  but I'd be interested in the theoretical answer.


How to display double values properly in c++?

Code long double sumArray = 0; for (int i = 0; i < input; i++) {     sumArray = sumArray + array[i]; }  cout << sumArray;  Output should look like this 5 1000000001 1000000002 1000000003 1000000004 1000000005 5000000015  Instead, it showing this 5 1000000001 1000000002 1000000003 1000000004 1000000005 5e+09  I want to get the sum of all long double variable like this.  5000000015


From An Introduction to Statistical Learning by James et al., the leave-one-out cross-validation (LOOCV) estimate is defined by $$\text{CV}_{(n)} = \dfrac{1}{n}\sum\limits_{i=1}^{n}\text{MSE}_i$$ where $\text{MSE}_i = (y_i-\hat{y}_i)^2$.   Without proof, equation (5.2) states that for a  least-squares or polynomial regression (whether this applies to regression on just one variable is unknown to me), $$\text{CV}_{(n)} = \dfrac{1}{n}\sum\limits_{i=1}^{n}\left(\dfrac{y_i - \hat{y}_i}{1-h_i}\right)^2$$ where "$\hat{y}_i$ is the $i$th fitted value from the original least squares fit (no idea what this means, by the way, does it mean from using all of the points in the data set?) and $h_i$ is the leverage" which is defined by $$h_i = \dfrac{1}{n}+\dfrac{(x_i - \bar{x})^2}{\sum\limits_{j=1}^{n}(x_j - \bar{x})^2}\text{.}$$  How does one prove this?  My attempt: one could start by noticing that $$\hat{y}_i = \beta_0 + \sum\limits_{i=1}^{k}\beta_k X_k + \text{some polynomial terms of degree }\geq 2$$ but apart from this (and if I recall, that formula for $h_i$ is only true for simple linear regression...), I'm not sure how to proceed from here.


How do I quickly switch between workspaces in unity?

I'm using Ubuntu 11.10 with Unity and would like to switch between workspaces with a keyboard shortcut.   Is there any way to achieve this?


Anime movie about giant robot head that crashes

I'm trying to figure out the name an old anime movie I watched as a child, most likely late 80s - early 90s. It featured a giant robot, which consisted of separate parts with a pilot in each, and they combined to form the complete robot. It sounds kinda like Voltron but I'm pretty sure it wasn't, maybe a knock-off or something. The head had horns, which seemed to go out horizontally from the base and then turned upwards, or there was a wide base and the horns went up on either side of the head. I seem to remember the parts being launched from a base and I think the plot involved the head crashing or otherwise being separated from the body. I haven't even thought about this movie for a very long time so I may be remembering some details wrong, but if anything else comes to me I'll edit it in.


What does a truncated distribution mean?

I am a little bit confused about  truncated distributions such as truncated normal distribution. I have a code in FORTRAN where the function gen_rnorm(mean,sigma) returns random normal value. Now I want to write a code for  truncated normal distribution with $a=-3$ and $b=3$. My question is does truncated normal distribution mean that I run the function gen_rnorm(mean,sigma) and check if the returned value is between $a$ and $b$. If not then ask for another value. Is this what truncated normal distribution means?.  I hope my question makes sense.


What's the actual download size of Gimp?

I recently learned that GIMP is a Photoshop replacement in Ubuntu world and Photoshop that I knew was a huge application around 500MB. Before downloading gimp, I wanted to know the size of application. I ran  $ apt-cache --no-all-versions show gimp | grep '^Size: ' Size: 3611842   Assuming that those are bytes, that roughly converted to 3.61 Mega Byte. 3.61 MEGABYTE? I mean is that it or are there some hidden dependencies which are gonna eat my internet allocation away?     And if it is 3.61 megabytes then how can Linux apps be this small?


More than 7 hours for 150GiB, is it normal?

I used pscp to transfer that amount of data from Windows 10 to Linux with a TP-LINK 3G/4G MR-3420 router. Windows machine is connected with Cat5 cable and the Linux machine is with WiFi.  Is there any better tool for faster transfer?


How to share over ethernet but not over wifi

Running OSX 10.10.3  The office LAN is wired, the guest LAN is WiFi. I need to be on both at the same time.  I want to be able to accept connections from the office LAN, but I want to limit access to many of those services from the WiFi network. The clickable System Preferences for the firewall don't give me anything more powerful than "Allow Incoming Connections" which allows connections over all interfaces.  Where do I go to get more control over the firewall? Any tips for getting this config right?  This is not an issue of getting WiFi and Ethernet to work at the same time. They already work like I want them to. It's about firewalling-off services from certain interfaces, something that is not available in the standard System Preferences control panel.


JQuery event binding is not working on newly created elements

I am creating some
 elements for my chat box application. The following is the HTML part, in which on clicking a button the
 elements are created.        <link rel="stylesheet" type="text/css" href="../chat/style.css"/>
Jquery div example
   <button>click to create div</button>     The creation of
 elements seems OK. But I am unable to do anything on the created box.  This is the JQuery code for creating the div:  $(document).ready(function(){     var chat_box_title = 'jaya chandra';     $("button").click(function(){         $('
')             .attr({id:'chat_box_'+chat_box_title})             .addClass('chat_box')             .html('
jaya chandraX

<textarea rows="4" placeholder="Your message here..." class="chat_input"></textarea>

')             .appendTo('body');           });     });   When the class .chat_head is clicked then the .chat_wrapper has to toggle. I am trying to bind the click function using the following code..  $('body').on('click','div.chat_head>div.chat_wrapper',function(){     //$('.chat_wrapper').slideToggle('slow');     console.log('clicked'); });   I have tried all of my ideas for it, but I am unable to solve the problem.


I am trying to add bullets to each item. However, the itemize isnt showing the bullets. Could someone tell me what the issu is?  Also how do I get the item to automatically fill the box and wrap?  % EPC flow charts % Author: Fabian Schuh \documentclass{minimal}  \usepackage{pgf} \usepackage{tikz} %%%< \usepackage{verbatim} \usepackage[active,tightpage]{preview} \PreviewEnvironment{tikzpicture} \setlength\PreviewBorder{5pt}% %%%>  \begin{comment} :Title:  EPC flow charts :Grid: 1x2   \end{comment} \usepackage[utf8]{inputenc} \usetikzlibrary{arrows,automata} \usetikzlibrary{positioning}   \tikzset{     state/.style={            rectangle,            rounded corners,            draw=black, very thick,            minimum height=2em,            inner sep=2pt,            text centered,            }, }  \begin{document}  \begin{tikzpicture}[->,>=stealth']   % Position of QUERY   % Use previously defined 'state' as layout (see above)  % use tabular for content to get columns/rows  % parbox to limit width of the listing  \node[state] (QUERY)   {\begin{tabular}{l}   \textbf{Query}\\   \parbox{4cm}{\begin{itemize}    \item Start    \item Parameter $Q$    \item Zufallszahl aus \mbox{$[0, 2^Q-1]$} in Slotzähler $SC$   \end{itemize}   }\\[4em]   \textbf{QueryAdjust}\\   \parbox{4cm}{\begin{itemize}    \item Variiere Q    \item neue Zufallszahl   \end{itemize}   }  \end{tabular}};  \end{tikzpicture} \end{document}


Feed shows unanswered questions - which are answered

The ios-app (v. 0.1.54) showed on top of my feed a section called "2 unanswered". But the second question is already answered (with an accepted answer which has 3 upvotes as of this writing).    See here:


Why does search for a question produce worse results than trying to ask a question when using stackoverflow?

For about a year now, I have done most of my SO searching using the "Ask Question" button rather than search bar.  Case in point, this question:     How do I turn off this highlighting for HTML in PhpStorm?   Zero results in "search" but I found the answer in under a minute by "asking a question".  Anyone want to investigate and maybe improve the ordinary search tool? Not a big problem as I now know how to help myself if need be. I mostly arrive at SO having asked a general question in Google.


How to perform regression with different error variances?

I have two series of measurements values, first series is X and second is Y. I need to model Y as a function of X, where I know the method that was used to measure X is two times better then the method used for measure Y in terms of error variance.  I red about regression with error term in the independent variable, but I'm not sure what to do when there is also error term in the dependent variable and they are different.  Which technique/tools/constraints should I use for this sort of case?


I am using IEEEtran as bibliographystyle which presents the citation as numbers. In some text I need to write the name of authors. However, IEEEtran can only use \cite{..} to give numbers. I would like to ask how can I use multiple bibliographystyle that don't make conflicts (i.e., give the ability to cite by numbers \cite{..} or author name \citep{..} in the text, having the same list of Biblography as numbers at the end of the document)


I want to know how to slow down physics simulations or at least the explosion modifier.  I want to know this so i can render out the explosion with a high fps but over a longer period of time so i can slow it down and still keep the animation smooth.


While reading Peskin and Schroeder (page 64) I come across this     Although any relativistic field theory must be invariant under the proper orthocronous Lorentz group, it need not be invariant under P, T, or C. What is the status of these symmetry operations in the real world? From experiment, we know that three of the forces of Nature the gravitational, electromagnetic, and strong interactions are symmetric with respect to P, C, and T. The weak interactions violate C and P separately, but preserve CP and T. But certain rare processes (all so far observed involve neutral K mesons) also show CP and T violation. All observations indicate that the combination CPT is a perfect symmetry of Nature.   The question is this. As is stated above all known interactions preserve T, yet it is said that there are processes that violate it. How is this possible? Via which interactions do these processes happen?


I could get a sample class to automatically deactivate inactive users in Salesforce and did some changes to it:      public class DeactivateInactiveUsers implements Schedulable {     public void execute(SchedulableContext context) {         User[] selectedUsers = [SELECT Id FROM User WHERE IsActive = TRUE AND Id NOT IN (SELECT UserId FROM LoginHistory WHERE LoginTime = LAST_N_DAYS:365) AND Z_Profile_Text__c = 'BR Marketing' AND Z_Profile_Text__c <> 'System Administrator' AND Z_Profile_Text__c <> 'API-Only'];         for(User record: selectedUsers) {             record.IsActive = false;         }         Database.update(selectedUsers, false);     } }   Now I have the "big"challenge to create a test class to deploy this class to production. Could anyone give some assistance on this?  Thank you


Merging Raster Datasets of Different Resolutions using ArcGIS Desktop?

I am using ArcGIS Desktop.  I have two DEMs in .tif format and I am looking to merge the two. The main problem with merging these are that they are different resolutions (one is 10m and one is ~20m). Also, another problem with merging the two is that they overlap and I am not sure of the most effective way of dealing with that overlap. Obviously I want to keep the values of the better resolution.   So what are the best methods here?   Is there a python script available that works best with merging rasters? I would like to automate this with a script if possible. Which process of resampling is best for DEM data? Bipolar, Cubic... ? What is the best way to merge overlapping DEMs?


I have read in my physics book that: $\epsilon\gt1 $  (for all substances) where $\epsilon $ is  Why is it that $\epsilon$ is never less than $1$?


How to show this equation is true.  $$\sum_{n=1}^{\infty}\frac{H_{n}}{n^{2}}=2\zeta (3)$$  where $H_{n}=\frac{1}{1}+\frac{1}{2}+\frac{1}{3}+\cdots+\frac{1}{n}$


can you tell someone's age from a DNA sample?

So as I understand it telomeres shorten as you age. Working under that assumption..  let's say you were investigating a crime and there was some DNA evidence that had been left behind. Could you determine the age of the DNA owner by looking at the telomere length?


For $a_1, ... , a_2 > 0$,  I need to prove that $(  \sum_{i=1}^{n} a_i)( \sum_{i=1}^{n} \frac{1}{a_i})\geq n^2 $.  When do we have inequality?  Should I do it by induction? any hints


How to install Ubuntu alongside Windows on another partition

I'm trying to install Ubuntu on a system that is not solely mine so I want to install Ubuntu alongside the existing Windows system.  I already tried to "Alatnen" [unclear to the editor] but I erased all data on the hard drive.  I want a way to install Ubuntu alongside Windows on another partition.  How should I proceed