Building Native MacOS Apps with Java
Hacking . Java . MacSome Time ago, Java and MacOS were friends. You could just open XCode choose “Java Application” and start coding your app. But since the last version of Xcode 3 and finally with the release of Xcode 4 all the nice Cocoa/Java Bindings were gone. The normal way of Apple to cleanup their System and make
iPhoto crashes on Lion 10.7 after the update to 9.3
HackingAfter the latest iPhoto update to Version 9.3 i experienced a reproducable crash of iPhoto. This was the error i found in the Crah-Report. Library not loaded: /System/Library/PrivateFrameworks/CoreMediaIOServices.framework/Versions/A/CoreMediaIOServices After some time i found some solution in the apple support forums. You just need to restore the folder /System/Library/PrivateFrameworks/CoreMediaIOServices.framework from your latest backup. I really wounder
Fixing Redirects of a Play! App behind an Apache2 SSL Proxy
Java . Network . Play! FrameworkSo you just finished your first Play! App. You want to run that thing behind an Apache2 as a HTTPS Proxy, because you do not want, that your User-Credentials are read as clear text. So a very basic Apache Configuration looks like this: <IfModule mod_ssl.c> Listen 443 SSLRandomSeed startup builtin SSLRandomSeed
Hacking just for Fun: using Bookmarklets
Hacking . Javascript . Play! Framework . SnippetsSo there are a handful of webtools using Bookmarklets for their services. The first i know was del.icio.us for saving a Webpage to your del.icio.us bookmarks. Another famous service is Instapaper (it uses internally read it later pocket, but that is another Story). I have a special service in mind, i want to create using
Hacking just for Fun: Get Mails from IMAP with Java
Hacking . JavaI have the feeling, that i might need this someday :-). Collecting Mails from an IMAP Server with Java is pretty easy: package de.javastream.imapcollector; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.Properties; import javax.mail.Folder; import javax.mail.Message; import javax.mail.Multipart; import javax.mail.Part; import javax.mail.Session; import javax.mail.Store; import javax.mail.internet.MimeBodyPart; import javax.swing.JOptionPane; public class App { public static void getMail(String host,
Hacking just for Fun: Raid5 in Java
Hacking . Java . SnippetsI was just curious how easy it might be to write a RAID5 compatible Outputstream in Java? Just a few Lines. For sure it is not the most elegante solution. Especially if you see the nice possibility to integrate one Outputstream within another… so maybe two Raid5s into one Raid0 Stream? (would be RAID50) then.
Run local/remote terminal commands with java using ssh
Java . Network . Play! Framework . SnippetsSometimes you need to use some CLI-Tools before you want to create or search for a native JNI Binding. So there is a common way, using the Java Process-Class. But then you might meet two problems i had to face in the past during several problems: There are (a really small) number of CLI-Tools, that
Counter Update
DB . Java . Play! FrameworkI just finished my latest improvements to the legacy version of my counter script. I just added the lookup for ISPs and added dynamic scaling for the axis legend. I will now going forward to change the whole system to a more sophisticated software, e.g. using a Datawarehouse approach. The first version of the Data-Model
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