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:

http://blogs.adobe.com/acrolaw/2013/06/straighten-and-deskew-pdf-pages-in-acrobat-xi/

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

This page on upstart is useful:
https://www.digitalocean.com/community/tutorials/the-upstart-event-system-what-it-is-and-how-to-use-it

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/ld.so.conf.d/cuda6.5.conf
ii. add the following line into the file and save
/usr/local/cuda-6.5/lib64
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.

 

LONG VERSION OF STORY:
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.

WHY:
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.

OUTCOME:
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.

NEXT:
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.

FURTHER UPGRADES:
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:
http://askubuntu.com/questions/445758/uninstalling-previous-install-of-the-fglrx-driver

Now trying to get XBMC to work on dual monitor.
http://grandadevans.com/run-xbmc-fullscreen-in-second-monitor-in-ubuntu/

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. 

https://developers.google.com/transit/gtfs/

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:
http://www.ahnrit.vt.edu/TechSupport/tipsheets/docs/aghelp_mail_merge/email_mail_merge.html

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

LEMP
https://www.digitalocean.com/community/articles/how-to-install-linux-nginx-mysql-php-lemp-stack-on-ubuntu-12-04

phpMyAdmin on nginx
http://joneslee85.wordpress.com/2010/02/28/howto-nginx-php5-mysql-phpmyadmin-ubuntu-shortest-setup/

PHP on nginx
http://askubuntu.com/questions/134666/what-is-the-easiest-way-to-enable-php-on-nginx

Upstart to run Python code
http://stackoverflow.com/questions/2641136/need-help-running-python-app-as-service-in-ubuntu-with-upstart/2646616#2646616

Using nginx as reverse proxy
http://www.cyberciti.biz/tips/using-nginx-as-reverse-proxy.html

Install nginx
http://www.unixmen.com/install-lemp-server-nginx-mysql-mariadb-php-ubuntu-13-10-server/

Taking photo with getusermedia
https://developer.mozilla.org/en-US/docs/WebRTC/Taking_webcam_photos

Send photo to server
http://www.smartjava.org/content/face-detection-using-html5-javascript-webrtc-websockets-jetty-and-javacvopencv

Turn base64 url back to image in python
http://stackoverflow.com/questions/19395649/python-pil-create-and-save-image-from-data-uri

WebRTC
http://www.html5rocks.com/en/tutorials/webrtc/basics/

Choosing between multiple camaras
http://stackoverflow.com/questions/18625007/enable-rear-camera-with-html5

Nodejs and Forever
https://www.exratione.com/2013/02/nodejs-and-forever-as-a-service-simple-upstart-and-init-scripts-for-ubuntu/

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 pygame.movie. 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 
<outfile.mpg>

Ref: http://comments.gmane.org/gmane.comp.python.pygame/22466

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:
http://www.gymandfitness.com.au/force-usa-power-tower-f-pt.html?utm_source=getprice&utm_medium=cpc&CA_6C15C=1291389965#.UwBP9PmSxDA

Found one sold in Singapore:
http://homegym.sg/power-tower-chin-up-dips-knee-raise.html

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

Older Posts »

Categories

Follow

Get every new post delivered to your Inbox.