Windows 7: Enabling auto-logon

Here’s what you do to enable automatic log on to your Windows 7 user account

Hit WindowsKey+R and execute

control userpasswords2

On the dialog that opens, click on the username that you wish to enable automatic log on and uncheck the "Users must enter a user name and password to use this computer" checkbox.

When you click OK, Windows will ask the password for that user.

Type it twice to confirm and hit Ok.

From now on, the user account you selected will be automatically logged on when booting.

WRT160n v3 flawed 3.0.02 firmware: DHCP can’t keep track of leases: IP conflicts all over the place

Very often here at the office we have loss of internet connection even though it seems the local network connection never goes down.

Besides losing the internet connection, my laptop frequently displays a message saying there’s an IP conflict, which doesn’t make much sense as the only DHCP server running on our network is the router’s

This screen shows that my computer has IP address and it’s not listed under DHCP client list. Anyone care to help understand why?

Update 2010-11-11:  I decided to start using DD-WRT on this router.

Firmware: Firmware: DD-WRT v24-sp2 (08/07/10) mini
Time: 14:54:41 up 2 days, 5:27, load average: 0.13, 0.11, 0.05
So far, no more of those crazy problems the default firmware has. You may want to do yourself a favor and check if your router is supported.

How Gullible Are We?

This was found on the newsgroup: rec.humor.funny / found using StumbleUpon

H2O: Dangerous Chemical!

A student at Eagle Rock Junior High won first prize at the Greater Idaho Falls Science Fair, April 26. He was attempting to show how conditioned we have become to alarmists practicing junk science and spreading fear of everything in our environment. In his project he urged people to sign a petition demanding strict control or total elimination of the chemical "dihydrogen monoxide."

And for plenty of good reasons, since:

  1. it can cause excessive sweating and vomiting
  2. it is a major component in acid rain
  3. it can cause severe burns in its gaseous state
  4. accidental inhalation can kill you
  5. it contributes to erosion
  6. it decreases effectiveness of automobile brakes
  7. it has been found in tumors of terminal cancer patients

He asked 50 people if they supported a ban of the chemical.

  • Forty-three (43) said yes,
  • six (6) were undecided,
  • and only one (1) knew that the chemical was water.

The title of his prize winning project was, "How Gullible Are We?"

He feels the conclusion is obvious.

Organize your DropBox shared folders the right way

When someone shares a DropBox folder with you, it goes to the root folder of your DropBox, which most of the times will not be good enough and ends up messing the very well planned structure that you wanted 🙂

If you simply drag and drop the shared folder somewhere else (within your DropBox, of course) the sharing information somehow gets lost.

The solution is to move the folder using the web interface!

NGINX with Kohana 3.x friendly URLs

I really enjoy working with Kohana and since I got a server from one of the hosting companies listed at LowEndBox, I decided to ditch Apache and go with Nginx, thing is… I also like pretty URLs 🙂

As a backup from the comment located here:

I’m copying and pasting it in my blog for easier reference, plus it’s modified to fit my servers configuration:

location / {
    index    index.php index.html;

    if (!-e $request_filename) {
        rewrite ^/(.*)$ /index.php/$1 last;

    include  /home/httpd/domains/;

location ~ .php$ {
    fastcgi_index  index.php;
    fastcgi_param  SCRIPT_FILENAME  /home/httpd/domains/$fastcgi_script_name;

    include /etc/nginx/fastcgi_params;

# kohana
set  $path_info "";
location /index.php {
    if ($uri ~ "^/index.php(/.+)$") {
        set  $path_info  $1;
    fastcgi_index  index.php;
    fastcgi_param  SCRIPT_FILENAME  /home/httpd/domains/;

    fastcgi_param  PATH_INFO $path_info;
    include /etc/nginx/fastcgi_params;

php:// function to clean string for SEO usage

If you need a good function to clean strings to use them as URLs for SEO purposes, here’s a suggestion:

function chunk_special_chars($string) {
  $normalizeChars = array(
    'Š'=>'S', 'š'=>'s', 'Ð'=>'Dj','Ž'=>'Z', 'ž'=>'z', 'À'=>'A', 'Á'=>'A', 'Â'=>'A', 'Ã'=>'A', 'Ä'=>'A',
    'Å'=>'A', 'Æ'=>'A', 'Ç'=>'C', 'È'=>'E', 'É'=>'E', 'Ê'=>'E', 'Ë'=>'E', 'Ì'=>'I', 'Í'=>'I', 'Î'=>'I',
    'Ï'=>'I', 'Ñ'=>'N', 'Ò'=>'O', 'Ó'=>'O', 'Ô'=>'O', 'Õ'=>'O', 'Ö'=>'O', 'Ø'=>'O', 'Ù'=>'U', 'Ú'=>'U',
    'Û'=>'U', 'Ü'=>'U', 'Ý'=>'Y', 'Þ'=>'B', 'ß'=>'Ss','à'=>'a', 'á'=>'a', 'â'=>'a', 'ã'=>'a', 'ä'=>'a',
    'å'=>'a', 'æ'=>'a', 'ç'=>'c', 'è'=>'e', 'é'=>'e', 'ê'=>'e', 'ë'=>'e', 'ì'=>'i', 'í'=>'i', 'î'=>'i',
    'ï'=>'i', 'ð'=>'o', 'ñ'=>'n', 'ò'=>'o', 'ó'=>'o', 'ô'=>'o', 'õ'=>'o', 'ö'=>'o', 'ø'=>'o', 'ù'=>'u',
    'ú'=>'u', 'û'=>'u', 'ý'=>'y', 'ý'=>'y', 'þ'=>'b', 'ÿ'=>'y', 'ƒ'=>'f'
  $string = strtr($string, $normalizeChars);
  $string = str_replace('&', '-and-', $string);
  $string = trim(preg_replace('/[^wd_ -]/si', '', $string));//remove all illegal chars
  $string = str_replace(' ', '-', $string);
  $clean = iconv('UTF-8', 'ASCII//TRANSLIT', $string);
  $clean = preg_replace("/[^a-zA-Z0-9/_| -]/", '_', $clean);
  $clean = strtolower(trim($clean, '-'));
  $clean = preg_replace("/[/_| -]+/", '_', $clean);

  return $clean;
} //function

thanks to: sales at mk2solutions dot com for posting their solution @ notes

/bin/bash: Remove Dreamweaver synchronization "stuff" from your hosting

As an online note, I’m writing this post to remind myself and help others that still suffer using Dreamweaver on a daily basis and at some point end up having a bunch of unwanted folders and files that Dreamweaver keeps for synchronization information. To remove all that from a Linux hosting (provide you have ssh access):

ssh to your server

for i in `find ./ | grep dwsync.xml`; do ls -l $i && rm $i; done
for i in `find ./ | grep '_notes'`; do ls -l $i && rmdir $i; done

inside your public html folder (the root folder would work just as well)

  • IGlr