How to install oracle java 7 update 11 (jdk-7u11) on debian linux

Currently you can’t install the new java sdk 7 update 11 from oracle using java_package. Usually you can simply follow this instruction: Installing oracle jre / sdk on debian.

Unfortunately the error is: No matching plugin was found.

But you can modify the script /usr/share/java-package/oracle-j2sdk.sh to accept the new package:

15,16c15,16
<       "jdk-7u"[0-9]"-linux-i586.tar.gz") # SUPPORTED
<           j2se_version=1.7.0+update${archive_name:6:1}${revision}
---
>       "jdk-7u"[0-9][0-9]"-linux-i586.tar.gz") # SUPPORTED
>           j2se_version=1.7.0+update${archive_name:6:2}${revision}
31,32c31,32
<       "jdk-7u"[0-9]"-linux-x64.tar.gz") # SUPPORTED
<           j2se_version=1.7.0+update${archive_name:6:1}${revision}
---
>       "jdk-7u"[0-9][0-9]"-linux-x64.tar.gz") # SUPPORTED
>           j2se_version=1.7.0+update${archive_name:6:2}${revision}

Worked for me:

The Debian package has been created in the current directory. You can
install the package as root (e.g. dpkg -i oracle-j2sdk1.7_1.7.0+update11_amd64.deb).

