Nightmares

WTF, I’d a nightmare few days ago, and it seems it is going to realize soon. Now lets wait for 1306 😦 . And I hope to see some awesome hacks out of it 😉 .

Advertisements

QOTN

Machines are always better than humans.

knew

While reading a paper which deals with kernel stuff, I encountered word knew in a sentence, which I somehow found odd and unknowingly pronounced as kay-new (like some kernel-level memory allocator ;)) in my brain, until few seconds later I realized, its knew (simple past form of know) 😦

Zen Koan ?

(Scenario: D, along with his relative RoD (relativeOf D) went to see a girl for his marriage, quite common in indian cultures)

RoD (commenting about the girl): She is not fair...
Deesl (in his M-x zen-mode): Fair Enough

And after hearing this, RoD is enlightened.

Broken webserver of Google Code

% curl -I http://gentoo-xen-kernel.googlecode.com/files/xen-patches-2.6.31-11.tar.bz2
HTTP/1.1 404 Not Found
Content-Type: text/html; charset=UTF-8
Set-Cookie: PREF=ID=913587349124edb1:TM=1267030254:LM=1267030254:S=gPkLxJgB22UJHzXo; expires=Fri, 24-Feb-2012 16:50:54 GMT; path=/; domain=gentoo-xen-kernel.googlecode.com
Date: Wed, 24 Feb 2010 16:50:54 GMT
Server: codesite_downloads
Content-Length: 1389
X-XSS-Protection: 0
% curl  http://gentoo-xen-kernel.googlecode.com/files/xen-patches-2.6.31-11.tar.bz2 2>/dev/null |file -
/dev/stdin: bzip2 compressed data, block size = 900k

This is really crazy sending 404 to HTTP HEAD requests, while 200 to HTTP GET requests, causing wget to break, which performs HTTP HEAD before HTTP GET to get value of Content-Disposition header.

Converting existing OPTIONS to FreeBSD portconf format

If you started using under-documented ports-mgmt/portconf software to manage options of your ports, and looking forward to convert existing /var/db/ports/${PORTNAME}/options files to its format, then check out following script, I hacked:

% cd /var/db/ports;
% for i in *; do \
>        name=$(echo /usr/ports/*/$i |sed -e 's/distfiles\/[^[:space:]]*//g' -e s/\/usr\/ports\///g);\
>        cat $i/options  |gawk '!/#/ && ! /^_/ { print $1" | " }' |xargs echo $name: ;\
> done |sed -e 's/^[[:space:]]*//g' -e 's/|[[:space:]]*$//g' -e '/:[[:space:]]*$/d'

I originally hacked it on GNU/Linux, and I think it needs lang/gawk port because of gsub function, but I’m not sure.

Wadler’s Law

      In any language design, the total time spent discussing
      a feature in this list is proportional to two raised to
      the power of its position.

           0. Semantics
           1. Syntax
           2. Lexical syntax
           3. Lexical syntax of comments

Source: http://www.haskell.org/haskellwiki/Wadlers_Law

Faster tunnel to IPv6 internet.

Thanks to network admins at Bharti and Hurricane Electric, RTT to HE’s IPv6 tunnel server at HK PoP is reduced. Yippee!!

+-(abbe@chateau:pts/0)---------------------------------------------------------------------------------------------(~)-+
+-(130:20:44:%)-- traceroute -I 216.218.221.6                                                            --(Sun,Dec06)-+
traceroute to 216.218.221.6 (216.218.221.6), 64 hops max, 72 byte packets
 1  ABTS-North-Static-018.230.160.122.airtelbroadband.in (122.160.230.18)  41.593 ms  44.970 ms  52.979 ms
 2  ABTS-North-Static-021.230.160.122.airtelbroadband.in (122.160.230.21)  41.596 ms  44.188 ms  45.308 ms
 3  rasBTNLDel-static-174.215.56.202.mantraonline.com (202.56.215.174)  44.376 ms  44.404 ms  45.537 ms
 4  125.19.22.145 (125.19.22.145)  45.105 ms  42.097 ms  43.629 ms
 5  AES-Static-013.36.144.59.airtel.in (59.144.36.13)  150.993 ms  155.188 ms  154.701 ms
 6  hurricaneelectric-RGE.hkix.net (202.40.161.158)  165.843 ms  158.931 ms  164.889 ms
 7  tserv20.hkg1.ipv6.he.net (216.218.221.6)  158.572 ms  154.562 ms  154.215 ms
+-(abbe@chateau:pts/0)---------------------------------------------------------------------------------------------(~)-+
+-(130:20:45:%)-- ping6  www.google.com                                                                  --(Sun,Dec06)-+
PING6(56=40+8+8 bytes) 2001:470:f803:8000::1 --> 2001:4860:c004::68
16 bytes from 2001:4860:c004::68, icmp_seq=0 hlim=58 time=179.801 ms
16 bytes from 2001:4860:c004::68, icmp_seq=1 hlim=58 time=181.696 ms
16 bytes from 2001:4860:c004::68, icmp_seq=2 hlim=58 time=179.953 ms
16 bytes from 2001:4860:c004::68, icmp_seq=3 hlim=58 time=179.401 ms
^C
--- www.l.google.com ping6 statistics ---
4 packets transmitted, 4 packets received, 0.0% packet loss
round-trip min/avg/max/std-dev = 179.401/180.213/181.696/0.880 ms

QOTD

At some point, bits have to go into packets and routers need to make
decisions on them. Changes at that level is what I want to hear about, not
strategic company relationships.
        -- John Carmack

solang on FreeBSD

solang
Submitted a PR for solang on FreeBSD.

UPDATE: Checkout graphics/solang.