I'm running Ubuntu 16.04 Xenial.  The thing is, I've been trying to create an X-session which directly boots into Windows 8 of VirtualBox which I achieved by following the instructions .  But the problem is, when I shutdown from guest OS it returns back to login screen. Instead I want to shutdown my PC. So, is there a way to create a script that runs automatically when closing VirtualBox session?  Edit: One more thing.. There should be an action (a shortcut) that brings back the login manager, so that I can switch back to Ubuntu session. Otherwise I can't exit VirtualBox session, since I have enabled automatic login.

I have installed virtual box 4.2 on a Ubuntu 11.10 host.  I have Windows 7 as the only guest OS.  I'm able to auto start Windows 7 virtual when Ubuntu boots by adding it in start application with the command "VBoxMange startvm Win7" in the command option.  Now when I shutdown Windows 7 , the virtualbox program is getting closed, but I go back to Ubuntu, when I want to have Ubuntu shut down as well when I click Shutdown in Windows 7 in Virtualbox.  This is an assignment for me. Can anybody please help me on this?  Also, when virtual box starts up automatically, Ubuntu's desktop should not be visible.


Hi I've made two programs: one is a level editor and the other one is a mario clone game.  I did: project structure-> artifacts and i've created a jar for both application.  Now if i run the level editor's jar works without any problem. If i run the game's jar it doesn't start and i get:   Exception in thread "main" java.lang.IllegalArgumentException: input == null!     at javax.imageio.ImageIO.read(ImageIO.java:1348)     at com.platform.game.window.BufferedImageLoader.loadImage(BufferedImageLoader.java:15)     at com.platform.selectlevel.LevelsFinder.<init>(LevelsFinder.java:60)     at com.platform.game.window.Menu.<init>(Menu.java:72)     at com.platform.game.window.Window.addMenu(Window.java:55)     at com.platform.game.window.Window.<init>(Window.java:31)     at com.platform.game.window.Game.main(Game.java:272)   if i compile inside the editor it works good, how can i fix that ? any tips ?  BufferedImageLoader:  public class BufferedImageLoader {      private BufferedImage image = null;      public BufferedImage loadImage(String path){          try {             image = ImageIO.read(getClass().getResourceAsStream(path));         } catch (IOException e) {             // TODO Auto-generated catch block             e.printStackTrace();             return null;         }         return image;     } }   i got the exception only when i run the game from a jar and not from the IDE, just would like to know why? somebody knows that ?

I have a simple setter method for a property and null is not appropriate for this particular property. I have always been torn in this situation: should I throw an , or a ? From the javadocs, both seem appropriate. Is there some kind of an understood standard?  Or is this just one of those things that you should do whatever you prefer and both are really correct?


Is there any intuition behind the implicit function theorem? Take $F(x,y)=0$ where $y=f(x)$. Then,  $$ \frac{dy}{dx}=-\frac{F_x}{F_y} $$  I see that the derivative is equal to the reciprocal of the partial derivatives, what is the intuition behind this?

In multivariable calculus, given a function like $F(x,y,z) =0$, the implicit function $z=f(x,y)$ exists if and only if $\frac{\partial F}{\partial z} \not = 0$. And the implicit function is given by $\frac{dz}{dy}=-\frac{\frac{\partial F}{\partial y}}{\frac{\partial F}{\partial z}}$.   The theorem can be proved by mathematical reasoning. But I want to know whether there is some intuitive understanding of the theorem, say geometry intuition in the three dimensional space, etc.


I entered  sudo apt-get install freeglut3-dev   it said enter  sudo dpkg --configure -a   When I did that in terminal it showed me

After a recent update, ttf-mscorefonts-installer prompted me to accept its license agreement.     ┌─────────────────┤ Configuring ttf-mscorefonts-installer ├─────────────────┐  │                                                                           │   │ TrueType core fonts for the Web EULA                                          │                                                                               │ END-USER LICENSE AGREEMENT FOR MICROSOFT SOFTWARE                             │                                                                               │ IMPORTANT-READ CAREFULLY: This Microsoft End-User License Agreement           │ ("EULA") is a legal agreement between you (either an individual or a          │ single entity) and Microsoft Corporation for the Microsoft software           │ accompanying this EULA, which includes computer software and may include      │ associated media, printed materials, and "on-line" or electronic              │ documentation ("SOFTWARE PRODUCT" or "SOFTWARE"). By exercising your          │ rights to make and use copies of the SOFTWARE PRODUCT, you agree to be        │ bound by the terms of this EULA. If you do not agree to the terms of          │ this EULA, you may not use the SOFTWARE PRODUCT.                              │                                                                               │                                  <Ok>                                         │                                                                           │   └───────────────────────────────────────────────────────────────────────────┘    Screenshot:   For some reason my terminal will not allow me to accept, or for some reason I am pressing the wrong hotkey...  I've tried every letter on the keyboard and Enter among others...  I'm sure there is a very simple and obvious solution to this.  I've also just tried to remove the package completely however the terminal states that due to the package not being correctly installed, I should reinstall the package before removing it.  Very frustrating!  Essentially, because I cannot successfully install this package, I can't really ever upgrade my system because I always have to end up terminating the terminal with the license agreement (thus the upgrade fails).


I was just watching this video:   In it, a professor working at the Nottingham University( Dr. Ed Copeland I think) shows how 1+2+3+4+5....+ ∞ = -1/12 Is this a joke? Or does it contain somewhere within it a flaw?  Now, I know that this channel and the people running it are by profession researchers so it does make me think whether this is true.  but at the same time, you are adding positive numbers on one hand and getting a negative sum?  The video also shows how 1-1+1-1+1-1.... =1/2 and that is counter intuitive too, how can you get a fraction when you are only adding together integers? I do however, painfully accept this as the truth because this is an infinite G.P. with r= -1. and I can get the answer using the formula.  what I am asking is:   Is this actually true or altogether false, or a limitation to the current system of mathematics and accepted as true only because otherwise, mathematics would be proven wrong? Is there any intuitive explanation to this (both the series that are mentioned), or can I only see it using mathematics? The video mentions that their are actual uses in physics for this. What are they?   I have read other answers and the opinions in them are conflicting, some say it is false and some say that it is true. Also, other questions don't seem to answer all hree of the questions posed.

$\displaystyle\sum_{n=1}^\infty \frac{1}{n^s}$ only converges to $\zeta(s)$ if $\text{Re}(s) > 1$.  Why should analytically continuing to $\zeta(-1)$ give the right answer?


I made a 3D track of a scene and add an object. When I hit render to see how the object looks in the video, but I can't see the video, all I see is the object  When I hit render the video doesn't show up in the background.  Even with the node compositing done.

I tried to add a 3D object to a clip by following a youtube video. But clip doesn't show up in the render or in the compositing tab. It show up even in the camera view. I didn't change any settings. please help. Thank you.    And the  rendered images has only the cube in it like in the picture above.


If the universe is expanding why doesn't the matter in it expand proportionally making it seem as if the universe is static?  Alternatively, as spacetime expands why does it not just slide past matter leaving matter unmoved?  What anchors the matter to a particular point in spacetime?

I have looked at other questions on this site (e.g. "why does space expansion affect matter") but can't find the answer I am looking for.  So here is my question: One often hears talk of space expanding when we talk about the speed of galaxies relative to ours. Why, if space is expanding, does matter not also expand? If a circle is drawn on balloon (2d plane), and the balloon expands, then the circle also expands. If matter is an object with 3 spatial dimensions, then when those 3 dimensions expand, so should the object.  If that was the case, we wouldn't see the universe as expanding at all, because we would be expanding (spatially) with it.  I have a few potential answers for this, which raise their own problems:   Fundamental particles are 'point sized' objects. They cannot expand because they do not have spatial dimension to begin with. The problem with this is that while the particles would not expand, the space between them would, leading to a point where the 3 non-gravity forces would no longer hold matter together due to distance Fundamental particles are curled up in additional dimensions a la string theory. These dimensions are not expanding. Same problems as 1, with the added problem of being a bit unsatisfying. The answer seems to be (from Marek in the previous question) that the gravitational force is so much weaker than the other forces that large (macro) objects move apart, but small (micro) objects stay together. However, this simple explanation seems to imply that expansion of space is a 'force' that can be overcome by a greater one. That doesn't sound right to me.


I tried the answers on the similar previous question but nothing worked. Obviously Apple removed the critical file .AppleSetupDone in the last Security Update. Is there anybody who could help getting my administrator account back?

On my mac I have 2 accounts and the both are normal account. So in this moment I don't have a Administrator account, only one that was in the past a administrator, but now is not.  How I can have again a Administrator account?


A few times recently my MacMini running 10.14.6 gets into a loop of giving this error every few minutes to seconds. This is despite having 1.5-3GB application memory free, according to the Memory Clean 3 app. Even using it to clean the memory doesn't help. Eventually it just grinds to a halt and rebooting is the only answer.  Anyone else seen this, or can suggest a remedy short of rebooting?

macOS is regularly popping up a "Force Quit Applications" dialog:       Your system has run out of application memory.      To avoid problems with your computer, quit any applications you are not using.   How is that possible if there are only a few open apps?


For which $n$ the polynomial $x^n + y^n$ will be irreducible over $\mathbb Z$?   I think when n is multiple of 2. Can you please correct me if I am wrong and explain why.

Here's what i know (or think i know) about the factoring.  For integer $n> 1 $   1) If $n$ is a positive power of $2$ then it is irreducible.  2) If $n$ is an odd prime then $$x^n + y^n = (x + y)(x^{n-1} - x^{n-2}y + \cdots - xy^{n-2} + y^{n-1} ) $$  3) If $n$ has an odd prime factor then it is factorable but the factorization is more complicated , for example  $x^{14} + y^{14}$ has 2 distinct irreducible factors and $x^{15} + y^{15}$ has $4$ distinct irreducible factors.  Is there a connection between the prime factorization of $n$ and the number of distinct irreducible factors of $x^n + y^n$ ?  Is there a connection between $n$, AND the number of distinct irreducible factors , AND the highest power occurring in each factor? Example:   $$x^{15} + y^{15} = (x + y)(x^2 - \cdots)(x^4 - \cdots)(x^8 + \cdots)$$  In other words , i'm also asking if there is a connection between $n = 15$ , the number of factors $4$ , and the powers $\{1 , 2 , 4 , 8\}$  For this particular example the numbers work out nicely but i'm not sure the pattern is so obvious in general.  Thank you for your consideration in this matter.


