Link.
Here is how to define a keyboard macro:
`C-x (’ or <f3>– start defining a keyboard macro
`C-x )’ or <f4>– stop defining the keyboard macro
And here is how to execute a keyboard macro you’ve defined:
‘C-x e’ or <f4> – execute the keyboard macro
Here’s how to execute the macro 37 times (you use ‘C-u’ to provide the 37):
‘C-u...
Tuesday, December 30, 2014
Wednesday, December 10, 2014
Re-install DirectX
Link.
Run Regedit by pressing Win key+R to get the Run Box and type Regedit, then press enter.
Locate the following registry key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DirectX (You should then see a value called “Version” with a data value of 4.09.00.0904).
Simply double click on Version and change the number from 4.09.00.0904 to 4.08.00.0904. Then close the registry editor.
Download and run the DirectX installer,...
Wednesday, November 19, 2014
Getting MacPorts to Work Behind a Firewall
Link.
MacPorts is an extremely useful command line utility for managing open-source software (ports) on your Mac. It makes it a breeze to to find, download, compile and install open-source software on your machine, as well as upgrade to the latest versions without wasting a lot of time.
Unfortunately those of us behind corporate firewalls are usually prevented from using the tool due to network security restrictions of the...
Tuesday, October 28, 2014
pdftk in Mac OS X with tips
Download pdftk for Mac.
tips:
1. Split multi-page PDFs into single page PDFs
$ pdftk my_multi_page.pdf burst
$ pdftk my_multi_page.pdf burst output my_directory/page_%02d.pdf
2. Pull some pages out of a PDF but keep the rest
$ pdftk my.pdf cat 1-5 13-21 24-end output my_edited.pdf
3. Concatenate (that’s join!) multiple pdfs into one big pdf
$ pdftk part0.pdf part1.pdf cat output the_whole_book.pdf
4. Get all of the images...
Wednesday, October 22, 2014
Copy file or folder path to the clipboard in Mac OS X
Link.
Launch Automator
Double-click the Service icon
Toward the top of the right column, you’ll see this line of text: “Service receives selected _____ in _____”. Choose “Files or Folders” from the first menu and “Finder” from the second.
Click on Utilities in the Actions library on the left side. Double-click “Copy to Clipboard” in the middle column.
Go to File > Save in the menu bar and name your service Copy File Path.
Launch...
Tuesday, October 14, 2014
Terminal command to check used memory in OS X
top -l 1 | head -n 10 | grep PhysM...
Tuesday, September 23, 2014
How to disable Adobe Reader in Safari?
Link.
Go to the "Help" menu in Safari and select "Installed Plug-ins". This will open a new tab displaying information about all of the currently installed plug-ins. Find the entry for Adobe Acrobat. Below it will be a line that reads something like:
Adobe® Acrobat® Plug-in for Web Browsers — from file “AdobePDFViewer.plugin”.
Note the name of the file from that line.
On your hard drive you will find a Library folder....
Monday, September 15, 2014
Fix keyboard stop working within MATLAB in linux
Disable the iBus input meth...
Friday, August 29, 2014
Split and merge pdf’s with pdftk in linux
Link.
Pdf Tolkit (pdftk) is a tool to split and merge the pdf’s.
First you need to install the pdftk with following command.
$ sudo apt-get install pdftk
An example to merge pdf’s
$ pdftk input1.pdf input2.pdf cat output merge-output.pdf
Above example is to merge input1.pdf and input2.pdf and create new output file with name merge-output.pdf
An example to split pdf(split from page 10 to 20)
$ pdftk A=input1.pdf cat A10-20...
Monday, August 18, 2014
Converting mp4 to mp3 in Linux
Link.
To convert Upd_Sanity.mp4 to Upd_Sanity.mp3
$ sudo apt-get install ffmpeg && sudo apt-get install libavcodec-extra-53
$ ffmpeg -i Upd_Sanity.mp4 -vn -acodec libmp3lame -ac 2 -ab 160k -ar 48000 Upd_Sanity.mp3
OR (as ffmpeg is deprecated)
$ avconv -i Upd_Sanity.mp4 -vn -acodec libmp3lame -ac 2 -ab 160k -ar 48000 Upd_Sanity.mp3
Description
-i input file name
-vn ...
Thursday, July 31, 2014
Install matplotlib for python3
you have to install python3-pip bu using apt-get (e.g. in debian)
then run:
pip install matplotlib
If got the error
(Currently using distribute 0.6.24dev-r0 (/usr/lib/python3.2/dist-packages))
Complete output from command python setup.py egg_info:
The required version of distribute (>=0.6.28) is not available,
and can't be installed while this script is running. Please
install a more recent version first, using
'easy_install...
pip install h5py error fix
If you got the error like following when you install h5py:
...
...
h5py/api_compat.h:27:18: fatal error: hdf5.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1
...
...
To fix it, just run the following command.
sudo apt-get install libhdf5-d...
Emacs as a Python IDE
Link.
Update 04/08/2014: It seems like this post has been helpful for a lot of people, which really makes me happy! I just wanted to let new readers coming by know that the configuration I present in this post is out-of-date. However, I have my Emacs configuration on GitHub, and do try to keep it up-to-date. If you have...
Subscribe to:
Posts (Atom)