java - making JButton disable when login with different account

i'm trying to disable some JButton with different account(something like permissions), here is my code to be more clear question...  try     {         stat = conn.prepareStatement(sql);         rs=stat.executeQuery();         while(rs.next())         {            System.out.println("found");            String _name= rs.getString("name");            String _pass = rs.getString("password");            String _stat = rs.getString("status");             if (_name == name && pass == _pass && _stat == "admin")             {                 new SecondFrame().setVisible(true);//all buttons works as admin             }               else if(_name == name && pass == _pass && _stat == "moderator")             {                SecondFrame ob = new SecondFrame();                ob.admin_btn.setEnabled(false);//just user+moderator button works             }             else if(_name == name && pass == _pass && _stat == "user")             {                 SecondFrame ob = new SecondFrame();                  ob.admin_btn.setEnabled(false);                 ob.moderator_btn.setEnabled(false);                 // just user button works             }         }                }      catch (SQLException SQLe)     {         System.out.println("not executed"+SQLe);     }   ... but i can't disable buttons like this(syntax is wrong), is there a way to make buttons disabled from this class?  thanks for help


Why pressure is a scalar instead of a vector?

I know by definition that the pressure is the ratio of the force, which is perpendicular to the surface, to the area of that surface and it has no direction. But I am confused by the two questions concerning the 'direction' of pressure.   According to the definition, the force that corresponding to the atmosphere pressure is everywhere and to all directions in the air. This means that the   force due to atmosphere pressure in the  vertical direction is the same as that in the horizontal directions. This can not be understood intuitively because the gravity only acts vertically. For a compressional acoustic wave, such as that in the air or in the water, the direction of wave propagation is the same as that of particle vibrations. For a plane wave, the acoustic pressure at one point in space can be sensed from any directions since it is a scalar. Here comes the question: in the plane that is normal to the propagating direction, the particle velocity is zero wheras the acoustic pressure is not. But a nonzero pressure implies a nonzero force and a nonzero force will induce a movement. Consequently, the acoustic wave becomes transverse instead of compressional. Why?   Hope someone can help me. Thank you very much.


Improper integral $\int_0^{\infty} \frac{1}{(1+x^n)(1+x²)}$

I want to find the following integral: $$\int_0^{\infty} \frac{1}{(1+x^n)(1+x²)}.$$ I enter small values of $n$ on Wolfram and it seems like the answer should be $\pi /4$. Can anyone confirm this for any $n$? I try to do fraction decomposition but it gets ugly really fast. (I think this should have been answered somewhere but I really can’t find it. Apologize in advance if this is a duplication)


Can someone identify this notification icon?

Can someone please help my identify this icon in notification bar. What app is it from?? Thank you


How to compute infinite series $\sum_{n=0}^{\infty} ne^{-n}$

I'm trying to compute the infinite series $\sum_{n=0}^{\infty} ne^{-n}$.  I know the answer is $e/(e-1)^2$, but I don't understand how to find this result.  Thanks for the help!


Windows server does not serve .plist and .ipa files

.plist and .ipa are files for iOS enterprise distribution of Apps.  I want to host them on my enterprise server for distribution. However, the server used does not allow these kinds of files.  I have uploaded them to the directory, when I try to download them I get the following error:    If I only change the extension to "txt", "rar" or any popular extensions. The file gets downloaded with no errors.  What is the problem? Is it a security measure for Windows server or just a blacklist/whitelist of files?  How to solve it.  Windows Server 2008


How many frames per second do human eyes see?

I observed when a helicopter rotor or fan is spinning the blades blur making it impossible to count the blades, but after a certain speed the blades seem to become visible making it possible to count the blades. Cameras can also do this better.   Do human eyes have a frame rate? What is that called and the most a person can see?  This video in the link shows how these blades seem not to move by timing with the cameras frames rate.


"a" versus "an" before an acronym that begins with the letter "U"

I have an unusual situation related to the well-worn topic of when to use a/an before an acronym. We all know that the SOUND is what dictates which to use. So, for example, this is correct: "If an NOAC has been discontinued in the setting of acute UGI bleeding ... "  However, here is where I'm stumped. My acronym starts with the letter "U". A vowel right? But it's a vowel that sounds like a "Y" -- which either IS or ISN'T a vowel sound, depending on whom you ask. And this just sounds totally wrong to me: "Ten percent of rapid rectal bleeding has an UGI source." I desperately want to make it "a UGI source." If I'm not wrong, why am I not wrong? I will need to defend my decision to the higher ups!


How to deal with multicollinearity when performing variable selection?

I have a dataset with 9 continuous independent variables. I'm trying to select amongst these variables to fit a model to a single percentage (dependent) variable, Score. Unfortunately, I know there will be serious collinearity between several of the variables.  I've tried using the stepAIC() function in R for variable selection, but that method, oddly, seems sensitive to the order in which the variables are listed in the equation...  Here's my R code (because it's percentage data, I use a logit transformation for Score):  library(MASS) library(car)  data.tst = read.table("data.txt",header=T) data.lm = lm(logit(Score) ~ Var1 + Var2 + Var3 + Var4 + Var5 + Var6 + Var7 +              Var8 + Var9, data = data.tst)  step = stepAIC(data.lm, direction="both") summary(step)   For some reason, I found that the variables listed at the beginning of the equation end up being selected by the stepAIC() function, and the outcome can be manipulated by listing, e.g., Var9 first (following the tilde).  What is a more effective (and less controversial) way of fitting a model here? I'm not actually dead-set on using linear regression: the only thing I want is to be able to understand which of the 9 variables is truly driving the variation in the Score variable. Preferably, this would be some method that takes the strong potential for collinearity in these 9 variables into account.


It is true that the criterio of comparation of sets is equivalent to Axiom choice?

We say that two sets $A$ and $B$ are comparables if and only if $|A|\leq |B|$ or $|B|\leq |A|$.  I want prove that this criterio is equivalent to axiom of choice. If I use Zorn lemma it is simple prove that A-C implies that criterio but I don’t know how to prove that that criterio implies A-C. Some ideas?


What is a good algorithm for estimating the median of a huge read-once data set?

I'm looking for a good algorithm (meaning minimal computation, minimal storage requirements) to estimate the median of a data set that is too large to store, such that each value can only be read once (unless you explicitly store that value). There are no bounds on the data that can be assumed.  Approximations are fine, as long as the accuracy is known.  Any pointers?


How can I include an oscilloscope in my circuitikz circuit diagram?

I'd like to include an oscilloscope symbol in my circuitikz diagram, like this:    I looked around, and it doesn't seem like there is one built in. Is it possible to get something like this into circuitikz?


My Minecraft world has just disappeared and it isn't in the saves folder either

I've been playing on a Minecraft world (1.15.2 Java edition) for quite a while and one day I tried to open that world but just after the chunks loaded, my laptop crashed. I went back on to Minecraft and my world wasn't in the world list. I looked this up on Google and everyone said to check my saves folder. I did this but my world wasn't there. I haven't ever made a backup of the world because I didn't think a problem like this was likely. I've spent hours on this world. Can someone please help?


rooted my phone but want to go back to stock rom

Okay so i rooted my Samsung Galaxy Express to jelly bean 4.2.2 using the method below.  but i cant access Samsung kies because it doesn't recognize rooted phones. So i was wondering if there was any way to keep the rooted features but go back to the stock rom? And if there is how do i do it and where do i get the file from?  Here are the steps I took to upgrade my phone:     Flash Clockwork Recovery         Download Express OUDHS CWM.exe.   Turn off the phone   Press and hold volume down and power to enter download mode (if this doesn’t work, press and hold volume down, power and home key)   Connect your phone to your computer via USB   Window ID: COM should be highlighted in yellow, this means your phone was properly detected   Press start and wait for installation   Disconnect your phone, recovery is now installed         Install SuperSU         Download SuperSU v1.25   Connect your phone to your computer via USB   Copy the SuperSU v1.25 file to the root of your SD card (make sure you have an SD card in your phone)   Turn off your phone   Hold volume up, power and home key to enter recovery (as soon as you see blue text on the top of the screen that read entering or   booting recovery, immediately release all the buttons)   Click on install zip from SD card and locate SuperSU file   Select the SuperSU file and install   After installation is complete, reboot your phone         You will now have both custom recovery and SuperSU installed on your   phone, which allows you to install custom ROM’s, which is the next   step. (Make sure USB debugging is still enabled). Please note that   these versions of CM10.1 and CM10.2 are unofficial builds, however are   stable enough as daily drivers.         Download CM10.1(Android 4.2.2) or CM10.2(Android 4.3)   Download Gapps (Google Apps) for CM10.1 or Gapps for CM10.2   Connect your phone to your computer via USB and place ROM and Gapps files in root of SD card (make sure they are on SD card)   Download ROM Manager and reboot into recovery. You can also manually reboot into recovery by powering off your phone, pressing and   holding volume up, power and home key.   Create a backup.   Wipe data/factory reset, wipe cache partition and dalvik cache (found in advanced)   Install the ROM from the SDCard   Install Gapps from the SDCard   Reboot phone and let it sit for a few minutes while it boots for the first time. It may take a few minutes, and this is only evident   upon initial boot.         You will likely run into issues with non functional WiFi. To resolve   this, after flashing the ROM, follow these simple steps:         Download this file.   Power off the phone.   Hold volume down, power and home button to enter download mode.   Press volume up to enter download mode.   Connect phone to your computer   Open Odin and flash the downloaded file as Bootloader (You should see a green box that indicates that the method passed and worked)   Reboot the phone and test WiFI


Routing for custom ASP.NET MVC 404 Error page

I am trying to make a custom HTTP 404 error page when someone types in a URL that doesn't invoke a valid action or controller in ASP.NET MVC, instead of it displaying the generic "Resource Not Found" ASP.NET error.  I don't want to use the web.config to handle this.  Is there any kind of routing magic I can do to catch any invalid URLs?  Update: I tried the answer given, however I still get the ugly "Resource Not Found" message.  Another update: Ok, apparently something changed in RC1. I've even tried specifically trapping 404 on an HttpException and it still just gives me the "Resource Not Found" page.  I've even used MvcContrib's resource's feature and nothing - same problem. Any ideas?


get only file name while iterating over directory instead of path with it

