I want to implement day/night functionality on world map i.e there will be   dark layer showing countires having night now.  This world map could be creaeted through ESRI or SVG map.I want to understand what is the   logic of showing behind implementing this.Any known algorithms/formulas.  I have posted this question in stackoverlfow ().  But thought this is better forum.
I have a daytime raster of my study area. I have 20+ counters in the study area that count "stuff" with a timestamp. Using  I determined the type of ambient light for each collected data point.   What I'd like to do:   Add a grey/semi transparent overlay to reflect the ambient light (Dusk, Sunrise, day, sunset, and dark). The end goal: produce a time-based visualization of the data collection that highlights the time of the day. Or be able to produce a snapshot at a certain time with the proper shaded overlay. Think of this as this the image:
Fluent and Query Expression — Is there any benefit(s) of one over other? LINQ is one of the greatest improvements to .NET since generics and it saves me tons of time, and lines of code.  However, the fluent syntax seems to come much more natural to me than the query expression syntax.  var title = entries.Where(e =&gt; e.Approved)     .OrderBy(e =&gt; e.Rating).Select(e =&gt; e.Title)     .FirstOrDefault();  var query = (from e in entries              where e.Approved              orderby e.Rating              select e.Title).FirstOrDefault();   Is there any difference between the two or is there any particular benefit of one over other? Reputation in summary tab shows as blank instead of 0, if net result is zero let a,b be real  numbers and $\varepsilon&gt;0$. prove the above inequality. I dont know how to even start. please, I need your help. Application of Kirchhoff's laws in circuits with inductors As we know, the  are applicable for conservative electric fields. Now it is applicable for circuits where inductors are present but the field there is not .  So how are the  Kirchhoff's laws  applicable there? Are punches with Gauntlets of Ogre Strength magical, improvised weapon attacks? My Gnoll Paladin just got the Gauntlets of Ogre Strength from Phandelver the other day, and it got me wondering:    Would it be possible/make sense for punches using them to count as an improvised weapon? (Since I'm not punching with empty fists, I'm wearing magical gauntlets) If so, would punches from a person using them count as magical weapon damage? Driver for Validity Sensors Fingerprint scanner prakhar@pr3d4tOr:~$ lsusb -s 001:003 -v  Bus 001 Device 003: ID 138a:0018 Validity Sensors, Inc. Fingerprint scanner Couldn't open device, some information will be missing Device Descriptor:   bLength                18   bDescriptorType         1   bcdUSB               1.10   bDeviceClass          255 Vendor Specific Class   bDeviceSubClass        17    bDeviceProtocol       255    bMaxPacketSize0         8   idVendor           0x138a Validity Sensors, Inc.   idProduct          0x0018 Fingerprint scanner   bcdDevice            0.78   iManufacturer           0    iProduct                0    iSerial                 1    bNumConfigurations      1   Configuration Descriptor:     bLength                 9     bDescriptorType         2     wTotalLength           46     bNumInterfaces          1     bConfigurationValue     1     iConfiguration          0      bmAttributes         0xa0       (Bus Powered)       Remote Wakeup     MaxPower              100mA     Interface Descriptor:       bLength                 9       bDescriptorType         4       bInterfaceNumber        0       bAlternateSetting       0       bNumEndpoints           4       bInterfaceClass       255 Vendor Specific Class       bInterfaceSubClass      0        bInterfaceProtocol      0        iInterface              0        Endpoint Descriptor:         bLength                 7         bDescriptorType         5         bEndpointAddress     0x01  EP 1 OUT         bmAttributes            2           Transfer Type            Bulk           Synch Type               None           Usage Type               Data         wMaxPacketSize     0x0040  1x 64 bytes         bInterval               0       Endpoint Descriptor:         bLength                 7         bDescriptorType         5         bEndpointAddress     0x81  EP 1 IN         bmAttributes            2           Transfer Type            Bulk           Synch Type               None           Usage Type               Data         wMaxPacketSize     0x0040  1x 64 bytes         bInterval               0       Endpoint Descriptor:         bLength                 7         bDescriptorType         5         bEndpointAddress     0x82  EP 2 IN         bmAttributes            2           Transfer Type            Bulk           Synch Type               None           Usage Type               Data         wMaxPacketSize     0x0040  1x 64 bytes         bInterval               0       Endpoint Descriptor:         bLength                 7         bDescriptorType         5         bEndpointAddress     0x83  EP 3 IN         bmAttributes            3           Transfer Type            Interrupt           Synch Type               None           Usage Type               Data         wMaxPacketSize     0x0008  1x 8 bytes         bInterval               4   I have searched high and low but I cannot get this to work. All questions related to 138a:0018 are either unanswered or old. Any help guys? Can I get the output of a command line program with TeX (using e.g. \read18)? Continuous footnote numbering I would like footnote numbering to continue over pages and chapters. In my document it's reset every chapter. I'm using the report documentclass. Why does $\tan^{-1}(1)+\tan^{-1}(2)+\tan^{-1}(3)=\pi$? Playing around on wolframalpha shows $\tan^{-1}(1)+\tan^{-1}(2)+\tan^{-1}(3)=\pi$. I know $\tan^{-1}(1)=\pi/4$, but how could you compute that $\tan^{-1}(2)+\tan^{-1}(3)=\frac{3}{4}\pi$ to get this result? Ignore folders/files when Directory.GetFiles() is denied access I am trying to display a list of all files found in the selected directory (and optionally any subdirectories). The problem I am having is that when the GetFiles() method comes across a folder that it cannot access, it throws an exception and the process stops.  How do I ignore this exception (and ignore the protected folder/file) and continue adding accessible files to the list?  try {     if (cbSubFolders.Checked == false)     {         string[] files = Directory.GetFiles(folderBrowserDialog1.SelectedPath);         foreach (string fileName in files)             ProcessFile(fileName);     }     else     {         string[] files = Directory.GetFiles(folderBrowserDialog1.SelectedPath, "*.*", SearchOption.AllDirectories);         foreach (string fileName in files)             ProcessFile(fileName);     }     lblNumberOfFilesDisplay.Enabled = true; } catch (UnauthorizedAccessException) { } finally {} I'm looking for a programmers' editor. I know Xcode and I use it for application programming but I'm looking for something that will:   Syntax highlight PHP, SQL, Javascript (including jQuery) and CSS not required but would be nice; also Lua, Python, and Perl    IntelliSense type stuff, start typing and get all the functions/objects/variables it could be and any parameters. Xcode does this well for C/C++/Objective-C but looking for languages that are listed above. Would be nice if it worked with projects and not just files    Integrated with SVN, CVS, or GIT Had upload-to-server functionality built in   I am aware of  but am looking for other options before I drop 100 bucks. In an Integral Domain is it true that $\gcd(ac,ab) = a\gcd(c,b)$? Initializing Manipulator value within DialogInput (version 10.1 only) I am looking to set up Ubuntu Server as a headless NAS for my home. I would like to have file storage there, as well as a central hub for my MP3s and pictures.  What are the best packages out there to handle this? Can someone post a link to a good tutorial or post some tips?  One constraint I have is that it has to be Windows 7 friendly. By that I mean the shares and streaming should work for a Windows machine. Safely turning a JSON string into an object Given a string of JSON data, how can I safely turn that string into a JavaScript object?  Obviously I can do this unsafely with something like:  var obj = eval("(" + json + ')');   but that leaves me vulnerable to the JSON string containing other code, which it seems very dangerous to simply eval. How do I install and manage GNOME Shell extensions? When transiting between two flights, will my luggage be automatically transferred? I had a heck of time while editing my  question. But, I guess, I discovered a new weird problem in the editor while formatting hyperlink text next to  tag.  To illustrate this problem better, I would like to give the following examples:  Has problem with one or none white-space in between:  [meta-tag:status-planned] [details page reads:][2] [meta-tag:status-planned][details page reads:][2]     Gives weird output as:   [details page reads:]   [details page reads:]   But, its okay with two white-spaces in between:  [meta-tag:status-planned]  [details page reads:][2]   Gives the correct output as:      Something is strange here. I don't understand why do I have to insert two white-spaces instead of just one? Are the two white-spaces are mandatory when using [meta-tag:some-tag] with hyperlink text adjacent to it? Or, is it one of those  thing?  But wait, it's get even further complicated if I do like:   1. No white-spaces in between:  [meta-tag:status-planned][meta-tag:status-completed][Moderator-only Tags][3]     2. One white-space in between:  [meta-tag:status-planned] [meta-tag:status-completed] [Moderator-only Tags][3]       3. Two white-spaces in between:  [meta-tag:status-planned]  [meta-tag:status-completed]  [Moderator-only Tags][3]         They all seems to work perfectly fine. Now, thats very strange! Why would the two [meta-tag:some-tag] works like a charm with or without requiring to insert any white-spaces? Can anyone explain this in a better way. I don't want to jump on the conclusion by calling this as a bug yet, so I used  tag instead of  tag. Please share your thoughts. PGFPlots: Understanding how to draw plots on different layers and arrange them Download all PDF links in a web page? Do you know a good software to download all PDF links in a web page??  Operating system is Windows 7.