brs´ (b)logbuch

culture, code and web2.0

zensursula goes pop

June 20th, 2009 by Administrator


YouTube - Link to 

gruß René

Category: diverses | No Comments »

nochmal aus aktuellem anlass!

May 25th, 2009 by breskeby

bitte um beachtung:

gruß brs
keine Tags gefunden

Category: diverses | No Comments »

Petition gegen Internetzensur

May 4th, 2009 by breskeby

unter https://epetitionen.bundestag.de/index.php?action=petition;sa=details;petition=3860 kann jeder mitmachen! also los und ran an die tasten!

gruß brskeine Tags gefunden

Category: diverses | 1 Comment »

freies Internet in ernster gefahr!

April 15th, 2009 by Administrator

hallo zusammen,
der artikel des ccc zum 1.4.2009 war leider wirklich kein aprilscherz. jetzt gibt es unter http://www.zensurprovider.de eine liste der provider, die blind der zensursula ohne jede gesetzesgrundlage folgen. nur ein manitu.de stemmt sich wie ein ein kleines gallisches dorf sich gegen die grundgesetzamateure von bka und bundestag. am freitag ruft der ccc zur demo in berlin auf. also hin da!

aus aktuellem anlass hier nochmal der artikel 5 unseres irgendwie ja doch noch gültigen grundgesetzes:

(1) Jeder hat das Recht, seine Meinung in Wort, Schrift und Bild frei zu äußern und zu verbreiten und sich aus allgemein zugänglichen Quellen ungehindert zu unterrichten. Die Pressefreiheit und die Freiheit der Berichterstattung durch Rundfunk und Film werden gewährleistet. Eine Zensur findet nicht statt.
(2) Diese Rechte finden ihre Schranken in den Vorschriften der allgemeinen Gesetze, den gesetzlichen Bestimmungen zum Schutze der Jugend und in dem Recht der persönlichen Ehre.

(3) Kunst und Wissenschaft, Forschung und Lehre sind frei. Die Freiheit der Lehre entbindet nicht von der Treue zur Verfassung.

in diesem sinne,
gruß brs!


Category: diverses, i-net, sw & co | No Comments »

Resturlaub

March 12th, 2009 by breskeby

schon zu weihnachten hatte ich das zweite “resturlaub” von geschenkt bekommen. da ich aber noch einige bücher auf meiner todo liste hatte, bin ich erst letzte woche zu “pitschis” abenteuer gekommen. einigen dürfte herr jaud durch die verfilmung seines buches “der vollidiot” bekannt sein. aber wohl aufgrund meiner abneigung zu olli pocher, habe ich den film selbst nie gesehen und tommy war mir bis weihnachten letzten jahres kein begriff.
der beginnt im beschaulichen bamberg. jaud legt bei der beschreibung bambergs bzw. frankens schon ziemlich ins detail und so lernt der geneigte nicht - bamberger hier im buch endlich auch mal warum es heißt “wir gehen aufn keller”. Der Pitschi (der urlauber im buch) wegt schon oft des mannes mitgefühl. spätestens bei dem gedanken an die “eigene kieselauffahrt knapp 15 minuten ausserhalb”.
pitschis freunde sind fast alle in den hafen der ehe eingekehrt und auch er wird immer deutlicher mit den drei dingen konfrontiert die wohl irgendwann jeden mann in die ecke drängen: aufkeimender kinderwunsch ihrerseits, sowas wie midlife-crisis und freunde, die eigentlich eher altlasten aus früheren tagen sind. “resturlaub” könnte auch “auszeit” heißen. doch statt wie ein kaninchen vor der schlange ergreift pitschi (a.k.a. mausbär) die flucht nach vorn.

diese flucht beschreibt jaud mit viel humor und trifft irgendwie dabei auch immer die richtigen worte. ein hauch sarkasmus schwingt immer mit. okay, manchmal möchte man den protagonisten schon auf den hinterkopf hauen und sagen “lass es rudi, lass es sein”. aber er nimmt zielgerichtet alle fettnäpfchen die sich ihm vor die füße werfen.
mein persönliches highlight ist heidi. es ist echt unglaublich wie gut jaud ihren schwäbischen dialekt in schrift umsetzt. ich konnte quasi beim lesen ihre unsägliche stimme vernehmen.

nicht weiter erwähnen muss ich wohl, dass dieses buch gelesen sein sollte. die frau eines freundes bezeichnete das buch als “männerbuch” und genau das ist es wohl auch.

gruß brs



Category: diverses | 2 Comments »

paradoxon

March 4th, 2009 by breskeby

der fm4 ombudsmann machte mich heute auf ein paradoxon aufmerksam, das im gegensatz zu anderen seiner art, jeder schnell selbst gebastelt hat. ihr braucht nur butter und eine katze.

aber jetzt zum problem: jeder weiß:

  1. eine katze landet immer auf den pfoten.
  2. eine toast landet immer auf der seite mit der butter.

angenommen wir schmieren den rücken unserer katze jetzt mit butter ein und schmeißen sie vom balkon, landet sie auf den pfoten oder auf den rücken? gibts testergebnisse?

gruß brs




Category: diverses | 1 Comment »

kafka vs. kavka

February 12th, 2009 by breskeby

