Mr Yegge has some really good thoughts on how to build a large service platforms

I just finished reading Stevey's Google Platforms Rant.

Most of the attention this post has gotten is about the fact that Mr Yegge accidentally posted this publicly and how he goes on about his current company not doing things right. However if you look past the internal company politics rants and sarcasm about former employers this post is a really good article about how to build company wide service platforms.

It's really worth to read top to bottom.

Converting keystores between JKS and P12

From TECH BLOG FOR EJBCA ENTERPRISE OPEN SOURCE PKI's articel Converting keystores between JKS and P12.


Johan dug up these keytool commands, that with in JDK6 and onwards (not in JDK5 and earlier).

JKS → P12

keytool -importkeystore -srckeystore keystore.jks -srcstoretype JKS  -deststoretype PKCS12 -destkeystore keystore.p12

P12 → JKS

git cheat sheet

Here is my personal git cheat sheet.

Branches and tags

List branches local and remote

git branch -a

Make a local branch track a specific remote branch

git branch --set-upstream localbranch origin/remotebranch

push and delete remote branches

http://gitready.com/beginner/2009/02/02/push-and-delete-branches.html

Restore a deleted tag

This is stolen from Baptiste Wicht blog post Git Tip : Restore a deleted tag.

Setting up SMTP server on a development test server running Ubuntu

This is a simple step-by-step tutorial to install and configure exim to route all e-mails send though a local SMTP server to one local user, regardless of the e-mail address or domain. I found this set-up very usefull when testing applications that send e-mail messages and you do not want to generate multiple HotMail accounts for testing or in case I'm wanted to do some testing and development when I'm offline.

Install exim

Start with installing exim.

Provide one datasource with two different JNDI names in JBoss

While testing your JBoss service it can be very handy to use DefaultDS as your data source. However you will probably not want to hardcode this JNDI name into your code, jboss-server.xml, web.xml or persistence.xml (depending on service you write). There you want to use your own "MyAppDS" JNDI name. So wouldn't it be sweet to be able to bind two different JNDI names to the same datasource ?

It is possible and quite simple however I could not really find any good example while Googling the problem. So here is a short description how I solved my problem.

Ubuntu 10.10 on ASRock X58 Extreme3

As a Xmas-gift to myself I decided to replace my 10 year old workstation with a new one. After recommendations from a friend I decided to buy the new computer from Mr. PC Computers. I also enjoy supporting local dealers. The very next day I could collect the computer and once at home I downloaded and installed Ubuntu 10.10 (Maverick Meerkat).

Hardware specs and BIOS settings

Processor
Intel Core i7 950 3066MHz Socket 1366 Box

Black stripes in Spotify running under Wine

I just installed Spotify on my Ubuntu 10.10 using the Windows binary and running under Wine.

Spotify started OK but some areas where blacked out and others where blacked out while hovering the mouse over. With some Googeling I found a solution posted by Erik Andrén.

Thanks Erik!

WSS4J Tutorial revisit

While reading the WSS4J - Axis Deployment Tutorial I found it somewhat lacking. Also in later versions of Axis it seems that the StockQuoteService has been changed.

So here is a reworked version.

Backup DVD using HandBrakeCLI

Making copies of your DVD movies into MKV format has never been easier thanks to HandBrake.

Below is a small shell script that uses HandBrakeCLI to save the longest title and Swedish subtitle into MKV format.

#!/bin/bash
# This is a simple shell script which will
# grab the longest title and Swedish subtitle and
# then encode it as MKV
#
TITLE=`lsdvd -c | grep "Disc Title" | gawk '{

Keeping a central file repository

I have multiple computers for which I would like to keep files in sync.
I also happen to have a account on DreamHost as a webhosting company. There hosting plan includes a 50GB backup user so why not take advantage of that.

Syndicate content