Some of my notes other than Java and Python. Mostly about other stuffs I play with such as Linux, Ubuntu, CentOS, Solaris, VirtualBox, VMWare Player, ... or whatever stuffs passing by...
Monday, May 31, 2010
VirtualBox now downloadable as "Oracle VM VirtualBox 3.2"
The crowd is still waiting what will happen next with this product as Oracle has already had its own VM before the Sun Microsystems acquisition.
Wednesday, May 26, 2010
NTLM authentication is no longer supported by Spring Security 3.0.x
I am exploring the way to automatically authenticated on Windows platforms on Spring Security. The older way of doing this is by using the NTLM_FILTER which works with Spring Security 2.0.x.
I just realised that the NTLM filter is no longer supported in Spring Security 3.0.x. The preferred way to do authentication is using the Kerberos.
http://blog.springsource.com/2009/09/28/spring-security-kerberos/
I have stumbled upon this Kerberos authentication has since my freshmen year at university back in 1995. It should then be I remember when using the yellow page tools on SunOS in SPARCstation boxes; the ypbind, yppasswd, etc (renamed NIS) are Kerberos based. It's been around for years, yet I haven't had much experience in setting the configuration on the server from scratch.
Now that I have to explore this, it's time to go in depth with this Kerberos stuffs.
The Windows NT which formerly has its own authentication system, that time, began to adopting standards such as LDAP, Kerberos, etc. NTLM -- which stands for NT LAN Manager, hum, sounds very very oldies kind of stuff -- has been superseded by Kerberos based authentication. Windows 2000 started providing Kerberos authentication as an alternative. Of course since the introduction of Kerberos based system, the transition has been slow, suggesting the new user to use Kerberos by default, and only supporting NTLM when they need backward compatibility with old systems (such as Windows 98). Nevertheless there are some people is still using the NTLM on their legacy systems.
The Spring Security team has deprecated the NTLM integration and move to Kerberos based authentication (for Windows systems) instead.
Sunday, May 2, 2010
Cost of not testing your solution will propagate and snow ball
Today I've a got a bit of relief at work, as we will have some free time for the next two days.
Today I will settle some things after the house moving. One of them is exchanging bulb. We need to replace 10 bulbs on the old rented house that has been damaged during our 2 years tenancy. The store didn't provide a testing platform for the bulbs, yet they provided one-to-one replacement guarantee. I bought 6 x SL twisted neon bulb, 2 x square-based SL neon bulb, 1 x 32w round TL neon bulb, and 1 spot light. From the 10 replacement bulbs I bought, one of them didn't really worked (defect). The store promised me for replacement when some of them are defect products. "Just don't throw the boxes, they said". Today is Monday, I bought the replacement last Friday. Because I don't come to office on weekends, I have to postpone visiting the store to reduce cost (while losing time).
Hmm, even though I have one-to-one replacement guarantee, I still have to go down town to the store I bought from, and it's only just for this one bulb! For the replacement of this single bulb I have to go down town to the store near my office on off working day, pay the MRT (train) fare there, waste some time there, and then pay the fare for returning home again.
This event reminded the cost of not testing your solution thoroughly. Once it's rolled out, the impact wouldn't be just what you will feel at your coding room where you can simply fix, compile, and run again. The cost of replacement stuffs in production will create a huge snowball as it goes down hill. The issues, the delays, the lags will be propagated far.
Where as:
- we are not perfect -- we produce bugs
- the requirement guys are not perfect -- they produce defective or incomplete or inconsistent requirements
- our customers are not perfect -- they might ask us to do some impossible or contradicting stuffs
I believe it still better when we do test the right way before we roll out to production.
Friday, April 30, 2010
LDAP Browser Applications
Recently I have to deal with connection Apache HTTPD (Web) Server to ActiveDirectory. Running authentication against an LDAP-based directory server, sounds trivial, but I found it, not really! There are a lot resources in the Internet, but most of them I still need some adaptation. Even more, because ActiveDirectory is not just a simple directory server, but it has multi-facets, and of course you are required to understand some of the details of Windows based authentication system.
I run my configuration on the latest Apache HTTP 2.2.14, while most of the samples were still using Apache 2.0, or even 1.3.
This task requires me to be able to browser my existing ActiveDirectory server, to see what is actually inside the directory server. My previous experience with ActiveDirectory servers was revolving around setting Windows servers and workstations users and group. Connecting a third party (I mean non-Microsoft) application using non-Microsoft technology (it's not VB6, it's not .NET, it's not COM application) posed some challenges for me.
I realize that in order to be successful, I need to be able to browse the directory server (LDAP server is not a correct term, directory server is the correct term), so I came into conclusion that:
- I need a good client tool to test the connection first
- I need to figure out the correct settings on the ActiveDirectory
- I need to figure out the correct settings on the Apache HTTPD 2.2 configuration file (httpd.conf)
I found a few free and good client tools that works for my requirement:
I found out that Softerra's LDAP Browser 2.6 to be lightweight and very useful when you are using Windows system as the client. The cons is, it's a Windows application, means that you can't run it from other platform. I use the older version of this tool -- version 2.5 -- and discovered a lot of things about the ActiveDirectory server, before moving into the latest(version 2.6.
JXplorer download is the smallest! Currently JXplorer has the limitation of only displaying the first 1,000 items, which I found to be very annoying. It throws exception whenever bumping into this limitation (which you would for certain when browsing ActiveDirectory!).
Apache Directory Studio is based on Eclipse platform, and it's a big download (92MB), compared to JXplorer (3.2MB), and LDAP Browser 2.6 (5.6MB). It was built for Apache Directory Server (ApacheDS) project, but should work with any directory servers (at least it claims to be!). The benefit of Eclipse platform of course, we suppose to be able to update components without reinstalling the Eclipse platform. It's OSGi platform under the hood, so in case the provider maintain well the update site, we could update OSGi components as required.
Wednesday, April 28, 2010
How to go to Perhentian Islands from Singapore
I found out that some people wanted to go to Perhentian Islands from Singapore. Perhentian Islands is such a nice place in Malaysia, reachable by half an hour boat from Peninsula Malaysia's east coast - which means it is easily reachable from Singapore through land transport.
I have been there in two trips, both are really memorable! One trip was for snorkeling with church friends from Kuala Lumpur (KL). The other trip I went there with group of friends from Singapore for some scuba dives. While geographically KL seemed to be nearer to nearest city (Jertih) than from Singapore, the road from KL to Jertih is not as nice as west coast expressway. My first trip which was from KL took around 8 hours bus ride (KL - Jertih). My second trip was direct from Larkin Bus Station (Johorbahru - JB) to Jertih.
If you are cost conscious like me and wants to take bus from Singapore, I would suggest that you take the bus from Larkin Bus Station (JB) to Jertih instead of travelling down by bus to KL followed by another bus trip to Jertih. From Larkin to Jertih took about 10 hours as I can recall.
From Jertih you can take cab to Kuala Besut, where the jetty to Perhentian Islands are.
Shifting house
Recently it has been quite hectic at work and at home. Especially when you have to do it at once.
We are shifting house these 1.5 weeks, got many things to shift over, including one digital piano plus stand, one keyboard (66-keys, not 104 keyboard) and one MIDI controller, one rack sound module. Oh, forgot that one baby cots. Lucky it's now near the end of house shifting. The same suitcases have been moving back and fro around times. It's just 2-3 blocks away movement but once a while in a year or two, I regret why I accumulate so much things. Carrying two persons' things alone took more than just courage and strength, it took perseverance as well.
Nevertheless it's almost over now! Today's evening will be the hand over time for the old house. A lot of things had happened in our rented house these 2 years. A lot of memories. There's a certain kind of sad feeling when you have to leave the place you have been living with for years. But it's time to leave... Time to move on with life.
It's interesting how you can find a lot of things you have in your cache when shifting house. I found my 2 small ocarinas I bought in Harbourfront some times ago. I missed their voices.
Thursday, April 22, 2010
PyCon Asia Pacific 2010 has been firmly announced
Now they announce the PyCon Asia Pacific 2010.
9-11 June 2010, at Ngee Ann Kongsi Auditorium, Singapore Management University.
SGD 250 for corporate.
SGD 200 for early bird individuals.
Highlights:
- Steve Holden, Chairman of the Python Software Foundation (PSF) will be coming as one of the keynotes
- Mark Hammond, author of "Python Programming on Win32"
- Wesley J. Chun, author of "Python Core Programming", now software architect at Google
- Martijn Faassen, a long standing member of the Zope Foundation