Skip to content

Instantly share code, notes, and snippets.

View olsonjeffery's full-sized avatar
💭
:3

Jeff Olson olsonjeffery

💭
:3
View GitHub Profile
@olsonjeffery
olsonjeffery / callstack.txt
Created June 23, 2011 16:23
spidermonkey crash call stack
#0 0x659629 js::Interpret(JSContext*, JSStackFrame*, unsigned int, JSInterpM
ode) () (??:??)
#1 0x490925 js::RunScript(JSContext*, JSScript*, JSStackFrame*) () (??:??)
#2 0x4927e2 js::Invoke(JSContext*, js::CallArgs const&, unsigned int) () (??
:??)
#3 0x42a0c4 array_extra(JSContext*, ArrayExtraMode, unsigned int, js::Value*
) () (??:??)
#4 0x65f581 js::Interpret(JSContext*, JSStackFrame*, unsigned int, JSInterpM
ode) () (??:??)
#5 0x490925 js::RunScript(JSContext*, JSScript*, JSStackFrame*) () (??:??)
@olsonjeffery
olsonjeffery / README.md
Created June 14, 2011 15:19
A crash-course in building out a badass ubuntu dev vm

Setting up a 64-bit ubuntu vm

VM creation and OS install

  1. Create a virtualbox 64bit ubuntu VM.. whatever you need (1024MB RAM and 1 proc work fine for me)
  2. Install Ubuntu Natty 11.04 Desktop amd64

Setup environment

  1. sudo apt-get update && sudo sudo apt-get upgrade .. make sure all updates are installed.
  2. sudo apt-get install git-core git-gui gitk curl build-essential autoconf automake bison screen openssl libreadline6 libreadline6-dev zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev uuid-dev vim-gnome vim-nox exuberant-ctags libnspr4-dev mercurial libasound2-dev libcurl4-openssl-dev libnotify-dev libxt-dev libiw-dev mesa-common-dev autoconf2.13 yasm libmozjs-dev cmake-gui codeblocks-dbg codeblocks-contrib codeblocks doxygen
@olsonjeffery
olsonjeffery / multirember -- bad
Created May 5, 2011 20:26
little schemer stuff.. '() vs quote() in racket
(define multirember
(lambda (a lat)
(cond
((null? lat) ('()))
((eq? (car lat) a) (multirember a (cdr lat)))
(else (cons (car lat)
(multirember a (cdr lat)))))))
> (multirember 'jeff '(jeff kerra jeff))
procedure application: expected procedure, given: '() (no arguments)
CC gnome_shell_real-main.o
CCLD gnome-shell-real
/usr/bin/ld: gnome_shell_real-main.o: undefined reference to symbol 'meta_run'
/usr/bin/ld: note: 'meta_run' is defined in DSO /home/jeff/gnome-shell/install/l
ib64/libmutter-wm.so.0 so try adding it to the linker command line
/home/jeff/gnome-shell/install/lib64/libmutter-wm.so.0: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[3]: *** [gnome-shell-real] Error 1
make[3]: Leaving directory `/home/jeff/gnome-shell/source/gnome-shell/src'
make[2]: *** [all] Error 2
# jhbuild build -afc on ubuntu natty alpha 3 x64
make[4]: Entering directory `/home/jeff/gnome-shell/source/mutter/src/compositor/plugins'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/home/jeff/gnome-shell/source/mutter/src/compositor/plugins'
make[4]: Entering directory `/home/jeff/gnome-shell/source/mutter/src'
CCLD mutter
/usr/bin/ld: mutter.o: undefined reference to symbol 'g_printerr'
/usr/bin/ld: note: 'g_printerr' is defined in DSO /home/jeff/gnome-shell/install/lib64/libglib-2.0.so.0 so try adding it to the linker command line
/home/jeff/gnome-shell/install/lib64/libglib-2.0.so.0: could not read symbols: Invalid operation
CC libgnome_shell_la-shell-recorder-src.lo
CCLD libgnome-shell.la
CC gnome_shell_calendar_server-calendar-sources.o
CC gnome_shell_calendar_server-gnome-shell-calendar-server.o
cc1: warnings being treated as errors
calendar-server/gnome-shell-calendar-server.c: In function ‘app_load_events’:
calendar-server/gnome-shell-calendar-server.c:603: error: implicit declaration of function ‘e_cal_view_stop’
make[3]: *** [gnome_shell_calendar_server-gnome-shell-calendar-server.o] Error 1
make[3]: Leaving directory `/home/jeff/gnome-shell/source/gnome-shell/src'
make[2]: *** [all] Error 2
@olsonjeffery
olsonjeffery / clutter build error in jhbuild -- clutter git daa6d67
Created February 26, 2011 17:04
clutter daa6d67 from git, via jhbuild
## did a `jhbuild buildone -f -n mutter and got this...
make[5]: Leaving directory `/home/jeff/gnome-shell/source/clutter/clutter/cogl/p
ango'
make[5]: Entering directory `/home/jeff/gnome-shell/source/clutter/clutter/cogl'
make[5]: Nothing to be done for `all-am'.
make[5]: Leaving directory `/home/jeff/gnome-shell/source/clutter/clutter/cogl'
make[4]: Leaving directory `/home/jeff/gnome-shell/source/clutter/clutter/cogl'
make[4]: Entering directory `/home/jeff/gnome-shell/source/clutter/clutter'
CC clutter-backend-x11.lo
@olsonjeffery
olsonjeffery / gnome-shell-extension-file-import.txt
Created February 14, 2011 19:50
import other modules from extensions...
10:37 <@owen> pfox__: don't think there's any way at the moment
10:39 < pfox__> owen: wow. bummer.. i guess i can have a "build" script to cat the files together or something into an extension.js
10:39 < pfox__> still sucks.
10:39 <@owen> pfox__: or you can improve the situation!
10:39 <@owen> (though I think that might require gjs hacking.)
10:40 < pfox__> owen: yeah.. trying to think of where to start
10:40 < pfox__> i guess commjs require() would be a good way to do it
10:40 < pfox__> i have no idea where it should be impl'd, though
10:40 < pfox__> commonjs, even
10:40 <@owen> pfox__: doesn't seem to make sense to me - we have a way of doing imports with 'imports' having a *different* way in addiiton would just be weird
@olsonjeffery
olsonjeffery / gnome-shell-signals.txt
Created February 12, 2011 16:42
gnome-shell signals for window stuff .. #gnome-shell on irc.oftc.org
< pfox__> Where would do I need to look in the gnome-shell
code to see the signals exposed for window
creation/destruction and workspace switching? can i
keep it confined to the js?
08:35 -!- elleuca [[email protected]] has
left #gnome-shell []
08:36 < milanbv> pfox__: they are in Mutter
08:36 < milanbv> but you can use them from JS
08:37 < milanbv> the code is in
~/gnome-shell/source/mutter/src/core/workspace.c
@olsonjeffery
olsonjeffery / gist:749108
Created December 20, 2010 22:21
issue with backbone + zepto in ff 3.6
The Error:
element["insertAdjacent" + (html instanceof Element ? "Element" : "HTML")] is not a function
http://localhost:8080/scripts/zepto.js
Line 145
the zepto.js is 5ecaa (HEAD of the zepto repo)
backbone.js is 261059 (HEAD of backbone's repo)
the stack looks like..