In Node.js, how do I turn a string to a json?
Parse JSON in JavaScript?
How do I detect running processes using a library package? This command is doing the rounds for detecting currently running processes using glibc:  lsof | grep libc | awk '{print $2}' | sort | uniq   I find it intensely annoying, since /libc/ matches not only libc, but on my system:  /lib/x86_64-linux-gnu/libcap.so.2.24 /lib/x86_64-linux-gnu/libcgmanager.so.0.0.0 /lib/x86_64-linux-gnu/libcom_err.so.2.1 /lib/x86_64-linux-gnu/libcrypt-2.19.so /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 /usr/lib/libcamel-1.2.so.45.0.0 /usr/lib/unity-settings-daemon-1.0/libcolor.so /usr/lib/unity-settings-daemon-1.0/libcursor.so /usr/lib/x86_64-linux-gnu/colord-plugins/libcd_plugin_camera.so /usr/lib/x86_64-linux-gnu/colord-plugins/libcd_plugin_scanner.so /usr/lib/x86_64-linux-gnu/gtk-3.0/modules/libcanberra-gtk3-module.so /usr/lib/x86_64-linux-gnu/libcairo-gobject.so.2.11301.0 /usr/lib/x86_64-linux-gnu/libcairo.so.2.11301.0 /usr/lib/x86_64-linux-gnu/libcanberra-0.30/libcanberra-pulse.so /usr/lib/x86_64-linux-gnu/libcanberra-gtk3.so.0.1.9 /usr/lib/x86_64-linux-gnu/libcanberra.so.0.2.5 /usr/lib/x86_64-linux-gnu/libcap-ng.so.0.0.0 /usr/lib/x86_64-linux-gnu/libck-connector.so.0.0.0 /usr/lib/x86_64-linux-gnu/libcolordprivate.so.1.0.23 /usr/lib/x86_64-linux-gnu/libcolord.so.1.0.23 /usr/lib/x86_64-linux-gnu/libcroco-0.6.so.3.0.1 /usr/lib/x86_64-linux-gnu/libcupsmime.so.1 /usr/lib/x86_64-linux-gnu/libcups.so.2 /usr/lib/x86_64-linux-gnu/samba/libcliauth.so.0 /usr/lib/x86_64-linux-gnu/samba/libcli_cldap.so.0 /usr/lib/x86_64-linux-gnu/samba/libcli-ldap-common.so.0 /usr/lib/x86_64-linux-gnu/samba/libcli-nbt.so.0 /usr/lib/x86_64-linux-gnu/samba/libcli_smb_common.so.0 /usr/lib/x86_64-linux-gnu/samba/libcli_spoolss.so.0 /usr/lib/x86_64-linux-gnu/samba/liblibcli_lsa3.so.0 /usr/lib/x86_64-linux-gnu/samba/liblibcli_netlogon3.so.0   I understand that libc is used by pretty much everything, but I'd like to refine this command. Consider its applications for other libraries. How can I do this?  The flaw in this approach, in my opinion, is that the package providing libc may include a whole host of other shared library files (all of which may or may not be covered under the umbrella term that is the library name, like glibc, or libboost-python). Using a word boundary or - to mark the end of libc doesn't really fix this. This may not be a flaw, perhaps, as Braiam points out, since many or all of these .so files may link to a core file in which the flaw resides, as is the case for libc6 on Debian.   If a specific OS/distro is needed, assume Debian Linux.  Also annoying is that this command could be condensed to lsof | awk '/libc/{print $2}' | sort -u. I am trying to make a computer monitor. This means I have to have an image texture for the screen. My image texture is currently connected to an Emission BSDF shader. Unfortunately, when the emission is bright enough to emit light, the image is white-washed. I tried adding a Brightness/contrast node to the image before pushing it into the Emission BSDF, but it seems to directly counter the Emission's strength.  The desired light level   The desired image brightness Why is it better to use "#!/usr/bin/env NAME" instead of "#!/path/to/NAME" as my shebang? I notice that some scripts which I have acquired from others have the shebang #!/path/to/NAME while others (using the same tool, NAME) have the shebang #!/usr/bin/env NAME.  Both seem to work properly.  In tutorials (on Python, for example), there seems to be a suggestion that the latter shebang is better.  But, I don't quite understand why this is so.  I realize that, in order to use the latter shebang, NAME must be in the PATH whereas the first shebang does not have this restriction.  Also, it appears (to me) that the first would be the better shebang, since it specifies precisely where NAME is located.  So, in this case, if there are multiple versions of NAME (e.g., /usr/bin/NAME, /usr/local/bin/NAME), the first case specifies which to use.  My question is why is the first shebang preferred to the second one? I saw many saying that the latest version of Ubuntu 16.04 includes an opensource driver for ATI. I have an HP laptop with AMD 6770m + Intel HD 3000 hybrid graphics and wants to install Kubuntu on it. I created a bootable USB drive of Kubuntu 16.04 and booted from it just to check everything works perfectly (I don't want to install it separately and ruin bootloader as of now). But my laptop is getting too hot and the battery is not lasting for more than 30 mins. Also the brightness control is not working at all and it stays high always.   How can I get hybrid graphics on Kubuntu/Ubuntu working well? I am ready to turn off the ATI card since I am not going to play any games on Linux. I just need the Intel graphics + Cool Laptop + Good battery Life + Brightness control.  My BIOS setting for switchable graphics mode is FIXED. Do I need to change it to DYNAMIC?  UPDATE  I wasn't able to make things work in 16.04 so installed 14.04 LTS along with the AMD Catalyst driver. Now everything works perfectly fine. Below are the steps.   Clean install Ubuntu 14.04 LTS Install the fglrx catalyst drivers using “Additional Drivers” window. This will enable us to switch graphics Restart Ubuntu FAN Noise Fix - Refer this  and install i8kutils Brightness Control - Check this     is the official documentation for AMD/Intel hybrid graphics What does the “@@…@@” meta line with at signs in svn diff or git diff mean? Comments must be at least 15 characters long, which is supposed to make comments like &quot;...&quot; impossible to submit. This works fine, however, there is a way around this, by using comment replies, even &quot;fake&quot; ones e.g. &quot;@somelongname ...&quot;. Can the system strip the comment reply part (e.g. &quot;@somelongname&quot;) before performing the minimum characters check? How to convert milliseconds into human readable form? Make gnome-terminal show the command running as title I want the name of command running , e.g unzip to be visible through the title bar of gnome-terminal , but it seems to be impossible , if the application running doesn't set a title explicitly , even though I choose 'Replace initial title' option in the profile dialog. $(a,b) \mathbin\# (c,d)=(a+c,b+d)$ and $(a,b) \mathbin\&(c,d)=(ac-bd(r^2+s^2), ad+bc+2rbd)$. Multiplicative inverse? Let $r\in \mathbb{R}$ and let $0\neq s \in \mathbb{R}$. Define operations $\#$ and $\&amp;$ on $\mathbb{R}$ x $\mathbb{R}$ by $(a,b) \mathbin\#(c,d)=(a+c,b+d)$ and $(a,b) \mathbin\&amp;(c,d)=(ac-bd(r^2+s^2), ad+bc+2rbd)$ as addition and multiplication, respectively. Do these operations form a field?  I have shown that every axiom of the field is satisfied except for the "existence of multiplicative inverses" axiom. This is where I need help. We either need to show that this axiom fails and so we don't have a field or that the axiom $aa^{-1}=1$ is satisfied for every $a\neq 0 \in \mathbb{R}$  The multiplicative identity in this problem is $(1,0)$.  Any solutions or hints are greatly appreciated. What is the command line way of sending files to the recycle bin? Is there a command line program that can send files to the recycle bin? This is on XP and Vista. Secretary problem - why is the optimal solution optimal? I have read about this problem:    But I want to see how it is proven that the "optimal" solution is indeed optimal. I understand how to prove that if the optimal solution is of the form "wait for $t$ candidates and then choose the next best one" then $t=n/e$ is optimal; but why is the best strategy of that form in the first place?  A complete proof is not required - a reference to a good text discussing this is good as well. Split a commit into smaller commits with Git? Where can I ask questions about the computer problems I have been facing?  Current problems I am facing with my computers:   Windows 7 errors random "Blue screens of Death" computer randomly freezing up Xfire challenges I am curious how people picture geometrically how the covariant derivative acts with regards to vector fields. I understand that it is merely an object which has been defined for some use and obeys certain conditions but how would you picture such a thing geometrically? In other words, when someone asks you what the covariant derivative is, how do you explain it in absence of a formal definition? What is code coverage and how do YOU measure it?  I was asked this question regarding our automating testing code coverage. It seems to be that, outside of automated tools, it is more art than science. Are there any real-world examples of how to use code coverage? On this  there are more than 50 links to Stack Overflow questions. However, the last 6 links aren't converted to titles (http://facebook.stackoverflow.com/questions/6530420/control-the-image-that-facebook-shows-when-i-like-a-url should be converted to ).   However:  all http://facebook.stackoverflow.com/... into http://stackoverflow.com/... fixes this, both in the preview and the final result. Also, the preview won't show any title for http://facebook.stackoverflow.com/... links.  My question is, what limitations does this converting have? How are these question titles retreived? Via API? Through database?  I'm not sure about title, feel free to edit that Idiom for a speech with redundant information If I've got a file (or files) selected in Windows Explorer, the only way I've found to "unselect" them is click with the mouse on some empty space.  I thought Esc would do this, but it doesn't. Also changing focus with Tab or Shift + Tab doesn't work; the file(s) are still selected even if focus goes to the address bar for instance.  Does anyone know of a keyboard shortcut to do this? Participles to modify the subject of the main clause "Essos is an immense landmass located to the east of Westeros,   extending into the far east of the known world." (Here, "extending"   describes the Essos or does it describes the landmass? )   Having seen this sentence above, I question came to my mind.   Can I use participles to modify the subject of the main clause when there is no connection between main clause and participle clause. For example:      1- "He is a bookworm, living in Canada. (He is a bookworm + He lives in   Canada, there is no connection between being bookworm and living in   Canada)      2- He, living in Canada, is a book worm. (I suppose, this placement would be more correct) $$\tan(\theta_1+\theta_2+\cdots+\theta_n)=\frac{S_1-S_3+S_5+\cdots}{1-S_2+S_4+\cdots}$$  where  $S_i$ denotes the sum of product of tangent of angles taken $i$ at a time.     For example,$$\tan(\theta_1+\theta_2)=\frac{S_1}{1-S_2}=\frac{\tan\theta_1+\tan\theta_2} {1-\tan\theta_1\tan\theta_2}$$   (This formula is given  in my textbook with no derivation or background)  How to derive this?