I was looking for a tool which can convert pdf file to eps file. pdftops comes to my attention.
usage:
pdftops -eps name.pdf
which can convert the name.pdf file to name.eps.
Convert pdf file to eps
Should you really have to wait longer time to change your pass word on Linux?
When you try to change the pass word for a user on Linux, you may encounter "You must wait longer to change your password". Do you really need to wait longer time to change the pass word? No! You can use chage command to solves this kind of issue :
The following command will list policies for your pass word.
$ chage -l username
Last password change : Feb 08, 2012
Password expires : Apr 08, 2012
Password inactive : Apr 08, 2012
Account expires : never
Minimum number of days between password change : 1
Maximum number of days between password change : 60
Number of days of warning before password expires : 14
In this case, your password policy specifies that the minimum number of days between password changes is 1 day. You can change this attribute to 0 to make enable pass word change right now. To change the policy for this user, use :
$ chage username
Changing the aging information for username
Enter the new value, or press ENTER for the default
Minimum Password Age [1]: 0
Maximum Password Age [60]:
Last Password Change (YYYY-MM-DD) [2012-02-08]:
Password Expiration Warning [14]:
Password Inactive [0]:
Account Expiration Date (YYYY-MM-DD) [1969-12-31]:
-M option: which can be used to specify the maximum number of days the password is valid. combine 99999, you could disable password expiration.
$ chage -M 99999 user_name
Create a new Git Remote Repository
#On local machine
if you want to ignore some files or folders from putting them in the repository, you could create a .gitignore file before running git add .
$ cd foo_project
$ git init
$ git add *
$ git commit -m "initial msg" (Do not forget to do this step, or you will enconter "Git error: src refspec master does not match any")
Now, create the repository on your Git server. All of my git repositories are located at /usr/local/git_root/ of the remote server
#On remote machine
$ mkdir git_root/
$ cd /usr/local/git_root/
Create your new project git repo as a bare Git repository
$ mkdir project_name.git
$ cd project_name.git/
$ git --bare init
Make sure permissions are set properly. These are common options I use for my shared repositories
$ git config core.sharedrepository 1
$ git config receive.denyNonFastforwards true
$ find objects -type d -exec chmod 02770 {} \;
#The core.sharedrepository flag tells git to keep everything group readable and writable.
#The receive.denyNonFastforwards flag makes sure that merges can't happen when you push to the repo.
You have to do the merges on your local machine, and then push the result.
Now, go back to your local repository, and add the newly created remote repository so it tracks from the remote repository (origin).
#On local machine, in your git project
adding a remote by:
git remote add origin ssh://ip_address_of_remote_server/usr/local/git_root/project_name.git
git remote add origin user_name@ip_address:/usr/local/git_root/EMAN2.git (I used this command in my case)
git push -u origin master
Datatable static image not found on the server
When you use ```datatables.min.css``` and ```datatables.min.js``` locally, instead of datatables CDN, you may have encountered that ```sort...
-
Step 1. Install Oracle XE 11g 1. Download Oracle XE (oracle-xe-11.2.0-1.0.x86_64.rpm.zip) from Oracle official website. You need an accoun...
-
I used the following method to hide the extra long column contents when loading the page. The contents will then display when mouse hover th...
-
When you use ```datatables.min.css``` and ```datatables.min.js``` locally, instead of datatables CDN, you may have encountered that ```sort...