I'm having a trouble with a site. I set the charset unicode but it still won't work. Here there is a sample code of how i set it:    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" http://www.w3.org/TR/html4/loose.dtd>       <meta name="viewport" content="width=device-width">     <meta http-equiv="X-UA-Compatible" content="IE=edge" charset="iso-8859-1">     <title>HOME</title>
 This are some accented letters and various symbol

è é ç ò ù § ▼ à
                 UPDATE:

I'm setting up a new server and want to support UTF-8 fully in my web application. I have tried this in the past on existing servers and always seem to end up having to fall back to ISO-8859-1.  Where exactly do I need to set the encoding/charsets? I'm aware that I need to configure Apache, MySQL, and PHP to do this — is there some standard checklist I can follow, or perhaps troubleshoot where the mismatches occur?  This is for a new Linux server, running MySQL 5, PHP, 5 and Apache 2.


Let $X$ be a scheme. Suppose I have two $O_X$-modules $F$ and $G$ and a homomorphism $\psi: F \to G$. As sheaves of rings on $X$ we know that $\psi$ is an isomorphism if and only if  $\psi_x: F_x \to G_x$ is an isomorphism. What is the equivalent statement if I want $\psi$ to be an isomorphism of $O_X$-modules? Thank you.

This is Exercise 2.4.E. from .     Show that a morphism of shaves of sets is an isomorphism if and only if it induces an isomorphism of all stalks.    My failed attempts:  I found some similar questions  and . But I still couldn't figure out the details.   I have shown the "only if" part. I have also shown that if the morphism induces an isomorphism of stalks, it is injective.   The surjective part confused me a lot. Here is a commutative diagram:   To show surjectivity, suppose $g\in \mathscr{G}(U)$. Its image in the stalks at $p$ is $(g,U)_p$. Since $\phi_p$ is an isomorphism for all $p$, we have $(f_p,U_p)\in \mathscr{F}_p$, such that $\phi_p(f_p,U_p)=(g,U)_p$ for all $p\in U$. Now I don't know how to glue the $f_p$ together. Since even we have the pairs $(f_q,U_q)\in \mathscr{F}_q$, we cannot show that their restrictions on $U_p\cap U_q$ are equal. We have to find a small enough open set to glue them.   I also tried the open cover argument from the right hand side:  Since $\prod(g,U)_p$ consists of compatible germs, there exists an open cover $U_i$, and section $g_i$ in $\mathscr{G}(U_i)$, such that $(g,U)_p=(g_i,U_i)$ for all $p\in U_i$. But this doesn't help much. Since $\phi_p$ are different maps, we still cannot conclude anything about the $(f_p,U_p)$.    Any help will be greatly appreciated!


I wrote a driver for a remote filesystem (mounts a Google Drive, similar to the way SSHFS mounts a remote server).  It's super useful as an alternative to dropbox or ubuntuone.  It is now getting stable enough to leave my PPA server and be considered for mainstream use.  I would like to have it be considered as a standard apt-get installable package, rather than one that requires manually adding my PPA.  What are the steps required?

As a developer of free software, I want to get my application into Ubuntu.  Should I provide a source tarball and ask for packaging? Or should I create a package myself? Should I target Ubuntu directly, or should I try to get into Debian and then into Ubuntu automatically?


In the process it dumbs everything down. Real achievement or when it is really deserved becomes ordinary and loses impact.

Does English have a word for someone who compliments another person in a way which is awkward or even embarrassing?    Someone who uses compliments which are overly-familiar and all but inappropriate, and praises someone they barely know in over-the-top fashion?


I find going to /node as being very useful to pinpoint exactly what content non-authorized users can see. But for two reasons I don't want anyone to access "/node".   I don't want that to end up in Google Search Results. I don't want prying eyes to go through each and every content in case something should accidentally not have been made public.   So my question is: what is the most correct way to block /node? Or should I keep it open and rather let robots.txt avoid that path?  UPDATE  To make matters worse, it seems I have set everywhere in my permissions that certain content types must not be viewable by certain roles. However, those pages are still showing up under /node ?

Drupal out of the box comes with a page (which is the default homepage) that is assigned to the node path.  How do I avoid users reach it, and redirect them to the actual homepage of the site?


Does anyone know how to resolve this? I'm trying to run the app in debug mode using Android Studio but the app keeps crashing. I'm using react native.     E/AndroidRuntime: FATAL EXCEPTION: main       Process: com.catholicconnect, PID: 25838       java.lang.NullPointerException: Attempt to invoke virtual method 'boolean org.json.JSONObject.getBoolean(java.lang.String)' on a null object reference           at io.branch.rnbranch.RNBranchModule$1.onInitFinished(RNBranchModule.java:111)           at io.branch.referral.Branch.initializeSession(Branch.java:2604)           at io.branch.referral.Branch.initUserSessionInternal(Branch.java:1426)           at io.branch.referral.Branch.initSession(Branch.java:1099)           at io.branch.rnbranch.RNBranchModule.initSession(RNBranchModule.java:97)           at com.catholicconnect.MainActivity.onStart(MainActivity.java:67)           at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1392)           at android.app.Activity.performStart(Activity.java:7252)           at android.app.ActivityThread.handleStartActivity(ActivityThread.java:2970)           at android.app.servertransaction.TransactionExecutor.performLifecycleSequence(TransactionExecutor.java:180)           at android.app.servertransaction.TransactionExecutor.cycleToPath(TransactionExecutor.java:165)           at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:142)           at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:70)           at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1831)           at android.os.Handler.dispatchMessage(Handler.java:106)           at android.os.Looper.loop(Looper.java:201)           at android.app.ActivityThread.main(ActivityThread.java:6806)           at java.lang.reflect.Method.invoke(Native Method)           at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)           at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:873)

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


On all the Stack Exchange sites, when asking a question, the sidebar block which explains formatting floats over the footer.    It is probably related with .

I have noticed that while asking questions and scrolling to the bottom of the page, the right sidebar containing recent questions covers the footer partially. Also, a part of it goes beyond the browser's boundary. It may not be a big problem but it still doesn't look good.    This also happens on the  page


My Dell XPS 9350 is not booting Ubuntu anymore. It did not have dual boot but single boot only and the ssd is encrypted.  I am trying to create an Ubuntu bootable usb stick from Mac Apple OSX but until now all attempts failed.  I formatted the pendrive to MS-DOS.  Can I use directly the iso image file i.e.,  sudo dd if=Downloads/ubuntu-18.04.2-desktop-amd64.iso of=/dev/rdisk2 bs=1m   or as I have read elsewhere, should I convert the iso file:  hdiutil convert -format UDRW -o Downloads/ubuntu-18.04.2-desktop-amd64 Downloads/ubuntu-18.04.2-desktop-amd64.iso    which creates Downloads/ubuntu-18.04.2-desktop-amd64.dmg:  sudo dd if=Downloads/ubuntu-18.04.2-desktop-amd64.dmg of=/dev/rdisk2 bs=1m?

I have a netbook that I want to install Ubuntu onto. I do have a good Mac computer that I can make a bootable USB drive from, but I'm confused on how to go about making it.


One of the successful managers were asked   or     One of the successful managers was asked

One of the boys who always give/gives the correct answer is Samuel.   As per rule, one of is followed by plural noun/pronoun and singular helping verb, so we should be using gives in the sentence. But the answer is give.


So I'm playing a wild magic sorcerer and rolled a 78 on my Wild Magic Surge, polymorphing me into a sheep after my unsuccessful wisdom save.  My friendly companion now wants to shear me, but I will turn into my previous form in an hour.  If they shear me and polymorph ends, what will happen with my wool? Will I loose hair on my real body? Will the wool disappear?    Our DM made the following ruling, considering []:     You can shear the sheep.           A successful Animal Handling check is needed vs the sheeps Insight     check. If the sheep is charmed or tamed (by whatever action) you get     advantage on the Animal Handling throw.

A player wanted to use Wild Shape as an unlimited supply of feathers for our ranger to make his own arrows with and it sparked a discussion on whether or not parts of a Druid that are removed from said Druid's Wild Shape persist after the Druid is no longer in Wild Shape.  I have been unable to find any rules that either allow or disallow this action. Whereas there are specific rules on what happens to gear the druid is wearing, I have found no statement on what happens to removed physical parts of the Wild Shape form.  I have thought of two reasonable solutions:   Removed pieces of Wild Shape form persist indefinitely. This would make a Druid Indistinguishable from a normal creature until knocked out of druid form and would make the party assassin happy as he now has a reliable fresh supply of Giant venomous snake venom to apply to his daggers. Removed pieces of wild shape form persist until the Druid leaves Wild Shape. This would avoid the issues of unlimited resources, but raise other questions such as whether blood spilled by the Wild Shape also disappears or whether a creature that has "become poisoned for 1 hour" would stop being poisoned when the Druid is knocked out of that shape because the poison has dissipated with his Wild Shape.   Which (if either) of these lines up with the rules? Or does this fall under DM fiat?


I've recently embarked on the journey of web development and have heard a protip to have dual bootable OS's. Since I already run Windows 10 for day-to-day needs, I wanted to install Ubuntu (18.04) as the second OS on my laptop (I can't afford a Mac for the moment either, so there's that).  I've dusted off my long-serving USB key, downloaded the Ubuntu installer and prepared everything using Rufus 3.1. I shut the system down and started the laptop back up, holding the F12 key for the USB key to boot up the installer.  BIOS started up, but after a while of trying to load, it popped the following message:  PXE-E53: No boot filename received PXE-M0F: Exiting Intel Boot Agent   Afterwards, it exits the BIOS and starts booting up the Windows.  Is there anything I may have done wrong or is it a known issue with a quick fix?  Thanks in advance for your help.

I would like to see a full how-to guide on how to install Ubuntu.


I have added a cron job for my incremental backup, and I configured it like this:  0 23 * * * /usr/bin/rsync -ravzX /mnt/external/project/ /media/backup/project/ | mail -s "Backup Success" admin@example.com  But i didn't receive any e-mails. How can I find out what's wrong?

This is a  about how to handle email sent from your server being misclassified as spam.  For additional information you may find these similar questions helpful:                    Sometimes I want to send newsletters to my customers. The problem is, that some of the emails get caught as spam messages. Mostly by Outlook at the client (even in my own Outlook 2007).  Now I want to know what should be done to create "good" emails. I know about reverse lookup etc., but (for example), what about a unsubscribe link with an unique ID?  Does that increase a spam rating?


Hi I am working with a drupal 6 site and have a setup for this on my localhost the site is very huge and consists of almost 290 tables but the site is working super slow on my localhost specially the admin pages. It took almost 1hr to create a simple content type and 20-25 min to load module page, 30 min to enable/disable a module if not using drush about 10 mins using drush. This is becoming really time consuming for me to work like this. I have also configured the site performance but still no change. Rest of drupal 6/7 sites on my localhost are running fine.

