<?xml version='1.0' encoding='UTF-8'?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:blogger="http://schemas.google.com/blogger/2008" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-4891879048720738684</atom:id><lastBuildDate>Mon, 02 Sep 2024 00:33:47 +0000</lastBuildDate><category>WebDesign</category><category>Blogger</category><category>PageSpeed</category><category>Article</category><category>JavaScript</category><category>CSS</category><category>Blogger Tips</category><category>PHP</category><category>Tweaks</category><category>jQuery</category><category>Mobile</category><category>Social</category><category>Computer</category><category>Mobile Developer</category><category>Windows 8</category><category>Facebook</category><category>Blogger Mobile</category><category>Blogger Tricks</category><category>Computer Tips</category><category>Drupal</category><category>Gadget</category><category>Google Chrome</category><category>Google Plus</category><category>Internet</category><category>Nokia</category><category>Windows 7</category><category>htaccess</category><category>wampserver</category><category>Buttons</category><category>Hosting</category><category>Laravel</category><category>Plugins</category><category>Windows</category><category>domain</category><category>AdSense</category><category>Audio</category><category>Bootstrap</category><category>Codeigniter</category><category>Earnings</category><category>Extensions</category><category>Favicon</category><category>GAE</category><category>Gmail</category><category>Google</category><category>Google Drive</category><category>Google Search</category><category>Homestead</category><category>Monetize</category><category>MultiMedia</category><category>OpenGraph</category><category>Password</category><category>Photoshop</category><category>Programming</category><category>Recent Posts</category><category>SEO</category><category>SSL</category><category>Streaming</category><category>Tooltips</category><category>Vagrant</category><category>Virtualbox</category><category>Webform</category><category>bash</category><category>gist</category><category>hostsupdater</category><category>shell</category><title>Wordpress, Drupal, Bootstrap Tutorials and How-to Tech guides. With SEO best practices in mind.</title><description>WordPress Development tutorials, Drupal Development tutorials, and bootstrap tutorials. Useful snippets. Optimizations for a better web!</description><link>https://aslamise.blogspot.com/</link><managingEditor>noreply@blogger.com (Aslam)</managingEditor><generator>Blogger</generator><openSearch:totalResults>119</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4891879048720738684.post-6417281219542795854</guid><pubDate>Sat, 29 Aug 2020 08:31:00 +0000</pubDate><atom:updated>2020-08-29T14:04:53.062+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">bash</category><category domain="http://www.blogger.com/atom/ns#">gist</category><category domain="http://www.blogger.com/atom/ns#">Laravel</category><category domain="http://www.blogger.com/atom/ns#">shell</category><title>Bash snippet : Recursively delete node_modules, vendor, and .git folder from multiple laravel projects using .sh file</title><description>Usefull for recursively delete node_modules, vendor folders from multiple laravel projects, at once.

