This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/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 ** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#"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] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
testing |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def foo | |
end | |
# vim:set ft=ruby: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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){ |