Pages

Monday, July 25, 2011

setting up eclipse with github

For most of the project I use eclipse as it is very extendable with so many plugins but when I want to be lazy and let the IDE do everything I wish I use Netbeans (i.e at work :)). I wanted my project to be stored as repository at git and let eclipse handle all the source controlling jobs , so that I do not have to use shell or git bash for committing and pushing the local changed to remote  repository everytime. I managed to connect my repository in github to my eclipse project in the following way

1. Download and Install EGit eclipse plugin into your eclipse.

2. Copy the HTTP url from your github project. Here  is how to create a github repository



3. In Eclipse click on File-> Import and select "Projects from Git" under the the Git folder. On clicking next you might get a dialoge for Home environment variable not being set but you can ignore and click on OK.

4.Click on clone and paste the URL copied in step 2 and click next.

5. You will be asked for branch section, in my case I selected master and click next.

6.Then you will be asked to configure the local destination . You can give the a project directory iside your eclipse workspace.

7.Upon clicking next , You might get a message for master password recovery hint question.

8. Cancel the new project from git wizard and create a project from the existing source. Select the folder which we had given as the local destination in step 6.

9.Right click on the newly create project and click on "Team" -- > "Share Project". You can ignore the home environment variable dialog again and  select "git" in the share project window.

10.click next and check the "use or create repository in the parent folder of project" checkbox. Check the newly create git repository folder and click finish.



11. Now you will see the project folder icon is changed and small yellow cylinder icon has appeared next to all files and folder in the hierarchy of  the project which denotes that these are now version controlled.

Source control operations from Eclipse

After code changes you can right  click on any file or folder in the project hierarchy and click  " Team --> Commit " to commit the changes locally and finally right click on the project node and "Team -> Push to Upstream" for pushing the changes to the github server(remote)  repository

More documentation can be found at the EGit Documentation page. Also see setting up the Git

Saturday, July 23, 2011

India vs England Live commentry BBC

It was 1996 and I was quite addicted to cricket and BBC. Everyday I had a habit of tuning my radio to the medium wave frequency of BBC World Service and Voice of America. I still remember listening to live commentary of the lords test when India toured England 15 years  ago. Somehow missed the 1st test, may be because it was the same old typical 90's Indian team. 2nd test was special because two young Indian cricketer made there debut at the mecca of cricket , the same guys would change the face of Indian cricket and become legends in ext decade. Also it was the last test of Dickie Bird as an umpire , whom I admired the most. Today it is the 2000th official test match  in cricket history and here is the live commentary broadcasted by BBC online.



Your browser does not support iframes. click here to listen from BBC site

 

Back to Wordpress

I had just shifted my blog to blogger last week and guess what, I am back to wordpress again.  Thanks to free PHP and MySQL host freehosting.com .
It was one week and I realized that I do not want to be restricted by Google's constrained  blogging platform where you can not your own server side scripts. There was a free php and mySQL hosting offer from GoDaddy.com but it was ad-supported. After doing research for various free hosting services I found freehosting.com best because it supports CGI, Python, Ruby on Rails and Cron also (tough I have not tested yet). Its control panel is also very user friendly and clean. File manager application us also very rich and you can edit file right inside the browser. The bigger advantages of this hosting service are that it not only supports file large size upload but also allows php functions like curl.  Absence of these two features put me trouble  last time because it neither could update the Wordpress files automatically nor able to install extensions and themes automatically from the admin panel. Also wordpress software itself could not be uploaded into the host.

Your browser does not support http://en.wikipedia.org/wiki/Data_URI_scheme

I had had imported my previous wordpress export to wordpress.com blog of mine. Hence I could easily import it in my new installation.


Note: Right click on the above image and click on view image. (screen-shot of the file manager pasted inline in the wordpress post editor using HyperSnap 6) You will not see the url of the image hosted somewhere. You will actually see a lot of character which makes up the image itself. Its actually Data URL Scheme . This specification is available since 1998 but Internet Explorer has not supported it yet.

Thursday, July 21, 2011

Migrated to Blogger.com




This blog was earlier hosted in xtreemhost which gave me decent uptime and features till now. This includes 5GB of space , PHP, MySQL and FTP log in with no ads. However sometimes the webhost got blacklisted by some search engines and protection agents like McAfee and my website became inaccessible.Since I hosted this as wordpress the ftp file size limit of 3 Mb did not allow me to upload the zipped latest WordPress file to the server. which was about 3.6 Mb. wordpress.com is a very good option of hosting wordpress cms but it did not allow me to map my domain name (www.neilghosh.com) for free. Hence I headed towards google and decided to migrate this blog to Bloggers.com . The wordpress export file I generated from the Dashboard was used to generate the equivalent bloggers xml file using the service wordpress2blogger and imported the same to blogger. Some of the earlier embedded stuff and php services could not be migrated properly  but I am trying to fix them up as time goes. Blogger.com also allowed me to associate my domain name with a specific blog. I will definitely miss the wordpress plugins but bloggers seems to me simple and seamless and I can focus on my content as I do not have to administer the hosting any more. I will still use the free php , mySQL host for hosting the PHP bases services I make. My old blog is still available at wp.neilghosh.com .

In this process I lost all my WordPress pages and widgets which could not be imported but I am trying to make a clean start so that it does not degrade the integrity over the time.

Thanks to GoDaddy.com for easy configuration of domain settings , However their free basic PHP and MySQL hosting was not much of my use as they included ads in it. I think I can use it for hosting my php programs.

I will probably use picasa for image hosting and dropbox for file hosting.

Photos : Chandanagar Lake

Saturday, July 9, 2011

Migrated to Blogger.com

This blog was earlier hosted in xtreemhost which gave me decent uptime and features till now. This includes 5GB of space , PHP, MySQL and FTP log in with no ads. However sometimes the webhost got blacklisted by some search engines and protection agents like McAfee and my website became inaccessible.Since I hosted this as wordpress the ftp file size limit of 3 Mb did not allow me to upload the zipped latest WordPress file to the server. which was about 3.6 Mb. wordpress.com is a very good option of hosting wordpress cms but it did not allow me to map my domain name (www.neilghosh.com) for free. Hence I headed towards google and decided to migrate this blog to Bloggers.com . The wordpress export file I generated from the Dashboard was used to generate the equivalent bloggers xml file using the service wordpress2blogger and imported the same to blogger. Some of the earlier embedded stuff and php services could not be migrated properly  but I am trying to fix them up as time goes. Blogger.com also allowed me to associate my domain name with a specific blog. I will definitely miss the wordpress plugins but bloggers seems to me simple and seamless and I can focus on my content as I do not have to administer the hosting any more. I will still use the free php , mySQL host for hosting the PHP bases services I make. My old blog is still available at wp.neilghosh.com .

In this process I lost all my WordPress pages and widgets which could not be imported but I am trying to make a clean start so that it does not degrade the integrity over the time.

Thanks to GoDaddy.com for easy configuration of domain settings , However their free basic PHP and MySQL hosting was not much of my use as they included ads in it. I think I can use it for hosting my php programs.

I will probably use picasa for image hosting and dropbox for file hosting.