&lt;pre&gt;
#!/bin/bash
# This is a recursive delete script for multiple laravel projects 
# @arguments:
#
# Deletes the folders inside the folder where this script.sh file is placed
# Example : If you have many laravel projects inside /var/www/, create script.sh with this contents and run from terminal, sudo bash script.sh
#
# @install: 
# $ chmod +x script.sh
# $ sudo bash script.sh
#
for D in ./*; do
    if [ -d &quot;$D&quot; ]; then
        cd &quot;$D&quot;
            for X in ./*; do
                if [ -d &quot;$X&quot; ]; then
                    #uncomment below line if you want to delete all .zip files in the projects root directory
                    #find . -name &quot;*.zip&quot; -type f | xargs rm -rf   
                    #uncomment below line if you want to delete .git folder in the projects root directory                                     
                    if [ &quot;$X&quot; == &quot;./node_modules&quot; ] || [ &quot;$X&quot; == &quot;./vendor&quot; ]; then 
                        echo &quot;match found&quot;;
                        rm -rf &quot;$X&quot;
                        echo &quot;match deleted&quot;;
                    else 
                        echo &quot;not a match&quot;;
                    fi
                fi
            done
        cd ..
    fi
done
# script.sh;

&lt;/pre&gt;

Usage : create &lt;code&gt;script.sh&lt;/code&gt; file in directory, where all projects are in. 

In terminal, run, &lt;code&gt;sudo bash script.sh&lt;/code&gt;

</description><link>https://aslamise.blogspot.com/2020/08/ash-snippet-recursively-delete-node-modules-vendors-from-multiple-project-at-once.html.html</link><author>noreply@blogger.com (Aslam)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4891879048720738684.post-2356429783775317241</guid><pubDate>Fri, 21 Oct 2016 11:17:00 +0000</pubDate><atom:updated>2016-10-21T16:55:52.786+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Homestead</category><category domain="http://www.blogger.com/atom/ns#">hostsupdater</category><category domain="http://www.blogger.com/atom/ns#">Laravel</category><category domain="http://www.blogger.com/atom/ns#">Vagrant</category><category domain="http://www.blogger.com/atom/ns#">Virtualbox</category><title>Laravel homestead and vagrant-hostsupdater - Automate the hosts file updation in windows for your next homestead project!</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Lets configure homestead.rb to update hosts file using hostsupdater plugin.
in case if you have not yet added this plugin, run &lt;br /&gt;
&lt;pre&gt;&lt;code&gt;vagrant plugin install vagrant-hostsupdater
&lt;/code&gt;&lt;/pre&gt;
from your command prompt.&lt;br /&gt;
Open homestead.rb file in your favorite text editor.&lt;br /&gt;
Find this block at the end, (You can set anywhere but i prefer to add my customizations at the end of the file.)&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;  # Configure Blackfire.io
    if settings.has_key?(&quot;blackfire&quot;)
      config.vm.provision &quot;shell&quot; do |s|
        s.path = scriptDir + &quot;/blackfire.sh&quot;
        s.args = [
          settings[&quot;blackfire&quot;][0][&quot;id&quot;],
          settings[&quot;blackfire&quot;][0][&quot;token&quot;],
          settings[&quot;blackfire&quot;][0][&quot;client-id&quot;],
          settings[&quot;blackfire&quot;][0][&quot;client-token&quot;]
        ]
      end
    end
&lt;/code&gt;&lt;/pre&gt;
And add following code snippet next to the code above.&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;# Updating the hosts file with all the sites that are defined in Homestead.yaml
if Vagrant.has_plugin?(&quot;vagrant-hostsupdater&quot;) &amp;amp;&amp;amp; settings[&quot;hosts_file_additions&quot;] == true
     hosts = []
     settings[&quot;sites&quot;].each do |site|
      hosts.push(site[&quot;map&quot;])
    end
     config.hostsupdater.aliases = hosts
 end
&lt;/code&gt;&lt;/pre&gt;
Save the file.&lt;br /&gt;
Now, lets add hosts in &quot;Homestead.yaml&quot; , usually located in (user.homestead) directory.&lt;br /&gt;
Find the site you want to update hosts for.&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;sites:
    - map: yourdevdomain.app
      to: /home/www/laravel/public
      hosts: 192.168.88.88
&lt;/code&gt;&lt;/pre&gt;
&lt;em&gt;&quot;hosts: 192.168.88.88&quot; is the IP we want our &quot;map: yourdevdomain.app&quot; to be pointed to.&lt;/em&gt;&lt;br /&gt;
at the end of &quot;Homestead.yml&quot;,
Add&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;hosts_file_additions: true
&lt;/code&gt;&lt;/pre&gt;
Save the file.&lt;br /&gt;
Close vagrant if already opened with.&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;vagrant halt
&lt;/code&gt;&lt;/pre&gt;
Run the &lt;br /&gt;
&lt;pre&gt;&lt;code&gt;vagrant up --provision 
&lt;/code&gt;&lt;/pre&gt;
command.&lt;br /&gt;
And you will be able to access &quot;yourdevdomain.app&quot;.&lt;br /&gt;
You can check the &quot;hosts&quot; file, to see the host is updated.&lt;/div&gt;
</description><link>https://aslamise.blogspot.com/2016/10/laravel-homestead-and-vagrant-hostsupdater-plugin.html</link><author>noreply@blogger.com (Aslam)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4891879048720738684.post-341587003417106229</guid><pubDate>Tue, 17 May 2016 09:07:00 +0000</pubDate><atom:updated>2016-05-17T15:05:14.222+05:30</atom:updated><title> LARAVEL 5.2 - Using username instead of email in default auth scaffold</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
In laravel 5.2, you can use &lt;code&gt;php artisan make:auth&lt;/code&gt; command to generate default auth scaffold.&lt;br /&gt;
&lt;br /&gt;
And you will be able to use laravel&#39;s default auth system, which using email and password as credentials.&lt;br /&gt;
&lt;br /&gt;
Now, you want to use &quot;&lt;code&gt;username&lt;/code&gt;&quot; instead of &quot;&lt;code&gt;email&lt;/code&gt;&quot; in login page, here is how you can do it.&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLwzM4VlZplC4FlrivA_Cx763_02CvXbzq3Xma13QAlQy84kUC5zfHGG-02DCjgF1emaPipdj3TyzqDge1eNDaJMg0Zq_lzJpkDG50EwI4ff-CI_kAySXqFiDAidP1RI6U9anctS5Cl94V/s1600/laravel-5-2-auth-scaffold-username-email.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;252&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLwzM4VlZplC4FlrivA_Cx763_02CvXbzq3Xma13QAlQy84kUC5zfHGG-02DCjgF1emaPipdj3TyzqDge1eNDaJMg0Zq_lzJpkDG50EwI4ff-CI_kAySXqFiDAidP1RI6U9anctS5Cl94V/s640/laravel-5-2-auth-scaffold-username-email.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;/h3&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;/h3&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
STEP 1: OVERRIDING FUNCTION&lt;/h3&gt;
&lt;br /&gt;
Lets have a look at default authentication system files,&lt;br /&gt;
&lt;br /&gt;
In &lt;code&gt;line number : 191&lt;/code&gt; of&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;vendor\laravel\framework\src\Illuminate\Foundation\Auth\AuthenticatesUsers.php&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
There will be this function &lt;code&gt;loginUsername&lt;/code&gt;,&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;&amp;nbsp; &amp;nbsp;/**
&amp;nbsp; &amp;nbsp; &amp;nbsp;* Get the login username to be used by the controller.
&amp;nbsp; &amp;nbsp; &amp;nbsp;*
&amp;nbsp; &amp;nbsp; &amp;nbsp;* @return string
&amp;nbsp; &amp;nbsp; &amp;nbsp;*/
&amp;nbsp; &amp;nbsp; public function loginUsername()
&amp;nbsp; &amp;nbsp; {
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return property_exists($this, &#39;username&#39;) ? &lt;b style=&quot;background-color: #444444;&quot;&gt;$this-&amp;gt;username : &#39;email&#39;;&lt;/b&gt;
&amp;nbsp; &amp;nbsp; }&lt;/pre&gt;
&lt;br /&gt;
As you can see, &lt;code&gt;username: &#39;email&#39;;&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Lets override this function in &lt;code&gt;app\Http\Controllers\Auth\AuthController.php&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Copy and paste same function from &lt;code&gt;AuthenticatesUsers.php&lt;/code&gt; and Paste in &lt;code&gt;AuthController.php&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;&amp;nbsp; &amp;nbsp;/**
&amp;nbsp; &amp;nbsp; &amp;nbsp;* Get the login username to be used by the controller.
&amp;nbsp; &amp;nbsp; &amp;nbsp;*
&amp;nbsp; &amp;nbsp; &amp;nbsp;* @return string
&amp;nbsp; &amp;nbsp; &amp;nbsp;*/
&amp;nbsp; &amp;nbsp; public function loginUsername()
&amp;nbsp; &amp;nbsp; {
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return property_exists($this, &#39;username&#39;) ? &lt;b style=&quot;background-color: #444444;&quot;&gt;$this-&amp;gt;username : &#39;username&#39;;&lt;/b&gt;
&amp;nbsp; &amp;nbsp; }&lt;/pre&gt;
&lt;br /&gt;
&lt;h3&gt;
STEP 2: UPDATING VIEWS&lt;/h3&gt;
&lt;br /&gt;
Lets update &lt;code&gt;resources\views\auth\login.blade.php&lt;/code&gt; &#39;s login form by replacing email label, email field to textfield with a username label.&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;&amp;lt;div class=&quot;form-group{{ $errors-&amp;gt;has(&#39;username&#39;) ? &#39; has-error&#39; : &#39;&#39; }}&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;label class=&quot;col-md-4 control-label&quot;&amp;gt;Username&amp;lt;/label&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;div class=&quot;col-md-6&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;input type=&quot;text&quot; class=&quot;form-control&quot; name=&quot;username&quot; value=&quot;{{ old(&#39;username&#39;) }}&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; @if ($errors-&amp;gt;has(&#39;username&#39;))
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;span class=&quot;help-block&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;strong&amp;gt;{{ $errors-&amp;gt;first(&#39;username&#39;) }}&amp;lt;/strong&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/span&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; @endif
&amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;&lt;/pre&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
We are done, now you can log in with username instead of email in laravel auth scaffold.&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</description><link>https://aslamise.blogspot.com/2016/05/laravel-5-2-using-username-instead-of-email.html</link><author>noreply@blogger.com (Aslam)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLwzM4VlZplC4FlrivA_Cx763_02CvXbzq3Xma13QAlQy84kUC5zfHGG-02DCjgF1emaPipdj3TyzqDge1eNDaJMg0Zq_lzJpkDG50EwI4ff-CI_kAySXqFiDAidP1RI6U9anctS5Cl94V/s72-c/laravel-5-2-auth-scaffold-username-email.PNG" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4891879048720738684.post-6524148750165722656</guid><pubDate>Mon, 04 Apr 2016 15:03:00 +0000</pubDate><atom:updated>2016-04-04T20:39:09.368+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Drupal</category><category domain="http://www.blogger.com/atom/ns#">Password</category><category domain="http://www.blogger.com/atom/ns#">PHP</category><title>Drupal forgot password for admin - best method to reset with PHP file. (If you have FTP Access)</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
You have forgot your Drupal website&#39;s password! That&#39;s horrible. But dont worry, we have a better way to reset password if you have access to your files.&lt;br /&gt;
&lt;br /&gt;
If you remember / have access to the admin email, its OK you can reset by going to forgot password page and by entering your email ID for admin account.&lt;br /&gt;
&lt;br /&gt;
If not, you can try this method. I have combined snippets from around the web to make it work even if you have got blocked from login.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Before doing this , Make sure you have write access to your drupal root folder.&lt;br /&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
Create a .php file in your drupal root folder. i.e. &quot;cpwd.php&quot;. &amp;nbsp;&lt;/h3&gt;
&lt;br /&gt;
Copy and paste below contents to the file.&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;&amp;lt;?php
define(&#39;DRUPAL_ROOT&#39;, getcwd());
require_once DRUPAL_ROOT . &#39;/includes/bootstrap.inc&#39;;
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
require_once DRUPAL_ROOT . &#39;/includes/password.inc&#39;;
if (isset($_GET[&#39;pass&#39;]) &amp;amp;&amp;amp; !empty($_GET[&#39;pass&#39;])) {
&amp;nbsp; $newhash = &amp;nbsp;user_hash_password($_GET[&#39;pass&#39;]);
}
else {
&amp;nbsp; die(&#39;Retry with ?pass=yourpasswordstring &amp;nbsp;set in the URL&#39;);
}
drupal_flush_all_caches();
print &quot;All cache cleared&amp;lt;br/&amp;gt;&quot;;
db_query(&quot;DELETE FROM {flood} &quot;);
print &quot;All floods cleared&amp;lt;br/&amp;gt;&quot;;
$updatepass = db_update(&#39;users&#39;)
&amp;nbsp; -&amp;gt;fields(array(
&amp;nbsp; &amp;nbsp; &#39;pass&#39; =&amp;gt; $newhash,
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;// Uncomment the following lines to reset the administrative username and/or email address, if necessary.
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // &#39;name&#39; =&amp;gt; &#39;admin&#39;,
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;//&#39;mail&#39; =&amp;gt; &#39;admin@your-domain.com&#39;
&amp;nbsp; ))
&amp;nbsp; -&amp;gt;condition(&#39;uid&#39;, &#39;1&#39;, &#39;=&#39;)
&amp;nbsp; -&amp;gt;execute();

print &quot;Password changed! please delete this file immediately for security purpose!&quot;;
drupal_exit();&lt;/pre&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;
Save the file for once.&lt;/h4&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
Open your web browser, and access the .php file with a pass=yourpasswordstring &amp;nbsp;parameter&lt;/h3&gt;
&lt;br /&gt;
&lt;pre&gt;http://your-drupal-site.dev/cpwd.php?pass=password#123&lt;/pre&gt;
&lt;br /&gt;
If you have correctly called the script with parameters, it will change the password and show you success message.&lt;br /&gt;
&lt;br /&gt;
If not, it will show &quot;Retry with ?pass=yourpasswordstring &amp;nbsp;set in the URL&quot; message.&lt;br /&gt;
&lt;br /&gt;
Please say &quot;Thank you&quot;, if it helped.&lt;br /&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
IMPORTANT!&amp;nbsp;&lt;/h3&gt;
&lt;br /&gt;
Dont forget to delete the created file. once you have changed password, delete this file immediately,&lt;br /&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
EXTRA&lt;/h3&gt;
&lt;br /&gt;
For those who interested, here is the code explanation,&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;define(&#39;DRUPAL_ROOT&#39;, getcwd());
//Instance url of the drupal website stores to &quot;DRUPAL_ROOT&quot;.&lt;/pre&gt;
&lt;br /&gt;
&lt;pre&gt;require_once DRUPAL_ROOT . &#39;/includes/bootstrap.inc&#39;;
// Calling the drupal bootstrap&lt;/pre&gt;
&lt;br /&gt;
&lt;pre&gt;drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
//Setting the DRUPAL_BOOTSTRAP_FULL mode.&lt;/pre&gt;
&lt;br /&gt;
&lt;pre&gt;require_once DRUPAL_ROOT . &#39;/includes/password.inc&#39;;
//getting the password.inc file that is necessary for updating the password.&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;if (isset($_GET[&#39;pass&#39;]) &amp;amp;&amp;amp; !empty($_GET[&#39;pass&#39;])) {
//Checking if &quot;pass&quot; parameter has passed in the url, and its not empty
&amp;nbsp; $newhash = &amp;nbsp;user_hash_password($_GET[&#39;pass&#39;]);
//If set,&amp;nbsp;user_hash_password will convert the password to store in DATABASE and keep in $newhash variable.
}
else {
//If no &quot;pass&quot; parameter called, or its value empty,
&amp;nbsp; die(&#39;Retry with ?pass=yourpasswordstring &amp;nbsp;set in the URL&#39;);
//stopping the script from executing, with an error message
}&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;drupal_flush_all_caches();
// Clearing all drupal caches using&amp;nbsp;drupal_flush_all_caches function.&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;db_query(&quot;DELETE FROM {flood} &quot;);
// Deleting all in &quot;flood&quot; table.
// If you have tried login too many times, it will show a message like this
// &quot;Sorry, there have been more than 5 failed login attempts for this account. It is temporarily blocked. Try again later or request a new password.&quot;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
So, even if the login blocked, we need access once we reset the password. so we delete all from flush table where drupal checking if there any failed login attempts.&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;$updatepass = db_update(&#39;users&#39;)
&amp;nbsp; -&amp;gt;fields(array(
&amp;nbsp; &amp;nbsp; &#39;pass&#39; =&amp;gt; $newhash,
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;// Uncomment the following lines to reset the administrative username and/or email address, if necessary.
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // &#39;name&#39; =&amp;gt; &#39;admin&#39;,
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;//&#39;mail&#39; =&amp;gt; &#39;admin@your-domain.com&#39;
&amp;nbsp; ))
&amp;nbsp; -&amp;gt;condition(&#39;uid&#39;, &#39;1&#39;, &#39;=&#39;)
&amp;nbsp; -&amp;gt;execute();&lt;/pre&gt;
&lt;br /&gt;
Script update the users table with new hashed password that stored earlier.&lt;br /&gt;
&lt;br /&gt;
That&#39;s it, you have changed your drupal password without forgot password option.&lt;br /&gt;
&lt;br /&gt;
If you have suggestions, please put on discussion.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</description><link>https://aslamise.blogspot.com/2016/04/drupal-forgot-password-for-admin-best-method-to-reset-with-php-file.html</link><author>noreply@blogger.com (Aslam)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4891879048720738684.post-7134328690122227803</guid><pubDate>Sat, 25 Jul 2015 08:47:00 +0000</pubDate><atom:updated>2015-07-28T15:40:03.449+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">PHP</category><category domain="http://www.blogger.com/atom/ns#">Windows 7</category><category domain="http://www.blogger.com/atom/ns#">Windows 8</category><title>Installing composer manually and setting composer path in windows 7</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Here is, How you can install composer from command prompt and access by &lt;i&gt;composer&lt;/i&gt;&amp;nbsp;command in WINDOWS 7.&lt;br /&gt;
&lt;br /&gt;
Go to &lt;b&gt;php.exe&lt;/b&gt; located folder. if you are using WampServer, probably&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;&quot;C:\wamp\bin\php\php5.5.12\&quot;&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
press and hold &lt;kbd&gt; CTRL + SHIFT &lt;/kbd&gt; together and right click inside folder, and select &lt;kbd&gt;&quot;open command window here &quot;&lt;/kbd&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
Copy and paste this code in CMD.&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;php -r &quot;readfile(&#39;https://getcomposer.org/installer&#39;);&quot; | php&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
If everything&#39;s fine, it will show message like,&lt;br /&gt;
&quot;&lt;br /&gt;
&lt;pre class=&quot;tr_bq&quot;&gt;#!/usr/bin/env php
All settings correct for using Composer
Downloading...
Composer successfully installed to: C:\wamp\bin\php\php5.5.12\composer.phar
Use it: php composer.phar
&lt;/pre&gt;
&quot;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxdUFxlQCDrWbyfqghlfqqmGu2qxISM7OH49Vmcruib9ltOKdsPY8hdSVFUXWwFwkszsQg4PabQbu6LPXHEQmLKVY0b32dU0RwymheSmBn7OZoudLUzOvBDn2fPlw41zNeqcyTpGvZyTvT/s1600/installing-composer-manually-in-windows-7-using-cmd-2.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxdUFxlQCDrWbyfqghlfqqmGu2qxISM7OH49Vmcruib9ltOKdsPY8hdSVFUXWwFwkszsQg4PabQbu6LPXHEQmLKVY0b32dU0RwymheSmBn7OZoudLUzOvBDn2fPlw41zNeqcyTpGvZyTvT/s1600/installing-composer-manually-in-windows-7-using-cmd-2.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
you can see &lt;b&gt;composer.phar&lt;/b&gt; file in same folder.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Go to C:/ drive and create a folder named &lt;b&gt;composer&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Move downloaded &lt;b&gt;composer.phar&lt;/b&gt; to that folder.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKTTG6P4atH3nFGwowyuVwp6ka6tl85cW0YxvZiE9wZ4MfgJ98TDhfbl1IsnAoKIO31isqcQ_FWmySKI_PlUv52B1nVhMhL0Bw7V9-d3OLEnYZUk8-0xhyphenhyphenomibYG8tlYCLS_k3rOso1BQb/s1600/installing-composer-manually-in-windows-7-using-cmd-3.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKTTG6P4atH3nFGwowyuVwp6ka6tl85cW0YxvZiE9wZ4MfgJ98TDhfbl1IsnAoKIO31isqcQ_FWmySKI_PlUv52B1nVhMhL0Bw7V9-d3OLEnYZUk8-0xhyphenhyphenomibYG8tlYCLS_k3rOso1BQb/s1600/installing-composer-manually-in-windows-7-using-cmd-3.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Create &lt;b&gt;composer.bat&lt;/b&gt; file in same folder and copy below contents to that file.&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;@ECHO OFF
php &quot;%~dp0composer.phar&quot; %*
&lt;/pre&gt;
&lt;br /&gt;
create &lt;code&gt;composer&lt;/code&gt; file. without any extensions, you can do this by opening CMD in this folder and typing &lt;code&gt;type NUL &amp;gt; composer&lt;/code&gt; without Quotes.&lt;br /&gt;
&lt;br /&gt;
and drag that &amp;nbsp;file to your text editor, preferably notepad++ . and paste below contents.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;tr_bq&quot;&gt;#!/bin/sh
dir=$(d=$(dirname &quot;$0&quot;); cd &quot;$d&quot; &amp;amp;&amp;amp; pwd)
# see if we are running in cygwin by checking for cygpath program
if command -v &#39;cygpath&#39; &amp;gt;/dev/null 2&amp;gt;&amp;amp;1; then
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;# cygwin paths start with /cygdrive/ which will break windows PHP,
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;# so we need to translate the dir path to windows format. However
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;# we could be using cygwin PHP which does not require this, so we
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;# test if the path to PHP starts with /cygdrive/ rather than /usr/bin.
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;if [[ $(which php) == /cygdrive/* ]]; then
&amp;nbsp; &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;dir=$(cygpath -m $dir);
&amp;nbsp; &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;fi
fi
dir=$(echo $dir | sed &#39;s/ /\ /g&#39;)
php &quot;${dir}/composer.phar&quot; $*
&lt;/pre&gt;
&lt;br /&gt;
save.&lt;br /&gt;
&lt;br /&gt;
Now 3 files will be there inside composer folder.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjbXKtS9O0qSJLl6OeAMZwQF7fMq0he9JuuN9OlxyrmLxYX2HofZueKriiGL7OxSgeSb15pRPZMt9pDW8-rvr01Q2hfd8J6DD7TT0dMR0-zt9mkibs4Y3P_b9o2H9ZCM31VHXhZx3pXpmnP/s1600/installing-composer-manually-in-windows-7-using-cmd-files.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjbXKtS9O0qSJLl6OeAMZwQF7fMq0he9JuuN9OlxyrmLxYX2HofZueKriiGL7OxSgeSb15pRPZMt9pDW8-rvr01Q2hfd8J6DD7TT0dMR0-zt9mkibs4Y3P_b9o2H9ZCM31VHXhZx3pXpmnP/s1600/installing-composer-manually-in-windows-7-using-cmd-files.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Now, set PATH to composer so we can access composer by just typing composer in CMD.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Show Desktop.&lt;/li&gt;
&lt;li&gt;Right Click My Computer shortcut in the desktop.&lt;/li&gt;
&lt;li&gt;Click Properties.&lt;/li&gt;
&lt;li&gt;You should see a section of control Panel - Control Panel\System and Security\System.&lt;/li&gt;
&lt;li&gt;Click Advanced System Settings on the Left menu.&lt;/li&gt;
&lt;li&gt;Click Environment Variables towards the bottom of the window.&lt;/li&gt;
&lt;li&gt;Select PATH in the user variables list.&lt;/li&gt;
&lt;li&gt;Append your PHP Path (C:\composer) to your PATH variable, separated from the already existing string by a semi colon.&lt;/li&gt;
&lt;li&gt;Click OK&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiH2wlqi7cc3heM0jET5F0Y2mVApLNUkwnEuIqg6CsO3-vssIuEWwdKwluB7aLQTdJn0RMXmNdlCfXCxVcVfsAUpIcXEshPMAX4E_SLRa9pDCQOyOoeSS8k29xC0zAI9A_wCYSBn7kvDSOt/s1600/installing-composer-manually-in-windows-7-using-cmd-4.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;251&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiH2wlqi7cc3heM0jET5F0Y2mVApLNUkwnEuIqg6CsO3-vssIuEWwdKwluB7aLQTdJn0RMXmNdlCfXCxVcVfsAUpIcXEshPMAX4E_SLRa9pDCQOyOoeSS8k29xC0zAI9A_wCYSBn7kvDSOt/s400/installing-composer-manually-in-windows-7-using-cmd-4.PNG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Finally,&lt;br /&gt;
restart computer.&lt;br /&gt;
If you dont want to restart computer, there is an alternate way,&lt;br /&gt;
&lt;br /&gt;
Open CMD and copy paste below lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;taskkill /f /IM explorer.exe
start explorer.exe
exit
&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
Open a new command prompt, and type &lt;b&gt;composer&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgaJ5HUyt0CDeOAC8wUn4J0YdsatCgHO7y75ZHIHfkXzxZLOywThyphenhyphenL95XpaJm5Em-y5An_Yoga_vnJoSEfQljEeVcMb4CVzdkTJsi0nGFpTWlhG6pVPvKcY8NiDZsoCmd30CJCixXMrdPKj/s1600/installing-composer-manually-in-windows-7-using-cmd-final.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;214&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgaJ5HUyt0CDeOAC8wUn4J0YdsatCgHO7y75ZHIHfkXzxZLOywThyphenhyphenL95XpaJm5Em-y5An_Yoga_vnJoSEfQljEeVcMb4CVzdkTJsi0nGFpTWlhG6pVPvKcY8NiDZsoCmd30CJCixXMrdPKj/s400/installing-composer-manually-in-windows-7-using-cmd-final.PNG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Now you should see composer is installed and working properly.&lt;br /&gt;
&lt;br /&gt;
Feel free to be part of discussion.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</description><link>https://aslamise.blogspot.com/2015/07/installing-composer-manually-in-windows-7-using-cmd.html</link><author>noreply@blogger.com (Aslam)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxdUFxlQCDrWbyfqghlfqqmGu2qxISM7OH49Vmcruib9ltOKdsPY8hdSVFUXWwFwkszsQg4PabQbu6LPXHEQmLKVY0b32dU0RwymheSmBn7OZoudLUzOvBDn2fPlw41zNeqcyTpGvZyTvT/s72-c/installing-composer-manually-in-windows-7-using-cmd-2.PNG" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4891879048720738684.post-10647941345718427</guid><pubDate>Tue, 20 Jan 2015 16:48:00 +0000</pubDate><atom:updated>2015-01-20T22:20:43.429+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Bootstrap</category><category domain="http://www.blogger.com/atom/ns#">Drupal</category><category domain="http://www.blogger.com/atom/ns#">Webform</category><title>Drupal webform + Bootstrap, 2 minutes to do it better.</title><description>When i was working on a drupal site that is designed in bootstrap 3, I wanted to design this webform to the one in bootstrap.&lt;br /&gt;
&lt;br /&gt;
Here is how i did it, and this is the best and quickest way to integrate webform with bootstrap.&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Follow these 4 simple steps to integrate bootstrap with Drupal Webform.&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;STEP 1 : Configure Webform and Components.&lt;/h4&gt;&lt;br /&gt;
Create Webform and fields.&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi2XRFtfE8AMvqNBRnNCwC5zPaexVnJV00ZpasvxWVFDiIix6-VbOYzv1gXrTY1LEY4enUTTet9JzX-SdGxPW1GB2NDpR3TcFi31QcQNd014NK8IsgiCUHXegKTbOGz6ETfqw2IBJsTNkE4/s1600/Drupal+webform+++Bootstrap,+2+minutes+to+do+it+better..PNG&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; display: inline !important; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi2XRFtfE8AMvqNBRnNCwC5zPaexVnJV00ZpasvxWVFDiIix6-VbOYzv1gXrTY1LEY4enUTTet9JzX-SdGxPW1GB2NDpR3TcFi31QcQNd014NK8IsgiCUHXegKTbOGz6ETfqw2IBJsTNkE4/s1600/Drupal+webform+++Bootstrap,+2+minutes+to+do+it+better..PNG&quot; height=&quot;170&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;STEP 2 : Configure components.&lt;/h4&gt;&lt;br /&gt;
For each component, follow this step.&lt;br /&gt;
&lt;br /&gt;
Click on edit. and in Edit Component page, scroll to bottom.&lt;br /&gt;
&lt;br /&gt;
You can find &lt;span style=&quot;background-color: #cccccc;&quot;&gt;Wrapper Css classes&lt;/span&gt;.&lt;br /&gt;
Type &lt;span style=&quot;background-color: #cccccc;&quot;&gt;form-group&lt;/span&gt; in that field.&lt;br /&gt;
&lt;br /&gt;
Below that, You can find &lt;span style=&quot;background-color: #cccccc;&quot;&gt;CSS Classes&lt;/span&gt;,&lt;br /&gt;
Type&amp;nbsp;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;form-control&lt;/span&gt; in that field.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVcPpFAfje9NK5cH5cSlVhSQkm9dG3x29EfVE0EsOog_AagQprvalL0dXY_0IaH6K_GKtcbUFfmZ0D_iPfrtWdbv_XTRcznVysx7oPWAGu7ElBGod_ntl30C1Eo8FVWBvVtWJ29qf5ESIB/s1600/Drupal+webform+++Bootstrap,+2+minutes+to+do+it+better..PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVcPpFAfje9NK5cH5cSlVhSQkm9dG3x29EfVE0EsOog_AagQprvalL0dXY_0IaH6K_GKtcbUFfmZ0D_iPfrtWdbv_XTRcznVysx7oPWAGu7ElBGod_ntl30C1Eo8FVWBvVtWJ29qf5ESIB/s1600/Drupal+webform+++Bootstrap,+2+minutes+to+do+it+better..PNG&quot; height=&quot;134&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;And click on &lt;span style=&quot;background-color: #cccccc;&quot;&gt;save component&lt;/span&gt;.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;-&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;h4 style=&quot;clear: both; text-align: left;&quot;&gt;STEP 3 : Customizing submit button.&lt;/h4&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Now you have customized drupal webform components to suite bootstrap styling. &lt;span style=&quot;background-color: white;&quot;&gt;EXCEPT&lt;/span&gt; submit button!.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Lets see how to customize submit button for each webform in your Drupal project.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;We will be using &lt;span style=&quot;background-color: #cccccc;&quot;&gt;hook_form_FORM_ID_alter()&lt;/span&gt; to accomplish this.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Open your theme&#39;s &lt;span style=&quot;background-color: #cccccc;&quot;&gt;template.php&lt;/span&gt; file.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;At the end of the file, Add below code. DONT FORGET TO Change &lt;span style=&quot;background-color: #cccccc;&quot;&gt;YOUR-THEME-NAME&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;to your theme&#39;s name, and &lt;span style=&quot;background-color: #cccccc;&quot;&gt;nid==1234&lt;/span&gt; here refers to webform with 1234 Id. so change that to suite your form&#39;s id.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;[you can find forms id by looking at address bar while you are in that webform&#39;s configuring page.]&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;after &lt;span style=&quot;background-color: #cccccc;&quot;&gt;/node/&lt;/span&gt;&amp;nbsp;]&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;pre&gt;/**
 * Implements hook_form_FORM_ID_alter().
 */
function YOUR-THEME-NAME_form_webform_client_form_alter(&amp;amp;$form, &amp;amp;$form_state) {
  $node = $form[&#39;#node&#39;];
  if ($node-&amp;gt;nid == 1234) {
    $form[&#39;actions&#39;][&#39;submit&#39;][&#39;#attributes&#39;][&#39;class&#39;][] = &#39;btn-lg&#39;;
    $form[&#39;actions&#39;][&#39;submit&#39;][&#39;#attributes&#39;][&#39;class&#39;][] = &#39;btn&#39;;
    $form[&#39;actions&#39;][&#39;submit&#39;][&#39;#attributes&#39;][&#39;class&#39;][] = &#39;btn-success&#39;;
  }
}
&lt;/pre&gt;&lt;br /&gt;
&lt;h4&gt;STEP 4: See it in action.&lt;/h4&gt;&lt;br /&gt;
Clear all caches, (including theme registry cache) and reload your contact form page.&lt;br /&gt;
-If styles are not overwritten, you will see a nice bootstrap themed webform. &amp;lt;3&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgn0jZOK7m0ISJ5Y9hR4yJ9lt5nAl0lwh25K1v5X7Wm-yhY0M_juilNpInpgUA0_V2cgkjpb1GLvf-T2Civ6250lkvwADogRUs3wFF9J7DlpWib-sqW-a0h7ZtUT4gP6lCEhAO5ZwUeStl6/s1600/Drupal+webform+++Bootstrap,+2+minutes+to+do+it+better..PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgn0jZOK7m0ISJ5Y9hR4yJ9lt5nAl0lwh25K1v5X7Wm-yhY0M_juilNpInpgUA0_V2cgkjpb1GLvf-T2Civ6250lkvwADogRUs3wFF9J7DlpWib-sqW-a0h7ZtUT4gP6lCEhAO5ZwUeStl6/s1600/Drupal+webform+++Bootstrap,+2+minutes+to+do+it+better..PNG&quot; height=&quot;320&quot; width=&quot;293&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
Feel free to share your thoughts.&lt;br /&gt;
&lt;br /&gt;
</description><link>https://aslamise.blogspot.com/2015/01/drupal-webform-bootstrap-2-minutes-to-do-it-better.html</link><author>noreply@blogger.com (Aslam)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi2XRFtfE8AMvqNBRnNCwC5zPaexVnJV00ZpasvxWVFDiIix6-VbOYzv1gXrTY1LEY4enUTTet9JzX-SdGxPW1GB2NDpR3TcFi31QcQNd014NK8IsgiCUHXegKTbOGz6ETfqw2IBJsTNkE4/s72-c/Drupal+webform+++Bootstrap,+2+minutes+to+do+it+better..PNG" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4891879048720738684.post-1088341912070591143</guid><pubDate>Wed, 13 Aug 2014 04:04:00 +0000</pubDate><atom:updated>2014-08-13T09:34:52.030+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Codeigniter</category><category domain="http://www.blogger.com/atom/ns#">htaccess</category><category domain="http://www.blogger.com/atom/ns#">PHP</category><title>How to remove index.php from codeigniter URLs in two simple steps!</title><description>If you have downloaded codeigniter, and learning it from scratch, you might have been at a point where you search &quot;How to remove index.php from codeigniter URLs&quot;&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
Generally any function inside your controller will work only if you call it after index.php in your URL.&lt;br /&gt;
&lt;br /&gt;
for example, &lt;br /&gt;
&lt;code&gt;localhost/wamp/codeigniter-project/&lt;/code&gt;   will load the welcome page&lt;br /&gt;
&lt;br /&gt;
and if you add a method/function inside the basic controller, eg:&lt;code&gt;test&lt;/code&gt;, you will have to reach it by &lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;localhost/wamp/codeigniter-project/index.php/test/&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Now you want to achieve the URL like &lt;code&gt;localhost/wamp/codeigniter-project/test/&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Lets see how to make it possible to remove &lt;code&gt;index.php&lt;/code&gt; from your codeigniter project.&lt;br /&gt;
&lt;br /&gt;
first of all, i have edited controller, &lt;code&gt;welcome.php &lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
current content of welcome.php is below&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
&lt;br /&gt;
* @see http://codeigniter.com/user_guide/general/urls.html&lt;br /&gt;
*/&lt;br /&gt;
public function index()&lt;br /&gt;
{&lt;br /&gt;
$this-&amp;gt;load-&amp;gt;view(&#39;welcome_message&#39;);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
public function test()&lt;br /&gt;
{&lt;br /&gt;
echo &quot;yay.. this is test controller&quot;;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
/* End of file welcome.php */&lt;br /&gt;
/* Location: ./application/controllers/welcome.php */&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
it will work only if i call like this.&lt;br /&gt;
&lt;br /&gt;
localhost/wamp/codeigniter-project/index.php/test/&lt;br /&gt;
&lt;br /&gt;
but if i remove index.php fromurl, it just wont work.&lt;br /&gt;
&lt;br /&gt;
So lets solve this  with two steps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is the folder anf files view inside basic codeigniter bundle&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
-application&lt;br /&gt;
-system&lt;br /&gt;
-user_guide&lt;br /&gt;
-.htaccess  = &amp;lt; edit this file&lt;br /&gt;
-.index.php&lt;br /&gt;
-license.txt&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;1st step:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Open above .htaccess in your favorite text editor&lt;br /&gt;
and add below lines into that .htaccess file to remove index.php from your codeigniter project.&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
RewriteEngine On&lt;br /&gt;
RewriteCond %{REQUEST_FILENAME} !-f&lt;br /&gt;
RewriteCond %{REQUEST_FILENAME} !-d&lt;br /&gt;
RewriteRule ^(.*)$ index.php/$1 [L]  &lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
Save it.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;2nd step:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
open cofig.php file inside &lt;code&gt; /application/config/&lt;/code&gt; folder.&lt;br /&gt;
&lt;br /&gt;
search for the line &lt;code&gt;&quot;$config[&#39;index_page&#39;]&quot;&lt;/code&gt;.&lt;br /&gt;
&lt;br /&gt;
Change &lt;code&gt;$config[&#39;index_page&#39;]&lt;/code&gt; to blank in config.php in application folder as below:&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;$config[&#39;index_page&#39;] = &#39;&#39;;&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
now, visit your page without index.php&lt;br /&gt;
&lt;br /&gt;
eg: &lt;code&gt;localhost/wamp/codeigniter-project/test/&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
if you could see functions content, this works for you.&lt;br /&gt;
&lt;br /&gt;
If not, check rewrite module is on in Apache modules.&lt;br /&gt;
&lt;br /&gt;</description><link>https://aslamise.blogspot.com/2014/08/how-to-remove-indexphp-from-codeigniter-in-two-simple-steps.html</link><author>noreply@blogger.com (Aslam)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4891879048720738684.post-1289455733576238701</guid><pubDate>Sun, 27 Jul 2014 03:25:00 +0000</pubDate><atom:updated>2014-07-27T08:55:47.481+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">wampserver</category><category domain="http://www.blogger.com/atom/ns#">Windows 8</category><title>Wampserver:httpd exe The program can&#39;t start because msvcr110 dll is missing</title><description>If you are using windows 8 and installing wamp server, you might have got this error message.&lt;br /&gt;
&lt;h3&gt;
&quot;httpd.exe The program can&#39;t start because msvcr110 dll is missing&quot;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;/h3&gt;
If this error appearing after you open any programm in your computer then it is solved by going to below address and downloading the Visual C++ Redistributable for Visual Studio 2012 Update&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;
&lt;a href=&quot;http://www.microsoft.com/en-us/download/confirmation.aspx?id=30679&quot;&gt;http://www.microsoft.com/en-us/download/confirmation.aspx?id=30679&lt;/a&gt;&lt;/h4&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Go to that page and install Visual C++ Redistributable for Visual Studio 2012 Update.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
and dont forget to restart your computer.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Your program will be running smoothly. and you will not get &quot;The program can&#39;t start because msvcr110 dll is missing&quot; error messages anymore ;)&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</description><link>https://aslamise.blogspot.com/2014/07/wampserverhttpd-exe-program-cant-start-because-msvcr110-dll-is-missing-solved.html</link><author>noreply@blogger.com (Aslam)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4891879048720738684.post-7898163350090342156</guid><pubDate>Sun, 27 Jul 2014 03:22:00 +0000</pubDate><atom:updated>2014-07-27T08:52:23.148+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">wampserver</category><category domain="http://www.blogger.com/atom/ns#">Windows 8</category><title>Windows 8 and Wamp server - Troubleshooting errors </title><description>To get rid of the wampserver 403 Forbidden error on Windows 8, you should take these steps first.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Modify the Apache HTTPD.CONF file.&lt;br /&gt;
&lt;br /&gt;
Change &quot;Listen 80&quot; to &quot;Listen 0.0.0.0:80&quot;&lt;/div&gt;
If it is already &quot;Listen 0.0.0.0:80&quot; , then leave it as it is..&lt;br /&gt;
&lt;br /&gt;
Second thing,&lt;br /&gt;
&lt;br /&gt;
Install Apache service,and Install MySQL service.&lt;br /&gt;
To do this,&lt;br /&gt;
- right click on wampserver tray icon&lt;br /&gt;
- go to Apache &amp;gt; Service &amp;gt; Install Service&lt;br /&gt;
- go to MySQL &amp;gt; Service &amp;gt; Install Service&lt;br /&gt;
&lt;br /&gt;
If you get an error message, saying &quot;Your port 80 is actually used!&quot;, then follow this ways to solve it.&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.aslamise.com/2014/07/wamp-server-and-windows-8-your-port-80-is-actually-used.html&quot; target=&quot;_blank&quot;&gt;WAMP and Windows 8 - solving error &quot;Your port 80 is actually used!&quot;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Thats it.</description><link>https://aslamise.blogspot.com/2014/07/windows-8-and-wamp-server-troubleshooting-errors.html</link><author>noreply@blogger.com (Aslam)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4891879048720738684.post-6356632237128844811</guid><pubDate>Sun, 27 Jul 2014 03:12:00 +0000</pubDate><atom:updated>2014-07-27T08:42:14.773+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">wampserver</category><category domain="http://www.blogger.com/atom/ns#">Windows 8</category><title>[Solved] - WAMP and Windows 8 - Your port 80 is actually used!</title><description>If you see &quot;Your port 80 is actually used&quot; error in your windows 8 here is the solution.&lt;br /&gt;
&lt;br /&gt;
The simple reason behind that would be, IIS.&lt;br /&gt;
&lt;br /&gt;
If you turn off IIS , it would solve the problem.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
Got to &quot;Control Panel&quot;&lt;br /&gt;
If the view is in classic mode, click &quot;System And Security&quot; and select &quot;Administrative Tools&quot;&lt;br /&gt;
Else select &quot;Administrative Tools&quot;.&lt;br /&gt;
and double click &quot;Component Services&quot; icon.&lt;br /&gt;
select &quot;Services (LOCAL)&quot; from leftside pane.&lt;br /&gt;
Now, we are going to stop IIS here.&lt;br /&gt;
If you are sure you want to use WAMP and not IIS, disable the &quot;World Wide Web Publishing Service&quot; and the &quot;Web Deployment Agent Service&quot;.&lt;br /&gt;
&lt;br /&gt;
If it doesn&#39;t work, check whether you installed skype on your computer.&lt;br /&gt;
&lt;br /&gt;</description><link>https://aslamise.blogspot.com/2014/07/wamp-server-and-windows-8-your-port-80-is-actually-used.html</link><author>noreply@blogger.com (Aslam)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4891879048720738684.post-94434009233273065</guid><pubDate>Sun, 27 Jul 2014 03:05:00 +0000</pubDate><atom:updated>2014-07-27T08:35:36.945+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Windows 8</category><title>Windows 8: Enable .NET Framework 3.5 (includes .NET 2.0 and 3.0) - (NetFx3) feature in Offline mode!</title><description>Inside your windows installation disk, or USB, there will be a folder named &quot;&lt;i&gt;source&lt;/i&gt;&quot;.&lt;br /&gt;
&lt;br /&gt;
Open &amp;nbsp;it and inside it you can see a folder named &quot;&lt;i&gt;sxs&lt;/i&gt;&quot;&lt;br /&gt;
&lt;br /&gt;
Copy that folder to any root drive (for example, inside &lt;i&gt;C:/&lt;/i&gt;)&lt;br /&gt;
&lt;br /&gt;
Now search for &lt;i&gt;cmd&lt;/i&gt; (Command prompt) and right click it and select run as administrator&lt;br /&gt;
&lt;br /&gt;
and type command below into the cmd (Dont ignore spaces!)&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;Dism.exe /online /enable-feature /featurename:NetFX3 /All /Source:E:\sources\sxs&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Change drive letter as you copied it.&lt;br /&gt;
&lt;br /&gt;
if you have copied sxs folder to d:/ then change E:\sources\sxs &amp;nbsp;to D:\sources\sxs&lt;br /&gt;
&lt;br /&gt;
and hit &lt;i&gt;ENTER&lt;/i&gt;.&lt;br /&gt;
&lt;br /&gt;
it will take some time and you can see progress in command prompt.&lt;br /&gt;
&lt;br /&gt;
After it says success, close cmd&lt;br /&gt;
and go to control panel&lt;br /&gt;
left side you can see &quot;turn windows features on / Off&quot;&lt;br /&gt;
Click on it&lt;br /&gt;
&lt;br /&gt;
There you can see &amp;nbsp;.NET Framework 3.5 (includes .NET 2.0 and 3.0) is checked.&lt;br /&gt;
&lt;br /&gt;
Now,restart your computer! everything&#39;s perfect ;)&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</description><link>https://aslamise.blogspot.com/2014/07/windows-8-enable-net-framework-35-includes-net-2-0-and-3-0-netfx-feature-in-offline-mode.html</link><author>noreply@blogger.com (Aslam)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4891879048720738684.post-6648388278482999162</guid><pubDate>Sat, 05 Jul 2014 15:12:00 +0000</pubDate><atom:updated>2014-07-05T20:45:32.400+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Gmail</category><title>Revert to old gmail interface (HTML Version) with this simple url hack!</title><description>In slow connections, loading standard Gmail will be time consuming, the we will have to revert to old Gmail interface for easy access to inbox and other Gmail features.&lt;br /&gt;
&lt;br /&gt;
So here is the URL trick that will help you to access old Gmail interface anytime.&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
All you have to do is to add a &quot;&lt;b&gt;?ui=html&lt;/b&gt;&quot; at thend of Gmail address.&lt;br /&gt;
&lt;br /&gt;
So you will be served with old gmail interface which will load 50 times faster than standard Gmail interface!&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&quot;&lt;a href=&quot;http://mail.google.com/?ui=html&quot; target=&quot;_blank&quot;&gt;http://mail.google.com?ui=html&lt;/a&gt;&lt;/b&gt;&quot; will take you to the old Gmail interface.&lt;br /&gt;
&lt;br /&gt;
Feel free to share your experiences!</description><link>https://aslamise.blogspot.com/2014/07/revert-to-old-gmail-interface-html-version-with-simple-url-hack.html</link><author>noreply@blogger.com (Aslam)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4891879048720738684.post-7406093027314449065</guid><pubDate>Wed, 18 Jun 2014 18:04:00 +0000</pubDate><atom:updated>2014-06-18T23:46:42.101+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">domain</category><category domain="http://www.blogger.com/atom/ns#">htaccess</category><title>HTACCESS | Redirect naked domain to WWW - [NON WWW to WWW with htaccess]</title><description>Here is how you can redirect your named domain address to www Using .htaccess&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Code explained:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
RewriteEngine On :&amp;nbsp;&lt;/code&gt;Enable URL rewriting&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;
RewriteCond %{HTTP_HOST} !^www\. [NC] :&amp;nbsp;&lt;/code&gt;Condition Checking whether the current requested address contains WWW or not.&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;
RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301] :&amp;nbsp;&lt;/code&gt;If there is no WWW , adding WWW in front of domain name and appending requested address, then redirecting to that address with a permanent redirect.&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;h4&gt;
&lt;a href=&quot;http://www.aslamise.com/2014/06/what-is-naked-domain-and-top-level-domain-explained.html&quot;&gt;If you wish to know what is a naked domain - &amp;nbsp;Here is an article on that.&lt;/a&gt;&lt;/h4&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;</description><link>https://aslamise.blogspot.com/2014/06/htaccess-redirect-naked-domain-to-www-non-www-to-www-with-htaccess.html</link><author>noreply@blogger.com (Aslam)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4891879048720738684.post-6653872764602551107</guid><pubDate>Wed, 18 Jun 2014 18:03:00 +0000</pubDate><atom:updated>2014-06-18T23:47:08.981+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">domain</category><title>What is a naked domain? - Naked Domain,Top Level Domain and subdomain Explained!</title><description>&lt;h3&gt;
What is a naked domain? &amp;nbsp;&lt;/h3&gt;
Naked domains are those domains without a WWW in front of it. &lt;br /&gt;
for example : domain.com is a naked domain where www.domain.com is a top level domain,&lt;br /&gt;
and blog.domain.com com is a sub-domain and not naked.&lt;br /&gt;
&lt;h3&gt;
Quick Samples for named Domain, Top Level Domain and Sub Domain&lt;/h3&gt;
aslamise.com - Naked or bare domain&lt;br /&gt;
www.aslamise.com - Top level domain - Not Naked&lt;br /&gt;
apps.aslamise.com - Sub-domain - Not Naked&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;h3&gt;
Does it affect SEO to point my site to naked domain?&lt;/h3&gt;
It Doesn&#39;t matter which one you pick but you should be consistent on it.&lt;br /&gt;
Because search engines consider both as different sites.&lt;br /&gt;
&lt;br /&gt;
http://aslamise.com&lt;br /&gt;
http://www.aslamise.com&lt;br /&gt;
&lt;h3&gt;
Which should I choose? Naked Domain or Top level Domain?&lt;/h3&gt;
Some says that using naked domain is better. and some other says its just time consuming so they are avoiding it.&lt;br /&gt;
&lt;h4&gt;
Arguments for using WWW :&lt;/h4&gt;
WWW does mean something - That means WWW is a host name, and it defines the service being used computer &amp;nbsp;network.&lt;br /&gt;
&lt;br /&gt;
Using WWW allows to easily understand the file structure in website.&lt;br /&gt;
&lt;br /&gt;
More flexibility with DNS - Zone records of your domain, controls the traffic to your site. and using the non WWW version of your site can make things complicated.&lt;br /&gt;
&lt;br /&gt;
Cookies Problem - If you are using a naked domain, your cookies are sent to all your sub domains.&lt;br /&gt;
but if you use WWW, it wouldn&#39;t happen.&lt;br /&gt;
&lt;br /&gt;
An Argument for not using WWW is that, as n no-www.org &amp;nbsp;quotes, using WWW is waste of time because without WWW , address is shorter.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;The point is that you should stick with your choice.&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Once you made your decision on that, to overcome duplicate content issues, you can set up canonical URL.&lt;br /&gt;
&lt;br /&gt;
Set your preferred domain as the canonical link and redirect to that when accessing the other URL.&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.aslamise.com/2014/06/htaccess-redirect-naked-domain-to-www-non-www-to-www-with-htaccess.html&quot;&gt;Here is How you can redirect from naked domain(NON WWW) to WWW.&lt;/a&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</description><link>https://aslamise.blogspot.com/2014/06/what-is-naked-domain-and-top-level-domain-explained.html</link><author>noreply@blogger.com (Aslam)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4891879048720738684.post-4717471319629590549</guid><pubDate>Sun, 01 Jun 2014 14:46:00 +0000</pubDate><atom:updated>2014-06-02T12:31:16.723+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Drupal</category><title>Installing  Drupal - Step by step tutorial</title><description>In this Drupal tutorial, i will explain how to download and install Drupal.&lt;br /&gt;
&lt;h3&gt;
Requirements:&lt;/h3&gt;
Drupal package&lt;br /&gt;
Development server with php and mysql&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
For this tutorial, i have used wamp server in my windows 7 OS.&lt;br /&gt;
&lt;br /&gt;
Lets begin!&lt;br /&gt;
&lt;h3&gt;
Download Drupal package&lt;/h3&gt;
&lt;a href=&quot;https://drupal.org/project/drupal&quot;&gt;https://drupal.org/project/drupal&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbAY3Y3Hns5TlhPK-hS0_9T50XdDSc6MiHO9RZLsMGNPA-457waM-5Wzl4Ad08ll6xULbfIsp-ftN66H0JXSNUY_n9_SFFym0SK964lrecJ81paB3KqsBV5OkOQuxWI5CCOmdV5iLZF6i4/s1600/2-Drupal-installation.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbAY3Y3Hns5TlhPK-hS0_9T50XdDSc6MiHO9RZLsMGNPA-457waM-5Wzl4Ad08ll6xULbfIsp-ftN66H0JXSNUY_n9_SFFym0SK964lrecJ81paB3KqsBV5OkOQuxWI5CCOmdV5iLZF6i4/s1600/2-Drupal-installation.JPG&quot; height=&quot;68&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Download latest bundle&lt;br /&gt;
&lt;br /&gt;
Extract bundle to any folder inside your server&lt;br /&gt;
&lt;br /&gt;
for testing in local, i have extracted to C:/wamp/www/study/drupal/site/&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZdaORZkmXu9b1XGD5-pt-cIPn1duuefFqGBO5IXZyRbg4aaDjAt6OuEismXq2v7M3LIyMb5UddoAnMKstqMgFSbRYhrFBdZknVNp0JcCCtd4DrzGOrW8ZhvkQXybehxyGdLYmCwBzgU2J/s1600/1-Drupal-installation.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZdaORZkmXu9b1XGD5-pt-cIPn1duuefFqGBO5IXZyRbg4aaDjAt6OuEismXq2v7M3LIyMb5UddoAnMKstqMgFSbRYhrFBdZknVNp0JcCCtd4DrzGOrW8ZhvkQXybehxyGdLYmCwBzgU2J/s1600/1-Drupal-installation.JPG&quot; height=&quot;120&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
so i can access it in my web browser using&amp;nbsp;&lt;i&gt;localhost/study/drupal/site/&lt;/i&gt;&lt;br /&gt;
&lt;h3&gt;
Open browser and access installation.&lt;/h3&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2gXXrbcXJ6RgeMuW9gLIcLioRJJT1PxPnW9O8sIzUokNjszToTzwsTBWjYar2p4WaWJng7A83pPu8KrdDev36bV9xRzbFrjb10j0bhqEyMWDqRiVhNzABziKdhH9hYhU9-eQdQSB-ECPD/s1600/3-Drupal-installation.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2gXXrbcXJ6RgeMuW9gLIcLioRJJT1PxPnW9O8sIzUokNjszToTzwsTBWjYar2p4WaWJng7A83pPu8KrdDev36bV9xRzbFrjb10j0bhqEyMWDqRiVhNzABziKdhH9hYhU9-eQdQSB-ECPD/s1600/3-Drupal-installation.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
You can see the page titled as &quot;Select an installation profile&quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMCewzO2BTVexc4j8s-XIgYEbCTQG8YgM4ayc-IIkixqgPHBAP9miQ0ygQfKwCIehjmUuRoeLA7W7tGPYsd50B_uGvy6fmmplCkH6Ii5DvYZdUcXOyxeFXf6i_z18vonagSwNizQdmVKVr/s1600/4-Drupal-installation.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMCewzO2BTVexc4j8s-XIgYEbCTQG8YgM4ayc-IIkixqgPHBAP9miQ0ygQfKwCIehjmUuRoeLA7W7tGPYsd50B_uGvy6fmmplCkH6Ii5DvYZdUcXOyxeFXf6i_z18vonagSwNizQdmVKVr/s1600/4-Drupal-installation.JPG&quot; height=&quot;246&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Select &lt;i&gt;standard&lt;/i&gt; and click on save and continue button.&lt;br /&gt;
&lt;br /&gt;
Select language (built in language English) and click continue.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKVVg1ghtYajZBBHmMQo992kytFWL8neRIbaXja6Y158Ag_sSx6kQwQBYI-sAbSnkWxfHODb_EtI43IPeFEPXdopXBpRu2eWeqlDdz_-qkbZt593NacOTIb-n7Lc17k59rVG11_RZnRwHd/s1600/5-Drupal-installation.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKVVg1ghtYajZBBHmMQo992kytFWL8neRIbaXja6Y158Ag_sSx6kQwQBYI-sAbSnkWxfHODb_EtI43IPeFEPXdopXBpRu2eWeqlDdz_-qkbZt593NacOTIb-n7Lc17k59rVG11_RZnRwHd/s1600/5-Drupal-installation.JPG&quot; height=&quot;247&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
In next page, you can see panel for configuring database.&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
Fill-in database information&lt;/h3&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEju08yyhhQ_9Kqh3i1QQyE9TUAH8HrI77ozND1Svmd5skgQRZuoSVvBqjmsiTfqkV0P5geWhvF4NaJCrQlpWde3a-LIkVk2C51RBnyLyhKgXkCF1Wf6B6qutOGjHmneh5yg6qD2mf48cEXg/s1600/6-Drupal-installation.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEju08yyhhQ_9Kqh3i1QQyE9TUAH8HrI77ozND1Svmd5skgQRZuoSVvBqjmsiTfqkV0P5geWhvF4NaJCrQlpWde3a-LIkVk2C51RBnyLyhKgXkCF1Wf6B6qutOGjHmneh5yg6qD2mf48cEXg/s1600/6-Drupal-installation.JPG&quot; height=&quot;320&quot; width=&quot;315&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
If you have not yet setup database,lets do it now!&lt;br /&gt;
&lt;br /&gt;
Go to your phpmyadmin&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://localhost/phpmyadmin&quot;&gt;http://localhost/phpmyadmin&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
and create database // drupal //. you can name database as you wish but you will have to point out it in installation.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEzcnKjTI3VAPumR9n9v_d1LqpVZBUHqGD_y47EV8DWPv43czQpCMz8tnqNPlB_Vptosj1bjfDYFtoNjCzMwC-SebcXeMWwAGyKQ-3cUoRWjVWAoNtnUh_UMAzHILW8tnoqlQT5c4GjfKj/s1600/7-Drupal-installation-setup-database.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEzcnKjTI3VAPumR9n9v_d1LqpVZBUHqGD_y47EV8DWPv43czQpCMz8tnqNPlB_Vptosj1bjfDYFtoNjCzMwC-SebcXeMWwAGyKQ-3cUoRWjVWAoNtnUh_UMAzHILW8tnoqlQT5c4GjfKj/s1600/7-Drupal-installation-setup-database.PNG&quot; height=&quot;82&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjUX-3amzVJELsabg3ygEbgGbUfHmaJWdYd-6Y5e5a2U5N75uWcMm_7j8CJZzJ0K3D33VOrFhEUuFtFQseSRvRJu-_aMSO7DI8J8yQIIk14BRZ2awnJujAPzb1f2R18yxN81k8xAuvN7NwY/s1600/8-Drupal-installation-database-no-tables.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjUX-3amzVJELsabg3ygEbgGbUfHmaJWdYd-6Y5e5a2U5N75uWcMm_7j8CJZzJ0K3D33VOrFhEUuFtFQseSRvRJu-_aMSO7DI8J8yQIIk14BRZ2awnJujAPzb1f2R18yxN81k8xAuvN7NwY/s1600/8-Drupal-installation-database-no-tables.PNG&quot; height=&quot;208&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Now that we have filled-in our database informations. and click on continue.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEglphTibFwF2NCPlU8UA7niFCKimtAU0MU7mxRzJBP3LevbhOV5rLbuJ2NkG-vDYnz96y9plsqzhgkvlzFonr5FSTeyGsIW76EirYsoztDyFus9TZZgYu8rhokuGcLRuc1MREtVFRHVoY8m/s1600/9-Drupal-installation-after-databse.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEglphTibFwF2NCPlU8UA7niFCKimtAU0MU7mxRzJBP3LevbhOV5rLbuJ2NkG-vDYnz96y9plsqzhgkvlzFonr5FSTeyGsIW76EirYsoztDyFus9TZZgYu8rhokuGcLRuc1MREtVFRHVoY8m/s1600/9-Drupal-installation-after-databse.PNG&quot; height=&quot;197&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
After the progress is complete next page will ask you to configure your site!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjA9vHP7LjH7QPWc2TboC2GA5BylnjukO-4DLuZvVXZ_FuHDr7P-6VA4F1YiKYcplaR3waCNYolKhjkbX5lHhZ6AyZfD9odCogNBEJ2K2K2EvwDBRLiOapf29HxgRV4rTMPuFM0Kg_wNvKZ/s1600/10-Drupal-installation-configure+site.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjA9vHP7LjH7QPWc2TboC2GA5BylnjukO-4DLuZvVXZ_FuHDr7P-6VA4F1YiKYcplaR3waCNYolKhjkbX5lHhZ6AyZfD9odCogNBEJ2K2K2EvwDBRLiOapf29HxgRV4rTMPuFM0Kg_wNvKZ/s1600/10-Drupal-installation-configure+site.PNG&quot; height=&quot;306&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFYI55XkB4_zsgcRcItYGC3lwYD8E_uxUCSLMyfdd4Jfg40RuCTCF-z858xAhKU9E0JHFsDto3pOht7Z_UBNlZ7AauzGyVeoQ5l5KziIaBq3XuUYY2LlXId6TmI_aYOLR8_TD7QEwEhG1W/s1600/11-Drupal-installation-configure+site+part+2.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFYI55XkB4_zsgcRcItYGC3lwYD8E_uxUCSLMyfdd4Jfg40RuCTCF-z858xAhKU9E0JHFsDto3pOht7Z_UBNlZ7AauzGyVeoQ5l5KziIaBq3XuUYY2LlXId6TmI_aYOLR8_TD7QEwEhG1W/s1600/11-Drupal-installation-configure+site+part+2.PNG&quot; height=&quot;260&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Click on save and continue button. and if everything worked fine, it will show you installation complete page. like in figure below.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUEqaBUJ7A-GjvkOUTN-je4KznbBuxoa8I6fhqEB_KVTw0XO4kBP62tYS6Y31uMTENa2KOjd8jyu1P8f0R7E96C0I-3n2RKsF3D7u8gX7zUCua172hbQvLfx56o7PiLKwJktT6ondtROok/s1600/12-Drupal-installation-configure+done.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUEqaBUJ7A-GjvkOUTN-je4KznbBuxoa8I6fhqEB_KVTw0XO4kBP62tYS6Y31uMTENa2KOjd8jyu1P8f0R7E96C0I-3n2RKsF3D7u8gX7zUCua172hbQvLfx56o7PiLKwJktT6ondtROok/s1600/12-Drupal-installation-configure+done.PNG&quot; height=&quot;215&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3&gt;
visit your new site.&lt;/h3&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3ptu9OuE3buB8p3irwI22GTzGWwayMTOfFgRNd8NxxnmqNBAZ8lewVUmG00HaAyy9ZwcYuNQ0k7fNgHpHiqscirROg_sa_YKP0hJkEm-2rmChev3EVMsJfomeBkgymt-J_KbX56GRKj8c/s1600/13-Drupal-installation-visit-site.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3ptu9OuE3buB8p3irwI22GTzGWwayMTOfFgRNd8NxxnmqNBAZ8lewVUmG00HaAyy9ZwcYuNQ0k7fNgHpHiqscirROg_sa_YKP0hJkEm-2rmChev3EVMsJfomeBkgymt-J_KbX56GRKj8c/s1600/13-Drupal-installation-visit-site.PNG&quot; height=&quot;129&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Thats it! You have successfully completed your drupal installation!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description><link>https://aslamise.blogspot.com/2014/06/Installing-Drupal-step-by-step-tutorial-for-beginners.html</link><author>noreply@blogger.com (Aslam)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbAY3Y3Hns5TlhPK-hS0_9T50XdDSc6MiHO9RZLsMGNPA-457waM-5Wzl4Ad08ll6xULbfIsp-ftN66H0JXSNUY_n9_SFFym0SK964lrecJ81paB3KqsBV5OkOQuxWI5CCOmdV5iLZF6i4/s72-c/2-Drupal-installation.JPG" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4891879048720738684.post-2307498831212088941</guid><pubDate>Thu, 08 May 2014 16:37:00 +0000</pubDate><atom:updated>2014-05-10T20:36:50.017+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Blogger</category><category domain="http://www.blogger.com/atom/ns#">Blogger Tips</category><title>Remove blog name from Title of Blogger blog - [SOLVED]</title><description>Blogger is the easiest blogging platform to customize ,if you understand the right way.&lt;br /&gt;
In this article,I will tell you &quot;How to remove blog name from Title&quot;. and how to optimize it for better SEO.&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;h3&gt;How to remove blog name from title of blogger blog?&lt;/h3&gt;Lets see how default blogger templates generating Title for blog post page.&lt;br /&gt;
At the time of blog creation, Blogger will ask you to write a title for your blog.&lt;br /&gt;
Then, after you create a post and publish it with blogger blog, you will have to type in your post&#39;s title.&lt;br /&gt;
Now, as default, blogger will generate a title for your blogpost, as below.&lt;br /&gt;
&lt;code&gt;BlogTitle:Title of your great blog post.&lt;/code&gt;&lt;br /&gt;
When you look for its code in template, you can see code as below.&lt;br /&gt;
&lt;code&gt;&amp;lt;data:blog.pagetitle/&amp;gt;&lt;/code&gt;&lt;br /&gt;
Lets see how to customize it and remove blog name from title.&lt;br /&gt;
Here comes help of &lt;code&gt;&amp;lt;data:blog.pagetitle/&amp;gt;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&amp;lt;data:blog.pagetitle/&amp;gt;&lt;/code&gt; generates &amp;gt; &lt;code&gt;YourblogTitle:Your Post title&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&amp;lt;data:blog.pagetitle/&amp;gt;&lt;/code&gt; generates &amp;gt; &lt;code&gt;Your Post title.&lt;/code&gt;&lt;br /&gt;
Now, lets make it looking good, with below code.&lt;br /&gt;
&lt;pre class=&quot;language-xml&quot;&gt;&amp;lt;b:if cond=&#39;data:blog.pageType == &amp;amp;quot;item&amp;amp;quot;&#39;&amp;gt;
&amp;lt;title&amp;gt;&amp;lt;data:blog.pageName/&amp;gt; | &amp;lt;data:blog.title/&amp;gt;&amp;lt;/title&amp;gt; &amp;nbsp;&amp;lt;b:else/&amp;gt;
&amp;lt;title&amp;gt;&amp;lt;data:blog.pageTitle/&amp;gt;&amp;lt;/title&amp;gt; &amp;lt;/b:if&amp;gt;&lt;/pre&gt;What we do here is replacing Blogger blog title with Blog Title only, and replacing Blogger blog post title with post name followed by blog name.&lt;br /&gt;
&lt;br /&gt;
Helps?? Leave your thoughts in comment section!&lt;br /&gt;
Have a wonderful day!&lt;br /&gt;
</description><link>https://aslamise.blogspot.com/2014/05/remove-blog-name-from-title-of-blogger.html</link><author>noreply@blogger.com (Aslam)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4891879048720738684.post-2908554947558224075</guid><pubDate>Wed, 09 Apr 2014 08:00:00 +0000</pubDate><atom:updated>2014-05-10T22:12:10.563+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Computer Tips</category><category domain="http://www.blogger.com/atom/ns#">Google Chrome</category><category domain="http://www.blogger.com/atom/ns#">JavaScript</category><category domain="http://www.blogger.com/atom/ns#">WebDesign</category><title>How to disable javascript in Google Chrome</title><description>&lt;br /&gt;
In this article, I will explain more than 3 methods to disable JavaScript in Google Chrome Browser.&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;i&gt;There are more than three methods that are available to disable&amp;nbsp;JavaScript&amp;nbsp;in Google Chrome.&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;you can use any of these to disable&amp;nbsp;JavaScript&amp;nbsp;in chrome as you find easiest for you.&lt;/i&gt;&lt;br /&gt;
&lt;h3&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;Method 1. Disable JavaScript in Google Chrome with Chrome Developer tools.&lt;/span&gt;&lt;/h3&gt;
HIT F12 (OR right click in any opened page and select &lt;i&gt;inspect element&lt;/i&gt;)&lt;br /&gt;
It will bring chrome developer tools screen. see screen shot below.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8agKxauSBS7WJo81vBqjqMKYgr6ochxOvZZ9LK5taZftMiL_-nlH_c01f7OYxMVtxks7RqZrfM8z-JAvarCtkLZzBQ05YKU2_q3pyOBYli47cYm16ZJUq6FghG8ylH9sQWtGmv6pmzfjO/s1600/How-to-disable-javascript-in-chrome-console-image.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot; target=&quot;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8agKxauSBS7WJo81vBqjqMKYgr6ochxOvZZ9LK5taZftMiL_-nlH_c01f7OYxMVtxks7RqZrfM8z-JAvarCtkLZzBQ05YKU2_q3pyOBYli47cYm16ZJUq6FghG8ylH9sQWtGmv6pmzfjO/s1600/How-to-disable-javascript-in-chrome-console-image.PNG&quot; height=&quot;160&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Now,We want to disable JavaScript in chrome using this chrome developer tools settings.&lt;br /&gt;
for that, click on the gear icon that you can see upper side of the developer tools window.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkHKRv5s811PgG_3TrGWdZJRd34KoMX2Te5z3Op1TLc9NIJSdQerDnCoewWFUZ8vE73TVsm81WPyS1Yw9CySn2rDvTQqv4OR0DmtltsWenpJbRQCAbgc9wXV6ryiU6tu_jtvaFCzZQq4PC/s1600/How-to-disable-javascript-in-chrome-settiings-icon.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkHKRv5s811PgG_3TrGWdZJRd34KoMX2Te5z3Op1TLc9NIJSdQerDnCoewWFUZ8vE73TVsm81WPyS1Yw9CySn2rDvTQqv4OR0DmtltsWenpJbRQCAbgc9wXV6ryiU6tu_jtvaFCzZQq4PC/s1600/How-to-disable-javascript-in-chrome-settiings-icon.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
settings panel will appear, in its general tab, you can see a check box labelled as &lt;i&gt;&quot;disable&amp;nbsp;JavaScript&quot;&lt;/i&gt;.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5VJOlOOr_tSQ79oSvdyTkfSFDyzgzsgD7ikjBLUfveT4wXKQeBV1HkEkwPFLEGqgjDPVJwav1nv8RiqhDjy9d9p_os7yqLN91KnR8hz7wCQRVIkiYBHZGb3OwkBPFUyc1aYSkHOT8xC3d/s1600/How-to-disable-javascript-in-chrome-settings-panle.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5VJOlOOr_tSQ79oSvdyTkfSFDyzgzsgD7ikjBLUfveT4wXKQeBV1HkEkwPFLEGqgjDPVJwav1nv8RiqhDjy9d9p_os7yqLN91KnR8hz7wCQRVIkiYBHZGb3OwkBPFUyc1aYSkHOT8xC3d/s1600/How-to-disable-javascript-in-chrome-settings-panle.PNG&quot; height=&quot;46&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Tick it&lt;b&gt; &lt;/b&gt;and you are done.&lt;br /&gt;
&lt;h3&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;Method 2. Disable JavaScript in Google Chrome in settings&lt;/span&gt;&lt;/h3&gt;
Type this in chrome&#39;s address bar&lt;br /&gt;
&lt;i&gt;chrome://chrome/settings/content&lt;/i&gt;&lt;br /&gt;
or you can reach in content settings by navigating through the chrome browser&#39;s menu.&lt;br /&gt;
click on &amp;gt; settings, and click to &amp;gt; show advanced settings at the bottom of the page. and &amp;nbsp;click on &amp;gt; content settings button&lt;b&gt;.&lt;/b&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYXLau-MUm6aKXh8GsfmGs5q2-H2fE2cRE6U5t6lJn7LMuMaetVrzHf1SYQXeNNA3gdB9ZxP1vnW5eP8KXQ_9ta7WLTxHiyrGL4lPD7y_lALyydzii8M0RJ9KvpISC3tpaDJhMEAZMNMGc/s1600/How-to-disable-javascript-in-chrome-content-settings.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYXLau-MUm6aKXh8GsfmGs5q2-H2fE2cRE6U5t6lJn7LMuMaetVrzHf1SYQXeNNA3gdB9ZxP1vnW5eP8KXQ_9ta7WLTxHiyrGL4lPD7y_lALyydzii8M0RJ9KvpISC3tpaDJhMEAZMNMGc/s1600/How-to-disable-javascript-in-chrome-content-settings.PNG&quot; height=&quot;314&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Under JavaScript,there are two options labelled as&lt;br /&gt;
&lt;i&gt;Allow all sites to run JavaScript (recommended)&lt;/i&gt;&lt;br /&gt;
and&lt;br /&gt;
&lt;i&gt;Do not allow any site to run JavaScript&lt;/i&gt;&lt;br /&gt;
check second option to disable JavaScript for all websites we visit through chrome.&lt;br /&gt;
OR&lt;br /&gt;
if you want to disable JavaScript only for one page, you can select first one and click on manage exceptions, and configure it there.&lt;br /&gt;
&lt;i&gt;I recommend&lt;/i&gt; you using first method if you want to disable JavaScript for temporary purpose.&lt;br /&gt;
&lt;h3&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;Method 3. Disable JavaScript in chrome on open&lt;/span&gt;&lt;/h3&gt;
If you are running chrome from command line,then you can make use of the &lt;i&gt;--disable-javascript&lt;/i&gt; flag by adding it at the end of command.&lt;br /&gt;
&lt;br /&gt;
easiest way to browse websites without JavaScript is to make two shortcuts in desktop, leave first one as normal. use it to browse in normal state.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3eDPv7NTj8jJVBr4NGFnTb3dqD2FWYTj-9zW57lv68lTBLHZvIpi5eZDGX-Kgf0L06ngkXB8lKoGB0JAIZgKAS5yNjb8Z6PEn88W93vO0wCabRGknjBsxpgd5Kusap0am3GhDJfAOuIEN/s1600/How-to-disable-javascript-in-chrome-two-short-cuts.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3eDPv7NTj8jJVBr4NGFnTb3dqD2FWYTj-9zW57lv68lTBLHZvIpi5eZDGX-Kgf0L06ngkXB8lKoGB0JAIZgKAS5yNjb8Z6PEn88W93vO0wCabRGknjBsxpgd5Kusap0am3GhDJfAOuIEN/s1600/How-to-disable-javascript-in-chrome-two-short-cuts.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Now, for once, right click on the second shortcut,select&lt;b&gt; &lt;/b&gt;&lt;i&gt;properties&lt;/i&gt;, and edit the target field.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Append &lt;b&gt;&lt;i&gt;--disable-javascript&lt;/i&gt;&lt;/b&gt; flag at the end of existing target, as you can see in screenshot, click OK.&lt;br /&gt;
You are done.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqTcTIAKJp8gqW9AGnHe9leK1XXo25iL4UgrHUHgOGhTESP2jsEM9pPPwZxC1z4IntlkpUpcV5JHym9tgcGa5HRWklMpzFhLvuToP_SWqSttgOkXIjpTY9Z9gRmH5cxmSZnYv8nlccjydC/s1600/How-to-disable-javascript-in-chrome-shortcut-method.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqTcTIAKJp8gqW9AGnHe9leK1XXo25iL4UgrHUHgOGhTESP2jsEM9pPPwZxC1z4IntlkpUpcV5JHym9tgcGa5HRWklMpzFhLvuToP_SWqSttgOkXIjpTY9Z9gRmH5cxmSZnYv8nlccjydC/s1600/How-to-disable-javascript-in-chrome-shortcut-method.PNG&quot; height=&quot;320&quot; width=&quot;232&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Now you can double click on that shortcut and browse any website disabling JavaScript.&lt;br /&gt;
&lt;br /&gt;
These are the easiest methods that work now. I will be updating any new method that are found. Hope this helps you.&lt;br /&gt;
&lt;br /&gt;
Please leave your suggestions and feedback here in discussions.</description><link>https://aslamise.blogspot.com/2014/04/how-to-disable-javascript-in-chrome.html</link><author>noreply@blogger.com (Aslam)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8agKxauSBS7WJo81vBqjqMKYgr6ochxOvZZ9LK5taZftMiL_-nlH_c01f7OYxMVtxks7RqZrfM8z-JAvarCtkLZzBQ05YKU2_q3pyOBYli47cYm16ZJUq6FghG8ylH9sQWtGmv6pmzfjO/s72-c/How-to-disable-javascript-in-chrome-console-image.PNG" height="72" width="72"/><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4891879048720738684.post-8886046473471517437</guid><pubDate>Fri, 04 Apr 2014 09:27:00 +0000</pubDate><atom:updated>2014-04-04T14:58:06.794+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Blogger</category><category domain="http://www.blogger.com/atom/ns#">Blogger Mobile</category><category domain="http://www.blogger.com/atom/ns#">Blogger Tips</category><title>Blogger conditional tag, best way to check whether it is mobile version or Desktop version</title><description>&lt;br /&gt;
You may have seen this :&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;&amp;lt;b:if cond=&#39;data:blog.isMobile&#39;&amp;gt;&amp;nbsp; &lt;/code&gt;&lt;br /&gt;
&lt;code&gt;//Mobile contents goes here&amp;nbsp;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&amp;lt;b:else/&amp;gt;&amp;nbsp;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;//Desktop contents here&amp;nbsp;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&amp;lt;/b:if&amp;gt;&amp;nbsp;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;&lt;/code&gt;

So, is there any other way without this else condition we can check if mobile version or desktop version is being accessed?&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
Yes, You can use `true` or `false` statements in blogger conditional tags in this case.
This is the best way you can insert custom scripts or stylesheets for mobile version and desktop version seperately!&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&lt;code&gt;&amp;lt;b:if cond=&#39;data:blog.isMobile == &amp;amp;quot;false&amp;amp;quot;&#39;&amp;gt;&amp;nbsp;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;//Contents inside this, will only appear in Desktop version.&amp;nbsp;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&amp;nbsp;&amp;lt;/b:if&amp;gt;&lt;/code&gt;</description><link>https://aslamise.blogspot.com/2014/04/blogger-conditional-tag-best-way-to-check-whether-it-is-mobile-version-or-desktop-version.html</link><author>noreply@blogger.com (Aslam)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4891879048720738684.post-5207323107123884149</guid><pubDate>Sun, 08 Sep 2013 12:16:00 +0000</pubDate><atom:updated>2013-09-08T17:46:44.743+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">PageSpeed</category><title>PageSpeed : Prefer asynchronous resources</title><description>Fetching resources asynchronously prevents those resources from blocking the page load.


&lt;br /&gt;
&lt;br /&gt;
It is always a recommended tip to follow asynchronous&amp;nbsp;method for loading external script files. thus it will speed up loading of page.&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;h2&gt;
Why Asynchronous?&lt;/h2&gt;
&lt;code&gt;&amp;lt;script&amp;gt;&lt;/code&gt; tags will block HTML renderer if they are found in between any other elements.&lt;br /&gt;
&lt;br /&gt;
If you are loading a huge JavaScript file with a blocking&amp;nbsp;&lt;code&gt;&amp;lt;script&amp;gt;&lt;/code&gt;&amp;nbsp; tag at the top of markup, you will not see any progress on the page as the mentioned script is getting loaded and evaluated.&lt;br /&gt;
Here adding &lt;code&gt;async&lt;/code&gt; tag will help the performance.&lt;br /&gt;
if we tag with a aync, the browser will no longer stop the html renderer process,and it will load and evaluated the script block asynchronously.&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;
How to &amp;nbsp;asynchronously load a script?&lt;/h2&gt;
Adding an async attribute will do this job.&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;&amp;lt;script async=&quot;async&quot; src=&quot;http://path-to-the-javascript-file.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description><link>https://aslamise.blogspot.com/2013/09/PageSpeed-Prefer-asynchronous-resources.html</link><author>noreply@blogger.com (Aslam)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4891879048720738684.post-3131522225622197316</guid><pubDate>Wed, 21 Aug 2013 15:26:00 +0000</pubDate><atom:updated>2013-08-21T20:56:25.642+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">PageSpeed</category><title>PageSpeed : Put CSS in the document head</title><description>Moving inline style blocks and &amp;lt;link&amp;gt; elements from the document body to the document head improves rendering performance.&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;
Why should you put CSS in the document head?&lt;/h2&gt;
&lt;br /&gt;
External stylesheets and inline style blocks inside the document body will affect page rendering performance.&lt;br /&gt;
because the webpage has to download all external stylesheets first to render the page effectively.&lt;br /&gt;
Putting stylesheets or style tags inside &amp;lt;body&amp;gt; &amp;lt;/body&amp;gt; tags will cause the page to behave strange.&lt;br /&gt;
&lt;br /&gt;
&lt;code class=&quot;tr_bq&quot;&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;&amp;lt;head&amp;gt;&lt;br /&gt;Call stylesheets here inside head tag.&lt;br /&gt;&amp;lt;/head&amp;gt;&lt;br /&gt;&amp;lt;body&amp;gt;&lt;br /&gt;Don&#39;t call stylesheets here.&lt;br /&gt;&amp;lt;/body&amp;gt;&lt;br /&gt;&amp;lt;/html&amp;gt;&lt;/code&gt;
&lt;br /&gt;
&lt;h2&gt;
&lt;/h2&gt;
&lt;h2&gt;
Solutions / Recommendation&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;As required by the HTML 4.01 Specification (&lt;a href=&quot;http://www.w3.org/TR/html4/struct/links.html#h-12.3&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;section 12.3&lt;/a&gt;), always put external stylesheets in the &lt;head&gt; section using the in the &lt;link&gt;&lt;/link&gt; tag.&amp;nbsp;&lt;/head&gt;&lt;/li&gt;
&lt;li&gt;Don&#39;t use @import. Also make sure that you specify the stylesheets in the correct order with respect to scripts.&lt;/li&gt;
&lt;li&gt;Put &amp;lt;style&amp;gt; blocks in the &amp;lt;head&amp;gt; section.&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;br /&gt;</description><link>https://aslamise.blogspot.com/2013/08/PageSpeed-Put-CSS-in-the-document-head.html</link><author>noreply@blogger.com (Aslam)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4891879048720738684.post-3073629394605789364</guid><pubDate>Wed, 21 Aug 2013 15:07:00 +0000</pubDate><atom:updated>2013-08-21T20:37:47.955+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">PageSpeed</category><title>PageSpeed : Optimize images</title><description>Properly formatting and compressing images can save many bytes of data.&lt;br /&gt;
&lt;br /&gt;
Images are the essential parts of a good webpage. but serving non-optimized images can result in a negative feedback from users.&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
&lt;h2&gt;
What it means by Optimize Images?&lt;/h2&gt;
&lt;br /&gt;
Optimize images means Reducing the file size and make the image progressive to ensure it is loading faster in browsers.&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;
Why Should you optimize Images?&lt;/h2&gt;
&lt;br /&gt;
If you are making a graphic from scratch, or you are taking a snap in your cam, you make some edits before you upload it. but most of don&#39;t know how to optimize and reduce the size of images or we just dont care about the size.&lt;br /&gt;
But when it comes to our site&#39;s health, it does matter. loading huge images can result in slow loading of page.&lt;br /&gt;
and if a user with slow connection visit the page, can leave as soon as he see such huge images &amp;nbsp;that takes much time to load.&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;
Solutions to optimize images.&lt;/h2&gt;
There are many tools available there just to optimize images.&lt;br /&gt;
or you can use Photo editors like &quot;Photoshop&quot; and GIMP to make images progressive and optimized.&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
Here &amp;nbsp;I list some of cool Image optimizers.&lt;/h3&gt;
&lt;br /&gt;
&lt;h3&gt;
For Windows OS&lt;/h3&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h4&gt;
PageSpeed Image optimizer Command line tool&lt;/h4&gt;
&lt;br /&gt;
&lt;a href=&quot;http://page-speed.googlecode.com/files/pagespeed_optimize_image.exe&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;http://page-speed.googlecode.com/files/pagespeed_optimize_image.exe [Direct Link]&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Usage &amp;nbsp; &amp;nbsp; : pagespeed_optimize_image.exe &lt;input_file&gt; &lt;output_file&gt;&lt;/output_file&gt;&lt;/input_file&gt;&lt;br /&gt;
Example : pagespeed_optimize_image.exe myimage.png myimage_optimized.png&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;
Adobe PhotoShop.&lt;/h4&gt;
&lt;br /&gt;
An article on Making Images progressive - &lt;a href=&quot;http://aslamise.blogspot.com/2013/07/how-to-make-an-image-progressive-photoshop-tutorial.html&quot; target=&quot;_blank&quot;&gt;http://aslamise.blogspot.com/2013/07/how-to-make-an-image-progressive-photoshop-tutorial.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;
JPEG for windows&lt;/h4&gt;
&lt;br /&gt;
&lt;a href=&quot;http://gnuwin32.sourceforge.net/packages/jpeg.htm&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;http://gnuwin32.sourceforge.net/packages/jpeg.htm&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;
RIOT(Radical Image Optimization Tool)&amp;nbsp;&lt;/h4&gt;
&lt;br /&gt;
&lt;a href=&quot;http://luci.criosweb.ro/riot/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;http://luci.criosweb.ro/riot/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
For Linux OS&lt;/h3&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h4&gt;
Gimp&lt;/h4&gt;
&lt;a href=&quot;http://www.gimp.org/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;http://www.gimp.org/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
&lt;br /&gt;&lt;/h3&gt;
&lt;h3&gt;
For MAC OS&lt;/h3&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h4&gt;
ImageOptim&lt;/h4&gt;
&lt;br /&gt;
&lt;a href=&quot;http://imageoptim.com/&quot;&gt;http://imageoptim.com/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
Online Image optimization Tools&lt;/h3&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h4&gt;
Smush.it&lt;/h4&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.smushit.com/ysmush.it/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;http://www.smushit.com/ysmush.it/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;
Recommendations.&lt;/h2&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Use PNG if you want trasperacy with image. PNG-8 is the best option than PNG-24 as PNG-24 will be larger in file size.&lt;/li&gt;
&lt;li&gt;Use JPGs for all photographical images, and for gradient images.&lt;/li&gt;
&lt;li&gt;Use GIF for much smaller images. (eg:less than 10x10 pixels)&lt;/li&gt;
&lt;li&gt;Never use BMP or &amp;nbsp;TIFF images in webpage&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description><link>https://aslamise.blogspot.com/2013/08/PageSpeed-Optimize-Images.html</link><author>noreply@blogger.com (Aslam)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4891879048720738684.post-1172851652412426952</guid><pubDate>Wed, 21 Aug 2013 13:57:00 +0000</pubDate><atom:updated>2013-08-21T19:29:04.601+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">PageSpeed</category><title>PageSpeed : Optimise the order of styles and scripts</title><description>Correctly ordering external stylesheets, and external and inline scripts, enables better parallelisation of downloads and speeds up browser rendering time.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;explanation&quot;&gt;
&lt;span style=&quot;color: #6aa84f;&quot;&gt;Browser&lt;/span&gt; : Come on you guys..&lt;br /&gt;
&lt;span style=&quot;color: #45818e;&quot;&gt;JavaScript&lt;/span&gt; : Let me in first .&lt;br /&gt;
&lt;span style=&quot;color: #6aa84f;&quot;&gt;Browser&lt;/span&gt; &amp;nbsp; : Come on JavaScript file.., But one thing though. Because you can alter the layout and contents in this page, I will NOT allow any other download activity till you completely Downloaded,parsed ,and executed.&lt;br /&gt;
&lt;span style=&quot;color: #45818e;&quot;&gt;JavaScript&lt;/span&gt; &amp;nbsp;: (&lt;i&gt;Downloaded,Parsed,and executed. it took some time&lt;/i&gt;)&lt;br /&gt;
&lt;i&gt;And other stylesheet guys were waiting outside to be downloaded.&lt;/i&gt;&lt;br /&gt;
- Once the execution of JavaScript files are complete,&lt;br /&gt;
&lt;span style=&quot;color: #6aa84f;&quot;&gt;Browser&lt;/span&gt; &amp;nbsp; : Come on you stylesheet guys..&lt;br /&gt;
&lt;span style=&quot;color: #e69138;&quot;&gt;Stylesheets&lt;/span&gt; : So sad.. but we will load. you didn&#39;t allow us to load in parallel.&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;
What happens here?&lt;/h4&gt;
&lt;br /&gt;
Style sheets couldn&#39;t load in parallel because they couldn&#39;t load while JavaScript is getting downloaded.&lt;br /&gt;
BUT&lt;br /&gt;
If they loaded first, JavaScript would have loaded in parallel with them.&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;
I have experimented this with 3 scripts and 3 stylesheets.&lt;/h2&gt;
&lt;br /&gt;
&lt;code class=&quot;tr_bq&quot;&gt;
&amp;lt;head&amp;gt;&lt;br /&gt;&amp;lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;stylesheet_1.css&quot; /&amp;gt;&lt;br /&gt;&amp;lt;script type=&quot;text/javascript&quot; src=&quot;script_1.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&amp;lt;script type=&quot;text/javascript&quot; src=&quot;script_2.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&amp;lt;script type=&quot;text/javascript&quot; src=&quot;script_3.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&amp;lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;stylesheet_2.css&quot; /&amp;gt;&lt;br /&gt;&amp;lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;stylesheet_3.css&quot; /&amp;gt;&lt;br /&gt;&amp;lt;/head&amp;gt;&lt;/code&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
With the above code, Result is shown below.&lt;/h3&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOo1aKIZjoJYkO_O1lPhtWuh3pvm-1qqfmQPgntLkuLAEk98fzq8vjX17gOOhCpNcJK1pnMvMfvmZVi_QcSI7yoUgREkz7VCs8IP0Z1QA4Epzvn_hp4LrudS7nP0exVbKuclia9mzyfP0g/s1600/pagespeed-test-script-on-top-aslamise.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;106&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOo1aKIZjoJYkO_O1lPhtWuh3pvm-1qqfmQPgntLkuLAEk98fzq8vjX17gOOhCpNcJK1pnMvMfvmZVi_QcSI7yoUgREkz7VCs8IP0Z1QA4Epzvn_hp4LrudS7nP0exVbKuclia9mzyfP0g/s320/pagespeed-test-script-on-top-aslamise.JPG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Next, after moving stylesheets above all external scripts,&lt;br /&gt;
&lt;br /&gt;
&lt;code class=&quot;tr_bq&quot;&gt;
&amp;lt;head&amp;gt;&lt;br /&gt;&amp;lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;stylesheet_1.css&quot; /&amp;gt;&lt;br /&gt;&amp;lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;stylesheet_2.css&quot; /&amp;gt;&lt;br /&gt;&amp;lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;stylesheet_3.css&quot; /&amp;gt;&lt;br /&gt;&amp;lt;script type=&quot;text/javascript&quot; src=&quot;script_1.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&amp;lt;script type=&quot;text/javascript&quot; src=&quot;script_2.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&amp;lt;script type=&quot;text/javascript&quot; src=&quot;script_3.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&amp;lt;/head&amp;gt;&lt;/code&gt;
&lt;br /&gt;
&lt;code class=&quot;tr_bq&quot;&gt;&lt;br /&gt;&lt;/code&gt;
&lt;br /&gt;
&lt;h3&gt;
Above code produced following results.&lt;/h3&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjA5okSAYMyHLS7PG48mSOfZU6u-0cBYSkGCl94-mF4zK5lRXRjEFcG9PPbCRoWkAsMWYuFQKRYS8Vi4HexRn5or0EwZlPgiv7Oa8tDy-xF1_rfKOMQY8-iaHV5Inw1TXpVsjsTRCF1admM/s1600/pagespeed-test-styles-on-top-aslamise.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;107&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjA5okSAYMyHLS7PG48mSOfZU6u-0cBYSkGCl94-mF4zK5lRXRjEFcG9PPbCRoWkAsMWYuFQKRYS8Vi4HexRn5or0EwZlPgiv7Oa8tDy-xF1_rfKOMQY8-iaHV5Inw1TXpVsjsTRCF1admM/s320/pagespeed-test-styles-on-top-aslamise.JPG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
As you could see in above results, it is very clear that, moving external stylesheets before external JavaScript can help load the page quicker.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
Another problem occurs when there is an inline script block comes in between stylesheets.&lt;/h3&gt;
This prevents execution of the script untill the stylesheets are downloaded.&lt;br /&gt;
&lt;br /&gt;
&lt;code class=&quot;tr_bq&quot;&gt;
&amp;lt;head&amp;gt;&lt;br /&gt;&amp;lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;stylesheet_1.css&quot; /&amp;gt;&lt;br /&gt;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&lt;br /&gt;&amp;nbsp;document.write(&quot;Page modified by JavaScript.&quot;);&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&amp;lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;stylesheet_2.css&quot; /&amp;gt;&lt;br /&gt;&amp;lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;stylesheet_3.css&quot; /&amp;gt;&lt;br /&gt;&amp;lt;script type=&quot;text/javascript&quot; src=&quot;script_1.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&amp;lt;/head&amp;gt;&lt;/code&gt;
&lt;br /&gt;
&lt;br /&gt;
It will it prevent execution of the script untill the stylesheets are downloaded.&lt;br /&gt;
So the code should be in an order like below.&lt;br /&gt;
&lt;br /&gt;
&lt;code class=&quot;tr_bq&quot;&gt;
&amp;nbsp;&amp;lt;head&amp;gt;&lt;br /&gt;&amp;lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;stylesheet_1.css&quot; /&amp;gt;&lt;br /&gt;&amp;lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;stylesheet_2.css&quot; /&amp;gt;&lt;br /&gt;&amp;lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;stylesheet_3.css&quot; /&amp;gt;&lt;br /&gt;&amp;lt;script type=&quot;text/javascript&quot; src=&quot;script_1.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&lt;br /&gt;&amp;nbsp;document.write(&quot;Page modified by JavaScript.&quot;);&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&amp;lt;/head&amp;gt;&lt;/code&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;
Solutions/Recommendations&lt;/h2&gt;
&lt;br /&gt;
&lt;h3&gt;
Put external scripts after external stylesheets if possible.&lt;/h3&gt;
&lt;br /&gt;
Browsers execute stylesheets and scripts in the order in which they appear in the document. If the JS code has no dependencies on the CSS files, you can move the CSS files before the JS files. If the JS code does depend on the CSS contained in an external file — for example, styles that are needed for output you are writing to the document in the JS code — this isn&#39;t possible.&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
Put inline scripts after other resources if possible.&lt;/h3&gt;
&lt;br /&gt;
Putting inline scripts after all other resources prevents blocking of other downloads, and it also enables progressive rendering. However, if those &quot;other resources&quot; are external JS files on which the inline scripts depend, this might not be possible. In this case, it&#39;s best to move the inline scripts before the CSS files.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description><link>https://aslamise.blogspot.com/2013/08/PageSpeed-Optimise-the-order-of-styles-and-scripts.html</link><author>noreply@blogger.com (Aslam)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOo1aKIZjoJYkO_O1lPhtWuh3pvm-1qqfmQPgntLkuLAEk98fzq8vjX17gOOhCpNcJK1pnMvMfvmZVi_QcSI7yoUgREkz7VCs8IP0Z1QA4Epzvn_hp4LrudS7nP0exVbKuclia9mzyfP0g/s72-c/pagespeed-test-script-on-top-aslamise.JPG" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4891879048720738684.post-3025590546016120746</guid><pubDate>Wed, 21 Aug 2013 12:33:00 +0000</pubDate><atom:updated>2013-08-21T18:03:33.671+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">PageSpeed</category><title>PageSpeed : Minimize request size.</title><description>Keeping cookies and request headers as small as possible ensures that an HTTP request can fit into a single packet.&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;
What is an HTTP Request?&lt;/h2&gt;
&lt;br /&gt;
Whenever your browser fetches a file(maybe an html page, image, stylesheet,javascript or any other resource that can be received by a browser) , it does so using http Request.&lt;br /&gt;
&lt;br /&gt;
http request is a request that made by client browser to server, to get a resource from server.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;explanation&quot;&gt;
Browser : Hello server dude.. Get me that file named &quot;index.html&quot;.&lt;br /&gt;
Server &amp;nbsp; &amp;nbsp;: Ok . Browser dude.. I have the file. Take it..&amp;nbsp;&lt;/div&gt;
&lt;br /&gt;
That s happening for each file that is in a webpage.&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
HTTP request headers include:&lt;/h3&gt;
&lt;br /&gt;
&lt;h4&gt;
Cookies.&lt;/h4&gt;
For resources that must be sent with cookies, keep the cookie sizes to a bare minimum. &lt;br /&gt;
To keep the request size within this limit, no one cookie served off any domain should be more than 1000 bytes. Recommendation is that the average size of cookies served off any domain be less than 400 bytes.&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;
Browser-set fields&lt;/h4&gt;
Many of the header fields are automatically set by the user agent, so you have no control over them.&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;
Requested resource URL (GET and Host fields)&lt;/h4&gt;
URLs with multiple parameters can run into the thousands of bytes. Try to limit URL lengths to a few hundred bytes at most.&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;
Referrer URL&amp;nbsp;&lt;/h4&gt;
URL from where the page referred.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;
Solutions / Recommendations&lt;/h2&gt;
&lt;h4&gt;
Limit Cookie size.&amp;nbsp;&lt;/h4&gt;
Make it small as you can. less than 400 bytes good.&lt;br /&gt;
&lt;h4&gt;
Try to limit URL length.&lt;/h4&gt;
&amp;nbsp;if you are using additional parameters you can try cut down the length by NOT using self-explainig parameters.&lt;br /&gt;
for example,&lt;br /&gt;
If you use something like below&lt;br /&gt;
http://example.com/?name=myname&amp;amp;age=myage&amp;amp;country=mycountry&lt;br /&gt;
try to use other version like below.&lt;br /&gt;
http://example.com/?n=myname&amp;amp;a=myage&amp;amp;c=mycountry&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description><link>https://aslamise.blogspot.com/2013/08/PageSpeed-Minimize-Request-Size.html</link><author>noreply@blogger.com (Aslam)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4891879048720738684.post-4404670462712587073</guid><pubDate>Wed, 21 Aug 2013 11:23:00 +0000</pubDate><atom:updated>2013-08-21T16:56:58.804+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">PageSpeed</category><title>PageSpeed : Minimise redirects</title><description>Minimising HTTP redirects from one URL to another cuts out additional RTTs and wait time for users.&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;
What is an HTTP Redirect?&lt;/h2&gt;
&lt;br /&gt;
&lt;b&gt;Definition For HTTP Redirection from &lt;a href=&quot;http://en.wikipedia.org/wiki/HTTP_redirect&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;Wikipedia&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;explanation&quot;&gt;
URL redirection, also called URL forwarding, is a World Wide Web technique for making a web page available under more than one URL address. When a web browser attempts to open a URL that has been redirected, a page with a different URL is opened. For example, www.example.com is redirected to example.iana.org. Similarly, Domain redirection or domain forwarding is when all pages in a URL domain are redirected to a different domain, as when wikipedia.com and wikipedia.net are automatically redirected to wikipedia.org. URL redirection can be used for URL shortening, to prevent broken links when web pages are moved, to allow multiple domain names belonging to the same owner to refer to a single web site, to guide navigation into and out of a website, for privacy protection, and for less innocuous purposes such as phishing attacks.&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Sometimes its necessary to issue http redirects. like in below cases&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;To indicate new address of a resource that has moved from it&#39;s previous location.&lt;/li&gt;
&lt;li&gt;To track &amp;nbsp;clicks and impressions and log referring urls.&lt;/li&gt;
&lt;li&gt;To catch misspelled urls, and redirect to vanity url&#39;s or to user friendly url&#39;s.&lt;/li&gt;
&lt;li&gt;To issue secure browsing . http to https.&lt;/li&gt;
&lt;li&gt;To add &amp;nbsp;different country-code top-level domains as per the country of visitor. &quot;.com&quot; to &quot;.in&quot; &amp;nbsp;or to &quot;.uk&quot;&lt;/li&gt;
&lt;li&gt;To add a trailing slash to URL directory names to make their contents accessible to the browser.&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;
Solutions / Recommendations&lt;/h2&gt;
&lt;br /&gt;
&lt;h3&gt;
Eliminate unnecessary redirects&lt;/h3&gt;
&lt;br /&gt;
Avoid adding urls that are known to redirected to another url. instead add the absolute url where the redirection ends.&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
Use server rewrites for user-typed URLs.&lt;/h3&gt;
&lt;br /&gt;
many servers supports URL rewriting mechanism. make use of rewriting to serve correct urls or mistyped urls.&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
Prefer HTTP over JavaScript or meta redirects.&lt;/h3&gt;
&lt;br /&gt;
There are several ways to redirect a page to another.&lt;br /&gt;
&lt;h4&gt;
Using JavaScript.&lt;/h4&gt;
We can redirect a page to another one using &lt;code&gt;window.location&lt;/code&gt; object.&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;
Using Meta tag&lt;/h4&gt;
&lt;code&gt;http-equiv=&quot;refresh&quot;&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;
Using Server Side mechanism&lt;/h4&gt;
This is recommended to follow this way to redirect your page to another.&lt;br /&gt;
Because in JavaScript and meta ways, browser will have to parse the document in client browser to redirect .&lt;br /&gt;
but if it is done server side, client will not have to download the document. thus it reduces latency and page loads faster.&lt;br /&gt;
&lt;br /&gt;</description><link>https://aslamise.blogspot.com/2013/08/PageSpeed-Minimise-Redirects.html</link><author>noreply@blogger.com (Aslam)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4891879048720738684.post-130757833949900608</guid><pubDate>Wed, 21 Aug 2013 08:11:00 +0000</pubDate><atom:updated>2013-08-21T13:42:26.207+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">PageSpeed</category><title>PageSpeed : Minify Javascript</title><description>&amp;nbsp;Compacting JavaScript code can save many bytes of data and speed up downloading, parsing, and execution time.&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;tr_bq&quot;&gt;
Minifying JavaScript &amp;nbsp;means removing &amp;nbsp;unnecessary bytes such as spaces, comments, line-breaks, and indentation in your JavaScript code. &amp;nbsp;&lt;/div&gt;
&lt;br /&gt;
It will reduce the total size of the JavaScript file.&lt;br /&gt;
&lt;br /&gt;
If you are inlining your JavaScript files inside html, compressing it will help reduce the total size of the page thus the browser download it quick than before.&lt;br /&gt;
and if you are using external javascript files, it can be loaded,parsed,and executed faster than before.&lt;br /&gt;
&lt;h2&gt;
How to minify JavaScript&lt;/h2&gt;
&lt;br /&gt;
There are several tools available to minify JavaScript.&lt;br /&gt;
&lt;br /&gt;
&quot;Closure Compiler&quot; from Google is the better option to minify JavaScript.&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://closure-compiler.appspot.com/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;http://closure-compiler.appspot.com&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description><link>https://aslamise.blogspot.com/2013/08/PageSpeed-Minify-JavaScript.html</link><author>noreply@blogger.com (Aslam)</author><thr:total>1</thr:total></item></channel></rss>