$ script.sh -i /storage/testFile   -i stores the path of /storage/testFile/.  I want to iterate over file in testFile. Everything goes good, but I want to make this code cleaner and add a directory for output and other checks.  A snippet of my code is:  for f in $inDir/*.vcf; do     if [ -f $f ]; #check if file is true or exists     then     if [   ${f: -4} == ".vcf" ] # check if the file ends with .vcf         then         convert2annovar.pl -format vcf4 "$f" > ./"$f".avinput  #run my code      fi     fi done   Issue:  echo $f returns /storage/testFiles/test.vcf. How do I get only test.vcf while I iterate in for loop?


Is it possible to download a Google Drive folder as a .zip?

I've seen that this is possible in Google+.  How can I do this?


Why can't be ($\mathbb{Z}_5,+) $ isomorphic to $U(R)$ for some rings $R$ where $U(R)$ is the unity groups of $R$?

Why can't  be  $(\mathbb{Z}_5,+) $  isomorphic  to $U(R)$  for  some  rings $R$  where $U(R)$  is  the  unity  groups  of  $R$  ? Is important  that $(\mathbb{Z}_5,+)$ is  cyclic?


Where are the QuickTime video recordings saved

I recorded a video using QuickTime, but cannot find the file.  Where is the file saved and how do I find it?


I intend to travel to Spain using Schengen visa. From my research, I found out I must show I have EU77.07/day available during my stay, I must have a return ticket and I must have insurance coverage during my stay. Is this correct?  Moreover, the return ticket requirement is clear, but I was not able to find anything substantial on how I can prove the availability of EU77.07 per  day. Do I show a copy of my account balance for this total?   For the insurance coverage: I was not able to find anything that seemed reliable. Can anyone suggest on any plan or the conditions that must be met for the required coverage?  EDIT 12/17/19: I am in the list of countries that do not require a visa application. Sorry for not being clear.  And I don't intend to go anywhere outside of Spain while there. Thank you all for your comments. I was in Spain when I wrote my profile, thought would stay there but things changed and I am not there anymore.   EDIT2: Thank you all, thanks for your comments, sorry for not being clear. According to my research, while not needing a visa per se. My doubts are strictly about the specs on the requirements  to certify my ability to support myself to the tune of $EU77.07 /Day and show health coverage: How do I certify I have the required funding and what type of specs are need for the health certificate?


Best way to round off the edges in a rectangle

I'm trying to model an indoor football field which is like a hockey rink...  I've been able to add the bevel modifier; but, I've read where there is a better way to accomplish this.  Can someone walk me through the steps and help me apply 20 to 32 segments...  I've created the rectangle and placed it in edit mode; but, I'm getting confused as to how to add the bevel to the corners and then knock out the middle of the rectangle for the raised border walls..  Thanks Trey


I installed Ubuntu 20.04 as dual boot a couple days ago. I go to log into ubuntu and it says my password is incorrect

I only use one password on my home computer for all operating systems.  Unless I made a typo I missed it should work.  Any way to fix this without reinstalling?


Is there a way to view all tags on a specific SE site that do NOT have an associated wiki entry? Bonus points for sorting by number of questions tagged!


I have received a vmcore.gz (400MB) and vmcore-dmesg.txt file from production machine that had kernel panic. The producation is redhat 5 machine with kernel 2.6.18-431.el5 In order to investigate the dump, I understand I need the same machine + kernel as the machine the kernel panic occur, I have an VM of redhat 5, but its not activated and i cannot download the exact kernel, I have kernel 2.6.18-92.el5.    Can i still get information on the dump ? at least the callstack/stack trace of the kernel when crashed ?  Thanks


Let $Q$ be the following set of $\mathbb{Z}\times \mathbb{Z}$   \begin{align*} Q=\{(a,b)\in \mathbb{Z}\times \mathbb{Z} | b\neq 0\} \end{align*}   Define the relation $\sim$ on $Q$ as   \begin{align*} (a,b)\sim (c,d)\Leftrightarrow ad=bc \end{align*}   Prove that $\sim$ is a relation of equivalence, and give the class of equivalence of $[(2,3)]$. Furthermore the general order of equivalence of $[(a,b)]$. Try to give a description $Q/\sim$.   I've asked the same question (I deleted it one hour later) but it didn't look well when I didn't try to add what I tried. Here we go. I have proven that $\sim$ is a relation of equivalence by showin it's i) reflexive, ii) symmetric and iii) transitive.   i) $\forall (a,b)\in Q:(a,b) \sim (a,b)$.   $\forall (a,b)\in Q:(a, b) \sim (a, b) \Leftrightarrow ab \stackrel{\surd}= ab$  ii) $(a, b) \sim (c, d) \Rightarrow (c, d) \sim (a,b)$  $(a, b) \sim (c, d) \Leftrightarrow ad = bc$ and $(c, d) \sim (a, b) \Leftrightarrow  cb = da$   then $ad = bc \stackrel{\surd}\Rightarrow cb = da$.  iii) $[(a, b) \sim (c,d) \wedge (c, d) \sim (e, f)]  \Rightarrow (a, b) \sim (e, f)$  $(a, b)\sim (c, d) \Leftrightarrow ad = bc$, $(c, d) \sim (e, f) \Leftrightarrow cf = de$ and $(a, b) \sim (e, f) \Leftrightarrow af = be$  then $((ad = bc) \wedge (cf = de))\stackrel{\surd}\Rightarrow af = be$.  The class of eq. $[(2,3)]$ is the class, that contains the element $(2,3)$, so for every element $(a,b)$ in this class satisfies $(a,b) \sim (2,3) \Leftrightarrow 3a=2b$, that is \begin{equation} [(2,3)] = \lbrace (a,b) \in \mathbb{Z}\times\mathbb{Z} | b \neq 0 \wedge 3a = 2b \rbrace \end{equation}  So now I've shown what I tried to show. Is there something I'm missing or something I should have mentioned? I need some help to answer the rest. Thanks.


Origin of "he's 6 feet tall if he's an inch"

I have heard this pattern used before in American English:  She's 6 feet tall if she's an inch. It was a gallon of blood if it was a drop. The baby was 10 pounds if it was an ounce.  I assume that it means something like, "She is 6 feet tall, which is very tall." But this to me is such a bizarre and illogical way of conveying the message that it's distracting, and I cannot get myself to say it even if it comes to me. Anyone know the origin of this, or can breathe some reasoning into this phrase to justify its appreciation?


What is $\inf\emptyset$ and $\sup\emptyset$?

I was told that $\sup\emptyset=-\infty$ and $\inf\emptyset=\infty$, where $\emptyset$ is the empty set. This seems paradoxical to me as to how supremum can be less than infimum. Is there any proof for this or is it taken for granted ?


Is `dd` really necessary to clone a disk?

Almost any tutorial will tell you that to clone a disk on the command line (say, to clone /dev/sda to /dev/sdb) you can use:  dd if=/dev/sda of=/dev/sdb ...and some block size options...   This reads the contents of /dev/sda and writes them to /dev/sdb.  Why can't we simply use cat < /dev/sda > /dev/sdb?


what programmatic changes makes the usb drive write protected

suddenly 32 GB sandisk pen-drive has become write protected, i want to know what makes the pen drive write protected, so that it I can figure out what is the right solution to make it work again.  Thanks


You have uncommitted work pending. Please commit or rollback before Http Callout

I set up a Process Builder to activate when an Lead reaches a certain sales stage.  Then the Process Builder will send two variables to an invocable method within my apex class. On the Lead object, once I go to save my change I get the error  An Apex error occurred: System.CalloutException: You have uncommitted work pending. Please commit or rollback before calling out.  So I came across this on help.salesforce.com:  You can't make callouts, HTTP or otherwise, once you have made changes to the database. It's true that you cannot make callouts with pending transactions in the request context. So your only way out is to make the callout in a separate context. You cannot perform a DML operation prior to a callout or Http. All the DML operations should be invoked only after you are done with callouts.So, make a webservice callout first and then save the request.*  So I need to make a separate context/class? How do I send a HttpRequest once an Object has been updated? public class ProcessHandlerShowAccounts  {     public class AccountParameter     {         @InvocableVariable(required=true)         public Id accountId;         @InvocableVariable(required=true)         public String name;     }     @InvocableMethod(label='handle' description='Send the Accounts variables passed from Process Builder to the webservice')     public static void handle(AccountParameter [] accountParameters)      {     webServiceCallOut(accountParameters[0].accountId,accountParameters[0].name);      }     public static void webServiceCallOut(ID n, String a){         Http http = new Http();         HttpRequest req = new HttpRequest();         req.setEndpoint('https://Accounts'                     +'?sfdcid='+n+'?operation='+a);              String username = 'nameishi';         String password ='123';         Blob headerValue = Blob.valueOf(username + ':' + password);         String authorizationHeader = 'BASIC ' + EncodingUtil.base64Encode(headerValue);         req.setHeader('Authorization', authorizationHeader);              //Create a new Http object to send the request object         //a response object is generated as a result         HTTPResponse res = http.send(req);         System.debug(res.getBody());     } }


It came to my attention that even though squibs can't cast spells, they can work in a magical environment and they can see magical creatures.   My question is then, considering (so far as we know) that brewing potions doesn't actively involve using magic, with the right instructions, ingredients, tools and a fire could a squib become a potion master?


How did they get rid of the money in the bank?

In the film Now You See Me the Four Horsemen rob the bank Crédit Républicain de Paris.  Thaddeus Bradley gives an explanation which includes:      the money being switched with a flash paper copy which was burned after being put in the vault.   Was it explained how this got this to happen after the money was in the vault and there was no one there to burn it?


I recently volunteered to help with a summer math program at a local high school for which I thought would be a breeze. As it turns out, it isn't a program for those catching up (summer school) like I thought, it's a small group of kids that have strong math skills and seem to have an endless desire for knowledge. I have been able to keep them reasonably in check intellectually, but I'm nearing the end of my bag of tricks.   For better or worse, they love mathematical fallacies. Of course they were familiar with showing $0=1$ (all numbers equal all other numbers fallacy), and after I showed them $1=-1$ through complex numbers I was out of ideas. I knew of the, all triangles are isosceles triangles fallacy, but couldn't remember it at the time. Does anyone have any interesting fallacies that I can show them? Their math knowledge goes through most of calculus but fallacies outside of that are fine too.  If this is a ridiculous question, I apologize. I figured there were more fallacies out there than what I could find on wikipedia and a few of the other top search results.  Thanks in advanced.  Note: I have another 3 weeks with them so no major rush.


Animated show with character that has no legs

I can vaguely remember watching this show in the late 80s or possibly the early 90s.  It was a fantasy setting in which a man and a group or mutants or aliens were traveling together.  The only concrete memory I have is that one of the characters had no lower body and got around on just his arms.  I'm not sure if it was a movie or series and it may have been on pay cable and may have contained nudity.  In my searching the only thing I found was a post on Yahoo answers from a girl looking for possibly the same thing.  She adds: "the man and group of aliens are watching, from a distance, this dinosaur nest of eggs. One of the eggs begins to move. A little later a woman hatches from the egg."


How to Interpret coefficients of a beta regression model with logit link

I'm running a beta regression in R where the outcome variable is continuous but bounded between 0-1. I need the results to be understandable to an audience with a very basic stats background. I need some help interpreting the coefficients. My model is very basic and look like:  betareg(Y ~ ANE + factor(Year) +factor(Month) +factor(Sector))  I'm not sure how to interpret the coefficient on ANE. Below are the results I got for the ANE variable:   Coefficients (mean model with logit link):               Estimate  Std. Error  z value  Pr(>|z|)  (Intercept) 1.036e+00 : 7.735e-02 : 13.395 : < 2e-16 *** ANE        -1.693e-05 : 6.948e-06 : -2.437 : 0.014803 *


Interesting Probability Proof Unable to answer

I went through some books and found this problem. I am unable, and am really curious to see the proof.  There are 3 different colored balls in an urn: Red, Blue and Green.  There are 6 reds, 7 blues and 8 green.  Balls are drawn until one color is completely drawn.  Find with proof the probability that all the blue balls are drawn first.


Fragments in speech vs Fragments in novels?

Why is it that authors will use fragments in writing to emulate speech, but it is considered grammatically incorrect?


Difference of free transform and inserting the font-size in Photoshop

Is there any difference in free-transforming a text or just adding the bigger font size??


I recently read a poem by Tolkien that said Gandalf was the only Istari to return to Valinor,which made me wonder if Radagast had been banished like Saruman had.


Is it safe to upgrade Windows version with Ubuntu installed alongside?

I have a laptop with Ubuntu 16.04 dual booted with Windows 10 (UEFI system).  Is it safe for the Ubuntu bootloader to upgrade Windows (to the April creators update) ?  I have already both Windows and Ubuntu installed, so this is not a duplicate of how to install Ubuntu alongside Windows in UEFI. I am just asking whether upgrading Windows may corrupt the grub or the Ubuntu installation


Setting up a development environment on SharePoint Online - O365

We are in the process of developing Intranet on SharePoint Online for my organization. What are the options available to set up a development environment(On Prem or Azure)? So we dont have to make the changes on the production environment.  Any suggestions are helpful. Thanks


Intuition behind measurable random variables and $\sigma$-algebra

I've been trying to understand $\sigma$-algebras and how it encodes information in context of filtration. While certain parts seem clear and logical, I can't say I get the whole picture.  I'll try to explain the counter-intuition I get with the classical example of : the probability space $\Omega = \{ HH, HT, TH, TT \}$ and a r.v. $X(\omega)$ equal to the number of heads.  At times $0$, $1$ and $2$ the available information is represented using $\sigma$-algebras $\mathcal{F}_0=\{\emptyset,\Omega\}$, $\mathcal{F}_1=\{\emptyset, \Omega, \{HH,HT\},\{TH,TT\}\}$ and $\mathcal{F}_2=\{\emptyset, \Omega,\{HH,HT\},\{TH,TT\},\{HH\},\{HT\},\{TH\},\{TT\}\}$.  One can notice that $X(\omega)$ is not measurable with respect to $\mathcal{F}_0$ and $\mathcal{F}_1$, because $X^{-1}((\frac{3}{2}; +\infty))=\{HH\}$. To me it is quite surprising: intuitively $X$ makes perfect sense at all times. In particular it has an expected value at time $0$, which I interpret as that the probability and value of all outcomes $\{\omega\}$ can be computed. How do you think of a non-measurable function?  Here's another way of expressing the same confusion. The most natural choice of $\sigma$-algebra in a finite discrete case is $\mathcal{F}=2^\Omega$, and it is implicitly used in all elementary probability problems. However, this choice of $\mathcal{F}$ does not reflect the fact that some information is known or unknown, conditional probability does. Does it mean that the statement "$\sigma$-algebra is known information" make sense only in conditioning? Why is it convenient then?


Should I end with "Yours sincerely" or "Yours faithfully" when writing to editor?

I've read from other questions here that we should use "Yours sincerely" when we know the name of the recipient and "Yours faithfully" if we're writing to "Sir/Madam". Then what about "Dear Editor" and "Dear Parents" or "Dear Teachers"? Which one should I end with?   Can anybody help me out here? Thanks a lot!


Can't save firewalld rules with --permanent

I just installed Fedora 23 Server. I have a single zone created by default:  # firewall-cmd --get-active-zones FedoraServer   interfaces: eth0   If I add a service to this zone, it works fine:  # firewall-cmd --zone=FedoraServer --add-service=http success  # firewall-cmd --zone=FedoraServer --list-all FedoraServer (default, active)   interfaces: eth0   sources:   services: dhcpv6-client http ssh   ports:   masquerade: no   forward-ports:   icmp-blocks:   rich rules:   But it is lost when running firewall-cmd --reload.  If I try to make it permanent as suggested in , I get the following error:  # firewall-cmd --zone=FedoraServer --add-service=http --permanent Error: INVALID_SERVICE: 'cockpit' not among existing services   I'm surprised as this is a fresh installation from an OVH template.  How to work around this error?


How do I get current Marketing Cloud system time, usng SSJS on a cloud page. This is the format I need:      11/8/2018 14:16:54   Ideas?


So far, I know if $p$ is a rational prime, then $(1)$ if $p\equiv 3\mod4$, then $p$ is prime in $\mathbb{Z}[i]$. $(2)$ If $p\equiv1\mod4$  then $p=π_1 π_2$ where $π_1 $ and $π_2$ are conjugate, Then $π_1 $ and $π_2$ are primes in $\mathbb{Z}[i]$. $(3)$ $2=(1+i)(1-i)$, then $(1+i)$and$(1-i)$ are primes in $\mathbb{Z}[i]$.  What's are all the prime elements in Gaussian integers $\mathbb{Z}[i]$? For example, $-3$ are prime in $\mathbb{Z}[i]$, but not in the above $3$ cases.


Finding value of $S-T$ in $2$ binomial sum.

If $\displaystyle S=\sum^{n}_{k=0}(-1)^k\frac{1}{k+m+1}\binom{n}{k}$ and f $\displaystyle T=\sum^{m}_{k=0}(-1)^k\frac{1}{k+n+1}\binom{m}{k}$.Then $S-T$ is   Try:$$S=\sum^{n}_{k=0}(-1)^k\int^{1}_{0}x^{k+n}\binom{n}{k}dx=\int^{1}_{0}x^n\sum^{n}_{k=0}(-x)^k\binom{n}{k}dx$$  Could some help me, thanks


What hardware information about your PC's can gathered by websites/ISP's?

What hardware information about your PC can be transferred ever the internet or stored by websites or by your Internet Service Provider.   For eg. Your MAC address can be stored by websites but I would like to know what else can be stored and known.


How do I generate a C# compiler warning if a certain section of code is called?

I'm producing a prototype system that will need to throw well-explained exceptions in order to make it a bit more user-friendly. The thing is, being as this system is undergoing development, I don't want to spend a lot of time creating exception classes until I've implemented the system and I know it works! Therefore, I'm thinking along the lines of creating a sort of "dummy" exception class that shows a compiler warning wherever it's thrown, reminding me to replace it with a more meaningful exception later.  public sealed class DummyException {     public DummyException() : base()     {         // How do I generate a compiler warning which will display once for each         // instance that this code is called?     } }   I know I can use a TODO comment in each instance, but I'd rather use my proposed method so that I'll always get the warning whenever I use the dummy exception (rather than relying on me to remember to put a "TODO" comment on every thrown exception). Is this possible, and if so, how do I do it?


I was once critiqued for using a "wrong" test because the test I chose didn't actually prove causation. I admit that I'm not a statistician. My education is very incomplete. What statistical tests actually PROVE causation? I thought there was no way to use statistics to prove causation. I invite correction if this is erroneous.


I have a container div which has other divs and contents within it and I am trying to center the outer div. For example:   body {   height: 100vh;   width: 100vw; }  .test {   width: 20vw;   height: 20vh;   background-color: green; }  .outer-test {   display: block;   margin: auto; }

Hello

    In the example above, how would I be able to center the div with class of "outer-test"? I have tried to make the display: block and use margin: auto but that doesn't seem to be working.


python 2.7 -remove backslash from unicode

I have this unicode  xx = u"Merci d'avoir acheté Electricité mobile, votre SPS sera activé prochainement"   when i print it it looks ok when i want to compare this xx the unicode appears like this  u'Merci d\'avoir acheté Electricité mobile, votre SPS sera activé prochainement'   i want to remove this backslash i tried like this but get exception  ddd=xx.decode('string_escape')  EncodeError: 'ascii' codec can't encode character u'\xe9' in position 19: ordinal not in range(128)   any help will be appriciated


Prove that if a triangle has sides $a$, $b$ and $c$ such that $a^2+b^2=c^2$ then it is a right angled triangle

I understand this may be quite simple but could anyone do this? Proof by contradiction is the method I'm supposed to use.


I am using a direct likelihood to estimate the parameters of a discrete nonlinear state space model  \begin{equation} \begin{aligned} x_k & = f(x_{k-1},\theta)+q_k-1\\ y_k & = f(x_k,\theta)+r_k \end{aligned}  \end{equation}  I used an UKF to calculate The log-likelihood expression:  $L(\theta) =  \sum_{k=1}^T -\frac{1}{2}\log [(2\pi)^d\vert \Sigma\vert] - \frac{1}{2}(y_k-\mu)^T \Sigma^{-1} (y_k-\mu) $  where $\mu=\hat{y}_{k|k-1}$ and $\Sigma=P_{yy,k|k-1}$ and evaluated during the UKF filtering recursion and $d$ is the observation dimension.  I generated a synthetic data (Observation data $y_k$ needed by the UKF) based on my model with a vector of the $9$ true parameters $\theta = [0.6667 \hspace{0.2 cm} 1.5 \hspace{0.2 cm} 0.6667 \hspace{0.2 cm} 1.5 \hspace{0.2 cm} 2.5  \hspace{0.2 cm} 1.6 \hspace{0.2 cm} 0.5 \hspace{0.2 cm} 0.6 \hspace{0.2 cm} 10]$.  When I calculated the log-likelihood based on the true parameters gave me the numerical value $9,0841e+3$ (the software that I am using it is the MATLAB).  Now I tried to use the Maximum Likelihood Estimation MLE to estimate the parameters of the model from the synthetic data generated before.  I used the fmincon from MATLAB on the objective function which is the ($negative loglikelihood$  function  because  fmincon search for the minimum of the objective function, but what I want is the maximum, so minimize $-L(\theta)$ = maximize $L(\theta)$ ) to find the global minimum at the optimal point (the true parameters), and I used the (options = optimset('Display','iter') to display the value of the loglikelihood at each iteration.  When the optimization finished I get an optimal point far from the true parameters and the loglikelihood take the value $9,08485e+3$.  What I did not understand, is that the value of the loglikelihood $9,0841e+3$ at the true parameters is supposed to be the global maximum, but the optimization gave us the biggest value at different point $\theta = [0.93 \hspace{0.2 cm} 1.6347 \hspace{0.2 cm} 1 \hspace{0.2 cm} 1.5850 \hspace{0.2 cm} 2.5626  \hspace{0.2 cm} 1.1 \hspace{0.2 cm} 0.4904 \hspace{0.2 cm} 0.5991 \hspace{0.2 cm} 10.2040]$., so where is the problem.  Knowing that the UKF reconstructs the state space variables of the model very well.


Beamer seems to clash with pstricks-add:  \documentclass{beamer} \usepackage{pstricks} \usepackage{pstricks-add}  \begin{document}  Lorem Ipsum \end{document}   Gives the following error:  ! No room for a new \dimen . \ch@ck ...\else \errmessage {No room for a new #3}                                                   \fi  l.1895 \newdimen\pst@chartHeight   But it runs smoothly without pstricks-add or replacing beamer with article.


A movie with jumping into another world and being served dinosaur for dinner

A movie where a group of people teleports to a deserted place through a ring-shaped machine. They enter from one side of the machine and it takes them like they're going through space, and just jumps out to a deserted place. They find people with some creatures, and in one scene the people of that place have them for the campfire where a dinosaur is provided as the dinner. A guy from the group eats it, shows symbols that it tasted like chicken, and then another person from the same group translates it for the people of that place. I think I watched it around 2002-2005. Not sure though. But the thing I remember the most is the one mentioned above saying they bring dinosaurs for dinner in a campfire.


Install Ubuntu onto USB flash drive, black screen

I'm trying to install Ubuntu onto a 256gb flash drive.   Right now, I've been running the OS from a live session from another usb flash drive. I managed to install Ubuntu-studio onto the 256gb stick, but when I boot into it, all I get is a black screen.   I installed through a virtual way (qemu), then tried installing Ubuntu-Studio through the desktop icon.   I went through both installs the same, partitioning the entire drive as an ext4 filesystem and a / mount point with the same results.   Before I tried to install the OS, I reformatted the usb flash drive and made gpt partition table.   Any help? D  Edit: The solutions in that article (Black/purple screen after you boot Ubuntu for the first time) can't be performed since I couldn't get into GRUB or a UEFI screen. I went with a persistent live session instead which is essentially the same for all practical purposes except for upgrading my distro. My persistent live session performance is much slower than my live session without persistence though. I used 100% of the 256gb as "persistent" when a much smaller amount of memory would suffice for system settings and software. I'll try reformatting and trying again, leaving a NTFS partition with at least half of the sticks memory.


I have already posted this question , although I have solved it , but during discussion , i was asked whether such type of hyperbola exist.  Now my question is normal to the hyperbola $xy=c^2$ is drawn from point P,Q and R which meets on point S which lies on $xy=c^2$ .Does this type of Hyperbola exist.  Please refer to the following Question


Why edit is disabled for the following question?

I am trying to edit following post but edit link is disabled.      Then I tried to go to other question to look weather they allow me to edit and seems all the other question I can edit it.   Its only this question that doesnt allow me to edit.


How do I stop my name from being invisible?

My name is invisible. I can't write my user name when I join an online server, it says invalid name! How do I fix this?


Ubuntu 18.04 - No wifi adapter found problem

Just installed an Ubuntu next to the Windows 10 as a second system. At first installed an Ubuntu 19.10 but the problem occured so i thought that maybe if i turn it into Ubuntu 18.04 it will be solved but unfortunately not. I can do nothing, i cant connect to the wifi, i cant connect by USB tethering or by Bluetooth tethering using my phone so I cant install drivers. i tried to install them using a pendrive but dont have an internet so i cant use make command.  I have an asus vivobook 15 How can i solve this problem? I think ive searched the whole internet already  lspci    04:00 Network controller: Realtek Semiconductor Co., Ltd. RTL8821CE 802.11ac PCIe Wireless Network Adapter   lshw -C Network    *-network UNCLAIMED description: Network controller        product: RTL8821CE 802.11ac PCIe Wireless Network Adapter        vendor: Realtek Semiconductor Co., Ltd.        physical id: 0        bus info: pci@0000:04:00.0        version: 00        width: 64 bits        clock: 33MHz        capabilities: cap_list        configuration: latency=0        resources: ioport:3000(size=256) memory:b4200000-b420ffff *-network description: Ethernet interface        physical id: 1        logical name: enp0s20f0u6        serial: 92:d1:af:f9:cb:15        capabilities: ethernet physical        configuration: broadcast=yes driver=rndis_host driverversion=22-Aug-2005 firmware=RNDIS device link=yes multicast=yes   lspci -knn | grep Net -A3; rfkill list  04:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8821CE 802.11ac PCIe Wireless Network Adapter [10ec:c821] Subsystem: AzureWave RTL8821CE 802.11ac PCIe Wireless Network Adapter  [1a3b:3040] 0: asus-wlan: Wireless LAN     Soft blocked: no     Hard blocked: no 1: asus-bluetooth: Bluetooth     Soft blocked: no     Hard blocked: no 2: hci0: Bluetooth     Soft blocked: no Hard blocked: no   The answear given in a flagged post doesnt work for my problem   After 'nano Makefile' the line n 152 is 'CONFIG_PLATFORM_ARM_WMT = n'


I am self-studying electromagnetism right now (by reading University Physics 13th edition) and for some reason I always want to understand things in a crystalclear way and in depth. Now look at this simple RL-circuit:    I am assuming the wire is superconducting and suppose at $t=0$ the switch is turned on. My problem is that I want to come up with this differential equation for this circuit: $V-I\cdot R=-L\cdot \frac{dI}{dt}$. I know that I can't use Kirchoff's voltage law $(\oint  \vec{E}\cdot d\vec{l}=0)$, because there is a non-conservative electric field near the inductor. Therefore I use Farayday's law of induction: \begin{equation} \mathcal{E}=\oint_{\Gamma}  \vec{E}\cdot d\vec{l}=-\frac{d}{dt} \int_{S} \vec{B} \cdot \hat{n}\,dA \end{equation}  where $\Gamma$ is a closed loop and $S$ is the open surface attached to the loop. Now, my textbook says:     In general, the total field $\vec{E}$ at a point in space can be the   superposition of an electrostatic field $\vec{E_c}$ caused by a distribution of charges at rest and a magnetically induced, nonelectrostatic field $\vec{E_n}$. That is $\vec{E}=\vec{E_c}+\vec{E_n}$.   Inserting this in Faraday's law I get:  $$\oint_{\Gamma}  \vec{E}\cdot d\vec{l}=\oint_{\Gamma}  \vec{E_c}\cdot d\vec{l}+\oint_{\Gamma}  \vec{E_n}\cdot d\vec{l}=-L\cdot \frac{dI}{dt}$$ Now by definition: $\oint_{\Gamma}  \vec{E_c}\cdot d\vec{l}=0$ since $\vec{E_c}$ is conservative. This gives: $\oint_{\Gamma}  \vec{E_n}\cdot d\vec{l}=-L\cdot \frac{dI}{dt}$, which is perfectly fine and consistent with my textbook. However it also gives (going counterclockwise in circuit): $\oint_{\Gamma}  \vec{E_c}\cdot d\vec{l}=-V+I\cdot R=0$ which it shouldn't. I think my flaw is here, but I've tried to think about this this whole day with no succes.  I have my inspiration from Walter Lewin's video:  but I still can't get the equation by Faraday's law.  Any help is greatly appreciated.


Used a chemical on my MacBook screen. Now what?

I used  to clean the screen of my MacBook Air. I later read that this will leave a film on the screen, which seems to be the case when holding the screen up against the light.  How can I return my screen to the state it was before using the chemical? (Preferably without purchasing additional or hard-to-obtain products.) Or is my screen permanently ruined?  The printing on the bottle very informatively lists the following ingredients:   De-ionized water Proprietary polymers


This is a  about File Permission and Why 777 is "destructive".   I'm not asking how to fix this problem, as there are a ton of references of that already on Server Fault (reinstall OS). Why does it do anything destructive at all?  If you've ever ran this command you pretty much immediately destroy your operating system. I'm not clear why removing restrictions has any impact on existing processes. For example, if I don't have read access to something and after a quick mistype in the terminal suddenly I now have access well... why does that cause Linux to break?


Is correlation required condition for causation?

We all know that , but I am wondering whether there can be causation without correlation. If there are such cases, could you explain them?  I am asking this question in order to validate my statement that "Correlation is required but not sufficient condition of causation.", but I'd like a broader context, not just yes or no.


-Bash command not found appearing every time I start terminal

every time I start my terminal, it always says "-bash:  .: command not found" twice.  Does anyone know how I can get rid of that?


Infinitely many primes of the form $4n - 1$ proof

Prove that there are an infinite number of primes of the form $4n - 1$. I am having trouble solving this problem, so any help would be appreciated.


java.net.SocketException: Connection Reset 2

When my Client (code below) sends data to my Server (code also below), I get the following SocketException NOTE: The Client and Server are compiled into separate jar files.  java.net.SocketException: Connection reset at java.net.SocketInputStream.read(SocketInputStream.java:209) at java.net.SocketInputStream.read(SocketInputStream.java:141) at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:284) at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:326) at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178) at java.io.InputStreamReader.read(InputStreamReader.java:184) at java.io.BufferedReader.fill(BufferedReader.java:161) at java.io.BufferedReader.readLine(BufferedReader.java:324) at java.io.BufferedReader.readLine(BufferedReader.java:389) at Main.main(Main.java:16) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)   Client Source:  import java.io.IOException; import java.io.PrintWriter; import java.net.Socket;  public class Main {     public static void main(String args[]) {         try {             Socket myClient = new Socket("localhost", 9998);             PrintWriter writer = new PrintWriter(myClient.getOutputStream());             writer.write("Testing");             writer.flush();         } catch (IOException ioex) {             System.out.println(ioex);         }     } }   Server Source:  import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.net.ServerSocket; import java.net.Socket;  public class Main {     public static void main(String args[]) {         try {             ServerSocket myServer = new ServerSocket(9998);             Socket clientSocket = myServer.accept();             while(true) {                 try {                     BufferedReader reader = new BufferedReader(new InputStreamReader(clientSocket.getInputStream()));                     String clientData = "";                     clientData = reader.readLine();                     System.out.println(clientData);                     clientSocket.close();                 } catch (IOException e) {                     e.printStackTrace();                     System.exit(1);                 }             } /*            while(true) {                 //Apparently, this will print a list of connections made... Useful in future?                 System.out.println(myServer.accept());             }*/         } catch (IOException ioex) {             ioex.printStackTrace();             System.exit(1);         }     } }   Thanks in advance!  Edit    I've found a solution and will post a link to the source I used here tomorrow.


