Posted by: gabrielwu84 | April 10, 2015

Fix a scanned image, deskew books.

I have been trying to find a solution to background noise from scanned notes as well as straighten out scanned pdf documents that I find online. Here are a few answers:

Remove background noise in photoshop:

Straighten pdf with Acrobat XI:

Trying to configure the PC to run simulations continuously, and being able to control it remotely.

This page on upstart is useful:

Posted by: gabrielwu84 | February 28, 2015

Installing Mumax3 on Ubuntu 14.04

In summary, the steps for installing Mumax3 are as follows:

I. Install CUDA6.5 from the Nvidia website:
1. Download the .deb file
2. Run the following code to install CUDA
sudo dpkg -i cuda-repo-__.deb
sudo apt-get update
sudo apt-get install cuda

3. Permanently export the LD_LIBRARY_PATH
i. run
sudo gedit /etc/
ii. add the following line into the file and save
iii. run
sudo ldconfig

II. Download the Mumax3 program from the website, extract it, and run the correct file (e.g mumax3-cuda6.5).

Bonus: Place executable into a $PATH directory and rename it to mumax3 to use it anywhere on the system.


Read More…

Posted by: gabrielwu84 | February 25, 2015

Nvidia Palit GeForce GTX 760 JetStream 2GB

Nvidia Palit GeForce GTX 760 JetStream BoxNvidia Palit GeForce GTX 760 JetStream Card

It’s been a while since I tinkered with my home PC.

Just got myself the Nvidia graphics card off Carousell for $250.

Because I needed to run simulations on mumax3, and the program requires an Nvidia GPU with compute ability 2.0 and above.

Research during the December holidays paid off, and an abstract I submitted to Intermag 2015 got accepted. Hence I have to generate more quality data to add into the presentation, since I started properly setting up the simulation, each simulation run takes more than the time I spend at work, and I never get to complete it. Had considered options like relying on a computer that the lab was going to buy, but need to take action quick, hence the decisive purchase.

My first impression upon unboxing the GPU was that it was dimensionally huge. Thankfully, I had it still fit into my rather small casing.

After fixing the GPU onto the motherboard, the monitors would not work when connected to the original ports. This means that only the graphics ports from the GPU now worked, and the APU originally on the chip does not seem to have much purpose anymore.

Turning the computer on, there was a noticeable improvement to the speed of opening the menu on ubuntu, responsiveness of the mouse, and changing tabs on chrome. I could also play Don’t starve on steam, though I have not successfully played Dota2, which I could only barely do without the GPU.

1. work out the programs to install for the Nvidia GPU, and why there might be a need to install those programs.
2. install mumax3, and try to run simulations off it.

1. Add RAM. I currently have 4GB on the computer. It might be beneficial to get more. Checked the price out at Jurong Point today, and 8GB was quoted as $163, which was absurd. Will see the necessity of having more RAM, and purchase it in due course.
2. Add SSD. The booting process is still rather slow, and I look forward to turning on and off the computer with close to the convenience of turning on and off my tablet. With current SSD prices, I consider this a luxury I can do without for the moment, but hope to incorporate it sometime in the future. Have been keeping an eye on the SSDOptimization and Bcache programs on Ubuntu, but for the moment it does not seem so user friendly to add an SSD card, install a program, and have the system automatically use the SSD to speed up the computer. Hope that this improvements will come at the same time when I make this upgrade.

Posted by: gabrielwu84 | August 5, 2014

Video Driver on Ubuntu

I learnt that it is best to use the open source video driver for the Radeon 7660D graphics card attached to the Trinity A10 APU.

This can be done like this:

Now trying to get XBMC to work on dual monitor.

Posted by: gabrielwu84 | April 7, 2014

Public Transit App

I am thinking of making an app which automates the querying of bus arrival information, as I find myself doing the same query very frequently everyday. 

Found a google api called GTFS. Will look into how to tap upon that source of information.

Posted by: gabrielwu84 | March 14, 2014

Mail Merge

Had to perform a mail merge to send custom message to many recipients.

This website was helpful:

However, for some reason, I had to click “Allow” on a dialog box for every email sent. Apparently, running microsoft word and outlook as administrator would solve this problem.

Will try this in time.

Posted by: gabrielwu84 | March 1, 2014

Some links


phpMyAdmin on nginx

PHP on nginx

Upstart to run Python code

Using nginx as reverse proxy

Install nginx

Taking photo with getusermedia

Send photo to server

Turn base64 url back to image in python


Choosing between multiple camaras

Nodejs and Forever

Posted by: gabrielwu84 | February 20, 2014

Playing Videos in pygame

Writing a psychology program now. It involves playing of videos. Ran into some trouble especially across OS. Now exploring more robust method of playing videos. 

Found But one drawback is that it only plays mpeg1 video files.

Have to convert existing mov files to mpeg1. Utilities that I can install on ubuntu are ffmpeg and mencoder. ffmpeg gave me a result that succeeded, at least on my computer. 

This command did the trick:

ffmpeg -i <infile> -vcodec mpeg1video -acodec libmp3lame -intra 


For future reference. 

Will also try to tidy up this post, giving a proper preface to the problem.

Posted by: gabrielwu84 | February 16, 2014

Getting pull up bar

Have thought of getting a pull up bar at home to facilitate fitness. I’ve gone from 32″ to 35″ of waistline since I started working.

Looking at a “Power Tower”, this one in particular:

Found one sold in Singapore:

Also might have to get a wall mounted fan as I intend to put this where the fan currently stands.

Older Posts »



Get every new post delivered to your Inbox.