Archive for the 'webdev' Category

Choosing the right (open-source) tools
June 22, 2008

From the announcement of the open source reddit:
There are only five of us who work on reddit; we couldn’t have made this site if it weren’t for a great community of developers. In no particular order, here’s a quick list of the open source products that reddit is built and runs upon: Debian, lighttpd, HAProxy, [...]

Do we need more facebok applications?
June 10, 2008

My friend has 73 friends and 152 Facebook applications.
IMHO, the layout is lack of usability and functionality.
Let alone the fact each application require other users to install them in to their accounts in order to view standard web content (images, flash, videos, etc.)
I am sure Facebook’s dudes need to rethink the whole concept and come [...]

def grab_contacts(ask_for_password = 0)
June 7, 2008

stefan fountain -> coding horror -> hacker news

Jeff - here are the links for you:
Google Contacts API: http://code.google.com/apis/contacts/
Yahoo! Contact API: http://developer.yahoo.com/addressbook/
Windows Live Contact API: http://msdn.microsoft.com/en-us/library/bb463989.aspx
I’m glad these malpractices are getting more attention, they deserve to get the bad wrap on their wrist for these kind of infringements of respecting users’ data.
Stefan Fountain on June [...]

Too Bad To Be True (or Dear Ray Ozzie: IE8 can’t handle Windows Live)
March 11, 2008

Yesterday, while walking from launch, my freind Amnon David (the creator of jNext) told me that IE8 doesn’t work on hotmail.com.
Since IE8 release gained lots of credit by JavaScript Hackers (John Resig and many more), therefore, I couldn’t believe it until I saw it in my own eyes.
Plain and simple, the site is broken. Icons, [...]

New Version for JS HotKeys
January 6, 2008

I finally was able to fix a few minor bugs and compile a new version of my js-hotkeys module. Get your copy now (tar.gz || zip)
Js-Hotkeys is a jQuery plugin that lets you easily add and remove handlers for keyboard events anywhere in your code supporting almost any key combination.
Read more at:
http://code.google.com/p/js-hotkeys/wiki/about
Live demo at:
http://jshotkeys.googlepages.com/test-static.html

Getting things right vs. Getting things done
January 2, 2008

Most of today’s web developer will tell you that
the following:
<h2 id=”foo”>Click Here</h2>
<script>
$(’foo’).click = function(){alert(”Hello”)};
</script>
is better than:
<h2 id=”foo” onclick=”alert(’Hello’);”>Click Here</h2>
and the following:
<style>
body{
background-color:#ffffff;
color:#000000;
margin-top:3}
a{color:#0000cc}
a:visited{color:#551a8b}
</style>
<body>….</body>

<script>
$(document).ready(function(){
sf();
if(document.images){
new Image().src=’/images/nav_logo3.png’;
[...]

Googlereader, Heaven’t you heard of firebug?
December 10, 2007

… and I thought this method of raising errors belongs to the far past of web development…

All JavaScript Passengers, Attention Please
September 28, 2007

This is an example why should one follow the rule of using ‘===’ and avoid ‘==’
var a = [];
[!!a, a == false] == [true, true]
You get !!a == true and at the same time a == false, now you are confused, ain’t you?
Therefore never ever you should be using in your code ‘==’ operator.

[!!a, a [...]

HotKeys
September 16, 2007

jQuery Keyboard Shortcut Hooker Plugin is now called Hotkeys. Make sense, right? The script was tested on Linux, Windows, and MacOS, IE, Safari and Firefox.
The final result is relatively small file (121 lines of code). But do not let this fact misleading you by underestimating its value.
> See Live Demo  
Read more at Google Code [...]

jQuery Plugin for Keyboard Hooking.
August 29, 2007

I rewrote (granted permissions by author) the great JavaScript module by Binny V A shortcut.js as a jQuery plug-in.
Code Sample and download a pre alpha version are available at Google Code
Cheers,

Uncache IE Ajax Cache (XHR GET)
August 27, 2007

In IE (v: 7.0.5730.11) all GET request are cached. Go figure why.
In order to solve this issue, you can either switch to POST, or add a time stamp to any url you send.
function uncache (url){
return url + “&uncache=” + new Date().getTime();
}