<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-13416240</id><updated>2011-12-14T23:04:55.799+05:30</updated><category term='Linux Usability'/><category term='GroupLayout'/><category term='Mac Snow Leopard Disk Utility'/><category term='Java'/><category term='Gotcha'/><category term='Java Netbeans Plugin Module'/><title type='text'>My Insights on Technologies</title><subtitle type='html'>This is what you get when you have a Rogue stuck with a software job, who does not really believe in actively maintaining a blog!</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://roguexz.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13416240/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://roguexz.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Harsha Ramesh</name><uri>https://profiles.google.com/101260736428539180794</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-2Uk3pqlVj8I/AAAAAAAAAAI/AAAAAAAABQQ/bQ73FHCiSjw/s512-c/photo.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>12</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-13416240.post-550671764586626858</id><published>2011-02-11T01:07:00.006+05:30</published><updated>2011-02-11T01:18:31.921+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Mac Snow Leopard Disk Utility'/><title type='text'>Disk Utility: Failed to create disk image (resource busy)</title><content type='html'>Been a long time since I have blogged. A quick post about what I just found out. Hope it helps someone else out there.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I was trying to setup the &lt;a href="http://source.android.com/source/download.html"&gt;Android dev environment&lt;/a&gt; on my Mac and had to create a case-sensitive disk image using "Disk Utility". Every time I tried to create the disk it would end up with a "resource busy" message.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Simple solution:&lt;/div&gt;&lt;div&gt;    Disk Utility -&gt; Preferences&lt;/div&gt;&lt;div&gt;    Uncheck the "Automatically mount read/write images"&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Now, recreate image and things should go through smoothly.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;p.s.: I am running on Snow Leopard&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13416240-550671764586626858?l=roguexz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://roguexz.blogspot.com/feeds/550671764586626858/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13416240&amp;postID=550671764586626858' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13416240/posts/default/550671764586626858'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13416240/posts/default/550671764586626858'/><link rel='alternate' type='text/html' href='http://roguexz.blogspot.com/2011/02/disk-utility-failed-to-create-disk.html' title='Disk Utility: Failed to create disk image (resource busy)'/><author><name>Harsha Ramesh</name><uri>https://profiles.google.com/101260736428539180794</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-2Uk3pqlVj8I/AAAAAAAAAAI/AAAAAAAABQQ/bQ73FHCiSjw/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13416240.post-2358851242236118440</id><published>2009-02-15T17:38:00.010+05:30</published><updated>2009-02-15T18:55:46.832+05:30</updated><title type='text'>A Case Study: Modularized Application Development with Struts2</title><content type='html'>In today's development world, it is not uncommon for mid-to-large scaled projects to have multiple sub-modules which are then assembled for the final product deliverable.&lt;br /&gt;&lt;br /&gt;One of the common challenges involved with such development is pretty much the integration piece. Integration can be defined in a multitude of ways and as such there is no "one size fits all" solution. Let's scope our scenario down further. Let's say that our finished product is a web application which is composed of multiple sub-modules, where each module represents a service and this service can have an optional view layer that needs to be pulled into the finished product with all the linkages being proper. &lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;Personally I do not have a lot of work experience, but I have been faced with the same problem in two different companies, to make me believe that this could be a common scenario for quite a few other folks out there.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;In my previous project, I had a similar situation. At that time I was the architect, build-boy, source control administrator, module lead, business-analyst, client connect.... basically &lt;span style="font-style: italic;"&gt;one-guy-fits-all-positions&lt;/span&gt;!! And to make things worse, the technology stack for the project was already defined and the view layer would be completely written in Struts2. No offense to Struts2 what-so-ever, just that I was a Faces boy (not knowing anything about Struts except for the concepts) and here I was ... working in alien technologies :)&lt;br /&gt;&lt;br /&gt;Coming back to the subject, each of the sub-modules were publishing pages that needed to be integrated in the final application and linked via the menus too. During the earlier builds, the integration process was a nightmare, where we would pull in all the code, merge all the struts.xml files, update links on the menu-sections of the page - in one phrase - inefficiency at its best :)&lt;br /&gt;&lt;br /&gt;Just about when I was about to give up on the hopelessness of the situation, I decided to have a closer look at what Struts2 had to offer and I was pleasantly surprised that I could have the flexibility of distributed configurations (the type that I was used to with Faces) right within Struts! The key was the struts-plugin.xml file!!&lt;br /&gt;&lt;br /&gt;So the first thing I had to do was rewire our current modules a little bit. Let's take the following sample layout for a module:&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_ng-7LCiQbHE/SZgH7Z2uOuI/AAAAAAAABHw/kH5BgejKfmg/s1600-h/module-layout-1.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 177px;" src="http://2.bp.blogspot.com/_ng-7LCiQbHE/SZgH7Z2uOuI/AAAAAAAABHw/kH5BgejKfmg/s320/module-layout-1.png" alt="" id="BLOGGER_PHOTO_ID_5302997278362843874" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Let's assume that each module has a DAO layer, a model / API layer, and a web layer. First thing that I had to do was ensure that my web-tier projects are creating jars instead of bundling the compiled code in the classes directory. Next, I moved over the &lt;span style="font-style: italic;"&gt;struts.xml&lt;/span&gt; &lt;u&gt;for the module&lt;/u&gt; to &lt;span style="font-style: italic;"&gt;src/java/struts-plugin.xml&lt;/span&gt;. This would mean that &lt;u&gt;&lt;span style="font-style: italic;"&gt;my-module-view.jar&lt;/span&gt;&lt;/u&gt; would contain the &lt;span style="font-style: italic;"&gt;struts-plugin.xml&lt;/span&gt; in its root directory. And anyone who has written plugins in Struts2 would know that the &lt;span style="font-weight: bold;"&gt;all&lt;/span&gt; &lt;u&gt;struts-plugins.xml&lt;/u&gt; files available on the classpath are loaded up when the struts application starts.&lt;br /&gt;&lt;br /&gt;Neat. So I have one problem taken care of, which was the manual merging of the struts XML files. But I've still got one more problem to fix. The whole manual setup of the menu layouts in the application. Now why did we have to do this? 'Cause there was a need to make releases which had only a certain subset of modules available.&lt;br /&gt;&lt;br /&gt;This is where I got thinking ... each of my menu items opens up in to a page / view of the underlying module. And each of this menu items is pointing to an Action link ... so would it be possible to read all actions, and add a custom attribute to the action definition in the Struts xml file ... and then use this information to construct my menu??? Sounds logical, and yes ... it is absolutely doable!!&lt;br /&gt;&lt;br /&gt;All menu related actions were &lt;u&gt;augmented&lt;/u&gt; with additional attributes in the struts xml file. So, now my struts XML files started to look as follows:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;&amp;lt;struts&amp;gt;&lt;br /&gt;  &amp;lt;package name = "/mymodule/manage/"&amp;gt;&lt;br /&gt;      &amp;lt;action name = "ModuleSettings" ... &amp;gt;&lt;br /&gt;        &amp;lt;result ...&amp;gt;...&amp;lt;/result&amp;gt;&lt;br /&gt;        &amp;lt;param name="menu.id"&amp;gt;My_Module_Settings&amp;lt;/param&amp;gt;&lt;br /&gt;        &amp;lt;param name="menu.parent"&amp;gt;ROOT_MENU&amp;lt;/param&amp;gt;&lt;br /&gt;        &amp;lt;param name="menu.order"&amp;gt;3&amp;lt;/param&amp;gt;&lt;br /&gt;        &amp;lt;param name="menu.display.name"&amp;gt;My Module Settings&amp;lt;/param&amp;gt;&lt;br /&gt;      &amp;lt;/action&amp;gt;&lt;br /&gt;     ....&lt;br /&gt;  &amp;lt;/package&amp;gt;&lt;br /&gt;&amp;lt;/struts&amp;gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/span&gt;Once I had all the required parameters, it was now about reading these action files and setting up the menu model in memory. This can be easily achieved using the following lines of code:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;function loadMenuItems() {&lt;br /&gt; Configuration configuration = Dispatcher.getInstance().getConfigurationManager().&lt;br /&gt;           getConfiguration();&lt;br /&gt;   Set&amp;lt;String&amp;gt; packageNames = configuration.getPackageConfigNames();&lt;br /&gt;   for (String pName : packageNames) {&lt;br /&gt;     parsePackages(config.getPackageConfig(pName));&lt;br /&gt;   }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function parsePackages(PackageConfig packageConfig) {&lt;br /&gt;   Map&amp;lt;String, ActionConfig&amp;gt; actionConfigs =&lt;br /&gt;           packageConfig.getActionConfigs();&lt;br /&gt;   String namespace = packageConfig.getNamespace();&lt;br /&gt;   for (String aName : actionConfigs.keySet()) {&lt;br /&gt;     parseActionConfigs(namespace, aName, actionConfigs.get(aName));&lt;br /&gt;   }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function parseActionConfigs(String namespace, String aName,&lt;br /&gt;         ActionConfig actionConfig) {&lt;br /&gt;   // Check if the action config represents a menu element.&lt;br /&gt;   Map&amp;lt;String, Object&amp;gt; params = actionConfig.getParams();&lt;br /&gt;   if (params.containsKey(MENU_ID)) {&lt;br /&gt;     // MenuAction found.&lt;br /&gt;     String menuId = (String) params.get(MENU_ID);&lt;br /&gt;     String parentId = (String) params.get(MENU_PARENT_ID);&lt;br /&gt;     String displayName = (String) params.get(DISPLAY_NAME);&lt;br /&gt;     String menuOrder = (String) params.get(MENU_ORDER);&lt;br /&gt;&lt;br /&gt; // Now go ahead and create the menu item from the above information&lt;br /&gt; // and setup the menu context.&lt;br /&gt;&lt;br /&gt;   }&lt;br /&gt; }&lt;br /&gt;&lt;string&gt;&lt;string,&gt;&lt;string,&gt;&lt;br /&gt;&lt;/string,&gt;&lt;/string,&gt;&lt;/string&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/span&gt;Once I had the menu context initialized, then all I had to do was just rewrite the menu handling pages to use the menu context and publish information. The rest of the work of merging the wars into a single project was left to the build system =)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-weight: bold;"&gt;Note: &lt;/span&gt;The above parameters are just an illustration and if you choose to leverage a similar approach, then you could potentially introduce other parameters, like security related information (ROLES / PERMISSIONS / etc).&lt;br /&gt;&lt;br /&gt;And obviously, due IP constraints, I will not be able to publish any of the code base, but here is something interesting... Among all the folks that I have interviewed in the past, almost all of them have no idea what Swing is all about and believe that Swing is purely for desktop. Yes, predominantly it is for the desktop, but hey... there is a &lt;span style="font-style: italic;"&gt;javax.swing.tree &lt;/span&gt;package and this package incidentally has a fullfledged Tree implementation!! What if I created a MenuItem that extended from DefaultMutableTreeNode ?? Don't you think that the whole effort of ordering and traversal could be completely ignored?? ;-)&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;So this was the way I went about resolving a rather nagging problem in my development project. Do you have any interesting experiences / ideas that help solve similar situations??&lt;br /&gt;&lt;br /&gt;-Rogue&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13416240-2358851242236118440?l=roguexz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://roguexz.blogspot.com/feeds/2358851242236118440/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13416240&amp;postID=2358851242236118440' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13416240/posts/default/2358851242236118440'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13416240/posts/default/2358851242236118440'/><link rel='alternate' type='text/html' href='http://roguexz.blogspot.com/2009/02/case-study-modularized-application.html' title='A Case Study: Modularized Application Development with Struts2'/><author><name>Harsha Ramesh</name><uri>https://profiles.google.com/101260736428539180794</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-2Uk3pqlVj8I/AAAAAAAAAAI/AAAAAAAABQQ/bQ73FHCiSjw/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_ng-7LCiQbHE/SZgH7Z2uOuI/AAAAAAAABHw/kH5BgejKfmg/s72-c/module-layout-1.png' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13416240.post-3559605733157047019</id><published>2007-07-24T01:33:00.000+05:30</published><updated>2008-11-13T15:55:40.608+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux Usability'/><title type='text'>The Problem of Many</title><content type='html'>The open source world of "Applications" is a funny &amp; paradoxical collection of illustrations. On one hand, people unite together to get away from the clutches of those who tend to constrict users, whilst on the other petty differences in opinions leads to the creation and availability of a multitude of applications performing the same task, albeit in slightly differing shades. Some folks look at this as "the freedom to choose". I look at it as the lack of a concerting effort to amalgamate the best of features, in turn, producing the best-of-breed applications.&lt;br /&gt;&lt;br /&gt;Now, this does not mean that I am against the open-source concept or the proliferation of applications. I am just trying to explain a problem that I have noticed -- "The Problem of Many"&lt;br /&gt;&lt;br /&gt;I have Fedora 7 installed my laptop, and like most users I have installed various media related applications that are not installed/shipped by Fedora - like MPlayer, Xine, Helix, Real Player. Similarly on the audio front I have Amarok&lt;sup&gt;[1]&lt;/sup&gt;, XMMS. Now these are in addition to the default set of applications - Totem, GNOME-CD, Rhythm Box, Sound Juicer, etc.&lt;br /&gt;&lt;br /&gt;Each application has its pros and cons and I definitely do not wish to get into a competitive analysis of each of these. What I would like to highlight is the cluttering of my menus. Currently my "Sound &amp;amp; Video" menu contains a plethora of applications (which of course I had installed) which pretty much do the same job&lt;sup&gt;[2]&lt;/sup&gt;. See the following image inset for details.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_ng-7LCiQbHE/RqUXe0XEFFI/AAAAAAAAAAo/4TWvgVSLaTs/s1600-h/application-clutter.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://3.bp.blogspot.com/_ng-7LCiQbHE/RqUXe0XEFFI/AAAAAAAAAAo/4TWvgVSLaTs/s320/application-clutter.png" alt="" id="BLOGGER_PHOTO_ID_5090500772031108178" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Now I have been thinking, what if we could collapse all the similar applications into one &lt;span style="font-style: italic;"&gt;extended-menu-item&lt;/span&gt; ?&lt;br /&gt;&lt;br /&gt;What I really mean by that is, what if my "Sound &amp; Video" menu opened into top level &lt;span style="font-style: italic;"&gt;extended-menu-items&lt;/span&gt;. These &lt;span style="font-style: italic;"&gt;extended-menu-items&lt;/span&gt; could be used to execute the &lt;span style="font-style: italic;"&gt;user-configured&lt;/span&gt; actions or could also be used to further drill down into options. The following images should highlight better what I have in mind.&lt;br /&gt;&lt;br /&gt;&lt;table halign="center" width="99%"&gt;&lt;br /&gt;&lt;tbody&gt;&lt;tr valign="top"&gt;&lt;br /&gt;&lt;td&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_ng-7LCiQbHE/RqUhG0XEFGI/AAAAAAAAAAw/t62RjfYX-lA/s1600-h/level-1.png"&gt;&lt;img style="cursor: pointer;" src="http://3.bp.blogspot.com/_ng-7LCiQbHE/RqUhG0XEFGI/AAAAAAAAAAw/t62RjfYX-lA/s320/level-1.png" alt="" id="BLOGGER_PHOTO_ID_5090511354830525538" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/td&gt;&lt;br /&gt;&lt;td&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_ng-7LCiQbHE/RqUhNEXEFHI/AAAAAAAAAA4/ElgxcK4IkuI/s1600-h/level-2.png"&gt;&lt;img style="cursor: pointer;" src="http://4.bp.blogspot.com/_ng-7LCiQbHE/RqUhNEXEFHI/AAAAAAAAAA4/ElgxcK4IkuI/s320/level-2.png" alt="" id="BLOGGER_PHOTO_ID_5090511462204707954" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/td&gt;&lt;br /&gt;&lt;td&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_ng-7LCiQbHE/RqUhnEXEFJI/AAAAAAAAABI/4yYFTBxnF5Q/s1600-h/level-3.png"&gt;&lt;img style="cursor: pointer;" src="http://4.bp.blogspot.com/_ng-7LCiQbHE/RqUhnEXEFJI/AAAAAAAAABI/4yYFTBxnF5Q/s320/level-3.png" alt="" id="BLOGGER_PHOTO_ID_5090511908881306770" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;When I say &lt;span style="font-style: italic;"&gt;user-configured&lt;/span&gt; I am talking more on the lines of configuring your favorite application via one central UI -- like the current "Preferred Applications" UI in the GNOME install.&lt;br /&gt;&lt;br /&gt;I guess my idea does not &lt;span style="font-style: italic;"&gt;really&lt;/span&gt; solve the problem-of-many; it merely hides it, but I do believe that a solution such as the above could bring about an ease of application manageability within the desktop &lt;span style="font-style: italic;"&gt;and of course I would happy with it :)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;What do you think about it?&lt;br /&gt;&lt;br /&gt;&lt;hr /&gt;[1] - Amarok though shipped with the install media is not installed by default on a GNOME desktop&lt;blockquote&gt;&lt;/blockquote&gt;[2] - I am aware that most of the applications that I mentioned primarily target a specific media type, but my point is that this difference would soon be blurred out in the near future as each application tries to improve its support for the other media types.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13416240-3559605733157047019?l=roguexz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://roguexz.blogspot.com/feeds/3559605733157047019/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13416240&amp;postID=3559605733157047019' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13416240/posts/default/3559605733157047019'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13416240/posts/default/3559605733157047019'/><link rel='alternate' type='text/html' href='http://roguexz.blogspot.com/2007/07/problem-of-many.html' title='The Problem of Many'/><author><name>Harsha Ramesh</name><uri>https://profiles.google.com/101260736428539180794</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-2Uk3pqlVj8I/AAAAAAAAAAI/AAAAAAAABQQ/bQ73FHCiSjw/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_ng-7LCiQbHE/RqUXe0XEFFI/AAAAAAAAAAo/4TWvgVSLaTs/s72-c/application-clutter.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13416240.post-3603598108506939931</id><published>2007-05-12T15:39:00.000+05:30</published><updated>2007-05-12T16:04:45.325+05:30</updated><title type='text'>Running Sun Secure Global Desktop (a.k.a. Tarantella) on your Fedora Core desktop</title><content type='html'>&lt;span style="font-family: verdana;"&gt;I have spent hours trying to understand why the Tarantella client does not work on my GNOME install. Every time I run the &lt;span style="font-family: courier new;"&gt;ttwebtop&lt;/span&gt; command, I would see a whole lot of warnings on the console and the end result was that I would not be able to type in anything in the login dialog.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;After a lot of Googling and reading bugs, I chanced upon the possibility of a mismatch in the location of the &lt;span style="font-family: courier new;"&gt;XKeysymDB&lt;/span&gt; file. This file is available as part of &lt;span style="font-family: courier new;"&gt;libX11&lt;/span&gt; which is present on the system by default. The client tries to load up this file from the location &lt;span style="font-family: courier new;"&gt;/usr/openwin/lib/XKeysymDB&lt;/span&gt;, but the file is actually present at &lt;span style="font-family: courier new;"&gt;/usr/share/X11/XKeysymDB&lt;/span&gt;. In order for the application to pick it up, you need to define this new location as an environment variable - &lt;span style="font-family: courier new;"&gt;XKEYSYMDB&lt;/span&gt;. Once you set this variable, the client loads up fine, and I can start working from home again :-)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;As a solution, I have this variable defined in my &lt;span style="font-family: courier new;"&gt;~/.bashrc&lt;/span&gt; file as follows&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;export XKEYSYMDB=/usr/share/X11/XKeysymDB&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;And I can start working from home again :-)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;&lt;span style="font-family: verdana;"&gt;Note: The client in consideration is the Sun Secure Global Desktop version 4.2&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13416240-3603598108506939931?l=roguexz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://roguexz.blogspot.com/feeds/3603598108506939931/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13416240&amp;postID=3603598108506939931' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13416240/posts/default/3603598108506939931'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13416240/posts/default/3603598108506939931'/><link rel='alternate' type='text/html' href='http://roguexz.blogspot.com/2007/05/running-sun-secure-global-desktop-aka.html' title='Running Sun Secure Global Desktop (a.k.a. Tarantella) on your Fedora Core desktop'/><author><name>Harsha Ramesh</name><uri>https://profiles.google.com/101260736428539180794</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-2Uk3pqlVj8I/AAAAAAAAAAI/AAAAAAAABQQ/bQ73FHCiSjw/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13416240.post-4868558565608877267</id><published>2007-01-29T23:20:00.000+05:30</published><updated>2008-11-13T15:55:40.884+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java Netbeans Plugin Module'/><title type='text'>Necessity is the mother of all inventions</title><content type='html'>&lt;span style="font-family:verdana;"&gt;Who ever said it, couldn't have been more right. I find myself building utilities and applications everytime I don't find the right one :) .. During the past few days, I built a similar utility plugin and I thought I might as well share it with the rest of the world.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;A little background... I work on a myriad set of applications and technologies, and this requires me to keep doing a lot of activities on different applications parallely. So off-late I have been working on providing a JSF component that pulls in a user's presence information from a backend RTC server. In this case the backend happens to be Microsoft's Live Communication Server. As you might have guessed, I have a .NET component that is doing all the talking with the LCS instance and this component exposes its features as a set of WebServices which are then consumed by the Java layer and published to the application via a JSF component. No points for anyone guessing that this can be a mess to handle all alone :-p&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;Everytime I need to perform some quick and dirty work, &lt;/span&gt;&lt;a style="font-family: verdana;" href="http://www.netbeans.org/"&gt;Netbeans&lt;/a&gt;&lt;span style="font-family: verdana;"&gt; &lt;/span&gt;&lt;span style="font-weight: bold; font-family: verdana;"&gt;is&lt;/span&gt;&lt;span style="font-family: verdana;"&gt; the IDE of choice. One day I was trying out something on similar lines, I needed to import only a subset of the Java classes into a project. And I knew that the IDE did not present me a feature where I could pick and choose. The only option I had was to copy the files over manually outside the IDE and then delete those that I didn't require. &lt;/span&gt;&lt;span style="font-weight: bold; font-family: verdana;"&gt;That&lt;/span&gt;&lt;span style="font-family: verdana;"&gt; can be quite painful at times! I dearly wished I had an option where I could look at the files being imported in a tree structure, where I could just (un)select the files I wanted.... So I built myself one of those things :-D ... Here is a screenshot of the module in action..&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_ng-7LCiQbHE/Rb45xKmhyvI/AAAAAAAAAAM/iP_Rev4J-yY/s1600-h/ImportSourcesInAction.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://2.bp.blogspot.com/_ng-7LCiQbHE/Rb45xKmhyvI/AAAAAAAAAAM/iP_Rev4J-yY/s320/ImportSourcesInAction.png" alt="" id="BLOGGER_PHOTO_ID_5025517751014378226" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;As a part of my work, I ran into a hard-to-trace, intermittent bug that would cause the .NET layer to crash once in a while. One rather good thing that I did do was use Log4Net's logger within the entire .NET code. So I whipped out my IDE of choice, built the test-bed and began the debugging. Everything was fine and going smooth, except that I had to switch between two applications to keep monitoring the output. That is when I though... "How I wish I had a module that could tail this file and show me the data within the IDE itself!". I took a measure of the expected effort, realized it wasn't much, went ahead and built myself exactly what I wanted. Check it out in action....&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_ng-7LCiQbHE/Rb4-V6mhywI/AAAAAAAAAAU/iMGV1eroKo4/s1600-h/TailModuleInAction.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://1.bp.blogspot.com/_ng-7LCiQbHE/Rb4-V6mhywI/AAAAAAAAAAU/iMGV1eroKo4/s320/TailModuleInAction.png" alt="" id="BLOGGER_PHOTO_ID_5025522780421081858" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;Like what you see? Get it &lt;/span&gt;&lt;a style="font-family: verdana;" href="http://roguexz.googlepages.com/netbeans"&gt;here&lt;/a&gt;&lt;span style="font-family: verdana;"&gt;.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;Thats all for now, later!&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13416240-4868558565608877267?l=roguexz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://roguexz.blogspot.com/feeds/4868558565608877267/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13416240&amp;postID=4868558565608877267' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13416240/posts/default/4868558565608877267'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13416240/posts/default/4868558565608877267'/><link rel='alternate' type='text/html' href='http://roguexz.blogspot.com/2007/01/necessity-is-mother-of-all-inventions.html' title='Necessity is the mother of all inventions'/><author><name>Harsha Ramesh</name><uri>https://profiles.google.com/101260736428539180794</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-2Uk3pqlVj8I/AAAAAAAAAAI/AAAAAAAABQQ/bQ73FHCiSjw/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_ng-7LCiQbHE/Rb45xKmhyvI/AAAAAAAAAAM/iP_Rev4J-yY/s72-c/ImportSourcesInAction.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13416240.post-7902720395747961270</id><published>2007-01-20T01:52:00.000+05:30</published><updated>2007-01-20T03:14:02.989+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><category scheme='http://www.blogger.com/atom/ns#' term='GroupLayout'/><category scheme='http://www.blogger.com/atom/ns#' term='Gotcha'/><title type='text'>Java6: GroupLayout and a small gotcha</title><content type='html'>&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;The new layout manager, &lt;span style="font-style: italic;"&gt;GroupLayout&lt;/span&gt;, which is part of the JavaSE 6 bundle is great and coupled with Netbeans' Matisse component, makes a killer combination. Today I would like to talk about an issue that I ran into and hopefully would be able to help others running into the same issue.&lt;br /&gt;&lt;br /&gt;Anyways, if you try hand-coding this layout for your components, there is a rather subtle thing to remember. In Java 5, if you wanted to add a component to a container like JPanel, you would do something like:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 204);"&gt; ....&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 204);"&gt; JPanel jp = new JPanel();&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 204);"&gt; JButton button = new JButton(...);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 204);"&gt; jp.getContentPane().add(button);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 204);"&gt; ....&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;The key point to notice is that you would explicitly get hold of the content pane and then add the component to it. Now with Java 6, the good old ways of adding a component directly to the parent are back (which internally ensures that the component is added to the content pane), i.e., the same example above could be simplified as:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 204);"&gt; jp.add(button);&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;All this fine and nice. Now when using &lt;span style="font-style: italic;"&gt;GroupLayout&lt;/span&gt;, the code might look as follows (in Java 5):&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 204);"&gt; GroupLayout layout = new GroupLayout(jp.getContentPane());&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 204);"&gt; jp.getContentPane().setLayout(layout);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 204);"&gt; ... // add the component to the layout&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Since I was working with Java 6, I decided to use the simplified notation and did the following:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 204);"&gt; GroupLayout layout = new GroupLayout(jp);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 204);"&gt;  jp..setLayout(layout);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 204);"&gt;  ... // add the component to the layout&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;And was I in for a shock when I ran the code !!! I kept seeing the following stack trace on my screen :-O&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt; Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;   GroupLayout can only be used with one Container at a time&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;         at javax.swing.GroupLayout.checkParent(GroupLayout.java:1095)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;         at javax.swing.GroupLayout.invalidateLayout(GroupLayout.java:987)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;         ......&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;It took me a while (&lt;span style="font-style: italic;"&gt;which involved going through the source-code of GroupLayout&lt;/span&gt;) to figure out that the problem was actually with the way I am initializing the damn &lt;span style="font-style: italic;"&gt;GroupLayout&lt;/span&gt; instance! The layout instance considers that it is being applied to the container ( &lt;span style="font-style: italic;"&gt;JPanel&lt;/span&gt; in our case) whereas, the &lt;span style="font-style: italic;"&gt;setLayout()&lt;/span&gt; method delegates the call to the content pane. And &lt;span style="font-style: italic;"&gt;GroupLayout&lt;/span&gt; does a check to see that the host and owner are the same, if not, it throws a rather undecipherable exception like the one above. The key to getting it run was just simply to pass the content pane to the constructor of the &lt;span style="font-style: italic;"&gt;GroupLayout&lt;/span&gt; instance.&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 204);"&gt; GroupLayout layout = new GroupLayout(jp.getContentPane());&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 204);"&gt;  jp..setLayout(layout);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 204);"&gt;  ... // add the component to the layout&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;This experiment sure was good learning, but it would have been great if the implementation of &lt;span style="font-style: italic;"&gt;GroupLayout&lt;/span&gt; threw a more meaningful exception stating the obvious rather than leaving us to figure out the obscure bits!&lt;br /&gt;&lt;br /&gt;Thats all for now.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13416240-7902720395747961270?l=roguexz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://roguexz.blogspot.com/feeds/7902720395747961270/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13416240&amp;postID=7902720395747961270' title='11 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13416240/posts/default/7902720395747961270'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13416240/posts/default/7902720395747961270'/><link rel='alternate' type='text/html' href='http://roguexz.blogspot.com/2007/01/java6-grouplayout-and-small-gotcha.html' title='Java6: GroupLayout and a small gotcha'/><author><name>Harsha Ramesh</name><uri>https://profiles.google.com/101260736428539180794</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-2Uk3pqlVj8I/AAAAAAAAAAI/AAAAAAAABQQ/bQ73FHCiSjw/s512-c/photo.jpg'/></author><thr:total>11</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13416240.post-6740473117878245238</id><published>2007-01-20T00:47:00.000+05:30</published><updated>2007-01-20T00:52:53.209+05:30</updated><title type='text'>Google Pages</title><content type='html'>&lt;span style="font-family: verdana;"&gt;Since I am adding an article on to this blog after a really long time, I just thought I would mention about &lt;a href="http://roguexz.googlepages.com"&gt;my small space&lt;/a&gt; on the Google Pages site. I should say that I am seriously impressed with the simplicity of the application.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;Anyways have a look at it cos that is where I am pushing all my spare-time projects.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13416240-6740473117878245238?l=roguexz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://roguexz.googlepages.com' title='Google Pages'/><link rel='replies' type='application/atom+xml' href='http://roguexz.blogspot.com/feeds/6740473117878245238/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13416240&amp;postID=6740473117878245238' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13416240/posts/default/6740473117878245238'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13416240/posts/default/6740473117878245238'/><link rel='alternate' type='text/html' href='http://roguexz.blogspot.com/2007/01/google-pages.html' title='Google Pages'/><author><name>Harsha Ramesh</name><uri>https://profiles.google.com/101260736428539180794</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-2Uk3pqlVj8I/AAAAAAAAAAI/AAAAAAAABQQ/bQ73FHCiSjw/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13416240.post-114427236846025662</id><published>2006-04-06T02:35:00.000+05:30</published><updated>2006-04-07T13:05:30.900+05:30</updated><title type='text'>Getting your ZeroG installer to work on your latest and greatest Linux distro</title><content type='html'>Certain versions of the ZeroG installers have a serious issue when installing software on the Linux desktops. You start seeing a variety of errors like&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;color:red"&gt;"/bin/ls: error while loading shared libraries: librt.so.1: cannot open shared object file: No such file or directory"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt; ... and many others, while you can very clearly see that the library files are present on the file system.&lt;br /&gt;&lt;br /&gt;I face the same issue while installing Oracle Calendar desktop client on my FC 5 Linux distro. When i started googling for the errors encountered, i started to see a lot of rather half-answered posts which did not work for me. Sufficient enough to piss me off, i started debugging the installer by setting the debug param to true.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;color:red"&gt;&gt;LAX_DEBUG=1 sh cal_linux&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This gave me some leads and i finally figured that there was some kind of work around being applied because the installer kept thinking that the JVM being used had a version less than 1.4, which was inturn caused by the fact that the installer was setting the LD_ASSUME_KERNEL variable to 2.2.5 ... &lt;br /&gt;&lt;br /&gt;The version information was pulled of from a set of variables called v_major, v_minor, etc.. Fix these values and you are good to go :)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;color:red"&gt;&gt;v_minor=4 sh cal_linux&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;voila!! the installation goes through smoothly :)&lt;br /&gt;&lt;br /&gt;If you would like to further customize the installation by specifying the JDK to be used, then you could achieve the same by the following command:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;color:red"&gt;&gt;v_minor=5 sh cal_linux LAX_VM /usr/java/jdk1.5.0_06/bin/java&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Hope that helps you folks out there.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13416240-114427236846025662?l=roguexz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://roguexz.blogspot.com/feeds/114427236846025662/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13416240&amp;postID=114427236846025662' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13416240/posts/default/114427236846025662'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13416240/posts/default/114427236846025662'/><link rel='alternate' type='text/html' href='http://roguexz.blogspot.com/2006/04/getting-your-zerog-installer-to-work.html' title='Getting your ZeroG installer to work on your latest and greatest Linux distro'/><author><name>Harsha Ramesh</name><uri>https://profiles.google.com/101260736428539180794</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-2Uk3pqlVj8I/AAAAAAAAAAI/AAAAAAAABQQ/bQ73FHCiSjw/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13416240.post-114389905379474084</id><published>2006-04-01T18:34:00.000+05:30</published><updated>2006-04-01T19:14:13.903+05:30</updated><title type='text'>Connecting your Nokia 2112 with your Fedora Core 5</title><content type='html'>Here is a quick and dirty hack for connecting your Nokia 2112 CDMA phone to your linux box as an internet modem.&lt;br /&gt;&lt;br /&gt;My hardware / software details:&lt;br /&gt;* Fedora Core 5&lt;br /&gt;* Nokia 2112 CDMA phone&lt;br /&gt;* CA-42 cable.&lt;br /&gt;&lt;br /&gt;Upon connecting your phone the usual response in the messages log is:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;drivers/usb/class/cdc-acm.c: This device cannot do calls on its own. It is no modem.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;None the less, register it as a modem.&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://photos1.blogger.com/blogger/1968/443/1600/modem.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;" src="http://photos1.blogger.com/blogger/1968/443/320/modem.jpg" border="0" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Now go ahead and create a new internet connection based on this modem. Specify all the connection information (username, password, dial in number, etc.)&lt;br /&gt;&lt;br /&gt;Now the last step :)&lt;br /&gt;Open up your &lt;span style="font-style:italic;"&gt;/etc/wvdial.conf&lt;/span&gt; file. In here you need to get rid of the +FCLASS option. Just remove this word from the init parameters, and that is it.&lt;br /&gt;&lt;br /&gt;Now you should be able to connect to your internet :)&lt;br /&gt;&lt;br /&gt;Have fun!!&lt;br /&gt;&lt;br /&gt;p.s.: At times the wvdial.conf file keeps getting overriden. You will notice this everytime you get an error code of 8. If you get this error code, then just repeat the last step of removing the +FCLASS statement.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13416240-114389905379474084?l=roguexz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://roguexz.blogspot.com/feeds/114389905379474084/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13416240&amp;postID=114389905379474084' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13416240/posts/default/114389905379474084'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13416240/posts/default/114389905379474084'/><link rel='alternate' type='text/html' href='http://roguexz.blogspot.com/2006/04/connecting-your-nokia-2112-with-your.html' title='Connecting your Nokia 2112 with your Fedora Core 5'/><author><name>Harsha Ramesh</name><uri>https://profiles.google.com/101260736428539180794</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-2Uk3pqlVj8I/AAAAAAAAAAI/AAAAAAAABQQ/bQ73FHCiSjw/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13416240.post-112020829094373780</id><published>2005-07-01T13:51:00.000+05:30</published><updated>2005-07-01T14:28:10.966+05:30</updated><title type='text'>Good news for Java developers...</title><content type='html'>I should say i am pretty impressed with the new happenings targeting J2EE and opensource.&lt;br /&gt;&lt;br /&gt;First we have &lt;a href="http://www.netbeans.org/kb/articles/matisse.html"&gt;Project Matisse&lt;/a&gt;, the next generation of Java Desktop UI designer from &lt;a href="http://www.netbeans.org"&gt;Netbeans&lt;/a&gt;, which has support for component edge alignment and a lot more. Dont forget to check out the really cool &lt;a href="http://www.netbeans.org/files/documents/4/475/matisse.html"&gt;flash demo&lt;/a&gt;. Everything that you see in the demo is thanks to a new layout manager which currently resides &lt;a href="https://swing-layout.dev.java.net/"&gt;here&lt;/a&gt; and will hopefully become part of the JDK in future releases.&lt;br /&gt;&lt;br /&gt;Next we hear that Oracle is contributing to the opensource (&lt;a href="http://www.oracle.com/corporate/press/2005_jun/06-28-05%20jdev%20free%20jsf.html"&gt;check out the press release&lt;/a&gt;), namely:&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;JDeveloper 10g is now free!!&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Oracle will contribute to the &lt;a href="http://myfaces.apache.org/"&gt;MyFaces&lt;/a&gt; project.&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Oracle will give its implementation of EJB 3.0 to the JCP as a reference implementation.&lt;/li&gt;&lt;br /&gt;&lt;li&gt;JDev like UI designers coming to the Eclipse community!!&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;Also check out the &lt;a href="http://wcdata.sun.com/webcast/archives/VIP-1981/#day2"&gt;presentation&lt;/a&gt; made by Oracle Senior VP Thomas Kurian @ JavaOne 2006. Some really impressive demos, which BTW use ADF Faces (Oracle's implementation of JSF).&lt;br /&gt;&lt;br /&gt;All these new changes are more than welcome and will definitely help the Java community on the whole =D&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13416240-112020829094373780?l=roguexz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://roguexz.blogspot.com/feeds/112020829094373780/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13416240&amp;postID=112020829094373780' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13416240/posts/default/112020829094373780'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13416240/posts/default/112020829094373780'/><link rel='alternate' type='text/html' href='http://roguexz.blogspot.com/2005/07/good-news-for-java-developers.html' title='Good news for Java developers...'/><author><name>Harsha Ramesh</name><uri>https://profiles.google.com/101260736428539180794</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-2Uk3pqlVj8I/AAAAAAAAAAI/AAAAAAAABQQ/bQ73FHCiSjw/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13416240.post-111901290344728756</id><published>2005-06-17T18:23:00.000+05:30</published><updated>2005-07-03T19:58:49.916+05:30</updated><title type='text'>On Synchronizing your Mozilla applications' L&amp;F with WindowsXP Silver Color Scheme</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://photos1.blogger.com/blogger/1968/443/1600/mozilla_modern_after.jpg"&gt;&lt;img style="float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;" src="http://photos1.blogger.com/blogger/1968/443/320/mozilla_modern_after.jpg" border="0" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://photos1.blogger.com/blogger/1968/443/1600/thunderbird_default_after.jpg"&gt;&lt;img style="float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;" src="http://photos1.blogger.com/blogger/1968/443/320/thunderbird_default_after.jpg" border="0" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;The WindowsXP's Silver color scheme sure did make a very nice impression on my visual senses. I immediately changed my default color scheme to Silver. Everything was fine till i accessed my browser (Mozilla) and mail client (Thunderbird). These applications just wouldnt fit in my new color scheme. So i decided to see if i could find any themes that would make my applications look less conspicous when compared to the others. Thankfully, i did find &lt;a href="http://www.polinux.upv.es/mozilla/"&gt;plastikzilla&lt;/a&gt; themes which did the trick for me.&lt;br /&gt;&lt;br /&gt;The icons are a little jazzy, but then i guess, the applications look a little more in sync now than before.&lt;br /&gt;&lt;br /&gt;Let me know what you ppl think about it.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13416240-111901290344728756?l=roguexz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://roguexz.blogspot.com/feeds/111901290344728756/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13416240&amp;postID=111901290344728756' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13416240/posts/default/111901290344728756'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13416240/posts/default/111901290344728756'/><link rel='alternate' type='text/html' href='http://roguexz.blogspot.com/2005/06/on-synchronizing-your-mozilla.html' title='On Synchronizing your Mozilla applications&apos; L&amp;F with WindowsXP Silver Color Scheme'/><author><name>Harsha Ramesh</name><uri>https://profiles.google.com/101260736428539180794</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-2Uk3pqlVj8I/AAAAAAAAAAI/AAAAAAAABQQ/bQ73FHCiSjw/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13416240.post-111790108025472202</id><published>2005-06-04T21:14:00.000+05:30</published><updated>2005-07-03T20:17:14.196+05:30</updated><title type='text'>Jumpstarting your JPDK portlets with DBPreferenceStore</title><content type='html'>JPDK Portlets are easy and fun to create. All you need is a neat idea, and a feasible solution to portletize it. Not all is fun though. There are a few caveats, which may not be visible right at the beginning. To know what exactly I am talking about, consider the following case study.&lt;br /&gt;&lt;br /&gt;&lt;div style="margin-left: 40px;"&gt;&lt;br /&gt;Rogue is a very innovative developer. One fine day, he gets a brilliant idea to portletize a very popular application. He publishes his portlet, and gets a very wide appreciation. The portlet is deployed on a major production site, which has thousands of employees using and customizing it, to suit their needs. The customer comes to Rogue with a very desired enhancement, and Rogue implements it and provides the new version to the customer.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;But&lt;/span&gt;, Rogue had designed the portlet to use &lt;span style="font-style: italic;"&gt;FilePreferenceStore&lt;/span&gt; for storing the user preferences. The customer, unaware about this detail, goes ahead and re-deploys the provider on his production system, and boom..... all the user customizations have been erased!!&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Now&lt;/span&gt;, the customer, rather frantic, pulls the archived version, searches the web and identifies that he needs to copy the customizations folder back to the new deployment. Things finally work, and the customer realizes his folly, and learns his lesson the hard way.&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Though the above case study is fictitious, it is a very common scenario that happens with people who are not well versed with the JPDK framework. The above scenario could be avoided if only the developer (Rogue here) had implemented the portlet solution to utilize database based preference store.&lt;br /&gt;&lt;br /&gt;I definitely agree that it is easier to use the file system based preference store, as there are no additional configurations to perform when deploying the provider, but a little additional effort can go a long way. Using DBPreferenceStore for storing user preferences translates to the following:&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;   &lt;li&gt;User preferences are independent of the provider deployment&lt;/li&gt;   &lt;li&gt;Easy upgrade / migration path – new portlet version, new container, different m/c, etc.&lt;/li&gt;   &lt;li&gt;Technically, you could support high-availability for these portlets, by deploying them on multiple containers, and sharing the sessions across the containers.&lt;/li&gt; &lt;/ul&gt;&lt;br /&gt;, And other benefits that I have missed out here.&lt;br /&gt;&lt;br /&gt;Setting up a DBPreferenceStore is as simple as deploying an .ear file. All you need to do is:&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;Install the JPDK preference store schema on a database.&lt;/li&gt;&lt;li&gt;Create a datasource within the application server container which points to the above created schema.&lt;/li&gt;&lt;li&gt;Make a reference to this datasource in your portlet’s provider.xml file.&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div style="margin-left: 40px;"&gt;Sample Example:&lt;br /&gt;1. Provider.xml file configured to use FilePreferenceStore&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;&amp;lt;preferenceStore class="oracle.portal.provider.v2.preference.FilePreferenceStore"&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;lt;name&gt;EasyAccessPrefStore&amp;lt;/name&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;lt;useHashing&gt;true&amp;lt;/useHashing&gt;&lt;br /&gt;&amp;lt;/preferenceStore&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;2. Provider.xml file configured to use DBPreferenceStore&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;&amp;lt;preferenceStore class="oracle.portal.provider.v2.preference.DBPreferenceStore"&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;lt;name&gt;EasyAccessPrefStore&amp;lt;/name&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;lt;connection&gt;jdbc/dbprefstore2&amp;lt;/connection&gt;&lt;br /&gt;&amp;lt;/preferenceStore&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;I am among the few people who are skeptical about working on the database, and prefer to work as much as possible via the web-based interfaces. Hence, I came up with a utility web-application (&lt;span style="font-style: italic;"&gt;DbPrefStoreUtil&lt;/span&gt;), which installs the database schema required for DBPreferenceStore, on a remote database. This application is available on &lt;a href="http://portalstudio.oracle.com/servlet/page?_pageid=2112&amp;_dad=ops&amp;amp;_schema=OPSTUDIO&amp;_mode=3"&gt;Knowledge Exchange&lt;/a&gt; under my personal folder (Search for contributor: &lt;span style="font-style: italic;"&gt;harsha.ramesh&lt;/span&gt;). I have also included a detailed document on how one can setup a datasource via the OracleAS Enterprise Manager or the OC4J Admin Console on the standalone OC4J.&lt;br /&gt;&lt;br /&gt;So the next time you decide to implement a portlet solution, try and see if you could provide a solution based on DBPreferenceStore.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;Screenshots:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://photos1.blogger.com/blogger/1968/443/1600/page1.jpg"&gt;&lt;img style="float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;" src="http://photos1.blogger.com/blogger/1968/443/200/page1.jpg" border="0" alt="" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://photos1.blogger.com/blogger/1968/443/1600/page2.jpg"&gt;&lt;img style="float:left; margin:0 0 10px 10px;cursor:pointer; cursor:hand;" src="http://photos1.blogger.com/blogger/1968/443/200/page2.jpg" border="0" alt="" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13416240-111790108025472202?l=roguexz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://roguexz.blogspot.com/feeds/111790108025472202/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13416240&amp;postID=111790108025472202' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13416240/posts/default/111790108025472202'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13416240/posts/default/111790108025472202'/><link rel='alternate' type='text/html' href='http://roguexz.blogspot.com/2005/06/jumpstarting-your-jpdk-portlets-with.html' title='Jumpstarting your JPDK portlets with DBPreferenceStore'/><author><name>Harsha Ramesh</name><uri>https://profiles.google.com/101260736428539180794</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-2Uk3pqlVj8I/AAAAAAAAAAI/AAAAAAAABQQ/bQ73FHCiSjw/s512-c/photo.jpg'/></author><thr:total>3</thr:total></entry></feed>
