Adams Bros Blog

6Apr/112

Liberal Party Woes

Author: Trenton

The Liberals have posted their "platform", and it's not looking very good.  I will critique it below.

"Our platform in this election has one overriding objective: to make equal opportunity a reality for every Canadian, whether you live in a big city, a small town, a remote community, a farm or a fishing village."

The only way to truly make that happen, is low taxes, and to stop thinking that we need to put in place convoluted social benefits for a few.

There is one primary thing that disgusts me about the Communist, err, um, Liberal party of Canada. If you look at almost all of the ideas they have, they are rarely, if ever, "universal". The social benefits they propose, apply to specific people of their choosing. Basically, they tend to create social benefits that benefit a special group. They present them in such away that makes the public think they are good, without a second thought; that is called "propaganda".  A good example of this is their child care plan. The child care plan that the Liberals would like to put in, benefits those with dual income only, and gives the stay at home mom only two options...

  1. Stay at home, raise your children, and don't receive the child care benefit
  2. Get a job, receive the benefit, and leave your children at day care
1Jan/112

Java LDAP Persistence API

Author: Trenton

I've started a project called LDAP Persistence API for Java, or LPA for short. It is a Java framework for interacting with LDAP entries using pure Java objects. It is based on Java annotations.

It is no were near to being complete, but the query functionality is working. I still have a lot of work to do, in order to make it be able to persist existing annotated Java objects to LDAP.  I'm likely to create some sort of intermediate step, until I can finish that.

8Dec/102

Java Array Reflection

Author: Trenton

In this article we talk about reflection with arrays in Java. Java array reflection is not difficult, but it can be trying to figure it out without a good example. Ultimately, what I needed was a way of injecting information into an array field. Of course, you need to inject the same "type" of array as the field is. That is what can be difficult to figure out, if you've never done it before.

In this example, I am using Java 1.6. I won't bother determining what is, or is not supported in prior versions of the Java language.

10Nov/100

tcpdfilter – tcpdump filter

Author: Trenton

To anyone looking for this page. I noticed that some people had searched for my tcpdfilter program as recent as 2007. I had assumed that fresh meat would keep it around forever, so I just left it there, and forgot about it. Seeing it is now gone, I got to thinking, and it's possible there's people out there that might have really old systems that they still need to support, via network debugging of some sort. If you have a more recent system, tcpdump will output hex and ascii, if that's all you need. Or, if you need packet decoding capability then ethereal or wireshark may be better choices for you. Still kicking myself for not making a GUI packet decoder like ethereal. ethereal came out relatively shortly after I wrote tcpdfilter. :P

So, if you are still looking for it, let me know, and I can scrounge up the source for you. I do have it on my system.

Filed under: Linux No Comments
14Aug/102

Ubuntu won’t boot raided root

Author: Trenton

Well, I've had a lot of trouble switching my system from LVM, to RAID1+LVM on ubuntu 10.04.  I got another drive for my system, created a mirror with one drive (temporarily of course) asked lvm to move my entire system over to that physical device, added the previous drive to the raid array, and rebooted (oops).  I am listing a few things that are important to know when you're both new to Ubuntu, and doing raid post installation of Ubuntu.

Filed under: Linux, ubuntu Continue reading
13Jun/100

Removing spaces from filenames

Author: Trenton

If you use bash under unix, Linux, or Mac OS X, and you're continually forgetting how to convert filenames with spaces to filenames without spaces, then look no further.

Filed under: Bash, Linux Continue reading
20Mar/102

ZK AJAX and EJB 3

Author: Trenton

I went through some issues with EJB3 and ZK.  I was using openejb at the time, integrated with tomcat 6. I found that my methods that had role restrictions (using @RolesAllowed) were not accessible.  Whenever I clicked a button, an event would be fired, but I would get an error of "Unauthorized Access by Principal Denied", to that method, with a stack trace.

Filed under: AJAX Continue reading
7Feb/1036

What is JAXB and JAXB Example Code

Author: Trenton

I thought it may be nice for those googlers that want to know about JAXB, to have a quick working example to use.  So, that is the purpose of this post.

31Jan/102

ZK AJAX Status Bar

Author: Trenton

Seeing that my research project is a mini accounting system, I thought it necessary to be able to display items in a status bar, like a real application.  It is very slightly unfortunate that ZK doesn't have something integrated right in for this purpose.  But, given the versatility of ZK, it's easy enough to resolve.

30Jan/100

ZK Exception Handling and Error Popup

Author: Trenton

Once I had some basic functionality in my mini accounting system that I'm writing (for research purposes), one of my goals was to have an adequate error display for the user, that was the same every time.  Suffice it to say, I was completely thrilled to find out that ZK could do exactly what I wanted to do, and I didn't have to write an once of code.  All I did was write some ZUL, which wrapped a JSP inside of a ZK window.  I share how I did that in this post.