iPhone pricing details announced officially

A press release just appeared on Softbank's website and suddenly Twitter went ablaze: the official pricing details for the iPhone have been published.

iphone on softbank

Here's the lowdown:

  • 7,280円 per month for basic white plan and unlimited data
  • 960円 per month for the 8GB version, 1,440円 per month for the 16GB version (for 24 months)
  • specific email address for xxxx@i.softbank.jp (normal plans are xxxx@softbank.ne.jp)

Of course, these prices are without any calling minutes. I wonder if I'm going to be able to get the iPhone without any plan, activate it and use my corporate Softbank SIM card in it.

Custom Django filters in Google App Engine

You want to create your own custom Django filters in App Engine without running a whole Django stack? Here's how in a few lines of code.

First create a specific python file to hold your custom filters at the root of your application. In my case I use customfilters.py like this:

import re
from google.appengine.ext import webapp
 
register = webapp.template.create_template_register()
 
def escapeimg(body):
	return re.sub(r'

', '[IMG]', body)
 
register.filter(escapeimg)

Then in your main application source file, call the following line outside of the main() definition, for example just after your modules loading:

"""Load custom Django template filters"""
webapp.template.register_template_library('customfilters')

You should then be able to use the new filters you registered in customfilters.py straight away in any of your Django templates without any % load foobar % call

Crossdomain proxy on Google App Engine

Here's a crossdomain proxy to pipe Javascript Ajax calls from you Google App Engine application to the Flickr API, since most browser will not let you call another domain directly.

import cgi
import urllib
from google.appengine.ext import webapp
from google.appengine.api import urlfetch
 
class FlickrController(webapp.RequestHandler):
	"""Proxy for Ajax calls to flickr"""
	def get(self):
		flickrapiendpoint = 'http://api.flickr.com/services/rest/'
		flickrapikey = 'you_flicker_api_key'
 
		params = self.request.GET
		params.add('api_key', flickrapikey)
		params.add('format', 'json')
		apiquery = urllib.urlencode(params)
 
		result = urlfetch.fetch(url=flickrapiendpoint + '?' + apiquery, method=urlfetch.GET)
		self.response.out.write(result.content)
 
def main():
	application = webapp.WSGIApplication(
		[('/flickr/', FlickrController)],
		debug=True)
	wsgiref.handlers.CGIHandler().run(application)
 
if __name__ == "__main__":
	main()

I didn't see examples of such a script anywhere else so I thought I'd post it here for all to see.

Otaku rush on the new Fukutoshin

Last Saturday morning I was leaving a party at 5 A.M. in Shibuya and decided it would be nice to come back home to Shiki with the new Tokyo Metro Fukutoshin line which was opening the very day and interfaces with my usual Tobu Tojo line for an almost direct trip to and from Shibuya (I just have to hop from one side of the platform to another at Wakoushi) in a breeze.

fukutoshin line - map

So my girlfriend and I arrived at 5:30 after being guided by cops that were all over the station for the opening and got there to climb in the first train to arrive at Shibuya station and reversing for the journey back to Saitama.

Ruiko said:
Do not under-estimate the Japanese Otaku...

Remembering this saying by a good friend of mine, I wasn't surprised when that first train came in Shibuya station packed full of weirdos with backpacks and cameras (the classic Otaku costume). They came out of the train clapping and cheering, taking photos of each other in front of the driving cabin and macroing on every little details of the new train and station.

After the flow ebbed, we climbed on the train and were followed by a dozen of guys who must've missed the very first train. Losers... One of them was recording the trip and announcements with a microphone, bobbing his head to each of the stations' distinctive music as if to music from heaven... One of them had long pommeled hair and wore a flowery dress...

I didn't take any photos of them as my girlfriend was afraid I would get shanked by one of the weirdos like what happened in Akihabara 2 weeks ago, but I do have some photos of the brand new piece of station in Shibuya.

WWDC Keynote

Tonight (at least in Japanese time) is Steve Job's WWDC Keynote. It is widely accepted that he will be announcing the new 3G enabled iPhone and I am secretly hoping he will give us a release date for Japan live from the Moscone West.

These past weeks, I've been developing a live-blogging system for my other website to cover the event minute by minute. It's a challenge to devise a system, both software and hardware-wise, capable of handling the huge loads involved in such a big event. We are expecting more than 50.000 persons to follow the Keynote via MacBidouille.

Until now, all our attempts have failed. But this time, I'm trying something new with an Ajax based interface running on the new Google App Engine platform. It's been really fun using a new technology, Python, on Google's own architecture.

I have no idea if this new system will withstand the load this year, especially with the tight quotas in place for the beta phase of App Engine. But I sure hope Steve announces the iPhone launch in Japan starting tomorrow and I'll take the day-off to rush to the Apple Store in Ginza as soon as it opens...

iPhone on Softbank

やった!

「iPhone」について
2008年6月4日 - ソフトバンクモバイル株式会社

この度、ソフトバンクモバイル株式会社は、今年中に日本国内において「iPhone」を発売することにつきまして、アップル社と契約を締結したことを発表いたします。

SOFTBANK MOBILE Corp. today announced it has signed an agreement with Apple® to bring the iPhone™ to Japan later this year.

Why am I so happy? Because my corporate phone is a Softbank, so I should legally be able to change my crappy Sharp phone whose battery cannot hold more than 10min of conversation anymore for a snazzy 3G iPhone and still have my company pay for it. :)

Contact Juggling

Found this video on Digg, looks like Yoyogi Park. This guy is a million times more impressive than all those stupid jugglers and beanbag fanatics you find in such parks.

Yes, there's only one crowd I despise more than beanbaggers, it's the drum players. That's probably the main reason why I never hang out at Yoyogi Park...