In Japan contents download is always via browser, but this seems to be simply not the norm in GMS world, where SMS is used for almost everything. I wanted to know how to download some binary data (like a Flash file) to the handset in GSM world. It seems that the keywords are "WAP push sms". In fact, MMS which is the medium operator's email is transported, is actually an SMS with WAP push function. For MMS deliver, the mmsc delivers the sms with URL pointing to the actual MMS message, and the handset will use GPRS to fetch the message via WAP.
References:
How MMS works
Send an SMS to a Java app/MIDlet
Monday, July 2, 2007
Friday, June 8, 2007
Poor man’s blackberry
Almost any recent cellular phone in Japan has all that Blackberry has and much more, minus one (i.e., integration with corporate Exchange server, but this is available as optional service). But when traveling outside Japan while needing to read and responds in Japanese, all I have is poor man's Blackberry, and it took me years to come to this point. Here is how to "make" one:1. Make sure GPRS settings are correct and GPRS is activated by the operator for your subscription.2. You need to be able to use procmail to forward your emails, and has web-based sms sending service subscription that is cheap enough to warrant the name "poor";)3. Use a standard Japanese-capable handset (assuming that, like me, you need to deal with Japanese mails).4. Get Gmail account.5. Download mobile Gmail application from the following URL and install.http://gmail.com/appNow you are set to receive and send email like with any cell phone in Japan.6. Get real time notification of email arrival using SMS, by setting up a procmail recipe and perl script as follows:
:0 c* ^From:*\/.* |./sendsms.pl $MATCHThe "sendsms.pl" called above could be like this:#!/usr/bin/perluse LWP::UserAgent;my $ua = LWP::UserAgent->new;$ua->timeout(10);$ua->agent('Mozilla');my $argc = @ARGV;my $from;my $subject;if ($argc>0) { $from = $ARGV[0]; } else { $from = "uknown"; }#if ($argc>1) { $subject = $ARGV[1]; }my $smsbody = "Mail from $from: $subject";my $posturl = "https://theurltowebbasedsms";my $req = HTTP::Request->new(POST => $posturl);my $res = $ua->request($req);So whenever an email arrived, the procmail recipe above will get the sender's information (From: field) and pass it to the perl script, which will send it as sms via web interface to my cell phone7. Voila, the poor man's blackberry is now ready to tell you in real time that an email has arrived (at Gmail's email server) and ready to be read (via Gmail's Java application;).Monday, May 21, 2007
Setting up MediaWiki
A default install of MediaWiki will allow anyone to read and edit.
Adding these lines into LocalSettings.php will allow only logged in users to read/edit:
Furthermore, adding the following will allow only sysop to create accounts:
See http://ericsantiago.typepad.com/eric_santiago/mediawiki/index.html
Adding these lines into LocalSettings.php will allow only logged in users to read/edit:
$wgGroupPermissions['*' ]['read'] = false;
$wgGroupPermissions['*' ]['edit'] = false;
$wgGroupPermissions['*' ]['createpage'] = false;
$wgGroupPermissions['*' ]['createtalk'] = false;Furthermore, adding the following will allow only sysop to create accounts:
$wgGroupPermissions['*' ]['createaccount'] = false;
$wgGroupPermissions['sysop']['createaccount'] = true;
$wgWhitelistRead = array( "Main Page", "Special:Userlogin", "-", "MediaWiki:Monobook.css" );See http://ericsantiago.typepad.com/eric_santiago/mediawiki/index.html
Tuesday, May 15, 2007
Developing add-on for Thunderbird
Introductory document
http://developer.mozilla.org/en/docs/Extensions
Find info regarding developing Mozilla extension here:
http://kb.mozillazine.org/Getting_started_with_extension_development
(e.g., install "Console2" extension to view Jscript errors)
<a href="DOM
The XML User Interface Language (XUL)
Thunderbird: DOMming Around
XMLHTTP notes: abort() and Mozilla bug
Traditional Ways of Tree Traversal
Thunderbird extension development hell
Firefox Extension Development Tutorial :: Overview
http://developer.mozilla.org/en/docs/Extensions
Find info regarding developing Mozilla extension here:
http://kb.mozillazine.org/Getting_started_with_extension_development
(e.g., install "Console2" extension to view Jscript errors)
<a href="DOM
The XML User Interface Language (XUL)
Thunderbird: DOMming Around
XMLHTTP notes: abort() and Mozilla bug
Traditional Ways of Tree Traversal
Thunderbird extension development hell
Firefox Extension Development Tutorial :: Overview
Indonesia dan Tagalog
Ini kata2 yang sama antara bahasa Indonesia dan bahasa Tagalog.
Indonesia Tagalog
minum inum
gunting gunting
nangka nangka/langka
kambing kambing
balik balik
dinding dinding
kanan kanan
sayang sayang
mahal mahal
murah murah
takut takut
aku ako
simpan simpan
Thursday, May 10, 2007
OpenWorkBench troubles
I have not been able to run OpenWorkBench on my WinXP Home.
I just saw a new post in the forum saying that in WinXP Pro the problem can be solved by running it as Administrator. Unfortunately it still does not work on my WinXP Home.
I tried on Vista Ultimate, even the install failed with "Internal Error 2739". Some googling revealed that doing "regsvr32 c:\windows\system32\jscript.dll" may solve the problem. The info was not specifically for OpenWorkBench but it solved installation problem. But then OpenWorkBench could not start, giving error message regarding JRE not present. I installed "Java Runtime Environment Version 6 Update 1" from java.com, this solved the problem.
Now OpenWorkBench runs on my Vista machine, but not on my main machine, i.e., WinXP.
And for the first time I saw it running: it's not that impressive...
I just saw a new post in the forum saying that in WinXP Pro the problem can be solved by running it as Administrator. Unfortunately it still does not work on my WinXP Home.
I tried on Vista Ultimate, even the install failed with "Internal Error 2739". Some googling revealed that doing "regsvr32 c:\windows\system32\jscript.dll" may solve the problem. The info was not specifically for OpenWorkBench but it solved installation problem. But then OpenWorkBench could not start, giving error message regarding JRE not present. I installed "Java Runtime Environment Version 6 Update 1" from java.com, this solved the problem.
Now OpenWorkBench runs on my Vista machine, but not on my main machine, i.e., WinXP.
And for the first time I saw it running: it's not that impressive...
Sunday, May 6, 2007
Redmine on FreeBSD
First get ruby's tarball.
Then do "
Then install gems as follows:
Then install rails as follows:
Then basically follow this basic installation steps:
http://www.redmine.org/index.php?s=install
(getting ruby via SVN is recommended on ruby site... so do the following svn checkout svn://rubyforge.org/var/svn/redmine)
But there will be iconv related error when running rake (
Change directory to /ext/iconv inside ruby's tar ball directory, then do the following:
This will elimiate iconv error.
Uncomment this on config/environment.rb
References:
http://www.imasy.or.jp/~garsl/td/?date=0509
http://www.machu.jp/diary/20041004.html#p01
Then do "
./configure; make; make install"Then install gems as follows:
ruby setup.rb
Then install rails as follows:
gem update
gem install rails --include-dependencies
Then basically follow this basic installation steps:
http://www.redmine.org/index.php?s=install
(getting ruby via SVN is recommended on ruby site... so do the following svn checkout svn://rubyforge.org/var/svn/redmine)
But there will be iconv related error when running rake (
rake db:migrate RAILS_ENV="production" and so on).Change directory to /ext/iconv inside ruby's tar ball directory, then do the following:
$ ruby extconf.rb --prefix=$HOME/app --with-iconv-dir=/usr/local
$ make
$ cp iconv.so /usr/local/lib/ruby/1.8/i386-freebsd5.4
This will elimiate iconv error.
Uncomment this on config/environment.rb
ENV['RAILS_ENV'] ||= 'production'
References:
http://www.imasy.or.jp/~garsl/td/?date=0509
http://www.machu.jp/diary/20041004.html#p01
Subscribe to:
Posts (Atom)
