Yann's Blog - Software and hardware

April 29, 2007

How not to ask a question…

Filed under: Other Stuff,Software — Yann @ 11:43 pm

Hoax maybe, but it is funny. I present you with a good example of how not to ask a question.

http://forums.oracle.com/forums/thread.jspa?threadID=499980&start=0&tstart=0

One more screenshot

Filed under: IRM 2,Software — Yann @ 1:51 am

Just a quicky. I’m getting better at using Tapestry, and really speeding up web page creation.

Here is the very badly named Enumerateable Editor (think IRM 1 dropdown). Note that enumerates are completely definable – you’re not just limited to the builtins.

PS: Taking naming suggestions.

enumerates.jpg

April 23, 2007

IRM 2: Quick Screenshot Tour

Filed under: IRM 2,Software — Yann @ 10:37 pm

I’m giving a small sneak peak at the IRM2 skeleton user interface, just to show you some of the directions I’m taking with it.

Here is the main page.
mainpage.jpg

First things first, the IRM landing page is centered around Users, not Technicians. IRM has been like this since the early introduction of the Request Help functionality, and I wish to continue this tradition. This is only a rough draft, and more work could be done to make components more readable and user friendly. Also, I’m showing off the Tabs (all Tapestry components) and general look, which is all XHTML. Adding in the Lite stylesheet (not yet implemented, but it has a print one) will allow it to be viewable on portable devices with ease.

User handling:
useredit.jpg
Similar to the above example. I haven’t fleshed out all of the tabs in time for this screenshot, but the user manager is mostly functional, including a working role model. No user interface exists for fleshing out Schemas yet, but thats next.

Here we show off some of the neat error handling:
baduser.jpg
Contextual error handling is very powerful. Here, we detected a bag login, and have flagged the offending field (though in theory it could be either username or password, though showing which would be leaking confidential information).

More on IRM authentication later. I am planning to of course support multiple authentication models, via JAAS (includes Active Directory, LDAP, PAM) in addition to builtin user databases.

April 15, 2007

The IRM2 Guiding Principles, Part I

Filed under: IRM 2,Software — Yann @ 10:22 pm

In the process of redesigning IRM 2, I’ve been developing a list of principles of what IRM 2 is about, and what the interface should present to the user.

  • Normal users should not feel intimidated: The problem reporting section of IRM should be as fluid and easy to use as possible. This is not bugzilla.
  • IRM 2 should be extendable: The old single function computers with its fixed fields is a thing of the past.
  • IRM 2 should be clean: A lot of functionality in IRM 1 could be boiled down to a kludgy hack. While this improved under subsequent releases, it wasn’t clean.
  • And more…. I’ll be adding more, but also feel free to suggest more principles.

April 12, 2007

Tapestry 5: Rendering a Block in a page

Filed under: IRM 2,Java,Software — Yann @ 7:59 pm

This one took awhile to figure out. In Tapestry, if a component is passed to another component (such as your main page layout component), you need to pass it as a Block parameter. The problem with blocks, there is no quick way to render them. You can use the @AfterRenderBody rendering stage annotation, but this gives you very limited flexibility in where the object will end up (or you make kludgy hacks to put this together).

This quick little component can solve all those problems. I present you Render.java. This incredible class is appearing in IRM 2.

Update: You can also use the builtin Tapestry component named Delegate.

<t:delegate to="block:foo"/>

But if you still prefer, you can use this Component:


package net.stackworks.irm.web.components;
import org.apache.tapestry.annotations.Parameter;



/**
 * Simple component which will render a Block in a page.
 * To use: - Make sure your Block has a defined getter method (getSidebar()) which returns the Block
 *         - Do a <t:render value="sidebar"/> <!-- this calls getSidebar() -->
 *         - Enjoy your rendered Block
 * @author Yann Ramin
 *
 */
public class Render {
	@Parameter(required = true)
	private Object _value;

	/**
	 * Returns the Object, which allows another object (presumably, a block) to render
	 * first.
	 *
	 * @return Object to render
	 */
	Object beginRender() {
		return _value;
	}
}

April 11, 2007

Work on IRM 2 Progresses, Web Framework, and Logo

Filed under: IRM 2,Java,Software — Yann @ 11:35 pm

Just a quick update that yes, indeed, work is continuing.

I have a full Tapestry 5 based web framework, which currently supports abstract templating and other functionality with Tapestry components. I also have a full Tapestry->EJB3.0 call system developed (just need to actually go write the Beans now :) ), and have started mapping the data model for Users, CRI (Cross Reference Identifier, the new name of the IRM2Python GUID, more on this later), and Schemas.

One tricky part is developing the JAAS authentication scheme. I’m working through some substitutes, but also expect to support non-JAAS simple database authentication (at least for now).

I also had a chance to do a little work in Illustrator on the visual front, developing a new logo for IRM2. See below for an idea of what it looks like. Its designed to emphasize the connected nature of IRM, from the trouble tickets to the AssetMesh. Feel free to leave comments.

More later!

irm2idea2.png

April 3, 2007

Announcing IRM 2, MkIII

Filed under: IRM 2,Java,PHP,Python,Software — Yann @ 4:13 pm

I’ve done a lot of thinking, some non-thinking, talking to people, users, and some (well ok, a lot) of prototyping. As a result of all that work, I have decided to revive and continue to work on a new IRM 2, the re-architectured Information Resource Manager application. New features, new code base, but same target, you, the dedicated IRM users.

I’ll get into all the details of what IRM 2 is going to do for you, but I’d first like to share some history with you about where IRM has come from, the previous short attempts at IRM 2, and how its influenced my current direction.

In the beginning was the command line.

