PHP And Struts

Jakarta Struts is a framework for building web applications using Java Technologies, and it encourages an architecture similar to MVC design pattern, and the approach is commonly known to most programmers as Model 2 approach.

If you are searching for a similar frame like that for PHP, Phrame is definitely worth looking. It also inspires Model 2 approach with Models, Controllers, and Views. Phrame provides its own Controller, just like Jakarta Struts. For Models and Views, it constitutes Open Source technologies like ADODB, PHP, Smarty. Its home provides comprehensive tutorials so that we can easily walk through and realize what it looks like.


I’m sure I still don’t have a clear grasp of MVC especially in terms of web applications. But this article gives me more insight into MVC. For more information about MVC frameworks written in PHP, please consult this page.

Java Pesticides

When it comes to programming, bugs are inevitable. PMD is one of the open source java code inspector. It scans the source code and identifies

  • Empty try/catch/finally/switch blocks
  • Unused local variables, parameters and private methods
  • Empty if/while statements
  • Overcomplicated expressions – unnecessary if statements, or loops that could be while loops
  • Classes with high Cyclomatic Complexity measurements


It can just simply plug-in to your favourite IDE, or work together with Ant. The other available options are:

Myanmar DMA / MBA Students Community Site

This is the re-launch of that was corrupted due to Postnuke 0.75 upgrade. So on my second thought,‘s only purpose being to provide a mean to communication among alumni, I made a switch to phpBB to be served as backend. I, as a phpBB newbie, am finding hacks that will make phpBB looks, and functions better.I wish all the alums of Yangon Intitute of Economics join and participate.

Google Scholar

I just noticed that feature today. Sounds like I need to spend some time tweaking google parameters.

Google Scholar

Google Scholar enables you to search specifically for scholarly literature, including peer-reviewed papers, theses, books, preprints, abstracts and technical reports from all broad areas of research. Use Google Scholar to find articles from a wide variety of academic publishers, professional societies, preprint repositories and universities, as well as scholarly articles available across the web.

Just as with Google Web Search, Google Scholar orders your search results by how relevant they are to your query, so the most useful references should appear at the top of the page. This relevance ranking takes into account the full text of each article as well as the article’s author, the publication in which the article appeared and how often it has been cited in scholarly literature. Google Scholar also automatically analyzes and extracts citations and presents them as separate results, even if the documents they refer to are not online. This means your search results may include citations of older works and seminal articles that appear only in books or other offline publications.

Please let us know if you have suggestions, questions or comments about Google Scholar. We recognize the debt we owe to all those in academia whose work has made Google itself a reality and we hope to make Google Scholar as useful to this community as possible. We believe everyone should have a chance to stand on the shoulders of giants.

XFce, Gnome and Nautilus

I used Gnome as my desktop environment three months ago, and I completely switched to XFce for its speediness, and many other things. But when I first made the switch, I started to find out that Nautilus is not executing the exact way as it does with Gnome. I gradually realized that I have to execute Nautilus with

nautilus --no-desktop --browser

to work like before. And again the icons were not being displayed as I had set with


After googl-ing for a few minutes, I found out that XFce uses hicolor icons instead of the icon set defined in Gnome. So I made a symbolic link to my favourite icon set as hicolor, and finally it worked again.

# cd /usr/share/icons
# mv hicolor hicolor.old
# ln -s gartoon hicolor

Now my Nautilus is displaying files in my favourite icon set.

My Screenie

GMail API for Java

Now in its 0.3.12, I think g4j is evolving gradually. I have just downloaded the source codes and was playing around with its sample application. So I wouldn’t know how great the API really is, but I’m going to find out about that sooner or later. This is what the author describes about his/her API:

GMailer API for Java (g4j) is set of API that allows Java programmer to communicate to GMail. With G4J programmers can made Java based application that based on huge storage of GMail.

An Email application, GMailer for Java is also built to demonstrate the usage of the API. It is planned to include minimalist email capabilities such as browse, search, read, send mail and download attachment.

And the screenshot for the example provided.

My Screenie

GMailer for PHP

It is the project that inspires g4j that I have mentioned earlier. It enables user to check, compose GMail accounts using PHP scripts. So if we want to incorporate GMail access to our web site that uses PHP, I guess this is the good choice. So if you love GMail and PHP, you’d better check that site right now 😉

GMail-lite is another http implementation of GMail using that library. The following is what GMail-lite looks like in Netfront browser.

Gmail Lite

You can even find more screenshots here.