Twitter's use for SMS sending and receiving

June 7, 2008 Comments off

Hong Kong is unique in the sense that whilst we have insane mobile penetration of 154.4 %, there is a huge price difference between voice plans and SMS plans.

Depending on a third party long distance provider, it is actually cheaper to call up somebody and speak for a few minutes (HK-US charges are 7 cents/min and an SMS costs at minimum HK$ 2) and convey more than send a SMS to that person

Thus, I find Twitter’s SMS integration very useful. I tell my family members to sign up to Twitter and then also enable their mobile devices. In India, Twitter has a shortcode 5566511.

In HongKong, wifi access is very ubiquitous via the GovWiFi program as well as efforts by FON as well as PCCW, HongKong’s dominant telco provider so hopefully with the upcoming launch of the iPhone in Hong Kong it can help me by allowing me to have access to Twitter

Technorati Tags:

Using a La Fonera as a sandbox SSID to provide safer access for visitors in the office

May 2, 2008 Comments off

I was chatting with Ali Ebrahim over IM and mentioned to him that the La Fonera was quite useful as a quick mechanism to provide a sandbox SSID for visitors to his office who wanted to connect to the Internet. I’d like to elaborate on the exact mechanism

Offering access via the office WLAN or even via a wired connection opens up the risk of having an external entity access to an office’s internal network. I’ll leave it to your imagination as to what could possibly go wrong here (virus infection, internal file shares visible etc).

Whilst it is always possible to deny any form of Internet access to a visitor, it is possible via a La Fonera not only to provide access but at the same time be secure.

You may rightfully ask

Won’t it require the visitor/guest to be a fonero , that is run La Fonera/Fonera+ at his/her home/office so that he could connect to our office’s FON Access Point ? This may preclude the majority of visitors to an office

The answer is

  • Use the Friends and Family mechanism available by logging in on the FON User Zone.

The Friends and Family mechanism in the FON User Zone enables a fonero to setup local users on his FON Access Point with an associated password. This username and password is specific to that FON Access Point. You just need to setup one username/password. Multiple users can connect to that FON Hotspot via that username/password. I recommend modify the captive portal page to inform people about the username/password. The La Fonera defaults to having the bandwidth limited to 512 Kbit/sec to the Internet for connections made via its FON_whatever SSID. Connections made to the public SSID FON_whatever are on a separate VLAN and users cannot see any open shares on the office network.

Thus with this mechanism, one could allow access to the Internet to visitors/guests in an office environment by having them connect to the open FON_whatever SSID and still have them separate from the office internal network. You should keep your private SSID secure using WPA2 and use a difficult to guess password. It’s best to change the default password which is the serial number of the La Fonera as well as the default private SSID which is MyPlace

BTW, If you are using FON, I really recommend the Devicescape Connection Manager. It makes connecting to FON Hotspots pretty much a no-brainer. I really wish providers like Y5Zone and PCCW in Hong Kong would work with Devicescape and get their hotspots supported in the system. I’ve seen a number of their customers asking in the forums how to get Devicescape working with such hotspots. I’m also looking forward to a proper iPhone Devicescape app when Apple officially allows it

Technorati tags: , , , ,
Categories: General

A brief interlude with Yahoo Pipes

April 29, 2008 Comments off

Friend and fellow jamaat member Ali Ebrahim recently setup an instance of the Venus RSS aggregator to create Planet Bohra. He had pulled the twitter feed for mumineen.org but my grief was that when I clicked the link from inside Planet Bohra, I would be sent to the twitter page and not to the final destination.

I thought I would have to hack Planet to get around this. Thinking for a few minutes, I realised that maybe I should munge the twitter feed via Yahoo Pipes and started playing around with it (I had never used Yahoo Pipes before).

A short while later, I had something which did the trick and Ali was able to incorporate into Planet Bohra.

I should try and get together with Ali and see if we can do something more interesting via Yahoo Pipes.

Got one year free access to Encyclopedia Britannica

April 22, 2008 Comments off

Found out via this post on Techcrunch, that Encyclopedia Britannica was now free for bloggers and those bloggers accepted into the program can provide direct links to articles within Britannica and its available to their readers in its entirety.

I applied into the program and got accepted and I thought I’d link to what Britannica writes about my community Dawoodi Bohras and compare that to what is available via Wikipedia.

Categories: General

Gaining control of your phone via HongKong's Unsolicited Electronic Messages Ordinance

April 21, 2008 Comments off

It’s been a hassle being interrupted at the most inconvenient time by a tele-marketeer in Hong Kong who calls at every hour conceivable.

A couple of months ago, I came across this page at OFTA’s (Office of the Telecommunications Authority) website which described the procedure for registering a telephone number in the do-not-call registry.

It’s been peaceful ever since. So to all my readers in Hong Kong, if you haven’t done so, register your telephone numbers at the earliest.

Categories: General

Some gotchas when using AirDisk with Airport Extreme

March 24, 2008 Comments off

Got this via Ali Ebrahim who recently purchased a Time Capsule but the information should be valid also when using an external USB disk connected to an Airport Extreme Base Station

Basically it is that for the AirDisk you have some options:

  1. Entire disk password
  2. User account based passwords

You’d generally want to do (2) and the gotcha is that you can’t switch between the two without wiping all data on the disk clean.

Another gotcha is that you can’t migrate your existing TM backup to an AirPort enabled AirDisk. Meaning that whatever history is stored in your existing TM backup would be lost.

Technorati Tags:
Categories: Mac OSX

Generating cache-friendly URLS for parallel image loading

February 24, 2008 Comments off

The use of parallel image loading to improve page load time has been documented in multiple places. One of the key things to understand when one is using this technique is to always generate the same URL for the same static asset even if it resides on a different page.

This will allow the end-user to take advantage of HTTP proxy caches.

I wrote these set of simple PHP functions to demonstrate how one could incorporate this when generating the container HTML page for a website which uses parallel static asset loading

<?php
function path_to_origin_suffix($path,$NUM_ALIASES=2)
{
 /** Take hex value of md5 of $path. Get the ord value of the last
     hex char. Output it mod $NUM_ALIASES
 **/
 if (1 == $NUM_ALIASES)
     return 0 ;
 $hex = md5($path);
 return ord($hex[31]) % $NUM_ALIASES;
}

function make_url($path,$scheme="http",$origin="static.example.org")
{
 /**
    Add leading slash to $path. Generate suffix to append to basic
hostname
    basic hostname is the phrase before the 1st '.' in $origin
    Output a fully qualified URI encased in double quotes ""
 **/

 $pos = strpos($path,'/');
 if ($pos === FALSE || $pos != 0) {
  $path = sprintf('/%s',$path);
 }
 $suffix = path_to_origin_suffix($path);
 $array= explode('.',$origin,2);
 $host = "$array[0]$suffix.$array[1]";
 $abs_href = "$scheme://$host$path" ;
 echo "\"$abs_href\"";
}

function test() {
 echo make_url("/here/is/foobar") , "\n" ;
 echo make_url("here/is/foobar"), "\n" ;
 echo make_url("/there/is/foobar") , "\n" ;
 echo make_url("/there/was/never/a/foobar"), "\n" ;
 echo make_url("/please/mee/it/54"), "\n" ;
}

//test();
?>
   <html>
   <head><title>Parallel Static Asset Loading</title></head>
   <body>
   <img src=<?make_url("/john/rambo.gif")?> />
   <img src=<?make_url("here/was/john/rambo.gif")?> />
   </body>
   </html>

Hope this helps

Categories: General
Follow

Get every new post delivered to your Inbox.

Join 1,200 other followers

%d bloggers like this: