Rendering will_paginate links nicely with Twitter Bootstrap

When I was working with Moviemates (my one dream pet project), I had to use will_paginate gem for pagination of the movie listings. As the UI are based on Twitter Bootstrap, the will_paginate links (generated by its view helpers) were looking very ugly. Please check the following screenshot to see how bad it was looking!

I had to google a while for a decent look of these links. I’ve found a very effective but easy fix written by  oparrish and shared here. For your conveniences, the gist is attached here:

Continue reading →

jQuery Mobile: Part 3 – Modifying default ‘loading’ and ‘error loading page’ messages

In the second part of this series we have learned how to link pages. If you followed them, probably, you’ve also noticed that a ‘loading’ message while you are visiting pages back and forth. jQuery Mobile shows this while it loads the page behind the scene. Well, you may not see this in fast connection or during testing in your computer as it loaded too fast. Similarly, jQuery Mobile shows ‘error loading page’ when it fails to load any page.

In my application, I wanted to change these texts as I wanted them in Bangla.  We were seeing these because they are set by default in the framework. By modifying the default properties, we can change them to something we want.

To do so we will hook into jQuery Mobile’s ‘mobileinit’ event. This event (on document object) is triggered just on the moment jQuery Mobile is started to load. So, we will have to override these before loading jQuery Mobile library.

So far, we have loaded the library files in the following order:

Continue reading →

jQuery Mobile: Part 2 – Making multiple pages and linking them

Hey fellas, in the first part of our jQuery Mobile journey we have learned how to make the first jQuery Mobile page. That was quite easy and fun. As we ain’t going to give those introductions again, I believe, its a good idea to have a look into the previous part.

In this part we will dig a bit more. We will see how can we make more than one pages and link to each other.

Continue reading →

Twitter can also be a source of traffic for your site

When I started studying on SEO, I came to learn twitter does not have a good link building/back link value as it adds nofollow to all links! So, I was not concentrating on it! However, suddenly I found a site where I can get followers and experiment a few things. I have to earn points by following others and in exchange of those points, I will get followers! I did not have much time to do that! So, I purchased their  paid membership for 7 days! In seven days I got more than 700 followers and still counting! Continue reading →

“Reply to email…” most idiot feature of Facebook.com

Few days ago Facebook.com introduces a new feature “Reply to this email….”. To me this is the most stupid type feature of Facebook. Usually I get two types of email, i. when someone comments in my photo ii. when someone replies in my status.

1. Comments in my photo

Facebook sends me the comment as email and I can read it right from inbox rather than visiting the facebook. So, facilitate the conversation, Facebook now allows us to reply the comment by simply replying this email. This is the template of email

Foisal commented on a photo of you:

“some member is missing….sorry…. ;o( ”

New Feature: Reply to this email to comment on this photo.

To see the comment thread, follow the link below:

LINK TO PHOTO (Removed for Privacy)

Thanks,
The Facebook Team

Isn’t it a nice feature? But how do I know which photo is this? Suppose, someone asked me place of the photo like:

“Nice shot, where it is?”

Can you now tell me how you can answer without visiting the site? I don’t know which image, s/he commented on. So, I can’t reply without visiting the site and seeing the photo.

Suggestion: They should include image name and description in the photo and a thumbnail of image.

2. Comments on my status

When someone comments on my status, I also receive an email alert (as per my mail preference). But again, I don’t know on which status s/he commented. This is the template:

Sajjad Hossain commented on your status:

“Allah shohay hok!”

New Feature: Reply to this email to comment on this status.

To see the comment thread, follow the link below:
http://www.facebook.com/n/?profile.php&v=feed&story_fbid=331657240232&id=1080340658&mid=1e8c50fG4064b0b2G1522f9bG36

Thanks,
The Facebook Team

I don’t know what was my actual status and can’t comment by simply replying email.

Suggestion: Facebook should include original status in email.

OpenLD is going to live again

Finally I have decided to maintain OpenLD script. You already know OpenLD is a very lightweight link directory script. It is highly extensible without hard coding. You can make extensions to utilize its hooking system. There are many hooks in every steps of all files where you may push some piece of code by your extension.

I love this script. But I have seen that it is not maintained for a quite long time. I don’t know what happened to the original developer Anders Persson. As I don’t want this great work to die, I am going to maintain it. I am doing the home works before I start and will update shortly.