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 &gt; 3) {                         DayClass = "yellowBackground";                     } else if (DayScrapPercent &gt; 5) {                         DayClass = "redBackground";                     }                      if (NightScrapPercent &gt; 3) {                         NightClass = "yellowBackground";                     } else if (NightScrapPercent &gt; 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 &mdash; 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 to control Windows 7 snap feature with two monitors? There is an  feature in Windows 7. However, it seems to not work when dragging a window to the edge that is adjoined to the second monitor. How to make it work properly? Maybe some regedit modification or something? The biggest peeve is sometimes I vote up an answer mid-way through reading it, and the "don't forget to accept" message blocks the remaining text, so I scramble and triple-click it until it closes.  Anyways I frequently scan my question list and search for SO's reminders, ("Consider accepting an answer") so the "don't forget to accept" is wholly unnecessary to some, and there should be a way to disable it. Do you think so too? Show that every large integer has a large prime-power factor  That is, if $P(n)$ designates the largest number $p^a$ which divides $n$, then $\lim_{n\to\infty}P(n)=\infty.$ How many players can play split-screen, and what game modes are (or aren't) available?   How many players can play local co-op? How many players can play local multiplayer? How many players can play online multiplayer from a single console? How to trick a command into thinking its output is going to a terminal Given a command that changes its behaviour when its output is going to a terminal (e.g. produce coloured output), how can that output be redirected in a pipeline while preserving the changed behaviour?  There must be a utility for that, which I am not aware of.  Some commands, like grep --color=always, have option flags to force the behaviour, but the question is how to work around programs that rely solely on testing their output file descriptor.  If it matters, my shell is bash on Linux. I got a brand new Windows 7 machine, installed the operating system, created one account and forgot its password. What can I do?  There is no external CD, the operating system is loaded from somewhere inside the machine.  I already tried to remember passwords and tried all candidates with all possible combinations of caps lock, num lock etc. There a  who has no valid parent user. It is indicated that his chat account is associated to a Maths.SE account, which does not appear to exist. The user was still able to chat. Is it normal? If it's a bug, could someone look into it?  Edit: if you browse the Google cache for users named Skullpatrol, it turns out a single series of associated accounts. The user is now named . I don't know what went wrong, maybe an account merge or something like that, but it needs someone from staff looking into it with some superpowers. I also tried to update the parent user of the chat account to this &quot;Rob&quot; profile, but the interface goes all buggy on me (works for other users, fails only for this one): User’s Guide vs Users’ Guide I’ve been looking over what has been posted regarding the use of ’s.   I used to be a Technical Writer (years ago). The title of one of our training documents was Users’ Guide.  Once, a coworker said every time he saw that title he expected users to start coming.    Never made any sense to me, but I have to admit that the majority of us didn't understand the use of s’ in place of ’s.  What is the difference? How to forward specific log file outside of /var/log with rsyslog to remote server? How can I forward message from a specific log file like /www/myapp/log/test.log with rsyslog client to remote rsyslog server? This log file is outside of the directory /var/log. I have a 16GB flash drive. I'm running Ubuntu 14.04. I can't open my flash drive and I can't see it in GParted.  After running tail -f /var/log/syslog . After inserting my flash:  USB disconnect, device number 10 Jul  3 16:39:55 rihanna-VGN-Z56GG-B kernel: [ 3309.712166] usb 2-3: new high-speed USB device number 11 using ehci-pci Jul  3 16:39:55 rihanna-VGN-Z56GG-B kernel: [ 3309.846591] usb 2-3: New USB device found, idVendor=090c, idProduct=1000 Jul  3 16:39:55 rihanna-VGN-Z56GG-B kernel: [ 3309.846601] usb 2-3:   New USB device strings: Mfr=1, Product=2, SerialNumber=3     Jul  3 16:39:55 rihanna-VGN-Z56GG-B kernel: [ 3309.846609] usb 2-3: Product: Silicon-Power     Jul  3 16:39:55 rihanna-VGN-Z56GG-B kernel: [ 3309.846615] usb 2-3: Manufacturer: UFD 2.0     Jul  3 16:39:55 rihanna-VGN-Z56GG-B kernel: [ 3309.846622] usb 2-3: SerialNumber: 1401208423400131     Jul  3 16:39:55 rihanna-VGN-Z56GG-B kernel: [ 3309.847176] usb-storage 2-3:1.0: USB Mass Storage device detected     Jul  3 16:39:55 rihanna-VGN-Z56GG-B kernel: [ 3309.847309] scsi12 : usb-storage 2-3:1.0     Jul  3 16:39:55 rihanna-VGN-Z56GG-B mtp-probe: checking bus 2, device 11: "/sys/devices/pci0000:00/0000:00:1d.7/usb2/2-3"     Jul  3 16:39:55 rihanna-VGN-Z56GG-B mtp-probe: bus: 2, device: 11 was not an MTP device     Jul  3 16:40:17 rihanna-VGN-Z56GG-B kernel: [ 3332.176107] usb 2-3: reset high-speed USB device number 11 using ehci-pci     Jul  3 16:40:33 rihanna-VGN-Z56GG-B kernel: [ 3347.288080] usb 2-3: device descriptor read/64, error -110     Jul  3 16:40:48 rihanna-VGN-Z56GG-B kernel: [ 3362.504081] usb 2-3: device descriptor read/64, error -110     Jul  3 16:40:48 rihanna-VGN-Z56GG-B kernel: [ 3362.720076] usb 2-3: reset high-speed USB device number 11 using ehci-pci     Jul  3 16:40:52 rihanna-VGN-Z56GG-B kernel: [ 3366.812110] usb 2-3: reset high-speed USB device number 11 using ehci-pci     Jul  3 16:41:07 rihanna-VGN-Z56GG-B kernel: [ 3381.924082] usb 2-3: device descriptor read/64, error -110     Jul  3 16:41:23 rihanna-VGN-Z56GG-B kernel: [ 3397.356093] usb 2-3: reset high-speed USB device number 11 using ehci-pci     Jul  3 16:41:38 rihanna-VGN-Z56GG-B kernel: [ 3412.468057] usb 2-3: device descriptor read/64, error -110     Jul  3 16:41:54 rihanna-VGN-Z56GG-B kernel: [ 3428.664065] usb 2-3: reset high-speed USB device number 11 using ehci-pci     Jul  3 16:42:09 rihanna-VGN-Z56GG-B kernel: [ 3443.776100] usb 2-3: device descriptor read/64, error -110     Jul  3 16:42:24 rihanna-VGN-Z56GG-B kernel: [ 3458.992085] usb 2-3: device descriptor read/64, error -110     Jul  3 16:42:25 rihanna-VGN-Z56GG-B kernel: [ 3459.208063] usb 2-3: reset high-speed USB device number 11 using ehci-pci     Jul  3 16:42:40 rihanna-VGN-Z56GG-B kernel: [ 3474.320039] usb 2-3: device descriptor read/64, error -110     Jul  3 16:42:50 rihanna-VGN-Z56GG-B kernel: [ 3484.516109] usb 2-3: reset high-speed USB device number 11 using ehci-pci     Jul  3 16:42:50 rihanna-VGN-Z56GG-B kernel: [ 3484.768108] usb 2-3: reset high-speed USB device number 11 using ehci-pci Jul  3 16:43:05 rihanna-VGN-Z56GG-B kernel: [ 3499.880081] usb 2-3: device descriptor read/64, error -110 Jul  3 16:43:20 rihanna-VGN-Z56GG-B kernel: [ 3515.096081] usb 2-3: device descriptor read/64, error -110 Jul  3 16:43:21 rihanna-VGN-Z56GG-B kernel: [ 3515.312048] usb 2-3: reset high-speed USB device number 11 using ehci-pci Jul  3 16:43:36 rihanna-VGN-Z56GG-B kernel: [ 3530.424032] usb 2-3: device descriptor read/64, error -110 Jul  3 16:43:46 rihanna-VGN-Z56GG-B kernel: [ 3540.505230] scsi 12:0:0:0: Device offlined - not ready after error recovery File transfer using sockets (C#) - received file doesn't contain full data How do we know photons have spin 1? Do web browsers use different outgoing ports for different tabs? How to interpret the coefficients from a beta regression? I have some data that is bounded between 0 and 1. I have used the betareg package in R to fit a regression model with the bounded data as the dependent variable. My question is: how do I interpret the coefficients from the regression? I am using LaTeX with the article document class. The Bibtex bibliography style that I am using is agsm, part of the Harvard family of bibliography styles.  I have two questions:  (1) If I cite an entry of type @book, then in the reference list I get publisher, address. I would like to re-arrange this order to address: publisher. Which part of agsm.bst should I modify?  (2) I would like to change single quotation marks ' ' to double quotation marks " " for setting off the title of entries of type @article. Which part of agsm.bst should I focus on? Calculate the area on a sphere of the intersection of two spherical caps I am unable to understand what exactly is critical value.My question here is why do we fail to reject a null hypothesis when the test statistic is within the range of critical value.  What i am trying to ask is what is the property of the critical value that makes the hypothesized value to fall within the range implied by the critical value.  Thanks in advance Why does "unisex" mean both sexes? There are some places where men and women are segregated — for example public toilets and public swimming pool changing areas.  By this I mean, for example, that there are "Men's toilets" and "Ladies' toilets".  However, in some more cosmopolitan swimming baths, and other places, there are such things as unisex changing areas, or unisex toilets.  From my understanding uni- implies one, as in universe, unilateral or unicycle.  However when it comes to unisex, this means both sexes, so applies to two things.  How does uni- mean one in unisex? Does it mean one? Assuming there are 5 items in the settings file (MySetting1 to MySetting5), why does PropertyValues have 0 items while Properties has the correct number?   Console.WriteLine( Properties.Settings.Default.PropertyValues.Count); // Displays 0 Console.WriteLine( Properties.Settings.Default.Properties.Count);     // Displays 5 "error: XDG_RUNTIME_DIR not set in the environment." when attempting to run nautilus as root I am attempting to run nautilus as root but when I run "sudo nautilus" from the terminal, I get the following error:     error: XDG_RUNTIME_DIR not set in the environment.      (nautilus:9341): Gtk-WARNING **: cannot open display:   The issue does not occur when I attempt to run nautilus as non-root. I am using ubuntu 14.04. Does anyone know how I can fix this?