Monday, July 24, 2006

Solaris Commands

Learned a couple of Solaris commands to display the System configurations.

/usr/platform/sun4u/sbin/prtdiag -v

uname -a

prtconf -v

eeprom

prsinfo

And to get the MAC address of the Eithernet card on a Solaris box, run
arp `hostname`
See this: http://www.cs.washington.edu/lab/services/network/wireless/yourmac.html

Or you can first become the root through the use of su, then run
ifconfig -a

See this: http://www.wpi.edu/Academics/CCC/Netops/Connecting/mac.html

Monday, July 17, 2006

Producer & Consumer Programming Examples

My coworker mentioned that he used the producer & consumer programming question in an interview, and the interviewee didn't get it smoothly. Just to refresh my programming practice, I had to do a quick review of it today, and thought I just post the link here.

http://java.sun.com/docs/books/tutorial/essential/threads/synchronization.html

Nothing especially hard to understand, in fact, if you are using JMS, then you are using this model daily. Just that sometimes the framework, and high level stuff hide a lot of the basics. Good to refresh my memory briefly.

Friday, July 14, 2006

Dynamic Java Code

A simple, neat article about creating dynamic java code to one's application:

http://www.javaworld.com/javaworld/jw-06-2006/jw-0612-dynamic.html

Pretty interesting, something I should keep in mind especially if I am writing somekind of standalone testing applications.

BTW, I really like JavaWorld.

X Window System

Had to deal with the X window system a bit today, cuz I need to install an oracle client on a solaris box. Here is an entry from Wikipedia to explain the X window structure.

I was mainly confused by xhost and xterm when i try to get everything running. Turned out, first you gotta start the X server, then you have to start a client on your local box to talk to your server and passing input back to the remote server.

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/x-understanding.html
http://en.wikipedia.org/wiki/X_Window_System