Saturday, January 19, 2013

Sometimes words are not enough

∀x∃!y∃z ◻ (φ(x,y) ^ φ(y,x)) ^ ¬(φ(x,z) v φ(y,z)) ⇔ (GEm(x) ^ GEm(y))

Saturday, March 24, 2012

Vim Plugin: Browser Reload Linux

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 :(
Good thing is i found a vim plugin for mac.
Luckily too, i found this neat tool xdotoolXdotool 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.
Hope this plugin saves your time, and waiting for your feedback :)

Saturday, December 24, 2011

Migrating my resume to LaTeX

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 :)

Sunday, August 7, 2011

Project Mayhem

The truth leads to freedom.
Inner peace is built by discovering your creator, and your purpose.
Knowledge is power.

Tuesday, November 23, 2010

The script behind "Revolving Images" spam on facebook and how to stop it

This spam started a few days ago. Luckily i didn't catch it (i take good care of these things).
A few minutes ago, one my friends shared this post on how to cure and get rid of the spam.

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
curl > fbscript.js
and enjoy reading the code :D