Why do traces on PCB's go back and forth? My first thought was it acts as a delay however the length of it should make the delay unnoticeable, if nearly non-existent. Image of example:


How to export several SQL results into an Excel workbook with Python?

Currently I am able to connect to a SQL server, fetch data through the tables and export the results in a .xlsx file, but I am able to export only one set of results instead of the two set of results that SQL displays in Microsoft SQL Server.   This is the set of results that I receive from SQL.    This is my Python code that I use to connect to the database, extract results and save them in an Excel file.  from openpyxl import Workbook from datetime import timedelta, date import pypyodbc  def extract_from_databases():      # declare cursors for the rows of the .xlsx file     # in openpyxl, you start counting from row 1 and row 1 contains the headers     row_main_file = 2      #set the start date of yesterday     start_date = date.today() - timedelta(days=1)      # declare the SPs     retrieve_values = "[MSA].[CSchema].[DEV_N2G_GetData_ResultsExport] @start_date='{start_date:%Y-%m-%d}'".format(     start_date=start_date)      #connect to the database     database_connection = pypyodbc.connect(driver="{SQL Server}",     server="10.xxx.xxx.xxx", uid="xxxx", pwd="xxxxx", Trusted_Connection="No")       #declare main cursor in SQL     main_cursor = main_connection.cursor()      print("The execution of SPs is in process")     main_cursor.execute(retrieve_values)     main_cursor_results = main_cursor.fetchall()      c_wb = Workbook()     c_s =  c_wb.active     c_s.title = "Data Sheet 1"     c_s['A1'] = "Date"     c_s['B1'] = 'hour'     c_s['C1'] = 'CName'     c_s['D1'] = 'SName'     c_s['E1'] = 'SCname'     c_s['F1'] = 'CS_I'     c_s['G1'] = 'CS_D'     c_s['H1'] = 'PS_I'     c_s['I1'] = 'PS_D'      for index, value in enumerate(main_cursor_results):         try:             # extract from the tuple 'results' the value of each item and store it in every column for all rows             c_s.cell(row=row_main_file, column=1).value = value[0]             c_s.cell(row=row_main_file, column=2).value = value[1]             c_s.cell(row=row_main_file, column=3).value = value[2]             c_s.cell(row=row_main_file, column=4).value = value[3]             c_s.cell(row=row_main_file, column=5).value = value[4]             c_s.cell(row=row_main_file, column=6).value = value[5]             c_s.cell(row=row_main_file, column=7).value = value[6]             c_s.cell(row=row_main_file, column=8).value = value[7]         except:             print("Error in line %s\n data=%s" % (index, value))         row_main_file = row_main_file + 1     c_wb.save("C:\\Users\\xxx\\outputs\\Workbooks\\export_results.xlsx")     print("The writing process for the values.")     colombia_cursor.close()   How can I export the two sets of results from SQL in two worksheets?


