Skip to content

Instantly share code, notes, and snippets.

View eagleflo's full-sized avatar

Aku Kotkavuo eagleflo

View GitHub Profile
@eagleflo
eagleflo / It happened again
Created October 21, 2011 12:16
npm managed to uninstall itself
~ $ npm-g update
npm WARN jslint@0.1.0 package.json: bugs['web'] should probably be bugs['url']
npm WARN bcrypt@0.4.0 package.json: bugs['web'] should probably be bugs['url']
npm WARN htmlparser@1.7.3 package.json: bugs['web'] should probably be bugs['url']
npm ERR! Error: Cannot find module '/usr/local/lib/node_modules/npm/lib/build.js'
npm ERR! at Function._resolveFilename (module.js:326:11)
npm ERR! at Function._load (module.js:271:25)
npm ERR! at require (module.js:355:19)
npm ERR! at Object.<anonymous> (/usr/local/lib/node_modules/npm/lib/npm.js:186:15)
npm ERR! at /usr/local/lib/node_modules/npm/lib/install.js:602:22
@eagleflo
eagleflo / gist:1273751
Created October 9, 2011 14:28
Io installation error
~ $ brew install io --HEAD -v
==> Cloning https://github.com/stevedekorte/io.git
Updating /Users/aku/Library/Caches/Homebrew/io--git
git remote set-url origin https://github.com/stevedekorte/io.git
git fetch origin
git reset --hard origin/master
HEAD is now at fb1a114 Fix IoLanguageKit dylib issues
git checkout-index -a -f --prefix=/private/tmp/homebrew-io-HEAD-QEUJ/
==> Patching
/usr/bin/patch -f -p1 -i 001-homebrew.diff
@eagleflo
eagleflo / Kernel_2011-06-30-135330_L331.panic
Created July 5, 2011 10:32
Two apparently node-related kernel panics after updating to v0.4.9?
Interval Since Last Panic Report: 1637031 sec
Panics Since Last Report: 1
Anonymous UUID: B0298408-47AF-4111-B72D-A2CCD32099B4
Thu Jun 30 13:53:30 2011
panic(cpu 3 caller 0x2aab59): Kernel trap at 0x004a532c, type 14=page fault, registers:
CR0: 0x8001003b, CR2: 0x00000000, CR3: 0x00100000, CR4: 0x00000660
EAX: 0x00000000, EBX: 0x0dc91290, ECX: 0x0dc91290, EDX: 0x1affd404
CR2: 0x00000000, EBP: 0x7a3bbd28, ESI: 0x0dc91290, EDI: 0x17067620
EFL: 0x00010246, EIP: 0x004a532c, CS: 0x00000008, DS: 0x00290010
@eagleflo
eagleflo / gist:941256
Created April 25, 2011 21:19
Haskell web frameworks—first impressions

Haskell web frameworks—first impressions

I'm currently exploring Haskell and how suitable it would be for web development. I've been toying around with Haskell a little previously, but I have absolutely no idea of what to expect when it comes to web frameworks in Haskell. I'm currently looking at two alternatives: [Snap][snap] and [Yesod][yesod]. I thought it might be useful to record my first impressions and observations as I experience them. Perhaps material for a future blog post…

Installation

I'm installing Snap version 0.4.1 and Yesod version 0.8 on two machines running Mac OS X 10.6.7, Xcode 4.0.2, GHC 7.0.3 (trying both 32 and 64-bit versions) and Haskell Platform 2011.2.0.1.

I was happy to note that both of the frameworks are available from cabal. That means installation should be easy, right? Well…

@eagleflo
eagleflo / snap.txt
Created April 25, 2011 01:27
Haskell web framework compilation issues with GHC 7.0.3 and Haskell Platform 2011.2.0.1 on Mac OS X 10.6.7 and Xcode 4
~/ $ cabal update
Downloading the latest package list from hackage.haskell.org
~/ $ cabal install snap
Resolving dependencies...
Downloading MonadCatchIO-mtl-0.3.0.2...
Configuring MonadCatchIO-mtl-0.3.0.2...
Preprocessing library MonadCatchIO-mtl-0.3.0.2...
Building MonadCatchIO-mtl-0.3.0.2...
[1 of 1] Compiling Control.Monad.CatchIO ( Control/Monad/CatchIO.hs, dist/build/Control/Monad/CatchIO.o )
@eagleflo
eagleflo / gorb_macruby_errors.txt
Created September 25, 2010 05:15
gorb errors in alternative Ruby implementations
Aku-Kotkavuos-iMac:gorb aku$ macrake
(in /Users/aku/Dropbox/work/gorb)
Loaded suite /Library/Frameworks/MacRuby.framework/Versions/0.8/usr/lib/ruby/1.9.2/rake/rake_test_loader
Started
...unknown: warning: instance variable @board not initialized
E.EE.E..E..E..Eunknown: warning: instance variable @board not initialized
EEEEE.E...E
Finished in 0.963351 seconds.
1) Error:
@eagleflo
eagleflo / lein-new-reagent.txt
Last active August 29, 2015 14:17
lein new bugs
$ lein new reagent test
Exception in thread "main" java.lang.ExceptionInInitializerError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at clojure.lang.RT.loadClassForName(RT.java:2093)
at clojure.lang.RT.load(RT.java:430)
at clojure.lang.RT.load(RT.java:411)
at clojure.core$load$fn__5066.invoke(core.clj:5641)
at clojure.core$load.doInvoke(core.clj:5640)
at clojure.lang.RestFn.invoke(RestFn.java:408)
@eagleflo
eagleflo / evdev.lst
Last active August 29, 2015 14:13
Finnish (programmer) xkb keymap
programmer fi: Finnish (programmer)
@eagleflo
eagleflo / gist:d6d7f446a66ed37d7869
Created January 3, 2015 22:53
error: multiple dylib candidates for `std` found
$ cargo build --verbose
Fresh pkg-config v0.1.2
Compiling sdl2-sys v0.0.0 (file:///Users/akotkavu/src/rust-sdl2)
Running `rustc /Users/akotkavu/src/rust-sdl2/sdl2-sys/src/lib.rs --crate-name sdl2-sys --crate-type lib -g -C metadata=8c1af9e4e302d67b -C extra-filename=-8c1af9e4e302d67b --out-dir /Users/akotkavu/src/rust-sdl2/target/deps --emit=dep-info,link -L /Users/akotkavu/src/rust-sdl2/target/deps -L /Users/akotkavu/src/rust-sdl2/target/deps -L /usr/local/lib -l SDL2`
/Users/akotkavu/src/rust-sdl2/sdl2-sys/src/lib.rs:1:1: 1:1 error: multiple dylib candidates for `std` found
/Users/akotkavu/src/rust-sdl2/sdl2-sys/src/lib.rs:1 #![allow(non_camel_case_types)]
^
/Users/akotkavu/src/rust-sdl2/sdl2-sys/src/lib.rs:1:1: 1:1 note: candidate #1: /usr/local/lib/libstd-4e7c5e5c.dylib
/Users/akotkavu/src/rust-sdl2/sdl2-sys/src/lib.rs:1 #![allow(non_camel_case_types)]
^
Process: mooneye-gb [60045]
Path: /Users/USER/*/mooneye-gb
Identifier: mooneye-gb
Version: 0
Code Type: X86-64 (Native)
Parent Process: zsh [46215]
Responsible: iTerm [46210]
User ID: 501
Date/Time: 2014-12-27 01:38:19.684 +0200