For many years now, I've noticed that cameras of different sorts and image editing program display a preview image of different colors from the final image, while it's loading the final image. I've noticed this on several different models of android phones, as the photo app was loading the image I had taken; I've also noticed this on the LCD screen on DSLR cameras, including Pentax and Nikon models, and also in Lightroom, which the the main desktop photo editing program I use. After all this time, it's bugged me-- why is this so? Usually the preview images appears to have &quot;better&quot; or more saturated colors-- it seems to be the &quot;human-friendly&quot; version that phones deliver to consumers who want good-looking images over color accuracy. Here are some screenshots from Lightroom CC. Notice that the first image, you'll see the loading... text pop-up over the image, and at a glance, the image seems to skew bluer. The second screenshot has the image completely loaded, and it doesn't have as much blue as the preview loading image. These are freshly imported NEF images from my Nikon, so I don't suspect any sort of jpeg progressive rendering.   What is going on here?
I have a strange issue with Windows 10  When I open .nef files they load fine. However after a second or two the contrast changes noticeably. I tried Windows 10 Photos and Picasa Image Viewer.   What am I trying to accomplish? I just want to open files quickly to check for focus and composition before importing into Lightroom  Lightroom does not have this issue   Here is the example opening with Windows 10 Photos    And here is after a second when it 'fully' loads    Picasa Photo Viewer after it loads a bit. It initially opens fine but then it goes all purple
How to calculate the integer part of the value of the following equation?  $$y=1+\frac{1}{\sqrt{2}}+\frac{1}{\sqrt{3}}+\frac{1}{\sqrt{4}}+\ldots+\frac{1}{\sqrt{1000000}}$$  It should be calculated in a special way, after all the equation is so long. deleting windows system folder I want to use an old drive as a secondary hard drive without reformatting. But this old hard drive contains my old Vista installation which takes up gigs of space.  I tried changing ownership and it works to some extent but I can not delete anything in Windows/System32 folder.  Is there an easy way to change permissions so I can delete everything?    The solution is to use Takeown as Wil suggested and use cacls to take full control of the files. Since cacls doesn't seem to be recursive, I fired up cygwin and ran this command to recursively change all the files:  for d in $(find directory-of-interest -type d);do   cacls $d'/*' /e /G username:F; done   where directory-of-interest is in my case /cygdrive/g/Windows and username is my username.  I had to manually run it on directories that had spaces in its name. But after all this, I can now delete the directory. Warning: it seems to me that cacls can potentially royally screw things up if improperly used. What is the bit size of long on 64-bit Windows? Not to long ago, someone told me that long are not 64 bits on 64 bit machines and I should always use int. This did not make sense to me. I have seen docs (such as the one on Apple's official site) say that long are indeed 64 bits when compiling for a 64-bit CPU. I looked up what it was on 64-bit Windows and found         Windows: long and int remain 32-bit in length, and special new data types   are defined for 64-bit integers.      (from )  What should I use? Should I define something like uw, sw ((un)signed width) as a long if not on Windows, and otherwise do a check on the target CPU bitsize? How to compute azimuth between QgsPointV2s? The  class has an azimuth() method but the new  class does not. What's the best way to compute the azimuth between QgsPointV2s? I couldn't find a convenient way to convert V2 to the old version, so my fallback is to construct a QgsPoint from the V2's x and y:   self.traj = QgsLineStringV2(...)     p_i = self.traj.pointN(self.i) # this returns a QgsPointV2 p_j = self.traj.pointN(self.j) a = QgsPoint(p_i.x(),p_i.y()).azimuth(QgsPoint(p_j.x(),p_j.y()))   Is there a better way? How are java.lang.Object's protected methods protected from subclasses? The keyword protected grants access to classes in the same package and subclasses ().  Now, every class has java.lang.Object as superclass ().  Hence I conclude that every class may access java.lang.Object's methods even if they are protected.  Take a look at the following example:   public class Testclass {   public Object getOne() throws CloneNotSupportedException {     return this.clone();   }   public Object getTwo() throws CloneNotSupportedException {     return ((Object) this).clone();   } }   While getOne() compiles fine, getTwo() gives   Testclass.java:6: clone() has protected access in java.lang.Object         return ((Object) this).clone();   I neither understand why getTwo() doesn't compile nor what's the difference (regarding the access of java.lang.Objects members) with getOne(). I am trying to perform centrality analysis with sDNA with ArcGIS Pro (ver. 2.7.1). However, I have failed to run the Preparation &amp; Integral Analysis in sDNA with the same reason. What is the problem and What should I do? Single word describing a person new in something What is a word for someone who is totally new in something or participates in something for the first time? Is it possible to remove inline styles with jQuery? Javascript add leading zeroes to date Bad Eyesight and Evolution Why do many humans have bad eyesight, such as near-sightedness, which hampers performance in a wide variety of tasks? Shouldn't there be evolutionary pressure towards better eyesight? I need to add a new field in the @book or @InProceedings entries: this field is "tome", for I have for instance the following title:  Francesco Bertolini, Società di trasmissione orale: mito e folclore, in Lo spazio letterario della Grecia antica, a cura di G. Cambiano, L. Canfora e D. Lanza, vol. I, tomo I, Salerno, Roma 1992, pp. 47--75.   So the following code is not enough:  @InProceedings{ bertolini:1992,   author                   = "Francesco Bertolini",   title                    = "Società di trasmissione orale: mito e folclore",   booktitle                = "Lo spazio letterario della Grecia antica",   editor                   = "G. Cambiano and L. Canfora and D. Lanza",   publisher                = "Salerno",   location                 = "Roma",   year                     = "1992",   volume                   = "1,   pages                    = "47--75", }   Using othes codes, I was able only to produce the "tome" field, but with a general trouble about the other fields:  \DeclareSourcemap{   \maps[datatype=bibtex]{     \map{       \step[fieldsource=tome,fieldtarget=usera]     }   } } \DeclareFieldFormat{usera}{tomo\space{#1}}   \DeclareBibliographyDriver{book}{%   \usebibmacro{author/editor}%   \setunit{\labelnamepunct}\newblock   \usebibmacro{title}%   \newunit\newblock   \usebibmacro{journal+issuetitle}%   \setunit{\bibpagespunct}%   \printfield{pages}%   \newunit\newblock   \printfield{usera}%   \usebibmacro{finentry}} \renewcommand*{\finentrypunct}{}   (useful for articles, but not for my case). By real, I'm not able to understand  which bibmascros I have to invocate...  I tried to write a biblatex-tome.dbx:  \ProvidesFile{biblatex-tome.dbx}   \DeclareDatamodelFields[type=field,datatype=literal,skipout=false]{tome}   \DeclareDatamodelEntryfields{tome}   Inside the main .tex file I put just this code:  \DeclareFieldFormat{tome}{\mkbibacro{tome}\addcolon\space #1} \newcommand*{\patchmoretome}[1]{   \xpatchbibdriver{#1}%     {\printfield{tome}}     {\printfield{tome}%           \newunit\newblock      \printfield{tome}}%     {\typeout{patching #1 to include more tome succeded}}%     {\typeout{patching #1 to include more tome failed}}% } % patch all drivers \patchmoretome{article} \patchmoretome{book} \patchmoretome{collection} \patchmoretome{inbook} \patchmoretome{incollection} \patchmoretome{inproceedings} \patchmoretome{manual} \patchmoretome{periodical} \patchmoretome{proceedings} \patchmoretome{report} \patchmoretome{thesis}   but it doesn't print the field in bibliographic entry. So I'm very confused about a (re)writing of driver Why did my TeX-related GUI program stop working in Mac OS X Yosemite? Conditional Linq Queries We're working on a Log Viewer. The use will have the option to filter by user, severity, etc. In the Sql days I'd add to the query string, but I want to do it with Linq. How can I conditionally add where-clauses? Prove or Disprove the Existence of Solutions... How to roll perception checks for characters who aren't actively looking without arousing suspicion? This applies to all d20 systems, but with an example from the from the Pathfinder  (emphasis mine):  Stonecunning: Dwarves receive a +2 bonus on Perception checks to potentially notice unusual stonework, such as traps and hidden doors located in stone walls or floors. They receive a check to notice such features whenever they pass within 10 feet of them, whether or not they are actively looking.  In this case, does the GM roll the check in secret or ask the player roll the check? If the GM asks the player to roll for the check, what stops situations like:  GM: (interrupting) &quot;Gimli, Roll a perception check.&quot; Dwarf player: &quot;Oh, it's a natural one, I guess I don't see anything.&quot; Human player: &quot;Okay, I'll roll a perception check for anything unusual in this room. Nice! 19. How about 19, does 19 work for you?&quot; GM: &quot;Gimli, everything looks kosher to you. Aragon, you notice a rock coloured tarp on the ground here, covering what looks like a pit trap.&quot;  In this case, by telling the dwarf to roll his &quot;free&quot; perception check, he's telegraphed to the players that there is something to notice. How can this be fixed, without bluffing checks for nothing in particular to throw off the signal to noise ratio of similar checks? Splitting a semicolon-separated string to a dictionary, in Python I have a string that looks like this:  "Name1=Value1;Name2=Value2;Name3=Value3"   Is there a built-in class/function in Python that will take that string and construct a dictionary, as though I had done this:  dict = {     "Name1": "Value1",     "Name2": "Value2",     "Name3": "Value3" }   I have looked through the modules available but can't seem to find anything that matches.    Thanks, I do know how to make the relevant code myself, but since such smallish solutions are usually mine-fields waiting to happen (ie. someone writes: Name1='Value1=2';) etc. then I usually prefer some pre-tested function.  I'll do it myself then. Enabling Nvidia driver messes up splash screen How can I create a product key for my C# application? How can I create a product key for my C# Application? I need to create a product (or license) key that I update annually.  Additionally I need to create one for trial versions.  Related: Super+D key shortcut does not show desktop I recently installed Saucy Salamander on my computer. Previously in Ringtail, Super+D used to show the desktop. However for this release, the Super+D does not seem to work properly... Is it a bug? I want to know if I can pass an argument with an alias command.  for example:  alias d="dmesg|grep -iw usb|tail -5"    Now d will print the last 5 lines. If I want to use d to print a different number of lines, I have to make change in the alias command declaration of d again.  Is there any way I can modify the declaration of an alias so that I don't have to retype the declaration to change the number of lines. Like incorporating passing the number of lines as an argument while declaring alias for d? Or is there some other method to solve this?