Treasuring the subject
To treasure the subject and issues that Aaron Swartz was fighting for, I would like to refer and remind to my mail to Richard Stallman, Lawrence Lessig and Cory Doctorow, which I wrote on 21st of January 2012.
Aaron Swartz
awk’ing lat/lon
Here’s how one can convert latitude/longitude values from degrees to decimal format using GNU awk.
# description: convert dec values to lat/lon
# license: GPL 3.0
# input: "N010.00.21.698 E094.24.35.999"
# output: "10.006027 94.41
awk '{
lat=$1;lon=$2;
split (lat, latitude, ".");
latpre=substr(latitude[1],1,1);
latdeg=substr(latitude[1],2);
latmin=latitude[2];
latsec=latitude[3];
latmil=latitude[4];
latdec=latdeg+(latmin/60)+(latsec/3600)+(latmil/3600000);
if (latpre == "S"){
latdec=latdec*-1;
}
split (lon, longitude, ".");
lonpre=substr(longitude[1],1,1);
londeg=substr(longitude[1],2);
lonmin=longitude[2];
lonsec=longitude[3];
lonmil=longitude[4];
londec=londeg+(lonmin/60)+(lonsec/3600)+(lonmil/3600000);
if (lonpre == "W"){
londec=londec*-1;
}
printf "%.7f %.7f\n", latdec, londec;
}'
usage:
echo "N010.00.21.698 E094.24.35.999" | ./awk_converter.sh
output:
10,0060272 94,4099997
Neo-Robin Hood-ism
Der amerikanische Keynote speaker am 29C3 ruft zum allgemeinen Widerstand gegen den Überwachungsstaat auf. – Und das 28 Jahre nach 1984.
… Not my department!
Apple corrupting RFC 6352 (by Apple)
In the nice setup of my own “un-clouded” PIM (personal information manager), in which DAViCal plays a major role, OS X Lion (10.7) & OS X Mountain Lion (10.8) seemingly can’t handle the groups in the address book (Contacts.app) any longer. – When connecting through CardDAV, the groups just remain empty.
In the respective paragraph 7.1.1 of RFC 6352, which Apple released in August 2011, states:
Description: The CARDDAV:addressbook-home-set property is meant to
allow users to easily find the address book collections owned by
the principal. Typically, users will group all the address book
collections that they own under a common collection. This
property specifies the URL of collections that are either address
book collections or ordinary collections that have child or
descendant address book collections owned by the principal.
… though Contacts.app sets the value of addressbook-home-set
to /caldav.php/foobar/
instead of /caldav.php/foobar/addressbook/
in ~/Library/Application\ Support/AddressBook/Sources/XYZ-123456-FOOBAR/Configuration.plist
, which is a violation of RFC 6352.
Simply said: OS X 10.7/10.8 Contacts.app cant handle its own technical specifications…
[Update: The very same bug has been reported to the sogo bugtracker.]
[Update: Here is a fix for this OS X bug.]
29C3
The Chaos Communication Congress moved to Hamburg. This years keynote speaker is going to be Jacob Applebaum. – 29c3 is definitely not my department!
!arte
My submission of “!arte” bang has been accepted, which means you can use e.g.
http://duckduckgo.com/?q=Karambolage+!arte
to search for any keyword on arte.tv using DuckDuckGo.