Here’s a nice, easy-to-follow flowchart describing how to make your website “retina-ready”.
http://f.cl.ly/items/012n0O023v2S2N1m3Q1t/How%20to%20Retinafy%20your%20Website.pdf
Here’s a nice, easy-to-follow flowchart describing how to make your website “retina-ready”.
http://f.cl.ly/items/012n0O023v2S2N1m3Q1t/How%20to%20Retinafy%20your%20Website.pdf
Lately, I’ve been in a mobile-app-development phase. I have a couple of ideas for some mobile apps and wanted the easiest way to develop them. Here are the current possibilities:
When I first started using SSH on Windows, I used PuTTY, which seems to be the most popular. However, I noticed it was lacking in so many ways. So, my current Windows SSH client of choice is ZOC. It’s not free, but if you use SSH a lot, then it’s worth it.
I also used to use FileZilla for FTP but now I’ve found WinSCP to be better. It supports synchronized browsing, file transfer presets / masks / filters, local and remote synching of files, and much more. It’s free.
http://www.ualberta.ca/CNS/RESEARCH/LinuxClusters/pka-putty.html
http://www.dailyiteration.com/howto-passwordless-ssh-authentication-with-putty/
http://blog.shvetsov.com/2010/03/making-pageant-automatically-load-keys.html+
Note that in order for SSH authentication to work, you often need to set your .ssh folder and authorized_keys file permissions to specific values. Here are settings that I used that worked:
drwx------ 2 ayahya ayahya 4096 Jul 13 14:23 .ssh -rw-r--r-- 1 ayahya ayahya 875 Jul 13 14:23 authorized_keys
Your private keys should always NOT be readable/writable by anyone but you
-rw------- 1 ayahya ayahya 951 Jul 17 14:00 id_rsa
Here are some useful Javascript libraries. I hope to update this list with time.
Many websites and blogs including this one contains code meant to be displayed to readers. While there are several plugins for prettifying source code for display, the best one I’ve just come across is called Google-Code-Prettify. I will soon be adding it to this blog. Learn more at
When developing a website, you often find yourself doing a lot of the same coding. Here are two nice HTML, CSS, and Javascript framework to get your going quickly.
FOUNDATION
http://foundation.zurb.com/
BOOTSTRAP
http://twitter.github.com/bootstrap/index.html
In addition, don’t forget to check out these HTML5 boilerplates which can come in pretty handy.
Let’s say you have a form and you want to prevent the default action of submitting the form from occurring when the submit button “submit” event is triggered. After the default action is prevented, however, you want the default action to occur. You can do that as follows:
$("form").submit(function(e) { e.preventDefault(); /* do something */ $('form').unbind('submit').submit(); });
Sometimes, people get confused over how to lay out their pages using CSS table-less code. Here are some common page layouts with their corresponding code.