Skip to main content

Posts

If life were a periodic function of time!

As the crystal rays of sunlight enter into my room, through the tiny perforation in my newly constructed window, and fall on my face, I open my eyes. I open them gently, and pulling myself up, I think. I think if this morning bears any resemblance to any of those memorable ones at AIT. Thinking that against all the odds, against all the contraries this morning be slight like the old fashioned ones. The ones in 304E, the ones in 004C, those in 005C or the ones in 213A! The mornings when I would wake up first only to see my roommates enjoying their sweet sleep and I would jump onto my bed again and moments later I would hear Sood screaming " GET UP ASSHOLE...CLASSES START AT 9.15 !" and minutes later, I would find myself in my class...studyng! Times have changed! They certainly have! I have office to go to. I have a bus to catch. Have work to do. Books to read. I hate to wake up early. I hate to get ready on time! If time could just reverse direction. If life were a periodic...
Following the article on http://mydebian.blogdns.org/?p=148 to setup SSH onto a local virtual machine, I got the following error message when tried to start the machine : Configuration error: Failed to get the "MAC" value. VBox status code: -2103 (VERR_CFGM_VALUE_NOT_FOUND). Just update the network device name "PCNET" and restart the machine. it'll work.
Following the article on  http://mydebian.blogdns.org/?p=148  , i configu the Guest will no longer start with the following error:   Configuration error: Failed to get the "MAC" value.   VBox status code: -2103 (VERR_CFGM_VALUE_NOT_FOUND).  

Rsync multiple files, folders

Needed to rsync the 3 folders. So the script to do that is as follows ("rsync_backup") It requires the key named "23.pub" to be appended in "~/.ssh/authorized_keys" and in crontab -e "*/1 * * * * /var/www/repositories/rsync_backup" It will backup every minute /*********************************************************************/ #!/bin/sh RSYNC=/usr/bin/rsync SSH=/usr/bin/ssh KEY=/home/quickstart/.ssh/23 RUSER=quickstart RHOST=172.20.1.139 RPATH1=/var/www/repositories/ LPATH1=/var/www/repositories/repos/ RPATH2=/var/www/icode/ LPATH2=/var/www/repositories/icode/ RPATH3=/home/git/repositories/ LPATH3=/var/www/repositories/git/ $RSYNC -az -e "$SSH -i $KEY" $RUSER@$RHOST:$RPATH1 $LPATH1 $RSYNC -az -e "$SSH -i $KEY" $RUSER@$RHOST:$RPATH2 $LPATH2 $RSYNC -az -e "$SSH -i $KEY" $RUSER@$RHOST:$RPATH3 $LPATH3

automatic repo commit

The whole idea of computing is that the computer should work more than the man. I realized this when I had to manually add origin and commit, push every repository that I downloaded. So here's the script that does the job for me. <?php  echo exec('git init');  echo exec('touch readme');  echo exec('git remote rm origin');  echo exec('git add .');  echo exec('git remote add origin git@localhost:'.$argv[1].'.git');   echo exec('git commit -a -m "some message"');  echo exec('git push origin master');  ?>

Copying a MySQL table with schema and keys, but not data!

I wanted to clone the schema of my table "aitossne-icode.sshkey" into a new table "kaydir.keytab". Here's what I did : mysql> use keydir Database changed mysql> CREATE table keytab LIKE aitossne_icode.sshkey; Query OK, 0 rows affected (0.06 sec) mysql> show tables     -> ; +------------------+ | Tables_in_keydir | +------------------+ | keytab           | +------------------+ 1 row in set (0.00 sec)

वक़्त का दरिया

कितना वक़्त  खोया  मैंने , खोने  को  और  पाने  को , काश  की  ये  वक़्त  मिल  जाता , फिर  से  मुझे  बिताने  को  ... फ़रियाद  किया ,याद  किया , कितना  वक़्त  बर्बाद  किया , हँसा -रोया -गाया , पर  आवाज़  नहीं  पहुंची  मेरी , जाता  रहा  मूरत  के  आगे  घंटी  मगर  बजाने  को .. जज्बातों  की  तपिश  में  चमका  करता  था , एक  हलकी  सी  बारिश  में  सब  कुछ  बह  गया , किसने कहा  था  मुझे , रेत  का  घर  बनाने  को .. कभी  रिश्तों  का  नाम  दिया  था  जिनको  मैंने , आज  सब  किश्तों  में  अदा  करता  जाता  हूँ  मैं , मेरे  बदले  कौन आएगा  मेरा  क़र्ज़  चुकाने  को .. अभिनेता ...

Solution: Password for ‘(null)’ GNOME keyring

Solution: Password for ‘(null)’ GNOME keyring December 14, 2010 selvamanisampath Uncategorized 1 Comment You can commit you project using subversion as follows: svn commit -m “Your comment here for your modification on the project” –username <gmailusername> Then the following prompt should be opened for commiting your project successfully… Password for ‘<gmailusername>’ : For this password, you should give your code.google.com password assigned to you while hosting your project. First time commiting project using svn commit will work properly. If you are commiting your project next time, you can get the prompt like Password for ‘(null)’ GNOME keyring: which means, Multiple keyrings are present on a users system. All users will have a default keyring, and another which is only stored in memory. For each commit, gnome-keyring stores the user details in another keyring. To disable this, open th...

Hidden user account in windows 7

Run  Registry Editor  (RegEdit.exe). Navigate to the following registry key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList Note: If  SpecialAccounts  and  UserList  is not found, create new sub-key and name them accordingly. Select  UserList , and in the right pane, right click on any blank space, and point to  New  ->  DWORD (32-bit) Value . Name the new DWORD registry value name as the exact same name that match the name of the user account to be hidden. For example, if the user ID of the user account is "Prince", the name the registry value as Prince. Double click on DWORD registry value, and set the value data to 0 in oder to hide the account from Welcome Screen. Tip: To display the user account on Welcome Screen again so that it’s visible again, delete the registry entry, or set the value data to 1. Exit Registry Editor. Log off or restart computer to make ...

configure ini like files in PHP

<? ///////////////////////////////////////////////////////////////////////// // // class.INIFile.php3 - implements a simple INIFile Parser // /// Author : Mo // // Description: // I just wandered how to sawe simple parameters not in a database but in a file // So starting every time from scratch isn't comfortable and I desided to write this // small unit for workin with ini like files // Some Examples: // // $ini = new INIFile("./ini.ini"); // //Read entire group in an associative array // $grp = $ini->read_group("MAIN"); // //prints the variables in the group // if ($grp) // for(reset($grp); $key=key($grp); next($grp)) // { // echo "GROUP ".$key."=".$grp[$key]."<br>"; // } // //set a variable to a value // $ini->set_var("NEW","USER","JOHN"); // //Save the file // $ini->save_data(); class INIFile { var $INI_FILE_NAME = ""; var $ERROR = "...