Counter Update
Personal . PHPBefore i will do the great update of my counter script (i plan to switch to Java/Play with some basic DWH Features), i just added some dynamic webpage screen rendering based on thumbalizr (have a look here)
Running a Rails 3 Application in a Sub-URI Enviroment
Hacking . ruby . Ruby on RailsSometimes you need to run your Rails (3) Application on a Sub-URI (e.g. examle.com/prod, example.com/dev). In my current Project there was a Problem with that Configuration and the Rails url-helpers (link_for, url_for, usw.) becourse the app wasn’t aware of the necessary prefix (in our example “/dev”, “/prod”). There is always the possibility to set the
Testing Play! Applications with HTTP Basic Auth
Java . Play! FrameworkUm eine Play!-Anwendung zu testen, welche HTTP-Basic-Auth verlangt ist es notwendig, die Standard-Datei ApplicationTest.java anzupassen: Verändert werden muss die Test-Methode testThatIndexPageWorks(): Aus @Test public void testThatIndexPageWorks() { Response response = GET(“/”); assertIsOk(response); assertContentType(“text/html”, response); assertCharset(play.Play.defaultWebEncoding, response); } Wird: @Test public void testThatIndexPageWorks() { Request request = FunctionalTest.newRequest(); request.user = “test”; request.password = “test”; request.url =
Play! Applications und der App-Context
Java . Play! FrameworkEs ist möglich, eine Play!-Anwendung sehr einfach in eine WAR-Struktur zu übertragen und in einen Application-Server zu deployen. Dies ist recht gut unter Deployment options in der Play!-Dokumentation recht gut erklärt. Was hier allerdings verschwiegen wird ist, wie man den notwendigen Context beim Routing konfiguriert. (Der Context ist der Pfad der Anwendung, welcher standardmäßig vom
Workstation Vorschlag, Dezember 2011
Personal . TechVorwort Hallo zusammen, da ich in letzter Zeit von vielen Seiten nach Vorschlägen und Ideen für eine aktuelle Workstation gefragt werde, habe ich mir mal die Zeit genommen, um so ein System unter aktuellen Gegebenheiten zusammen zu stellen: Das System soll folgende Anforderungen erfüllen: Ausreichend Speicher und CPU, um eine oder mehrere Test-VMs neben den
WIP – Working in Progress
Hacking . VirtualisierungI just installed OpenIndiana with a ZFS Raid z1 on an old 1HE Rack Server. I was also able to make VirtualBox running :-). It looks like there will be some fun in the nearer future!
Jenkins/Hudson Password Hash Format
Java . SecurityNice to know: The Build-In Security Realm of Jenkins/Hudson is based on acegisecurity. The Hash is Sha256 based. For a Salt foo and a password bar , you have to Hash bar{foo} , that’s then 77ce9123f864f6749a2b2c99b988089c21d33e39247f7b1276dfad01a112f038 (via hashgenerator.de) You find the Hashes in <Jenkins-Dir>/users/<username>/config.xml it is then storred as <?xml version=”1.0″ encoding=”UTF-8″ standalone=”yes”?> <user>
maven is not ant
Build . Java . ToolingNeben vielen berechtigten Kritikpunkten die manch einer dem Build-Tool Maven vorwerfen kann, ist oftmals der falsche Einsatz einer der Hauptgründe für die schlechte Perfomance (d.h. lange Build-Zeiten) die fehlerhafte Nutzung von Maven Features. Oft sieht man, dass Module untereinander durch relative Pfadangaben verknüpft sind. Dies mag bei Ant-Builds ein gängiges Mittel sein, aber wenn man
Upload von Third-Party Artefakten in ein Maven Repository per SCP
JavaManchmal gibt es den Fall, dass es notwendig ist, eine externe Bibliothek in einem Maven Projekt einzubinden. Um nun im Build Zyklus des Maven-Projektes keinen Bruch zu erhalten bietet es sich an, dass Artefakt manuell als Maven Artefakt im Repository zur Verfügung zu stellen. Wir benutzen bei consolving.de u.a. ein öffentliches Maven Repository ( maven.javastream.de