partially qualified domain names, OS X Yosemite v10.10.1

Apple broke DNS compatibility towards partially qualified domain names with the latest OS X release. On Nov. 18th they released an update with a patch to this issue (since I spent the time to escalate it). From http://support.apple.com/en-us/HT204017 release notes I quote:

Allows you to append search domains for partially qualified domain names when performing DNS lookups (consult the discoveryd man page for more information)

How was it supposed to work? And how can we activate it?

If you are a big corporation you are going to have a very complicate and hierarchically designed DNS system. Sometimes you just want to shorten the amount of data you type in to jump from one box to another, so… taking as a sample the Akamai mirror of apple.com you’ll see that will CNAME to e3191.dscc.akamaiedge.net. Imagine you are working for Akamai, and you need to ssh into e3191.dscc , without the partially qualified domain name feature you’ll have to type in the full fqdn. Instead, if you have akamaiedge.net in your domain search field, you don’t have to, your resolver will do it for you.

So, on OS X… I quote from my Apple Support guy’s email:

You can edit /System/Library/LaunchDaemons/com.apple.discoveryd.plist and add ‘–AlwaysAppendSearchDomains’ as a string to the ‘ProgramArguments’ array. That should re-enable search domains for PQDNs once you reboot after saving.

I add… you can simply “sudo launchctl unload /System/Library/LaunchDaemons/com.apple.discoveryd.plist” and “load” to refresh the daemon after having edited the file, without rebooting your laptop/workstation…

enjoy 😉

Maildir server on OsX

hi nerds! anyone fancy of having his/her own portable Maildir backup? I’ve created a homebrew package for courier-imap (and courier-authlib). Would u mind testing it? I want your feedback! 🙂 https://github.com/zeph/homebrew

UPDATE: https://github.com/mxcl/homebrew/pull/16354

SECURITY CONCERN! :: edit the etc/imapd in order to bind only to 127.0.0.1

to start it:

sudo authdaemond start
sudo /usr/local/Cellar/courier-imap/4.11.0/libexec/imapd.rc start

and use ur normal sys credentials (and point ur config in the email client to “INBOX”)

p.s. u might need to created the Maildir folder in ur home dir … use:

bin/maildirmake

grafi e dintorni

non provate a creare (in python e con primitive standard, mentre con le ctypes potrebbe funzionare) una matrice di adiacenza per un grafico di 250mila nodi… e’ un filino troppo grossa… 😀

…ovviamente ho dovuto killare il processo. Ok che OsX e’ figo, ma vi sareste fidati a continuare a lasciar swappare un processo da 10Gb ?

+ + +

[EN] adjacency matrix (with standard python primitives) for a graph of 250.000 Vertex ? FAIL!

* * *

p.s. it might be my implementation… this is the initialization of the datastructure…

tot = 250000
adj_matrix = [[0]*tot]*tot

…but it was not behaving correctly, so I switched to a for loop with append() … which was giving then problems with memory.

graphs

bipartite graphs” (or graphs in general, and oo-implementations), any suggestion of good books to buy?

+ + + update

Last login: Wed Dec 23 16:58:14 on ttys002
grinder:~ zeph$ sudo port install boost

and recovered the book from “Informatica 3” … :
A practical introduction to data structures and algorithm analysis, JAVA EDITION“, Clifford A. Shaffer

…digging into the hole of the white rabbit 😀

p.s. this was the red pill… Facebook.com: Puzzle Master, “Liar Liar” puzzle

p.s.(2) a big thank to my gf Maria, student of philosophy, which pointed to me the “Liar Paradox“… I would have been still having headache trying to sort out the splitting algorithm without her hint