Monday, March 04, 2013

Music & Literature

Today I received a LP in my mail, the limited edition 12" vinyl from Melt Yourself Down. When I heard their song "Fix My Live" on BBC6 I knew I had to have that song, so I went to their site and ordered the LP and with it came free downloads for both their songs. Had I bothered to read their site, I could have found out that the mp3s where actually free and I wouldn't have this LP which I can't use because my record player is broken. Yet I'm happy to have this great piece of music and to have supported a independent band.


In literature news: I've managed to read five books last month which is a new record for me. That's probably more than I have read in the last two years and one of them was even a manual (for org-mode)! One was about the history of Lockheed-Martin, their lobbying and "golden" toilet seats. The last three were about Expat live in Estonia: Vello Vikervaars "Marrying into Eastern Europe" and Justin Petrones "My Estonia" 1 & 2. Then this Friday being out of books to read I followed the "recommendation" of Justin and bought A. H. Tammsaares five part epic "Truth and Justice" (in German). That was a bit of an effort as they weren't available on Amazon. In the end I had to buy them from four different antiquity dealers and got the impression that I've bought the last ones.

Tuesday, March 20, 2012

... auch nur Mensch

Der Nobelpreisträger ist im allgemeinen ...
Nobelpreisträgerin verteidigt schwulenfeindliche Gesetze
Diese Schlagzeile von Spiegel.de flatterte mir auf r/de entgegen. Erste und erwünschte Reaktion: Geht doch nicht, die ist doch Nobelpreisträgerin. Empörung. Aber imho unberechtigt, denn die Goldmedaille im 100m Sprint bekommt man nicht weil man gut aussieht und lächelt, sondern einzige allein weil man von allen Teilnehmern der schnellste ist. Genaus bekommet man den Friedensnobelpreis weil man:
am meisten oder am besten auf die Verbrüderung der Völker und die Abschaffung oder Verminderung stehender Heere sowie das Abhalten oder die Förderung von Friedenskongressen hingewirkt hat
(Quelle: Wikipedia)
Man kann also ein Arschloch sein, seltsame Meinungen vertreten solange man sich für die zitierten Sachen eingesetzt hat. Diese Auszeichnung geht nicht an Heilige noch spricht sie Heilig, sondern zeichnet Leistungen aus (hmm, naja 2009 mal ausgenommen). Aber dies heißt noch lange nicht das man die Meinung von Ellen Johnson-Sirleaf tolerieren muß. Sie passt vielleicht zur Kultur ihres Landes, was eine Erklärung wäre aber keine Rechtfertigung, aber überhaupt nicht zu meiner. Und so kann man sich hinstellen und sagen, Frau Johnson-Sirleaf sie haben ihre Auszeichnung redlich verdient aber Ihre Meinung zur Homosexualität ist inakzeptabel.




Saturday, March 03, 2012

Prohibition

 Some time ago I watched the excellent documentary Prohibition. Some notes I took before I throw away the paper:
  • scofflaws (One who habitually violates the law or fails to answer court summonses.)
  • 15.000 agents (for the whole U.S.A.?)
  • Sheriffs can't kick down speakeasies because they wouldn't be re-elected
  • more money was spent on protecting game & fish
  • alcohol for religious purposes was still allowed, jewish congregations grew, sale of mass wine rose
  • "an affront to the whole history of mankind" - Winston Churchill
  • the KKK was dry

Friday, February 24, 2012

PHP Class Browser II

 So I checked out cedet and while the package seems good it's PHP support sucks, as in out of the box you get almost none, to get some you have to use either etags instead of the standard tags that comes with emacs or you have to use something from the contrib directory which is unmaintained. Not wanting to deal with etags I'm opting for updating the parser in the contrib directory. Using that a parser could be really interesting, as it means Emacs could know a lot more about the code and with some uh effort one could even have a very much up to date parser by using the grammar from the PHP code (Zend/something.y). Problem: It's a lot of effort for me and not a lot of help/interest from the community it seems.
But if I can pull it off, it would help creating refactoring, style, common error (using uninitialised variables) tools.

Sunday, February 19, 2012

PHP Class Browser

Idea for emacs:
I want to be able to M-x something on a method call and get a new buffer showing all the implementations of that method and from there browse the methods of the class they belong to. And while we're at it a browseable class tree.
I haven't used cedet yet, but as it comes with emacs24 and is supposed to handle C++ it might already have such a thing but probably needs a "PHP parser"

Tuesday, November 08, 2011

My first C programm

 I found the code to my first real C programm, a plugin for xchat to control XMMS and a command line tool doing the same:
xmms-remote-0.21.tar.gz



Saturday, October 22, 2011

addendum

 Bei aller Kritik an den Piraten ist natürlich nicht zu vergessen das einiges anderen Parteien genauso geht, siehe Merkel und ihr Kommentar zu dem Tod von Bin Laden aber das ihre Transparenz sie auch angreifbarer macht. Bei welcher anderen Partei kann man von jedem Ort der Welt mit Internetzugang jegliche Protokolle oder Liveübertragungen von Parteitagen oder Fraktionssitzungen anschauen und diskutieren. Diese schonungslose Offenheit gegenüber sich selbst gibt es im Politischen Milieu Deutschlands gerade nicht weil man Medien fürchtet, befürchtet das man für seine Aussagen zur Rechenschaft gezogen wird oder einem die Worte im Mund umgedreht werden.

Friday, October 21, 2011

Piratische Fettnäpfchen

Es gibt Dinge da kann man sich nur mit der Hand ins Gesicht fassen.
Yeah, anonymus hat #Uhl defaced.
Da hilft kein Erklären oder Nachrudern, das war so nicht in Ordnung. Defacement ist ein krimineller Vorgang dem hier jegliche Legimitation fehlt. Das schlimme ist aber das es von einem Politiker gut geheissen wird, hauptsächlich weil der Betroffene mit seiner Meinung und Parteizugehörigkeit im gegnerischen Lager zu finden ist, so mein Eindruck.

Unrecht ist ok, solange es nur meine Gegner trifft oder wie? Solche platte Polemik hätte ich nicht von einem offiziellem Vertreter der Piratenpartei erwartet, auch wenn dieser Twitteraccount ein Privater ist, das eine Meinung Privater Natur oder in anderen Kreisen hinter verhaltener Hand kund getan würde macht sie nicht noch lange nicht akzeptabel.

Ein einfaches Statement kontra #Uhl & kontra defacement von Anonymous wäre hier das richtige gewesen, oder vielleicht garnichts sagen. Jedenfalls wenn man ernst genommen werden will.

Ein älterer Fall bei dem auch ein kürzeres Statement genügt hätte sind T-Shirts. Was für T-Shirts? Bei einer der letzten Fraktionssitzungen der Berliner Piraten stellte einer der Piraten einen Antrag das man im Wiki dokumentieren könnte welche T-Shirt Größen die Fraktionsmitglieder hätten, denn er hätte eine Email von einer Gruppe bekommen deren T-Shirt er getragen hat. Die freuten sich halt ihr T-Shirt in den Medien zu sehen. Da den Piraten jetzt sicher mehr Aufmerksamkeit in den Medien zuteil wird, ist es nicht unwahrscheinlich das andere Gruppen auch ihre Shirts im Fernsehen sehen möchten und sie deshalb welche der Fraktion oder Mitgliedern derer schenken. Da wäre so ein Liste mit Größtenangaben nicht schlecht. Die Diskussion dazu konnte man Live im im Internet verfolgen. Das Protokoll gibts hier, recht weit am Ende.
Mein Gedankengang war erst „Hey, cool freie T-Shirts.“ und dann „Äh ne warte mal, das geht nich.“. Den zweiten Gedanken hätte ich eigentlich vom Antragsteller erwartet, zum Glück kamen der 3. Redner schnell drauf.
Das Thema enthält zwei Punkte die man kritisch angehen sollte:

1. Von wem darf/kann/sollte ich Spenden in welcher Höhe annehmen?
Die Annahme von Spenden jeglicher Art ist in demokratischen Systemen zumeist stark beschränkt und reglementiert weil Spenden eine Einflußnahme sind, auch ohne Erwartung von Gegenleistung.

2. Welche Nachricht sende ich mit bei Auftritten in der Öffentlichkeit?
Da es hier nicht um umbedruckte, generische T-Shirts geht, sondern welche einer Gruppe mit einem bestimmten Interesse, signalisiert das Tragen eines solchen T-Shirts zumindestens die Unterstützung dieser Gruppe. Damit sind diese T-Shirts nicht mehr frei. Diese Nachricht kann von der eigenen ablenken und hier steht auch wieder das Thema der Einflußnahme im Raum.

Deshalb halte ich den Antrag für reichlich Naiv und das rumgehacke des Antragstellers an der Person die die gleichen Kritikpunkte äußert und darauf hinweist das damit Grundsatzfragen aufgeworfen werden auch für grob falsch. Man kann nicht die Diskussion von Grundsatzdiskussionen verbieten.
Außerdem, T-Shirts ... fällt nicht wirklich in den Aufgabenbereich eines Parlamentariers.

Bei solchen Patzern merkt man das die Partei noch sehr jung bzw unerfahren ist. Etwas Erfahrungsaustausch mit älteren Semestern, die nicht unbedingt selbst Politiker sind oder durch einen Kommunikations Experten, wäre sehr Hilfreich. Nicht um Lügen schöner verpacken zu können oder leere Phrasen zu dreschen, sondern um zu lernen wie man in der öffentlichkeit Kommuniziert ohne von einem Fettnäpfchen ins andere zu treten.

