Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am cvrabie on github.
  • I am cvrabie ( on keybase.
  • I have a public key ASAmDkE3uYNgS9dghKC62mDRggpSPwVq4_aqYeBQCL3_2go

To claim this, I am signing this object:

<!DOCTYPE html>
<meta charset="utf-8">
<link rel="stylesheet" href="">
<script src="" charset="utf-8"></script>
<style>.cmx-user-scene4 .cmx-text-border .cmx-path {stroke: orange}</style>
<div style="max-width:900px; -webkit-transform:rotate(0deg)">

Linux fun-o-matic

How to have some fun using the terminal.

  1. Install cowsay [0] via : sudo apt-get install cowsay
  2. Install fortune [1] via : sudo apt-get install fortune
  3. Make sure you have Ruby installed via : ruby -v
  4. Install the lolcat [2] via : gem gem install lolcat
  5. Profit!
cvrabie / Boot.scala
Created August 2, 2012 15:20
Transaction wrapper for ORBroker in LiftWeb
class Boot extends Loggable {
val broker = (for{
dbDriver <- Props.get("db.driver") ?~! "Need the db.driver property"
dbUrl <- Props.get("db.url") ?~! "Need the db.url property"
dbUser <- Props.get("db.user") ?~! "Need the db.user property"
dbPass <- Props.get("db.password") ?~! "Need the db.password property"
}yield {
val cf = new File(classOf[Boot].getResource("/sql").toURI)
11-12 01:03:41.413: WARN/dalvikvm(3637): threadid=3: thread exiting with uncaught exception (group=0x4001dc20)
11-12 01:03:41.413: ERROR/AndroidRuntime(3637): Uncaught handler: thread main exiting due to uncaught exception
11-12 01:03:41.493: ERROR/AndroidRuntime(3637): java.lang.RuntimeException: Unable to start activity ComponentInfo{us.artaround/}: android.database.sqlite.SQLiteException: ambiguous column name: slug: , while compiling: SELECT title, category, photo_ids, updated_at, ward, artist_slug, name, neighborhood, created_at, slug, longitude, latitude, location_description FROM arts,artists WHERE (arts.artist_slug=artists.slug)
11-12 01:03:41.493: ERROR/AndroidRuntime(3637): at
11-12 01:03:41.493: ERROR/AndroidRuntime(3637): at
11-12 01:03:41.493: ERROR/AndroidRuntime(3637): at$2