Categories
Uncategorized

How Emacs changed my life

I became aware of Emacs in my college days but kept using ViM, I was naive and thought no one uses Vim except me. I was proud because I was using something a hacker uses.

I actively started using Emacs in the first year of my job. I was working for Curl project in Persistent Systems. At that time I had a choice between Curl IDE and Emacs. I am being inspired by all the movies immediately decided to use Emacs. Slowly and gradually I learned a thing or two about in Emacs. I learned philosophy and learned to customise my own editor.

Emacs has a good learning curve. At first, you will struggle just to close the editor, save files. The absence of tabs will confuse you. But in the long run, you will have a deep understanding of the language/platform you are working on. I, like most people, started setting up emacs the way I want it. I experimented with various Modes. Since then I have worked in many languages like C++, Ruby, Python, C#, Javascript/Node; But my editor stayed the same.

I have never felt limited with emacs, Partly cause I am good at using Emacs and partly I don’t like IDEs. I always find interesting people using emacs, a great example will be Yukihiro Matz, Inventer of Ruby. He shared a SlideShare on Emacs, go take a look.

Categories
Uncategorized

Batch Convert Image to PDF

One of my friend was looking for a way of batch converting images in to pdfs. Well, This is how you can do it. That’s a simple algorithm how to convert jpg to pdf. I use mac, so tutorial is for Mac/Linux.

Mac: Install Brew From here

Linux: Install imagemagick and poppler-utils

Use this one line script to convert all the image in current folder

Categories
Uncategorized

Tmux – Gnu Screen alternative

I am an ancient user of Gnu Screen. I am the one who will suggest new users use these better tools for servers. Gnu Screen is an excellent tool, but It is tough to configure and learn.

Recently I found a replacement. The Tmux!
Tmux is very easy to use. The best part is the shortcuts. 🙂

To install it in mac do

$ brew install tmux

on ubuntu

$ sudo apt-get install tmux

You can put your setting in ~/.tmux.conf

# set -g default-terminal "xterm-color" 
set -g terminal-overrides 'xterm*:[email protected]:[email protected]'

This should be enough to get you started. Google for Tmux cheat sheet to know popular shortcuts. Here is one of them. http://cheat.errtheblog.com/s/tmux

Categories
Uncategorized

Quiz o Twist

Do you think you can trick the quiz. Really! lets see.

Please give your answers through mail [mail (at) shishirsharma.com].

This round is called as Questions to the Answer. You are given one answer and four option, you have to choose the correct question for which you are given the answer.

1. Answer: Tokyo

Que1: which city has the largest population?
Que2: which trade city was atomic bombed in 1945?
Que3: which city has the largest area?
Que4: which city has the highest air traffic in terms of passengers?

2. Answer: 12

Que1: How many man have walked on the moon till date?
Que2: Which number is considered unlucky in popular culture except in Italy?
Que3: How many miles is the marathon race?
Que4: How many countries played the first Olympic in Athens?

Categories
Uncategorized

Restore Gnome Default Panels

Many times we screw our gnome desktop panels accidentally. I found a very easy solution to revert them.
Just open terminal and type.

gconftool-2 --shutdown
gconftool  --recursive-unset /apps/panel
rm -rf ~/.gconf/apps/panel
pkill gnome-panel

But remember this is not the case when gnome panels get scrambled automatically (Which seems to be a consistent case in Ubutnu 10.04). You can simple refresh you gnome panels by doing.

killall gnome-panel
Categories
Uncategorized

Gimp – The ultimate

I am not new user of gimp, but I am also not a power user of gimp too. Recently I was creating a poster for a office event. I used script-fu -> alpha-to-logo scripts. I have to say that gimp is ultimate. I created a animated blinking neon light GIF of my name.

Gimp is more then enough for any casual user. There is no reason it cant be used as a professional tool.

Categories
Uncategorized

13.33

That the ratio you get when you divide 1000 by 75. What that ? that was the ratio of CRPF and Naxalite rebellion.

I just realized that a Naxalite only killed 7.5% of one CRPF personnel.
View 1
View 2

Categories
Uncategorized

Rubik's cube

I can solve a Rubik’s cube. That too in less then 10 minutes.

Unsolved Rubik's Cube
Unsolved Rubik's Cube

Update: Wednesday, March 10 2010

So I have a request to Update it, Guys now I can do it in around 3 minutes.

Categories
Uncategorized

I love you xkcd

This does not make any sense I want to say that I love xkcd really loud.

XKCD - pointers
Pointers

Categories
Uncategorized

GTalk Bookmark button

On of my computer is old RHEL 5.1 on which I am not allowed to install pidgin. So I was trying to figure out how to create a bookmark button for GTalk gadget. Here is the solution. 🙂

javascript:(function(){open('http://talkgadget.google.com/talkgadget/popout','_blank','width=300,height=445,toolbar=0,status=0,menubar=0,location=0,resizable=1,scrollbars=0')})();javascript:urchinTracker('/talk/outgoing/gadget')

Steps (Firefox):

  • Right click on the Bookmark tool bar.
  • Click on new Bookmark.
  • Copy past he code given above