All posts by swapnilsarwe

PHP URL Builder Form

The tool allows you to play with the URL parameters in best possible manner.

Being a Web Developer, URL plays a very vital role in my life. On a daily basis I have to play with the URL for various reasons for several different purposes. Most of the times I find myself searching for the particular parameter in the URL in the address bar of the browser to change and test something or the other. For short URLs editing right into the address bar seems to work very fine. But when dealing with long URLs it becomes frustrating to find the particular parameter and edit it and when you want to edit several parameters the job seems to be like hell.

So I thought how would I simplify the process in a neat clean manner. And hence the idea of PHP URL Builder Form came up.

PHP URL Builder basically is the tool, where I can put a sample URL and submit. Which will give me all the parameters in the HTML Form with the values in the text boxes which can be edited easily. On submission of this form you are given the updated URL with the clickable link.

I hope you find this tool useful. WIll be working more to add new features like

  • Adding of new query parameters to the URL dynamically with JS
  • Validation to consider all kinds of URLs
  • Code it in a much cleaner manner for optimum development

You can find the code on github page for PHP URL Builder Form
You can test it out here at this link

My first nearly 50 km bicycle ride from Andheri to Churchgate and back

My first long distance travelling on bicycle with friends. From Andheri to Churchgate and back.

After I purchased a Rockrider 5.0 bicycle in Oct, 2012, I was always wondering when would I go for long tours on bicycle. And whenever I will go, how far I will be making it before giving up. But when I was doubting my abilities, my friend Surya Sen said when you are on bicycle dont think about the distance you are going to cover, just keep riding it till you can.

And say what on 11th May 2013, me and my friend Vinay Shriyan started our bicycle ride from Andheri Subway at 5.00 AM. We were heading for Mahim where our another friend Purushottam Bhatt (Puru) was about to join us. Puru was the one who knew the road to the Churchgate.

Since it was the early morning we never realised when we covered almost 50 % of the distance in an hour. And I realised riding bicycle in the morning is the best thing to do. You get fresh air with lot of oxygen to breath in and compraratively less traffic to maneuver. And frankly speaking riding bicycle is so close to being able to fly. LOL! Thats how I think of riding bicycle.

On the way we saw many fellow bicycle rider who take the benefit of early cold morning in Summer Time, where driving after 10.00 AM feels like setting yourself on fire. And before we realised we were at Marine Drive, which is approximately 24-25 kms from Andheri subway, at 6.50 AM. That was wonderful feeling to able to make it up to the destination and that too without any problems. I thought it would be extremely tough and exhausting but no, it was much better, exciting and wonderful.

We took a break at Marine Drive and sat there for around 15 minutes before heading back to our initial point. On the way back it was more difficult considering roads were crowded and roads feeled with vehicles and people all around. After seeing off Puru back in Mahim we were on the way back to Andheri. It took us around the same time i.e. almost 2 hrs to reach Andheri but contradictory to the previous ride, the ride back was tough and considering the sun was out now, it was much more exhausting. And when we reached back to the initial starting point we had already convered 47-49 kms in total in 4 hrs.

After this ride I am waiting for next venture out. We are planning to goto Matheran & Lonavla in near future on bicycle. Just waiting for the correct timing when all of us will be available and all set to go for the new ride. Till them keep riding.



Cycling – Type of bicycles

There are different type of bicycles for different type of needs. You need to understand them both to make the best choice and enjoy the free ride on bicycle.

I aint any expert, but I like to discuss stuff and talk about it open and let other people learn from it and more importantly correct me or guide me if I am going wrong. Here we are going to discuss the types of bicycles.

Type of bicycles:

Before discussing this, I would like to tell you that, one bicycle can do only one thing better. There is no bike which can do everything, although most of the bicycle enthusiast think that such bicycle should be there.

Road Bike:

How to identify whether the bicycle is the Road Bike. Road Bikes have very thin tyres and sleek body. The reason being that they are meant for speed and long distance travelling. Sleek Tyres means less resistance and sleek body means less drag. Which makes up for the best combination for nice long distance travelling.

These bicycles cant bear the rough situation of the mountain and hence cant be used on Mountain Biking comfirtably.

Mountain Bikes:

Well mountain bikes have a kind of thick body and thick tyres. The reason being as the name suggests Mountain symbolizes rough and tough place. So the bicycle to survive in such situation it requires good pair of tyres which can bear the rough terrain. And big body gives kind of sturdiness to bear all the shocks on such terrain.

These bicycles being little heavy and bigger than the Road Bike, you cant really use to for long distance travelling efficiently.

Hybrid bikes:

This is kind of combination of above two. It is meant to provide little bit of both worlds. Here they have slightly thicker tyres than Road Bike but little thinner than Mountain Bike, and almost same case with the body. So that you can ride this bike on the road as well as on the mountain.

While riding on road it will perform little lower than the Road Bike but kind of better than the Mountain Bike. Similarly when riding on the Mountains this bike wont be able to bear extreme harsh terrains which Mountain Bikes can bear, but still can go moderately harsh places where Road Bikes cant.
Some might think that these bicycles are like boon for the people who want such a bicycle who can do little bit of both. But if you rephrase it it also means you are taking a bicycle which can’t do most of both.

Why is it necessary to understand the concept and type?

There are lot of people who go for Mountain Bike blindly (because it got that masculine and bold looks and they think that it looks cool and stuff), but when they try to ride the bike for long distance tour or travelling they cant do it efficiently. And this misconceptual understanding makes them quit bicycling. But the mistake was they took the wrong bicycle without understanding their basic need.

In the next post we will try to discuss, how to understand the need of a bicycle and how to choose a bicycle.