Thursday
20
Apr 2006

Java Regular expression matching

(1:21 pm) Tags: [General, Software, Projects]

Every once in a while, I get to write Java code. Having always used an external library (jakarta-regexp) to do regular expressions in my Java code, this constitutes my first try with the JDK 1.4 RegEx classes:

Pattern pattern = Pattern.compile(”^([0-9]*):.*”);
Matcher matcher = pattern.matcher(title);
if (matcher.matches()) {
result = matcher.group(1) + “: “;
}

Popularity: 77%

Comments: (0)
Tuesday
18
Apr 2006

Sun T2000 DB9 to RJ45 serial cable pinouts

(1:27 pm) Tags: [General]

DB9

  1. DCD
  2. RxD
  3. TxD
  4. DTR
  5. GND
  6. DSR
  7. RTS
  8. CTS
  9. RI

RJ45

  1. RTS
  2. DTR
  3. TxD
  4. GND
  5. GND
  6. RxD
  7. DSR/DCD
  8. CTS

Hook DB9 2, 3, and 5 to RJ45 3, 6, and 4/5. Done.

Popularity: 71%

Comments: (0)
Sunday
9
Apr 2006

Lighttpd, FastCGI, and mod_rewrite

(10:10 am) Tags: [Software, Projects, FeedLounge]

I have been recently working on features in FeedLounge where we want to present a pretty URI to our users, so I decided to pull in mod_rewrite into the lighttpd mix.

No matter what I tried, I couldn’t get the rewritten URI passed down to the FastCGI processes. According to the lighttpd documentation, you only need to order the directives, and everything ‘just works’. I enabled request handling debugging, and I could see the URI being rewritten, but then be passed to FastCGI as the untouched URL.

I tried older versions of lighttpd, just to see if it was a bug, same problem. I then jumped on the lighttpd IRC channel, and was told that the rewritten URI is passed to the FastCGI process as the variable REDIRECT_URI. Brilliant. I read the FastCGI spec again, and could not find anything related to this, so I ended hacking up my request class something along these lines:
req.uri = env.get('REDIRECT_URI', 'BLANK')
if req.uri == 'BLANK':
    req.uri = env.get('REQUEST_URI', '')

Not the best solution, but it does get the right URI passed into the python processes to get the work done.

I should note a couple of things:

Popularity: 81%

Comments: (4)
Saturday
8
Apr 2006

What Language are you using?

(12:19 pm) Tags: [Quotes]

Dude 1: “What language are you using?”
Dude 2: “Dude!”
Dude 1: “Sweet! What language are you using?”

Does that make you a duder?

Popularity: 66%

Comments: (1)
Monday
3
Apr 2006

FeedLounge reviewed

(1:28 pm) Tags: [FeedLounge]

TechCrunch has a review of 9 online feed readers, and FeedLounge was happy to be included. A follow-up podcast was also published by TalkCrunch, discussed the state of online feed reading with Newsgator, Attensa, Rojo, and FeedLounge.

I wanted to mention a few things that were either missing or just wrong in either of the entries.

Modifications

In the features grid, a number of things should be changed for accuracy:

Omissions

Podcast Notes

In the podcast, a few things are worth mentioning:

My opinion on what makes FeedLounge better

Frank Gruber noted in his review:

Aside from the exceptional performance rating, I wonder what else sets FeedLounge apart from its free competitors.

User experience is very hard to quantify, but my personal favorite example is this:

  1. Login to FeedLounge
  2. Press the space bar (and again, and so on…)

That is all you need to know for the simplest, most pleasing user experience online right now - in my opinion, of course. If you came from Bloglines and are used to reading that way, you may not see the benefits from the differences in FeedLounge immediately, but I do believe it will sink in after a while. If you come from an client based reader such as NetNewsWire, FeedLounge is going to be the closest thing to emulate that richer experience. Many people that use a client based reader have a hard time with an online reader, and FeedLounge is trying to bridge that ‘user experience’ gap.

Why we charge for FeedLounge

Many people continue to speculate about whether we should charge, or whether we will succeed, etc. FeedLounge is a business, and like any and every other business out there, it has to make money to survive.

All of the other players with “free” readers are keeping afloat by other means such as VC funding, other products keeping the reader afloat, showing ads, etc. In the end, there are costs, and someone/something has to pay them. When the VC funding runs out for some of these companies, there will need to be a way to monetize the product.

As a service, FeedLounge charges the user to keep the content downloaded, arranged, and tracked whether they are online or not. We don’t present ads, and we are not funded by other entities.

We are delivering real value to our users today, and will be able to survive as long as the user community believes we are providing value. Nothing hidden.

Popularity: 74%

Comments: (3)