Drupal is fast at develop, but the performance is so poor.  It is hard to reach 50 request per second.  And there are so many SQL queries in a simple web page.  If you test the request time of a form submit in Drupal.org it will always take seconds to finish.  How do you improve the speed of your web site?


The above is a very simple example of having a probability classifier output for a binary-class case either 0 or 1 based on some probabilities. In addition it is straightforward how you can change the threshold. You set the threshold either higher or lower of 50% to change the precision/recall balance and thus optimize for your own unique situation.  However when we try to have the same thinking for a multiclass scenario, even as little as three classes as is shown in the picture below (imagine that these are probabilities)    How do you begin to think how to shift the threshold? The default is to take the class with the largest probability (here is class 3). If you want to take this balance (to affect precision/recall) what could you do? One idea could be to take the first most dominant classes re-normalize them and consider putting a threshold among these two, but this does not sound like an elegant solution. Is there a solid methodology to follow?

Lets say my multinomial logistic regression predict that a chance of a sample belonging to a each class is A=0.6, B=0.3, C=0.1 How do I threshold this values to get just binary prediction of a sample belonging to a class, taking in to an account imbalances of classes. I know what I would do if it's just a binary decision (threshold based on classes prevalence), or if the classes are balanced (classify to a class with highest probability). My end goal is to get 3x3 confusion matrix


Does it really matter in SEO if my URL is:   https://example.com/test/18-apr-2019/author https://example.com/18-apr-2019/test/author https://example.com/author/test/18-apr-2019   Does it really matters which keyword comes first? As you can see URLs have the same keywords as parameters. But does it really matter which one is first and which last?  Will any of the above examples affect the way Google indexes and displays my page?

A coworker and I are locked in a debate over the value of SEO keywords in the URL of a page. She wants to change all the filenames of the HTML pages of a fencing company so they look like residential-home-chicago.html, contact-chicago-contractor.html, and so on. She is convinced that because Google highlights keywords in URLs in search results, that means that putting keywords here is more valuable.  My position is that these do not improve SEO, since Google doesn't seem to give keywords in the URL any more weight than keywords in the body of the page, and . In the meantime, they make it harder for me to find the pages I want when its time to edit them, and the site as a whole looks cheap and spammy.   suggests to me that yes, keywords in URLs are useful, but not superior, and that they are more useful for human readability than search engine rankings.  I'm looking for authoritative sources that support either position, not blog articles from SEO optimization companies trying to promote themselves.


Can anyone help me in understanding the significance of having a Static variable in Trigger with any real time example. For Example  Trigger on Account(after Insert,after Update) {    Static String testVariable = 'Hello' // Why do we declare Static in a trigger what is the significance?  }   I understand the significance of it in a class. A static variable defined in a class serves as a common variable which is shared across all the objects of the class.

While going through apex pdf i got line      Static variables defined in a trigger don’t retain their values   between different trigger contexts".   Can anyone please explain me with some code sample. I am confused as to what is the meaning of defining a static variable inside a trigger. Static variables are are used in Class context. So what a static variable does in trigger context.


I have a send-only mail server setup on an Ubuntu VPS. The mail server is only used to send out registration e-mails from a web application. I have the following configured:   DomainKeys Identified Mail (DKIM) Sender Policy Framework (SPF) DMARC Resolvable hostname rDNS   I've also tested my mail server with mail-tester.com and gotten a 10/10 rating (See ). The following is from my mail.log:  Mar 13 14:44:16 server postfix/pickup[5922]: 8147712289A: uid=33 from=<noreply@my-domain.me>   Mar 13 14:44:16 server postfix/cleanup[6311]: 8147712289A: message-id=<43fd440eaa77a6bb9f4b28e608f4c335@bugs.my-domain.me>   Mar 13 14:44:16 server opendkim[943]: 8147712289A: DKIM-Signature field added (s=mail, d=connect-ats.com) Mar 13 14:44:16 server postfix/qmgr[1102]: 8147712289A: from=<noreply@my-domain.me>, size=982, nrcpt=1 (queue active)   Mar 13 14:44:16 server postfix/smtp[6313]: 8147712289A: to=<ralph@outlook.com>, relay=mx2.hotmail.com[65.54.188.72]:25, delay=0.38, delays=0.07/0.01/0.23/0.07, dsn=5.0.0, status=bounced (host mx2.hotmail.com[65.54.188.72] said: 550 SC-001 (BAY004-MC1F33) Unfortunately, messages from 159.203.23.75 weren't sent. Please contact your Internet service provider since part of their network is on our block list. You can also refer your provider to http://mail.live.com/mail/troubleshooting.aspx#errors. (in reply to MAIL FROM command))   Mar 13 14:44:16 server postfix/smtp[6313]: 8147712289A: lost connection with mx2.hotmail.com[65.54.188.72] while sending RCPT TO   Mar 13 14:44:16 server postfix/cleanup[6311]: DD9C612350D: message-id=<20160313134416.DD9C612350D@server.my-domain.me>   Mar 13 14:44:16 server postfix/qmgr[1102]: DD9C612350D: from=<>, size=3860, nrcpt=1 (queue active)   Mar 13 14:44:16 server postfix/bounce[6314]: 8147712289A: sender non-delivery notification: DD9C612350D Mar 13 14:44:16 server postfix/qmgr[1102]: 8147712289A: removed  Mar 13 14:44:17 server postfix/smtp[6313]: DD9C612350D: to=<noreply@connect-ats.com>, relay=none, delay=0.21, delays=0/0/0.21/0, dsn=5.4.6, status=bounced (mail for my-domain.me loops back to myself) Mar 13 14:44:17 server postfix/qmgr[1102]: DD9C612350D: removed   I have gone over my configuration multiple times and the only thing I've found that may be an issue is the message ID, included in the log above. The web app is running at bugs.my-domain.me while I'm sending e-mails as noreply@my-domain.me and I don't have SPF settings for that domain,


I am in an intro to Analysis class, and I want to show that   $$\lim_{n\to \infty} \left( 1+\frac{1}{2n}  \right)^n = \sqrt{e}$$  I already have a result that   $$\lim_{n\to \infty} \left( 1+\frac{1}{n}  \right)^n = e$$  Which was not proven rigorously but was given to us. We basically just proved that the limit was bounded between 2 and 3, and then they gave us the real limit $e$. I am not sure if I need to use that result or not.   I have also found in the text a property that says a suite of real numbers converges to $\sqrt{a}$ if $x_1>0$ and $x_n=\frac{1}{2}\left(x_{n-1}+\frac{a}{x_{n-1}}\right),n\ge2$  I am having trouble representing the first expression in this way. Any direction would be greatly appreciated.

I was wondering if it is possible to get a link to a rigorous proof that  $$\displaystyle \lim_{n\to\infty} \left(1+\frac {x}{n}\right)^n=\exp x$$


I have batchable class that makes the web-service(REST API) callout to remote service.  In developer sandbox, it is working.  In fullcopy sandbox, it is NOT working and giving following error during webcallout:     System.CalloutException: You have uncommitted work pending. Please   commit or rollback before calling out   Not sure what is going on.  Looks like I am missing something.   Please provide some help.

I have same exception can please   The previous post issue is resolved.  Exception: :System.CalloutException: You have uncommitted work pending. Please commit or rollback before calling out  Visualforce Page   <apex:page controller="Controller" action="{!init}" showHeader="false" sidebar="false">     <center>         <apex:pageBlock title="Request Listener"></apex:pageBlock>               </center> </apex:page>   Controller :            PUBLIC with sharing class Controller {        PUBLIC String fromNumber      = ApexPages.currentPage().getParameters().get('From');     PUBLIC String toNumber        = ApexPages.currentPage().getParameters().get('To');     PUBLIC String body            = ApexPages.currentPage().getParameters().get('Body');        PUBLIC PageReference init()     {                    System.debug('From Phone Number :' +fromNumber);         System.debug('To phone NUmber :' + toNumber);         System.debug('Message Body :' + body);          TwilioRestClient Client = TwilioAPI.getDefaultClient();                                                                SYSTEM.DEBUG('FROM AND To  Number is NOT NULL');                      String formattedNumber='+919876543210';                 IF(body != NULL)                 body = body;             ELSE                 body = '';             Case c = NEW Case (Subject = formattedNumber,Description = body,Origin = 'Phone');             INSERT c;                               Map<String,String> params1 = new Map<String,String>             {                'To'   => fromNumber,                'From' => '+1908280****',                'Body' => 'Conformation to customer'             };             TwilioMessage message = client.getAccount().getMessages().create(params1); /* Valid conformation SMS sent to the Customer.*/                                            return null ;     } }   While loin as admin then click preview on visualforce page executed but case is not created.I have checked the the debug log it throw the exception.


In all discussions regarding the Lagrangian formulation it has always been said that $L = T - V $, only is a correct guess that when operated via through the Euler -Lagrange equation yields something similar to the newtons law of motion. But if we are to consider yourselves at the position of Lagrange himself, how are we to guess the correct form of the Lagrangian, using physical arguments only. Even considering that nature is always trying to minimizing something, How do we say it is the action that it must, not something else?

I'll be generous and say it might be reasonable to assume that nature would tend to minimize, or maybe even maximize, the integral over time of $T-V$.  Okay, fine.  You write down the action functional, require that it be a minimum (or maximum), and arrive at the Euler-Lagrange equations.  Great.  But now you want these Euler-Lagrange equations to not just be derivable from the Principle of Least Action, but you want it to be equivalent to the Principle of Least Action.  After thinking about it for awhile, you realize that this implies that the Principle of Least Action isn't really the Principle of Least Action at all:  it's the "Principle of Stationary Action".  Maybe this is just me, but as generous as I may be, I will not grant you that it is "natural" to assume that nature tends to choose the path that is stationary point of the action functional.  Not to mention, it isn't even obvious that there is such a path, or if there is one, that it is unique.  But the problems don't stop there.  Even if you grant the "Principle of Stationary Action" as fundamentally and universally true, you realize that not all the equations of motions that you would like to have are derivable from this if you restrict yourself to a Lagrangian of the form $T-V$.  As far as I can tell, from here it's a matter of playing around until you get a Lagrangian that produces the equations of motion you want.  From my (perhaps naive point of view), there is nothing at all particularly natural (although I will admit, it is quite useful) about the formulation of classical mechanics this way.  Of course, this wouldn't be such a big deal if these classical ideas stayed with the classical physics, but these ideas are absolutely fundamental to how we think about things as modern as quantum field theory.  Could someone please convince me that there is something natural about the choice of the Lagrangian formulation of classical mechanics (I don't mean in comparison with the Hamiltonian formulation; I mean period), and in fact, that it is so natural that we would not even dare abandon these ideas?


