Monday, December 24, 2012

Modify Headers Add-on: testing your website on Firefox like mobile device

There are some add-ons for Firefox which can simulate data sent to servers to make it seem as if the user agent is browsing on a mobile device, even when they’re not. One of them is Modify Headers addon.

Here is its quick start: http://www.garethhunt.com/modifyheaders/help/quickstart/

Here is the list of iPhone User-Agent: http://enterpriseios.com/wiki/Complete_List_of_iOS_User_Agent_Strings

Here is the other User-Agent profile: http://w3development.de/rdf/uaprof_repository/

Here is iPad UA:
Mozilla/5.0(iPad; U; CPU iPhone OS 3_2 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) Version/4.0.4 Mobile/7B314 Safari/531.21.10

For Google Chrome, you can try out the User-Agent Switcher extension.

Happy testing :)

Joomla 2.5: Load module by module id

This plugin will help you load a module into an article by its id.
http://www.pages-and-items.com/extensions/load-module-into-article

+Thoi Trang Tre Em

Tuesday, December 4, 2012

Convert RTF to HTML

Here are some places to get the source code:
http://code.msdn.microsoft.com/windowsdesktop/Converting-between-RTF-and-aaa02a6e
(old: http://blogs.msdn.com/b/matt/archive/2009/09/28/converting-rtf-to-html.aspx)
http://www.codeproject.com/Articles/27431/Writing-Your-Own-RTF-Converter
http://blogs.vbcity.com/hotdog/archive/2005/12/30/5759.aspx
http://sourceforge.net/projects/rtf2html-lite/
http://www.codeguru.com/cpp/controls/richedit/conversions/article.php/c5377/RTFtoHTML-Converter.htm


Subscribe to RSS Feed Follow me on Twitter!