MikeTeo.net

A Software Developer’s Blog (Wanna Email Me?)

Archive for the ‘Software Development’ Category

pysmb 0.4.5 released!

Jun-22-2009 By miketeo

After laying this library to waste for 6 years, I have finally resurrected pysmb and fixed a crucial issue that has been plaguing pysmb for the past few years.

pysmb 0.4.5 will resolve the problem of retrieving large number of file information from remote SMB server. Previous versions will experience crashes in such situations as the remote SMB server is not able to return all the file information in a single request/response call. pysmb will “resume” the retrieval when necessary.

For more information, please visit: http://miketeo.net/wp/index.php/projects/pysmb

The protocol is inferred by reading the source code of egd version 0.9. It is a simple binary protocol which contains 4 commands. When the client connects to EGD via unix sockets or TCP sockets, the client will initiate the communication by sending the request. The format of the request is dependent upon the nature of request; the first byte of the request will be the command code (0×01 to 0×04) that will tell the service the nature of the request.

Read the rest of this entry »

pysmb is back online!

Jun-9-2009 By miketeo

pysmb is now back online at http://miketeo.net/wp/index.php/projects/pysmb.

pysmb is a client-side SMB/CIFS module which I have written in Python during my university days back in 2000. During that time, there are a couple of SMB/CIFS modules that wrap around native C libraries. I needed a cross-platform solution to support common file operations with Windows and Samba shared folders and wrote pysmb.

After graduation, I had stopped actively maintaining pysmb due to work. Eventually, I migrated miketeo.net to a new web framework/layout and dropped pysmb. Now pysmb is back online. Hopefully, it can help those Python programmers who need a SMB/CIFS solution for their projects.

Enjoy!

To remove the D-Pad (the round dial pad) on your J2ME midlet when using on Nokia 5800 (symbian 5th edition), just add in an user-defined property to your midlet JAD.

Nokia-MIDlet-On-Screen-Keypad: no

Then repackage your midlet jar file and re-install on Nokia 5800.

LWUIT Demo on BlackBerry with Eclipse

Feb-22-2009 By miketeo

LWUIT is a UI library that is bundled together with applications and helps content developers in creating compelling and consistent Java ME applications. LWUIT supports visual components and other UI goodies such as theming, transitions, animation and more.  I have managed to use Eclipse to recreate the LWUIT demo package and generate a COD file for running on a BlackBerry v4.6 simulator.

Read the rest of this entry »