I just saw the banner on SO about "Here's how it works" claiming "The best answers are voted up and rise to the top".  That is how I feel it supposed to be, but this is not true.  Not the best answer rises to the top but the answer one person likes is fixed to the top. It does not matter if this answer is the worst possible or even simply wrong. If you look through old questions you will find many questions where the second answer has a lot more votes than the "top" answer. Often this answer is truly better than the accepted.  The top answer is not democratic but a small despotism of the OP. There has already been  about that but still some people believe the OP is the only one facing a specific problem. While that might be true for the second he answer a question, it is officiously wrong on long term. People face the same problem will google it and up vote what works for them. OP does not know it better as them.  I am not claiming to have a solution but I think the issue should be addressed.

Similar to  but narrower, I'm suggesting we make a particular exception for downvoted accepted answers (those with score less than zero, or some other threshold like -3), so that they stay in the normal sort order and don't jump to the top.  The accepted answer  on bh.se is -5 at time of writing, above an answer with +8 (which is quite a good score on our little site!). It also doesn't help things that the accepted answer is about a mile long so it takes a lot of scrolling to get past it:


This is not working when the window is opened using the window.open method.  <link rel="SHORTCUT ICON" href="@Url.Content("~/Contents/favicon.ico")"/>   On top of window

What is the final/best recommendation for how to serve favicon.ico in ASP.NET MVC?  I am currently doing the following:   Adding an entry to the very beginning of my RegisterRoutes method:  routes.IgnoreRoute("favicon.ico");  Placing favicon.ico in the root of my application (which is also going to be the root of my domain).   I have two questions:   Is there no way to put the favicon.ico somewhere other than the root of my application. It's pretty icky being right there at the same level as Content and Controllers. Is this IgnoreRoute("favicon.ico") statement sufficient - or should I also do the following as discussed in . I'm not aware of ever having seen a request to favicon.ico in any directory other than the root - which would make this unnecessary (but it's good to know how to do it).  routes.IgnoreRoute("{*favicon}", new {favicon=@"(.*/)?favicon.ico(/.*)?"});


Hi i have a snippet of javascript/JQuery that is reading from a and putting the values in to corresponding div's what i want to know is with what i currently have would it be possible to detect when the value has changed and flash the text or background or something along those lines, here is my code.           $(document).ready(     function () {         setInterval(function () {             $.getJSON("../../../UpdatedData/MachineCounts/MachineCounts.json", function (data) {                 $(".Midbox").empty().removeClass("YellowBackground").removeClass("redBackground");                  $.each(data, function (key, val) {                     var DID = "#" + val.controllerID + "D";                     var NID = "#" + val.controllerID + "N";                     var DSID = "#" + val.controllerID + "DS";                     var NSID = "#" + val.controllerID + "NS";                       var DayScrapPercent = val.ScrapCountDay / val.GoodCountDay * 100;                     var NightScrapPercent = val.ScrapCountNight / val.GoodCountNight * 100;                      if (isNaN(DayScrapPercent) == true) {                         DayScrapPercent = 0;                     }                      if (isNaN(NightScrapPercent) == true) {                         NightScrapPercent = 0;                     }                      var DayClass = "";                     var NightClass = "";                       if (DayScrapPercent > 3) {                         DayClass = "yellowBackground";                     } else if (DayScrapPercent > 5) {                         DayClass = "redBackground";                     }                      if (NightScrapPercent > 3) {                         NightClass = "yellowBackground";                     } else if (NightScrapPercent > 5) {                         NightClass = "redBackground";                     }                      $(DID).empty();                     $(DID).append(Math.abs(val.GoodCountDay)).addClass(DayClass);                     $(NID).empty();                     $(NID).append(Math.abs(val.GoodCountNight)).addClass(NightClass);                      $(DSID).empty();                     $(DSID).append(Math.abs(DayScrapPercent) + "%");                     $(NSID).empty();                     $(NSID).append(Math.abs(NightScrapPercent) + "%");                  });             });         }, 5000);     });   when this looks wit puts data in to divs the data is just numbers, what i need to do is detect when those numbers change and if they have changed flash when they change.

I'm brand new to jQuery and have some experience using Prototype. In Prototype, there is a method to "flash" an element — ie. briefly highlight it in another color and have it fade back to normal so that the user's eye is drawn to it. Is there such a method in jQuery? I see fadeIn, fadeOut, and animate, but I don't see anything like "flash". Perhaps one of these three can be used with appropriate inputs?


How can you view the durability? When I do F3+H it doesn't work. I have version 1.7.2, and I'm using mods, but not any durability mods. I'm using a Lenovo laptop and an Acer laptop running Windows 8.

I can't get the coordinates on my computer because it keeps changing the brightness.  I have a windows 8 Samsung, and I'm playing Minecraft version 1.6.4.


I'm trying to get a hold of the Saleforce stack and so far i have created a custom controller and have access to the data i need on a visual force page. However i'm not sure how to translate this to a lightning component.  As an example here's my simple vfp...  <HTML> <script src="staticResource"></script> <script>   audiojs.events.ready(function() {     var as = audiojs.createAll();   }); </script> <audio src="mp3URL" preload="auto" /> </HTML>   I know that i use the following code to load my script  <ltng:require scripts="{!$Resource.audiojs}" afterScriptsLoaded="{!c.afterScriptsLoaded}" />   But i'm not really sure how to translate the rest of my code to the component. What i would like to do is have a quick action button where a user can play audio stored on a salesforce object without having to switch pages.

I am trying to setup a Lightning Component that will be able to play audio files that are attached to an Opportunity using <audio></audio> tags.   My first test was promising, I uploaded a test file as a static resource and the file was immediately playable. I was hoping I could construct a link to the Opportunity attachment and include that in the audio src like so:  /servlet/servlet.FileDownload-file=*attachment id*   Which gave me the following error:     Refused to load media from 'https://mydomain.my.salesforce.com/servlet/servlet.FileDownload-file=id' because it violates the following Content Security Policy directive: "media-src 'self'".   This led me to try and base64 encode the file and construct a data URI but I receive the same error message as above:     Refused to load media from 'data:audio/mp3;base64,/+NIxAAAAAAAAAAAAFhpbmcAAAAPAAA0uQAgxJAAAwYICg0PEhQXG…rVTEFNRTMuOTguNFVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV' because it violates the following Content Security Policy directive: "media-src 'self'".   Apex:  @AuraEnabled Public Static Map<String, String> getAttachTest(String recordId){      Map<String, String> attData = New Map<String, String>();      for (Attachment att : [Select Id, Name, Body from Attachment where ParentId = :recordId ])     {         attData.put( att.Name, EncodingUtil.base64Encode(att.Body) );     }      return attData;  }   Is there an easy way to achieve this? The end goal is to be able to dynamically populate the <audio> src attribute with a file that is attached to an Opportunity. Any help would be greatly appreciated!


I am trying to cite subfigure numbers in the caption of the parent figure as shown in MWE. It works but I always get the following error which I cannot remove:  Error  Line 15: Argument of \caption@ydblarg has an extra }. [...f{fig:sub_fig_B} B \subref{fig:sub_fig_C}}] Line 15: Paragraph ended before \caption@ydblarg was complete. [...f{fig:sub_fig_B} B \subref{fig:sub_fig_C}}]   MWE  \documentclass{elsarticle} \usepackage{graphicx} \usepackage{subfig} \begin{document} \begin{figure*}     \centering     \subfloat[]{\label{fig:sub_fig_A} \includegraphics[width=67mm]     {example-image-a}}     \subfloat[]{\label{fig:sub_fig_B} \includegraphics[width=67mm]     {example-image-b}} \\     \subfloat[]{\label{fig:sub_fig_C} \includegraphics[width=67mm]     {example-image-c}}     \subfloat[]{\label{fig:sub_fig} \includegraphics[width=67mm]     {example-image}}     \caption{Caption for \subref{fig:sub_fig_A} A \subref{fig:sub_fig_B} B \subref{fig:sub_fig_C}}     \label{fig:test} \end{figure*} \end{document}   How to remove this error?

I've used subfloat to include subfigures, with their relevant labels but with empty captions. what I'm going to do is to reference these figures with \subref in the main caption of the figure. But what I get is only ?? signs in the caption [main caption]. I can't figure out what's the problem. this is what I have:  \begin{figure} \centering \subfloat[][] { \includegraphics[scale=0.55]{signal} \label{signal_model} } \subfloat[][] { \includegraphics[scale=0.55]{amplitude} \label{amplitude_mod} } \caption{phase noise variability: \subref{signal model} some text \subref{amplitude_mod} some other text} \end{figure}


I want to know how to get coins much faster in clash of clans WITHOUT using gems. I want to be able to upgrade my gold storages so I can repair my Clan Castle but I don't have enough coins. Any tips on how to get coins much faster???

I want to know how to get gold faster in Clash of Clans, so I can upgrade my town hall to level 8.   I tried upgrading my mines but  it made no difference. I attacked people with 200k loot but it made no difference (it gets robbed).


I have gone through a sequence of table joins. The resultant table should be with the attributes rearranged in more logical order. I cannot find this functionality within ArcGIS or any mention of it in Python  For example, say a TableResultingFromJoins has the following attributes:  v1,v2,v3,w1,x1  ... and I want it like this:  v1,w1,x1,v2,v3  What do I do?

In the  to  it was stated that the Make Query Table tool could be used to re-order fields in tables and feature classes permanently.  However, when I open the dialog for that tool I cannot see anywhere that enables re-ordering of fields.  All I can see is that fields can be carried through or dropped using checkboxes but in the same order.  Assuming that it is possible can someone describe the steps in more detail, please?


I've read a plethora of forums and websites on this topic. It appears that many experienced and recent travelers do this and there is no problem, especially from France, Italy, Spain and Germany. Yet, I'm in no position to take a serious chance and I do want to come back here  as a self employed person, possibly get a Visa when I go back to the States. I would love if I could go hang out in Croatia for a few days and come back here and have my visitor pass renewed another 90 days. Getting close to the deadline to change my air ticket and I need a definite answer. I have read the legit country websites and rules and...still, is this possible? I'm guessing between Schengen and Non-Schengen zones and I being an American, they will run my passport through the digital stamp? OR --> Since I'm renting an apartment here and living underground a bit...chance the stay until June (arrived Jan 1)and chance they won't notice or care about my over-stay. Not ideal, since I want to return.

