Category Archives: Technology

Generic Listname Identification

As you might suspect, I’m subscribed to a large number of mailing lists (most of which I host myself).

One of the problems with mailing lists is that, if you use a singe email address for all your list subscriptions, there isn’t an easy way to file individual list messages based on the list name.

The other day, however, I found a rather handy procmail recipe that helps with that work…
Continue reading

Don’t Smile(y)

… or Microsoft will sue you 🙂

United States Patent Application: 20050156873

Methods and devices for creating and transferring custom emoticons allow a user to adopt an arbitrary image as an emoticon, which can then be represented by a character sequence in real-time communication. In one implementation, custom emoticons can be included in a message and transmitted to a receiver in the message. In another implementation, character sequences representing the custom emoticons can be transmitted in the message instead of the custom emoticons in order to preserve performance of text messaging. At the receiving end, the character sequences are replaced by their corresponding custom emoticons, which can be retrieved locally if they have been previously received, or can be retrieved from the sender in a separate communication from the text message if they have not been previously received.

Ok, there have been some pretty silly patent applications in the past … Amazon’s One-click, etc … but this borders on the ridiculous.

via: Grocklaw

[tags]Microsoft, patent, smiley[/tags]

Wrap JLabel Text

It took a bit of experimentation, but I think this routine could be used to allow a Java JLabel component to contained wrapped text.

This routine depends on the ability for JLabel text to contain HTML.

Basically it iterates through each word in the JLabel text, appends the word to a ‘trial’ string buffer, and determines if the trial string is larger than the JLabel’s container. If the trial string is larger, then it inserts a html break in the text, resets the trial string buffer, and moves on to the next word.

private void wrapLabelText(JLabel label, String text) {
	FontMetrics fm = label.getFontMetrics(label.getFont());
	Container container = label.getParent();
	int containerWidth = container.getWidth();

	BreakIterator boundary = BreakIterator.getWordInstance();
	boundary.setText(text);

	StringBuffer trial = new StringBuffer();
	StringBuffer real = new StringBuffer("<html>");

	int start = boundary.first();
	for (int end = boundary.next(); end != BreakIterator.DONE;
		start = end, end = boundary.next()) {
		String word = text.substring(start,end);
		trial.append(word);
		int trialWidth = SwingUtilities.computeStringWidth(fm,
			trial.toString());
		if (trialWidth > containerWidth) {
			trial = new StringBuffer(word);
			real.append("<br>");
		}
		real.append(word);
	}

	real.append("</html>");

	label.setText(real.toString());
}

Google Earth

Want to know more about a specific location? Dive right in — Google Earth combines satellite imagery, maps and the power of Google Search to put the world’s geographic information at your fingertips

Google Earth

This is extraordiarily cool … even if they think that our house is about a block south of where it really is.

Google Secrets Out

Google have recently filed a US patent which reveals a great deal of how they rank your web site. Some of it you could never of guessed at…

Great Site Ranking in Google The Secrets Out

This is a very interesting read.

I am not, as a rule, all that concerned with search engine rankings for my sites. The number of sites that cover the same topics as I do are pretty small. Thus, if someone is looking for information, chances are they will stumble across my sites.

First sign a message is spam

The first sign that a email message is spam: They assure you that it is not spam.

This is an official notification of the availability of a package deposited in your name and it is not a sales solicitation or SPAM.

Roll my own

Microsoft’s MSN Spaces threatens to dominate with formal toolsets while others, like Blogger, hope to keep the technology’s pioneering spirit alive … However, with MSN Spaces, Microsoft is delivering a pre-set suite of blogging and complementary services on a platform that doesn’t allow for much manual tweaking and extension on the part of the end-user.

The battle for the blogosphere | InfoWorld | News | 2005-05-27 | By Juan Carlos Perez

This is one of the main reasons I like running my own servers. I can do what I want, when I want it, how I want it.

I’m master of my own ‘domain’, so to speak 🙂

I like open source stuff better anyways.