(#:/tmp)- dpkg -i oracle-j2sdk1.7_1.7.0+update11_amd64.deb
(Reading database … 225711 files and directories currently installed.)
Preparing to replace oracle-j2sdk1.7 1.7.0+update7 (using oracle-j2sdk1.7_1.7.0+update11_amd64.deb) …
Unpacking replacement oracle-j2sdk1.7 …
Setting up oracle-j2sdk1.7 (1.7.0+update11) …

(#:/tmp)- java -version
java version “1.7.0_11″
Java(TM) SE Runtime Environment (build 1.7.0_11-b21)
Java HotSpot(TM) 64-Bit Server VM (build 23.6-b04, mixed mode)

There is also a bug report: Bug#698108: jdk7u11 not supported

Edit: also works for java 7 update 12 (jdk-7u12), java 7 update 13 (jdk-7u13), java 7 update 14 (jdk-7u14) and java 7 update 15 (jdk-7u15)

Edit: Oh boy, too many updates recently.

Derweil in der DHL Service Zentrale (de_DE)

Meine Anfrage lautete:

Guten Tag,

das Paket erfordert eine Alterskontrolle und ich lasse es daher in die Firma, Straße XY schicken.

Leider bin ich am 31.12. nicht in der Firma und wollte nur fragen ob es möglich ist, die Auslieferung erst nach dem 02.01.2013 durchzuführen.

Ich denke auch Sie hatten dieses Jahr schon genug Stress

Am 09.01. kam dann folgende Antwort:

Sehr geehrter Herr Peter,

vielen Dank für Ihre Anfrage.

Wir bedauern, dass es in Ihrem Fall zu einer Verzögerung der Auslieferung gekommen ist und verstehen, dass Sie verärgert sind.

Ihre Sendung wurde laut unserer Systemanzeige inzwischen ausgeliefert.

Für die Ihnen entstandenen Unannehmlichkeiten und die verspätete Antwort bitten wir um Entschuldigung.

Sollten Sie noch Fragen haben, senden Sie uns einfach eine E-Mail. Bitte belassen Sie zur besseren Zuordnung Ihrer Anfrage den bisherigen Schriftverkehr in der Mail. Herzlichen Dank!

Unsere Kundenberater stehen Ihnen aber auch unter der unten aufgeführten Serviceline gern zur Verfügung.

Mit freundlichen Grüßen

Danke. omg.

Created a shortcut cheat sheet for the clojure foreplay vim plugin

In Meikel Brandmeyer’s post “On the state of VimClojure” he mentioned the alternative “foreplay” to his vimclojure repl solution which is using ng-server.

I tried the plugin and liked it. It has a more robust feel and very easy setup – none required to be precise. You can simply start your nrepl using lein repl and the plugin automagically talks to it.

There are quite some useful shortcuts you should know, therefore I created a foreplay-cheat-sheet (PDF) which might be helpful at the beginning.

Maybe the more often required commands should be on top, but I guess you’ll learn those quite fast anyway.

I created it manually from the foreplay vim documentation, so the content is actually from Tim Pope. The office document is available here foreplay-cheat-sheet.odt

hth

Energiesparlampe entsorgen, gar nicht so einfach (de_DE)

Nun hat die gute Energiesparlampe doch einmal den Geist aufgegeben und ich wollte sie entsorgen. In einem Anflug von Umweltbewusstsein wollte ich dem kleinen Zeichen auf dem Leuchtmittel, welches mir sagt es doch bitte nicht in den Müll zu schmeißen, nachgehen und habe versucht mich an den Einzelhandel zu wenden.

Bei REWE wollte ich eine eine neue Sparlampe kaufen und die alte einfach dort lassen. Man sagte mir dann allerdings einfach, dass man die Alten nicht annimmt.

Mein zweiter Versuch war im “Fachhandel”, ich ging zu Media Markt. Dort sagte man mir auch nur, dass sie das nicht mehr machen würden, es koste ja auch Geld das zu entsorgen. Ich müsse es auf den Wertstoffhof bringen.

Nunja, mit der einen Birne fahre ich jetzt nicht dort hin und werde wohl noch ein wenig sammeln müssen. Vielleicht beim nächsten Umzug oder ich darf auf eine bessere Regelung durch den Gesetzgeber hoffen, da seit einiger Zeit sowieso nur noch diese Leuchtmittel verkauft werden dürfen.

Folgendes habe ich jedoch im Netz zu dem Thema gefunden energienutzer.de:

Entsorgung – wo kann ich alte Energiesparlampen zurückgeben?
Verbraucherorganisationen fordern seit langem eine generelle Rücknahme, aber bisher nehmen leider nur wenige Händler defekte alte Energiesparlampen zurück. [...] Nimmt Ihr Händler Ihre Lampe nicht zurück, bleibt nur die sachgerechte Entsorgung als Sondermüll mit Abgabe im Schadstoffhof oder bei einem in vielen Städten herumkurvenden Schadstoffmobil

Simple xmpp standup meeting notification for the team

I guess you all know it – when it is standup time some notice it immediately while others are still on the phone or some still digging in the code. It does help to have a calendar notification but everyone has to enable it etc.

At my work we are all using the company wide jabber service and it’s a great tool I think. With these few steps you can build a simple notifier for your team.

First you’ll have to install sendxmpp. For debian:
% apt-get install sendxmpp

The usage is easy and you can write a simple script file and place it in your PATH.
% cat bin/standupnote
#!/bin/sh

MEMBERS="
fred@jabber.example.com
barney@jabber.example.com
pebbles@jabber.example.com
"

echo "Reminder: Standup Meeting! :-) " | sendxmpp $MEMBERS

Your credentials have to be added to added to the ~/.sendxmpprc file. Don’t forget to chmod 600 it!
echo "user@jabber.example.com password componentname" > ~/.sendxmpprc && chmod 600 ~/.sendxmpprc

And finally you should install a cronjob to run the script at standup time. Simply run as user and edit the config file:
% crontab -e
# m h dom mon dow command
45 10 * * 1,2,3,4,5 /home/fred/bin/standupnote

Yes, our meeting is not until 10:45 … :-\

Clojure store persistent data structures gotcha – load-file size limit

In clojure – the data structure and their default representation are suited as readable and portable format to persist data. But there is a small pitfall in using it.

Data Structure example:

{
  :request-time 2636,
  :status 200,
  :headers
  {
    "server" "Server",
    "content-encoding" "gzip",
  }
}

Be aware that this function is intended to load code only. If your data structures or a string in them grow bigger than around 65,535 it crashes.

Exception similar to:

java.lang.ClassFormatError: Unknown constant tag 49 in class file parse$eval13

Please use read-string instead.

Example: (read-string (slurp "data.clj"))

Source: Rich Hickey on google groups Google Groups

XBMC windowed mode calibration (overscan) settings not remembered

I love XBMC, it is a great free media center, controllable via android phone with lot’s of cool plugins and even blue ray support.

But there was this bug annoying me. I am using two monitors and want to keep the mouse non captured, therefore using xbmc in maximized windowed mode instead of fullscreen. This works great but the overscan settings get lost on every restart, hiding great parts of the GUI.

The settings are written correctly to the “resolution” node in guisettings.xml with the description “Windowed” but are not loaded. After the next start the default settings are used and the config overwritten.

These forum posts or some posts of them might be related:
http://forum.xbmc.org/showthread.php?tid=104735
http://forum.xbmc.org/showthread.php?tid=132776

I tried to fix the problem myself and got up with a patch. There were a couple of problems preventing the settings from being loaded and applied – see pull request for details. It also seems like it makes sense to reset the overscan settings when the window is resized but upon initial start they should be loaded from the config.

See Ticket http://trac.xbmc.org/ticket/11861
Pull Request https://github.com/xbmc/xbmc/pull/1246

Edit:

Well, the xbmc folks answered quite fast, see below. Too bad but until then I got my patch.

FernetMenta commented
check out #1231
There are (and should) no calibration settings for windowed mode. Your original problem mentioned in the ticket 11861 will be fixed by not grabbing the mouse.

Follow

Bekomme jeden neuen Artikel in deinen Posteingang.

Schließe dich 76 Followern an