Thursday, May 31, 2007

Office Charges / Rents

Even though this is out of the topic :P It's a good fact to know about how office spaces are being charged.

I have the privilege of setting up my own office for my Industrial Training. Now, I don't think there ever a student who need to setup their own office for IT. It is a very good life experience.

According to Mr. Shahril, rents are assigned according to the office logistics. Here's a list:
  • Mersing : RM0.25/sqft
  • TM Tower: RM1.25/sqft
  • KLCC: RM6 - RM8/sqft
  • PJ: TBA :D
Each employee requires about 100-150 sqft of area which includes
bathroom & common areas. So if there is an office of 10 people, you need about 1000 - 1500 sq ft of space.
And the total amount should be Room size x price/sqft.

For the office in PJ, I think the space the provide me is around 8x8 ft, enough for a PC table and a chair. There are 2 more tables and chair set in the other side of the room, I'm not sure whether there are people there.

Java2Script

Its a great tool for Java expert to simply convert their existing java app into web-based app. We can easily use SWT (Standard Windows Toolkit), to create the UI part.

I've tried the J2S with 2 apps. the 1st one is a simple, console-based HELLO WORLD java app and 2nd one is the HELLO WORLD app using SWT. Both can be run successfully using Eclipse.

After that, I tried running both apps as J2S app. The simple (non-SWT) app run OK, but not the one using SWT. I've checked SWT version, the J2S, all docs and tutorial on the net, but to no avail. I even post on their google groups but there are still no response. Here's a screeen shot of the error:



I'm not sure where "Line: 25" refers to, as there are certainly less than 25 lines in my codes. It maybe part of the loader that is trying to load the supposedly created .js file.

I found out that, for the non-SWT app, J2S has converted it's code into a .js file. But there is no .js file for the app with SWT. There maybe clashes between those 2 libraries. Posted this issue in their group too.

I'm sure its an error related to my IDE, but I'm still trying to rectify it.

Wednesday, May 30, 2007

Punjab

I happened to have access to their SVN and using that, I've updated my Punjab to the latest version. When I tried to install punjab, it returns this error :
/python2.3/distutils/dist.py:227: UserWarning: Unknown distribution option: 'package_data'
warnings.warn(msg)

According to plone website, it may because Iwas trying to install it on Python 2.3 (That was the version of Python on our server). Maybe it would be ok if I run it on different version of Python. I have version 2.4 and 2.5, since it also requires modification on the server, I'll put it on hold for a while.

Globsy

The main purpose for this framework is to setup a BOT that represents you on your gtalk account, sort of automatic response unit of some sort. Since it is a BOT for gtalk users, there's a slight possibility that we can manipulate it to be the liaison to the gtalk server.

I've tried it also for a few hours. It has many dependencies that need to be installed. Luckily I have installed it all except a C library called cURL. The documentation for it is very limited. At the end of the day, I email the author of Globsy asking for help and he replied with a couple of advices.

Since it does require major modification to the server, I put it on hold too, so that i could lay my hands on Punjab once more.

JabberHTTPBind

Tried JHB for a few hours. It can't work properly because I have not install any servlet container (ie: Tomcat). I will try to install Tomcat for Apache later, but for now, i'll try to figure out the simplest way to setup a connection between our server and GTalk, that didn't require major server modification.

The author has setup a website combining JWChat with JHB here. If you use the default server, then it'll work out OK. But when I try to connect to GTalk, multiple times with various settings, it won't work. I've post some question on the development blog here, and still waiting for the response.

Tools of Trade

Here are the tools that may help us:

Punjab :
- is a HTTP jabber client interface. It is a SOAP, XMLRPC, JEP-0025 or JEP-0124 server that allows persistent client connections to a jabber server. It can be used for many things, but its main purpose is to allow for stateless applications (ie web) a stateful connection to jabber. LINK
jwchat & Punjab

jabberHTTPBind (JHB) :
- is a java servlet implementing JEP-0124 (HTTP Binding) thus enabling you to connect to any Jabber™ server by way of HTTP Binding. LINK


Globsy :
- Globsy is a PHP bot framework for the Google Talk network that can be executed from a regular browser on a PHP enabled server, connect to the Google Talk network and continue running in the background, without the browser needing to remain open. LINK


Java2Script :
- java2Script (J2S) Pacemaker provides an Eclipse Java to JavaScript compiler plugin and an implementation of JavaScript version of Eclipse Standard Widget Toolkit (SWT) with other common utilities, such as java.lang.* and java.util.*. You can convert your SWT-base Rich Client Platform (RCP) into Rich Internet Application (RIA) by Java2Script Pacemaker. LINK

Da intro...

Welcome to the blog for the research and development of xmpp and web2.0 technology.