Archive for October, 2009

Directory Listing — List all files in a directory

Here’s a small snip­pet to iter­ate through an array and get all files in it as an array func­tion list­Dir ($dir) { $files = array(); $han­dle = opendir($dir); while ($file = readdir($handler)) { if ($file != ‘.’ && $file != ‘..’) $files[] = $file; } closedir($handle); return $files; }

Above the Fold — The Myth that Hurts

brisair

Most of web devel­op­ers were ‘raised’ know­ing that there is a bar­rier that users usu­ally don’t pass, espe­cially on front-pages. This bar­rier is called The Fold or The Crease and is it the ini­tial screen that the users see with­out scrolling the page. I will try to show you that this myth is noth­ing but a […]

Hosted Repositories — Version Control System

Asembla

If you ever used a source con­trol soft­ware such as Sub­Ver­sion or CVS you know how use­ful they are. They’re not only use­ful for teams, but for indi­vid­ual devel­op­ers who want to keep track of their code. Peo­ple usu­ally think of VCS as bloated and not really suited for free­lancers or really small teams. On top […]

How to Reconfigure X Server Back to Factory

I’ve found this lit­tle com­mand for Ubuntu that will recon­fig­ure xorg.conf back to fac­tory set­tings. sudo dpkg-reconfigure xserver-xorg This is pretty handy when X just fails after some tin­ker­ing or updat­ing drivers.