How to refer to a JSF component Id in jquery?
How to select JSF components using jQuery?
How to fix broken taskbar icons in Windows 7 monitor files (à la tail -f) in an entire directory (even new ones) I normally  watch many logs in a directory doing tail -f directory/*. The problem is that a new log is created after that, it will not show in the screen (because * was expanded already).  Is there a way to monitor every file in a directory, even those that are created after the process has started? How do I reclaim my Clash of Clans account? I got Clash if Clans on my laptop and started a village. Then a couple of weeks later it said "This app was not installed properly". So I went and redownloaded it but it started a new account. How do I reclaim my old one back? How to create a Geometric Polygonal Art portrait I've been interested in creating Geometric Polygonal art illustrations, i.e. making polygons and shapes with different color shading represent a face, or an object, see  set of .  How are they achieved? Is there some script for Illustrator which alters the image adding the shapes according to the colors or shades? How would I transform a normal image of Marilyn Monroe for example, to a polygonal illustration of her? Find all positive integers $n$ such that $n$ is divisible by all the positive integers less than or equal to $\sqrt{n}$ Find all positive integers $n$ such that $n$ is divisible by all the positive integers less than or equal to $\sqrt{n}$  My thought: If n is a positive integer, let d(n) denote the number of positive divisors of n and I will find n such that $d(n) \ge 2\sqrt{n} - 1$ Google Chrome is not starting I've just installed Ubuntu 16.04 LTS on dual boot. I've looked for many solutions and tried them all but Chrome never starts; the logo appears on the left but no window opens.  I downloaded the deb file on google chrome website and installed it through Ubuntu Software, but it doesn't start.   I have tried installing it through the command line with   sudo dpkg -i --force-depends google-chrome-stable_current_amd64.deb sudo apt-get install -f   I have checked with uname -a and my system is 64 bit. I have also tried gdebi with the same result.   My repository universe is up to date.  I only have one display in settings>displays> so I can't turn off built-in display nor check the mirror display (I read it could be the problem as I also have a graphic card but it seems it is not in my case).  Here is what I get in the command line when I try to run Chrome from it ( the message is the same, whatever the method I used to install Chrome):  ~$ google-chrome [11831:11831:1122/114854.195473:ERROR:process_singleton_posix.cc(433)] readlink failed: Permission denied (13) [11831:11831:1122/114854.195493:ERROR:process_singleton_posix.cc(256)] readlink(/home/basil/.config/google-chrome/SingletonLock) failed: Permission denied (13) [11831:11831:1122/114854.195508:ERROR:process_singleton_posix.cc(256)] readlink(/home/basil/.config/google-chrome/SingletonLock) failed: Permission denied (13) [11831:11831:1122/114854.195515:ERROR:process_singleton_posix.cc(280)] Failed to create /home/basil/.config/google-chrome/SingletonLock: Permission denied (13) [11831:11831:1122/114854.195538:ERROR:process_singleton_posix.cc(433)] readlink failed: Permission denied (13) [11831:11831:1122/114854.195564:ERROR:process_singleton_posix.cc(256)] readlink(/home/basil/.config/google-chrome/SingletonLock) failed: Permission denied (13) [11831:11831:1122/114854.195622:ERROR:chrome_browser_main.cc(1498)] Failed to create a ProcessSingleton for your profile directory. This means that running multiple instances would start multiple browser processes rather than opening a new window in the existing process. Aborting now to avoid profile corruption. [11831:11868:1122/114854.209297:ERROR:browser_gpu_channel_host_factory.cc(108)] Failed to launch GPU process.   Any new approach will be much appreciated Check if an image is loaded (no errors) with jQuery Modular exponentiation by hand ($a^b\bmod c$) ETS() function, how to avoid forecast not in line with historical data? I have a Python program that uses the "threading" module. Once every second, my program starts a new thread that fetches some data from the web, and stores this data to my hard drive. I would like to use sqlite3 to store these results, but I can't get it to work. The issue seems to be about the following line:  conn = sqlite3.connect("mydatabase.db")    If I put this line of code inside each thread, I get an OperationalError telling me that the database file is locked. I guess this means that another thread has mydatabase.db open through a sqlite3 connection and has locked it. If I put this line of code in the main program and pass the connection object (conn) to each thread, I get a ProgrammingError, saying that SQLite objects created in a thread can only be used in that same thread.   Previously I was storing all my results in CSV files, and did not have any of these file-locking issues. Hopefully this will be possible with sqlite. Any ideas? Show that if $a \equiv b \pmod n$, $\gcd(a,n)=\gcd(b,n)$ How do deactivate plymouth boot screen? Lately, booting Ubuntu on my desktop has become seriously slow. We're talking two minutes. It used to take 10-20 seconds. Because of plymouth, I can't see what's going on. I would like to deactivate it, but not really uninstall it. What's the quickest way to do that? I'm using Precise, but I suspect a solution for 11.10 would work just as well. Increase partition size on which Ubuntu is installed? I have Ubuntu installed on a drive. The problem is it is running low on disk space. This is installed on vmware. I expanded the virtual drive and booted into ubuntu. But when I opened gparted(sudo gparted), the move/resize option is unavailable. This is the partition Ubuntu is installed on, but I need to resize it. Any ideas? I am comfortable using command line $AB-BA$ is a nilpotent matrix if it commutes with $A$ I saw this in a  and am putting it here for posterity.  Problem: Let $A$ and $B$ by square matrices and set $C=AB-BA$. If $AC=CA$, prove $C$ is nilpotent. Fast, accurate 2d collision I'm working on a 2d topdown shooter, and now need to go beyond my basic rectangle bounding box collision system.  I have large levels with many different sprites, all of which are different shapes and sizes. The textures for the sprites are all square png files with transparent backgrounds, so I also need a way to only have a collision when the player walks into the coloured part of the texture, and not the transparent background.  I plan to handle collision as follows:   Check if any sprites are in range of the player Do a rect bounding box collision test Do an accurate collision (Where I need help)   I don't mind advanced techniques, as I want to get this right with all my requirements in mind, but I'm not sure how to approach this. What techniques or even libraries to try. I know that I will probably need to create and store some kind of shape that accurately represents each sprite minus the transparent background.  I've read that per pixel is slow, so given my large levels and number of objects I  don't think that would be suitable. I've also looked at Box2d, but haven't been able to find much documentation, or any examples of how to get it up and running with SFML. "Arnold raced out of the door": grammatical or not? "Abusing" bounties for unlimited profit Six days ago I put a +50 bounty on  which wasn't asked by me, but to which I'd previously posted a pretty decent answer. Since then I've earned 130 reputation from upvotes on my answer, netting me +80 reputation and a bronze badge from no work.  It seems possible to slowly generate free reputation by "investing" in your answers like this. I expect I could repeat this perpetually and continue to profit from it.  This strikes me as an abuse of the bounty system. Should anything be done to prevent it?  EDIT: For more concrete questions:   If I put another bounty on this question after this one expired, would that be considered abuse? What if I did it several times? ( the answer was  "yes", but the author was doing so to promote his own project.) What if I didn't do it to the same question, but was constantly promoting questions I'd answered, in order to promote my answers? How to properly restart unity? I keep on experiencing weird bugs. These usually start after a few hours of use. Sometimes the dash starts opening under every open window (becomes only visible on desktop, but I still can search and open anything with the enter key while it's not visible). Also, there are other minor annoyances, such as random places (especially maximized Chrome, tabs area) after navigating between programs with alt+tab can't be clicked with the mouse. Switching back and forth fixes this.  I cannot use  compiz --replace   since after that, all of the app indicator icons are gone (only teamviewer stays). Skype, network, languages, sound (also keyboard sound up/down stops working) and date are gone. Restarting unity-panel-service does not help.  Any thoughts on how to resolve these? Why is the gravitational force always attractive? Why is the gravitational force always attractive? Is there another way to explain this without the curvature of space time?   PS: If the simple answer to this question is that mass makes space-time curve in a concave fashion, I can rephrase the question as why does mass make space-time always curve concavely? Programmatically Create X509 Certificate using OpenSSL