Latest Entries

One of my Favorite Color Pickers

ColorPix is a useful little color picker that grabs the pixel under your mouse and transforms it into a number of different color formats.

You can use the built-in magnifier to zoom in on your screen, click on a color value to copy it directly to the clipboard, and even keep ColorPix on top of all other apps and out of the way.

Best of all, there’s nothing to install – just download the tiny app and off you go. So grab it now, it’s FREE!

Download

PHP Range

Ever need an array of the alphabet or an array of sequential numbers.

The range() function in PHP does just that.

<?php
foreach(range('a', 'z') as $letter) {
echo $letter;
}
?>

This function will also work with numbers. This will print all the numbers from 1 to 12.

<?php
foreach(range(0, 12) as $number) {
echo $number;
}
?>

Also you can add a step parameter to the third argument.

<?php
foreach(range(0, 50, 10) as $number) {
echo $number;
}
?>

0, 10, 20, 30, 40, 50

I was wondering of there was an smarter way to print the whole alphabet in PHP than just creating an array containing all off the letters by my self.

I present to you, the range() function.

<?php
foreach(range('a', 'z') as $letter) {
    echo $letter;
}
?>

This function will also work with numbers. This will print all the numbers from 1 to 12.

<?php
foreach(range(0, 12) as $number) {
    echo $number;
}
?>

And if you are smart, and run PHP 5, you can even print every tenth number (0,10,20,30…)

<?php
foreach(range(0, 100, 10) as $number) {
    echo $number;
}
?>

A Truly Blank Sharepoint 2007 Master Page

Download – A truly blank master page ready for custom code.

I like to completely kill the SharePoint bloat and add my own custom html/css/js.

Beautiful fractals!

A Google image search for beautiful fractals.



Copyright © 2004–2009. All rights reserved.

RSS Feed. This blog is proudly powered by Wordpress and uses Modern Clix, a theme by Rodrigo Galindez.