Skip to content

Instantly share code, notes, and snippets.

View jrabbit's full-sized avatar
🍡

J Laxson jrabbit

🍡
View GitHub Profile
** (pino:97782): CRITICAL **: userpic_set_default: assertion `self != NULL' failed
(pino:97782): Gtk-CRITICAL **: gtk_widget_set_sensitive: assertion `GTK_IS_WIDGET (widget)' failed
(pino:97782): Gtk-CRITICAL **: gtk_label_set_markup: assertion `GTK_IS_LABEL (label)' failed
(pino:97782): Gtk-CRITICAL **: gtk_label_set_markup: assertion `GTK_IS_LABEL (label)' failed
(pino:97782): Gtk-CRITICAL **: gtk_label_set_markup: assertion `GTK_IS_LABEL (label)' failed
$ fink rebuild pino
Password:
Information about 8945 packages read in 2 seconds.
The following package will be rebuilt:
pino
Setting runtime build-lock...
dpkg-deb -b /sw/src/fink.build/root-fink-buildlock-pino-0.2.7-2 /sw/src/fink.build
dpkg-deb: building package `fink-buildlock-pino-0.2.7-2' in `/sw/src/fink.build/fink-buildlock-pino-0.2.7-2_2010.05.04-12.41.48_darwin-i386.deb'.
Installing build-lock package...
/sw/bin/dpkg-lockwait -i /sw/src/fink.build/fink-buildlock-pino-0.2.7-2_2010.05.04-12.41.48_darwin-i386.deb
Running install for module 'SDL'
Running Build for K/KT/KTHAKORE/SDL-2.405.tar.gz
Prepending /Users/jrabbit/.cpan/build/parent-0.223-QHxzM6/blib/arch /Users/jrabbit/.cpan/build/parent-0.223-QHxzM6/blib/lib /Users/jrabbit/.cpan/build/autodie-2.10-wPG3ad/blib/arch /Users/jrabbit/.cpan/build/autodie-2.10-wPG3ad/blib/lib /Users/jrabbit/.cpan/build/Test-Harness-3.21-bBuB8b/blib/arch /Users/jrabbit/.cpan/build/Test-Harness-3.21-bBuB8b/blib/lib /Users/jrabbit/.cpan/build/Text-Patch-1.4-agbMuo/blib/arch /Users/jrabbit/.cpan/build/Text-Patch-1.4-agbMuo/blib/lib to PERL5LIB for 'get'
Has already been unwrapped into directory /Users/jrabbit/.cpan/build/SDL-2.405-bw4psA
Prepending /Users/jrabbit/.cpan/build/parent-0.223-QHxzM6/blib/arch /Users/jrabbit/.cpan/build/parent-0.223-QHxzM6/blib/lib /Users/jrabbit/.cpan/build/autodie-2.10-wPG3ad/blib/arch /Users/jrabbit/.cpan/build/autodie-2.10-wPG3ad/blib/lib /Users/jrabbit/.cpan/build/Test-Harness-3.21-bBuB8b/blib/arch /Users/jrabbit/.cpan/build/Test-Harness-3.21-bBuB8b/blib
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I./bullet -I/sw/include/freetype2 -I/sw/include/ -I/sw/include/SDL -I/System/Library/Frameworks/OpenGL.framework/Versions/A -I/sw/include/freetype2 -I/sw/include -arch i386 -O2 -pipe -mmmx -msse2 -msse3 -m3dnow -ffast-math -mfpmath=sse -fno-trapping-math -ffinite-math-only -fno-signaling-nans -MT displaylists.lo -MD -MP -MF .deps/displaylists.Tpo -c displaylists.cpp -o displaylists.o >/dev/null 2>&1
In file included from commands.h:8,
from events.h:10,
from events.cpp:1:
../scenes/entities/worldb.h:259: error: ‘PFNGLISRENDERBUFFEREXTPROC’ does not name a type
../scenes/entities/worldb.h:260: error: ‘PFNGLBINDRENDERBUFFEREXTPROC’ does not name a type
../scenes/entities/worldb.h:261: error: ‘PFNGLDELETERENDERBUFFERSEXTPROC’ does not name a type
../scenes/entities/worldb.h:262: error: ‘PFNGLGENRENDERBUFFERSEXTPROC’ does not name a type
../scenes/entities/worldb.h:263: error: ‘PFNGLRENDERBUFFERSTORAGEEXTPROC’ does not name a typ
/sw/bin/generatorrunner:
libgenrunner.0.5.dylib (compatibility version 0.5.0, current version 0.5.0)
libapiextractor.0.6.dylib (compatibility version 0.6.0, current version 0.6.0)
/sw/lib/qt4-mac/lib/QtCore.framework/Versions/4/QtCore (compatibility version 4.6.0, current version 4.6.2)
/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.9.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.0.1)
def whohas(pac):
"""Run the included or system whohas and print the findings"""
p = Popen(['which', 'whohas'], stdout=PIPE).communicate()[0]
if not p == None:
wh = p
else:
wh = os.getcwd()+"/whohas-0.24/program/whohas"
cmd = str(wh)+" "+pac
print cmd
os.system(cmd)
$
*** LOCAL GEMS ***$
$
$
$
*** REMOTE GEMS ***$
$
webrick-high-performance (1.0.0)$
webrick-webdav (1.0)$
def search_gem(pac):
things = []
raw = Popen(['gem', 'search','-b', pac], stdout=PIPE).communicate()[0]
for x in raw.split('\n'):
if x and x != '*** LOCAL GEMS ***' and x != '*** REMOTE GEMS ***':
things.append(x)
if not things:
return
else:
print 'found ' + len(things) + ' results for ' + pac\
Found a fink install at /sw
Found a brew install at /omgponies
Found a gem install at /usr
Found a cpan install at /usr
['haberdashery.py', 'search', 'SDL', 'brew']
{'pip': 'None', 'fink': '/sw', 'cpan': '/usr', 'brew': '/omgponies', 'port': 'None', 'gem': '/usr'}
{'pip': <function search_pip at 0x3e8a70>, 'fink': <function search_fink at 0x3e8970>, 'cpan': <function search_cpan at 0x3e8af0>, 'brew': <function search_brew at 0x3e89b0>, 'port': <function search_port at 0x3e89f0>, 'gem': <function search_gem at 0x3e8ab0>}
trying to run a search on brew for SDL
from urllib2 import urlopen
import simplejson as json
import sys
user = sys.argv[1]
url = 'http://www.reddit.com/user/%s/about.json' % user
raw = urlopen(url).read()
data = json.loads(raw)['data']
#print data
karma = data['link_karma']