$d(1)=0,d(2)=1,d(3)=2,d(4)=9,d(5)=44$.  Verify that $d(5) = 44$ and thus that the probability of a random rearrangement of $5$ objects being a derangement is $44/120 = 0.3\overline{6}$.  I've been trying to find examples on Google/Youtube on how to do this question but I had no luck. Can anyone show me how to do this question, and what equation was used?


How can I upgrade from Windows 7 to Windows 8 and keep my files and applications?

I want to upgrade from Windows 7 to Windows 8. How can I do this while keeping all of my files in-tact? Is it possible to retain all of my applications and user settings, too?


I am trying to recover an Outlook .pst file password.  Is there some way to do this?  I am using Outlook 2007 and Windows 7.


I would like to get a list of the properties configured in my system using the @Value annotation from spring. Is it possible? I need the configuration key that is set in the @Value().  I know I can scan for annotations, but is there a better way to do this? If perhaps there is some support in the spring framework to get this information.


Looking for title of SciFi story (on TV) about invisible men who fix things out of place in time

I remember a short I saw on TV many years ago about time as a continuum, I think a train?  there were men who fixed things that were out of place.  It was an explanation of why you would think your glasses were on the table.  They would not be there but when you went back, they were there.  The invisible workers were supposed to always be ready to have everything in place.  A woman was planning to dust a high bookcase, so they sprinkled dust on it right before she dusted.  I think she ends up accidentally seeing one of the time fixers.  I always think of this story when I am missing something and then it shows up. Can anyone help?


