Friday, December 19, 2014

[R] install rgdal, rgeos packages dependency in Centos

For geos:
sudo yum install geos geos-devel

For gdal:
sudo yum install gdal gdal-devel proj-devel proj-nad proj-epsg

Wednesday, December 10, 2014

[Linux] How to mount a server and set up user's directory

How to mount a server
To be continued

How to make a directory under that server
1. log in as a root manager
$su
password:
2. make a directory on that machine.
$cd /home/air/
$mkdir username
3. change the permission of that directory to your name instead of the root manager
$ls -lart
$chown username username
$chown :grads username

Tuesday, December 9, 2014

[Git] setting up

1. Install git on your Linux.
2. Configure git settings with global commands if not
$ git config --global user.name "John Doe" 
$ git config --global user.email "johndoe@example.com"
 
   You can check the configuration if you already did before.
$ git config --list
 user.name=John Doe
 user.email=johndoe@example.com
 color.status=auto
 color.branch=auto
 color.interactive=auto
 color.diff=auto
...

3. 

Monday, December 8, 2014

[Linux] rename extensions of multiple files

For example, change *.html into *.txt.
In Linux,
one can directly type the following in the prompt:
rename .html .txt *.html

or use bash script
for file in *.html; do
    mv "$file" "`basename $file .html`.txt"
done
for files in *.html
do
 mv "$files" "${files%.html}.txt"
done

Tuesday, December 2, 2014

Reminder!

Big picture
Decide what you want to do as early as possible.
Don't get distracted from the track easily. Never give up!
You need some higher goal to motivate yourself not because it's a nice habit but it can effectively stop you dropping off and keep you going. A larger goal and bigger picture can motivate your whole life. Inspire yourself to do something really interesting and meaningful. Don't get me wrong, this is not meant to do something cool to others but useless to yourself.


Attempt and practice
If you want something or know you are not good at something, then go for it! Don’t be afraid of that and don’t hesitate! 
Start quickly!
If you don’t care about something then you don’t want to spend time on that.
Don’t spend time on thinking what you should do or what you should not. We always have a ideal place and you don’t know how to get there. But you need to just start somewhere and explore, that’s what research is about. It is normal that you try and fail, but then you try again. No fear!

Daily implementation
You can not do everything better than anybody. 
You should decide what you really want and then figure out what is the most important part for you, and then put most of the effort on it to make the most productive job.

Don’t be stressed out about the things that are not important.