tag:blogger.com,1999:blog-72877286709711231032024-03-13T16:37:47.430+05:30Ahzaz's Blogtesthttp://www.blogger.com/profile/13492917135106977846noreply@blogger.comBlogger18125tag:blogger.com,1999:blog-7287728670971123103.post-53642423040348493012015-11-02T09:44:00.000+05:302015-11-04T18:54:25.276+05:30Resources to Learn SEO Online<meta name="keywords" content="seo, search engine optimization, google, moz, tutorial" />
<div dir="ltr" style="text-align: left;" trbidi="on">
The SEO is the always growing concept. So, you need to stay updated and always have to learn new concepts. No one can say that he/she is perfect in SEO because algorithms are being changed rapidly by Google and other Search Engines.<br />
<br />
Why we follow Google? Because Google is the King in Search engine world.<br />
<br />
What if you are new in SEO and want to learn SEO from basics?<br />
Then question is, where to learn SEO? What are the good resources? There are lots of tutorials, eBooks, PPT and blogs available. You may get confused about what to read.<br />
<br />
Here, I am going to provide some best resources by experts.<br />
<br />
<b>1. Google Search Engine Optimization Starter Guide</b><br />
<br />
It's a guide given by Google to webmaster to make their websites search engine friendly. It provides really helpful guidelines for beginners.<br />
<br />
Here is the link to <a href="http://static.googleusercontent.com/media/www.google.com/en//webmasters/docs/search-engine-optimization-starter-guide.pdf" target="_blank">Google guide</a><br />
<br />
<b>2. Moz Guide for Beginners</b><br />
<b><br /></b>
Moz is the another trusted blog in SEO. Moz's blogposts are always very useful to learn new concepts about SEO.<br />
<br />
Here is the link of Moz Guide for beginners: <a href="https://moz.com/beginners-guide-to-seo">https://moz.com/beginners-guide-to-seo</a><br />
<br />
And also visit <a href="http://moz.com/blog" target="_blank">Moz Blog</a><br />
<br />
<b>3. Google Webmaster Central Blog</b><br />
<b><br /></b>
To stay updated with Google official updates, Visit Google's official blog for webmasters : <a href="http://googlewebmastercentral.blogspot.in/">http://googlewebmastercentral.blogspot.in/</a><br />
<br />
<b>4. Other Good Blogs for SEOs</b><br />
<br />
<ul style="text-align: left;">
<li><a href="http://searchengineland.com/" target="_blank">Search Engine Land</a></li>
<li><a href="http://searchenginewatch.com/" target="_blank">Search Engine Watch</a></li>
<li><a href="http://neilpatel.com/blog/" target="_blank">Neil Patel's Blog</a></li>
<li><a href="http://backlinko.com/" target="_blank">Backlinko</a></li>
</ul>
<div>
If you have any questions related SEO, then you can ask in Google Product Forum for webmasters. You will get a proper answer for your queries.</div>
<div>
Here is the link of forum: <a href="https://productforums.google.com/forum/#!forum/webmasters">https://productforums.google.com/forum/#!forum/webmasters</a></div>
<br />
<br /></div>
Unknownnoreply@blogger.com1tag:blogger.com,1999:blog-7287728670971123103.post-9209128526331192022015-04-08T00:35:00.000+05:302015-04-08T00:37:35.492+05:30Approximating Mona Lisa using genetic algorithm<meta name="keywords" content="genetic, algorithm, mona lisa, java, programming" />
<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="text-align: center;">
<br /><iframe allowfullscreen="" frameborder="0" height="315" src="https://www.youtube.com/embed/hFfPapVdurg" width="420"> </iframe>
</div>
</div>
testhttp://www.blogger.com/profile/13492917135106977846noreply@blogger.com1tag:blogger.com,1999:blog-7287728670971123103.post-2026602486621474282014-11-19T19:47:00.002+05:302015-04-08T00:33:37.347+05:30Using Regular Expressions with PHP<meta name="keywords" content="php, regex, regular expressions, preg_match, patterns, scripting, tutorial, web development, scrapping" />
<div dir="ltr" style="text-align: left;" trbidi="on">
<div>
PHP provides rich support for regular expression. Regular expressions or RegEx can be used for pattern matching, replacing a particular part of string or to extract some part of string.<br>
<br>
RegEx are string of characters that defines a particular patter and has its own rules.<br>
There are two types of RegEx : <br>
<ul>
<li>POSIX Regular Expressions</li>
<li>PERL Style Regular Expressions</li><br>
</ul>
We will see only POSIX style RegEx in this tutorial.<br>
<br><h3> What is a Regular Expression </h3>
RegEx is a string of character. For example, <b>a</b> is a regex, <b>\"([^\"]+)\"</b> is also a regex and so is <b>[0-9]+([a-z]).*</b> In the first sight it looks very weird but as we go along the tutorial it will become easy for you to understand these patterns.<br>
<br><h3> Matching with literals </h3>
Literals matches exact characters they specify.For example, <b>"/abc/"</b> is a regular expression. It will match strings which has string <b>"abc"</b> as a sub string, like <b>abcdef</b>, <b>xyzabc</b>, <b>xyabcef</b> etc. The forward slashes at the begin and end are called delimiters. They mark the start and end of pattern. They should be same and can not be backslash or any alphanumeric character that is you can use /,|,: etc.<br>
<br><h3> Matching start and end </h3>
Consider the pattern <b>"/abc/"</b>. As we saw it will match <b>"abcdef"</b>, <b>"xyzabcdef"</b>. Suppose we want that <b>"abc"</b> should only come at the beginning, that is we dont want to match <b>"xyzabcdef"</b>. We can use <b>^</b> for the purpose. Anything that comes after <b>^</b> should come in the beginning of the subject string. Thus <b>"/^abc/"</b> will only match <b>"abcdef"</b> not <b>"xyzabcdef"</b>.<br>
Just like <b>^</b>, <b>$</b> matched end on the string. So <b>"/abc$/"</b> will match neither <b>"abcdef"</b> nor <b>"xyzabcdef"</b>, but it will match <b>"defabc"</b>.<br>
Some particular examples :<br>
"/^$/" will match empty string<br>
"/^abc$/" will match only "abc", i.e. none of "abcdef", "xyzzbcdef", "defabc" is matched, only "abc" gets matched.<br>
<br><h3> Giving Range with brackets </h3>
Brackets <b>[]</b> can be used in a regex to specify a range. For example, <b>[0-9]</b> matches single digit from 0 to 9. Consider <b>[a-z]</b> which matched any lower case alphabets. Consider the pattern, <b>"/^[a-z][a-z][0-9][0-9]/"</b> it will match any string starting with a small case alphabet and followed by a small alphabet and two digits. So it will match <b>"aa10"</b>, <b>"xy44"</b>; but not <b>"12fv"</b>,<b>"ddrt"</b>, <b>"1123"</b>. The <b>^</b> character when used at starting of pattern it will indicate start of the subject string. But inside the [] it has a special purpose of negation. For example <b>"/^[^0-9]/"</b> will match any string that <b>DOES NOT</b> start with a number. Here first <b>^</b> marks the beginning of the string while the second one inside the brackets gives negation.<br>
<br><h3> Giving choices </h3>
Suppose we want to match a pattern where first character is either a digit or a alphabet and followed by two digits. From above examples a simple solution would be to first check <b>"/^[a-z][0-9][0-9]/"</b> and if it does not match we check for <b>"/^[0-9][0-9][0-9]/"</b>. But this is not a good solution as you have to write case for each choice that is possible. For example consider date-month-year pattern, where date can 0 followed by a digit or 1 followed by a digit or 2 followed by digit or 3 followed by either 1 or 0; month can be 0 followed by a digit or 1 followed by 0 or 1 or 2; year is any two digits. If we use above method and write code it will be really cumbersome to write and prone to error. Fortunately RegEx provides <b> | </b> symbol for making choice. Consider our first example, if want a alphabet OR digit followed by two digits, our patter would be <b>"/^[a-z]|[0-9][0-9][0-9]/"</b>. <b> | </b> serves as OR in patters. Remember <b> | </b> needs patterns on both side. Also pattern <b>"/a|bc/"</b> will match (a OR b) and then c; not a OR (b and then c). We can use parenthesis for easy reading like: <b>"/(a|b)c/"</b>.<br>
<br><h3> Using Quantifiers </h3>
Quantifiers are used to match long repeating string of pattens. For example, assume that we want to match a string containing only numbers. It is not possible to do directly using any of above features. For such kind of situations Quantifiers are provided.<br>
They are <b>+,*,?, {},^,$</b>. We have already seen <b>^</b> and <b>$</b>.
Here is a short explanation of rest.<br><br>
<table border=1>
<th> Quantifier </th> <th> Use </th>
<tr> <td> * </td> <td> Matched zero or more occurrence of preceding pattern. </td> </tr>
<tr> <td> + </td> <td> Matched one or more occurrence of preceding pattern. </td> </tr>
<tr> <td> ? </td> <td> Matched zero or one occurrence of preceding pattern. </td> </tr>
<tr> <td> {min,max} </td> <td> Matched occurrence of preceding pattern min to max times. </td> </tr>
<tr> <td> {min,} </td> <td> Matched occurrence of preceding pattern atleast min times. </td> </tr>
</table><br>
<br>
Here are some examples:<br>
<table border=1>
<th> Quantifier </th> <th> Use </th>
<tr> <td> a* </td> <td> Matches empty string,a,aa,aaa,aaa... </td> </tr>
<tr> <td> a+ </td> <td> Matches a,aa,aaa,aaa... <br> Can be thought as aa* </td> </tr>
<tr> <td> a? </td> <td> Matches empty string or a. </td> </tr>
<tr> <td> {2,5} </td> <td> Matched occurrence of preceding pattern min to max times. </td> </tr>
<tr> <td> {min,} </td> <td> Matched occurrence of preceding pattern at least min times. </td> </tr>
</table>
<br>
<br><h3> Escaping </h3>
Sometimes you want to match symbols like '[', or ' / ' in the string with the string, which are actually a part of the pattern syntax. Thus, it is necessary to distinguish weather we want to use a particular symbol as an literal or as a part of RegEx. "\" (without quotes) is used for this. So if you want to match <b>/</b> you would actually use <b>\/</b>. It called escape sequence. Same goes for other symbols like, \[, \" etc.<br>
<br><h3> Remembering with parenthesis </h3>
Suppose you want to extract an IP address from a line of text. IP addresses are like, 127.0.0.1, 192.168.2.6. They are 4 numbers separated by dots and say we want all four numbers separately. From what we have learned its hard to do this. However with parenthesis at our help this becomes really easy. Pattern <b>"/[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+/"</b> will match the IP address. Now if you want to extract some part of matched string from pattern, you can parenthesis that part and the use references to it. Thus, <b>"/([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)/"</b> can be used to remember four numbers of IP address that can be accessed later. We will see, how to reference them when we will see PHP functions that uses RegEx. Also note that I have escaped the . because it has a special meaning as we will see next.<br>
<br><h3> The Dot </h3>
There is a special symbol <b>"."</b> which is used for matching any one character. You can use if you don't know actual characters in the patter but you know the text, pattern or symbols bounding the required pattern. With the use of above quantifier <b>.</b> is really helpful in many cases. For example suppose you want to find the text in a line between two hash symbols. You don't know what text is, what its length is, it could be empty as well. We use <b>.</b> is situations like this. So for above scenario, <b>"/#(.*)#/"</b> will match <b>#AnyText#</b> and using parenthesis we can extract the text between hashes.<br>
<br/>
You can practice regular expressions on following site.<br>
<a href="http://regex101.com/" target="blank"> regex101.com </a> <br>
<br /></div>
<div id="ads">
Ads :<br />
Buy Kodak, Canon, Panasonic Cameras on <a href="http://www.ebay.com/sch/Digital-Cameras-/31388/i.html" target=_blank> www.ebay.com </a> <br>
Electronics, Cars, Fashion, Collectibles, Coupons and More Online Shopping | eBay<br />
<a href=http://www.ebay.co.uk target=_blank> www.ebay.co.uk </a> |
<a href=http://www.ebay.com.my target=_blank> www.ebay.com.my </a>
</div>
</div>testhttp://www.blogger.com/profile/13492917135106977846noreply@blogger.com0tag:blogger.com,1999:blog-7287728670971123103.post-36423208486427595702014-02-28T03:09:00.000+05:302014-11-19T20:07:24.992+05:30Submitting and Securing the form data with Javascript<meta name="keywords" content="html, javascript, js, form, secure, submit, dynamic, create" />
Whenever you create a form in HTML, you use "action" attribute of the <form> to submit your form. Now if you are not using SSL, then the data that you are sending is not encrypted and not secure.<br>
You can use javascript to encrypt the data and also submit the form.
<form> contains a attribute or event "onsubmit" which is fired when user clicks on the submit button. We can use this event and submit form using javascript.<br>
<br>
Here is a little demo of what you can do.
<br><br>
First create a simple form.
<pre><div id=sc>
<form action="process.php" method="post" onsubmit="return submitForm(this.form)">
<input type="text" name="uname" id="uname"> <br>
<input type="password" name="pass" id="pass"> <br>
<input type="submit" value="Submit">
</form>
</div> </pre>
Now consider that want to send the username and password after encrypting it.<br>
One way to do this is when user clicks the submit button, we change the values of the fields with the encrypted values.<br>
The other way is to create form in javascript and values to it and then submit that form to server side.<br>
Here is a little JS that does the same thing.<br>
<pre><div id=sc>
<script>
//Dummy Encrypt function, returns the given data as it is.
function Encrypt(data)
{
return data;
}
function submitForm(form)
{
//create a form element
var f = document.createElement("form");
//set post and action attributes
f.setAttribute('method',"post");
f.setAttribute('action',"process.php");
//Create a new element of type input
var uname = document.createElement("input");
//Set its type
uname.setAttribute('type',"text");
//give it a name
uname.setAttribute('name',"uname");
//Encrypt can be any function that you define to
//encrypt the given data
uname.value = Encrypt(form.uname.value);
//create one more to store password
var pass = document.createElement("input");
pass.setAttribute('type',"password");
pass.setAttribute('name',"pass");
pass.value = Encrypt(form.pass.value);
//add both to form
f.appendChild(uname);
f.appendChild(pass);
//submit the form
f.submit();
return false;
}
</script>
</div> </pre>
Here it we create a new form element, add child elements to it and submit is. The advantage here is you can choose your own encryption logic based on your needs and send the data securely to the server.
<div id="ads">
Ads :<br />
Buy Kodak, Canon, Panasonic Cameras on <a href="http://www.ebay.com/sch/Digital-Cameras-/31388/i.html" target=_blank> www.ebay.com </a> <br>
Electronics, Cars, Fashion, Collectibles, Coupons and More Online Shopping | eBay<br />
<a href=http://www.ebay.co.uk target=_blank> www.ebay.co.uk </a> |
<a href=http://www.ebay.com.my target=_blank> www.ebay.com.my </a>
</div>testhttp://www.blogger.com/profile/13492917135106977846noreply@blogger.com0tag:blogger.com,1999:blog-7287728670971123103.post-90372025881024644312013-06-20T17:01:00.000+05:302014-11-19T20:07:37.589+05:30How to upload file to server in android using FTP<div dir="ltr" style="text-align: left;" trbidi="on">
<meta name="keywords" content="android, upload, file, ftp, server, app, application, apache, library, commons, net" />
<meta name="author" content="Ahzaz Hingora">
In my previous <a href="http://thezedienblog.blogspot.in/2013/05/how-to-upload-file-to-server-in-android.html">post</a> I have discussed how we can upload file using HTTP-POST method.<br>
It is a good method, but if you have a large file and server is not configured for upload of that size it will fail.<br>
So, we can use another protocol made for transferring files between two machines, FTP.
As android app is build using java we can use Apache Commons Net library which provides classes for using FTP service.<br>
You can download it <a href="http://commons.apache.org/proper/commons-net/download_net.cgi" target="_blank">here</a>,
and then dd <b>commons-net-3.2</b> file to your android project. Here is the code to connect to FTP server.
<pre><div id=sc>
FTPClient client = new FTPClient();
client.connect(FTPSERVER, PORT);
client.login(USERNAME, PASSWORD);
</div></pre>
Here we instantiate an object of FTPClient class which is used for communication with server.
<ul>
<li> FTPSERVER is address of your ftpp server where you want to upload file </li>
<li> PORT is the post used to connect to server, mostly 21</li>
</ul>
Once you have logged in successfully, you can change current working directory on server, upload file receive file etc.<br>
connect method throws SocketException, IOException and login method throws IOException so you should surround them in try/catch block.<br>
Once you have logged in you can use printWorkingDirectory() method to get the current working directory. It returns path of directory as String.<br>
changeWorkingDirectory(String dir) method is used to change the working directory. <br><br>
So once you are at your target directory you can upload files. You can upload then as Binary or Text(ASCII) files.
<pre><div id=sc>
client.setFileType(FTP.BINARY_FILE_TYPE, FTP.BINARY_FILE_TYPE);
client.setFileTransferMode(FTP.BINARY_FILE_TYPE);
</div></pre>
Or
<pre><div id=sc>
client.setFileType(FTP.ASCII_FILE_TYPE, FTP.ASCII_FILE_TYPE);
client.setFileTransferMode(FTP.ASCII_FILE_TYPE);
</div></pre>
Mostly it is better to transfer files in binary mode.
To upload a file use
<pre><div id=sc>
client.storeFile(String REMOTE_FILE_NAME, FileInputStream SROUCE);
</div></pre>
It will read data from give FileInputStream and save it on server with the name given as first parameter.
<br><br>
NOTE :<br>
This methods use network so make sure not use them on main thread or UI thread. Either use them in a service or in <a href="http://developer.android.com/reference/android/os/AsyncTask.html">AsyncTask</a>.<br>
Also don't forget to add android.permission.INTERNET permission in manifest file.<br>
<div id="ads">
Ads :<br />
Buy Kodak, Canon, Panasonic Cameras on <a href="http://www.ebay.com/sch/Digital-Cameras-/31388/i.html" target=_blank> www.ebay.com </a> <br>
Electronics, Cars, Fashion, Collectibles, Coupons and More Online Shopping | eBay<br />
<a href=http://www.ebay.co.uk target=_blank> www.ebay.co.uk </a> |
<a href=http://www.ebay.com.my target=_blank> www.ebay.com.my </a>
</div>
</div>
testhttp://www.blogger.com/profile/13492917135106977846noreply@blogger.com1tag:blogger.com,1999:blog-7287728670971123103.post-75636734774615979112013-06-17T20:30:00.001+05:302014-11-19T20:07:14.056+05:30Pointers In C
<div dir="ltr" style="text-align: left;" trbidi="on">
<head>
<meta name="keywords" content="C, C++, pointers, tutorial, addressing" />
<style>
img
{
align:center;
}
</style>
</head>
Pointers are very useful while programming in C and they are easy to learn.<br />
We start discussion with what are pointers and why they are used.<br />
<br />
When you create a variable in C, some memory is allocated for it from primary memory (RAM) and we can refer to that memory location by the name of the variable.<br />
For example consider <span class="ccode"> int var; </span>. Now a memory location will be allocated to 'var' and we will refer to that location using variable name var.<br />
Now assume that the memory is addressed using sequential numbers, and var is allocated at location 1000. which means if we do <span class="ccode"> var = 10; </span> value 10 will be stored at memory location 1000 and 1001 as int is of 2 bytes.<br />
<br />
1000 -> 0000 1010 (10)<br />
1001 -> 0000 0000 (00)<br />
<br />
Thus we can say that a variable is a memory location allocated during execution and its value is value stored in corrosponding location. <br />
We can obtain address of any variable using '&' operator, so in our example &var will be 1000.<br />
<br />
<br />
Now different type of variables store different type of values like integer digit, floating point data, character data etc. The vary same way pointer are also variables and they store the address of other variables.<br />
They are declared same way normal variable but with an extra * before their name.<br />
For example <span class="ccode"> int *ptr; </span>. This statement will declare a variable of int* type which means it is a pointer and it will contain the address of int variable.<br />
<br />
<br />
There are two ways of assigning a value (address of a variable) to the pointer.<br />
<ol>
<li> At declaration time :
<div id="sc" style="text-align:center;">
int *ptr = &var;
</div>
Here ptr is declared as a pointer to int and address of var is stored in ptr.
</li>
<li> After declaration :
<div id="sc" style="text-align:center;">
int *ptr;
ptr = &var;
</div>
Here we first declare the pointer and then assign the value.
</li>
</ol>
<br />
<br />
Note that we can not assign value to the pointer directly like <span class="ccode"> ptr = 1000; </span> or <span class="ccode"> int *ptr = 1000; </span>. Only assignment through & operator or malloc/calloc/reaclloc is allowed with exception being 0 and null i.e. <span class="ccode"> ptr = 0; </span> or <span class="ccode"> ptr = null </span> is allowed.
Also note that pointer is also a variable and its value is also stored at some memory location.<br />
Consider following figure.<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-yZHbhzp4YZU/Ub8esVJkpGI/AAAAAAAAAPA/8PD3OKT4H50/s1600/pointers1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img align="centre" border="0" height="400" src="http://3.bp.blogspot.com/-yZHbhzp4YZU/Ub8esVJkpGI/AAAAAAAAAPA/8PD3OKT4H50/s400/pointers1.png" width="307" /></a></div>
Here we can see that var is allocated memory location 1000 and its value is 1234 and ptr is allocated memory location 2000 and its value is 1000 which is address of var.
Thus value of ptr and &var is same as &var gives address of var and so does ptr.<br />
Now if we want to access any variable pointer by a pointer we use dereference operator or indirection operator which is * in C.
So writing *ptr will yield the same value as the var. <br />
Thus we can use pointer to access the address of a variable and also the value.
Also note that a int* type pointer can only point to a int variable but a void* pointer also called generic poiner can point to variable of any datatype.<br />
<h3>
Pointer To Pointer: </h3>
A pointer can be used to store address of a variable like int, float, char, it can also point to another pointer i.e. store address of another pointer, such pointers are called pointer to pointer. <br />
Pointer to pointer can be declared using <span class="ccode"> data-type **ptrptr; </span>
Consider following fragment of the code.<br />
<div id="src">
int i=18;
int *ptr = &i;
int **ptrptr = &p;
</div>
<br />
Here ptrptr is a pointer to an int pointer ptr and ptr is a pointer to an int.
Following figure illustrates the above scenario.<br />
<div class="separator" style="clear: both; text-align: center;"><a href="http://4.bp.blogspot.com/-h970EgZNApo/Ub8juxAPjHI/AAAAAAAAAPQ/KoH9I1B6Ado/s1600/pointer2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-h970EgZNApo/Ub8juxAPjHI/AAAAAAAAAPQ/KoH9I1B6Ado/s320/pointer2.png" /></a></div>
<br />
As we can see here we can also use ptrtpr to get value stored in i.<br />
<br />
<br />
The * operator is evaluated as following.
Suppose we have ***x then it is evaluated as *(*(*x)).
So we can evaluate it as first get the value stored as address x say y, so expression becomes *(*y). Now again get the value stored at address y say z, so expression is now *z which is value stored at address z.
<br />
<br />
For our case **ptrptr means get the value stored at address 2000 which is 1000 and then get the value stored at 1000 which is 18.
<br />
<br />
<br />
Summary : <br />
A variable is a memory location with a name given to it and it declared like data-type i;<br />
A pointer variable is declared as data-type *ptr; and it points to a variable declared with same data-type.<br />
A pointer can be assigned value using & operator.<br />
Value of a variable pointed by a pointer is retrieved using * operator.<br />
A Pointer to pointer is a pointer that points to a pointer that is it stores the address of a pointer.<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div id="ads">
Ads :<br />
Buy Sony, Canon, JVC Cameras on <a href="http://www.ebay.com/sch/Camcorders-/11724/i.html" target=_blank> www.ebay.com </a> <br>
Electronics, Cars, Fashion, Collectibles, Coupons and More Online Shopping | eBay<br />
<a href=http://www.ebay.co.uk target=_blank> www.ebay.co.uk </a> |
<a href=http://www.ebay.com.my target=_blank> www.ebay.com.my </a>
</div>
<br /></div>
testhttp://www.blogger.com/profile/13492917135106977846noreply@blogger.com1tag:blogger.com,1999:blog-7287728670971123103.post-84812148176430928862013-05-19T11:52:00.001+05:302014-11-19T20:08:36.242+05:30Starting file download with Javascript<div dir="ltr" style="text-align: left;" trbidi="on">
<meta name="keywords" content="tutorial, download, initiate, javascript, php, iframe, html, dynamic" />
<style>
#ads
{
background-color:grey;
color:white;
}
#sc
{
background-color:black;
color:white;
}
</style>
Ever wondered how many sites triggers download after a given timeinterval or by pressing a button or clicking a link.
<br>
In this tutorial I'm going to show you how to various methods initiate downloads from your website.
<ol>
<li>
<h4>Simple Old Method : </h4>
This is the simpleset method to start download, just create a <a> and point it to your file location.
<code><pre id=sc>
<a href="file.ext" > Click Here <a> To Download
</pre></code>
</li>
<li>
<h4> Javascript based download </h4>
We can use a simple javascript to start file download. We will use <code>window.location</code> method to initiate the download.
<br>
HTML code :
<code><pre id=sc>
<input type="button" value="Download" onClick="download('file.ext')" >
</pre></code>
<br>
JavaScript Code:
<code><pre id=sc>
<script>
function download(file)
{
window.location=file;
}
</script>
</pre></code>
</li>
<li>
<h4>Download using javascript and Iframe</h4>
<code><pre id=sc>
<iframe id="frame" style="display:none"></iframe>
<a href="javascript:download('file.ext')">download</a>
</pre></code>
<code><pre id=sc>
<script type="text/javascript">
function download(path)
{
var ifrm = document.getElementById("frame");
ifrm.src = path;
}
</script>
</pre></code>
</li>
<li>
<h4> Download using Javascript, Iframe and PHP </h4>
Create a Link :
<code><pre id=sc>
<iframe id="frame" style="display:none"></iframe>
<a href="javascript:download('file.ext')">download</a>
</pre></code>
Javascript:
<code><pre id=sc>
<script type="text/javascript">
function download(path)
{
var ifrm = document.getElementById(frame);
ifrm.src = "download.php?path="+path;
}
</script>
</pre></code>
Code for download.php file :
<code><pre id=sc>
<?php
header("Content-Type: application/octet-stream");
header("Content-Disposition: attachment; filename=".$_GET['path']);
readfile($_GET['path']);
?>
</pre></code>
</li>
<li>
<h4> Javascript based download with timer</h4>
Above method can be used to start a javascript based timer and at the end of timer download will start.<br>
Simply put the code in file and it will start the timer.
<br>After time is up we can either display link or directly start download.
<br>You can use all of above method with the timer with few changes.
HTML code:
<code><pre id=sc>
<div id="counter-text"> Please Wait For <span id="counter"> </span> Seconds.
</div>
<a href="javascript:download('file.ext')" style="display:none" id="link">
Click To Download </a>
</pre></code>
JavaScript Code:
<code><pre id=sc>
<script>
time = 5;
document.getElementById("counter").innerHTML = time;
timer = setInterval("count()",1000);
function count()
{
if(time == 1)
{
//Cleare Timer and remove counter from page
clearInterval(timer);
document.getElementById("counter-text").style.display="none";
//If you want to display link
document.getElementById("link").style.display="block";
//Or directly start download
//download('file.ext');
}
else
{
time--;
document.getElementById("counter").innerHTML = time;
}
}
function download(file)
{
window.location=file;
}
</script>
</pre></code>
</li>
</ol>
<div id="ads">
Ads :<br />
Buy Apple Iphone 5, iphone 4S On <a href="http://www.ebay.com/electronics/iphone" target=_blank> www.ebay.com </a> <br>
Electronics, Cars, Fashion, Collectibles, Coupons and More Online Shopping | eBay<br />
<a href=http://www.ebay.co.uk target=_blank> www.ebay.co.uk </a> |
<a href=http://www.ebay.com.my target=_blank> www.ebay.com.my </a>
</div>
<h3>Related Posts : </h3>
<ul>
<li> <a href="http://thezedienblog.blogspot.com/2014/02/submitting-and-securing-form-data-with.html">Submitting and Securing the form data with Javascript </a> </li>
<li> <a href="http://khuntronak.blogspot.com/2014/04/html5-Web-worker-Multithreading-in-javascript.html">Using HTML5 Web Worker: Introducing Multithreading in JavaScript </a> </li>
</ul>
</div>
testhttp://www.blogger.com/profile/13492917135106977846noreply@blogger.com14tag:blogger.com,1999:blog-7287728670971123103.post-43546141239129767962013-05-17T23:43:00.001+05:302014-11-19T20:09:26.961+05:30PHP MySQLI Tutorial<div dir="ltr" style="text-align: left;" trbidi="on">
<meta name="keywords" content="php, mysqli, mysql, database, tutrial, difference" />
<style>
#ads
{
background-color:grey;
color:white;
}
#sc
{
background-color:black;
color:white;
}
</style>
<h3> What is MySQLI : </h3>
The MySQLi Extension (MySQL Improved) is a relational database driver used in the PHP programming language to provide an interface with MySQL databases.<br>
MySQLi is an improved version of the older PHP MySQL driver, offering various benefits.<br>
The developers of the PHP programming language recommend using MySQLi when dealing with MySQL server versions 4.1.3 and newer (takes advantage of new functionality).
<h3> Why Mysqli : </h3>
The MySQLi extension provides various benefits with respect to its predecessor, the most prominent of which are:
<ul>
<li>An object-oriented interface</li>
<li>Support for prepared statements</li>
<li>Support for multiple statements</li>
<li>Support for transactions</li>
<li>Enhanced debugging support</li>
<li>Embedded server support</li>
</ul>
<h3> MySQLi Vs MySQL </h3>
<table>
<tr>
<th></th>
<th>MySQLi </th>
<th>MySQL </th>
</tr>
<tr>
<td>PHP version introduced</td>
<td>5.0</td>
<td>Prior to 3.0</td>
</tr>
<tr>
<td>Included with PHP 5.x</td>
<td>yes</td>
<td>Yes</td>
</tr>
<tr>
<td>MySQL development status</td>
<td>Active development</td>
<td>Maintenance only</td>
</tr>
<tr>
<td>Recommended by MySQL for new projects</td>
<td>Yes - preferred option</td>
<td>No</td>
</tr>
<tr>
<td>API supports Charsets</td>
<td>Yes</td>
<td>No</td>
</tr>
<tr>
<td>API supports server-side Prepared Statements</td>
<td>Yes</td>
<td>No</td>
</tr>
<tr>
<td>API supports Stored Procedures</td>
<td>Yes</td>
<td>No</td>
</tr>
<tr>
<td>API supports Multiple Statements</td>
<td>Yes</td>
<td>No</td>
</tr>
<tr>
<td>Supports all MySQL 4.1+ functionality</td>
<td>Yes</td>
<td>No</td>
</tr>
</table>
<br><br>
Here is a simple code that implements mysqli <br>
<div id=sc> <pre>
<?php
//CONNECT TO THE DATABASE
$DB_HOST = 'HOST';
$DB_USER = 'USERNAME';
$DB_PASS = 'PASSWORD';
$DB_NAME = "mysqlitest";
$mysqli = new mysqli($DB_HOST, $DB_USER, $DB_PASS, $DB_NAME);
if (mysqli_connect_errno()) {
printf("Connect failed: %s\n", mysqli_connect_error());
exit();
}
//CREATE TABLE
$q = "CREATE TABLE user (id int AUTO_INCREMENT PRIMARY KEY,
name varchar(30))";
$mysqli->query($q);
//INSERT FEW VALUES
$q = "INSERT INTO user VALUES (NULL, 'abc')";
$mysqli->query($q);
$q = "INSERT INTO user VALUES (NULL, 'bcd')";
$mysqli->query($q);
$q = "INSERT INTO user VALUES (NULL, 'xyz')";
$mysqli->query($q);
//SELECT A USER
$q = "SELECT * FROM user WHERE id=3";
$result = $mysqli->query($q) or die($mysqli->error.__LINE__);
// GOING THROUGH THE DATA
if($result->num_rows > 0) {
while($row = $result->fetch_assoc()) {
echo $row['name'];
}
}
else {
echo 'NO RESULTS';
}
// CLOSE CONNECTION
mysqli_close($mysqli);
?>
</pre>
</div>
<div id="ads">
Ads :<br />
Buy iPad Tablet eBook Reader on <a href="http://www.ebay.com/sch/iPads-Tablets-eBook-Readers-/171485/i.html" target=_blank> www.ebay.com </a> <br>
Electronics, Cars, Fashion, Collectibles, Coupons and More Online Shopping | eBay<br />
<a href=http://www.ebay.co.uk target=_blank> www.ebay.co.uk </a> |
<a href=http://www.ebay.com.my target=_blank> www.ebay.com.my </a>
</div>
<br /></div>
testhttp://www.blogger.com/profile/13492917135106977846noreply@blogger.com3tag:blogger.com,1999:blog-7287728670971123103.post-80743223366602575382013-05-15T16:24:00.000+05:302014-11-19T20:09:47.043+05:30How to upload file to server in android
<style>
#ads
{
background-color:grey;
color:white;
}
#sc
{
background-color:black;
color:white;
}
</style>
<meta name="keywords" content="upload, file, http, android, server, app, java, apache, http, mime" />
<br />
<div dir="ltr" style="text-align: left;" trbidi="on">
<div>
<div>
If you are building an app that requires files to be uploaded on server you will need to follow this method. By using this method, you will be able to upload a file from your SD Card.<br />
<br />
We will be using httpmime-4.2.5.jar for this tutorial. You can download it from <a href="http://hc.apache.org/downloads.cgi" target="_blank">here</a>. Extract the zip file and you will find jar file under lib folder.<br />
<br />
<br />
<ol style="text-align: left;">
<li>Create a new android project in Eclipse, and add the jar file to lib folder.</li>
<li>Add android.permission.INTERNET and android.permission.WRITE_EXTERNAL_STORAGE in your manifest file. </li>
<li>Use the following code :</li>
</ol>
</div>
</div>
<div id="sc" style="text-align: left;">
<pre> String address;
MultipartEntity entity;
File f;
FileBody fb;
entity = new MultipartEntity(
HttpMultipartMode.BROWSER_COMPATIBLE);
address = Environment.getExternalStorageDirectory()
+ "/temp.dat";
f = new File(address);
fb = new FileBody(f, "application/octect-stream");
entity.addPart("file", fb);
HttpClient httpclient = new DefaultHttpClient();
HttpPost httppost = new HttpPost("Your URL Here");
httppost.setEntity(entity);
HttpResponse response = httpclient.execute(httppost);
BufferedReader bufferedReader = new BufferedReader(
new InputStreamReader(
response.getEntity().getContent()));
StringBuffer stringBuffer = new StringBuffer("");
String line = "";
String LineSeparator = System.getProperty("line.separator");
while ((line = bufferedReader.readLine()) != null) {
stringBuffer.append(line + LineSeparator);
}
bufferedReader.close();
return stringBuffer.toString();
} catch (ClientProtocolException e) {
return e.toString();
} catch (IOException e) {
return e.toString();
} </pre>
</div>
Here we use MultipartEntity from the http library to add file for uploading.<br />
<div style="text-align: center;">
<pre>f = new File(address);</pre>
<pre>fb = new FileBody(f, "application/octect-stream");
entity.addPart("file", fb);</pre>
</div>
<div style="text-align: left;">
We select the file given by address and then we get filebody using the FileBody Class and then add it to the entity.</div>
<div style="text-align: center;">
<pre>HttpClient httpclient = new DefaultHttpClient();
HttpPost httppost = new HttpPost("Your URL Here");
httppost.setEntity(entity);
HttpResponse response = httpclient.execute(httppost);</pre>
</div>
We create a new HttpClient and a HttpPost object, set entity and execute the reuqest. <br />
Now android does not allow us to use network operations under the main thread, either we have to create a new thread or we use AsyncTask.
You can Find the full source code <a href="http://thezedienblog.blogspot.in/p/how-to-upload-file-in-android.html" target=_blank> here </a> or download it <a href="http://www.mediafire.com/view/?icju1t5kq6i64em" target=_blank> here </a> .
<h5> You can also use FTP library to uplaod the file which is better than this approach as described <a href="http://thezedienblog.blogspot.in/2013/06/how-to-upload-file-to-server-in-android.html">here</a>.</h5>
<div id="ads">
Ads :<br />
Buy Hard Drive, RAM, CD, DVD, USB on <a href="http://www.ebay.com/sch/Drives-Storage-Blank-Media-/165/i.html" target=_blank> www.ebay.com </a> <br>
Electronics, Cars, Fashion, Collectibles, Coupons and More Online Shopping | eBay<br />
<a href=http://www.ebay.co.uk target=_blank> www.ebay.co.uk </a> |
<a href=http://www.ebay.com.my target=_blank> www.ebay.com.my </a>
</div>
</div>
testhttp://www.blogger.com/profile/13492917135106977846noreply@blogger.com2tag:blogger.com,1999:blog-7287728670971123103.post-40913949393240304942012-12-04T11:28:00.000+05:302014-11-19T20:10:12.359+05:30Some useful shortcut keys for windows<head>
<meta name="keywords" content="windows, shortcut, alt, ctrl, window, minimize, maximize, keyboard, switch, resize, ahzaz, blog" />
<style>
#tab
{
background:#FFE4C4;
color:black;
}
td
{
border-bottom-style: solid;
border-bottom-width: 1px;
}
</style>
<div dir="ltr" style="text-align: left;" trbidi="on">
We often use the mouse to do many things on our pc or laptop. Using mouse is easy but some time slow in accessing some functions. So, we have some shortcut key for many functions that windows provides.
<br>
Here is the list :
<div id=tab>
<center><pre>
<table>
<tr>
<td> ctrl + w </td>
<td> Closes the current window </td>
<tr>
<td> ctrl + e <br> ctrl + f</td>
<td> Reach to the search box (Windows 7) </td>
<tr>
<td> ctrl + r </td>
<td> Refresh </td>
<tr>
<td> ctrl + n </td>
<td> Opens new copy of same window </td>
<tr>
<td> alt + p </td>
<td> Toggle show file preview </td>
<tr>
<td> alt + d </td>
<td> Direct access to address bar </td>
<tr>
<td> alt + tab </td>
<td> Switch windows </td>
<tr>
<td> alt + space </td>
<td> Open command menu </td>
<tr>
<td> window key + up arrow </td>
<td> Maximizes window </td>
<tr>
<td> window key + down arrow </td>
<td> If window is maximized, restores it<br> else minimizes it </td>
<tr>
<td> window key + left arrow </td>
<td> Move window to left </td>
<tr>
<td> window key + right arrow </td>
<td> Move window to right </td>
<tr>
<td> window key + e </td>
<td> Opens explorer </td>
<tr>
<td> window key + d </td>
<td> Shows desktop </td>
<tr>
<td> window key + f </td>
<td> Open new search window </td>
<tr>
<td> window key + l </td>
<td> Switch user </td>
<tr>
<td> window key + f </td>
<td> Open new search window </td>
<tr>
<td> window key + x </td>
<td> Opens windows mobility center </td>
<tr>
<td> window key + b </td>
<td> reach to notification area<br> (right side on taskbar) </td>
<tr>
<td> window key + m </td>
<td> minimize current window </td>
<tr>
<td> window key + tab </td>
<td> Switch windows </td>
<tr>
<td> ctrl + shift + esc </td>
<td> Open task manager </td>
<tr>
<td> ctrl + esc / Window key</td>
<td> Open start menu </td>
<tr>
<td> ctrl + shift + n </td>
<td> New folder </td>
<tr>
<td> windows + number key </td>
<td> Open n<sup>th</sup> item from task bar<br> (Window+1 will open 1st item) </td>
</table></pre>
</center>
</div>
<div id=seealso>
See also :<br>
<a href=http://thezedienblog.blogspot.in/2012/09/how-to-change-facebook-default-theme.html> How to change Facebook default theme </a><br>
<a href=http://thezedienblog.blogspot.in/2012/09/sorting-with-sound-effects.html>Sorting with sound effects</a><br>
<a href=http://thezedienblog.blogspot.in/2012/09/useful-run-commands.html> Useful run commands</a>
</div>
<br />
<div id="ads">
Ads :<br />
Buy Laptops and netbooks : HP, DELL, SONY, ASUS on <a href="http://www.ebay.com/sch/Drives-Storage-Blank-Media-/165/i.html" target=_blank> www.ebay.com </a> <br>
Electronics, Cars, Fashion, Collectibles, Coupons and More Online Shopping | eBay<br />
<a href=http://www.ebay.co.uk target=_blank> www.ebay.co.uk </a> |
<a href=http://www.ebay.com.my target=_blank> www.ebay.com.my </a>
</div>
</div>testhttp://www.blogger.com/profile/13492917135106977846noreply@blogger.com0tag:blogger.com,1999:blog-7287728670971123103.post-31731262496190104372012-09-19T22:53:00.000+05:302013-09-01T03:03:20.646+05:30Sorting With Sound Effects<head>
<style>
#ads
{
background-color:grey;
color:white;
}
</style>
</head>
<div dir="ltr" style="text-align: left;" trbidi="on">
Sorting, huh.. whenever you heard about, it is always a boring topic. But what about adding a little sound effect to it.
<br />Here are some videos showing how these algorithms work with a little sound effect. Instead of values for data sound peach is used.
<br /><br /><br /><center>
<iframe allowfullscreen="allowfullscreen" frameborder="0" height="315" src="http://www.youtube.com/embed/t8g-iYGHpEA" width="420"></iframe>
<br />
<iframe allowfullscreen="allowfullscreen" frameborder="0" height="315" src="http://www.youtube.com/embed/iXAjiDQbPSw" width="420"></iframe>
<br />
<iframe allowfullscreen="allowfullscreen" frameborder="0" height="315" src="http://www.youtube.com/embed/m1PS8IR6Td0" width="420"></iframe>
<br /><br /><br />
And What about explaining insertion sort in form of a folk song :)
<br />
<iframe allowfullscreen="allowfullscreen" frameborder="0" height="315" src="http://www.youtube.com/embed/ROalU379l3U" width="560"></iframe>
</center>
<br />
<h3>
Hey, if you liked it, please click on ad below... </h3>
<br />
<div id="ads">
Ads :<br />
Buy Apple MAC, iMAC, MAC mini on <a href="http://www.ebay.com/sch/Apple-Desktops-AllInOnes-/111418/i.html" target=_blank> www.ebay.com </a> <br>
Electronics, Cars, Fashion, Collectibles, Coupons and More Online Shopping | eBay<br />
<a href=http://www.ebay.co.uk target=_blank> www.ebay.co.uk </a> |
<a href=http://www.ebay.com.my target=_blank> www.ebay.com.my </a>
</div>
</div>testhttp://www.blogger.com/profile/13492917135106977846noreply@blogger.com0tag:blogger.com,1999:blog-7287728670971123103.post-71780078403283442352012-09-17T19:22:00.001+05:302014-11-19T20:10:31.055+05:30How to change Facebook default theme<head>
<meta name="keywords" content="facebook change color theme javascript edit colour modify script" />
<style>
#ads
{
background-color:grey;
color:white;
}
#sc
{
background-color:black;
color:white;
}
</style>
</head>
<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-2qBwtrv9VxA/UFckwDnFjCI/AAAAAAAAAGM/VYvLEfge1uE/s1600/fb.png" imageanchor="1" style="margin-left:1em; margin-right:1em"><img border="0" height="173" width="320" src="http://3.bp.blogspot.com/-2qBwtrv9VxA/UFckwDnFjCI/AAAAAAAAAGM/VYvLEfge1uE/s320/fb.png" /></a></div>
Have you ever thought how good it would be if you could change default theme of Facebook. Yes, now you can do this, and do it very easily.
<br>You Just have to use the script provided below..
<br> Instructions :
<br>If you are using IE then just open Facebook and copy paste the script in address bar and press enter.
<br>If you are using Firefox Create a bookmark button on bookmark bar with the script as loaction (To add bookmark to bookmark toolbar goto bookmarks->bookmarks Toolbar). Now open Facebook and click on bookmarked button. If you cant see bookmarks toolbar select View->toolbars->bookmarks Toolbar.
This is just a test version that changes all the colors.
<br> NOTE : you can enter name of color or hex code in prompt box.
If you like it please click on the ad below.
<br>
<div id=sc>
<pre><b>
javascript:change();
function change()
{
var x = document.getElementsByTagName('title');
x[0].innerHTML = "ZZ Script | "+x[0].innerHTML;
var col = prompt("Enter Color");
x = document.getElementsByTagName('div');
var i=0;
while(i < x.length)
{
x[i].style.backgroundColor=col;
x[i].style.borderColor=col;
i++;
}
x = document.getElementsByTagName('li');
var i=0;
while(i < x.length)
{
x[i].style.backgroundColor=col;
x[i].style.borderColor=col;
i++;
}
x = document.getElementsByTagName('ul');
var i=0;
while(i < x.length)
{
x[i].style.backgroundColor=col;
x[i].style.borderColor=col;
i++;
}
x = document.getElementsByTagName('a');
var i=0;
while(i < x.length)
{
x[i].style.backgroundColor=col;
x[i].style.borderColor=col;
i++;
}
x = document.getElementsByTagName('span');
var i=0;
while(i < x.length)
{
x[i].style.backgroundColor=col;
x[i].style.borderColor=col;
i++;
}
x = document.getElementsByTagName('input');
var i=0;
while(i < x.length)
{
x[i].style.backgroundColor=col;
x[i].style.borderColor=col;
i++;
}
}
</b></pre>
</div>
<div>
See Also : <br>
<a href=http://thezedienblog.blogspot.com/2012/09/how-to-triple-boot-windows-xpwindows.html target=_blank >How To Triple Boot (Windows XP/Windows 7/Ubuntu) </a>
<br><a href=http://thezedienblog.blogspot.com/2012/09/useful-run-commands.html target=_blank > Useful Run Commands </a>
<br> <a href=http://thezedienblog.blogspot.com/2012/09/how-to-play-nintendo-games-on-your.html target=_blank> How to play Nintendo games on your computer </a>
</div>
<div id="ads">
Ads :<br />
Buy Amazon Kindle Fire, Microsoft Surface, Apple Ipad on <a href="http://www.ebay.com/sch/iPads-Tablets-eBook-Readers-/171485/i.html" target=_blank> www.ebay.com </a> <br>
Electronics, Cars, Fashion, Collectibles, Coupons and More Online Shopping | eBay<br />
<a href=http://www.ebay.co.uk target=_blank> www.ebay.co.uk </a> |
<a href=http://www.ebay.com.my target=_blank> www.ebay.com.my </a>
</div>
<br />
</div>testhttp://www.blogger.com/profile/13492917135106977846noreply@blogger.com0tag:blogger.com,1999:blog-7287728670971123103.post-23655124350752103372012-09-16T16:39:00.000+05:302013-09-01T03:07:50.114+05:30How to play Nintendo games on your computer<head>
<meta name="keywords" content="nintendo, games, emulator, mario rom" />
<style>
#ads
{
background-color:grey;
color:white;
}
</style>
</head>
<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-SQEeZhcMWfk/UFWehgWIKnI/AAAAAAAAAF4/TUhodsi_IVQ/s1600/super-mario-bros.gif" imageanchor="1" style="margin-left:1em; margin-right:1em"><img border="0" height="288" width="320" src="http://2.bp.blogspot.com/-SQEeZhcMWfk/UFWehgWIKnI/AAAAAAAAAF4/TUhodsi_IVQ/s320/super-mario-bros.gif" /></a>
</div>
<br> Ever wondered how to play this old Nintendo games on your computer !!
<br> Yes, you can play these games on your computer using emulators. An emulator is hardware or software or both that duplicates (or emulates) the functions of a first computer system (the guest) in a different second computer system (the host), so that the emulated behavior closely resembles the behavior of the real system. (Wikipedia)
<br> So to play these old games you can use different emulator. One of them is jnes (links at bottom of this post).
<br> Once you have downloaded jnes extract it and run the executable file. From file browsers nevigate to games folder emulator directory select super_mario_bros.nes file and the game will start. goto options->input and change the keyboard setting. If you want to play more games google for .nes file for your game.
Not only Nintendo you can also use emulators for PSP, PS-II, PS-I, XBOX, etc.
<br>
Here are some links from where you can download .nes files : <br>
<a href=http://www.freeroms.com/nes.htm> www.freeroms.com </a> <br>
<a href=http://www.nesfiles.com/> www.nesfiles.com </a><br>
<a href=http://romhustler.net/roms/nes> www.romhustler.net </a> <br>
Download Jnes <h4> <a href=http://adf.ly/CsnU5>Click here</a> </h4> <br>
<br>
<div id="ads">
Ads :<br />
Buy Smart Watches on <a href="http://www.ebay.com/sch/Smart-Watches-/178893/i.html" target=_blank> www.ebay.com </a> <br>
Electronics, Cars, Fashion, Collectibles, Coupons and More Online Shopping | eBay<br />
<a href=http://www.ebay.co.uk target=_blank> www.ebay.co.uk </a> |
<a href=http://www.ebay.com.my target=_blank> www.ebay.com.my </a>
</div>
</div>
testhttp://www.blogger.com/profile/13492917135106977846noreply@blogger.com0tag:blogger.com,1999:blog-7287728670971123103.post-70930351083196605332012-09-15T22:11:00.000+05:302013-09-01T03:09:20.967+05:30Useful Run Commands<div dir="ltr" style="text-align: left;" trbidi="on">
<head>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-34857725-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<style>
#ads
{
background-color:grey;
color:white;
}
</style>
</head>
<div dir="ltr" style="text-align: left;" trbidi="on">
<b> cmd :</b> Used to open command prompt.<br />
<b>msconfig :</b> Opens configuration windows. You can edit startup programs, boot configuration.<br />
<b>msinfo32 :</b> Provides you full system information like hardware resources, system components and software environment.<br />
<b>regedit :</b> Opens registry editor.<br />
<b>sysedit :</b> Edit system configuration. (USE WITH CARE !!)<br />
<b>winver :</b> Shows you windows version and other info.<br />
<b>compmgmt.msc :</b> Opens Computer management window.<br />
<b>devmgmt.msc :</b> Opens Device manager.<br />
<b>diskmgmt.msc :</b> Disk management Tool.<br />
<b>dfrg.msc :</b> Disk defragmenter tool.<br />
<b>fsmgmt.msc :</b> Manage Shared folders.<br />
<b>gpedit.msc :</b> Group policies editor.<br />
<b>lusrmgr.msc :</b> Opens Local users and groups.<br />
<b>perfmon.msc :</b> Opens Performance monitor.<br />
<b>secpol.msc :</b> Opens Local security settings.<br />
<b>services.msc :</b> Shows Services on machine.
<br />
<br />
See Also : <a href="http://thezedienblog.blogspot.in/2012/09/how-to-triple-boot-windows-xpwindows.html">How To Triple Boot (Windows XP/Windows 7/Ubuntu)</a>
<br />
<div id="ads">
Ads :<br />
Buy Wristwatches, Pocket Watches, Ring Watches on <a href="http://www.ebay.com/sch/Watches-/14324/i.html" target=_blank> www.ebay.com </a> <br>
Electronics, Cars, Fashion, Collectibles, Coupons and More Online Shopping | eBay<br />
<a href=http://www.ebay.co.uk target=_blank> www.ebay.co.uk </a> |
<a href=http://www.ebay.com.my target=_blank> www.ebay.com.my </a>
</div>
</div>
</div>
testhttp://www.blogger.com/profile/13492917135106977846noreply@blogger.com1tag:blogger.com,1999:blog-7287728670971123103.post-44342372498860573562012-09-15T20:56:00.004+05:302012-09-19T19:09:09.770+05:30List Of Shopping Sites In India<div dir="ltr" style="text-align: left;" trbidi="on">
<b><span style="font-size: large;">List Of Shopping sites in India : </span></b><br />
<br />
<span style="font-size: large;">
<a href=http://www.junglee.com target=_blank>www.junglee.com</a><br />
<a href=http://www.jabong.com target=_blank>www.jabong.com</a><br />
<a href=http://www.homeshop18.com target=_blank>www.homeshop18.com</a><br />
<a href=http://www.ebay.com target=_blank>www.ebay.in</a><br />
<a href=http://www.shopping.indiatimes.com target=_blank>www.shopping.indiatimes.com</a><br />
<a href=http://www.flipkart.com/?affid=hahzazgmai target=_blank>www.flipkart.com</a><br />
<a href=http://www.futurebazaar.com target=_blank>www.futurebazaar.com</a><br />
<a href=http://www.snapdeal.com target=_blank>www.snapdeal.com</a></span></div>
testhttp://www.blogger.com/profile/13492917135106977846noreply@blogger.com0tag:blogger.com,1999:blog-7287728670971123103.post-64766802008699439322012-09-12T12:31:00.000+05:302012-12-04T09:41:33.629+05:30How To Triple Boot (Windows XP/Windows 7/Ubuntu)<head>
<meta name="keywords" content="triple boot windows 7 xp ubuntu dual" />
<style>
#ads
{
background-color:grey;
color:white;
}
</style>
<script>
function newwin()
{ window.open('http://www.flipkart.com/hp-v-210-w-8gb-pen-drive-grey/p/itmczbu4vk9w6ugv?pid=ACCCXQ2FAJUZWXSA&affid=hahzazgmai&ref=786a0136-5451-403d-88b0-b3d4399390ee','_blank','height=400, width=700, menubar=no, location=no');
}
</script>
</head>
<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="font-family: Arial,Helvetica,sans-serif;">
Many of us want to <span style="font-family: Arial, Helvetica, sans-serif;">use more than one OS on laptop or PC</span>. </div>
<div style="font-family: Arial,Helvetica,sans-serif;">
One option here is to use some <a href="http://adf.ly/CrHfP" target="_blank">Vmware</a>, <a href="http://adf.ly/CrHl3" target="_blank">Virtualbox</a> or some other software like this. These softwares runs other OS on top of the current running OS, like you can run Ubuntu on Windows 7, but do not get some functionality with this option. Now if you do not want to do this, other option is to install other OS along with the current OS, so when you start your machine you can OS to boot from. <div onClick=newwin()><a href="http://thezedienblog.blogspot.in/p/triple-boot-windows-7-windows-xp-ubuntu.html" target="_blank">Click here</a> to know how to do this. </div></div>
<br><br> See Also : <a href=http://thezedienblog.blogspot.in/2012/09/useful-run-commands.html> Useful Run Commands </a>
<div id="ads">
Ads :<br />
Electronics, Cars, Fashion, Collectibles, Coupons and More Online Shopping | eBay<br /><a href=http://www.ebay.com target=_blank>
www.ebay.com </a>
</div>
</div>
testhttp://www.blogger.com/profile/13492917135106977846noreply@blogger.com0tag:blogger.com,1999:blog-7287728670971123103.post-70911520332409928342012-08-25T00:08:00.000+05:302012-08-25T00:08:07.558+05:30Ubuntu One<div dir="ltr" style="text-align: left;" trbidi="on">
Ubuntu one is the cloud service from ubuntu. You can upload your documents and data on the cloud and access it from anywhere. Now ubuntu one work on windows platform too.<br />
A free registration gives you 5.0 GB of storage on cloud. Join the cloud here : <a href="https://one.ubuntu.com/referrals/referee/2366436/">https://one.ubuntu.com/referrals/referee/2366436/</a></div>
testhttp://www.blogger.com/profile/13492917135106977846noreply@blogger.com1tag:blogger.com,1999:blog-7287728670971123103.post-8110083637366861802012-08-16T22:40:00.001+05:302012-08-16T22:48:54.846+05:30Minecraft<div dir="ltr" style="text-align: left;" trbidi="on">
Minecraft an awesome creative game. Although not so good in graphics, it is very nice game. Simply made in Java.<br />
<br />
For more info check : <a href="http://www.minecraft.net/" target="_blank">www.minecraft.net </a><br />
<br /></div>
testhttp://www.blogger.com/profile/13492917135106977846noreply@blogger.com5