I have searched the web a lot and could not find an answer that fits my situation. Here are two links that are quite contradictory:       My situation:  I've visited Portugal in December 2012 for 29 days on a Schengen visa valid from December 1st, 2012 to February 1st, 2013 for research purposes (I am a Ph.D. student). I want to visit Sweden from February 10th, 2013 to May 10th, 2013 (89 days). I have applied for a Schengen visa again (for research). How will the 90/180 rule work in my situation?


My iPhone 4 was submerged in water weeks ago.  It will turn on, but the slide to turn on/enter password is not working so I can not access anything on the phone. I want to recover pictures and videos before I throw the phone away. I thought they were backed up to my iCloud, but they are not. When I plug the phone into my computer to download them, says there are no pictures or videos on my phone. Any suggestions on how to recover these?

My sister dropped her iPhone into water and made the fatal mistake of turning it on just a few hours later, thinking it was already dry. I put it into a bag with rice for days. She had taken a lot pictures within the last few weeks but neither connected it to her PC nor is she using iCloud/Photostream, so we wanted to save the pictures somehow.  The problem is, the phone only turned on when connected to a power socket - and only in the inital setup mode ("connect to itunes"). And even then it would restart after about half a minute.  Assuming the battery got fried, I ordered a new one from iFixit (the phone's out of warranty since a long time) and replaced it; of course I also cleaned the logic board in the process. Though I couldn't see any corrosion despite the water indicators being pink. The only difference now is that when connected to a PC, the Apple logo appears, but the phone reboots infinitely after several seconds.   iTunes recognized it when entering DFU mode, but shows no additional data besides "iPhone" (capacity, iOS version, serial number).  Getting the phone to work again is secondary, we just want to save the pictures. Is there any way to get my data including all the pictures from iPhone?


I have a two prong led that when power is supplied to it, it twinkles and changes colors.  How does that actually work? It's too cheap in my opinion to have a micro controller in the diode and it looks like a normal "radio shack" diode.

I'm quite blank when it comes to electronics, but am trying to learn...   So I bought a  from Banggood to get some solder practice.   As you can see from , the leds will change color and turn on and off in different patterns.    question already establish that two pin RGB leds most likely contains some kind of micro chip, but it doesn't say anything about how they can be controlled.  The chip on the board is a STC15F204AE, and I guess that's the one responsible for creating the patterns. But again - how?  Is it just a fixed sequence pattern in the LED, and then the chip ensures that each LED receives power right after the previous, or is the LEDs addressable some how?


WolframAlpha says that $\sum_{t=1}^\infty tr^t=\frac{r}{(r-1)^2}$, which seems reasonable. But how can one derive this by hand?   Also, is there a name for this series?

How can I evaluate $$\sum_{n=1}^\infty\frac{2n}{3^{n+1}}$$? I know the answer thanks to , but I'm more concerned with how I can derive that answer. It cites tests to prove that it is convergent, but my class has never learned these before. So I feel that there must be a simpler method.  In general, how can I evaluate $$\sum_{n=0}^\infty (n+1)x^n?$$


I am interested in the effect of an ordinal variable (likert type) that had 4 answer options on participants preferences of six statements (as participants ranked these, I assume this too would be ordinal data).  In the case of my data, would kendall's tau or spearmans rho be more appropriate. I know Kendall's tau can be used with tied ranks, but I am unsure as to what that means in relation to my data. I know there is a similar thread, but it doesn't have any data examples, so it is hard for me to compare it to my own.  Any advice would be much appreciated

In which cases should one prefer the one over the other?  I found someone who claims an advantage for Kendall, , are there other reasons?


I was going to post a comment on my own theory about Mars and Jupiter colliding, but I just read the rules and it breaks it...badly. I was looking for informal peer review.  So my question is, has there been any mainstream published work about the possibility of planets colliding or interacting greatly?  (Velikovsky doesn't count obviously, I'm thinking an actual scientist) (besides the Earth-Moon of course)  I can't seem to find any.

One of the pertinent questions about many body systems that causes me much wonder is why the solar system is so stable for billions of years. I came across the idea of "resonance" and albeit an useful concept, it hardly explains the long stability of the solar system. Normally an N body problem with inverse square mutual interaction is an example of a chaotic system. Is there any real progress about this stability issue?


I am a student in an introductory statistics course and I am working on my project regarding number of hours I spend working my job a day. We went over normal probability plots and I am now trying to build one for my data in excel. Could someone walk me through how to do it? I tried to YouTube, but I have so many repeated values that I am confused about whether I can even use a normal probability plot.   This is the data I have(each value is the number of hours I spent daily on an activity):  1,2,2,3,3,3,3,3,3,3,3,3,3,4,4,4,5,5,5,6,6,7,7,7

The ultimate goal is to show users, at a glance, if their data is normally distributed.    The first attempt is a kludge that plots the data in a frequency graph.  Then, the observed mean and standard deviation are used to build a "normal curve" graph.  The frequency chart is laid over the the normal-curve chart and put next to some key statistics.  The frequency chart also colors positive bins green and negative bins red.  It looks like this:   I understand the fallacy of this approach, but for now it's practical.   What is a better way to approach this issue?


Is there a reason why Voldemort specifically tried to kill Harry using magic?  What was there that prevented Voldemort from just killing Harry using a knife or some other means?  Death eaters and Voldemort are not the same.

We know that someone actually died while playing Quidditch. So why didn't anyone, such as Voldemort or Draco, just poke a quill in Harry's eye to kill him?


I know the difference between return and exit() (), but I don't know where and when to choose one instead of the other. For example from  answer I understand that return is a better choise, but from  I understand the opposite.  An example: in this code (from  question) is it preferable to use exit() or return?  int read_file (char *filename, int **vet) {     FILE *fin;      if ( !(fin = fopen(filename, "r")) )     {         perror(filename);         return -1;     }      * vet = malloc (10 * sizeof(int));     if ( *vet == NULL )     {         perror("Memory allocation error.\n");         return -2;        }      /* ... */      return fclose(fin); }  int main () {     char filename[100];     int *vet;      if ( read_file(filename, &vet) )         /* ??? exit(1) OR return -1 ??? */      return 0; }   And generally?

Should I use exit() or just return statements in main()? Personally I favor the return statements because I feel it's like reading any other function and the flow control when I'm reading the code is smooth (in my opinion). And even if I want to refactor the main() function, having return seems like a better choice than exit().  Does exit() do anything special that return doesn't?


I'm using the simple method of \bibitem  for my references, and am using the \url command to add links, however, there is only one URL that runs off the page when I view the PDF:    This is what I have in the .tex file:  ` \bibitem{} Guillermo Peón, S., \& Rodríguez Brindis, M. (2014). Analyzing the Exchange Rate Pass-through in Mexico: Evidence Post Inflation Targeting Implementation. Revista Ensayos Sobre Política Económica, 32(74), 18-35. Recuperado 13 de febrero, 2015 de  \url{http://www.elsevier.es/es-revista-ensayos-sobre-politica-economica-387-resumen-analizando-el-traspaso-del-tipo-90339576}   If someone knows how to fix this run-off, I would appreciate the feedback!!

This question led to a new package:      I wish to typeset some relatively long URLs in a piece of text, and when I use \url{..}, the resulting text does not respect the margin boundaries that govern the main text body, instead going all the way to the edge of the paper before wrapping around.   For reference, my preamble looks like this:  \documentclass[12pt]{article} \usepackage{mathptmx} \usepackage{fullpage} \usepackage[pdftex]{hyperref}   and example of the url I'm including is:  \begin{itemize} \item Some text  \url{very-long-url} ... \end{itemize}   I'm compiling using pdflatex, although I doubt this makes a difference.


In simple terms, why this code returns False and not true:  a = 10 print(id(a) is id(a)) # why false?   id() returns integer, and same integer vars point to the same integer object. Why it returns false then? What is the difference with:  a = 10 b = 10 print(a is b) # it returns True   Thanks for explanation.

Why does the following behave unexpectedly in Python?  >>> a = 256 >>> b = 256 >>> a is b True           # This is an expected result >>> a = 257 >>> b = 257 >>> a is b False          # What happened here? Why is this False? >>> 257 is 257 True           # Yet the literal numbers compare properly   I am using Python 2.5.2. Trying some different versions of Python, it appears that Python 2.3.3 shows the above behaviour between 99 and 100.  Based on the above, I can hypothesize that Python is internally implemented such that "small" integers are stored in a different way than larger integers and the is operator can tell the difference. Why the leaky abstraction? What is a better way of comparing two arbitrary objects to see whether they are the same when I don't know in advance whether they are numbers or not?


The sound works when playing streaming videos. However, there is no sound when playing saved/downloaded videos using media player or VLC. It started after I ran apt-get upgrade.  The system is not muted. I am using Ubuntu 14.04 LTS on HP 14 Notebook.  Some of the things I tried.   force reload of ALSA purged and reinstalled PulseAudio   I also saw a post about an issue with a desktop and here's what he did (which I also tried):  sudo apt-get --reinstall install build-essential linux-headers-`uname -r`   Here's what I got:  Reading package lists... Done Building dependency tree Reading state information... Done Virtual packages like 'linux-headers' can't be removed E: Unable to locate package uname -r  I think it's a Codec issue but I could be wrong.

After I installed Ubuntu 12.04, there are no sound at all on my headphone (rear jack panel).  On Sound settings > playback, it seemed that the sounds were detected after I choose 'play sound'.  Anybody can fix this issue??  Thanks.


Is it possible to connect a smartphone through a USB cable to an Ubuntu machine and make or receive phone calls to or from other phones using the desktop?  EDIT: This is not a VOIP based question. What I intend to ask is whether, making phone calls using the GSM / 3G network is possible.

I have Ubuntu 10.04 installed as a desktop OS and a Symbian-based smartphone (Nokia N79). How can I use my desktop system with a headset to make and receive usual mobile phone calls using a connected (via cable or Bluetooth) smartphone?  Thanks.


I have just installed Grammarly and it showed up something which i am not sure of.  It corrected '13 month old' to '13-month-old'.  The context is      I ask because my 13-month-old God daughter seemed like she was a little resentful towards another child who was visiting at the same time.   Which would be correct, and why?

I see three different ways of hyphenating the phrase "six month old".  Six-month old:        Six-month-old:        Six month old:         Is there a significance to these differences?


I tried using induction, but in the inductive step, I get:  If $2n\choose n$ is divisible then I want to see that $2n +2\choose n +1$  $${2n +2\choose n +1} = (2n + 2)!/(n+1)!(n +1)! = {2n\choose n} (2n+1)(2n+2)/(n+1)^2$$  $$= {2n\choose n} 2(2n+1)/(n+1)$$  Then ${2n\choose n}$ is divisible by $2$ by hypothesis, but $2(2n+1)/(n+1)$ is not even an integer.  What can I do?

Prove that $\frac{(2n)!}{(n!)^2}$ is even if $n$ is a positive integer.      For clarity: the denominator is the only part being squared.   My thought process:   The numerator is the product of the first $n$ even numbers and the product of the first $n$ odd numbers.   That is, $(2n!) = (2n)(2n-2)(2n-4)\cdots(2n-1)(2n-3)(2n-5).$ In effect, the product of even numbers can be cancelled out with $n!$ resulting in the following quotient:  $$ \frac{(2^n)(2n-1)(2n-3)}{(n!)}\;.$$  To me this looks even thanks to the powers of $2$. But I am not convinced for some reason.   Was this approach to naive?   Sorry for the poor notation, I don't know any coding languages, my apologies.


I'm working on a fountain made of cobblestone. The base is currently a single object. You can see the the base in full here:  (ignore the clipping of the texture for now, I'm still working on the UV map).  What I'm trying to do now is make the texture pattern on the top of the base to follow the ones on the side, so it seems like it's actually made out of cobblestone bricks. If you move the fountain around a bit, you can see that by coincidence the bricks match up, but it makes clear what I mean:   How would you do such a thing? It would be really helpful, thanks! If it matters, I'm using cycles render.

