Skip to content

Instantly share code, notes, and snippets.

View jberkel's full-sized avatar

Jan Berkel jberkel

View GitHub Profile
<?xml version="1.0" encoding="UTF-8"?>
<project name="acra" default="help">
<!-- The local.properties file is created and updated by the 'android'
tool.
It contains the path to the SDK. It should *NOT* be checked into
Version Control Systems. -->
<property file="local.properties" />
<property file="build.properties" />
~/projects/system [master] $ knife cookbook upload -o cookbooks -a
INFO: ** activities **
INFO: Saving activities
INFO: Validating ruby files
INFO: Validating templates
INFO: Syntax OK
INFO: Generating Metadata
INFO: Uploading files
INFO: Upload complete!
INFO: ** admin **
#"sorting" python dicts
sorted(nx.degree(G).items(), lambda x,y: cmp(x[1], y[1]), reverse=True )[0:30]
sorted(nx.degree(G).items(), key=lambda(k,v): (v,k), reverse=True)[0:30]
#!/usr/bin/env ruby
#twitter-translate - demoapp for droidcon
$LOAD_PATH << '/sdcard/lib'
require 'net/http'
require 'json/pure'
require 'cgi'
SEARCH = "#droidcon" unless defined?(SEARCH)
LANGUAGE = 'fr' unless defined?(LANGUAGE)
E/AndroidRuntime(
: java.lang.RuntimeException: An error occured while executing doInBackground() E/AndroidRuntime(
: at android.os.AsyncTask$3.done(AsyncTask.java:200) E/AndroidRuntime(
: at java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java:234) E/AndroidRuntime(
: at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:258) E/AndroidRuntime(
at java.util.concurrent.FutureTask.run(FutureTask.java:122) E/AndroidRuntime(
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:648) E/AndroidRuntime(
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:673) E/AndroidRuntime(
at java.lang.Thread.run(Thread.java:1060) E/AndroidRuntime(
Caused by: java.lang.IllegalStateException: get field slot from row 2 col -1 failed E/AndroidRuntime(
testing
@jberkel
jberkel / test
Created October 25, 2010 01:47
test
def foo
end
# vim:set ft=ruby:
diff -ru jack-1.9.6/common/wscript jack-1.9.6_patched/common/wscript
--- jack-1.9.6/common/wscript 2010-08-30 12:23:53.000000000 +0200
+++ jack-1.9.6_patched/common/wscript 2010-10-20 13:18:05.000000000 +0200
@@ -30,8 +30,8 @@
if bld.env['IS_LINUX']:
process.env.append_value("CPPFLAGS", "-fvisibility=hidden")
if bld.env['IS_MACOSX']:
- process.env.append_value("CPPFLAGS", "-mmacosx-version-min=10.4 -arch i386 -arch ppc")
- #process.env.append_value("LINKFLAGS", "-arch i386 -arch ppc")
+ process.env.append_value("CPPFLAGS", "-mmacosx-version-min=10.4 -arch i386 -arch x86_64")
diff --git a/SConstruct b/SConstruct
index 7bca3cc..c405a57 100644
--- a/SConstruct
+++ b/SConstruct
@@ -27,8 +27,8 @@ if sys.platform == 'darwin':
file.close()
Prefix = ARGUMENTS.get('Prefix','/opt/local')
RacketPrefix = ARGUMENTS.get('RacketPrefix', RacketBin[:-5])
- RacketInclude = ARGUMENTS.get('RacketInclude', RacketPrefix + "/include")
- RacketLib = ARGUMENTS.get('RacketLib', RacketPrefix + "/lib")
Canvas c = null;
try {
c = holder.lockCanvas();
if (c != null && bitmap != null) {
c.drawColor(Color.parseColor("#FF8C4A")); //#FF8C4A FF9933
c.drawBitmap(bitmap, window, dstWindow, mImagePaint);
//It would be great if the text scrolls along the waveform.
//It is necessary a bit of googling
if(mCurrentTrack != null && mCurrentTrack.getUser() != null){