How do you change MAC Address?


Ever wanted to get a permanent solution for your mac address change? Most of you who use internet via LAN has this problem of setting the mac address from the commandline. You do it every single time 3/4 console commands to get the net ready to use in your Ubuntu. Now go make a file(macset) at your home with any texteditor where u’ll have the following lines. notice 22:11:2F:3B:C5:54 is the Mac address of your LAN. It will vary upon your ISP/local provider. Just write down your own mac there. now do
sudo chmod 0777 macset

on the file and when you turn on your pc

you just type

sudo ./macset

to run your file’s commands as shell script, et voila! 🙂

ifconfig eth0 down
ifconfig eth0 hw ether 22:11:2F:3B:C5:54
ifconfig eth0 up
/etc/init.d/networking restart

You can now check if your MAC has been set properly by applying the follwing command at command line

ifconfig | grep HWaddr

Also read this post

Advertisements

An Alternative proxy script to host your WordprssBlog anywhere else


Months ago renowend PHP programmer Hasin Hayder posted a nifty thing of only 10 line proxy. Now this code had been written by Ferdous just after that post had been made. I am using this code to host my blog temporarily. But I felt the need for blogging about it which might help many programmers to better understand the technics. Definitely Hasin bhai’s technic is on the top. But we had a thought in mind that Regular Expressions are a bit costly and on a Conversation with him on Gtalk he said if you can make an alternative to this not using regular expression I am gonna treat you 😛  So, you know this is done for the challenge as well. 😀 Comparing the time of execution it yeilded a bit slower than Hasin bhai’s script. I have added the main proxy syntax highlighted here.

Remember, you need the .htaccess file with this to make it work. Go get the code from Hasin bhai’s original post 🙂

< ?php
    error_reporting(0);
    $primary_url="https://lenin9l.wordpress.com/"; //original url of your wordpress blog
    $secondary_url='http://savvycoders.com/'; //here the new hosted url should be specified
    $path =array_keys($_GET);
    $data_url = (!empty($path[0]))?$primary_url."/".$path[0]:$primary_url;
    $doc=new domdocument('1.0','UTF-8');
    $doc->loadhtmlfile($data_url);
    $data = $doc->saveHTML();
    $tags=$doc->getElementsByTagName('a');
    foreach($tags as $tag){
        $href = $tag->getAttribute('href');
        $href_new = str_replace($primary_url, "$secondary_url", $href);
        $data = str_replace($href,$href_new,$data);
    }

    $form_tags=$doc->getElementsByTagName('form');
    foreach($form_tags as $tag){
        $action = $tag->getAttribute('action');
        $action_new = str_replace($primary_url, "$secondary_url", $action);
        $data = str_replace($action,$action_new,$data);
    }
    echo $data;
?>

Now Your .htaccess file need to have the following codes:

RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{QUERY_STRING} (.+)
RewriteRule ^(.*)$ index.php?$1&%{QUERY_STRING}


RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?$1

ZCE হবেন? PHP শিখুন


Cert. date

Jul 23rd, 2009
Jul 23rd, 2009
Jun 29th, 2009
May 5th, 2009
Mar 24th, 2009
Mar 11th, 2009
Feb 16th, 2009
Jan 28th, 2009
Dec 4th, 2008
Sep 15th, 2008
May 5th, 2008
Jan 29th, 2007
Aug 31st, 2006
Aug 15th, 2006
Jun 6th, 2006

Company

SelfEmployed
ibacs
BJIT
BrainStation-23
RBS

RBS
RBS

Informatix Software
Greenland IT
I2WE Inc
I2WE Inc
TigerIT BD Ltd
I2WE, Inc.
I2WE Inc

___________________________________________

উপরের তালিকাটি দেখে প্রশ্ন জাগছে কেন বা কি? তাইনা?

তালিকাটি হচ্ছে, বাংলাদেশের সব পিএইচপি প্রোগ্রামারের, যারা পিএইচপি’র কোম্পানী(Zend) থেকে পরীক্ষা দিয়ে উত্তীর্ণ হয়েছেন, বিভিন্ন সময়ে। তালিকার সবার শেষে রয়েছে এই ব্লগেরই(প্রথম আলো এবং সামহোয়্যারইন  ব্লগ এ এটি পোস্ট করার জন্য লিখিত) কারিগরী নির্মাতা হাসিন হায়দারের নাম। তার মানে তিনিই প্রথম বাংলাদেশের ছেলে যে এই সার্টিফিকেট এনেছেন। এই সার্টিফিকেটটি এখন অনেক ডিমান্ডিং। দেখতেই পাচ্ছেন, মাত্র ওরা ১৫জন(পোস্টটি প্রথম রচনা করা হয় নভেম্বর ২০০৮, তখন ৬জন জেডসিই ছিলেন বাংলাদেশে) আছে তালিকায়। সুতরাং এখানে নাম লেখাতে পারলে আপনিও হয়ে যাবেন কেউ-কেটা। 🙂

ZCE কী?

Zend Certified Engineer. পিএইপি ভাষাটি প্রথম ডাচ নাগরিক Rasmus Lerdorf অবতারণা করেন। পরে ইজরাঈলী দুই ছাত্র Zeeve Suraski আর Andi Gutmans একে এর বর্তমান রূপ দেন তাদের নামানুসারে পিএইচপি কোম্পানি’র নাম হয়েছে জেন্ড। Continue reading

Things what Smart ppl do


Here are some Tips on how to recognise Smart TechSavvy people:
1. They use smart browsers like FireFox, Opera… Especially Firefox has lots of addons which actually provide you with lots of facilities and visual tools. This is ideal for WebDevelopers. You can have Adsense notifier at the status of FireFox. You can look at the CSS, Scripts, Layouts and also can edit them on the fly using mouse. Thus you can change the way the pages look. And then actively modify your own page. This is great for learners as they can explore. Every Advanced users like FireFox. Important to note is Smart users dont only depend on one browser. they sometimes use more than one Browser at a time 🙂   You can download firefox with google toolbar(which is again very handy tool) for free.

Continue reading