Convert Http URL to Https URL – A Short Sample Code

Here is an example of how you convert an Http URL to a secured URL (Https). Here I am assuming the URL will be fully standard i.e. even the default port 80 will be written after colon as :80 and same for default https port :443.



* To compiple: javac -d .

* To run: java


* @author ashik

public final class ConvertHttpToHttps {

private static String url = "";

public static void main (String[] args) {
System.out.println("url before replacing = " + url);
System.out.println("url after replacing = " + convert(url));

public static String convert(String url) {
StringBuffer result = new StringBuffer();
if(url.startsWith("http://")) {
String strColon = url.substring(7);
int colonIndex = strColon.indexOf(":");
String portNumber = strColon.substring(0, colonIndex);
result.append(":443" + strColon.substring(colonIndex+3));
return result.toString();


Quillpad Made Bangla Typing Easier

Quillpad is a free online typing tool for 10 south asial languages. Yesterday I was having time free time in office so thought of searching for an API that helps writing bengali. And I landed in which is more than what I was looking for.

It’s very easy to type in Bengali in Quillpad. For example, type ‘apni kemon achen’ in the Quillpad editor. Quillpad will convert it directly into Bengali script. If you write a word like ‘bishesh‘, first sh should become ‘শ’ and the second sh should become ‘ষ’. Quillpad will intelligently do that for you. No need to use shift keys or to memorize any key mappings. So ‘রাষ্ট্রপতি’ can be written by typing ‘rashtrapati’ or ‘raashtrapathi’. Quillpad can also predict if multiple words are possible for your input. You can click on the word to select from those options. In addition Quillpad allows you to type English words freely in between Bengali words. It intelligently transliterates them into Bengali. Here is one example –

বাংলা টাইপ করা সহজ

As a quick test of using the WYSIWYG editor of Quillpad, I created to a blog in wordpress and a blog in blogger It looks so easy and convenient to me. I think I will continue writing in the blogger because it allows me to increase the font size of the content while to increase font in WordPress I have to upgrade to premium.

Here is a New York Times article that you might find interseting and relevant.

GMail 2.0 and Windows Live Hotmail

I have been using the newer version of GMail for the last few days and I like it very much. The first thing I noticed is that it’s faster than the older version. But the feature that I liked most is the Filter Messages like these action. Its wonderful and is saving me so many more minutes everyday. The other new action Mute takes out the message from my inbox, but I am not sure whether it archives it or deletes it do what with it. The replies by you are marked with a > sign in a discussion thread to easily distinguish between your responses vs the others responses. And of course the Contacts section has changed significantly in terms of visual appearance compared to other parts of the GMail. The embedded google talk now gives optionto show the list of contacts to chat in different sizes – tiny, small, medium, large.

MicroSoft made its Windows Live Hotmail available for general registration. I tool my new live id . At first look, I think the calendar, calendar sharing and task integration in it will be useful. They are giving 5 GB space to start with which is cool. Let’s see how it goes.

Geni: Family Tree Application

I came to know about Geni from FreeBase a while ago. As soon as I saw it, I was amazed. allow people to graphically view and edit family trees. I was looking for such an application for a long time and now I have started my family tree. It will be not only useful and fun but will be a great way to socialize with the relatives.

Geni is a tool for understanding and staying in touch with your family. Geni lets you create a family tree through our fun simple interface. You can expand your tree by adding relatives’ email addresses. They will be invited to join your tree and can add other relatives. Your tree will continue to grow as relatives invite other relatives. From a technical point of view, the web site is so great in delivering exactly what a person would like to see in a family tree gradually that I am speechless! I don’t remember any other application stuck me with so surprise probably other than Facebook.

What are you waiting for now? Start your family tree in or join if one of your relative has already started the tree.

Yahoo Trip Planner

August 6 to 9th, I am visiting Philips Lifeline in an official trip with 5 of my other colleagues. I thought it’s good time to try a travel planner web site now. After looking around for a while I realized that Yahoo Trip Planner is the best that I have found so far.

I like Yahoo’s most of the services more than MSN services and only marginally behind Google’s services. But in trip planner application, Google still doesn’t have anything although they are wokring on one.

Its so wonderful that I can put all my travel related info in one place and whenever I need any info, I can lookup in my Yahoo Trip Planner. Here is the one that I am using as my first experience on handling travel data.

My Maps Feature of Google Maps

By now I have been using google maps for one and half year, Verizon’s GPS functionalities in my mobile for seven months, checked MapQuest, Yahoo Map as well as. I really like google map for many reasons. The newest cool feature added in its simplistic UI is My Maps where I can save my favorite locations/searches giving them name and description. It allows you to search nearby places after I give a search. Also I like its Add Destination and Recent Searches. I was using Yelp for this kind of functionalities.

Developing Web Site by Integrating Joomla, SMF and Community Builder

Here I provide you the step by step instructions that I carried last night to develop a web site for an IT professionals’ association in California, USA. They need a good news/content management system, a very good forum software and some sort of community/networking features other than regular static/dynamic functionalities that might be developed later phase by phase. I know Joomla (emerged from Mambo) PHP framework or CMS has many great extensions that I can use in developing web 2.0 sites. Although it has been long since I last used PHP, joomla made my work easy by mostly limiting me in configuration and installation efforts to develop a site. So I thaught to share it with you here. I wish there would be something similar in Java with all the extensions and easy to install features!


A domain hosting space where you want to host your site. I chose hostmonster as they have support for PHP, MySQL, Fantastico, Joomla, SMF and many more.


  1. Install Joomla! I logged into my hostmonster control panel, used Fantastico to install Joomla 1.0.12 in /cms directory. Keep the MySQL database, username and password handy with you as these will be needed in later steps.
  2. Download SMF and Unzip it in your local workspace naming it forum. I downloaded SMF 1.1.2 from
  3. Upload the unzipped forum direcotry with all its contents to your web server’s /public_html directory.
  4. Install SMF through the following URL – and follow the wizard from there onwards.
  5. Dont use the GZip compression output, uncheck that option in the wizard page.
  6. Give the same MySQL database name, user name and password that you used for joomla installation. You can find these information in configuration.php file under your domain’s /cms directory. The 3 variables to check for the values are – $mosConfig_user, $mosConfig_password, $mosConfig_db .
  7. Once you finish installation, you should get a success message and install.php file should be deleted for security reason.
  8. Download community builder distribution. I downloaded from –,com_mtree/task,viewlink/link_id,210/Itemid,35/
  9. Unzip the community builder zip file in your local hard drive. You will need,, and files from this location in later steps.
  10. Install comprofiler component. To do so, login to Joomla administrator ( and select the Installers->Components menu item. Browse for the file inside your unizipped community builder directory and press upload file & install button.
  11. Install cb login module. To do so, select the Installers->Modules menu item. Browse for the file inside your unizipped community builder directory and press upload file & install button.
  12. Install cb moderation module. To do so, select the Installers->Modules menu item. Browse for the file inside your unizipped community builder directory and press upload file & install button.
  13. Install cb online module. To do so, select the Installers->Modules menu item. Browse for the file inside your unizipped community builder directory and press upload file & install button.
  14. Add a new user menu item named Members List as a URL pointing to: index.php?option=com_comprofiler&task=usersList
  15. Add new menu item CB Details by clicking on Menu->usermenu->New button.
  16. In New Menu Item page, select Component and press Next button.
  17. Select Community Builder from the Component List.
  18. Populate the Name field as CB Details.
  19. Select Parent Item: Top, Access Level: Registered and Published: Yes.
  20. Click on Save button to add this new menu item under user menu.
  21. Activate the CB Login module. To activate select Modules->Site Modules, check from the list that CB Login module is set for Public Access viewing and then publish this module.
  22. Deactivate mod_login module so that you can use only cb login form instead of joomla login form in your site. To deactivate, find out Modules->Site Modules->Login Form and unpublish it.
  23. Use up arrow to bring the CB Login module up in the left navigation bar. You may also re-position all the modules as you need by setting module order and position.
  24. Activate CB Workflows module. To activate, find out Modules->Site Modules->CB Workflows, check if its set to Registered access level and then publish it.
  25. Now download Joomla SMF Bridge (JSMF) from
  26. Install JSMF component in Joomla. To install it, go to and select the Installers->Components menu item. Browse for the file inside your unizipped community builder directory and press upload file & install button.
  27. After installation success message for JSMF, continue for JSMF Installation Page.
  28. Provide the abosulte path for SMF directory which you can find after logging into SMF forum administration panel. An example value for this may be /home/aabeatco/public_html/forum
  29. Provide SMF tables prefix as smf_
  30. Click the Save button at the top right.
  31. Click to patch Jomla Source Files.
  32. Click to patch SMF Source Files.
  33. Click verify link to synchronize users between Joomla and SMF.
  34. Login to Joomla administrator.
  35. Select Components->Community Builder->Plugin Management.
  36. In Install New Plugin section, upload & install file.

If you have followed the steps properly, you have enabled your site for visitors to register/login using CB Login form, roam around and give entries for the various news/polls/blogs entries, submit weblinks, do social networking with like minded community members etc. Your users should be able to roam around the joomla cms pages through the link – and the forum either through or from CMS home page’s Forum link.

Web 2.0 and Beyond

I have been following the trends of Web 2.0 for a while and experiencing the changes in the way we use internet. I gave special attention to Web 2.0 when I found one of the main features declaration for newly released Java SE 6 is the support for Web 2.0. Earlier internet was a platform for 2 parties to push/pull information and do transaction. The 2 parties were more or less divisible by their functionalities like information/product supplier and user/consumer. Now its not only or no more that, its about participation of all the parties involved. Anyone can be in the recieving end and anyone can be in the supplying end as well. The more participation is there, the more valuable the service is. Its no more focused on attracting the giant companies or investors, the focus is now distributed to the individual netizens (citizens of the internet). The best article describing Web 2.0 is written by Tim O’Reilly. Google is in the lead of Web 2.0 initiatives instead of Microsoft, and you are not surprised!? Not co-incidentally, Google has been recently voted in a massive survey by Fortune as the best company to work for in USA.

Here is a screenshot of my Google IG that comes up everytime I open my Web 2.0 aware browser Flock. IG is a good example of a Web 2.0 application although its not the best. My homeland Bangladesh’s PageFlakes (with joint venture from Germany) has been awarded by as the best Personalized start pages of Web 2.0 applications in March 2006 followed by Google IG and Windows Live.

I feel the ground work was done long time back when people started appreciating open source models, projects. The bubble of late 90s couldn’t reduce the importance of internet in cybercitizen’s life. The web matured from a container of products to a provider of scalable services. Web 2.0 hints at an improved form of the World Wide Web, with technologies such as weblogs, social bookmarking, wikis, podcasts, RSS feeds and other forms of many-to-many publishing; social software, Web APIs, Web standards and online Web services representing a significant change in web’s use and behavior. As a Web 2.0 world’s cybercitizen, I use the following web services every now-and-then.

While I am yet trying to grasp the effect and scale of Web 2.0, talk on Web 3.0 ius going on where its predicted that Wikepedia will be the ultimate leader! Good luck to readers on that.