Getting UTC time with Calendar and Date
Calendar.getInstance(TimeZone.getTimeZone("UTC")) is not returning UTC time
I'm embarking on a new web map project that seeks to display simple geometries (lines, points, polygons) and rasters/basemaps. Ideally, the map will also allow authorized users to add/remove/edit geometries and their attributes.  What are the available options for the storage of data (e.g. SQL Server Spatial)?  What are the available options for the presentation of data (e.g. ArcGIS Server)?  I'm new to web mapping and am attempting to build a solid understanding of the available options and their pros/cons. New rule preventing multiple @notifies causing Convert to Comment to fail Apparently, an image is not worth a thousand words, as without at least a few words this won't meet quality standards. Deploying a static site on AWS EC2/nginx: what am I doing wrong? I wish to display a map in QGIS (world country shapefiles) showing all countries but centered on the Pacific area.   I am not familiar with Proj4, so is there any way this can be done in QGIS? Permission Denied To Delete File First of all, I'm not looking for an answer on how to remove the files. I am looking for a reason why this doesn't work - and a suggestion on how to remove the files without sudo.  I have a directory in my Desktop that has a few inner directories (don't judge the naming - I just extract what I need from files I'm given) and after getting the files I try and remove the files with rm -rf Bengal\ Tiger\ Creative/, I am surprised to see the following warning for each image.     rm: cannot remove ‘Bengal Tiger Creative/Bengal Tiger Creative/images/customer-services-landscape.jpg’: Permission denied   Below is some code outputs.  tree  nathan@nathan-pc:~/Desktop$ tree . ├── Bengal Tiger Creative │   └── Bengal Tiger Creative │       └── images │           ├── awards.jpg │           ├── blank.gif │           ├── bullet1-light-green.gif │           ├── bullet2-light-green.gif │           ├── bullet3-light-green.gif │           ├── bullet4-light-green.gif │           ├── customer-services-landscape.jpg │           ├── desktop.ini │           ├── header-img1.jpg │           ├── header-img2.jpg │           ├── header-img4.jpg │           ├── header-img5.jpg │           ├── softhr.gif │           ├── Thumbs.db │           ├── tiger_main-img1.jpg │           ├── tiger_main-img2.jpg │           ├── tiger_main-img3.jpg │           ├── tiger_main-img4.jpg │           ├── Vanquis-benefits-icons_iphone-green.gif │           └── white-arrow-green.gif   ls -laR  nathan@nathan-pc:~/Desktop$ ls -laR Bengal* Bengal Tiger Creative: total 12 drwxrwxr-x 3 nathan nathan 4096 Aug 10 11:30 . drwxr-xr-x 6 nathan nathan 4096 Aug 10 11:34 .. drwxrwxr-x 3 nathan nathan 4096 Aug 10 11:34 Bengal Tiger Creative  Bengal Tiger Creative/Bengal Tiger Creative: total 12 drwxrwxr-x 3 nathan nathan 4096 Aug 10 11:34 . drwxrwxr-x 3 nathan nathan 4096 Aug 10 11:30 .. dr-xr-xr-x 2 nathan nathan 4096 Aug 10 11:36 images  Bengal Tiger Creative/Bengal Tiger Creative/images: total 356 dr-xr-xr-x 2 nathan nathan   4096 Aug 10 11:36 . drwxrwxr-x 3 nathan nathan   4096 Aug 10 11:34 .. -rwxrwxrwx 1 nathan nathan  14910 Mar 18 12:29 awards.jpg -rw-rw-r-- 1 nathan nathan   1093 Mar 21  2014 blank.gif -rw-rw-r-- 1 nathan nathan   1978 May  8  2014 bullet1-light-green.gif -rw-rw-r-- 1 nathan nathan   1969 May  8  2014 bullet2-light-green.gif -rw-rw-r-- 1 nathan nathan   2416 May  8  2014 bullet3-light-green.gif -rw-rw-r-- 1 nathan nathan   2449 May  8  2014 bullet4-light-green.gif -rw-rw-r-- 1 nathan nathan 113138 Apr 14  2014 customer-services-landscape.jpg -r--r--r-- 1 nathan nathan    142 Mar 25 11:58 desktop.ini -rw-rw-r-- 1 nathan nathan  14312 Mar 23 11:39 header-img1.jpg -rw-rw-r-- 1 nathan nathan   1480 Mar 23 11:41 header-img2.jpg -rw-rw-r-- 1 nathan nathan   1278 Mar 23 11:41 header-img4.jpg -rw-rw-r-- 1 nathan nathan   1168 Mar 23 11:41 header-img5.jpg -rw-rw-r-- 1 nathan nathan   1703 Mar 21  2014 softhr.gif -rw-rw-r-- 1 nathan nathan  88064 Aug  4 10:39 Thumbs.db -rw-rw-r-- 1 nathan nathan  23607 Mar 23 11:56 tiger_main-img1.jpg -rw-rw-r-- 1 nathan nathan  23400 Mar 23 11:56 tiger_main-img2.jpg -rw-rw-r-- 1 nathan nathan   6970 Mar 23 11:56 tiger_main-img3.jpg -rw-rw-r-- 1 nathan nathan   8996 Mar 23 11:57 tiger_main-img4.jpg -rw-rw-r-- 1 nathan nathan    275 Jul 31  2014 Vanquis-benefits-icons_iphone-green.gif -rw-rw-r-- 1 nathan nathan   1821 Jul  9  2014 white-arrow-green.gif   Doing chmod 777 and then delete does not work.  Doing rm -rf * inside the directory does not work.  Doing sudo rm file does work.   I can easily remove these files using sudo, however, I cannot see why they cannot be removed without sudo. As a relatively new Ubuntu user, I would like to learn why.  Thanks in advance, Nathan How do rich people guarantee the safety of their money, when savings exceed the FDIC limit? I am curious how a millionaire would guarantee the safety of his money, given that the FDIC only insures up to $250K of an individual's deposits at a bank.  If someone had $3 million that they wanted to put into the bank, would they have to open up 12 different bank accounts and deposit $250K into each one, so that all of his money is insured by the FDIC?  Or is there an easier way to guarantee the safety of all his money? Is the cube root of a prime number rational? Do I need a transit visa in Zurich on the way to India? I am travelling from US to India, with an Indian passport but expired F1 visa and going there to get my H1B visa stamping. I have a stop at Zurich for 2 hours while flying to India. Do I need a transit visa for my trip? How to remove URI encoding from file names? I realise this might be quite a simple question, but I'm still quite new to the command line and only have a grasp of basic commands.  I've downloaded some lecture presentations (~25 or so) from my University however on doing so they've been named things like...  L2%20Development%20of%20immune%20system.pptx L4%20Molecular%20Recognition.pdf   As you can see they've downloaded with the URL encoding %20 instead of a space.  My question is how to batch rename all of these files so that the %20 is removed and replaced with a space instead? Showing equality of sequence of holomorphic functions to limit function if converges uniformly locally I do not know how to proof following question:  Let $D$ be a domain in $C$.  ${{f}_{n}}$ be a sequence of holomorphic functions on $D$ that converges uniformly locally to a function non-constant $f$. Show that for each $z\in D$, there is a sequence ${{z}_{n}}\to z$ as ${{f}_{n}}({{z}_{n}})=f(z)$ for all sufficiently large $n$.  Actually, I know that I should use an assumption such as: ${{f}_{n}}({{z}_{n}})\ne f(z)$  Therefore, there is compact set    that  $\left\| {{f}_{{{n}_{k}}}}({{z}_{{{n}_{k}}}})-f(z) \right\|&gt;\varepsilon $  Then I think I have to use Montel theorem, but I do not know how to show the contradiction. Is it possible to install Ubuntu on my Windows 8 computer without any CD or USB drive? Please read entire post CAREFULLY before answering.  This question will make you confused if you don't.  Information (May skip :P)   OS : Windows NT 6.2 (Windows 8 K) Equipped hard disk   Total 1TB, 1 disk C: (Simple Layout, NTFS, Boot, Pagefile, Crash dump, Main): total 488,039,776,256 bytes, used 93,473,599,488 bytes D: (Simple Layout, NTFS, Main): total 486,859,075,584 bytes, used 8,426,016,768 bytes hidden: Ask if needed  Brand(manufacturer): Samsung Electronics Processor(CPU): Intel(R) Core(TM) i5-3230M CPU @ 2.60GHz RAM: 8GB , 64-bit , OS 64-bit   Question (READ THEM ALL VERY CAREFULLY)   Is there any way to install Ubuntu on this computer without any external disk (CD, USB drive, etc) Note : This computer is 64-bit, so  did not help me. WUBI does not support UEFI, and This computer uses it. No Virtual PC programs like VirtualBox or VMWare, because it takes memory.   EDIT : I already found a USB drive in my home, so now it is installed on my computer xD Recovering *permanently* deleted emails from Gmail person in distress here.  Dont ask me how, but I ended up deleting all my 12,000 inbox emails from Gmail into Trash and then erased my Trash as well. Gmail gave me a warning box and took 20 seconds to delete. This was not what I intended. I have searched high and low to check if there is any way of recovering my 10 years worth of emails and could not find any.  Any one here know of a way, ANY WAY, to recover my accidental permanent deletion of all my 10 years worth of email (deleted from Trash as well)? I have notifications in the OSX Notification Center, as for most of my apps I am using the setting, "Show in Notification Centre: 10 Recent Items" This is a good setting but rather than have a very full Notification Center, I would still like to clear it from time to time with 1 click.  I am using Yosemite 10.10.3 self referential struct definition? I haven't been writing C for very long, and so I'm not sure about how I should go about doing these sorts of recursive things... I would like each cell to contain another cell, but I get an error along the lines of "field 'child' has incomplete type". What's up?  typedef struct Cell {   int isParent;   Cell child; } Cell; Finding a basis for a certain vector space of periodic polynomials I am having a little bit of trouble solving an homework question.  I found that $S={ p(x) \in R_4[x]} \big| p(x)=p(x-1) $ is a vector space.  Now I need to find some set, K that holds ${span(k)=S}$  My idea was to substitute: $ a+bx+cx^{2}+dx^{3}+ex^{4}=a+b(x-1)+c(x-1)^{2}+d(x-1)^{3}+e(x-1)^{4}$  But here I get something that seems a little bit weird, I'd like to look if I have any mistakes that I did not notice. and if I had mistakes, how to make my answer right. I calculated the right side of the equation and I got to  :  $a+b(x-1)+c(x-1)^{2}+d(x-1)^{3}+e(x-1)^{4}=a+bx-b+cx^{2}-2cx+c+dx^{3}-3dx^{2}+3dx-d+ex^{4}-4ex^{3}+6ex^{2}-4ex+e= (a-b+c-d+e)+(b-2c+3d-4e)x+(c-3d+6e)x^{2}+(d-4e)x^{3}+ex^{4}  $  From here, $ (a-b+c-d+e)+(b-2c+3d-4e)x+(c-3d+6e)x^{2}+(d-4e)x^{3}+ex^{4}=a+b(x-1)+c(x-1)^{2}+d(x-1)^{3}+e(x-1)^{4}\Rightarrow $  $(-b+c-d+e)+(-2c+3d-4e)x+(-3d+6e)x^{2}+(d-4e)x^{3}=0+0x+0x^{2}+0x^{3}+0x^{4}$  And the solution to this equation is only whan $a=b=c=d=e=0$.  I think that I am maybe not in the right direction. Do you have any Idea how to find a set $K\Rightarrow span(K)=S$ ?  Thanks in advance. Since the  would it make sense to create a Stack Exchange site dedicated to homework help? It wouldn't have to be limited strictly to homework either, possibly including discussions of puzzles and brain teasers and possible approaches to solving them.  I have a programming background so I would be interested in helping with CS or math related homework, discussions of programming contest problems, etc. Topics don't necessarily have to be related to programming either. That's just where my interests are.  What are your thoughts? Etiquette, rules, or advice on which site to pose a question? (Or, why are there so many StackExchange sites?) Basically: I have a question I want to ask regarding using Apple's AppleScript/Objective-C bridge (Objective C wrapped in AppleScript, basically) to implement an HTML/WebKit-based pager (a drop-in for less, like vimpager) and a HTML-ized manpage writer, which should also be capable of rendering to PDF via pandoc/pdftex, etc.  Is this a:   Stack Overflow question? (C/Objective-C, APIs) Ask Different question? (AppleScript) Unix &amp; Linux question? (implementing a pager which is a drop-in for a *nix utility) TeX question? (PDF rendering) All of the above?   Where and how should I ask this, in order to increase the likelihood of the "right person" seeing it?    Edit: I believe this question was too hastily closed as a duplicate.  While the best answer to this question is indeed identical to answer to the other:     Ask the question on the site you think is most applicable. If ... it does not get any answer,   ask a moderator to migrate the question, or alternatively, delete it and re-ask it.   The so-called "duplicate" in question asks     Is cross-posting permitted on multiple Stack Exchange sites if the question is on topic?   whereas this question asks,     Where and how should I ask this [ question that is on topic on multiple Stack Exchange sites? ]     That is to say, if two similar but materially different questions have identical answers, it does not necessarily follow that the questions are likewise the same.  Calling them duplicate questions does a disservice to both and the site in general I think. Can any one help me out , based on quote line items can we create a layout like by prepopulating items, price &amp; qty and next 6 qtrs. Example below 2 part numbers are  in quote line items, also default the price from quote line item.  Upon saving ,it should save as detailed record for each quarter. Creating a custom object  and calling them in Visual force page or by using JavaScript and CSS .Any suggestions plz.I shall appreciate your help.  i tried previously in this way   &lt;apex:page standardController="CustomLineItem__c"  sidebar="false" showHeader="false"&gt;  &lt;apex:form &gt;   &lt;apex:pageBlock &gt;     &lt;apex:pageBlockButtons location="top"&gt;       &lt;apex:commandButton value="SAVE" action="{!SAVE}"/&gt;       &lt;apex:commandButton value="SAVE&amp;MORE" action="{!SAVE}"/&gt;       &lt;apex:commandButton value="CANCEL" action="{!CANCEL}"/&gt;     &lt;/apex:pageBlockButtons&gt;     &lt;apex:pageblockSection title="Schedule"&gt;       &lt;apex:inputField value="{!CustomLineItem__c.ProductPartNumbers__c}" label="Product"/&gt;        &lt;apex:inputField value="{!CustomLineItem__c.Year__c}" label="Year"/&gt;        &lt;apex:inputField value="{!CustomLineItem__c.PricingRequestsQuarterNos__c}" label="Quarter"/&gt;        &lt;apex:inputField value="{!CustomLineItem__c.Quantity__c}"/&gt;        &lt;apex:inputField value="{!CustomLineItem__c.Price__c}"/&gt;    &lt;/apex:pageblockSection&gt;   &lt;/apex:pageblock&gt;  &lt;/apex:form&gt; &lt;/apex:page&gt; More Efficient Spatial join in Python without QGIS, ArcGIS, PostGIS, etc I'm attempting to do a spatial join much like the example here: . However, that approach seems really inefficient / slow. Even running this with a modest 250 points takes almost 2 minutes and it fails entirely on shapefiles with > 1,000 points. Is there a better approach? I'd like to do this entirely in Python without using ArcGIS, QGIS, etc.  I'd also be interested to know if it's possible to SUM attributes (i.e. population) of all the points that fall within a polygon and join that quantity to the polygon shapefile.       Here is the code I'm trying to convert. I get an error on line 9:  poly['properties']['score'] += point['properties']['score']   which says:     TypeError: unsupported operand type(s) for +=: 'NoneType' and 'float'.    If I replace the "+=" with "=" it runs fine but that doesn't sum the fields. I've also tried making these as integers but that fails as well.  with fiona.open(poly_shp, 'r') as n:    with fiona.open(point_shp,'r') as s:     outSchema = {'geometry': 'Polygon','properties':{'region':'str','score':'float'}}     with fiona.open (out_shp, 'w', 'ESRI Shapefile', outSchema, crs) as output:         for point in s:             for poly in n:                 if shape(point['geometry']).within(shape(poly['geometry'])):                       poly['properties']['score']) += point['properties']['score'])                     output.write({                         'properties':{                             'region':poly['properties']['NAME'],                             'score':poly['properties']['score']},                         'geometry':poly['geometry']}) Scoping in assigning a derivative