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 / 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 / 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
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
# 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 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
@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)
@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 / 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*) () (??:??)
// the main loop
let keep_going = true;
let uv_has_begun = false;
while (keep_going) {
let new_msg = comm::recv(rust_loop_port);
alt new_msg {
msg_run() {
// call uv_run()
if (uv_has_begun) {
fail "uv_run() already called";
// this is a hack to get libuv to cleanup a
// handle that was made to not prevent the loop
// from exiting via uv_unref().
uv_ref(op_handle->loop);
uv_close(op_handle, native_close_op_cb);
uv_run(op_handle->loop); // this should process the handle's
// close event and then return