Android Market - The power of the latest comment
I've watched my download statistics closely about a month for Workout Rotation Diary on Android Market.I've seen a clear pattern telling me that the latest comment has a huge of impact on daily...
View ArticleRescue Ubuntu 10.04 graphics crash after grub
This is a note to self, in case I run into this problem again. Obviously a (beta) problem with the nvidia -driver.The symptoms is that you get the grub chooser showing just fine, but get a distorted...
View ArticleSynergy between Ubuntu and OS X
I use Synergy to share one set of mouse and keyboard between my workstation PC, running Ubuntu 10.04 and my laptop sitting on my desk next to my workstation screen. The laptop is running OS X.How about...
View Articlesshfs - brilliantly simple
Got another linux/unix -box sitting somewhere in your home? I do, and I want _everything_ available to me from where I sit at my desktop.I've used nfs quite a bit in the past, while quite easy to...
View ArticleSpotify links in Ubuntu & Chrome
Spotify doesn't work in Linux, natively. (edit: it does now) So it's done using wine following this excellent howto.This means however, that Chrome (and your Ubuntu) is unaware of spotify running...
View Article+rw clipboard
I saw some guy do a cat on some file (directly into his clipboard) and then paste/ctrl-v the text into his editor. My brain immediataly went "gimme! gimme! gimme!"After a little googling around I found...
View Articlewatch your code do actual work - in runtime
Short version: Use AOP to log your method invocations. Store method input parameters and result object, serialized to XML. Put it all into context with a Graphviz file generated as a side-effect.Visual...
View ArticleTired of killing browsers?
Launching the browser a lot from your IDE while working on / developing <some> web app?Getting zillions of tabs or new browser instances?Killing them all by hand every now and then?Small trick...
View ArticleGetting that Skeleton test up
When creating a new unit test file, getting the import statics right with Hamcrest is 30 seconds of hassle, every time.Here is the typical unit test start-up I prefer:@Testpublic void skeletonTest()...
View ArticleAndroid Sources in Eclipse
I've blogged about getting Eclipse to show Android sources before, but these techniques no longer work. So I'll toss a working how-to out there again.I'm still baffled that Google hasn't ensured this...
View ArticleJavaScript Continous Testing Smackdown
I'm pretty new to serious JavaScript coding. By serious, I mean writing lots of pure JavaScript, as a contrary to putting some JavaScript functions into your <script> block to fizz things up.I...
View ArticleCheat sheet: ssh + screen + irssi
Cheat Sheet: SSH + IRSSI + SCREEN 1. ssh user@myserver2. screen -r resumes your screen. screen starts a new one, then type irssi3. /server irc.freenode.org to connect to the server. /join #channelName...
View ArticleHOWTO: Grails / GORM + Oracle Schema
By simply adding schema to your domain classes, you won't be able to get it working in h2 afterwards. Here is how you fix that.1. Update all your domain classesgrails-app/domain/Person.groovyclass...
View Articleuhm, there is a ~/.ssh/config file?
How did I miss this for all these years I've used ssh?~/.ssh/configlets you type #ssh homeinstead of#finn@84.215.xxx.xxx -p 10001Here is the ~/.ssh/configHost homeHostName 84.215.xxx.xxxPort 10001User...
View ArticleWhen I say Jump, Jenkins asks how high
... if you want even faster feedback than waiting for Jenkins to poll your stuff- In project config within Jenkins. Check: "Trigger builds remotely", add a token, like "foobar" into the textbox.- SSH...
View ArticleUnit test your logging
I have a few log statements which are really important for me in production. Without them, I would be screwed when tracking whats actually going on. So I decided that this important code shouldn't be...
View Articlegrails run-app and tomcat jmx
Want the standard Tomcat JMX exposed during development (grails run-app) ?Add this to your Config.groovy:grails.tomcat.jvmArgs=["-Dcom.sun.management.jmxremote",...
View ArticleUnit testing potential thread leakage
So you've bewildered yourself into the dark world of pain threads, and you wanna make sure your app doesn't leak threads.I found I had to calm my nerves by having tonnes of these Spock tests covering...
View ArticleGroovy / Grails / GORM - File Name Too Long
Yet another "File Name Too Long" workaround :-(Normal day - was just gonna add one more check to my nice .where{} closure. But when I did, everything blew up in my face - and I'm sitting here with no...
View ArticleMocking grailsApplication
You don't have to mock grailsApplication, unless you've put yourself in the same boat as me and like writing pure jUnit. Keep running grails test-app all the time is just annoying and slow. Note I...
View ArticleEasier Killing
Who are you?"I take the long road" -guy (this has been me for years and years)ps -ax | grep <something describing my process>look for the <pid>type kill -s 9 <pid>"I made a shortcut"...
View ArticleDigging into EHCache (and TTL)
Using a caching frameworks (like Grails Cache and Grails EhCache) instead of writing the caching mechanism yourself is comfortable. You find yourself smacking @Cacheable on listing operations and get...
View ArticleMinecraft server in Docker
Minecraft server, in a docker container Feel free to use the docker image uploaded to Docker Hub during this christmas holiday. Modify the /home/finn/minecraft_data -path to fit your server, and run...
View ArticleWindows 10 - United States International AltGr No Dead Keys
I use US keyboard. However I loose my native æøå letters if I use standard US layout. AltGR No Dead Keys fixes this problem.AltGR + z makes the "æ"AltGr + l makes the "ø"AltGr + w makes the "å"Holding...
View ArticleArticle 0
colored log(back) for unit tests in two stepsThe goalMake my own stuff yellow, and keep the other stuff grey.1. src/test/resources/logback.groovy(modify the namespace you wanna highlight as your own)2....
View Article
More Pages to Explore .....