2013
First Node.js application: “Hello World”
Open editor and create a file called helloworld.js. We want to write “Hello World” to Consol console.log(“Hello World”); Save the file, and execute it through Node.js node helloworld.js
TATAdocomo google talk is not working
1.Go to Settings>>Data usage>>Check Mobile data should be ON. 2.Now comes back one level then click more (Settings>>more) then click Mobile Networks and select “Data enabled” & “Data roaming”. 3.Now, In same window click “Access point names”. 4.In next window select TATA DOCOMO INTERNET 5. Now click TATA DOCOMO INTERNET and then enter into settings […]
Python: Restart Apache or WAMP Increase Performance
There are a few different ways to programmatically restart Apache or WAMP depending on your operating system and programming language. Here are a few typical methods: Command Line (Restart Apache) If you are using WAMP on a Windows system, you can use the net command to restart the Apache service. You can do this programmatically […]
Rendering a module inside a component
$document = &JFactory::getDocument(); $renderer = $document->loadRenderer(‘module’); $params = array(‘style’=>$style); echo $renderer->render(JModuleHelper::getModule(‘mod_login’), $params);
Ubuntu delete files/folders
If you want to remove file and folder from terminal you can use rm <filename>delete folder rm -rf <foldername>
ubuntu cp omitting directory
Couple of things here: 1. Don’t use “sudo”. you don’t need it, you already have the permissions to write stuff in your own home directory. 2. You can easily view hidden files and directories in the graphical file manager by selecting View/Show Hidden Files from the menu. Or by pressing Ctrl-H. 3. You need to […]
How to set the env variable for PHP?
You May use set keyword for set the path set path=%path%;c:/wamp/bin/php/php5.3.0 if all the path are set in path variables If you want to see all path list. you can use set %path% you need to append your php path behind this path. This is how you can set environment variable.
Cakephp internal server error
If you are stand on Root folder your .htaccess should like <IfModule mod_rewrite.c> RewriteEngine on RewriteRule ^$ app/webroot/ [L] RewriteRule (.*) app/webroot/$1 [L] </IfModule> If you are stand in to app folder your .htaccess should like <IfModule mod_rewrite.c> RewriteEngine on RewriteRule ^$ webroot/ [L] RewriteRule (.*) webroot/$1 [L] </IfModule>
How can I “comment-out” a section in a batch file?
The REM statemen This is the most common way to write comments. Any line in your bat-file that starts with REM is completely ignored by the command-processor. REM This bat-file moves all files in C:Incoming to C:ToProcess REM Written by Nikunj Kansara REM 05/01/2003Double Colons Alternatively you can replace the word REM by two […]
Printing Batch file results to a text file
For showing result of batch file in text file, you can use this command chdir > test.txt This command will redirect result to test.txt. When you open test.txt you will found current path of directory in test.txt