<?xml version="1.0" encoding="ISO-8859-1"?><rss version="2.0"><channel><title>I learned something new today</title><description>Pritlog</description><link>http://hardkap.net/blog/index.php/</link><item><link>http://hardkap.net/blog/index.php/RSS/viewEntry/00052/Create-subdomains-in-PHP</link><title>Create subdomains in PHP</title><category>web</category><description>When I started receiving more and more requests for installing Pritlog on my server for different folks, I wanted to think of a better solution than just installing a separate Pritlog copy to each individual and put them in separate sub directories. This can cause any modification or updations to all these different installations to be a very time consuming task. &amp;nbsp;&lt;br&gt;&lt;br&gt;This is when I started thinking about the possibility of modifying Pritlog in such a way that a single installation could handle multiple blogs and these blogs can be in separate subdomains - similar to how it works in Blogspot and few other sites. &lt;br&gt;&lt;br&gt;First task was to create sub domains dynamically using PHP. Usually, sub domains can be created from the control panel provided by your hosting provider. But, this is a manual task. I did some searching through the net and came across some articles that talked about using a XML API provided by cPanel (hosting control panel) that could be used. My delicious link below has the bookmarks I made during my research.&lt;br&gt;&lt;br&gt;&lt;a target=&quot;_blank&quot; title=&quot;&quot; href=&quot;http://delicious.com/prithish/subdomain&quot;&gt;http://delicious.com/prithish/subdomain&lt;/a&gt;&lt;br&gt;&lt;br&gt;But, none of the API solutions worked for me. I was trying this on my hosting account with Hostmonster. Finally, the below solution worked for me. &lt;br&gt;The original discussion link:&lt;br&gt;&lt;a target=&quot;_blank&quot; title=&quot;&quot; href=&quot;http://www.webmasterworld.com/forum88/8746.htm&quot;&gt;http://www.webmasterworld.com/forum88/8746.htm&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;h4&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;The steps that actually helped me.&lt;/span&gt;&lt;br&gt;&lt;/h4&gt;&lt;font color=&quot;#000000&quot; face=&quot;verdana&quot; size=&quot;2&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Step 1: &lt;/span&gt;First you need to set
your main domain to act as a catch-all subdomain. its like putting
ServerAlias * so that each subdomain which is requested &lt;br&gt;to the main domain reaches the same place. I mean  if your main domain root is &lt;/font&gt;&lt;p&gt;&lt;font color=&quot;#000000&quot; face=&quot;verdana&quot; size=&quot;2&quot;&gt;/home/admin/abc.com/htdocs/ &lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font color=&quot;#000000&quot; face=&quot;verdana&quot; size=&quot;2&quot;&gt;then your catch-all setup shall send all sub-domain requests to that same directory &lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font color=&quot;#000000&quot; face=&quot;verdana&quot; size=&quot;2&quot;&gt;/home/admin/abc.com/htdocs/ &lt;br&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;Initially, I could not figure out how to do it in Hostmonster. Finally, I found the solution somewhere that said, we could add a subdomain called '*' and make it direct to the root of the domain. This way, my domain became a catch all domain.&lt;br&gt;&lt;/p&gt;&lt;p&gt;&lt;font color=&quot;#000000&quot; face=&quot;verdana&quot; size=&quot;2&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Step 2: &lt;/span&gt;&lt;/font&gt;&lt;font color=&quot;#000000&quot; face=&quot;verdana&quot; size=&quot;2&quot;&gt;You'd add this code to very top of your index page right after &quot;&quot;&lt;/font&gt;&lt;/p&gt;&lt;div class=&quot;code&quot;&gt;
$domain = $_SERVER['HTTP_HOST']; &lt;br&gt;
$domain_parts = explode('.',$domain);
&lt;br&gt;if (count($domain_parts) == 3 &amp;amp;&amp;amp; $domain_parts[0]!= &quot;www&quot;) { &lt;br&gt;&amp;nbsp;&amp;nbsp; // make sure a subdomain is called 
&lt;br&gt;&amp;nbsp;&amp;nbsp; $user = $domain_parts[0]; 
&lt;br&gt;&amp;nbsp;&amp;nbsp; $loc = &quot;http://domain.tld/whateverpage.ext?varname=$user&quot;;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br&gt;&amp;nbsp;&amp;nbsp; @header(&quot;Location:$loc&quot;); 
&lt;br&gt;} 
&lt;/div&gt;
&lt;br&gt;What this step is basically saying is when the domain is a catch all domain, all requests to any subdomains will come to the index files of the root domain. You can add this code to parse the data in the requested url and figure out what subdomain was requested and use &quot;header&quot; function from within your index script to handle the redirection. &lt;br&gt;&lt;br&gt;I am now using this to provide hosted Pritlog. Here are some links to check this out.&lt;br&gt;&lt;a target=&quot;_blank&quot; title=&quot;&quot; href=&quot;http://mathew.pritlog.com/&quot;&gt;http://mathew.pritlog.com/&lt;/a&gt;&lt;br&gt;&lt;a target=&quot;_blank&quot; title=&quot;&quot; href=&quot;http://tania.pritlog.com/&quot;&gt;http://tania.pritlog.com/&lt;/a&gt;&lt;br&gt;&lt;a target=&quot;_blank&quot; title=&quot;&quot; href=&quot;http://blakley.pritlog.com/&quot;&gt;http://blakley.pritlog.com/&lt;/a&gt;&lt;br&gt;&lt;a target=&quot;_blank&quot; title=&quot;&quot; href=&quot;http://blakley.pritlog.com/&quot;&gt;&lt;font color=&quot;#000000&quot; face=&quot;verdana&quot; size=&quot;2&quot;&gt;&lt;/font&gt;&lt;/a&gt;&lt;br&gt;If anything on this post is not clear, please feel free to post a comment requesting clarification.&lt;br&gt;</description></item><item><link>http://hardkap.net/blog/index.php/RSS/viewEntry/00050/Template-engine-for-Pritlog</link><title>Template engine for Pritlog</title><category>web</category><description>In developing the latest release of Pritlog, one major ingredient I wanted to add was a template engine. I searched far and wide on the web and came up with a big list of probably solutions. Keep in mind that I was more interested in very simple and light weight solutions and not in any full fledged template engines. This requirement is because I want Pritlog to be a lightweight blogging solution. &lt;br&gt;&lt;br&gt;If you want to see the complete list of templating solutions I bookmarked, here they are:&lt;br&gt;&lt;a target=&quot;_blank&quot; title=&quot;&quot; href=&quot;http://delicious.com/prithish/templateengine&quot;&gt;http://delicious.com/prithish/templateengine&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;h4&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;The below two fascinated me:&lt;/span&gt;&lt;/h4&gt;1 - &lt;a target=&quot;_blank&quot; title=&quot;&quot; href=&quot;http://thephppro.com/articles/pte.php&quot;&gt;Using PHP as your template engine: &lt;/a&gt;The author explains how the &lt;span style=&quot;font-weight: bold;&quot;&gt;extract&lt;/span&gt; command in PHP can be used to create an easy solution for templating with pure PHP.&lt;br&gt;&lt;br&gt;2 - &lt;a target=&quot;_blank&quot; title=&quot;&quot; href=&quot;http://www.webmasterworld.com/php/3444822.htm&quot;&gt;The one line template engine:&lt;/a&gt; The author gives the solution mentioned below. I ended up using this for Pritlog and was pretty satisfied with this approach. Pritlog is still under 350 KB uncompressed with templating and plugin functionality. &lt;br&gt;&lt;br&gt;I apologize if the code does not look very clean. I will see if I can get a good code highlighter gadget to use on my Pritlog.&amp;nbsp; The engine itself:&amp;nbsp; &lt;textarea name=&quot;code&quot; class=&quot;php&quot;&gt;print preg_replace(&quot;/{([^{]{1,100}?)}/e&quot;,&quot;$$1&quot;,file_get_contents(&quot;template.tpl&quot;));&lt;/textarea&gt;&lt;br&gt;Format of template.tpl file: 
&lt;textarea name=&quot;code&quot; class=&quot;php&quot;&gt;&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;
&amp;lt;title&amp;gt;{title}&amp;lt;/title&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
&amp;lt;h1&amp;gt;{header}&amp;lt;/h1&amp;gt;
{text}
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;

Setting variables: 
$title=&quot;Example page&quot;; 
$header=&quot;My Examples&quot;; 
$text=&quot;See the placeholders replaced?&quot;;&lt;/textarea&gt;
&lt;br&gt;If you're not comfortable with pulling variables out of the global scope, define them as 
&lt;textarea name=&quot;code&quot; class=&quot;php&quot;&gt;$values['title']=&quot;..&quot;; etc., and use: 
print preg_replace(&quot;/{([^{]{1,100}?)}/e&quot;,&quot;$values[$1]&quot;,file_get_contents(&quot;template.tpl&quot;));
&lt;/textarea&gt;</description></item><item><link>http://hardkap.net/blog/index.php/RSS/viewEntry/00049/Website-hosting-with-Godaddy</link><title>Website hosting with Godaddy</title><category>web</category><description>&lt;span style=&quot;font-weight: bold;&quot;&gt;First fact&lt;/span&gt; - I don't get any money or sponsorship for this blog and hence this is an honest account from experience.&lt;br&gt;&lt;br&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Its amazing&lt;/span&gt; how when looking for hosting deals, you come across lots of websites claiming that they give web hosting reviews. But looking through many such sites, I found that they all talked about the same companies over and over again and usually Godaddy and Yahoo hosting rated very poor on these review sites. &lt;br&gt;&lt;br&gt;Also, &lt;span style=&quot;font-weight: bold;&quot;&gt;its shocking&lt;/span&gt; to know that many major hosting companies are infact part of the same group. We might think they are competitors, but they are just a big group working with each other. This is one reason we can see good reviews about all these sites always together in the same place. I am not going to mention any names. Please do your research.&lt;br&gt;&lt;br&gt;&lt;h4&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;3IX Hosting:&lt;/span&gt;&lt;/h4&gt;I was with a hosting company called &lt;span style=&quot;font-weight: bold;&quot;&gt;3ix&lt;/span&gt; for a year before switching to Godaddy. I must say that &lt;span style=&quot;font-weight: bold;&quot;&gt;3iX&lt;/span&gt; did an excellent job for the price. I paid around $33 for hosting for a year for 3 websites and the sites have been down for only a couple of days in a whole year. Because my requirements were low, I really did not get affected by this. All other times, it has been very stable and fast. I could get the live chat support anytime instantly. If someone is looking for extremely cheap hosting with excellent support, then 3ix would be a great choice. &lt;br&gt;&lt;br&gt;&lt;h4&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Godaddy:&lt;/span&gt;&lt;/h4&gt;I switched to Godaddy seeking more stability. I have been with them for over a year now and have been very happy. The sites have rarely went down and I could do all the things I needed using the hosting. The support has been great and friendly. &lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;br&gt;&lt;br&gt;There are minor glitches like &lt;/span&gt;&lt;br&gt;- htaccess takes around 1 hour to get activated&lt;br&gt;- Its not cpanel and its their own control panel software&lt;br&gt;- There are no logging apps like awstats&lt;br&gt;- Very limited MySQL Databases&lt;br&gt;- Setting new things like new ftp user, new database, new domains can take couple of hours&lt;br&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;br&gt;Positives:&lt;/span&gt;&lt;br&gt;- Friendly and good support&lt;br&gt;- Fast - I have never had speed or bandwidth problems&lt;br&gt;- Stable - The server has been very stable and my sites have hardly gone down&lt;br&gt;&lt;br&gt;</description></item><item><link>http://hardkap.net/blog/index.php/RSS/viewEntry/00048/Pritdeals---Faster-and-Smarter</link><title>Pritdeals - Faster and Smarter</title><category>web</category><description>PritDeals website has been around for atleast over a year now. It used to be a sub domain of hardkap. Last week, I moved this to its own domain at &lt;a target=&quot;_blank&quot; title=&quot;&quot; href=&quot;http://pritdeals.com&quot;&gt;http://pritdeals.com&lt;/a&gt;. &lt;br&gt;&lt;br&gt;&lt;h4&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;This is how PritDeals worked till before last week:&lt;/span&gt;&lt;/h4&gt;- Every time someone visits the page or refreshes the page, it would go and read and parse the feeds from these other deal sites. This backend operation happens at the server in a PHP script and then it sends it to the client browser. The searches are done completely using the client browser. Hence it is faster to perform searches. &lt;br&gt;&lt;br&gt;The disadvantage of this approach was that the initial time to load was not pleasant. Hence I started working on a better solution.&lt;br&gt;&lt;br&gt;&lt;h4&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;This is how PritDeals works now:&lt;/span&gt;&lt;/h4&gt;- A cron job on the server runs a PHP script to get the feeds from these deal sites and upload it to a database. &lt;br&gt;- Every time someone visits or refreshes the page, it just goes and reads from the database and sends it to the client browser. &lt;br&gt;&lt;br&gt;This approach has made significant improvements in the initial load times.&lt;br&gt;&lt;br&gt;While I was at it, I also changed the way the search was being done. Now it handles multiple words very well. The order of the words does not matter when searching with multiple keywords. &lt;br&gt;&lt;br&gt;&lt;h4&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;What is planned for PritDeals?&lt;/span&gt;&lt;/h4&gt;- I want to add a deal watch feature where anybody can give a list of keywords, an expected price and their email id to get automatic notification when there is a deal that matches their criteria and price. &lt;br&gt;</description></item><item><link>http://hardkap.net/blog/index.php/RSS/viewEntry/00047/Login-to-cPanel-without-the-port</link><title>Login to cPanel without the port</title><category>web</category><description>I don't know if this rule can be generalized as it depends on the hosting company and how they are setup.&lt;br&gt;&lt;br&gt;I have been using Hostmonster from last month for hosting websites. One major drawback for me was that it was not possible to connect to the control panel (cpanel) from everywhere. In some locations, the special ports are blocked and cpanel uses a special port 2083. Hence I could not connect to the Hostmonster control panel.&lt;br&gt;&lt;br&gt;I was googling and searching for a solution and somebody on the hostmonster forum had an answer to this. &lt;br&gt;&lt;br&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Login using this link&lt;/span&gt; - &lt;a target=&quot;_blank&quot; title=&quot;&quot; href=&quot;http://login.hostmonster.com&quot;&gt;http://login.hostmonster.com&lt;/a&gt; and your cpanel id and password. This worked for me in hostmonster and I also checked on a friends account at bluehost and it worked there too. Hope this helps someone.&lt;br&gt;</description></item><item><link>http://hardkap.net/blog/index.php/RSS/viewEntry/00043/CSS-Sprites</link><title>CSS Sprites</title><category>web</category><description>When working on Pritlog 0.8, I wanted to make it perform better. Hence, using the &lt;a target=&quot;_blank&quot; title=&quot;&quot; href=&quot;http://developer.yahoo.com/yslow/&quot;&gt;Firefox addon Yslow&lt;/a&gt;, I did some analysis and found that there were around 28 HTTP requests being made on every page refresh of Pritlog. &lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://hardkap.net/blog/index.php/RSS/viewEntry/00044/Testimony--Anniversary-trip-to-Pismo-Beach&quot;&gt;Continue reading&lt;/a&gt;</description></item><item><link>http://hardkap.net/blog/index.php/RSS/viewEntry/00042/CSS-Frameworks</link><title>CSS Frameworks</title><category>web</category><description>This would be my first post on this blog after moving to Pritlog 0.8. This is the first version of Pritlog using Sqlite as backend instead of flat files. &lt;br&gt;&lt;br&gt;When working on Pritlog, it was my constant search to find a suitable css framework that included a decent CSS reset and a layout system. Resets are used so that the website looks the same across different web browsers. &lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://hardkap.net/blog/index.php/RSS/viewEntry/00043/CSS-Sprites&quot;&gt;Continue reading&lt;/a&gt;</description></item><item><link>http://hardkap.net/blog/index.php/RSS/viewEntry/00032/Google-insights---see-trends</link><title>Google insights - see trends</title><category>web</category><description>I saw this google product that can be very helpful for businesses and creating products. &lt;br&gt;&lt;br&gt;&lt;a target=&quot;_blank&quot; title=&quot;Google insights&quot; href=&quot;http://www.google.com/insights/search/#&quot;&gt;http://www.google.com/insights/search/#&lt;/a&gt;&lt;br&gt;&lt;br&gt;You can see what people are searching, what regions are searching for a particular search term. You can compare search volume patterns across specific regions, categories, and time frames. &lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://hardkap.net/blog/index.php/RSS/viewEntry/00033/Presentation-skills&quot;&gt;Continue reading&lt;/a&gt;</description></item><item><link>http://hardkap.net/blog/index.php/RSS/viewEntry/00031/Align-div-in-Internet-Explorer</link><title>Align div in Internet Explorer</title><category>web</category><description>The trick to center a div in IE.&lt;br&gt;&lt;ul&gt;&lt;li&gt;Body selector: text-align: center; &lt;/li&gt;&lt;li&gt;Div/Container: margin: 0 auto;&lt;/li&gt;&lt;li&gt;Div/Container: text-align: left; on the container to counter the center align for body&lt;/li&gt;&lt;/ul&gt;</description></item><item><link>http://hardkap.net/blog/index.php/RSS/viewEntry/00029/Htaccess-Tricks</link><title>Htaccess Tricks</title><category>web</category><description>htaccess files are optional configuration files used in Apache web servers that can be used to control the directories they are placed in and also the sub directories.&lt;br&gt;&lt;br&gt;If your host allows .htaccess files, you may want to read the below articles and use the powerful techniques explained. &lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://hardkap.net/blog/index.php/RSS/viewEntry/00030/How-I-search-for-deals&quot;&gt;Continue reading&lt;/a&gt;</description></item><item><link>http://hardkap.net/blog/index.php/RSS/viewEntry/00028/Read-apache-logs-using-grep</link><title>Read apache logs using grep</title><category>web</category><description>Some tips from the below link to read your apache log files using the simple grep command.&lt;br&gt;&lt;a target=&quot;_blank&quot; title=&quot;Grep your log&quot; href=&quot;http://immike.net/blog/2007/07/12/grepping-your-web-logs/&quot;&gt;http://immike.net/blog/2007/07/12/grepping-your-web-logs/&lt;/a&gt;&lt;br&gt;&lt;br&gt;Here are some quotes from the article: &lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://hardkap.net/blog/index.php/RSS/viewEntry/00029/Htaccess-Tricks&quot;&gt;Continue reading&lt;/a&gt;</description></item><item><link>http://hardkap.net/blog/index.php/RSS/viewEntry/00024/Scrolling-text-on-webpage</link><title>Scrolling text on webpage</title><category>web</category><description>I usually use the below code to add scrolling text on a webpage. You can see this on &lt;a href=&quot;http://macpup.org&quot; target=&quot;_blank&quot;&gt;http://macpup.org&lt;/a&gt;.
&lt;br&gt;
&lt;br&gt;&lt;div class=&quot;code&quot;&gt;&lt;pre&gt;&lt;b&gt;Put this in your head section&lt;/b&gt;
&lt;br&gt;&lt;script language=&quot;Javascript&quot; type=&quot;text/javascript&quot;&gt;
&lt;br /&gt;message=&quot;Your favorite slogan&quot;;
&lt;br /&gt;pos=0;
&lt;br /&gt;maxlength=message.length+1;
&lt;br /&gt;function scrollmsg()
&lt;br /&gt;{
&lt;br /&gt;	if (pos&lt;maxlength)
&lt;br /&gt;	{
&lt;br /&gt;		txt=message.substring(0,pos);
&lt;br /&gt;		document.getElementById('scrolld1').innerHTML=txt;
&lt;br /&gt;		pos++;
&lt;br /&gt;		timer=setTimeout(&quot;scrollmsg()&quot;, 50);
&lt;br /&gt;	}
&lt;br /&gt;	else
&lt;br /&gt;	{
&lt;br /&gt;		pos=0;
&lt;br /&gt;		ts=setTimeout(&quot;scrollmsg()&quot;,3000);
&lt;br /&gt;	}
&lt;br /&gt;}
&lt;br /&gt;&lt;/script&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;&lt;b&gt;Add the below to your body section, wherever you feel appropriate:&lt;/b&gt;
&lt;br&gt;&lt;div id=&quot;scrolld1&quot;&gt;&lt;/div&gt;
&lt;br&gt;
&lt;br&gt;&lt;b&gt;Change your body section:&lt;/b&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;&lt;/pre&gt;&lt;/div&gt;</description></item><item><link>http://hardkap.net/blog/index.php/RSS/viewEntry/00022/To-Write</link><title>To Write</title><category>web</category><description>Just noting down some topics to add. Need to collect more information to add these.
&lt;br&gt;- Basics: Register, host and run a website
&lt;br&gt;- Recipes from my wife's notes
&lt;br&gt;- Rexx: Main code, panels, skeletons and everything in a single module
&lt;br&gt;- Protecting your site from bad spiders
&lt;br&gt;- Awstats and how to configure GeoIP
&lt;br&gt;- Adding a count down on the download page&lt;br&gt;- Learnings from creating Pritlog&lt;br&gt;- Things to remember when dealing with files in PHP&lt;br&gt;- Measure your site hits and statistics (awstats, analytics)&lt;br&gt;- Simple photography tips&lt;br&gt;- Interesting websites you may/may not know&lt;br&gt;- What to expect after having a baby&lt;br&gt;- What to do when your 1 year old doesnt eat&lt;br&gt;- How to program keyless entry remote for a Camry&lt;br&gt;- Learning from a project in crisis&lt;br&gt;- Plugins for Pritlog&lt;br&gt;&lt;br&gt;- George Foreman's grill&lt;br&gt;- Read between lines - self service car wash ...&lt;br&gt;- Learning about sessions and other things from 0.412&lt;br&gt;&lt;br&gt;</description></item><item><link>http://hardkap.net/blog/index.php/RSS/viewEntry/00019/Is-the-Google-generation-smart</link><title>Is the Google generation smart?</title><category>web</category><description>I came across this wonderful and thought provoking article today. Really made me think.
&lt;br&gt;
&lt;br&gt;Here is the link to the article. &lt;b&gt;I would recommend reading the full article on this link.&lt;/b&gt;
&lt;br&gt;&lt;a href=&quot;http://technology.timesonline.co.uk/tol/news/tech_and_web/the_web/article4362950.ece&quot; target=&quot;_blank&quot;&gt;http://technology.timesonline.co.uk/tol/news/tech_and_web/the_web/article4362950.ece&lt;/a&gt;
&lt;br&gt;
&lt;br&gt;This might be a long post as I am trying to quote the important statements from the article.
&lt;br&gt;
&lt;br&gt;&lt;div class=&quot;quote&quot;&gt;In particular, there is the great myth of multitasking. No human being, he says, can effectively write an e-mail and speak on the telephone. Both activities use language and the language channel in the brain can’t cope. Multitaskers fool themselves by rapidly switching attention and, as a result, their output deteriorates.&lt;/div&gt;
&lt;br&gt;&lt;div class=&quot;quote&quot;&gt;One American study found that interruptions take up 2.1 hours of the average knowledge worker’s day. This, it was estimated, cost the US economy $588 billion a year.&lt;/div&gt;
&lt;br&gt;&lt;div class=&quot;quote&quot;&gt;Television was the first culprit. Tests clearly show that a switched-on television reduces the quality and quantity of interaction between children and their parents. The internet multiplies the effect a thousandfold. Paradoxically, the supreme information provider also has the effect of reducing information intake.&lt;/div&gt;
&lt;br&gt;&lt;div class=&quot;quote&quot;&gt;Now teenagers just go to their laptops on coming home from school and sink into their online cocoon. But this isn’t the informational paradise dreamt of by Bill Gates and Google: 90% of sites visited by teenagers are social networks. They are immersed not in knowledge but in “gossip and social banter”.&lt;/div&gt;
&lt;br&gt;&lt;div class=&quot;quote&quot;&gt;Teenagers are being groomed to think others can be picked up on a whim and dropped because of a mood or some slight offence. The fear is that the idea of sticking with another through thick and thin – the very essence of friendship and love – will come to seem absurd, uncool, meaningless.&lt;/div&gt;
&lt;br&gt;&lt;div class=&quot;quote&quot;&gt;They have all noted – either in themselves or in others – diminishing attention spans, inability to focus, a loss of the meditative mode. “I can’t read War and Peace any more,” confessed one of Carr’s friends. “I’ve lost the ability to do that. Even a blog post of more than three or four paragraphs is too much to absorb. I skim it.”&lt;/div&gt;
&lt;br&gt;&lt;b&gt;So what is the solution?&lt;/b&gt;
&lt;br&gt;
&lt;br&gt;&lt;div class=&quot;quote&quot;&gt;The brain is malleable. Just as it can be trained to be distracted, so it can be trained to pay attention. Education and work can be restructured to teach and propagate the skills of concentration and focus. People can be taught to turn off, to ignore the beep and the ping.&lt;/div&gt;
&lt;br&gt;- Enjoy the simple things in life
&lt;br&gt;- Read books once in a while 
&lt;br&gt;- Avoid multi tasking 
&lt;br&gt;- Stop listening to your ipod always</description></item><item><link>http://hardkap.net/blog/index.php/RSS/viewEntry/00016/Website-directory-list</link><title>Website directory list</title><category>web</category><description>The default behavior of websites is that if you dont have index.html, index.php or a similar index page, then it just displays a list of files in the directory on the website.
&lt;br&gt;
&lt;br&gt;There are some hosting companies that disable this for security reasons, which is good. But in some cases, you just want to give the list of files to visitors for download or viewing.  
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://hardkap.net/blog/index.php/RSS/viewEntry/00017/Carry-your-applications-with-you&quot;&gt;Continue reading&lt;/a&gt;</description></item><item><link>http://hardkap.net/blog/index.php/RSS/viewEntry/00013/Opensource---Try-before-you-install</link><title>Opensource - Try before you install</title><category>web</category><description>Many may not know about this wonderful website. I dont remember how I came across this one either. The site is:
&lt;br&gt;&lt;a href=&quot;http://opensourcecms.com/&quot; target=&quot;_blank&quot;&gt;http://opensourcecms.com/&lt;/a&gt;
&lt;br&gt;
&lt;br&gt;This site has demo installations of various open source packages/applications. Before we try installing any on our own site, we get to try out these packages on this website. &lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://hardkap.net/blog/index.php/RSS/viewEntry/00015/Punctured-radiator---replace-engine&quot;&gt;Continue reading&lt;/a&gt;</description></item><item><link>http://hardkap.net/blog/index.php/RSS/viewEntry/00007/Add-lightbox-to-your-site</link><title>Add lightbox to your site</title><category>web</category><description>I have noticed that nowadays many websites use ajax to show enlarged images. When you click on an image, instead of the image opening in a new browser window, it opens using animation and zoom. This can be used to view multiple images on a website like a gallery.
&lt;br&gt;
&lt;br&gt;Started searching for this. I did know about lightbox javascript library. But the one that impressed me finally is called prettyPhoto. This is a lightbox clone using jQuery. jQuery is a very powerful javascript library that I am very familiar with. I love this because of its simpilcity and because of all the plugins available to extend this.
&lt;br&gt;
&lt;br&gt;Here is the link to the prettyPhoto library.
&lt;br&gt;&lt;a href=&quot;http://www.no-margin-for-errors.com/projects/prettyPhoto/&quot; target=&quot;_blank&quot;&gt;http://www.no-margin-for-errors.com/projects/prettyPhoto/&lt;/a&gt;
&lt;br&gt;
&lt;br&gt;It is very simple to add to your website. You can see this working on my website below: (Try clicking an image on the website)
&lt;br&gt;&lt;a href=&quot;http://macpup.org/&quot; target=&quot;_blank&quot;&gt;http://macpup.org/&lt;/a&gt;</description></item><item><link>http://hardkap.net/blog/index.php/RSS/viewEntry/00006/Need-live-support-for-your-site</link><title>Need live support for your site?</title><category>web</category><description>I had never heard of a free application for providing live support / live chat on a website.
&lt;br&gt;
&lt;br&gt;One of my friends (Eric) mentioned this the other day. It is called Crafty Syntax and I am posting the link below:
&lt;br&gt;&lt;a href=&quot;http://www.craftysyntax.com/&quot; target=&quot;_blank&quot;&gt;http://www.craftysyntax.com/&lt;/a&gt; 
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://hardkap.net/blog/index.php/RSS/viewEntry/00007/Add-lightbox-to-your-site&quot;&gt;Continue reading&lt;/a&gt;</description></item><item><link>http://hardkap.net/blog/index.php/RSS/viewEntry/00004/How-to-build-a-shopping-site</link><title>How to build a shopping site</title><category>web</category><description>Once when I was asked by a friend to do their shopping site, I suggested ready made paid solutions like Godaddy.com, Amazon or even sell it through ebay. There are packages available from Godaddy and from few other websites that are paid and that give you the complete shopping cart funtionality. 
 &lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://hardkap.net/blog/index.php/RSS/viewEntry/00005/Random-Tips&quot;&gt;Continue reading&lt;/a&gt;</description></item><item><link>http://hardkap.net/blog/index.php/RSS/viewEntry/00003/Youtube---Fullscreen-Playlists</link><title>Youtube - Fullscreen Playlists</title><category>web</category><description>We started finding videos on youtube and creating playlists out of them. But when playing from Youtube, the videos do not play in fullscreen continuously.
&lt;br&gt;
&lt;br&gt;Searching on the web, I came across this code:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://hardkap.net/blog/index.php/RSS/viewEntry/00004/How-to-build-a-shopping-site&quot;&gt;Continue reading&lt;/a&gt;</description></item></channel></rss>