als ich letzte Woche mit freunden (oder sagen wir lieber bekannte) im irish pup saß, sprachen wir kurz über die bücher kavkas. Das klang dritte erstmal recht intellektuell. zugegeben fällt es auch schwer nur beim hören zwischen kafka und kavka zu unterscheiden. nicht der alte franz hatte es uns angetan sondern markus. Read the rest of this entry »keine Tags gefunden

Category: diverses | No Comments »

Open issues with SimpleDateFormat & a brief introduction to joda-time

February 2nd, 2009 by breskeby

last week i used the to scan our applications for bottlenecks. after just a few minutes i detect that we make really heavy usage of the java.text.SimpleDateFormat class. Using this class in occasional formatting jobs normally causes no problems. But invoking the parse and the format method more than 500.000 times during application startup can definitely cause some performance issues. I identified three problems while working with SimpleDateFormat which are more ore less related to each other:

      isn’t threadsafe
      The creation of an SimpleDateFormat is a relativly heavy operation
      the parser methods have a bad performance

my first approach to fix problem #1 and problem #2 was to introduce a SynchronizedFormatter class which implements synchronized methods for parsing and formatting Dates. This SynchronizedFormatter can be called in a static context, so i needn’t so much Formatter objects.

After fixing that, i profiled the app again and still had to handle problem #3. when running an java app with the jprofiler agent, the parse method takes about 50 microseconds. of course thats not the time it would take in operational, mode but nevertheless 500.000 invocations will leave their mark during application startup.

While browsing some java forums i discovered a great library. joda-time replaces the java date and time classes. The homepage listed a lot of reasons why to use their implementation instead of the classes out of the jdk box. Besides the easy to use api and the comprehensive feature set they mention better performance characteristics which definitly match my actual needs.

After replacing all usages of the java.text.SimpleDateFormat by org.joda.time.format.DateTimeFormatter in my app I profiled my app a last time. Since the formatter class of is threadsafe, I could simply replace my just written SynchronizedFormatter class. The parsing methods of jodas DateTimeFormatter took about 4 microseconds (about ten times faster than the SimpleDateFormat implementation) and the overall startup time of the app reduces dramatically.

If you do lots of formatting, parsing or calculation operations in your java applications you should definitely take a look at the joda-time library! this lib is really impressive!

regards René


Category: development | No Comments »

thougts about java7

January 20th, 2009 by breskeby

Today I took some time to take a deeper look at . in contrast to java6 the update to version 7 contains some language improvements again. In this post I take a quick look at some of these new language features.

1. Safe NULL-handling
I’m really glad to hear that for example the safe nullpointer dereferencing we already know from will be part of the java language. The syntax seems to be the same as in groovy. the safe dereferencing operator “?” can be used to avoid Nullpointer Exceptions in your code:
public String getPostcode(Person person) {
return person?.getAddress()?.getPostcode();
}

Instead of causing a NPE if person is a null object, the return value of this method will be null.

Another feature about safe handling with null objects is the null-default operator. In Java7 we happily needn’t write code like the following anymore:
String str = getSomeStringProperty();
str = (str != null ? str : "");

Writing str = str ?: “”; will do the trick.

These two improvements seemed to be heavily inspired by the groovy dynamic language. But it’s a pity that the groovy truth (null==false) apparently isn’t part of of java7, although the null-default handling is a part of that.

2. Improved catch clause
In Java7 it will be easier to handle two types of catched Exception by introducing the following syntax:
try {
return new ExampleClass();
} catch (InstantiationException | IllegalAccessException e) {
throw new AssertionError(e);
}
You can concatenate two or more exceptions, which you want to be handled the same way, by the using the new “|” operator. I think this is real code sugar. It will safe much lines of code. Till today i wrote private methods if I have to handle the same complex exception handling on different catched exceptions. Now this isn’t necessary anymore. :-)

3. switch statement with a string
I guess many developers wonder why this feature is not yet part of the Java language. I don’t often use switch statements. But if I use it, I really often miss that feature. Since Java7 the switch statements with string values (just like we already use in groovy) will be part of java.

4. Chained Invocation
A really nice new feature will be the support for chained invocation. what does this mean? think about the following code:
Person person = new Person()
person.setFirstname("Peter");
person.setSurname("Fox");
person.setAge(42);

This code isn’t really handsome. you have much boilerplate code for just creating a person. this maybe can be solved using constructers with lots paramters. This isn’t really nice stil. To avoid this boilerplate code the developer can profit on the new chained invocation feature. java7 allows void methods to implicitly return this. this results in the following java7 code:

Person person = new Person()
setFirstname("Peter")
setSurname("Fox")
setAge(42);

Btw, of course it is already possible to write this code in java5 and earlier, but this requires a breach with the java bean model since you have return this explicitly.

This was just an abstract of the complex java7 topic. I’m really looking forward to the java7 release. Since coding a lot of groovy code the last days, I am a spoiled child who doesn’t want to miss these features in his daily java development.

Finally excuse this bunch of language mistakes. Writing blog entries in english seems to be a good excercise for me and I determined, that english entries achieve more readers than german written ones.

Category: development, diverses | 1 Comment »

kultur-update II

January 16th, 2009 by Administrator

kurz vor weihnachten kam ich noch in den genuß den besten b-movie allerzeiten zu schauen. hier der trailer zu “death race 2000″:

YouTube - Link to 

gruß brskeine Tags gefunden

Category: diverses | 4 Comments »