Skip to content

Instantly share code, notes, and snippets.

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/us.artaround.android.ui.ArtMap}: 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 android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2496)
11-12 01:03:41.493: ERROR/AndroidRuntime(3637): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2512)
11-12 01:03:41.493: ERROR/AndroidRuntime(3637): at android.app.ActivityThread.access$2
@cvrabie
cvrabie / Boot.scala
Created August 2, 2012 15:20
Transaction wrapper for ORBroker in LiftWeb
class Boot extends Loggable {
/* ORBROKER JDBC CONNECTION */
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)
ORBrokerHelper(dbDriver,dbUrl,dbUser,dbPass,cf)

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!
<!DOCTYPE html>
<meta charset="utf-8">
<link rel="stylesheet" href="http://cmx.io/v/0.1/cmx.css">
<script src="http://cmx.io/v/0.1/cmx.js" charset="utf-8"></script>
<style>.cmx-user-scene4 .cmx-text-border .cmx-path {stroke: orange}</style>
<body>
<div style="max-width:900px; -webkit-transform:rotate(0deg)">

Keybase proof

I hereby claim:

  • I am cvrabie on github.
  • I am cvrabie (https://keybase.io/cvrabie) on keybase.
  • I have a public key ASAmDkE3uYNgS9dghKC62mDRggpSPwVq4_aqYeBQCL3_2go

To claim this, I am signing this object: