<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
><channel><title>Sneek-A-Peek</title> <atom:link href="http://mehulved.com/feed/" rel="self" type="application/rss+xml" /><link>http://mehulved.com</link> <description>Just another WordPress site</description> <lastBuildDate>Wed, 28 Nov 2012 00:02:19 +0000</lastBuildDate> <language>en-US</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <item><title>The Journey of Discovery</title><link>http://mehulved.com/2012/11/the-journey-of-discovery/</link> <comments>http://mehulved.com/2012/11/the-journey-of-discovery/#comments</comments> <pubDate>Wed, 28 Nov 2012 00:02:19 +0000</pubDate> <dc:creator>admin</dc:creator> <category><![CDATA[Uncategorized]]></category><guid
isPermaLink="false">http://mehulved.com/?p=218</guid> <description><![CDATA[I don&#8217;t have an answer for you but I can share my experience so far (not that I am an old guy, I am pretty much near my quarter life but I am starting to get my answers), it might help you in some way. I had no clue on what I wanted to do...  <a
href="http://mehulved.com/2012/11/the-journey-of-discovery/" class="more-link" title="Read The Journey of Discovery">Read more &#187;</a>]]></description> <content:encoded><![CDATA[<p>I don&#8217;t have an answer for you but I can share my experience so far (not that I am an old guy, I am pretty much near my quarter life but I am starting to get my answers), it might help you in some way.<br
/> I had no clue on what I wanted to do or what I liked. I had no career goals or even a direction when I graduated and for quite a few years later on. Around the time of my graduation, I picked up interest in Computers, especially in Linux. I started diving deep into it and got really involved with Linux community in Mumbai.<br
/> After my graduation, I joined classes to prepare for CAT, at insistence of my parents. I wasn&#8217;t too keen on MBA, I rather wanted to do MCA. But, scoring what most would consider a good percentile in CAT boosted my confidence and interest. But, the score wasn&#8217;t good enough to take me where I wanted to and I refused to settle for anything lesser. A few months down the line when I was going for MCA after scoring really well in MH-CET, but I got a job offer to work on Linux and adoption of Open Source Software at the same college I was about to take admission in, i.e. VJTI.<br
/> That stint lasted for a year and was my first experience with work. It was a failure but I learnt a lot and made friends. I attended my first BCM during this period. And entrepreneurship caught my fancy. I scored even better in CAT during that period but still fell a little short of getting to where I wanted.<br
/> After this point, thing were a little shaken up in personal life as my dad passed away and I wasn&#8217;t ready for taking up family responsibility, had no job and no money. I waited around to find some good job though mom wanted me to do MBA. I did find a job at a place that seemed nice and job itself had some things I considered interesting. I went ahead with that and started working as an Management Consultant. But, soon enough, I figured this is going to be a very short stint as it&#8217;s not what I want to do through my life. This is interesting and I do learn a lot but it has a short shelf life. The working conditions also didn&#8217;t agree with me and I left after working for some time.<br
/> During this period, I started to get bored of sedentary life and long working hours, no social life and picked up cycling as a means of commute. It was liberating and sports always make me happy.<br
/> In the meanwhile I scored well in CAT again but still short of my desired results. At this point, I decided to leave MBA behind and look at it at some later date and look around at some other kind of work. I tried my hand at some freelancing work. A great experience but a total dud. I was back to computers as my field of work though and at this point I knew that I wanted to work with computers but it never felt like &#8220;The love of my life&#8221;.<br
/> I then decided to explore working at startups and joined http://onlygizmos.com. Also, at the same time, I got involved in a project at IIT-B. This time I was diving deeper into computers and searching for what I want to do through my life. Around the end of this period, I picked up running and started getting into best shape of my life.<br
/> But, it lasted a little over a year. The time I quit from there was a period of my life when I was at my lowest. My personal and professional life were in tatters, I had no direction, I was quite depressed too.<br
/> But, thanks to some really good friends(you know them very well), it ended up being an opportunity rather than a roadblock. I went out soul searching. I tried some things I hadn&#8217;t tried before. I poked around for answers. But, nothing was forthcoming, it was a difficult period. But, somewhere I was enjoying the exploration. I was learning new things, discovering how little I understood the society and myself.<br
/> Then my mom was down with health problems and for a period of about 6 months I was pretty much cut off from regular work or sports. There were big fights in the cycling community and it was getting divided into groups. That put me off.<br
/> That took me to exploring the side of cycling and running I hadn&#8217;t before. I signed up for full marathon at SCMM and joined coaching for some competitive cycling.<br
/> At this point it hit me. The answer as to what I wanted to do was always with me. I always knew it. It is sports and staying close to the sports field that really interests me. I always ignored it as I never had any confidence that I&#8217;d be able to do anything in sports thanks to my abysmal fitness levels. Sports always remained a hobby for me. But, I have realized now that it needs to go beyond just a hobby. I don&#8217;t know how but what I want to really do is stay very close to sports and field of sports, stay involved with sports people. That&#8217;s something I will love doing. But, computers and it&#8217;s evolution have become a very close and inseparable part of my life.<br
/> Now, I am at a stage where I have an answer to where I want to be. Only thing I need to find is what is that exact thing I will be doing. The journey continues but I have answers, I am no more groping in the dark.<br
/> I am not only enjoying this period but totally in love with it. I am at peace with myself, like I have never been before. And it&#8217;s changing me. As Robert Frost said &#8220;I have miles to go before I sleep&#8221; but for me, a new journey has started and my field of interest has been discovered.<br
/> Maybe, you already know what you want to do but you&#8217;re unsure about it? Go and give it a spin and see how you feel about it. Go with an open mind and take in whatever you can. The answer will come to you, sooner or later. Look at yourself, look at what you enjoy doing with being bothered about anything else. Anything besides that is something you fancy but not what you love.</p> ]]></content:encoded> <wfw:commentRss>http://mehulved.com/2012/11/the-journey-of-discovery/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>How to use short url with sharethis</title><link>http://mehulved.com/2012/07/how-to-use-short-url-with-sharethis/</link> <comments>http://mehulved.com/2012/07/how-to-use-short-url-with-sharethis/#comments</comments> <pubDate>Tue, 24 Jul 2012 02:48:59 +0000</pubDate> <dc:creator>admin</dc:creator> <category><![CDATA[Technology]]></category> <category><![CDATA[sharethis]]></category> <category><![CDATA[shortener]]></category> <category><![CDATA[shortlink]]></category> <category><![CDATA[shortlinks]]></category> <category><![CDATA[shorturl]]></category> <category><![CDATA[shorturls]]></category> <category><![CDATA[url shortener]]></category><guid
isPermaLink="false">http://mehulved.com/?p=210</guid> <description><![CDATA[Using sharethis but disappointed that it doesn&#8217;t have shortlink support? If you are someone who is comfortable placing some code in the correct place inside your theme then following will work for you. In comes url-shortener plugin to the rescue. First install and activate sharethis and url shortener plugins. Select your favourite url shortening service in the...  <a
href="http://mehulved.com/2012/07/how-to-use-short-url-with-sharethis/" class="more-link" title="Read How to use short url with sharethis">Read more &#187;</a>]]></description> <content:encoded><![CDATA[<p>Using sharethis but disappointed that it doesn&#8217;t have shortlink support?</p><p>If you are someone who is comfortable placing some code in the correct place inside your theme then following will work for you.</p><p>In comes <a
href="http://wordpress.org/extend/plugins/url-shortener/">url-shortener plugin</a> to the rescue.</p><p>First install and activate sharethis and url shortener plugins. Select your favourite url shortening service in the url shortener plugin.</p><p>Then place the code in your theme at the appropriate place e.g.</p><blockquote><p> &lt;span class=&#8217;st_facebook&#8217; st_url=&#8217;&lt;?php echo wp_get_shortlink();?&gt;&#8217;&gt;&lt;/span&gt;</p></blockquote><p>If you have wordpress &lt;3.0, you should be upgrading, but for some reason you can&#8217;t, there is a slight difference in the code</p><blockquote><p>&lt;span class=&#8217;st_facebook&#8217; st_url=&#8217;&lt;?php fts_show_shorturl($post); ?&gt;&#8217;&gt;&lt;/span&gt;</p></blockquote> ]]></content:encoded> <wfw:commentRss>http://mehulved.com/2012/07/how-to-use-short-url-with-sharethis/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Moving emails from old server to new server using bash, python and offlineimap</title><link>http://mehulved.com/2012/05/moving-emails-from-old-server-to-new-server-using-bash-python-and-offlineimap/</link> <comments>http://mehulved.com/2012/05/moving-emails-from-old-server-to-new-server-using-bash-python-and-offlineimap/#comments</comments> <pubDate>Wed, 02 May 2012 08:28:05 +0000</pubDate> <dc:creator>admin</dc:creator> <category><![CDATA[Uncategorized]]></category><guid
isPermaLink="false">http://mehulved.com/?p=199</guid> <description><![CDATA[I had a task of moving emails from an old server to a new server. Considering that stream of emails would be coming in on the live server, rsync didn&#8217;t look like a good option to sync the Maildirs. So, I searched around the Internet for better solutions. The logically better solutions contained using the...  <a
href="http://mehulved.com/2012/05/moving-emails-from-old-server-to-new-server-using-bash-python-and-offlineimap/" class="more-link" title="Read Moving emails from old server to new server using bash, python and offlineimap">Read more &#187;</a>]]></description> <content:encoded><![CDATA[<p>I had a task of moving emails from an old server to a new server. Considering that stream of emails would be coming in on the live server, rsync didn&#8217;t look like a good option to sync the Maildirs.</p><p>So, I searched around the Internet for better solutions. The logically better solutions contained using the imap protocol to fetch the emails.</p><p>The first tool I came across was imapsync which uses imap to imap sync. But, I had to discard that option as it would involve me knowing passwords for all the users at both ends or resetting passwords on both the servers. There are other tools that would do two way sync. But that was again an overkill for my purpose.</p><p>Then I stumbled across <a
href="http://offlineimap.org">offlineimap</a> which is itself written in python. It fetches email from remote imap server and stores it in a local Maildir</p><p>First step was to reset the passwords for all the users on the remote server, this is a safe operation as the remote server is not in use anymore and will terminated soon. So, I reset the password of all the users</p><script src="https://gist.github.com/2565856.js"></script><noscript><pre><code class="language- ">#!/usr/bin/env bash

PASS=&quot;mypass&quot;
for USER in `awk -F: '{print $1}' /etc/passwd`
do
  echo $USER:$PASS &gt;&gt; user_list
done

cat user_list | chpasswd
</code></pre></noscript><p><span
style="color: #ff0000;">Be careful to use the above script as it is. It will reset password for all the users. Modify it to filter as per your requirements</span></p><p>So, now we are all set to setup sync on the local server. First of all, download offlineimap from your distro&#8217;s repository. Now we need to set it up to sync the emails. of all the users that exist locally. To do that, we need to add all the users information to the ~/.offlineimaprc file.</p><p>Here&#8217;s a simple python script to populate the .offlinelimaprc file.</p><script src="https://gist.github.com/2575049.js"></script><noscript><pre><code class="language- ">#!/usr/bin/python

userfile = open('/etc/passwd', 'r')
rcfile = open('~/.offlineimaprc','w')

entries = userfile.read().split(&quot;\n&quot;)
userfile.close()
userlist = []
content_repos = &quot;&quot;

for entry in entries:
  user = entry.split(&quot;:&quot;)[0]
  userlist.append(user)
  content_repos = content_repos + &quot;&quot;&quot;
  [Account {0}]
  localrepository = {0}Local
  remoterepository = {0}Remote
  
  [Repository {0}Local]
  type = Maildir
  localfolders = /var/spool/imap/w/user/{0}
    
  [Repository {0}Remote]
  type = IMAP
  remoteserver = my.host.name
  remoteuser = {0}
  remotepass = mypass
  &quot;&quot;&quot;.format(user)


content_accounts = &quot;&quot;&quot;
[general]
  accounts = {0}
&quot;&quot;&quot;.format(&quot;,&quot;.join(userlist))

content = content_accounts + content_repos
rcfile.write(content)
rcfile.close()</code></pre></noscript><p>That&#8217;s it. Simple enough, we are done. Now run the offlineimap command to get syncing.</p><p>&nbsp;</p> ]]></content:encoded> <wfw:commentRss>http://mehulved.com/2012/05/moving-emails-from-old-server-to-new-server-using-bash-python-and-offlineimap/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Getting Lava 720G to work in Ubuntu 11.10/12.04 Beta</title><link>http://mehulved.com/2012/04/getting-lava-720g-to-work-in-ubuntu-11-1012-04-beta/</link> <comments>http://mehulved.com/2012/04/getting-lava-720g-to-work-in-ubuntu-11-1012-04-beta/#comments</comments> <pubDate>Thu, 12 Apr 2012 21:42:43 +0000</pubDate> <dc:creator>admin</dc:creator> <category><![CDATA[Uncategorized]]></category><guid
isPermaLink="false">http://mehulved.com/?p=182</guid> <description><![CDATA[I have a Lava 720g 3G USB modem. The modem is supported by the usb_modeswitch distributed with Ubuntu 11.10 and 12.04 Beta. But, despite that it doesn&#8217;t connect out of the box. Here&#8217;s a very simple way in which I got it working. Open a terminal and type following commands in it sudo modprobe usbserial...  <a
href="http://mehulved.com/2012/04/getting-lava-720g-to-work-in-ubuntu-11-1012-04-beta/" class="more-link" title="Read Getting Lava 720G to work in Ubuntu 11.10/12.04 Beta">Read more &#187;</a>]]></description> <content:encoded><![CDATA[<p>I have a Lava 720g 3G USB modem. The modem is supported by the usb_modeswitch distributed with Ubuntu 11.10 and 12.04 Beta.<br
/> But, despite that it doesn&#8217;t connect out of the box. Here&#8217;s a very simple way in which I got it working.</p><p>Open a terminal and type following commands in it</p><blockquote><p>sudo modprobe usbserial vendor=0x1c9e product=0&#215;9605<br
/> sudo usb_modeswitch -v 0x1c9e -p 0&#215;9605 -V 0x1c9e -P 0&#215;9605 -M &#8220;55534243123456788000000080000606f50402527000000000000000000000&#8243;</p></blockquote> ]]></content:encoded> <wfw:commentRss>http://mehulved.com/2012/04/getting-lava-720g-to-work-in-ubuntu-11-1012-04-beta/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Web.py on lighttpd</title><link>http://mehulved.com/2012/02/web-py-on-lighttpd/</link> <comments>http://mehulved.com/2012/02/web-py-on-lighttpd/#comments</comments> <pubDate>Tue, 21 Feb 2012 19:02:38 +0000</pubDate> <dc:creator>admin</dc:creator> <category><![CDATA[Uncategorized]]></category><guid
isPermaLink="false">http://mehulved.com/?p=173</guid> <description><![CDATA[So, I wanted to host a small project made in web.py on my current server. I am running lighttpd as my HTTP server. The process to set it up is pretty straight forward as explained in the webpy documentation. I am writing this how-to to cover a couple of things which I didn&#8217;t find well...  <a
href="http://mehulved.com/2012/02/web-py-on-lighttpd/" class="more-link" title="Read Web.py on lighttpd">Read more &#187;</a>]]></description> <content:encoded><![CDATA[<p>So, I wanted to host a small project made in web.py on my current server. I am running lighttpd as my HTTP server.</p><p>The process to set it up is pretty straight forward as explained in the <a
href="http://webpy.org/cookbook/fastcgi-lighttpd">webpy documentation</a>.</p><p>I am writing this how-to to cover a couple of things which I didn&#8217;t find well documented and had to search around a lot to find</p><ul><li>To get web.py running with lighttpd and fastcgi you need to install the package flup. In debian it is known as python-flup.</li><li>On this server, I run php based sites as well so I had to setup fastcgi for both. Here&#8217;s what the code looks like:</li></ul><blockquote><pre><code>fastcgi.server = ( ".php" =&gt; (( </code></pre><pre><code>"bin-path" =&gt; "/usr/bin/php5-cgi", </code></pre><pre><code>"socket" =&gt; "/tmp/php.socket",</code></pre><pre><span style="font-family: monospace;">"max-procs" =&gt; 1,</span></pre><pre><span style="font-family: monospace;">"bin-environment" =&gt; (</span></pre><pre><span style="font-family: monospace;"> "PHP_FCGI_CHILDREN" =&gt; "4",</span></pre><pre><span style="font-family: monospace;"> "PHP_FCGI_MAX_REQUESTS" =&gt; "1000"</span></pre><pre><span style="font-family: monospace;">)</span></pre><pre><span style="font-family: monospace;">)),</span></pre><pre>"/code.py" =&gt; ((</pre><pre>"socket" =&gt; "/tmp/fastcgi.socket",</pre><pre>"bin-path" =&gt; "/path-to/webpy-app/code.py",</pre><pre>"max-procs" =&gt; 1,</pre><pre>"bin-environment" =&gt; (</pre><pre> "REAL_SCRIPT_NAME" =&gt; ""</pre><pre>),</pre><pre>"check-local" =&gt; "disable"</pre><pre>))</pre><pre>)</pre></blockquote><ul><li><span
style="font-family: monospace;">To use web sockets instead of unix sockets change</span></li></ul><blockquote><div><pre>"socket" =&gt; "/tmp/fastcgi.socket",</pre></div></blockquote><div><pre>to</pre><blockquote><pre>"host" =&gt; "127.0.0.1",</pre><pre>"port" =&gt; "8081",</pre></blockquote></div><p>&nbsp;</p><p>&nbsp;</p><pre></pre><pre></pre>]]></content:encoded> <wfw:commentRss>http://mehulved.com/2012/02/web-py-on-lighttpd/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Mediawiki on dotcloud</title><link>http://mehulved.com/2012/02/mediawiki-on-dotcloud/</link> <comments>http://mehulved.com/2012/02/mediawiki-on-dotcloud/#comments</comments> <pubDate>Sat, 11 Feb 2012 20:31:21 +0000</pubDate> <dc:creator>admin</dc:creator> <category><![CDATA[Open Source]]></category> <category><![CDATA[Technology]]></category> <category><![CDATA[dotcloud]]></category> <category><![CDATA[ilug-bom]]></category> <category><![CDATA[mediawiki]]></category> <category><![CDATA[nginx]]></category><guid
isPermaLink="false">http://mehulved.com/?p=169</guid> <description><![CDATA[Unfortunately, there&#8217;s no guide available for installing mediawiki on dotcloud and googling for it doesn&#8217;t turn up anything much useful. But, I had to move out LUG wiki to dotcloud. I proceeded with it while refering to drupal documentation. At the moment, I don&#8217;t have a guide on installing mediawiki but I can highlight the...  <a
href="http://mehulved.com/2012/02/mediawiki-on-dotcloud/" class="more-link" title="Read Mediawiki on dotcloud">Read more &#187;</a>]]></description> <content:encoded><![CDATA[<p>Unfortunately, there&#8217;s no guide available for installing mediawiki on dotcloud and googling for it doesn&#8217;t turn up anything much useful. But, I had to move out LUG wiki to dotcloud. I proceeded with it while refering to drupal documentation. At the moment, I don&#8217;t have a guide on installing mediawiki but I can highlight the problem I faced.<br
/> The big problem lies in the fact that the setup of MediaWiki was done on Apache and dotcloud runs nginx. So, the problem occured mainly with getting the path right.<br
/> The savior comes in form of the <a
href="http://wiki.nginx.org/MediaWiki">MediaWiki documentation for nginx</a>.</p><p>Some of the changes I had to make were</p><h4>LocalSettings.php</h4><blockquote><p>$wgUsePathInfo = true;</p></blockquote><h4>nginx.conf</h4><blockquote><p>try_files $uri $uri/ /index.php?title=$1&amp;$args;</p></blockquote><h4>fastcgi.conf</h4><blockquote><p>fastcgi_param  PATH_INFO          $fastcgi_path_info;</p></blockquote><p>&nbsp;</p><p>This isn&#8217;t a full fledged guide or a how-to but hopefully a pointer for people who are stuck while getting started with MediaWiki on dotcloud or nginx.</p> ]]></content:encoded> <wfw:commentRss>http://mehulved.com/2012/02/mediawiki-on-dotcloud/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Connecting GSM modem via CLI using NetworkManager</title><link>http://mehulved.com/2012/02/connecting-gsm-modem-via-cli-using-networkmanager/</link> <comments>http://mehulved.com/2012/02/connecting-gsm-modem-via-cli-using-networkmanager/#comments</comments> <pubDate>Fri, 03 Feb 2012 18:28:44 +0000</pubDate> <dc:creator>admin</dc:creator> <category><![CDATA[Uncategorized]]></category><guid
isPermaLink="false">http://mehulved.com/?p=158</guid> <description><![CDATA[After getting my new HDD couple of days back, I decided to install Arch Linux on it. The idea with Arch is to sufficiently control what goes into my system but without too much management overhead unlike in Gentoo. Thus, I installed stated with Core install of Arch and added fluxbox over it as my...  <a
href="http://mehulved.com/2012/02/connecting-gsm-modem-via-cli-using-networkmanager/" class="more-link" title="Read Connecting GSM modem via CLI using NetworkManager">Read more &#187;</a>]]></description> <content:encoded><![CDATA[<p>After getting my new HDD couple of days back, I decided to install Arch Linux on it. The idea with Arch is to sufficiently control what goes into my system but without too much management overhead unlike in Gentoo. Thus, I installed stated with Core install of Arch and added fluxbox over it as my default WM(I am not running any DM as of now, but might go with qingy). Thus, I have tried to avoid any GNOME or KDE libraries and do as much via minimal system as possible.</p><p>Since I disconnected my broadband a few months back, I have been living on Mobile Internet connectivity. So far I had been tethering my phone to the wifi router and then using LAN cable to connect to the PC. Horrible way to go, I agree! To simplify matters I got a USB GSM modem. It was as easy as pie to set up the connection on Ubuntu using Network Manager but with Arch, I decided not to go for nm-applet but manage it via CLI.</p><p>First I setup NetworkManager as instructed on the <a
href="https://wiki.archlinux.org/index.php/NetworkManager">Arch Wiki</a> and I got Wired Connection working in no time. The most important tool at this juncture was <em>nmcli.</em> I checked</p><blockquote><p>nmcli dev</p></blockquote><p>and it showed that gsm modem is being detected. But, on checking</p><blockquote><p>nmcli con</p></blockquote><p>It only showed the wired ethernet connection. Going through the man pages and googling for hints didn&#8217;t help at all. I finally turned to #nm IRC channel on Freenode.</p><p>Thanks to some excellent support, I was connected using the GSM Modem in no time.</p><p>Here&#8217;s the quick rundown</p><ol><li>Create a new file in /etc/NetworkManager/system-connections and as per the <a
href="http://bigw.org/~dan/ATT_Data_Connect_Plain">sample file</a>. PS: You can generate uuid using uuidgen or input any random UUID as long it isn&#8217;t in use elsewhere in your system.</li><li>Now, chmod the file to 0600.</li><li>Restart NetworkManager</li><li>Voila! What have we here. I could now see the new connection in the list.</li></ol><p>Now to get connected to the new connection. First we disconnect the Wired connection</p><blockquote><p>nmcli dev disconnect iface &lt;iface name&gt;</p></blockquote><p>And then connect to the new interface</p><blockquote><p>nmcli con up id &lt;connection id&gt;</p></blockquote><p>For those using MTNL Mumbai, you can use my settings</p><blockquote><pre>[connection]
id=MTNL
uuid=15d742f1-2b5a-421e-9f27-fcb1fc26d72c
type=gsm
autoconnect=true

