Skip to content

Instantly share code, notes, and snippets.

View vertiginous's full-sized avatar

Gordon Thiesfeld vertiginous

View GitHub Profile
### How *I think* -n works ###
# install:
$ rvm install --branch hydra rbx-nhydra
#use:
$ rvm rbx-nhydra
### How I wish it worked ###
# install:
$ rvm install --branch hydra rbx -n hydra
@vertiginous
vertiginous / my_changes.diff
Created February 25, 2011 16:45
compile errors
C:\Users\gthiesfeld\Work\repo\rubyinstaller>rake interpreter:shoes:compile
(in C:/Users/gthiesfeld/Work/repo/rubyinstaller)
Temporarily enhancing PATH to include DevKit...
cd C:/Users/gthiesfeld/Work/repo/rubyinstaller/sandbox/shoes
rake -t
(in C:/Users/gthiesfeld/Work/repo/rubyinstaller/sandbox/shoes)
The system cannot find the path specified.
cp platform/msw/shoes.ico shoes/appwin32.ico
** Invoke default (first_time)
** Invoke build (first_time)
var Scheduler = function(){
this.minDate = new Date(2011, 2, 7);
this.maxDate = new Date(2011, 2, 11);
this.update_time = function(value, element) {
var date = new Date(this.minDate.getTime());
date.setTime(date.getTime() + value);
element.val(date.strftime("%a %R"));
};
var Scheduler = {};
Scheduler.minDate = new Date(2011, 2, 7);
Scheduler.maxDate = new Date(2011, 2, 11);
Scheduler.update_time = function(value, element) {
var date = new Date(Scheduler.minDate.getTime());
date.setTime(date.getTime() + value);
element.val(date.strftime("%a %R"));
};
#include <windows.h>
#include <stdio.h>
int run(CHAR *path)
{
WIN32_FILE_ATTRIBUTE_DATA wfad;
int a, e;
printf("Checking '%s'\n", path);
a = GetFileAttributesEx(path, GetFileExInfoStandard, &wfad);
@vertiginous
vertiginous / gist:801907
Created January 29, 2011 15:16
File#realpath behavior on Windows
C:\>ruby --disable-gems -S irb
irb(main):001:0> File.realpath('repo')
### FindFirstFileW ( "C:\repo", 0x0028e800 )
### FindClose ( 0x00754d10 )
=> "C:/repo"
irb(main):002:0> File.expand_path('repo')
### FindFirstFileA ( "C:/repo", 0x0028eac0 )
@vertiginous
vertiginous / gist:801331
Created January 29, 2011 00:36
API Monitor V2
API
FindFirstFileW ( "C:\Users", 0x0028e800 )
FindClose ( 0x00469540 )
FindFirstFileW ( "C:\Users\gthiesfeld", 0x0028e7f0 )
FindClose ( 0x00469540 )
FindFirstFileW ( "C:\Users\gthiesfeld\.pik", 0x0028e7e0 )
FindClose ( 0x00469540 )
FindFirstFileW ( "C:\Users\gthiesfeld\.pik\rubies", 0x0028e7d0 )
FindClose ( 0x00469540 )
FindFirstFileW ( "C:\Users\gthiesfeld\.pik\rubies\ruby-1.9.3-dev", 0x0028e7c0 )
API
FindFirstFileA ( "C:/Users/gthiesfeld/.pik/rubies/ruby-1.9.3-dev/bin", 0x0028f790 )
FindClose ( 0x009814d0 )
FindFirstFileA ( "C:/Users/gthiesfeld/.pik/rubies/ruby-1.9.3-dev/bin", 0x0028f3d0 )
FindClose ( 0x009814d0 )
FindFirstFileA ( "C:/Users/gthiesfeld/.pik/rubies/ruby-1.9.3-dev/bin/enc/encdb.so", 0x0028f570 )
FindFirstFileA ( "C:/Users/gthiesfeld/.pik/rubies/ruby-1.9.3-dev/lib/ruby/site_ruby/1.9.1", 0x0028f3d0 )
FindClose ( 0x009814d0 )
FindFirstFileA ( "C:/Users/gthiesfeld/.pik/rubies/ruby-1.9.3-dev/lib/ruby/site_ruby/1.9.1/enc/encdb.so", 0x0028f570 )
FindFirstFileA ( "C:/Users/gthiesfeld/.pik/rubies/ruby-1.9.3-dev/lib/ruby/site_ruby/1.9.1/i386-msvcrt", 0x0028f3d0 )
# TID Module API Return Error
1 6312 msvcrt-ruby191.dll GetCurrentDirectoryA ( 0, NULL ) 29
2 6312 msvcrt-ruby191.dll GetCurrentDirectoryA ( 200, 0x00562450 ) 28
3 6312 msvcrt-ruby191.dll FindFirstFileA ( "C:/repo/simple-bench-ruby-io", 0x0028f790 ) 0x00aa1410
4 6312 msvcrt-ruby191.dll FindClose ( 0x00aa1410 ) TRUE
5 6312 msvcrt-ruby191.dll FindFirstFileA ( "C:/repo/simple-bench-ruby-io", 0x0028f3d0 ) 0x00aa1410
6 6312 msvcrt-ruby191.dll FindClose ( 0x00aa1410 ) TRUE
7 6312 msvcrt-ruby191.dll FindFirstFileA ( "C:/repo/simple-bench-ruby-io/enc/encdb.so", 0x0028f570 ) INVALID_HANDLE_VALUE 3 = The system cannot find the path specified.
8 6312 msvcrt-ruby191.dll FindFirstFileA ( "C:/Users/gthiesfeld/.pik/rubies/ruby-1.9.3-dev/lib/ruby/site_ruby/1.9.1", 0x0028f3d0 ) 0x00a9f470
9 6312 msvcrt-ruby191.dll FindClose ( 0x00a9f470 ) TRUE
rm -r tmp
mkdir -p tmp
windres -DCUI src/exerb/resource.rc tmp/resource_cui.o
(in C:/Users/gthiesfeld/Work/repo/exerb-mingw)
Temporarily enhancing PATH to include DevKit...
mkdir -p tmp/patched
mkdir -p tmp
gcc -g -O2 -DFD_SETSIZE=256 -DRUBY_EXPORT -Isrc/mingw -IC:/Users/gthiesfeld/.pik/rubies/Ruby-187-p330/lib/ruby/1.8/i386-mingw32 -Isrc/mingw187 -c -o tmp/eval.o tmp/patched/eval.c
tmp/patched/eval.c: In function 'rb_eval_string_wrap':
tmp/patched/eval.c:1744:5: warning: assignment discards qualifiers from pointer target type