Showing the actual 3D model of a curving ramp.  Shows the UVs of that model that blender did automatically. Shows the UV image that I need.   I am going put a road texture on it., but round faces are not helping me at all. All I need is straight belt kind of UV.


Steps to reproduce:  Open any post and tap “add a comment”:        Discard comment:        Post body disappears:        Same behavior after adding a comment.   App Version: 1.6.6.2 Device: Unknown (iPad7,3) OS Version: Version 11.2.1 (Build 15C153)

Since iOS 11.2 all the way through 12.2 beta 4, if you post or discard a comment on any post on any SE community, the screen will turn white. This has been ongoing continuously for a year now, and it affects both the SE app and the SO app.   You can go back to the previous screen and open the question again, and everything appears as normal. You can also rotate the screen to get the text to come back. Using the arrows to navigate between the question and answers updates the HUD, but the screen remains white unless one of the above is done to get the text back.        UPDATE: After posting anything (comment, answer), the screen goes all white except for the sidebar. Perhaps it is intentional, but I prefer last week’s behavior of going back to the content. Not major, since the sidebar icons still work.


I bought new headphones that have a 4 pole jack, to replace a headset with split audio and mic jacks (both 3 pole).  My PC has a Sound Blaster Z with mic and headphone ports. The old 3 pole headset worked fine, but my new headphones experience distortion when connected to the card directly, but are fine with my monitor and phone.  Do I need some type of splitter to connect these headphones to the card?

As you guys may know, for several years now, Apple uses 4-ring headphone jacks instead of 3-ring headphone jacks, and the fourth ring is dedicated to microphone input. This is what lets you have headphones that also serve as a microphone on the iPhone (and probably most competing phones nowadays, too).    Also for several years now, these jacks have been recognized by MacBook Pros so that you can connect this kind of headset on your computer and use its microphone.  However, even though my MacBook Pro on Mac OS X recognizes the microphone built into my headset (that has one of those 4-ring jacks), it seems that Windows 8.1 on Boot Camp doesn't register my headset as a microphone and instead insists on using only the built-in microphone. This is an issue when I'm playing games because the fan kicks in and annoys everyone voice chatting with me.  Is there a way to make Windows aware of the microphone integrated to my headset and using the fourth ring of the jack?  The device manager says that the headset is advertised by the 'Cirrus Logic CS4206A (AB 11)' audio controller.


I have a map with a few different layers. One of these layers is a 'cities' layer. I am trying to use selection->select by attribute-> Select: "Pop_CL"=8 or 9 or 10..... where Pop_CL is the population class (ten being cities with the largest population). I keep on getting error messages though!   Error 1: There was an error executing the query. An invalid SQL statement was used. I am selecting each # from "get unique values." No idea why I keep getting an error!

Can anyone help me with selecting multiple values from the attribute table?   I tried "Classes"='14'AND'07' but it doesn't work.


I just learned about the yield keyword in python - very impressive and useful indeed.   is there any equivalent in C and C++ languages?

I doubt it can be done portably, but are there any solutions out there?  I think it could be done by creating an alternate stack and reseting SP,BP, and IP on function entry, and having yield save IP and restore SP+BP.  Destructors and exception safety seem tricky but solvable.  Has it been done?  Is it impossible?


I have a Toshiba laptop running Window XP (32) about 10 or 12 years old.  It is used at a model railroad club and its sole function is to run Java and an open source program called Decoder Pro.  It works great for our purposes but is getting dated as it no longer accepts updates.  I would like to use Ubuntu.  Which version should I use, etc.?

For a given hardware configuration, how do I find out if Ubuntu will run on it? What considerations should I take into account when choosing an Ubuntu version and  such as:    with a lighter desktop than the usual Gnome and Unity  with the even lighter LXDE desktop   Obviously Ubuntu does not run on some processor architectures. So how do I go about choosing the right version and derivate. How can I find out the minmal system requirements?


I am using win 8. My PC is connected to the internet through broadband using a PPPOE connection system. I have a USB LAN card. Now I am wondering if there is any way to make my USB LAN as USB router and share my PC Broadband PPPOE connection with other device like my mobile phone etc over wifi.  I know this can be done easily with a wifi router but I am just curious if there is any way do do this like above mentioned way.  So is there any Idea??

I have a Windows 8 laptop that is connected to a router via Ethernet. I want to make the laptop act like a wireless router via wifi so that other devices could connect to the computer using wifi and gain access to its Ethernet internet connection.  How do I do something like this?


I'm making a game for android and would do it in 720p, but the phones got all different aspect ratios. Also thinking about a ios and windows phone port later.  When the aspect ratio does not match, pretty much all I can do is making black borders, stretch it, or leave the part which does not make it out on the screen. The game would be not as good when not the entire screen is visible, for example you see an enemy spawning later.  Which aspect ratio should I choose? On the techniques I stated above, maybe I just let the user decide, they are very easy to implement and they can choose the handicap which is at least annoying for them.  On 16:9 they will be only borders on the top and bottom, but at some aspect ratio somewhere in between, some would have them on the left and right.  Resolution itself is not important, trying to scale down with drawing to a renderTarget first.

For instance, the Motorola Droid is as wide as the G1, but has more height.  Should I try to spread the UI out across the extra height found on the Motorola Droid?  How do others handle this problem?  I'm not using OpenGL, but a SurfaceView for a 2D game.


I've been driving in the UK for nearly 10 years, covering around 20,000 miles or 32,000 km a year. I've driven across Europe without issue as well. So I'd like to think I'm an experienced driver.  However, I'm going to do Route 66 for my honeymoon in 3 weeks and I'm concerned that different states have different rules regarding the basics of driving.  For example, in the UK if you're at a set of lights and it's red, you can't move until it's green. I've heard that in some states if you're indicating to turn right at a set of red lights - as long as it's clear - you can turn right regardless of the light. But I don't know if this is accepted across the rest of America or not. I also know that in Canada you can't park against the flow of traffic, but you can do that in the UK.  It's a difficult question to ask in some ways as I'm relying on someone to know the specifics of UK driving and how that compares to US driving. But I'm keen to not annoy other road users while visiting their country, as well as not being pulled over by the police for doing something I thought was acceptable in one American state isn't acceptable in another.  Edit: While on the face of it this question looks to be a duplicate, it isn't. There are differing rules to driving in the UK than compared to Europe. For example, in France you're obliged to carry 2 breathalysers in the car with you (not a requirement in the UK), you're not allowed to have your sat nav indicate where speed cameras are in France (not an issue in the UK) and in Luxembourg you're not allowed to carry petrol in your car even if it's in a jerry can. Also there are references to some states but nothing concrete, where as I'm specifically asking in regards to those states that Route 66 passes through.

There are the obvious ones. The US has the keep-your-lane system, where as in Europe you are expected to keep to the right (left for UK) as long as possible.  On my latest travel to the US, I was confronted with the possibility to go through a red light if you turn right, unless it is explicitly not allowed.  What should a european driver know when driving in the US? What are the do's and don'ts compared to driving in Europe.


Let $f: G \rightarrow H$ be homomorphism, and $H$ is abelian.  So $G \big/ \ker f \cong \operatorname{im}f$. Since $\operatorname{im}f$ is abelian, so is $G \big/ \ker f$. So for every $g_1,g_2 \in G$: $g_1\ker f\cdot g_2\ker f=g_2\ker f \cdot g_1\ker f \Rightarrow g_1g_2\ker f=g_2g_1\ker f$, hence $g_1g_2=g_2g_1$, so $G$ is abelian.

If $f:G \rightarrow H$ is group homomorphism, and $H$ is abelian, then $G$ is abelian.  Is that statement correct? Here's my attempt of proof:  Let $a,b \in G$, then: $ab=f^{-1}f(ab)=f^{-1}f(a)f(b)=f^{-1}f(b)f(a)=f^{-1}f(ba)=ba$  Is this correct? I relied on first on $f$ being group homomorphism, then $H$ being abelian.


I added the following line to /etc/environment:  ML="$HOME/ml"   After I re-logged in for the script to take effect, running printenv ML prints $HOME/ml and running cd $ML prints   bash: cd: $HOME/ml: No such file or directory   What is the correct way to set a new system wide path variable and be able to use it as a shortcut directory address?

I want to add to my PATH so that my computer (Ubuntu) knows where to interpret the "R" command (for launching R). I need this so a Terminal or RStudio can find where I installed R.  I did all of the following, none of which permanently associates the command R with the directory of my R installation in ~/R/bin.   export PATH=$PATH:$HOME/R/bin      <- This works within the Terminal session it was enacted in, but if I open up a second terminal, PATH goes back to what it was before I added $HOME/R/bin to it   The same "local Terminal only" behavior occurred when I added this line to two different files, based on recommendations on various websites:   sudo vim ~/.profile   export PATH=$PATH:$HOME/R/bin  sudo vim /etc/environment  export PATH=$PATH:$HOME/R/bin    Why won't R be recognized in new Terminal sessions?


What is the proper way to punctuate this sentence? Colon, em dash, or comma?        Eating at a homeless shelter since March has provided me with a look into the thoughts of other people: both the homeless themselves   and their friends.    Eating at a homeless shelter since March has provided me with a look into the thoughts of other people — both the homeless themselves   and their friends.   Eating at a homeless shelter since March has provided me with a look into the thoughts of other people, both the homeless themselves   and their friends.      Also, is there supposed to be a comma between "themselves" and "and"?

