Today, Wikipedia has shutdown its websites and will be down for whole day. Here is the screen when wikipedia shutdown its site in protest of SOPA Act. SOPA act is in favour of stop online piracy but there is more than just it. It also prevents the outsourcing of work outside of U.S.
Category Archives: Technology
Multiple login with Skype
I always use multiple skype one for myself and other for my office staffs. And sometime I have to remain offline for some people while at some other instance for some other people. So this is how I use multiple skype simultaneously. This method works in windows as well as in linux.
The method is simple we create a shortcut to skype with /secondary switch.
Step 1. Goto the folder where skype is installed.
Step 2. Right-Click on the skype.exe, then click in send then click in Desktop.
This will create the shortcut of skype in desktop.
Step 3. Now, right-click on the shortcut of skype, that was newly created on the desktop. Then select shortcut tab then in target textfield goto the last and then enter /secondary as shown below.
“C:\Program Files (x86)\Skype\Phone\Skype.exe” /secondary
Step 4. That’s all.
Now whenever you double click on the skype shortcut, a new window of skype will be shown where you can login as usual.
Happy Skyping.
25 Ways to Wear a scarf
Aside
Watch this video, this shows you 25 ways to wear a scarf. Most of them are for girls but some of the techniques can also be used by boys as well.
Original video uploaded by wendyslookbook on Apr 1, 2011 on
Youtube url : http://www.youtube.com/watch?v=5LYAEz777AU
hook_menu path not working in Drupal (6,7)
Right From Drupal website :
This hook enables modules to register paths in order to define how URL requests are handled. Paths may be registered for URL handling only, or they can register a link to be placed in a menu (usually the Navigation menu). A path and its associated information is commonly called a “menu router item”. This hook is rarely called (for example, when modules are enabled), and its results are cached in the database.
Suppose we defined a custom a wildcard menu path as shown below
<?php
$items['my-module/%mymodule_abc/edit'] = array(
'page callback' => 'mymodule_abc_edit',
'page arguments' => array(1),
);
?>
When path ‘my-module/123/edit’ is requested, your load function mymodule_abc_load() will be invoked with the argument ’123′, and should load and return an “abc” object with internal id 123:
<?php
function mymodule_abc_load($abc_id) {
return db_query("SELECT * FROM {mymodule_abc} WHERE abc_id = :abc_id", array(':abc_id' => $abc_id))->fetchObject();
}
?>
This ‘abc’ object will then be passed into the callback functions defined for the menu item, such as the page callback function mymodule_abc_edit() to replace the integer 1 in the argument array.
For more information please visit actual source for this article
Drupal hook_menu article



