Why does this function have different answers, doesn't the function execute in where it was defined?
What is the scope of variables in JavaScript?
When does SQLiteOpenHelper onCreate() / onUpgrade() run? Working on a future method to post values to external web service. But since there is a limit of 50 callouts per invocation, I am getting error "Too many future calls : 51". Cases are loaded into salesforce from external ETL in bulk. So is there a way to workaround this error.   Class  public with sharing class caseTrigger {      //method invoked by trigger after insert     public void CaseInsert(List&lt;Case&gt; caseIns){           list&lt;Id&gt; caseIds = new list&lt;id&gt;();             List&lt;Case&gt; caseList = [Select id from case WHERE Id IN :caseIds];                 for(Case c : caseList){                     if(c.Status != 'closed'){                         caseIds.add(c.id);                     }                          if(f.caseId_User.size()&gt;0){PostCases(caseIds);}      }     //postCases (future method)     @future(callout = true)     public static void PostCases(List&lt;Id&gt; Ids){         //prepare Json to post to webservice    } } Is is possible that a software issue could be causing spotty USB-C connections on 2017 MacBook Pro? I have a 2017 MacBook Pro. It has 2 USB-C ports on the left side and I use an Aukey hub to provide more ports (4 USB, 1 HDMI, 1 USB-C) and always to connect two monitors.   I connect one monitor through the hub with the HDMI port and another directly to the MBP with a USB-C adapter. Sometimes when I connect the hub to the Mac and the 2nd monitor to the Mac, it works as it should with no problem...but more than half the time I have to connect, disconnect, jiggle, jangle, switch ports, reconnect HDMI, etc. and hopefully they will both work. OFTEN, I can only get one monitor to fire up.  Is there any kind of software fix or reset that might solve this issue? Any other thoughts welcome. Thanks. As I navigate through physics stackexchange, I noticed .  Electrons radiate light when revolving around nucleus? Why is it so obvious?  Note that I do not know anything about quantum mechanics - and I just want classical stories. Fix corrupt NTFS partition without Windows MY NTFS Partition has gotten corrupt somehow (it's a relic from the days when I had Windows installed).     I'm putting the debug output of fdisk and blkid .  At the same time, any OS is unable to mount my root partition, which is located next to my NTFS partition. I'm not sure if this has anything to do with it, though. I get the following error while trying to mount my root partition (sda5)  mount: wrong fs type, bad option, bad superblock on /dev/sda5,        missing codepage or helper program, or other error        In some cases useful info is found in syslog - try        dmesg | tail  or so  ubuntu@ubuntu:~$ dmesg | tail [ 1019.726530] Descriptor sense data with sense descriptors (in hex): [ 1019.726533]         72 03 11 04 00 00 00 0c 00 0a 80 00 00 00 00 00  [ 1019.726551]         1a 3e ed 92  [ 1019.726558] sd 0:0:0:0: [sda]  Add. Sense: Unrecovered read error - auto reallocate failed [ 1019.726568] sd 0:0:0:0: [sda] CDB: Read(10): 28 00 1a 3e ed 40 00 01 00 00 [ 1019.726584] end_request: I/O error, dev sda, sector 440331666 [ 1019.726602] JBD: Failed to read block at offset 462 [ 1019.726609] ata1: EH complete [ 1019.726612] JBD: recovery failed [ 1019.726617] EXT4-fs (sda5): error loading journal   When I open gparted (using live CD), I get an exclamation next to my NTFS drive which states   Is there a way to run chkdsk without using windows ?  My attempt to run fsck results in the following :  ubuntu@ubuntu:~$ sudo fsck /dev/sda fsck from util-linux-ng 2.17.2 e2fsck 1.41.14 (22-Dec-2010) fsck.ext2: Superblock invalid, trying backup blocks... fsck.ext2: Bad magic number in super-block while trying to open /dev/sda  The superblock could not be read or does not describe a correct ext2 filesystem.  If the device is valid and it really contains an ext2 filesystem (and not swap or ufs or something else), then the superblock is corrupt, and you might try running e2fsck with an alternate superblock:     e2fsck -b 8193 &lt;device&gt;   Update: I was able to fix the NTFS partition running chkdsk off Hiren's BootCD, but it seems that the superblock problem still remains.  Update 2: Fixed superblock issue using e2fsck -c /dev/sda5 What equipment is necessary/preferred for real estate photography? What equipment is necessary for real estate photography, and what is preferred?  I'm starting into real estate photography, and I'm trying to figure out what I need and what I will want to plan on adding to my kit as I go.  I'm thinking especially along the lines of lighting equipment and lenses (focal lengths).  For example, is an ultra-wide actually necessary? Or is a general walk around sufficient. Notice: Undefined variable: logged in C:\xampp\htdocs\Site\Site\view_category.php How can I remove a commit on GitHub? You'd think that as soon as Harry met someone who was friends with his dad, he'd have asked about his family.  Certainly Lupin or Sirius could have told him something of his family, given that they were James' closest friends, and Sirius was "always welcome at the Potters".  Obviously there's nothing in the books, but did J.K. Rowling ever explain why there was no mention of any living relative other than Aunt Petunia, or even what happened to Harry's grandparents? Is it possible to reconstruct the Hamiltonian from knowledge of its ground state wave function? Is it possible to "construct" the Hamiltonian of a system if its ground state wave function (or functional) is known? I understand one should not expect this to be generically true since the Hamiltonian contains more information (the full spectrum) than a single state vector. But are there any special cases where it's possible to obtain the Hamiltonian? Some examples would be really helpful. Hosting multiple distinct folders for distinct domains I have a VPS that I've installed a Apache Web Server on. What I want to do is forward my own website domains to that server and host those websites' files inside my Apache Web Server. As far as I understand a DNS server is required to manage which domain is hosted where (IP-wise). But what I want to do is host my websites under the same IP address, the one that my web server has. How can I separate those websites' files inside my web server so I don't have to use http://host/foo for www.foo.com and http://host/bar for www.bar.com? I am trying to lock some boxes in a map of mine, and I used this command:   /blockdata 10 4 9 {Lock:Elyiana's Mage Key}   At first it worked, but then when I logged back on the next day it gave me this error message:    Data tag parsing failed: Expected '}' but ''' at: {Lock:Elyiana'&lt;--[HERE]     I don't know why it doesn't like the apostrophe in the key's name. I would change it, but it already worked and locked some other items. My version is 1.12, does anyone have an answer to my problem? how to remove the double quotes in a csv I have a CSV file like  a.csv "1,2,3,4,9" "1,2,3,6,24" "1,2,6,8,28" "1,2,4,6,30"   I want something like   b.csv 1,2,3,4,9 1,2,3,6,24 1,2,6,8,28 1,2,4,6,30   I tried awk '{split($0,a,"\""); But did not help.Any help is appreciated. Re-install Ubuntu without losing data in home folder Recently I installed Ubuntu 12.10 x64 Server Edition on my PC. Unfortunately, I attempted to install a lightweight desktop but due to the fact that I have an old graphics card, the PC does not perform so well. I am thinking of re-installing an Ubuntu version but I do not want to lose the contents in my home folder. Is there any way to do that with a Live CD? Options to hide reputation information on Stack Overflow? Any solutions to Veritasium's hydrodynamic levitation? So this Youtube video has been around for a while now  . Also this  may be related.  I just wanted to know if there is any standard hydrodynamic terms to explain it. Derek clearly states it is not about Bernoulli principle, as in this case the ball rotation is important.  Has any recent paper/videos discussed what happens if you do the same experiment with hydrophobic spheres? Can it be predicted with laminar flow theories or does it need turbulence?  Too many questions have been posed, but not so many responses on the internet yet.  Edit: I said Derek stated "it wasn't Coandă effect", yet what he says is that it is not "just Bernoulli's principle". Coandă effect is the typical hairdryer ping-pong ball levitation which is explained by Bernoulli's principle.   Edit2: rephrasing.  Additional comment: There seems to be two explanations "water adhere to the sphere and is ejected conserving horizontal momentum" and "Magnus effect" (ME). The later is not so obvious to me as the system is in equilibrium and there are two fluids, water and air, (does ME means air pushes the ball horizontally?).   Edit3: DESCRIPTION To avoid rot links and people that do not want to see the video, I'll try to explain the phenomena. You have a sphere and a water jet. The water jet is vertical (opposite to gravity), and touches the sphere almost tangentially. The ball not only rotates due to the water jet but also stays at constant height from the ground. The angular velocity can be defined in the direction of the cross product between the position of the contact point between the jet and the sphere (origin in the center of the sphere) and the direction of the jet. Some water drops fly away at the top of the sphere away from the jet.  Edit4: New question, would this phenomenon occur if there was no air? I have set up my site with sample pages and data (lorem ipsum, etc..) and Google has crawled these pages. I deleted all these pages and actually added real content but in webmaster tools, i still get a lot of 404 errors Google trying to crawl these pages. I have set them to "mark as resolved" but some pages still come back as 404.   Furthermore, I have a lot of these sample pages still listed when i do a search of my site on Google. How to remove them. I think these irrelevant pages are hurting my rating.   I actually wanted to erase all these pages and start getting my site being being indexed as a new one but I read it's not possible? (I have submitted a sitemap and used "Fetch as Google.") Including the interaction but not the main effects in a model Is it ever valid to include a two-way interaction in a model without including the main effects?  What if your hypothesis is only about the interaction, do you still need to include the main effects? 'apt-get' does not work with Proxy For the command   sudo apt-get update   I get following error:  W: Failed to fetch http://ch.archive.ubuntu.com/ubuntu/dists/maverick-updates/multiverse/binary-i386/Packages.gz   407  Proxy Authentication Required (The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied. )   I am running Ubuntu 10.10 installed on Windows XP using VirtualBox. For Internet connections I am using proxy server with an authentication. I tried to use gnome-network-proxy tool to set proxy settings system-wide.   After that /etc/environment has been updated by http_proxy variable with the format http://my_proxy:port/, there were no authentication data.  I checked this with Firefox. Browser asked my for login and password and everything was working fine. It was unfortunately not the case for apt-get. I have also tried to do as described . Unfortunately it does not work.  May it be somehow related to the fact that a proxy is in a Windows domain, any ideas?  My proxy name is http-proxy. Is '-' a special character here? Coming from Eclipse and having been used to duplicate lines all the time, it's pretty strange finding out that Xcode has no such function. Or does it?  I know it's possible to change the system wide keybindings but that's not what I'm after.