chris's blog

Converting existing bind9 and dhcpd to dynamic dns

I have a working dns (bind9) and dhcpd running on my home lan. This adds dynamic dns updates from dhcpd to bind9.

The following is mostly based on http://www.semicomplete.com/articles/dynamic-dns-with-dhcp/. Kudos til Trygve Laugstøl for assistance too Smiling

Using continuum to build maven 2 projects that are in mercurial

Given that the pom has a correctly configured scm tag section then it's just a case of finding the browsable file.

Normally mercurial repo's are exposed using hgweb.cgi or hgwebdir.cgi.

Not sure about hgweb - use hgwebdir myself - but - the trick is to grab the raw file version of the tip revision. Once continuum can grab this then it will use the scm tags to get the project.

https://server/hgwebdircontext/project/raw-file/tip/pom.xml

NOTE

When you run hg clone to grab the repository it will always check out the entire repository.

Technorati Tags:

E-mail validators that fail to validate

This drives me nuts. Latest today (gigaset.siemens.com) - the contact form simply rejects e-mail addresses with a + in them (perfectly valid according to the standards/RFC's - see http://www.faqs.org/rfcs/rfc2822.html 3.2.4 Atom - definition of atext).

Google address book sync to mac address book - aargh - duplicates

The latest update to Mac OSX 10.5.3 now includes inbuilt google/address book synchronization.

However - after updating and adding my login details for gmail to addressbook it just seemed to hang with:

Can't connect to the sync server: NSInvalidReceivePortException: connection went invalid
while waiting for a reply ((null))

The solution was to remove the contents of

~/Library/Application Support/SyncServices/Local

and try again.

Note that for account name it needed the full e-mail address complete with googlemail.com domain.

Update

Using maven2 scm and release plugins with mercurial/hg

Mercurial - like some other distributed version control systems works such that each developer has a full value repository - there is no real master other than by convention in a team.

To set up your maven project so that the scm configuration points to a developers local repo:

    <scm>
        <connection>scm:hg:file://${basedir}</connection>
        <developerConnection>scm:hg:file://${basedir}</developerConnection>
    </scm>

Spring, Aspects, @Configurable and Compile Time Weaving using maven

Why do most people use Load Time Weaving (LTW)? It requires replacing the javaagent/classloader of your JVM which can lead to all sorts of issues.

Let's take a look at getting Compile Time Weaving (CTW) instead.

This post is using spring 2.5.2, aspectj 1.5.4, java 1.5. (Spring 2.5.4 uses a later version of weaver (3.0 vs. 5.0) - I assume AspectJ 1.6.0 but the aspectj-maven-plugin is also based around 1.5.4 - so for now we'll stick with this combination.)


Java can't send mail due to a certificate error

I use a plugin to Aperture to send mail to gmail. It was failing due to a

javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path
building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find
valid certification path to requested target

Not the most successful trip (two punctures and one broken spoke)

Hmm. Off into Nordmarka again - this time up past Rikshospitalet and along to Sognsvann then up the slope to Åklungen. About 4.5km from start - puncture.

Technorati Tags:

DSA 1571-1 - New openssl packages fix predictable random number generator

For more info on the debian security announcement see:

http://lists.debian.org/debian-security-announce/2008/msg00152.html

Server keys for this host have been updated - any ssh users may well need to remove the old ones from their .known_hosts file (or equivalent). Just to let them know that the keys are changed and intentionally so.

Technorati Tags:
Syndicate content
worried