When should an F-test be one sided vs two sided?

If we increase both numerator and denominator degrees of freedom of the F distribution, then the pdf narrows down on the value 1.   This suggests that a two-sided test is reasonable: If we have high degrees of freedom, then finding e.g. our test statistic $F=0.034$ is extremely unlikely: not only high, but also low values are unlikely in this case.   Yet I have so far not yet a textbook use a two sided test of the F test. Instead, we reject the null hypothesis only when the test statistic is very large.   Why don’t textbooks use a two sided test? When is a two sided test reasonable for the F test, and when is a one sided test reasonable?


Given that a series {$x_t$} where $x_t=sin(t+U)$, $U$ has uniform distrubution on $(0,2\pi)$. Now $E(U)=\pi$, $var(U)=\frac{\pi^2}{3}$, I noticed that $sin(x)$ is a periodic function, $U$ is from $0$ to $2\pi$, so is there some useful information? Here I think it is hard to find the p.d.f of this $sin(\cdot)$ function or using Taylor's expansion. Can anyone help me with that? Thank you in advance!


Can someone explain the simple intution between Principal component 1, 2, ... etc in PCA?

I see that in PCA the first principal component maximizes the variances amongst all the points within the data set. What exactly does this mean, what does it show and what does every other principal component thereafter tell me?  I read these really nice simple explanation on PCA that helped me understand PCA as a whole:     To decide how many eigenvalues/eigenvectors to keep, you should   consider your reason for doing PCA in the first place. Are you doing   it for reducing storage requirements, to reduce dimensionality for a   classification algorithm, or for some other reason? If you don't have   any strict constraints, I recommend plotting the cumulative sum of   eigenvalues (assuming they are in descending order). If you divide   each value by the total sum of eigenvalues prior to plotting, then   your plot will show the fraction of total variance retained vs. number   of eigenvalues. The plot will then provide a good indication of when   you hit the point of diminishing returns (i.e., little variance is   gained by retaining additional eigenvalues).   However, it's still unclear to me as to really what each PC means and what PC2 now represents and PC3, etc.


Solving the functional Equation $f(f(x))=f(x)+x$

Let $f$ be continuous on $\mathbb{R}$. Then how to find all continuous functions satisfying $f(f(x))=f(x)+x$


How can I remove the new weather information from the taskbar?

After the last Windows update (), I got this weather icon on the taskbar and clicking on it shows the news, weather and traffic information. How can I remove it?


I get a "bad login" message when trying to play multiplayer

When I try to play multiplayer I type in the only server I know, which the game says was right, then click Play and it loads. Then it says Can't connect to server: bad log in. How can I fix this?


Is it possible to prove that in a circle $\frac{circumference}{diameter}$ is constant?

How can I prove that in a circle $\frac{circumference}{radius}$ is constant ? I know that $\pi$ is defined like that (because it's indeed constant). But how to prove that it's indeed constant ?


Is there a way to capture the currently playing "sounds" ?  For instance, If I want to copy (to an audio-file) the noise I make while playing a flash game, is there a way to record what is currently to be heard in my headset ?


Can someone tell me where to get MacOS Mojave?  I have a Mac which I have upgraded to Catalina, and I need to downgrade to run some legacy apps.    Thanks.


What Kind of investments should a new person in money should start with first?

I am thinking about entering the world of money and what should a first time investor should do to get a idea of what they are doing?


What is the generic standard for upvoting a question on Stack Overflow?

I know this is a bit subjective, but I've been thinking and it seems obvious when to upvote or downvote an answer. But what about the question? I mean, some questions are purely self serving and don't really add anything to the community. On the other hand some questions help others, make you think, etc.   I am wondering if there is a generic standard for upvoting questions?


Calculate confidence interval for the population variance

Here is the problem:  When cheching the Chi squared distribution table, the it seems like in the solution the denominators should be switched, because for .025 quantile the value is 13.844 and for .975 it is 41.923. But here everything is the other way round. Can someone explain?


Why can't variables be declared in a switch statement?

I've always wondered this - why can't you declare variables after a case label in a switch statement?  In C++ you can declare variables pretty much anywhere (and declaring them close to first use is obviously a good thing) but the following still won't work:  switch (val)   {   case VAL:     // This won't work   int newVal = 42;     break; case ANOTHER_VAL:     ...   break; }     The above gives me the following error (MSC):     initialization of 'newVal' is skipped by 'case' label   This seems to be a limitation in other languages too.  Why is this such a problem?


Can I create a Stack Exchange Account as My Company Name?

According to terms of service of this site, can I create a account as my company name?  For example: assume that I have company / Business / Start-up called "ABCDEF".  Can I create a Stack Exchange account with "ABCDEF" as display name?


How much is a cup of graham cracker crumbs in crackers and weight?

I have a recipe that calls for one cup of graham cracker crumbs.   How many crackers am I going to need to crush?  I'm having trouble finding an answer partly because different people consider a "cracker" to be of various sizes.  I would consider a cracker to be a full sized sheet like this:   ()  It would also be helpful to know what a cup of graham cracker crumbs weighs.   My box of crackers is 14.4oz.   I could estimate what portion of the box to use if I know how much a cup of crumbs weighs.


Windows 8 License Transfer on a Toshiba Laptop

So a friend of mine recently purchased a Toshiba Satellite C855.   The computer comes with Windows 8 pre-installed on a 5400 RPM SATA disk.   I had my friend purchase a 240GB SSD that I was planning on swapping his spinning SATA drive with to improve performance, however when I started looking for the Windows 8 license (which has traditionally been printed on a sticker on the bottom) I don't see anything at all.   I am going to need to transfer over the license since I am going to be switching out the hard disk and was wondering if anyone could tell me how I would go about obtaining the license so I can transfer it to the SSD install?   I still have his original HDD with Windows 8 installed on it if needed.     I originally tried to image his old HDD using HDClone Standard, but my computer does not seem to recognize the SATA HDD when I connect it to my primary desktop.   However if I reboot my primary desktop with the hdd plugged in, it attempts to boot Windows 8 so I know the hard drive works but for some strange reason I just cant get it to show up in the Disk Management MMC.  Any suggestions?


I'd like to remove the already started village because my son can't / won't stop playing it.   Congratulations to the developers on the success of game, but I need to kill the village in order to save my son from himself.


Rename files by adding their parent folder name

