- NotePad++
- CodeLobsoter
- Sublime Text
- Dreamweaver
- NetBeans
- Eclipse
- jEdit
learn php, learn jquery, learn asp.net, learn javascript, learn html, learn css, learn xml, learn ruby on rails, learn python
Saturday, January 11, 2014
Sunday, October 13, 2013
How to install .apk files on Android Emulator
How to install .apk files on Android Emulator
Its handy to test android applications on emulator included in SDK for testing purpose or if you don’t have an actual device.
Remember you don’t have to be a developer to do this and you don’t even require any IDE like eclipse or any other for this task.
Now i will elaborate the way to do this.
SDK Installation
- Download and install Android SDK from developer.android.com/sdk/
- Include path of /tools folder in SDK installation folder in My Computer > right click > Advanced Tab > Environmental Variables button > System Variables > Path variable
Run Emulator
There are two separate ways to do this for two different versions of SDK i cam across 1.0 R2 and 1.5 R1.
1.0 R2
Go to /tools folder and just execute emulator.exe file.
1.5 R1
In this version another good feature is added to android emulator, different Android Virtual Device and Targets.
I will not go in details of AVD and Targets in this post.
To run emulator you have to specify a avd, and to create a avd to have to specify a target, lets first check what are targets.
- Go to command line interface by typing “cmd” in run and click OK.
- Go to location of android SDK installation folder and further in /tools folder.
- View the list of available Targets by typing “android list targets”, press return.
- Now to create an AVD type “android create avd -n myavd -t 2″ press return, where -n is switch to specify avd name and -t to specify target. Specify integer number of any target from list of available targets.
- Now view the list of AVD’s and locate our newly created “myavd” in list by typing “android list avd”, press return.
- Finally type “emulator -avd myavd” and press return to run the emulator.
Now finally to install android application .apk files, download and place .apk file in /tools folder and type “adb install my_android_app.apk”, press return.
Now you can probably see newly installed applicatin in menu.
Thursday, September 26, 2013
Ajax not work in yii
Ajax not work in yii
'enableAjaxValidation'=>false,
true this parameter in form view. like this
'enableAjaxValidation'=>true,
'enableAjaxValidation'=>false,
true this parameter in form view. like this
'enableAjaxValidation'=>true,
Friday, August 23, 2013
output buffering in php
Output Buffering
Without output buffering (the default), your HTML is sent to the browser in pieces as PHP processes through your script. With output buffering, your HTML is stored in a variable and sent to the browser as one piece at the end of your script.
Advantages of output buffering for Web developers
- Turning on output buffering alone decreases the amount of time it takes to download and render our HTML because it's not being sent to the browser in pieces as PHP processes the HTML.
- All the fancy stuff we can do with PHP strings, we can now do with our whole HTML page as one variable.
- If you've ever encountered the message "Warning: Cannot modify header information - headers already sent by (output)" while setting cookies, you'll be happy to know that output buffering is your answer.
List vs Array
List vs Array
List is dynamic size and array is fixed size.
List is dynamic size and array is fixed size.
If You can add new elements to a list, but to add a new element to an array you need to create a new larger array and copy the old elements.
Arrays are a little leaner and more efficient if you don't need dynamic resizing, but lists are usually more convenient and the performance difference rarely matters for most applications.
For more information.
Tuesday, July 16, 2013
2 days cron configuration
To run a cron job every 48 hours (i.e. every two days) try the following command:
Minute Hour Day Month Weekday 0 0 */2 * *
Send an HTML email
Send an HTML email:
<?php
$to = "somebody@example.com, somebodyelse@example.com";
$subject = "HTML email";
$message = "
<html>
<head>
<title>HTML email</title>
</head>
<body>
<p>This email contains HTML Tags!</p>
<table>
<tr>
<th>Firstname</th>
<th>Lastname</th>
</tr>
<tr>
<td>John</td>
<td>Doe</td>
</tr>
</table>
</body>
</html>
";
// Always set content-type when sending HTML email
$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type:text/html;charset=iso-8859-1" . "\r\n";
// More headers
$headers .= 'From: <webmaster@example.com>' . "\r\n";
$headers .= 'Cc: myboss@example.com' . "\r\n";
mail($to,$subject,$message,$headers);
?>
<?php
$to = "somebody@example.com, somebodyelse@example.com";
$subject = "HTML email";
$message = "
<html>
<head>
<title>HTML email</title>
</head>
<body>
<p>This email contains HTML Tags!</p>
<table>
<tr>
<th>Firstname</th>
<th>Lastname</th>
</tr>
<tr>
<td>John</td>
<td>Doe</td>
</tr>
</table>
</body>
</html>
";
// Always set content-type when sending HTML email
$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type:text/html;charset=iso-8859-1" . "\r\n";
// More headers
$headers .= 'From: <webmaster@example.com>' . "\r\n";
$headers .= 'Cc: myboss@example.com' . "\r\n";
mail($to,$subject,$message,$headers);
?>
Subscribe to:
Posts (Atom)