Tuesday, May 17, 2011

TIL lexer != parser

TIL that a lexer doesn't do grammars and solves my white space in grammar problem. The problem was that I had to surround everything with a WS+ symbol in my grammars which stemmed from me integrating both a lexer & parser in one single grammar.

Sunday, August 29, 2010

web tools

Yahoo! Pipes

I have never really used webtools or even a toolchain, except for simple stuff like this blog or twitter. Usually I just develop stuff if I need something special. But yesterday I used two tools which are great especially the second one. RSS Pump can aggregate several data source, not just RSS feeds, and shows them as a newsticker or a static list. So I'm using it to collect news and articles regarding EVE Online for my corp homepage. The other tool I am amazed by is Yahoo! Pipes. It also collects data from various sources but that's where the similarities end. The end product is a RSS feed or JSON data but in between you can twist and format the data any way you like, which is great as I noticed as not every source has the same format. But what amazed me even more is the editor as it's not text based but instead done via visual programming, neatly visualizing the dataflow.

Monday, April 26, 2010

followup to Mozilla ES3 extension

Does also affect try & catch, and it's a mozilla only thing: https://bugzilla.mozilla.org/show_bug.cgi?id=561670

Thursday, March 25, 2010

githubbed

I githubbed the code from the previous post. It's now at http://github.com/tekai/tools. Also php-run-string has been fixed.

Tuesday, March 16, 2010

emacs/php code

Some interesting functions if you happen to write PHP code in emacs:

php-mode.el with some modifications:

;; - php-check-syntax-and-goto-line bound to F12
;; - changed the find-tag-default function to differentiate between
;;   methods and functions BUT this means you need to use tag-fucker.php
;;   instead of etags/ctags/whatever

tag-fucker.php (rename it to use it). A CLI script which generates TAGS/etags stuff used in my php-mode. Much slower than etags but maybe it can by compiled by HipHop.

php.el Some extra php related elisp code. Them gem of it is update-tag-file which does what it says on saving a file ((php-)after-save-hook)

Those files need a bit of shell & elisp knowledge if you want to use them. Go and hack away. If you like/use/modified it pls leave a comment.

Ideapad: incremental tags

  • Add a hook to save buffer
  • run script to remove file from TAGS
  • run tag-fker to add stuff from buffer
  • run some tags function in emacs to make adopt changes in TAGS

Update: check out https://github.com/tekai/tools/blob/master/php.el#L45 for an implementation

    Friday, February 26, 2010

    strange moments

    in emacs:

    M-x term
    ... do something in the shell ...
    > vim file
    WTF? moment as I realize I started vim within emacs
    

    Thursday, February 11, 2010

    Ideapad: EVE POS exchange format

    with JSON: Moon {corp:, alliance:, system:, planet:, moon:, modules: [], rf-timer:, comment:""}

    Wednesday, February 10, 2010

    Ideapad: Visualize var scope & occurances

    Thread with knots. The thread represents the scope, the knots represent the occurances.

    Thursday, January 07, 2010

    reciprocate

    just a reminder for myself that it's spelled as in the title and not "reprociate"

    Wednesday, December 30, 2009

    ECMAScript 262 Ed. 3 allows extensions

    That ECMAScript allows other extensions is no surprise to me. As Chapter 16 states:

    An implementation may provide additional types, values, objects, properties, and functions beyond those described in this specification. This may cause constructs (such as looking up a variable in the global scope) to have implementation-defined behaviour instead of throwing an error (such as ReferenceError).

    But what surprised me is the reply I got to this bugreport:

    The extension in SpiderMonkey is old and it serves to satisfy the conditional compilation use-case:
    if (DEBUG) {
      function maybe() {...}
    }
    
    if DEBUG evaluates to falsy, no function maybe is defined. More, this means the binding of maybe depends on evaluation of the sub-statement containing it. Same goes for the testcase in comment 0. ECMA-262 Ed. 3 (chapter 16) allows syntactic extensions, which the function as sub-statement definitely is an example of. That we differ from other browsers is a tolerable consequence of ES3 chapter 16 allowing syntactic extension. Note that for ES4, function in a block will be block-scoped, but hoiste to top of the block, so the testcase in comment 0 will work.

    So basically all Mozilla implementations of ES3 (SpiderMonkey, Rhino, Tamarin?) have been extended so that if changes the behaviour described in ES3 10.1.3. Functions (not variables) are not added to the Scope Chain if they are wrapped in an if which doesn't evaluate to true.

    Doesn't seem much of a problem though as there are only two bug reports about it and an only one comment explaining why it is the way it is.

    Thursday, May 14, 2009

    Florence And The Machine

    Dog Days

    Kiss With a Fist

    Rabbit Heart (Raise It Up)

    Could find a proper video for the song Lungs, which is really awesome

    Their album Lungs should be out on June 9th in the UK, no idea when it's out in the rest of the world.