Creating a pop up message when the user exits the page or exits the browser
How to pop-up alert to a user when he/she navigate away from page without saving the Records in custom visual force page?
The Unix environment has some excellent tools for parsing text in various forms. However, of late, the data is not in the traditional (historical) formats (CSV, TSV, record-based or some other delimiter-based) it used to be before. Data these days is exchanged in structured formats like XML/JSON.  I know there are some good tools like sed, awk and Perl which can chew down nearly any form of data out there. However, to work with this sort of structured data, often one has to write a complete program, and, given the little time available to extract information, one has to sit down and figure out the whole logic of what one wants to query and put it down programmatically. Sometimes this is not OK – basically because the information extracted from those files acts as inputs for further work; also because of the time it takes to search for the appropriate solution and code it up. A command line tool is needed with sufficient switches to find, query and dump data.  I'm looking for tools that take a XML/JSON or other forms of structured data and dump it into other formats like csv, etc., so that from there one could use other commands to get any information out of it.  Are there any command line utilities you know of which do this kind of a job? Are there already awk/Perl scripts available to this? How can one show that a möbius transformation maps the unit circle to some axis? Suppose I have the möbius transformation f(z) = $\frac{1+z}{1-z}$ and I want to show that it will map the unit circle (excluding the point 1) to the imaginary axis.  Would it help to express my unit circle in polar form?     Here's what I did: f(e$^{i\theta}$) = $\frac{1+e^{i\theta}}{1-e^{i\theta}}$  But I'm not sure where to go from this step. probability that there is at least one defective part Badges with long names overflow on the profile page Why do RAW images look worse than JPEGs in editing programs? I've found that when you load a RAW image into an editing program such as Lightroom/Aperture, the image is usually worse than if you just took the image as JPEG. Now I understand that the camera does some magic during the JPEG conversion. But I'm trying to understand what that "magic" is.   If I'm looking to implement that "magic" myself on the desktop, what kind of settings should I be trying? I find that the RAW files have more extreme contrast. The dark areas for example are way darker than JPEG. Why is this? And what is the best way to fix this? Does a monk's Unarmored Movement speed increase apply to the fly speed gained from a Fly spell? Why is Euler's Totient function always even? I'm looking to implement a phase lock in an FPGA without using any external components (other than the ADC). For simplicity locking to a simple binary pulse is adequate. The frequency of the signals is ~0.1-1% of the clock. I can't use the onboard clock PLL's because they are typically:   Not configurable (set during synthesis). Jittery. Don't support the frequency I need.   I've been sorting through the literature and found a few binary phase locked loops. Most notable a "pulse steal" design that I can post a link to if desired. I have implemented and synthesized with some success, but its jitter and lock range was not as good as advertised. I've also had success using a external DVCO, but I would prefer if I can implement everything on chip.  A digital circuit design or even a hint in the right direction would be helpful (I've been banging my head against this for a while), a proven FPGA implementation would be wonderful but not expected.   ADDED 10-27-2010   The actual DPLL design that I used has a "Random Walk Filter" as the loop filter (not the "pulse steal" described earlier, going through my notes that didn't work to well), which then drives the clock pulses to the DCO. The lock-in range is set via divider in the DCO. The sensitivity of the loop is established by varying the length of the random walk.   The paper in which this is found is cited at the end of this post. After implementing parts of it myself, I found that it was actually already implemented on OpenCores, however it turns out that in the last few months the project was deleted but I have the Verilog files saved if anyone wants them.  Yamamoto, H.; Mori, S.; , "Performance of Binary Quantized All Digital Phase-Locked Loop with a New Class of Sequential Filter," Communications, IEEE Transactions on , vol.26, no.1, pp. 35- 45, Jan 1978  doi: 10.1109/TCOM.1978.1093972  URL: i install ubuntu and followed a guide to put 20gb in '/' and the rest (150gb) in '/home'. Now i just found out that a lot of the things installed in ubuntu usually goes to '/' instead of '/home'. I have a lot more things to install.  So what is the point of '/home' ? How do I fix this ? Should I transfer 150gb from '/home' to / ?  Filesystem      Size  Used Avail Use% Mounted on udev            7.8G     0  7.8G   0% /dev tmpfs           1.6G  9.5M  1.6G   1% /run /dev/sda6        19G   16G  1.8G  91% / tmpfs           7.8G  676K  7.8G   1% /dev/shm tmpfs           5.0M  4.0K  5.0M   1% /run/lock tmpfs           7.8G     0  7.8G   0% /sys/fs/cgroup /dev/sda2        96M   29M   68M  31% /boot/efi /dev/sda8       159G  1.1G  150G   1% /home tmpfs           1.6G   56K  1.6G   1% /run/user/1000   what is /boot ? Its not '/' or '/home' How can I get a specific line from a file? What is a good word to describe someone who is empathetic, quick, and witty in conversation What happens if my ESTA expires on the day of arrival? I'm French and will travel the 14th of June to the US. My ESTA expires the 14th of  June 2013 and I'm wondering if my ESTA will be valid when I'll land in the US on the 14th of June 2013.  Does someone know anything about that? Is it ok to put old papers on the arXiv? In my field (I am a condensed-matter theoretical physicist) it is such a normal thing to put papers on the arXiv, that people sometimes look at other people's arXiv list of papers instead of their publication record to get to know what they do, etc.  It just so happens that a few years ago I did a PhD with a supervisor that does not like the arXiv that much (he apparently had some conflict with some authors of a paper that was very similar to one of his papers, but one was already published while the other was just an arXiv preprint -or something like that). As a result, from my list of less than 20 publications, there are four of them from my PhD that are missing on the arXiv.  I was thinking of submitting the latest versions I have of them as arXiv preprints now, four years after their publication. For this I already have the agreement of all co-authors (including my supervisor), and all the journals involved seem to allow to put preprints of the material they publish. Do you see any problem with this? I fear that some people might take it as a way to advertise as new something that was already published a long time ago (though I would of course give the full reference to the published version). There may be other issues I am not aware of. The reason why I would like to do this is that I am applying for fellowships, positions, etc. and I am afraid some of my (best) publications may go unnoticed if somebody looks me up on the arXiv.  Thank you, Stephen Volumetric Windows 10 logo effect I'm trying to recreate the windows 10 background effect on a logo I've made in blender.  Half the logo has a glass like material, the other half has a steel like material. And I'm using cycles at the moment.  I've put various light sources behind the logo and tried a few variations of volumetric scatter in the world to get the god ray sort of feel coming off the logo, but it's just not looking anywhere near as effective as I'd like.  I know the win10 background was a real set and photographed, but has anyone come across a tutorial to do something similar in blender?  I'm very new to the tool, I'd appreciate any pointers in the right direction. Transforming multiple rows into a single row How to do relative imports in Python? In Russian we have idiom/saying "To shoot out of cannon into sparrows" (literal translation) which is used to convey an idea of applying too drastic measures to small problems. I believe there should be some native-English equivalents to this saying. Can you share if there are any? Chrome 100% CPU usage, again - software_reporter_tool.exe software_reporter_tool.exe belonging to Chrome running at 100% cpu, fan full speed.  Deleting it doesn't fix anything, because it gets redownloaded again! Disabling "Protect me from bla bla" doesn't make it stop running.  Please anyone have any solutions? Consider a particle on the ground. This particle is raised by a force of magnitude $mg$ to a height $h$ above the ground. At this point, the work done on the particle by the force is $mgh$, which is equal to the potential energy of the particle. But, during this period, the force of gravity also acts on the particle and is displaced by $h$, and so does a work of $-mgh$ on the particle. Shouldn't  the two cancel and no net work should be done on the particle?   If they don't cancel, then where did the energy that came from the work done by the force of gravity go? What is this triangle icon [Samsung Galaxy S9+]?