Then came IRM. It was quite literally the second piece of software I wrote as a web application. It used the trendy new (well at the time) PHP 3.0. MySQL 3.22 was the in thing. The whole LAMP architecture was just in its infancy.IRM was created way back when (1999 for those keeping score) for my high school. It allowed people to post problems (using the odd nomenclature “Tracking”) about computers that were in its database. The database seed script that comes with IRM reflects these early beginnings, including the computer named Ants and the Library Back Room.IRM went through several versions, 0.5, 0.9, 0.9b, 0.9c, etc. Around the 1.0 release, a really great guy from the University of Tulsa , Keith Schoenefeld started contributing to IRM. He cleaned up a ton of my early major misguided attempts at software development (turns out ENDIF; is kinda not cool), and over time provided new functionality such as the FAQ and Knowledgebase system.

IRM grew in leaps and bounds, adding the Software subsystem, the Reports subsystem, and then Networking. Patch submissions from Mica Curie also started, and some key features were added to the project.
In 2004-2005 another contributer joined the project, Matt Palmer. Not only did he make a nice Debian package for IRM (apt-get install irm is so much easier :) ), he allowed for the full translation of the IRM source. Version 1.4 and then 1.5 were released under his guidance. By that time I had started full time at UC Davis, so my time was becoming slim catching up with all those college things. Matt graciously took up the maintainer role for IRM 1.5 and released several versions, culminating in 1.5.8-dev, the current recommended version (or 1.5.7 for the squeemish).

During all of those time, I became increasingly dissatisfied with the PHP structure that IRM was running on. Its underpinnings were still dating back from 1999, PHP 3.0 code, strange code reuse, no abstract templating, and a fixed database structure. In 2002 I attempted a partial rewrite of IRM called IRT (Information Resource Tracker) in a custom mod_perl framework (the job I had at the time was developing a custom mod_perl application for footagesearch.com – still used to this day, though its had numerous updates). It failed miserably. I can’t even find the source code.

Next up was IRM 2.0 in Python. It included some new ideas for abstract schemas and relational linking. Its asset manager actually worked. It was developed in a custom Python application server Cymbeline, which was probably a bad move as I was spending more time developing Cymbeline than IRM 2. This also fell by the wayside during those college years. But it was a great learning exercise in what worked and what didn’t.

And thats the history in a summary. If you were a contributor (I know I left a bunch out, especially when I was not active maintainer :( ), let me know and I’ll add you to the history :)

Since working on IRM, my life has changed a lot. I graduated high school (yes, IRM is that old), graduated college, and got a good “real job.” More importantly, I’ve built lots of real software in between, for personal use, research work, as well as commercial contract work. I’ve been around the block a few times, and tried on a large number of hats, all of which will reflect themselves in the design and implementation of IRM 2.


So, that gives us IRM 2, Mk III. The third incarnation of IRM2. And better, more powerful, and very different from the rest. Read on.

To begin, its still a web application. IRM is never going to be solely a desktop application, though the line between web application and desktop application is really blurring these days.

It utilizes Java. I can already hear the complaints trickling in. I’ve grown quite fond of Java at my day job, and really recognized what strengths it brings to the enterprise web application front. The Sun Java VM is now also Open Source, with the rest of the classpath libraries becoming Open Source in the near future. There are multiple Java vendors, and Java does really run everywhere these days. Java is also very quick, and the framework provided with it are top-notch. A considerably worse choice would be to move to .NET and ASP.NET.

It utilizes Enterprise JavaBeans 3.0 . These are not the EJBs of 2.0 and 1.0 days, which were, to put it mildly, horrible. EJB3.0 is actually a joy to work with, and brings with it an amazing amount of functionality, such as transactional support, security, and scalability.

It utilizes the Java Persistence API 1.0, along with Hibernate when the JPA doesn’t go far enough. Both of these technologies are wonderful to use, and greatly speed development (and makes maintenance much easier).

For the presentation layer, Apache Tapestry won out over other packages such as Struts2, JSF, and Spring. While I prefer to use Java Community standards whenever possible, I compromised for Tapestry as it is a wonderful (though not well known) package.

All of this can successfully run in the JBoss Application Server, making deployment a snap on any platform. It can also be run in any mostly-EJB3.0 compliant container, though drop-in portability will not be a focus of the first releases. By utilizing Java Persistence, we will automatically support any JDBC compliant database server, from good old MySQL, Oracle, PostgreSQL, Microsoft SQL, DB2, to the built in HSQLDB.

I am working on a master roadmap which lays out our development cycles and sets goals. Look here in the next few days for updates on how its going to look.

In short, IRM 2 will feature:

  • The asset manager interface from PythonIRM2. User definable schemas for any device, item, location, or thought you can think of. Fully linkable schemas let you associate users, software, locations, peripherals, and potted plants together into an AssetMeshtm. Since everything is associated in real life, why not let your asset manager let you express that?
  • Trouble ticket system to manage user problems, your own problems, and let you keep your head on straight. Includes both user ticketing, technician ticketing, and phone support ticketing.
  • User self help system, bringing back the FAQ, user trouble reporting, and other features which made IRM into such a successful integrated application for the IT helpdesk.
  • And more!

To bright futures ahead, but remembering the beginnings…

SVK

Filed under: Software — Yann @ 3:11 pm

If you’re a Subversion user and have never tried SVK, I strongly advise you to at least give it a shot. In short, its a distributed SVN tool, which allows you to work in a distributed fashion with existing SVN servers (yes, no server side tools needed!). It has strong support for star merging (which is not possible in normal SVN) and patch generation and updating for non-comitters.

Powered by WordPress