Archive for the 'Programming' Category

Changing User Agent in Rome

Wednesday, October 19th, 2005

If you are trying to use Rome and Rome Feed Fetcher, the following will not change the default user agent:

FeedFetcher feedFetcher = new HttpURLFeedFetcher();
feedFetcher.setUserAgent(\”User Agent 007\”);
SyndFeed feed = null;
feedURL = new URL(rssUrl);
feed = feedFetcher.retrieveFeed(feedURL);
List entries = feed.getEntries();

To change the user agent you must use the InfoCache as shown:

FeedFetcherCache feedInfoCache = HashMapFeedInfoCache.getInstance();
FeedFetcher feedFetcher = new HttpURLFeedFetcher(feedInfoCache);
feedFetcher.setUserAgent(\”User […]

Inventing in software

Sunday, October 9th, 2005

To invent, you need a good imagination and a pile of junk.
— Thomas Edison

This is what is so facinating about programming. Your “pile of junk” consists of digital assest instead of physical matterial, so the raw materials are not limited by the normal laws of supply and demand. In software, you are limited […]

Storing your Maven Repository in CVS/Subversion

Monday, September 19th, 2005

Brett Porter has hacked together a tool that will let you use a CVS or Subversion repository as your maven repository.
Brett Porter - Storing your Maven Repository in CVS/Subversion
It’s pretty rough, but is a working prototype that makes Maven 1.1/2.0 downloads a checkout/update, and deploy is an add/commit. I see this would be […]

Ignoring Build Problems

Thursday, September 15th, 2005

I ran across this blog post that is probably typical of many people who are managing software projects.
Musings of a Software Development Manager » Blog Archive » CruiseControl Warnings
I get about 48 email messages from Cruisecontrol each day for one of our projects. This is not something I’m proud of since this situation has existed […]

Why Subversion Rocks

Sunday, July 24th, 2005

This guy says that using Subversion and Cruisecontrol cut their costs by 92%. It would be interesting to see how he calculated this. Regardless, it is amazing how many quality tools are available for free now.
Why Subversion Rocks
In a recent study I performed on my development groups process improvement over the past 5 […]

Dangers of Design Patterns

Saturday, July 23rd, 2005

Here is an interesting discussion about the dangers of design patterns. Design patterns can be a great way to solve problems, but many times they become an excuse to over-architect solutions. Design patterns should reduce complexity. If they introduce more complexity, you are doing something wrong.
The myth of design patterns is that they […]

Nightmare Programming Project

Tuesday, July 19th, 2005

Here is a scary scenario for a programmer. Unfortunately it is probably not too uncommon. Imagine you are starting a new job. Before accepting the position you ask all the right questions, but on your first day you discover the following:

The lead programer left two months ago. (You already knew this.) […]

Cobertura

Sunday, July 10th, 2005

Cobertura is a fork of jCoverage. It runs reports to let you see how much of your code is being tested by unit tests. This is incredibly useful to find areas of your code where a bug would go undetected.
It looks like there is a plugin for Maven already, so I’m […]

Looking for an Issue Tracking System

Sunday, July 3rd, 2005

One of the things I need to do at my new job is get an issue tracking system in place. At Reslife, we put in Cerberus for tracking help desk request. Coming into a place that doesn’t have any type of system to track issues made me realize how much I took Cerberus […]

Maven Runs out of Memory

Saturday, July 2nd, 2005

Maven 1.0 has some problems with memory leaks. Most of the time these aren’t issues, but if you are trying to compile a multiproject you might run into problems. By default Maven tells java to let it have up to 256MB of ram. If you need to increase this you’ll need to […]

Software Design

Thursday, June 23rd, 2005

One of the major purposes of software design is to avoid making mistakes. You design your software so you don’t get halfway into the project and say “Oh yeah I didn’t think about that” and have to start over again or continue with a weak foundation. Unfortunatley don’t know exatly what type of […]

Setting up SVN over SSH

Friday, June 10th, 2005

If you want to access svn over ssh, you need to make sure that everyone has the correct file permissions. In the following steps we create a directory named svn-repo and change it’s ownership to a group called svn. Then we create the repository and change the security to allow access by people […]

WebObjects 5.3 now part of Xcode 2.1

Tuesday, June 7th, 2005

MacNN | Apple releases WebObjects 5.3 as part of Xcode 2.1
With this release, WebObjects is now part of the Xcode 2.1 Developer Tools distribution. You can now create and edit an entity-relationship model using either Xcode’s EO Model design tool or EOModeler separate development tool packaged with WebObjects.
This is an interesting development. It looks […]

D’Arcy Norman Dot Net » Blog Archive » Tiger Updated

Tuesday, May 3rd, 2005

Tiger Updated
I just finished installing 10.4, XCode 2, WO (5.2, 5.2.2, and 5.2.3), and Subversion. Checked out the APOLLO/Pachyderm source tree, and build and ran Pachyderm2.woa.

Sounds like WebObjects works find under Tiger. I haven’t had a chance to test it myself yet, but this sounds promising.

Development Cycle at Apple and Microsoft

Sunday, April 24th, 2005

One of the attributes of a good software development process is consistently releasing software. With this in mind, I wanted to compare the development cycles from Microsoft and Apple when it comes to their Operating Systems. I only compared the client operating systems and not the server versions.
OS X:
10.0 — March 2001
10.1 — […]

Why Java Won’t Get It Right

Sunday, April 3rd, 2005

Why Java Won’t Get It Right is an interesting entry about some of the problems with Java technology. The best part is that it is written by someone who actually knows Java. A part that I particularly liked was:

They over-architect everything. I’ve actually used a Java framework (I’m not gonna say which) […]

Thread.sleep() problem

Saturday, April 2nd, 2005

The following is a JUnit test that looks like it should always run without a problem. Mark the current time in a variable called start call Thread.sleep and tell it to sleep for x number of seconds, note the current time again in a variable called end and then assert that end - start […]

Entry Level Java Certification (SCJA)

Tuesday, March 29th, 2005

According to some posts on Java Ranch, Sun is looking to create a Sun Certified Java Associates exam. The idea is to have an exam that companies can use to certify entry level programmers. I’m not sure why this is better than the current Sun Certified Java Programmer certification. It sounds like […]

jimijon.com: WebObjects Rocks

Tuesday, March 29th, 2005

WebObjects Rocks is a short description of using Webobjects for a project.

Recently I had to port my app to WebSphere running DB2. Well I did and I don’t have to do anything special. The database is determined at runtype and my EOModelPrototype is selected that correctly maps the objects to the relational table.

The application he […]

Interview with Johnathan Rentzsch

Monday, March 28th, 2005

Behind the Red Shed with Jonathan Rentzsch is a good interview with Jonathan Rentzsch. He makes some interesting comments regarding Webobjects.

WebObjects is only relevant if you’re on the hook for writing lots of web applications fairly quickly. There’s an definite escape velocity however — the learning curve is steep, so it really only makes […]