I have a parent directory composed of a set of sub-directories. Each sub-directory is composed of a list of files.  Here is the scenario:  v_1: filenames.txt  v_2: labels.txt  v_3: coding.txt   What is my expected output?  v_1: v_1_filenames.txt  v_2: v_2_labels.txt  v_3: v_3_coding.txt   What l have tried to solve that?   rename -n 's/(.*)\//$1\/$1_/' */*   which prints  rename(v_1/filenames.txt, v_1/v_1_filenames.txt) rename(v_2/labels.txt, v_2/v_2_labels.txt) rename(v_3/coding.txt, v_3/v_3_coding.txt)   However it doesn't work. To confirm that I did:  ls *   and I get:   v_1: filenames.txt  v_2: labels.txt  v_3: coding.txt   Any cue? Thank you


What is the percentage for a tag in your careers profile?

There is a percentage displayed in the Careers profile.   Does anybody know what the basis of this is?


How to update Galaxy Nexus from 4.0.2 to 4.2?

I had a Galaxy Nexus running Android 4.2.1 and it broke. My insurance replaced it, so I have a new Galaxy Nexus running Android 4.0.2. The new phone doesn't show that any system updates are available. (Well, I think it updated from 4.0.0 to 4.0.2 as soon as I turned it on, but nothing since then.) How do I update it to 4.2?  (Sorry if I'm not giving enough information; I'm new and I'm not sure what's relevant.)  QUESTION RESPONSES: -I am in Canada and my provider is Mobilicity. -I have tried going to About Phone -> System Updates and nothing shows up.  When I first got the phone, it updated from like 4.0.0 or 4.0.1 to 4.0.2, but that's all that has showed up.  I also tried clearing the cache and force stopping Google Services Framework, as suggested in another thread. -I don't really know what it means to install the update manually; I guess I'm willing to, but I feel that something must be wrong because this is the exact same phone (as far as I can tell) I've had for the last year with the exact same provider.  When I got this phone one year ago, it ran Jelly Bean automatically, so I don't get why this one wouldn't do the same automatically.  NEW INFO: -Sometimes when I click System Updates, after it says there no updates available and shows "Last checked for updates" as the current time, it starts downloading a 41.2 MB "Android System Update".  After it downloads, it restarts and gets that picture of the robot having surgery, but it's still running 4.0.2.    I don't think this question is a duplicate of the one posted, because this is a case where I know there is an official update from the carrier/manufacturer, but my phone isn't seeing it.  I noticed another thing: when it downloads the "Android System Update" and restarts, the picture of the robot starts off as a green guy standing up with a blue thing spinning in his chest, but then it changes to the green guy laying down with a red caution triangle over his chest.  Does that tell me anything?


Is there any tweak to bring back emblems in Nautilus?

I read the following dev email  and when i read this part:  Note that this does not completely remove the ability for extensions (e.g. Dropbox) to add emblems programmatically by using the libnautilus-extension library, just the user-added emblems from the properties dialog/emblems sidebar.   There is ability to bring emblems programmatically. So, How can i use libnautilus-extension library to add some emblems like Dropbox does? Or is there any tweak tool for this?


I setup an alias on my Ubuntu Mate 19.04 like this,  alias up='apt-get update && apt-get upgrade'   I've setup the alias at the end of the file bash.bashrc, using these commands,  nano /etc/bash.bashrc source /etc/bash.bashrc   But when I try to use sudo up "command/alias", it returns an error,  sudo up: commmand not found   If I run only up, I get this error,  Reading package lists... Done E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied) E: Unable to lock directory /var/lib/apt/lists/ W: Problem unlinking the file /var/cache/apt/pkgcache.bin - RemoveCaches (13: Permission denied) W: Problem unlinking the file /var/cache/apt/srcpkgcache.bin - RemoveCaches (13: Permission denied)   I've put the sudo on the alias according the recommendation @steeldriver, like this:  alias up='sudo apt-get update && sudo apt-get upgrade'   But then I've got this message:  E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied) E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?   It is asking me if I am root. But when I run up Ubuntu ask for the sudo password. Then I deduce I am at root.


Why some people use could instead of can (in the simple present tense) For example,  Could you open the door?


Why is functional form so important when specifying models?

Variables: lprice = log(price of house) ldist = log(distance from incinerator) lintst = log(distance from interstate)   1st regression    2nd regression:    In the 2nd regression I included lintstsq, which is the squared lintst from the 1st regression, and suddenly ldist and lintst become significant and their coefficients change. This doesnt make sense, how come the statistical package couldnt pick up that lintst was significant until I included its squared form, lintstsq? Can someone provide insight into this?  My lecturer's comment on this was:     This makes sense. Being close to the interstate is useful, especially   for commuters who use the interstate to get to work. But being too   close is not good owing to the noise and pollution. If distance from   the incinerator site and distance to the interstate are correlated, we   need to get the model specification with respect to the latter right   in order to identify the effect of the former.   which doesnt help explain much(or does it?)


Allow diamond moderators to comment on deleted or locked items

Moderators should be able to comment on things after normal users are unable to, such as when a post is deleted or locked. As a moderator on Programmers, I try to leave a comment (if necessary) before taking the appropriate action on the post. However, in the time it takes to write a comment (which often includes digging up links to the most relevant resources and citing specific problems), things may happen - users can leave new answers or comments, Community or the author can delete the post, and so on.  A responding moderator should be able to take the appropriate moderator action on the post to remove the problematic behavior/content from the site and then leave a comment so that the user can learn why this behavior is unacceptable or what needs to be done to fix the content (if it's fixable).  This would effectively change the workflow from {hope no one will do anything -> write a comment -> hope nothing happened to the post that invalidates or blocks the comment -> moderate} to {moderate -> comment}.  Diamond moderators should be able to comment on posts that are otherwise locked from comments.  When a moderator comments on a deleted post, the comment should generate an inbox notification for the post's author just as it would if it were posted right before the post was deleted.


The current review system encourages fake reviews; some people upvote everything rather than actually fixing problems

I went to a Late Answers review queue that had four items in it and started reviewing the first one by editing it into shape rather heavily.   By the time I was done, someone else had reviewed the same post simply by upvoting it, so I only got a "Next" button, not an "I'm done" button. My edit still counted as an edit; but no longer as a review.  Worse still, the other three items were gone from the review queue as well. Curious, I checked the review tab in the profile of the user who had snatched the first review out from under me. Sure enough, he also "reviewed" the other three items, all within a minute, without even fixing obvious typos, simply by upvoting. I had to go through his review list and review every single post again.   Except, of course, my reviews didn't count as reviews anymore. My review count went up by zero. His went up by four — for fixing exactly nothing in posts that absolutely could use fixing. To add insult to injury, this was on a site where collecting four review points is incredibly hard because the review queues there are pretty much empty 24/7. (Edit: and now that that is also true of SO, we are seeing the same behavior here.)   So what we get are:   Subpar answers that do not get fixed and get upvoted instead and disappear from the radar of the people who are actually capable of and willing to fix them.  Fastest-gun-in-the-West, single-click, faux reviews that count towards rare Gold badges, while elaborate, actual reviews don't.   This is severely broken.  And I can't think of an easy solution that wouldn't break other things.    Simply not letting upvotes count as reviews is not an option (it discourages upvotes not just on crap, but across the board; and some posts really are fine as is and deserve nothing but an upvote). Simply always counting a review as a review, even if someone else is faster to review the same post, introduces review-point inflation and only solves the problem for one faux review, but not for several in a row, as in the scenario above. Simply letting several people review the same item, like with suggested edits, is not really "simply" anymore, and introduces more review-point inflation still. Likewise, allowing people to reject or override other people's reviews as not substantial enough opens all kinds of cans of worms.   And so on and so forth. I really can't think of anything Solomonic. But perhaps someone else can.


I just went above 15 reputation and went to see the upvotes I gave on a couple of topics, and none of them were there, although the message popup says that my votes are remembered and will show up when my reputation rises above 15. So I gave the upvotes again and now they work as expected.  So either it is a bug, or the message should be changed so the voting is forbidden.


change gsettings without running X and Unity

I am trying to change some gconf settings in Ubuntu 12.10. I would like to change the lightdm greeter background.  I have discovered that while logged in to unity as a user while running X server, I am able to do this with:  sudo xhost +SI:localuser:lightdm gsettings set com.canonical.unity-greeter background "'/usr/share/backgrounds/micros-background.png'"   The problem is that this requires me to login as a user under X. So that entire window manager needs to be running. But I want to use chroot to change these settings without any X server running. I just want to mount the partitions and change gsettings without having the full window manager running.  Is there a way to directly change gsettings without being logged into X and Unity?  Or alternatively... is there a way to bring up the X server and Unity in the background so that I can make the changes without having a full windowed display come up on my monitor?


Installing extra/additional plugins for standalone CKEditor module library

I have the CKeditor plugin installed by itself (i.e. not using WYSIWYG module.) Then, it uses a CKEditor library located in sites/all/libraries/ckeditor. This works fine. I'd like to add more plugins to it; namely, the footnotes plugin. (For the moment, please refrain from "just download a new library from ckeditor.com and replace it"; there were other issues/considerations involved.)  Now, I see this everywhere when I try to look for a solution  config.extraPlugins = 'footnotes';   I tried adding that to admin/config/content/ckeditor/edit// -> Advanced Options -> Custom JavaScript configuration, but it white screens the editor.  I tried adding it to the config.js in sites/all/libraries/ckeditor like below, but it had no effect.  CKEDITOR.editorConfig = function( config ) {   config.extraPlugins = 'footnotes'; };   I can't really add it to a ckeditor.config.js file, dump that file in my theme, and choose "Yes" for "Load ckeditor.config.js from the theme path", since (for content creation/editing) it uses the admin theme which is different from the theme we're developing.  So, I'm at a loss. The only other thing I can think of is to use a hook in the module we have for the site, but I'm not sure if that's write/what hook would be called.  Is it just me, or does it seem like clear documentation on how to manage CKEditor in Drupal is severely lacking? Any help would be appreciated.  UPDATE: After some testing, it looks like the "Custom JavaScript configuration" is supposed to work, but it is possibly broken for CKEditor 4.4+ I read something (can't seem to find it now) that suggested the plugin/widget import was broken on 4.4+, so I changed to 4.3 and the extraPlugins worked. Now, I wasn't able to get footnotes working (which is what kicked this whole thing off), but some other plugins that previously failed during the same steps now work on 4.3. So, there's that. I'm wondering now if it's something with footnotes itself.


How to find decent airfares when you need to travel urgently due to personal circumstances and only for a very short time?

Having a global dispersed circle of friend and family, it happened already twice that I needed to travel urgently because of serious personal circumstances. When I had to travel to the deathbed and subsequent funeral of a relative, I even paid twice the price of normal first class ticket for an economy ticket.   When you are confronted with an urgent situation in your family (death or serious illness) how can you find a more economical airfare? I don't mind paying more then normal, but the fares airlines charge you for very short and urgent trips are often outrageous.


not able to use a variable as a global variable in python

I have a mqtt broker which I am connecting through python.   I want to check if I am able to connect to my broker and trigger a mail if my connection is successful.  I intend to use a global variable connected and if this is false after trying to connect I trigger an alarm.  My code:  import paho.mqtt.client as mqtt  import time  broker_address="ip" port = "port"  global connected   def mqttConnection():     connected = False     print(connected)     client = mqtt.Client("BrokerCheck",clean_session=True) #create new instance     client.on_connect = on_connect     print('Connecting to broker')     client.connect(broker_address, port=port) #connect to broker  def on_connect(client, userdata, flags, rc):     if rc==0:         print("connected OK Returned code=",rc)         connected = True     else:         print("Bad connection Returned code=",rc)    if __name__ == '__main__':     mqttConnection()     time.sleep(60)     if connected:         pass     else:         #trigger an alarm   But I have a problem with my global variable connected. Am I using it in a right way?


I have a Windows system and when I turn it on everything runs and turns on but the monitor stays black. No BIOS shown or anything. Ideas?  This is also a brand new system. No more then a year old running an i5.  Could it be powersupply?


Let $f,g$ be entire functions on $\mathbb{C}$. If $|f(z)|\leq |g(z)|$ for all $z\in\mathbb{C}$, then prove there exists constant $c$ such that $f=cg$.   I have no idea... I intend to apply Liuville Theorem but this requires $f/g$ to be an entire function. Is there any version of improved Liuville Theorem?


PhpMailer sent email goes to spam, also in the Security Details mailed by shows my host parameter, how to fix this?

I am using PHPMailer to send email to my users, the thing is that the last time i used this feature, that would be 2 months ok everything was ok, the emails were getting into the inbox of users and in the Security Details the Mailed By and Signed By parameters were taken manually by me.  Right now, when i try to use this mailing system, all the emails are getting into the spam folder in gmail and in Security Details the Mailed By shows the host details.  How can i fix this issue? What do you recommend?


Taskschd.msc / SCHTASKS "The user account you are operating under does not have permission..."

Been receiving the following error when trying to modify tasks with taskschd.msc and SCHTASKS (in CMD prompt).   Specifically in the UpdateOrchestrator folder/directory of "C:\Windows\System32\Tasks\Microsoft\Windows".  "The user account you are operating under does not have permission to modify this task"  When using taskschd.msc.  Also, Error: Access is Denied  When using SCHTASKS.  Can anyone explain a proven way to gain privileges to modify tasks in this folder without using 3rd party application (such as PSEXEC or NSudo).  Yes, I am launching both taskschd.msc and CMD Prompt as administrator.  EDIT: This specific question has not been answered despite Moderators claiming it has. The solutions provided in other threads either involve PSEXEC/NSudo or provide a solution that is not effective (Deleting registry keys to cause the keys to repopulate with different settings).


Is it possible to put a full installation of Windows 10 on a USB flash drive?

I have a laptop in which the internal drive bay has been destroyed, but the rest of the laptop works fine. I was wondering if it's possible to do a full installation of Windows 10 on a USB flash drive.  I'm aware of Windows To Go, but I'm not sure if it's what I want. I don't need a "portable" installation of Windows, I intend for the flash drive to be permanently connected to the computer. I would prefer for the system to function as normally as possible.  If I can't figure out how to do this, I'll probably just install Linux onto the flash drive instead.


Why does an electron have left-handed and right-handed components?

An electron is assumed to be a point particle that does not have structure. Why does it have left-handed and right-handed components? Does this imply that the electron has structure or volume?


Posts deleted by the community (from the low-quality review queue) don't show why they were deleted

If a post is deleted by its owner, it shows the status "deleted by owner".  If it's deleted by users casting delete votes, it shows "deleted by (names)".  If it's deleted through spam or offensive flags, it shows "deleted by Community".  But if it's deleted from the low-quality review queue, it just says "deleted".  .    I saw one of these today and was puzzled.  Because I'm a moderator on the site where I saw it, I could look at the timeline and see how it happened.  But non-moderator 10k users can't.  I know that the review will show up in the revision history for the post, but if there haven't been any edits -- a common occurrence on the deleted LQ posts I've seen -- then you have to know how to manually construct the URL to see the revisions.  Could these deletions say "deleted by Community" like spam/offensive ones do?  (I think naming the six voters would create confusion, but we don't need names -- just a hint that this wasn't a moderator action or a bug.)


in which situation such a prepositions "until" and"by" could be interchangeable?

This question comprehensively has been edited:Could you think of where or in which situation or condition--or which verbs-- such prepositions could mean the same thing or even interchangeable?  until  by   The documents need to be ready by next Friday.  Here "until" would have the same meaning.   UPDATED: So, you could see both the prepositions has been used with the same verb-- although the meaning of the sentence has been changed. My specific question is about the stative or dynamic verbs, since the preposition "by" could go just along together dynamic verb, and conversely the preposition"until" merely can go with "static" verbs.   Imagine that it takes some time to extend negotiations. Perhaps everybody needs to fill in many forms. There's a lot of administration to do, if you want to extend negotiations. Now look at this sentence:  They decided to extend the negotiations by July 1, 2015. This sentence means that they decided to finish all the administration for the extension before July 1, 2015.  Now look at this sentence:  They decided to extend the negotiations until July 1, 2015. This means that the minimum duration of the negotiations is from now to July 1, 2015. The negotiations will not finish till July 1, 2015.  Thanks in advance


What's the best way to extract audio from a video file?

I am a huge fan of . It is the epitome of simple. Select a video file (or DVD), select a preset, select an output path, click Start. A certain amount of time later relative to the size/quality of the content, and you have yourself a pretty much perfect video file suitable for the medium of your choice.  I've been looking for similar qualities in an Audio Converter, and more preferably, an Audio Extractor (from a given video file). I would love to be able to drag a video file into an application, specify that I want the Audio File in AAC at a given bitrate, click Start, and let the app do the rest.  I am not averse to using Handbrake to suffice the conversion aspect of this, so long as the audio extraction after the fact is a simple process. The point is to take as few steps as possible.  Any tips? Apps? Ideas?


If two WiFi networks exist with similar SSIDs, how can you distinguish between the two in code?

I'm writing a small network management tool.  In order to pull out the details for various WiFi networks, I'm making calls to the wlanapi.dll, WlanGetProfile(...) API method to get the profile information for each available WiFi network.  Assuming two local WiFi networks have similar SSIDs, how can I query information on these two networks and distinguish between the two when I present the information to the user?  I am writing my app in C#, however, generalized details that are not code-specific can be provided if they will give me the answers that I needed.  However, I'm tagging this as C#/.Net because if there is a way to get this information using native .Net libraries, I'd appreciate C# code samples.


Extinction probability of binomial branching process tends to poisson one.

The folowing is stated and proved in the random graphs book by Luczak, Janson, Rucinski and this is on page 108 in the Giant component section.  I can't understand why the conclusion follows from the last statement in the proof.  Question: We consider a series of branching processes with immediate offspring distribution $X_n \sim \mathrm{Bin}(n,p)$ where $np \to c$ as $n\to \infty$ for some constant $c>1$.  We also consider a random variable $X \sim \mathrm{Poiss}(c)$.  If we denote by $\rho_{X_i}$ the extinction probability.  Show $\rho_{X_i} \to \rho_X$.  Solution: This is the solution given in my textbook, it seems wrong to me and I don't seem to be able to fix it, it is quite important to me as the remainder of the chapter is based on it.  We know that generating functions are  $$f_{X_n}(x)=(1-p+xp)^n$$ and  $$f_X(x)=e^{c(x-1)}$$  It is now a standard result that for a fixed $x$ $f_{X_n}(x) \to f_X(x)$ so $f_n$ converge pointwise to $f$.  As $c<1$ we have $f_{X_n}(\rho_{X_n})=\rho_{X_n}$ and $f_{X}(\rho_{X})=\rho_{X}$  Now the book just states that this implies $\rho_{X_n} \to \rho_X$. And I just don't see why.


Can anyone show me how to get this font (both text and math formula) in LaTex.


Table in latex with uneven spacing between columns

I am trying to create a graph in Latex with the given code:  \begin{table}[htbp]   \centering   \caption{Table showing the processed data.}     \scalebox{0.7}{     \begin{tabular}{|c|c|c|c|}     \hline     \multicolumn{1}{l}{Average distance, x/ $\SI{}{cm}$} & \multicolumn{1}{l}{Uncertainty in average distance/ $\pm \SI{}{cm}$} & \multicolumn{1}{l}{Average distance squared/ $\SI{}{cm^2}$} & \multicolumn{1}{l}{Uncertainty in average distance squared / $\pm \SI{}{cm^2}$} \\     \hline     18.2  & 0.3   & 332   & 10.9 \\     24.4  & 0.5   & 597   & 24.4 \\     28.0  & 0.6   & 786   & 33.6 \\     35.7  & 0.8   & 1280  & 57.2 \\     38.6  & 0.5   & 1490  & 38.6 \\     45.2  & 0.5   & 2050 & 45.2 \\     49.1  & 1.1   & 2410 & 103.1 \\     56.5  & 1.2   & 3190 & 130.0 \\     59.7  & 1.2   & 3560 & 143.2 \\     61.1  & 3.6   & 3730 & 433.8 \\     63.3  & 1.0   & 4000 & 120.2 \\     \hline     \end{tabular}     }   \label{tab:addlabel}% \end{table}%   But when I compile, the table looks very uneven:   What is causing the table to align itself in this way and how can I fix this issue?  Thanks, Aidanaidan12


Isomorphism between Projective Varieties

Let $m,n\geq 0$ be integers and $k$ be an algebraically closed field. $\mathbb P^n \times \mathbb P^m$ is isomorphic to $\mathbb P^{m+n}$ if and only if $m=0$ or $n=0$.   any comments and hints would be highly appreciated.


I was asked to prove the Principle of Cauchy Induction

Question: Carefully prove the Principle of Cauchy Induction: Suppose $P(n)$ is a property that a natural number $n$ may or may not have. Suppose that   $P(2)$ holds, For every $n ≥ 2$, if $P(n)$ holds, then $P(2n)$ holds, and For every $n ≥ 3$, if $P(n)$ holds, then $P(n − 1)$ holds.   Then $P(n)$ holds for every natural number $n ≥ 2$.


I am developing a database for my organisation that could be spatially enabled. I have to use MS Access 2007 on Windows and am therefore looking for any possibilities to incorporate my Access Database into a mapping tool to embed inside my Access application. Has anyone successfully created an MS Access project which embeds a mapping window? I would ideally like to simply geocode my datasets - digitize a point after inputting my data into the DB.


Is there any SE Site where Questions related to Hacking are on-topic?

Is there any SE Site where we can post questions related to Hacking (Networking)?


im working on an app which uses api calls. When im typing the right api keys everything works fine howver if i put wrong details i will get the 401 error. I know what this error means an im expecting it so i have my own handlers, the problem is the warning which the browser outpus. I've tried to disable every error but then i cant debug the app, Is it possible to disable it from php's config? If yes how? Thanks  Code:  $apicalldata = file_get_contents("https://api.digitalocean.com/v1/droplets/?client_id=xxx&api_key=xxx");  $call = json_decode($apicalldata);   $status = $call->status; if ($status != "OK") { echo "Sorry, the API details are wrong!"; }


I looked at many posts about the use of latexmk, but wasn't able to find what to write in order to satisfy my requirements. Yet I'm sure it is possible, but my skills in Perl amounts to about nothing.  What I would like to do with a file, say mymainfile.tex:   make a format file including the static part of the preamble, named  mymainfile-xelatex.fmt if I use xelatex, and store it in the fmt/ subdirectory of the directory that contains mymainfile.tex (I can do that just with mylatexformat) regenerate the format if the (static part of the) preamble has changed (loading new packages, defining new commands or modifying existing commands).  Compiling mymainfile.tex with the customised format file.   The difficulty for me is point 2), and possibly point 1) — that is, not having to write a first macro to make the format, and the launching latexmk, but preferably that everything be done from latexmk.   Moreover I prefer not to write the static part of the preamble in a separate file, but keep it in mymainfile.tex as usual, and use the \endofdump command from the mylatexformat package  I use MiKTeX 2.9 on WinEdt 7.


Safari on iOS 9.2.1 / 9.3 won't open links

Update 2:   Update: .  My Safari on iOS 9.2.1 (update: and now 9.3) won’t open most links anymore, i.e. tapping on a link on a page does not do anything. Worse, other apps like Messages, Chrome are having issues when they try to open URL/Links.  The common issue is pauses when tapping links and even Mobile Safari tap and hold (to get the app open a link in a new tab), the device freezes and eventually crashes.   Looking at the html source for the links causing issues, it seems all scheme absolute links are affected (e.g. http://example.com/something), while relative links work (e.g. /some/page.html).  This makes me think third party registration of URL handlers (or what they are called) is related to the bug All apps that can open links, such as Mail or Spark, are affected. Tapping a link freezes the device. Tap & hold and then selecting copy link, switch to Safari or Chrome and paste URL sometimes helps/works. It happens mostly on Google and DuckDuckGo result pages. On some other pages it works.   I tried things to rule out a simple setting error:   disable all content blockers delete website data from Safari (in preferences app) kill all apps, restart iOS. Tried Chrome, and it doesn't work there on simple taps, but tap and hold works, and I can open them in a new tab at least.   My conclusion is that this bug relates to iOS 9.2 and third party app updates triggering bad behavior, I saw constant crashes of the swdc process in my iPhone logs and I . Suspect apps include:   Wikipedia Booking.com   Is there a way to list these apps that change link handling so I can selectively uninstall them?


use find -exec with a filename containing a dollar sign ($)

I have a directory with some .flac files:  [test]$ ls  'test file (with $ign & parentheses).flac'  'test file with spaces.flac'   I want to run an ffmpeg test command on those files, i used find with -exec argument to achieve this:  find ./ -type f  -iregex '.*\.flac'  -exec sh -c 'ffmtest=$(ffmpeg -v error -i "{}" -f null - 2>&1);if [ -n "$ffmtest" ];then echo -e "{}\n" $ffmtest;fi ' \;   Little explanation for my code:  The find command will find the .flac files and pass the names to the ffmpeg command for testing. The ffmpeg command tests the file and return an error string to stdout(because of the redirection at the end) or nothing if no error is found, the if statement following the ffmpeg command is used so that if ffmtest variable contains an error then print the name of the file with the error followed by the error string(if the file contains no error then nothing will be printed).  My code works as expected but it fails if the filename contains a $ sign followed by a letter  so for the test files mentioned above the output i get is this  [test]$ find ./ -type f  -iregex '.*\.flac'  -exec sh -c 'ffmtest=$(ffmpeg -v error -i "{}" -f null - 2>&1);if [ -n "$ffmtest" ];then echo -e "{}\n" $ffmtest;fi ' \; ./test file (with  & parentheses).flac  ./test file (with & parentheses).flac: No such file or directory   you can see that the test file with no $ sign was tested properly and ffmpeg didn't output any errors but it failed to even open the file with the $ sign in the name, you can see from the output of ffmpeg and echo that the filename was interpreted and the $ sign followed by the letters were treated as a variable.  So how can I tell find to escape such characters ?


At the moment I am trying to implement fbx model loading in my DirectX 11 code. This is old code I had create for use with DirectX 9 and I'm simply trying to bring it back up to date.   Since I first create the code, the SDK version I used was 2012.2, not autodesk have released 2014.1. With that, I have managed to update all of my code bar one issue; my sdk seems to be missing all of the .lib and .dll files I need.   In my old code I needed add the following dependency:     fbxsdk-2012.2-mdd.lib   I thought it would be a case of changing it to:     fbxsdk-2014.1-mdd.lib   But this doesn't work. I've spent all weekend trying to find a solution to this, but can't. Does anyone know what I need to do in order to genereate these dll and .lib files?  I've downloaded all of the different SDK options from autodesk, I've searched for the 2012.2 version of the SDK, but got nothing. Failing that; can anyone recommend a good library. or way to implement 3D model loading into my project?  I've tried looking at AssImp but found it a nuisance to work with. So I would like to avoid if possible.


CSS class selectors not changing anything

I'm having problems with my CSS. It should set the colour of a div with a class (for a countdown), but the colour of the text isn't changing. I've tried numerous fixes,  but can't get it working. Here is the relevant CSS:  .10seconds, .9seconds, .8seconds, .7seconds, .6seconds { color: #00b200 ;} .5seconds { color: #ADFF2F ;} .4seconds { color: #E5E500 ;} .3seconds { color: #FFA500 ;} .2seconds { color: #FF5719 ;} .1seconds { color: #FF0000;}   And the relevant HTML:
10
   #timer has no set rules in my CSS file. Full .  Thanks in advance.


two circuits on a single pole GFCI breaker?

I think I may have found an instance of "hill-billy" wiring in my circuit box.  I have a 15A GFCI breaker.  Strangely, it is hooked up to the up stairs bathroom AND the outdoor outlets.  Recently it has started to perform poorly.  It either trips easily or doesn't work after reseting the breaker.  I opened up the panel and was surprised to see what looks like two circuits wired into the breaker.  That is, you have a two pairs of black/white (hot & neutral I presume).  The hot lines are going into the breaker together (on the top) and the same with the neutrals (on the bottom).  Is there any valid reason for this? It seems like the installer was lazy and because there isn't much room left on the panel they wired these two circuits into one breaker.  UPDATE:  This is a Bryant circuit breaker box from the late 80's.  The GFCI breaker was a 15 amp Sylvania which raised a bunch of eye brows when I brought it into the electrical supply place. Now it sounds like everyone makes "BR" compatible breakers including Eaton.  I ended up getting an Eaton breaker from Home Depot and only wiring in one pair of wires (the wiring to the outside sockets).  Seems to work fine.  I am going to buy another breaker and put it in one of the open spots in the box.  My guess is that whomever was last in this box didn't want to spring $40 for a second GFCI breaker.    UPDATE 2:  Thanks for the comments!  Giving that the house was built in 1986 it seems like it was standard to use one GFCI for multiple outlets.  In my case - this certainly caused problems over time and I am replacing with multiple GFCI breakers.


Guest (not logged in) users can only sort questions with specific tag by newest

I think this is platform wide (all SE sites).   Logout Choose a tag, eg.  on SO Try to sort questions by something other than newest   No matter what sorting is chosen, questions are sorted by newest


How do I adjudicate a PC jumping onto another creature from a height?

I have a PC who wants to jump onto an enemy in a combat situation. The player wants him to land on the (humanoid) enemy, sword drawn, and use the enemy to break his fall while plunging shortswords into it. I thought of using a straight attack roll, because it was only a 12 foot drop from the ledge to the top of the enemy. But I would imagine a lot would depend on the distance, and also whether the enemy might suspect such an attack. Also, I would expect the PC would take damage on a miss, but how about on success?


What is the difference between Biot-Savart law and Ampere's law?

What is the difference between these laws? Which law is more useful? When to use  and when to use ?


How to remove (not block!) a contact from Google Hangouts?

My question is related to .  So I have a person added to my , with phone number and e-mail. Person's e-mail is on gmail.com.  Every Gmail account is not just e-mail, but also is Google Hangouts account. So this person could be reached via hangouts.  Out from the box, when adding person to Google contacts, you don't really add him or her to your Hangouts contact list (I have 500+ at-gmail-contacts in my google contacts, but only 10-20 of them are in hangouts contacts). But when you start hangouts chat with this person (from Gmail web-page, or from Android Hangouts app, etc.), person's contact get added to hangouts contacts.  Then, you could use hangouts via "classical" XMPP, using your favourite client app (I use Kopete). When connecting to Google via XMPP with your Gmail login and password, your Jabber client get contact list, which is the same as your Hangouts contact list. So, it contains every person you ever chat via Hangouts.  My question is: how to delete person from Hangouts (or from XMPP, in certain case) contact list, not deleting it from ?  The only option I  is to "block" this contact in Hangouts, but I don't want to: blocking is useful, when you want to get rid of annoying companion or spammer, but sometimes you want just to clean-up your contact list form persons which are not active for the long time, but you don't really mean you don't want them to write you in the future.


Is there any research studying the optimal screen idle timeout, balancing convenience to the user versus security? In the scenario I'm considering, a timeout causes the user to have to log in again.


Log In With Stack Exchange. Why was this added?

I see a new feature on any login page for Stack Exchange sites called Log In With StackExchange. I wonder why this was added? I thought that OpenID was deemed a better plan and the whole thing was dealt with and no need to put more work on it.


Why were the humans unable to breathe the air in Pandora?

It was observed again and again in the movie Avatar that humans could not breathe the air present in Pandora. So it can be assumed Oxygen was not present in Pandora. But again the human fires which erupted in the Hometree bombing, wouldn't be sustained if there was no Oxygen at all. So what were the components present in the air of Pandora?  On the other hand if there was Oxygen, why could not the humans breathe there? So was the atmosphere in Pandora Oxygen filled or Oxygen free?


How to know, what SHELL is used when running a script?

How can I output that what shell is used to execute a script?   Ex.: the $SHELL variable gives that what is the default shell for the given user. That is ok, but the given user can launch the script with other shell, ex.: "sh script.sh" or "csh script.sh".   Using a Linux machine.


Cities missing from Stackoverflow Careers Cities?

I've noticed a few crucial cities missing from the Cities section on Stackoverflow Careers.  I can't find a place to suggest them.  I see Atlanta is there (currently has 9 open positions), but Dublin is missing (currently has 18 open positions).  Where can I suggest new cities?


Lets say I have a string...how do I convert that to a datetime?

s = "June 19, 2010"   How do I conver that to a datetime object?