June 8th, 2009
Many people have noted that for the past week HTML code is displayed instead of movie ratings. This is because RottenTomatoes.com made a slight modification to their layout which threw off my parser. I have fixed the issue and the next version (1.4.7) is going through Mozilla’s approval process. It should hopefully be up soon. Thanks for your patience.
In the meantime you can install the fixed version without going through Firefox’s add-on updates.
Steps:
- Download Movie Ratings 1.4.6 with Hot Fix.
- Uninstall your current version of Movie Ratings from the Add-Ons window.
- Drag the downloaded file on to the Add-Ons window to install it.
- Restart Firefox.
Version 1.4.7 was approved by Mozilla. If you already have Movie Ratings you will receive a notification for an update. If not, download it here: https://addons.mozilla.org/en-US/firefox/addon/9279.
Posted in Firefox | Tags: extension, Firefox, movie rating, rotten tomatoes | No Comments »
May 25th, 2009
I updated my javascript Twitter Widget to give you the option to display user images and also fixed the bug where an error is thrown if the html or user attributes are missing.
http://www.ronakpatel.net/2009/04/05/twitter-widget-that-streams-multiple-accounts/
Posted in Javascript, Twitter | Tags: Javascript, Twitter, widget | No Comments »
May 18th, 2009
Version 1.4.5 of Movie Ratings has been released. The only change in this update is a fix for text appearing white in certain Personas themes. Many people have requested IMDB ratings so I’ve started some preliminary work on it, but my life has been busy lately so I can’t give an eta on when it will be finished. Rest assured, it’s coming.
https://addons.mozilla.org/en-US/firefox/addon/9279
Posted in Firefox | Tags: extension, Firefox, movie rating, rotten tomatoes | 3 Comments »
April 5th, 2009
I created a javascript widget that will stream multiple Twitter accounts for a friends website (see it in action at Brown Girl Magazine). It’s simple to setup.
Download this javascript file: TwitterWidget.js and upload it to your webserver where ever you like. Remember where you’ve uploaded it.
Copy the following html into your website right before where the body tag is closed (</body>). If using Wordpress you can find the closing body tag in footer.php of your theme.
<script type="text/javascript"><!--
var rpnetTwitAttrs = {
usernames: "RonakPatel,TheOnion",
count: 5,
title: "Twitter Updates",
showImages: true,
imageHeight: '48px',
imageWidth: '48px'
};
// --></script>
<script type="text/javascript" src="TwitterWidget.js">
</script>
Attributes that need to be updated:
- usernames - Put the Twitter accounts you would like to stream here. No limit. For example: username1,username2,username3
- count - The number of tweets to display.
- title - The title above the tweets.
- showImages - Display user images or not.
- imageHeight - Set the height of the user image.
- imageWidth - Set the width of the user image.
You also need to update the src=”TwitterWidget.js” attribute to point to where you uploaded the javascript file. For example, src=”http://yourwebsite.com/uploads/TwitterWidget.js”.
Copy the following html into your website where you would like the widget to appear. If you are using this with Wordpress you could copy the html into a Text widget to make it easier to move around. If you use the Text widget make sure you empty out the title string above (”") as the Text widget sets its own title.
<div id="rpnet_twitterWidget">
<h2 id="rpnet_twTitle"></h2>
<ul id="rpnet_twList"></ul>
</div>
You can also add the div ids above to your CSS file if you want to modify the look and feel. This widget will not work for users with private twitter pages.
That’s it. The widget will appear on your website and stream multiple accounts.
Since I don’t need to stream multiple accounts on my website the Twitter widget on the left hand side is the one from Twitter which only streams one account.
Below is a screen shot of the widget with no formatting and with the Arthemia Wordpress theme. If using Wordpress the widget will conform to whatever theme you have unless you modify the CSS. Enjoy!
Disclaimer: This widget does not cache tweets therefore if you pass 70-100 requests in an hour it will stop working. The next version of the widget will contain caching.
Change Log
Version 1.1
- Added an option for displaying user images.
Version 1.0
- Displays list of tweets from multiple users.
Posted in Javascript, PHP, Twitter, Wordpress | Tags: Javascript, Twitter, widget, Wordpress | 29 Comments »
April 4th, 2009
About six months ago I applied the NLU BodyGuardz skin for my iPhone. You can read my review and installation guide here. Six months in and it’s still staying strong. If you apply the skin correctly and let it dry properly then this thing will only come off when you decide to. My only complaint is the lint that accumulates around the top and bottom corner pieces. It’s starting to slightly get under the skin. I think that’s unavoidable and since it’s not on the screen piece of the skin it doesn’t matter to me. All in all, I highly recommend the NLU BodyGuardz skin for the iPhone 3G.
UPDATE - The dust, lint, and grime started to get further into the corners and they started lifting up, so i decided to take the skin off. My phone is currently going commando. Any suggestions on a good case? I still recommend the skin if applied properly and if you don’t mind some accumulation of lint around the edges.
Posted in iPhone | Tags: BodyGuardz, iPhone | No Comments »
April 2nd, 2009
Movie Ratings is finally out of the Mozilla sand box as version 1.4.4. Thanks to everyone who tested it!
Download it here: https://addons.mozilla.org/en-US/firefox/addon/9279
Posted in Firefox | Tags: extension, Firefox, movie rating, rotten tomatoes | 2 Comments »
March 29th, 2009
“You know what really grinds my gears”, the tab order on Facebooks login page. Most web 2.0 sites I use have the tab order or natural progression of login form elements as such:
- On page load, focus is on the user name field.
- On first tab, the password field is given focus.
- On second tab, the “Remember Me” checkbox is given focus.
- On third tab, the login button is given focus.
Example of the above:
Twitter

Facebook on the other hand has a tab order as follows:
- On page load, focus is on the user name field.
- On first tab, the password field is given focus.
- On second tab, the login button is given focus.
The “Remember Me” check box is skipped, which means I have to resort to using the mouse. Ugh.
Facebook Login

Facebook could have the check box auto checked, but it might be a safety precaution as a good number of Facebook users access their accounts from public computers. From looking at its html Facebook does not use the tabindex DOM property for setting tab order. The “Remember Me” check box appears before the text fields in the html and since the email field is in focus first, the checkbox is skipped unless you shift-tab back twice.
Sure, logging in only has to be done once, but I run CCleaner once a week to keep my laptop clean so it’s irritating that I can’t “tab, type, tab, type, tab, hit space, enter”.
Maybe I’ll write a simple grease monkey script to change the tab order.
Posted in Usability | Tags: Facebook, login, tab order, Usability | 3 Comments »
March 29th, 2009
Version 1.4.3 of Movie Ratings is out. There are not any major changes. The extension was rejected by Mozilla because the code was not in it’s own namespace. I had completely overlooked that. I have resubmitted the extension for public status. Back to the end of their long nomination queue…
https://addons.mozilla.org/en-US/firefox/addon/9279/
Posted in Firefox | Tags: extension, Firefox, movie rating, rotten tomatoes | No Comments »
March 22nd, 2009
WP-PHPList is a great plugin for Wordpress that integrates PHPList with Wordpress. It allows you to add a newsletter subscription form to any Wordpress page. Currently the plugin only supports one text and email field in the form. I needed extra functionality for a friends website so I decided to make additions to the plugin. The following guide and code will show you how to add another text field and a date field. This is not a straight forward guide. I will explain the changes I made to each function, but you must look at the code to understand it. An understanding of PHP code is recommended. My comments for the changes are in the code and are prefixed with “ronak”.
Changes are made to version 1.5 of the plugin.
Also, the code disables the subpanel created in Wordpress and all configuration is done through the code. You can change this if you like.
Design
- The design is fairly simple. User input is taken in, validation is done on the input, and cURL is used to POST the input to the same page that the PHPList subscription page POSTs to.
- The code comprises of some global variables and functions. I don’t necessarily agree with the design of the plugin, but it works great.
Variables (Note: These are not all the variables used, only the one I edited.)
- $phplist_strings - This global variable is an array that holds the html for each field in the form. Just follow the code to add more fields.
Functions (Note: These are not all the functions used, only the ones I edited or created)
- generate_date_input($o, $day, $month, $year) - I created this function to create the html for the date fields. It takes an array of options ($o) returned by phplist_get_options() which I will get to soon and $day, $month, $year (ranges: 1-31, 01-12, and 1925 - current year respectively). If any of those three variables are set then that field will be selected with that value. If any of the three variables are equal to an empty string, then that part of todays date is used. This is used for keeping the values you selected persistant when an error or invalid input is triggered.
- phplist_subscribe($input_data) - This function takes in the data from the subscription form POST, formats the data, and performs the cURL POST. I made modifications to how array data is formatted in the POST since the original code did not deal with dates.
- phplist_get_options() - This function returns the options for the form. The changes made to this function add options for new fields and also disables the loading of options from the subpanel page.
- phplist_check_input() - This function validates user input. I added validation for the added text field and I’ve also added persistence for the date field since the page is reloaded when invalid input is entered.
- phplist_construct_form() - This function creates the newsletter subscription form. The form has been redesigned.
The changes I made are not complicated and I feel that they are easily decipherable. Post any questions in the comments.
Posted in PHP, Wordpress | Tags: PHP, PHPList, Wordpress | 1 Comment »
March 11th, 2009
Changes:
- If an exact match is found it will go straight to the movie rating skipping the search results. You can always go back to the search results if it’s not the movie you’re looking for. This feature can be turned off in the options under Tools->Add-ons.
- Bug fixes.
https://addons.mozilla.org/en-US/firefox/addon/9279
Posted in Firefox | Tags: extension, Firefox, movie rating, rotten tomatoes | No Comments »