What are the rules on when to use commas, colons, semicolons and dashes?


I tried to search in the google. But everyone is explaining about inner join and when comes to outer join they are including full outer join /left/right. I just want to know only the difference between inner join and outer join.

Also how do LEFT JOIN, RIGHT JOIN and FULL JOIN fit in?


I am trying to initialize a simple array in java with 10 integers. Problem is that, no matter what I do, the output always comes completely different from what it is supposed to be. Example:  int[] example = new int[] { 2, 5, 7 }; System.out.println(example);   Result: [I@fd13b5  Another one:  int[] myList = {1,2,5,4,13,451,4}; System.out.println(myList);   Result:[I@7ffe01  Even if I do not assign anything to it:  int[] numberList = new int[10]; System.out.println(numberList);   Result: [I@1fae3c6  I really have no clue why it does this... Can someone please help? I don't know if it matters but I am using Eclipse. Thanks!

In Java, arrays don't override toString(), so if you try to print one directly, you get the className + '@' + the hex of the  of the array, as defined by Object.toString():  int[] intArray = new int[] {1, 2, 3, 4, 5}; System.out.println(intArray);     // prints something like '[I@3343c8b3'   But usually, we'd actually want something more like [1, 2, 3, 4, 5]. What's the simplest way of doing that? Here are some example inputs and outputs:  // Array of primitives: int[] intArray = new int[] {1, 2, 3, 4, 5}; //output: [1, 2, 3, 4, 5]  // Array of object references: String[] strArray = new String[] {"John", "Mary", "Bob"}; //output: [John, Mary, Bob]


Is it Possible to know that in android devices, what are the supported versions are available, please share your ideas.

I have a rooted Samsung s3 mini, android version 4.1.2  How to show the saved wifi password of the router I am connected to?


I'm trying to find a movie I watched on TV, probably in the 90s. I think it was a made-for-TV movie.  It was about a ship with an AI. The ship was crewed by young adults. I think they were cadets?   There was an accident (like a warp drive malfunction) and they end up in another part of space where they meet a female alien whose ship had been shot down.  I remember they had manned robots they would pilot and they took them to a planet to get upgraded and they are attacked by more manned robots. They had three legs and they were yellow, I think.  I also remember the baddie had a holo-projector or something like that which allowed him to change his appearance. He commanded a massive fleet and he worked for someone he spoke to in a video chat that looked like a squid.

I'm trying to identify a Disney TV movie from the late-80s to mid-90s.  The plot points that I can remember are:   3 teenagers on a spacecraft, all in recently in trouble at their (military?) academy so being sent somewhere the ship malfunctions no adults around, period they meet some alien woman who agrees to help them because she "thought they were much older warriors" rather than kids the kids somehow have mechs (they look exactly like the Battlech Timber Wolf/Mad Cat mech) harvesting ice on a planet for water, they encounter some gigantic worm creature that can sense heat


I have an array of arrays.  I want to order these arrays by their ['date'] field.  So the latest is at index [0].  How can I do this?  Here is an example of my print_r  $array=    (     [0] => Array         (             [date] => 01/05/2013 12:00             [location] => Town Hall             [minutes] => mydomain.com             [agenda] =>          ),  [1] => Array         (             [date] => 09/05/2013 12:00             [location] => Town Hall             [minutes] => mydomain.com/walker             [agenda] =>          )  )

I have CSV data loaded into a multidimensional array. In this way each "row" is a record and each "column" contains the same type of data.  I am using the function below to load my CSV file.  function f_parse_csv($file, $longest, $delimiter) {   $mdarray = array();   $file    = fopen($file, "r");   while ($line = fgetcsv($file, $longest, $delimiter))   {     array_push($mdarray, $line);   }   fclose($file);   return $mdarray; }   I need to be able to specify a column to sort so that it rearranges the rows.  One of the columns contains date information in the format of Y-m-d H:i:s and I would like to be able to sort with the most recent date being the first row.


I was trying to implement the state pattern in C#, and I did something like this: class Context {     private State state = null;     private State concreteState1 = null;     private State concreteState2 = null;      public Context(State state) {         concreteState1 = new ConcreteState1(this);         ChangeStateTo(concreteState1);     }      public void ChangeStateTo(State state_) {         state = state_;     }      public void DoSomething() {         state.DoSomething();     }      public void DoSomethingElse() {         state.DoSomethingElse();     } }      abstract class State {     protected Context context;      public void Context(Context context_) {         context = context_;     }      public abstract void DoSomething();      public abstract void DoSomethingElse(); }  Here, ConcreteState1 and ConcreteState2 are implementations of State that I omitted for brevity. The issue I'm having is that Context has some members that I would like all of the classes implementing State to access; I think this makes sense in the context of the pattern since the idea is for the context to act "as if" it was a different class depending on its state, and for this it would be useful for the states to be able to access its internals. In C++ I would probably code this by setting State to be a friend class of Context, but since C# doesn't have anything similar to friend I'm not sure what to do here. I don't really want to create an assembly just for this specific finite state machine and put all the code in there. I also don't want a public setter for the private members of Context, because I don't want other classes modifying context. Is there any other good alternative that allows me to keep my Context and ConcreteState classes distinct but makes the internals of Context only available to State?

Possible Duplicate:          I'd like the private member variables of a class to be accessible to a Tester class without exposing them to other classes.   In C++ I'd just declare the Tester class as a friend, how do I do this in C#? Can someone give me an example?


Input: "   10   50 10 40  50   80   60 20 ". I want to convert it into string array then into int array. The problem is that when I split with space, it shows errors as:    1st string is "   10" 2nd string is " 50" 3rd string is "10"   Code:  s = line.split(" "); for(i=0;i<8;i++) {     arr= Integer.parseInt(s[i]);     System.out.println(arr); }   I want it should only string array with no space    1st string is "10" 2nd string is "50" 3rd string is "10"

What regex pattern would need I to pass to  java.lang.String.split()  to split a String into an Array of substrings using all whitespace characters (' ', '\t', '\n', etc.) as delimiters?


i found problems here it says,,  non-static method blah blah blah cannot be referenced from a static context   which is the function convertToPostfix and convertToInfix is not a static method....  how to fix this, so that i can now compile my code.     public static void main (String[] args)      {         String n, result;         char character;         do {         character = choiceko();         switch (character)         {             case 'P':             case 'p': n=numberko("Enter a number: ");               =======>  result = convertToPostfix(n); <============                 JOptionPane.showMessageDialog(null,                "Infix: " + n + " to Postfix [" +result+"].");                break;             case 'I':                    case 'i': n=numberko("Enter a Number: ");               =======>  result=convertToInfix(n);<============                 JOptionPane.showMessageDialog(null,                 "Postfix: " + n + " to Infix [" +result+"].");                 break;             case 'E':             case 'e':  JOptionPane.showMessageDialog(null,                  "Program Terminated...","Terminated",JOptionPane.WARNING_MESSAGE);                 break;                           default:  JOptionPane.showMessageDialog(null,                 " Invalid selection. Please Try Again.","ERROR",JOptionPane.WARNING_MESSAGE);                } }

The very common beginner mistake is when you try to use a class property "statically" without making an instance of that class. It leaves you with the mentioned error message:     You can either make the non static method static or make an instance of that class to use its properties.   Why? I am not asking for solutions. I would be grateful to know what is the reason behind it. The very core reason!  private java.util.List<String> someMethod(){     /* Some Code */     return someList;             }  public static void main(String[] strArgs){                // The following statement causes the error. You know why..     java.util.List<String> someList = someMethod();          }


A simple question: I have a framework which does not use prepared statements (mySQLi). How can sql injections be avoided when I have some user input (made through a public form but no HTML-code is allowed). That comment has to be stored in a mysqli database.  What is the best practice to detect and remove possible injection code? Please no suggestions to use prepared statements, they are not availabe without rewriting the whole framework!  EDIT  I was NOT asking how to do a MySQLi query! I asked how to prevent sql-injections on the php-level. To repeat: some website visitor leave a comment in a plain text field. Inside this comment this visitor (the script kiddie) thinks, he can post a sql-injection.  Now again: how the delete this pseudocode from the comment BEFORE adding it to the database. Answers like "hey, use a prepared statement", "use pdo", "use this kind of query with these parameters" are NOT answering my question. Also answers like "change" your framework" or NOT adequate!  I know that this could such code could be removed by preg_replace(..) and so on. And yes, I know the opinion of some here not to use this technique .. so better do not answer in that direction!

If user input is inserted without modification into an SQL query, then the application becomes vulnerable to , like in the following example:  $unsafe_variable = $_POST['user_input'];   mysql_query("INSERT INTO `table` (`column`) VALUES ('$unsafe_variable')");   That's because the user can input something like value'); DROP TABLE table;--, and the query becomes:  INSERT INTO `table` (`column`) VALUES('value'); DROP TABLE table;--')   What can be done to prevent this from happening?


The problem is  $$\int_{0}^{\pi}\ln (1+\cos x)\ dx$$  What I tried was using standard limit formulas like changing $x$ to $\pi - x$ and I also tried integration by parts on it to no avail. Please help. Also this is my first question so please tell if I am wrong somewhere.

How do you find the value of this integral, using real methods?  $$I=\displaystyle\int_{0}^{\pi/2} \log ({1+\cos x}) dx$$  The answer is $2C-\dfrac{\pi}{2}\log {2}$ where $C$ is Catalan's constant.


I was thinking of a way to cast haste on an enemy, and then stop concentrating on the spell in the enemy's turn (no action required). The idea is to make the enemy waste 2 turns. The last paragraph of the haste spell says  When the spell ends, the target can’t move or take actions until after its next turn, as a wave of lethargy sweeps over it. PHB 250  My interpretation of this is that if the caster stops concentrating on the spell, the target will lose his next turn, and if I stop concentrating on the spell during the target's turn, he will lose his current turn as well. The spell needs a willing target, so we need to "convince" him that he wants that spell. This was covered in this answer . We can say that suggestion, charm, dominate and bluff can work to make a target willing. Some of these spells, like suggestion and dominate person, have concentration. When the caster casts haste while concentrating on one of those spells, he will lose concentration. This answer (sorry for selfquote), , points out that 2 spells that needs concentration can't be at the same time. When you cast the second, the first ends inmediatly. The haste scenerio seems a bit different, you change one concentration for another, "you can't concentrate on two spells at once", if this interpretation is correct, the haste spell "switchs" with the other spell. Also in this answer . We know that when a target is no longer a valid target for the spell, the spell ends. Maybe I'm going crazy bananas here, but that may mean that when the target doesn't want to be hasted anymore (he's not willing anymore), the spell ends. If my interpretation is right, the target will lose only his next turn. So this opens some questions: Does the casting of haste fail because the target is not willing anymore? Does the target stop being a willing target and the haste spell will end? Does the spell just work as usual? And then we have the final question, related to the caster and spell timing, and probably some metagaming on the turn order. Can the caster stop concentrating on the haste spell during the target's turn to make it waste 2 turns? Edit: English is not my native language, I'm sorry if things went a bit messy.

Going through the spells, I see the phrase "Willing creature" used to determine who you can cast some spells on. I don't ever see a proper definition of what a willing creature is, but I would assume that it would go something like if you asked them "Can I perform this spell on you" they would answer yes. Is there a more formal definition of what makes a target willing in 5e?  What are the ways I could make an otherwise unwilling creature willing? Suggestion spells, for instance, should probably work but what other options do I have?


I'm trying to create a new list by changing the other in for loop, using append method. But I a have a trouble with it.  My simple code:  l1=[] l2=[0,0] for i in range(4):     l2[0]+=1     l1.append(l2)     print l2 print l1   Return:  [1, 0] [2, 0] [3, 0] [4, 0] [[4, 0], [4, 0], [4, 0], [4, 0]]   But I expected that list l1 would be like this: [[1,0], [2,0], [3,0], [4,0]] Where I made a mistake?

I needed to create a list of lists in Python, so I typed the following: my_list = [[1] * 4] * 3  The list looked like this: [[1, 1, 1, 1], [1, 1, 1, 1], [1, 1, 1, 1]]    Then I changed one of the innermost values: my_list[0][0] = 5  Now my list looks like this: [[5, 1, 1, 1], [5, 1, 1, 1], [5, 1, 1, 1]]    which is not what I wanted or expected. Can someone please explain what's going on, and how to get around it?


How do you exclude any & all traffic that isn't from USA & Canada in Google Analytics?

I have a site which is only for US/Canada/UK visitors. I don't want to make it visible to other visitors.  I tried to put IP ranges in .htaccess (Deny IP) but it does not work for me. May be I have inaccurate IP lists or I am doing something wrong.


Can AIC be used to compare a model with exponential smoothing with linear regressions?

I am doing some forecasting in R using Rob Hyndman's forecast package. The paper belonging to the package can be found .  In the paper, after explaining the automatic forecasting algorithms, the authors implement the algorithms on the same data set. However, after estimating both an exponential smoothing and ARIMA model they make a statement I do no understand (on page 17):     Note that the information criteria are not comparable.    I thought that an advantage of using AIC for model selection is that we can compare AIC values from different models, as long as they are estimated using the same data set. Is this incorrect?  This matter is of particular interest to me, as I was planning on combining forecasts from different model classes (e.g. exponential smoothing and ARIMA) using so called Akaike weights (see Burnham and Anderson, 2002, for discussion on Akaike weights)  References   Burnham, K. P., & Anderson, D. R. (2002). Model selection and multi-model inference: a practical information-theoretic approach. Springer Verlag.


I'm happy to say that I've gotten my first ever oscilloscope!! I want to make sure that I take good care of this equipment.  But I'm afraid that while I'm new to oscilloscopes, I'm new to taking care of them.  What are some DOs and DON'Ts of operating digital oscilloscopes, and good practices to keep them in running order?

I keep hitting a wall on my projects where I can't really tell what's going on and decided I really need an oscilloscope to proceed intelligently.  I've got a Rigol DS1052E in the mail after a few recommendations.  I know the kinds of things I need to measure, but I want to make sure I don't blow it up the first day.  What kinds of tips do you guys have for effectively using a scope and avoiding damage to it while getting useful information out of things?


According to Phillips' "Introduction to Quantum Mechanics", Chapter 4 "an eigenfunction of the Hamiltonian always describes a state of definite energy". But how can that be without violating the uncertainty principle? Energy and time are conjugate so neither can be zero and give $h/4\pi$. The reason for solving the eigenvalue problem is that it gives definite energy, i.e. no uncertainty. Why is that a good thing?

A particle is subject to an infinite square well potential with  $$V(x)= \begin{cases}  0  &   −a \lt x \lt a\\   \infty &  \,\,\,\,\text{otherwise} \end{cases}$$  At a time $t=0$ its wavefunction is given by $$\psi(x, t=0)=\frac{1}{\sqrt{5a}}\cos\left(\frac{\pi x}{2a}\right)+\frac{2}{\sqrt{5a}}\sin\left(\frac{\pi x}{a}\right)$$       (a) What are the possible results of an energy measurement at $t = 0$, and with what probabilities?     Re-writing the terms in $\psi(x,t=0)$ as $$u_1(x)=a^{-1/2}\cos\left(\frac{\pi x}{2a}\right)\qquad \text{&} \qquad u_2(x)=a^{-1/2}\sin\left(\frac{\pi x}{a}\right)$$ such that $$\psi(x,t=0)= \frac{1}{\sqrt{5}}u_1(x)+\frac{2}{\sqrt{5}}u_2(x)$$ with energies $$E_1=\frac{\hbar^2 \pi^2}{8ma^2}\qquad \text{&} \qquad E_2=\frac{\hbar^2 \pi^2}{2ma^2}$$ and probabilities $$P(E_1)=\frac15 \qquad \text{&} \qquad P(E_2)=\frac45$$       (b) If no measurement is performed, what is the wavefunction $\psi(x, t)$ at all times $t$? What are the possible energies and their probabilities if a measurement is first performed at time $t$?     At a time $t$ the wavefunction is given by $$\psi(x, t=0)=\frac{1}{\sqrt{5a}}\cos\left(\frac{\pi x}{2a}\right)\exp\left(\frac{-i E_1 t}{\hbar}\right)+\frac{2}{\sqrt{5a}}\sin\left(\frac{\pi x}{a}\right)\exp\left(\frac{-i E_2 t}{\hbar}\right)$$    The problem is that I cannot answer the second part of the question (b).    The answer states that:      Because the two terms are energy eigenstates, the relative probabilities do not change and are as in the previous part.     I have some questions about the above statement: why does an "energy eigenstate" mean that the probablities don't change with time? Or, put in another way, does a "momentum eigenstate" (for example) have constant relative probabilities when measured at any time?   The answer seems to be implying there is something special about energy eigenstates when it comes to time evolution. The eigenvalues of energy measurements don't seem to change regardless of how many times you measure them, and no matter how long you wait until you measure them. I'm not sure if this is the case, but could someone please explain why all quantum operators (except Hamiltonian) do not exhibit this behaviour.


A new release of Ubuntu brought a new mouse settings window. However, it only lists a sensitivity setting, no acceleration. Where is the setting for acceleration? How do I disable it?  If I disable acceleration using xinput (e.g. xinput --set-prop 15 270 1, which sets the acceleration multiplier to 1) it returns if I disconnect and reconnect my mouse, and also if I reboot. Any way around this?

I am on an Asus Zenbook UX32VD in Ubuntu 12.10. Both in 12.04 and 12.10 I haven't been able to change the mouse speed (i.e. the "sensitivity" in the mouse/touchpad dialog). I can change the slider, but nothing changes.  This is a big problem for me, since the mouse speed is somewhat slow. Any suggestions?  The problem is both for the touchpad and mouse.


In the Fantastic Beasts and Where to Find Them book the foreword is written by Dumbledore.   In the last he says      To wizards, I say merely: Draco dormiens nunquam titillandus.   Now Dumbledore is known for saying gibberish prior to the school feasts,  however this seems to be Latin or pseudo Latin.  What does the line mean in English?

The motto for Hogwarts is "Draco Dormiens Nunquam Titillandus", or, "Never tickle a sleeping dragon".  This seems like quite obvious advice and rather silly as a school motto.  Is it essentially an inside joke that J. K. Rowling made up for those that would actually translate it?  Or does it have any particular meaning beyond the literal?  Is it possible she used it as a hint or tip-off that Draco might be more dangerous than we thought (and maybe later changed her mind on that?)  Has she ever indicated there to be more than just the literal meaning for this phrase?


I am trying to overload the >> operator in my template class as a friend function.The problem occurs when I want to read an object of that class;I get the following error: undefined reference to `std::istream& operator>>(std::istream&, ContBancar&)'.  I have checked this post () and I have tried the second approach which is found in the code below.  //ContBancar.h //included all the necessary libraries  template<class T> class ContBancar; template<class T> istream& operator>>(istream&, ContBancar<T>&);  template<class T> class ContBancar {     string detinator;     string dataDeschidere;     T sold; public:     ContBancar(string det="DefaultDestinatar", string data="NoData", T sol=T(0)):detinator(det),dataDeschidere(data),sold(sol){}     friend istream& operator >> <T>(istream &, ContBancar<T> &);  };    //ContBancar.cpp #include "ContBancar.h"  template <class T> istream & operator>>(istream &in, ContBancar<T> &ob) {     in>>ob.detinator;     in>>ob.sold;     in>>ob.dataDeschidere;     return in; }

Quote from :     The only portable way of using templates at the moment is to implement them in header files by using inline functions.   Why is this?  (Clarification: header files are not the only portable solution. But they are the most convenient portable solution.)


I want to change the decimal separator of my system from "," to ".". I have edited the respective locale file /usr/share/i18n/locales/ and added these lines:  LC_NUMERIC decimal_point   "<U002E>" thousands_sep   "<U002C>" grouping        3;3 END LC_NUMERIC   Then, I ran :  sudo locale-gen   I have rebooted my computer and run:  locale -k LC_NUMERIC   and I get:  decimal_point="." thousands_sep="," grouping=3;3 numeric-decimal-point-wc=46 numeric-thousands-sep-wc=44 numeric-codeset="UTF-8"   However, if I go to LibreOffice Calc, I see the numbers are still formated with "," as the decimal separator. Why is this?   Also, I'm not satisfied with answers given in . I don't want to simply "Find & Replace" commas for dots because I got functions in my LibreOffice Calc documents that won't work if I replace commas for dots (because numbers are no more recognized as numbers). I also don't want to change all the language settings of my system, just the decimal separator.  I am using Ubuntu-MATE 16.04  uname -a:  Linux nesper94-E402MA 3.14.77-031477-generic #201608200632 SMP Sat Aug 20 10:34:34 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

In LibreOffice Calc, if I have a column with a lot of numbers in this format 8,1 (comma), how  can I transfer all these numbers to the format 8.1 (dot)?  When I say "a lot" I mean thousands of numbers, so it is just impossible to rewrite it again in the right format.