[ipv4]
method=auto

[gsm]
number=*99#
username=mtnl
password=mtnl123
apn=gprsppsmum

[serial]
baud=115200</pre></blockquote><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p> ]]></content:encoded> <wfw:commentRss>http://mehulved.com/2012/02/connecting-gsm-modem-via-cli-using-networkmanager/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>WordPress Performance Tips</title><link>http://mehulved.com/2011/11/wordpress-performance-tips/</link> <comments>http://mehulved.com/2011/11/wordpress-performance-tips/#comments</comments> <pubDate>Tue, 15 Nov 2011 09:57:48 +0000</pubDate> <dc:creator>admin</dc:creator> <category><![CDATA[Open Source]]></category> <category><![CDATA[Technology]]></category><guid
isPermaLink="false">http://mehulved.com/?p=149</guid> <description><![CDATA[Do you find performance of your WordPress blog to be lousy? And have no clue on where to start with it? There are lots of articles on the Internet which will tell you what to do. So, instead of repeating the same, I&#8217;ll cover each aspect and links to articles which provide useful how-to&#8217;s on...  <a
href="http://mehulved.com/2011/11/wordpress-performance-tips/" class="more-link" title="Read WordPress Performance Tips">Read more &#187;</a>]]></description> <content:encoded><![CDATA[<p>Do you find performance of your WordPress blog to be lousy? And have no clue on where to start with it?</p><p>There are lots of articles on the Internet which will tell you what to do. So, instead of repeating the same, I&#8217;ll cover each aspect and links to articles which provide useful how-to&#8217;s on the same which I have come across while working on <a
href="http://onlygizmos.com">OnlyGizmos</a> and <a
href="http://iphonehelp.in">iPhoneHelp</a></p><p>I&#8217;ll divide it into sections on basis of the type of hosting as it is usually the limiting factor on how much tuning you can do.</p><h4>Shared Hosting</h4><p>Having your blog on shared hosting means there&#8217;s not much you can change but this is what will suffice for huge number of bloggers out there.</p><ul><li>Caching Plugin: W3 total cache is the best and highly recommended plugin. With tons of features besides caching like Minification, CDN support, mobile support, Cloudflare integration it is by far the best cache plugin I have come across. For installation and configuration see this wonderful how-to from <a
href="http://www.wpbeginner.com/plugins/how-to-install-and-setup-w3-total-cache-for-beginners/">wpbeginner</a></li><li>Theme: Use themes which have been designed with SEO in mind. These themes follow the best practices to speed up your page loading time e.g.<a
href="http://developer.yahoo.com/performance/rules.html#css_top"> putting stylesheets at the top</a> and <a
href="http://developer.yahoo.com/performance/rules.html#minify">minify</a> them. The theme framework I would recommend is <a
href="http://diythemes.com/thesis/">Thesis</a>. It is a paid theme but having worked with it, I can say that it&#8217;s worth the price if you are serious about your website.</li><li>Scripts: Put <a
href="http://developer.yahoo.com/performance/rules.html#js_bottom">javascript files at bottom</a> as recommended in YSlow. This can be handled by W3 Total Cache.</li></ul><h4>Single Server</h4><p>In addition to the above, if you have control over your server e.g. VPS or Dedicated server you can take following extra steps -</p><ul><li>HTTP Server: Move over from Apache to Nginx. Here&#8217;s a good guide on moving over your <a
href="http://blog.applegrew.com/2011/08/migrate-from-apache-to-nginx-the-new-guide/">wordpress blog to nginx</a>.</li><li>MySQL Tuning: Run the <a
href="https://github.com/rackerhacker/MySQLTuner-perl">mysqltuner script</a> and follow the recommendations given by it to improve MySQL performance.</li><li>PHP Accelerators: Install PHP Accelerator like APC or XCache. List of accelerators is available on <a
href="http://en.wikipedia.org/wiki/List_of_PHP_accelerators">wikipedia</a>. I recommend APC since it&#8217;s stable and is likely to be merged into PHP 6.</li><li>CDN: If you serve lot of static content and media do consider going with a CDN. And if you think you cannot afford CDN&#8217;s as they are too costly, think it over. <a
href="http://www.maxcdn.com/">MaxCDN</a> offers excellent CDN at an affordable price of $39.95 for the 1st TB. Do check them out.</li></ul><h4>Multiple Servers</h4><ul><li>Memcached: One of the components I am yet to personally handle but have heard a lot of good stuff about it. It can provide superior object caching. It has a good support in W3 Total Cache thus making your work of integrating with wordpress easier.</li><li>Varnish: Place <a
href="http://www.varnish-cache.org">varnish</a> in front of your HTTP server and see your websites fly. Here&#8217;s a good <a
href="http://danielmiessler.com/blog/optimizing-wordpress-with-nginx-varnish-w3-total-cache-amazon-s3-and-memcached">article</a> on setting up varnish with nginx, w3tc and APC. And if it isn&#8217;t enough official website provides <a
href="https://www.varnish-cache.org/docs/3.0/">excellent documentation</a>.</li></ul><p>These are the things that I have learnt in the past one year. If you have something which I have not covered please share it with us in the comments.</p> ]]></content:encoded> <wfw:commentRss>http://mehulved.com/2011/11/wordpress-performance-tips/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Bye Bye Twitter, Bye Bye Facebook</title><link>http://mehulved.com/2010/12/bye-bye-twitter-bye-bye-facebook/</link> <comments>http://mehulved.com/2010/12/bye-bye-twitter-bye-bye-facebook/#comments</comments> <pubDate>Thu, 16 Dec 2010 19:18:42 +0000</pubDate> <dc:creator>admin</dc:creator> <category><![CDATA[Personal]]></category><guid
isPermaLink="false">http://blog.mehulved.com/52/guid/</guid> <description><![CDATA[Many people have been asking me as to why I quit twitter? And haven&#039;t got a proper reply from me. I do owe them a reply, and here it is. I have been a bit prone to mood swings, and at the beginning of December when I started feeling low, I thought it was just...  <a
href="http://mehulved.com/2010/12/bye-bye-twitter-bye-bye-facebook/" class="more-link" title="Read Bye Bye Twitter, Bye Bye Facebook">Read more &#187;</a>]]></description> <content:encoded><![CDATA[<p>Many people have been asking me as to why I quit twitter? And haven&#039;t got a proper reply from me. I do owe them a reply, and here it is.<br
/> I have been a bit prone to mood swings, and at the beginning of December when I started feeling low, I thought it was just one of those days. But, it went on happening for a couple of weeks with no solution in sight. And some of you on twitter may also have noticed me cribbing about some nonsense stuff. Twitter and Facebook were in a way contributing and making me feel worse. So, finally after pondering over the decision for 3-4 days I decided I will quit both Twitter and Facebook.<br
/> At the same time, I did not want to miss some of the amazing people I met on these sites. Thus, I decided I will back up my profile and keep it safe so I have it available if I ever decide to return. I know, I will be missing some of these people, I already do. But, I had to take that decision and stick with it. <br
/> I still don&#039;t know if I will ever return back to those websites or not. Thankfully, facebook allows me to deactivate my profile and preserves it. I have backed up my twitter &#039;Friends&#039; too.</p><p>And as to my mood, I have had the most amazing week of my life, coincidently after quitting Twitter and Facebook &#8211; 3 days cycling trip to Pune and Panchgani, a close friends wedding, nice tweetup where I met lots of people. The time spent outdoors and in real life is just what I needed. It has given me a much needed high. And with some of my very good friends likely to meet me this month, I hope it will be just what I needed.</p> ]]></content:encoded> <wfw:commentRss>http://mehulved.com/2010/12/bye-bye-twitter-bye-bye-facebook/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Public Transport v/s Private Transport &#8211; My Take</title><link>http://mehulved.com/2009/10/public-transport-vs-private-transport-my-take/</link> <comments>http://mehulved.com/2009/10/public-transport-vs-private-transport-my-take/#comments</comments> <pubDate>Tue, 13 Oct 2009 11:08:10 +0000</pubDate> <dc:creator>admin</dc:creator> <category><![CDATA[Uncategorized]]></category><guid
isPermaLink="false">http://blog.mehulved.com/49/guid/</guid> <description><![CDATA[The Problem With each passing day, the traffic situation in Mumbai is worsening. Big traffic jams, accicents, parking woes, etc. Various solutions have been proposed to combat this problem. Here&#039;s a slightly outdated statistical information on the traffic growth in Mumbai from 2005 to 2008. An annualised growth of 12%! That was 1.5 years ago,...  <a
href="http://mehulved.com/2009/10/public-transport-vs-private-transport-my-take/" class="more-link" title="Read Public Transport v/s Private Transport &#8211; My Take">Read more &#187;</a>]]></description> <content:encoded><![CDATA[<h2><strong>The Problem</strong></h2><p> With each passing day, the traffic situation in Mumbai is worsening. Big traffic jams, accicents, parking woes, etc. Various solutions have been proposed to combat this problem.</p><p><a
onclick=&quot;javascript: pageTracker._trackPageview(&#039;/extlink/www.mesn.org/mumbai%20traffic%20stats.html#1&#039;);&quot;  href=&quot;http://www.mesn.org/mumbai%20traffic%20stats.html#1&quot; title=&quot;Growth of Traffic in Mumbai from 2005 to 2008&quot;>Here&#039;s</a> a slightly outdated statistical information on the traffic growth in Mumbai from 2005 to 2008. An annualised growth of 12%! That was 1.5 years ago, it has worsened further now.</p><p><img
class=&quot;serendipity_image_center&quot; width=&quot;500&quot; height=&quot;350&quot; style=&quot;display: block; margin-left: auto; margin-right: auto; border: 0px; padding-left: 5px; padding-right: 5px;&quot; src=&quot;http://blog.mehulved.com/uploads/images/ndtv_traffic.jpg&quot; alt=&quot;&quot; /></p><p>This problem has been widely debated and discussed topic everywhere. I had the opportunity to be a part of it on two occasions, once on twitter and once during Raxit&#039;s session at <a
onclick=&quot;javascript: pageTracker._trackPageview(&#039;/extlink/barcampmumbai.org&#039;);&quot;  href=&quot;http://barcampmumbai.org&quot; title=&quot;BarCampMumbai website&quot;>BCM6</a>. This prompted me to express my views on the topic on this blog.</p><p>Many solutions have been proposed to solve our traffic problems &#8211; promote public transport, improved road conditions, car pooling, levying of taxes in certain zones, allowing different vehicles on odd and even numbered days.</p><h2><strong>Preferred Solution</strong></h2><p> Public transport is the most viable solution, according to me. I am basing this on certain assumptions</p><ul></p><li> Only road transport is covered</li><p></p><li> The scenario described is that of Mumbai, it may or may not apply to other places</li><p></ul><p></p><h2><strong>Reasons</strong></h2><p></p><ol></p><li><strong>Less Congestion:</strong> Mass means of transport like buses and trains can carry higher number of passengers in lesser space compared to vehicles like cars and bikes.</li><p></p><li><strong>Reusability:</strong> Once a person reaches their destination, the same space can be taken up by somebody else. Thus, there&#039;s resusability of the same space. In case of private vehicles the space lies vacant till used again.</li><p></p><li><strong>Space Saving:</strong> Since public transport is reusable, we need a lower number of public transport vehicles. Also, that mass means of transport can fit in more people per area. This leads to saving of space for parking and while plying the vehicles on the road.<li><strong>Flexibility of Timing:</strong> As compared to other options like car pooling, public transport is much more flexible with respect to time. Trains are much faster over longer distances, over shorter distances cabs and autorickshaws can take you to your destination as quickly.</li><p></p><li><strong>Lower Total Cost:</strong> Mass transport options like buses and trains are cheaper to travel. Though, cabs and rickshaws may sound expensive, when considered with option of sharing it becomes cheaper. Add to that, the cost of maintenance is to be borne by the vehicle owner unlike public transport.</li><p></ol><h2><strong>My Story</strong></h2><p> But, there are reasons why I use public transport lesser:</p><ul></p><li> Is much less fun unless when travelling in a big group over longer distances.</li><p></p><li> Going out and exploring some nice places is better done in your cycle, bike, car as compared to public transport</li><p></p><li> Going out biking with a group of friends once in a while is a must.</li><p></p><li>Trains and buses are too crowded, which makes me choose my 2 wheeler over those.</li><p>Still, I tend to balance between using public transport and my bicycle (now that my bike is stolen), though I tend much more heavily towards my bicycle.</ul> ]]></content:encoded> <wfw:commentRss>http://mehulved.com/2009/10/public-transport-vs-private-transport-my-take/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Served from: mehulved.com @ 2013-05-22 22:08:47 by W3 Total Cache -->