Welcome to ChaosZone!
Prasenjeet Dutta's Home Page.

Archives

Archived posts with tag: Tips

Get your blog iPhone-ready

Apple’s releasing a new phone today (if you didn’t know that, you’re lucky). Beside curing all manner of ills, the phone has a great web browser that should get people really interested in using the web while on the move.

Now, the thing is lots of other phones have decent browsers — many phones run Opera, for example, or at least the Opera Mini. And with reasonable data plans becoming increasingly common, it definitely makes sense to get your site ready for mobile browsing.

I used a media="handheld" stylesheet declaration on this site, but that wasn’t very well supported. So here’s a better solution that requires very little work, if you run Wordpress:

  1. Get the Wordpress Mobile Edition plugin and install it. This will create a wp-mobile.php file in your Wordpress plugins folder, and a wp-mobile folder in your Wordpress themes folder.
  2. Open wp-mobile.php in a text editor and search for the word 'iPhone'.
  3. If you don’t find it (I’m sure it’ll be added as soon as the user-agent string is confirmed) add this text exactly as shown (without double quotes) somewhere in the middle of the list of browser user-agents:  " ,'iPhone' " (search for the text 'small_browsers' to find this list). When you’re done, save the file.
  4. Optional — you can also tweak your site’s mobile appearance by going into the wp-mobile folder (under your Wordpress themes folder) and editing the files there (mainly index.php). Some knowledge of PHP is required, but you can avoid the PHP and modify only the HTML inside the file.
  5. Test your mobile site using the Opera Mini applet, iPhoney (if you’re on a Mac) or even a real iPhone ;-). Emulators for most other phone browsers are also available.

The other advantage of a mobile-ready version of your blog is that mobile versions tend to very accessible and compact. Most accessible browsers already support disabling stylesheets, images, etc, but they still have to load other text, such as blogrolls, sidebars, etc. You could use the wp-mobile theme along with a theme switcher that would allow users to switch to a compact, accessible version if they wish.

Comment »

29 June 2007 11:29 pm

Move Google Toolbar Custom Search Buttons across PCs

If you’ve created a lot of your own Google Toolbar custom search buttons and want to move them to another PC, simply copy over all the *.xml files in the following folder from the old PC to your new one: %userprofile%\Local Settings\Application Data\Google\Custom Buttons. You must close all IE windows and re-open one again for the buttons to show up.

Comment »

28 September 2006 5:51 pm

Get Custom Overlays in Google Maps

Google Earth has had overlays for a long time — they make it easy to annotate maps with all sort of information, from vacation photos to public transport pickup points. Now, overlays work with Google Maps too. You can type in a URL of a KML/KMZ file into Google Maps and it will show you the overlaid map — here’s an example showing Metrolink stations in Manchester. This just made Google Maps much more useful.

Comment »

14 June 2006 10:48 am

Good Monospace Fonts for Programming

A day after I ran into the beautiful Anonymous font, I noticed that the Microsoft Download Center now has Consolas available for use on non-Vista systems. Consolas (which ships with Vista along with a bunch of other fonts) looks great on ClearType-enabled LCD screens even at small sizes and is highly recommended.

Comment »

3 May 2006 3:54 pm

Don’t Use Registry Cleaners

Using Registry Cleaners are a Bad Idea (via S Anand). I agree — if your registry has enough flotsam in it to impair your system’s performance and you don’t know enough to hand-edit the registry, you’re probably better off restoring from backups (you do have backups, right?) than trusting random registry cleaners that promise a sparkly-fresh computer for $29.

If you’re concerned about easily restoring your system, you’d be better off with Windows System Restore or spending money buying Norton Ghost and backing up images of your system.

Comment »

28 April 2006 8:52 am

Your Mouse Moves Differently in OSX

Every time I use OSX my arm hurts from all the mousing I have to do — and that’s not because I don’t know the Mac keyboard shortcuts. The culprit is OSX’s mouse cursor acceleration logic, and here’s how you can fix it to be more Windows-friendly.

1 Comment

14 March 2006 8:52 am

Project Aardvark == Remote Desktop

Is Project Aardvark a remote desktop service that works through firewalls using an HTTP-based reflector, like GoToMyPC and MyWebexPC, given some of the hints the Aardvark team has been dropping? Given the team’s working with a lot of GPL code, maybe they’re extending VNC?

Incidentally, I find myself using MyWebexPC a lot these days and it’s quite good (and the basic version’s free for upto 5 PCs) … if you find yourself working on several machines, you might want to give it a try.

Update: Hadn’t noticed this: Michael Still has discovered what Aardvark is: SidePilot, a service that allows ‘people to help their friends, relatives, and customers fix their computer problems by temporarily controlling their computers via the Internet’.

1 Comment

24 June 2005 10:25 am

Unexpected MOOX Benefit

I decided to try out the optimized MOOX Firefox builds today (I used the SSE-ready M2 build of Firefox 1.0). An interesting quirk I observed is that the text reflow bug #217527 that caused havoc on Slashdot goes away with this build. This is consistent with how timing bugs sometimes vanish, although by the same token the MOOX builds could introduce several other bugs. I have now switched off Raefer Gabriel’s Slashfix extension and Slashdot renders well again. Lucky me.

5 Comments

15 November 2004 3:16 pm

Firefox’s Slashdot Rendering Bugs

If you use Firefox and visit Slashdot, especially as a logged in user, you may have noticed Firefox mess up the rendering on the home page and many inner pages. This is due to Bug #217527 and it seems it will not be fixed in Firefox 1.0 (but is scheduled to be fixed thereafter). I wish the Firefox devs would reconsider, it’s never a good idea to render one of your biggest booster sites badly.

That said, workarounds exist: hit Ctrl+ followed by Ctrl- to reset the display. Or download the latest Mozilla trunk builds. Or (gasp) use IE, it works great with Slashdot.

Update 9 Nov 2004: Hardgrok has a handy little hack extension that sort of fixes this problem, although /. pages opened in background tabs still get borked.

5 Comments

18 October 2004 3:18 pm

SuperScroll for Firefox

Folk bothered by Firefox’s slow (1-line) up/down-arrow scrolling can install Cosmic Cat’s SuperScroll extension and set directional scrolling to an IE-like 4 lines.

Comments Off

17 June 2004 3:52 pm

Next Page »

 

Copyright © 2001-2006, Prasenjeet Dutta. Terms of Use.

RSS Subscription Icon Subscribe

Powered by WordPress