Fashion: SHIRTPAL Singapore Launch

SHIRTFest! Singapore

As some of my friends might have known, I had been working on a project called SHIRTPAL which is an online fashion retail venture dealing with custom tailored dress shirts.

Today I am happy to announce that we are having our first event this weekend on the 6th February, Saturday in Singapore where we are inviting people to come down to have their measurements taken by our professional tailor from Singapore and also our Bangkok tailor who has flown in for the event.

We also thought it would be nice to share some knowledge on dress shirts like what to wear and how to do color coordination with your pants and ties etc. so we put together a 15 minutes short seminar (crash course) to get anyone started on custom dress shirts.

Shirt prices are based on their fabric and generally ranges from $55 – $75 with some premium ones at $95. We are giving a $10 discount at the event for any 2 shirts bought. SHIRTPAL’s fabric sources come from Bangkok and Japan.

More details and appointment booking information are available on the events page at http://sg.shirtpal.com/singapore

Try out the customization tool at http://www.shirtpal.com/unique

p.s. Drop me a note if you are coming :)

Virtualmin MySQL Backup using strftime

If you are trying to make MySQL backups in Virtualmin that create individual time-based folders like

12-11-2009
13-11-2009

You can turn on strftime substitution in the module config for MySQL in Webmin. This is off by default.

Here is the screen shot:

Capture

Cheers and happy new year to everyone :)

Pictionary Singapore

Pictionary Singapore is having a charity sale for the Children’s Cancer Foundation.

If you would like to own numbered sets of the limited Singaporean edition and do your part for charity, follow these links to eBay to bid for the uniquely Singaporean sets:

0001
0002
0003
0004
0005
0006
1788
* Those are the serial number of the sets

Facebook: Sending App to user notifications through Javascript

If you refer to facebook’s documentation at http://developers.facebook.com/docs/?u=facebook.jslib.FB.ApiClient.notifications_send, you will notice that there are no parameters to specify an app_to_user notification type. To achieve this, you have to use the callMethod from the apiClient.

Here is a code snippet on how this can be achieved in a Facebook Connect site.

<script src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php" type="text/javascript"></script>
 <script type="text/javascript">
	FB_RequireFeatures(["XFBML"], function(){ 
		FB.Facebook.init("API KEY", "relative_path_to/xd_receiver.htm"); 
		FB.Facebook.apiClient.callMethod("notifications_send",{to_ids:[000000000],notification:"hello",type:"app_to_user"},function(){alert("notification sent");});	
	});
</script>

This code sends a notification from the app to the specified user ids. When the notification is done, a javascript alert box tells us the task is completed.

Multitouch slides for TAC09 coming soon

The Actionscript Conference has finally come to an end. It was a great conference and I got to meet a lot of people that I haven’t seen in some time and got to know even more cool people this time round.

I will be posting the slides for my multi touch session at TAC09 on this blog very soon.

Edit: The slides have been uploaded here

The Actionscript Conference – Multi-Touch in Flash

Cheers and keep a lookout for Flex Usergroup (http://fug.sg) meetups very soon ;)

The Actionscript Conference tickets starting at $1

The Actionscript Conference tickets are going at $1 on Ebay. Only 15 tickets to go. Go grab yours today :)

http://cgi.ebay.com.sg/ws/eBayISAPI.dll?ViewItem&item=290347825657#ht_500wt_1182

Facebook Connect in 3rd party iFrame with IE7 and below

If you are having problems trying to get Facebook to set cookies properly in IE7 and below when the site is sitting in an iframe and have a different domain with its parent container, check out this article to create a privacy policy for IE7.

http://www.softwareprojects.com/resources/programming/t-how-to-get-internet-explorer-to-use-cookies-inside-1612.html

and this fb forum thread:
http://forum.developers.facebook.com/viewtopic.php?id=452

Just tried it and FB Connect now works with 3rd party iFrame containers :)

The Actionscript Conference 2009

The Actionscript Conference is just 2 weeks away, and I’m getting more and more excited! Do check out the TAC website at http://www.tac.sg to find out more information about the conference. There are some pretty good discounts for students and NSFs so if you belong to these group of people, consider checking out the conference!

I’ll be doing a quick 30 minutes run down on Multi-touch in Flash this year, so if you are interested in these technologies, drop by and say Hi!

Cross-domain Dynamic iFrame resizing based on iFrame contents

Was facing this age old problem and googling around when I came across an excellent article at http://www.julienlecomte.net/blog/2007/11/31/ using the Yahoo cross-frame javascript library. For detailed description of how the cross-frame js works, head over to the excellent blog and read the article.

Did up a quick demo at http://www.alvinzhang.com/page.html. Simply view source, its very simple and straightforward, using a proxy as the communicator to bypass the cross-domain restrictions. Send the updated height across and set the iframe height to the new height.

Proxy and cross-frame.js can be downloaded here.

The article was written back in 2007 but still works perfectly now with the modern browsers in 2009. I would actually prefer something more familiar with flash developers like a crossdomain.xml which would be great.

Update 21 July: I just found out that HTML5 has support for cross-document messaging which makes it possible to do dynamic iframe resizing in a more elegant manner (less hack-ish).

Read: http://developer.apple.com/safari/library/documentation/AppleApplications/Conceptual/SafariJSProgTopics/Articles/Cross-documentmessaging.html

Incidentally, I came across this article while I was researching on the issue where Safari (is the only browser which) doesn’t allow an iframe containing content from an external domain to set cookies.

Post any questions in comments and I’d be glad to help out.

Fund Raising for Charmaine has reached target!

I just dropped by the blog for the above banner which is attempting to raise funds for a little girl Charmaine who is down with neuroblastoma and found out that they have managed to raised the target amount of funds which means that Charmaine will be able to fly to New York for her treatment. Cheers for that! And continue to pray for this little girl for a successful treatment.