A Danish Minister approves an ad-agency to pose as real users and stuff a forum with bogus posts to kick-start it. I’m appalled, surprised at my own ignorance and worried about the lack of credibility of even government-funded sites. Continue reading ‘How much do we trust posts on website forums?’ »
Archive for July 2011
Why doesn’t every programming language have “Natural Sorting” built in, out of the box? Natural sorting is the way humans sort, where number substrings are sorted numerically, everything else alphabetically:
|Sorted “Asciibetically” (normal computer sort)||Sorted “Naturally” (what humans prefer)|
Notice how 10 comes before 2 in asciibetical “normal computer sorting” ? Haven’t we all seen user interfaces that like that? Its just plain wrong.
Dave Koelle’s Alphanum Algorithm sorts naturally, but instead of analyzing each array element O(log(N)) times, I present a modified Perl version that allows for Schwartzian transforms, yielding huge performance improvements.
Well, now you can! I’ve developed a pair of tools for that allow this when used in concert. Both are Open Source, of course.
Here is an example of the problem we need to solve: We have SSH access to a network, but want to access an SNMP agent in that network from a local client. We use SNMP here in this example, but it could be any other protocol that uses UDP, such as DNS or TFTP.
We’ll forward the SNMP traffic in a TCP port like this, with “socat” doing the UDP-in-TCP tunneling: