echo ‘enabled=0’ | sudo tee /etc/default/apport
Mercurial settings
[extensions] hgext.bookmarks = rebase = hgext.purge = color = [ui] username = Daniel Worthington-Bodart [merge-tools] meld.executable = meld meld.args = $local $base $other -o $output [auth] google.prefix = code.google.com google.username = ********** google.password = ********** google.schemes = http https [alias] pull = pull –rebase nuke = !$HG revert –all –no-backup ; $HG purge
Setting the Default Schema with Oracle JDBC Driver
If you use C3PO you can make it do it when it checks the connection out. As properties: c3p0.preferredTestQuery=alter session set current_schema=animals c3p0.testConnectionOnCheckout=true As Java code: ComboPooledDataSource dataSource = new ComboPooledDataSource(); dataSource.setPreferredTestQuery(“alter session set current_schema=animals”); dataSource.setTestConnectionOnCheckout(true); Downside is this will happen every time the connection is taken out of the pool If you are using […]
Why Functional Programming in Java is NOT Dangerous
This is a quick post in response to Elliotte Rusty Harold article titled Why Functional Programming in Java is Dangerous. Lets look at the some of the points made: Lazy evaluation JIT / JavaC can’t optimise Recursion The example that Elliotte uses comes from Bob Martins article done in clojure (take 25 (squares-of (integers))) Lets […]
Samsung Series 9 (NP900X3C-A05UK) Ubuntu/Linux: Wake up when I open the lid
So one of the last things that wasn’t perfectly working was coming out of suspend when I opened the lid. First thing you need to so is find the name of the LID switch: ls /proc/acpi/button/lid/ LID0 Mine seems to be LID0 or LID1. You can then check it’s current state by doing: cat /proc/acpi/button/lid/LID0/state […]