Change Network adapter MAC address on Windows 7

2010
15
Mar
1

Most of us (atleast those who learned computer networking) grew up learning about the 7 layers of OSI ISO model or the simple 4 layer model. The lowest layer is the physical layer. In this layer all machines are assigned an address called the MAC address (Media Access Control Address) . The MAC Addresses come pre-assigned in the hardware and it is assigned by a standard authority so that the MAC addresses does not collide. Most of us thought we cant change it, but yes we can change the MAC address.

Read More

Removing index.php From URL in CodeIgniter

2010
14
Mar
2

In Code Ignitor by default all URLs except the default home contains "index.php" by default in the URL, For example http://localhost/index.php/class/function.

In order to make the URLs "cleaner", we have to remove "index.php" from the URL. This is done using the mod_rewrite module in apache to redirect all traffic to index.php/. The following code inside .htaccess does the redirection.

Read More

JQuery make dynamic draggable and droppable containers

2010
14
Mar
1

The jquery UI javascript has the Draggable and Droppable Interactions inorder to implement a drag drop UI. By default draggable and droppable containers are marked draggable and droppable by jQuery when the page loades, As shown in the code snippet below for the jQuery Drag code and jQuery Drop Code,

jQuery Drop Code using jQuery droppable

$(".dropTarget").droppable({
        drop: function(event, ui) {
           // Drop Logic
        }
    });

jQuery Drag Code using jQuery Draggable

 

Read More

Permission Denied on Hosts File (Windows 7)

2010
08
Mar
2

On Windows 7, I was trying to edit the host file using Komodo and was getting Permission Denied, and tried notepad too still got permission denied. I thought initially it was McAfee Anti Virus that was disabling the edit of host file as this file is an important system configuration file.

Read More

PHP file_get_contents giving garbled output

2010
08
Mar

Are you getting garbled values when using file_get_contents fetching an external URL (website scrapping using php) and wondering what went wrong ? The content is appearing to have wierd characters instead of normal HTML output because of GZIP output encoding by the website you are fetching.

 <?php echo file_get_contents("http://www.example.com"); ?>

You can fix this issue in multiple ways.

Method 1 : Accept-Encoding

Read More

CHDK for Canon SX120 IS Camera ( Canon Hack Development Kit )

2010
06
Mar
7

Canon SX 120 IS CHDK Camera

CHDK is not yet officially released for Canon SX 120 IS, but I found a development version which works for my Canon SX 120 IS.

About CHDK

Read More

Sony Vaio Gamma error and color is not saved (Nvidia Geforce GT 300)

2010
02
Mar

The default settings on my Sony Vaio CW Series laptop had wrong Gamma settings, therefore the color reproduction on the screen was slightly on the redish side.

The setting on the Display on Control Panel was not getting saved due to some reason (Windows 7). This issue can be resolved by changing the Gamma setting on the Nvidia Control Panel as shown highlighted in the image below. The Control Panel can be accessed from the desktop by Right-Click on the desktop.


Read More

Syndicate content