prlz77

Notes

How to kill bash script children when crtl+c

Using a script to run multiple tasks in background can be very handy but it can also be anoying when we press crtl+c to interrupt and the background processes keep working. There are many approaches to solve this but I have found the cleanest one is to simply trap the...

Read More

Can not set ViewportOut in nvidia-settings

After plugging the second monitor, I could not find the correct resolution in nvidia-settings and it was impossible to do it manually. After having to solve this problem for the second time, I post it here so to remember. Look at nvidia-settings for the name of the monitors (In my...

Read More

Mac Book Pro randomly goes to sleep fix

Magnets can make your Mac to sleep. This was driving me mad since I always put it on a sleeve that closes with a magnet. Here is the solution page: Apple support

Read More

How I installed Caffe in OS X Yosemite

Update Last time I had to compile it was much easier by using Cmake. It was as easy as creating a build folder and executing (after installing the dependencies): cmake -D CMAKE_BUILD_TYPE=RELEASE -D WITH_CUDA=OFF -D CMAKE_INSTALL_PREFIX=$PWD .. Then compiling with: make -j Of course keep track of their webpage to...

Read More