Saturday, March 24, 2012

Part of our usual development as web developers is to change constantly some code and then jump to the browser to refresh it and see our changes. This simple process can be tremendously time consuming.

One of my coworkers mentioned a sublime plugin that automatically reloads your browser from withing sublime with a simple keyboard shortcut. Fascinating, but it's mac-only compatible.

I was captured by the beauty of this tool, so i searched for any plugin with this functionality for vim and Linux. Unfortunately i didn't find any :(

Luckily too, i found this neat tool xdotool. Xdotool lets you simulate keyboard input and mouse activity, move and resize windows, etc. It does this using X11's XTEST extension and other Xlib functions.

Combine these two findings, and you get a Linux-compatible vim plugin. So simply, i ported the mac plugin, and used xdotool to do so. :)

Below the link to the github repo of the plugin, with installation and usage instructions.

Saturday, December 24, 2011

Finally i have migrated my resume to LaTeX. It's been around 2 years that i intended to do so, but every time i try i convince myself to learn LaTeX first then write the resume. Also quick editing in MS Word is a massive temptation vs learning LaTeX. But today i decided to do the move.

The best way to start (which worked for me well), is to look up for some premade latex templates and get the parts that you like from them. Ofcourse that's after reading a quick tutorial on the language itself, but don't get too deep into that.

I collected some good templates, played with them and modified them to my needs, and gradually reached a decent template for myself. It still needs more enhancements and modifications but looks similar to the current resume version produced by MS Word.

The best thing about writing your resume in LaTeX, is the ability to source control it so you don't have to keep several files tracking every tiny changes you introduced to the resume.

Feel free to check my git repo for the resume, and please send me your suggestions, improvements or any comment you have. You are surely welcome :)https://github.com/lordm/resume

I was very interested reading the javascript code behind it. So i grapped the source link of the javascript tag, and opened it a new chrome incognito window. It redirected me to facebook main page to login.
However, there's another way to view the code, simply curl it :). Open your terminal and write