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
$HTTP["host"] =~ "notebook.mydomain.invalid" { | |
accesslog.filename = "/var/log/lighttpd/notebook.log" | |
proxy.server = ( "" => | |
( ( | |
"host" => "127.0.0.1", | |
"port" => "9000" | |
) ) | |
) |
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
# failed request | |
"GET /kernels/66a43708-748c-4064-9ea5-e826ee9ac24a/shell HTTP/1.1" 401 351 | |
# server config, mod_websocket is loaded elsewhere | |
$HTTP["host"] =~ "mynotebook.invalid" { | |
proxy.server = ( "" => | |
( ( |
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
open_nocancel("/usr/local/lib/libguile-srfi-srfi-1-v-3.la\0", 0x0, 0x1B6) = -1 Err#2 | |
open_nocancel("/lib/libguile-srfi-srfi-1-v-3.la\0", 0x0, 0x1B6) = -1 Err#2 | |
open_nocancel("/usr/lib/libguile-srfi-srfi-1-v-3.la\0", 0x0, 0x1B6) = -1 Err#2 | |
access("/usr/local/lib/libguile-srfi-srfi-1-v-3.so\0", 0x4, 0x10A537A50) = -1 Err#2 | |
access("/lib/libguile-srfi-srfi-1-v-3.so\0", 0x4, 0x10A537A50) = -1 Err#2 | |
access("/usr/lib/libguile-srfi-srfi-1-v-3.so\0", 0x4, 0x10A537A50) = -1 Err#2 | |
stat64("libguile-srfi-srfi-1-v-3.so\0", 0x7FFF68EBF660, 0x7FFF68EC04F0) = -1 Err#2 | |
stat64("/Users/andrea/lib/libguile-srfi-srfi-1-v-3.so\0", 0x7FFF68EBFE10, 0x7FFF68EC04F0) = -1 Err#2 | |
stat64("/usr/local/lib/libguile-srfi-srfi-1-v-3.so\0", 0x7FFF68EBFE10, 0x7FFF68EC04F0) = -1 Err#2 | |
stat64("/usr/lib/libguile-srfi-srfi-1-v-3.so\0", 0x7FFF68EBFE20, 0x7FFF68EC04F0) = -1 Err#2 |
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
Index: Portfile | |
=================================================================== | |
--- Portfile (revision 112710) | |
+++ Portfile (working copy) | |
@@ -4,7 +4,7 @@ | |
name libtool | |
version 2.4.2 | |
-revision 3 | |
+revision 4 |
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
KeyEvent powerKeyUp = new KeyEvent(KeyEvent.ACTION_UP, KeyEvent.KEYCODE_POWER); | |
KeyEvent powerKeyDown = new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_POWER); | |
powerKeyDown = powerKeyDown.changeTimeRepeat(powerKeyDown, SystemClock.uptimeMillis() - 100, 1); | |
dispatchKeyEvent(powerKeyDown); | |
if (dispatchKeyEvent(powerKeyUp)) | |
Log.d("PML", "The event was consumed in dispatchKeyEvent() ACTION_UP"); | |
else | |
Log.d("PML", "The event was NOT consumed in dispatchKeyEvent() ACTION_UP"); |
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
// schema is | |
// trades(tid integer,amount real,price real,date integer); | |
SELECT | |
strftime('%Y-%m-%dT%H:%M:%S', (cast(date as integer)/86400) * 86400, 'unixepoch'), | |
MIN(date), | |
MAX(date), | |
MIN(price), | |
MAX(price), | |
SUM(amount) |
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
import sys | |
try: | |
path_to_insert = '/my/own/path' | |
sys.path.index(path_to_insert) | |
except ValueError: | |
sys.path.insert(1, path_to_insert) |
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
> # plain sys.path | |
> python -c 'import sys; print sys.path' | tr "," "\n" | |
['' | |
'/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip' | |
'/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7' | |
'/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin' | |
'/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac' | |
'/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages' | |
'/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk' | |
'/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old' |
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
(pybot)me@bibook ~/d/B/control-0.6c> nosetests | |
EEEEEEEEEEEE | |
====================================================================== | |
ERROR: Failure: ImportError (No module named control.bdalg) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/loader.py", line 413, in loadTestsFromName | |
addr.filename, addr.module) | |
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/importer.py", line 47, in importFromPath | |
return self.importFromDir(dir_path, fqname) |
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
creating build/lib.macosx-10.7-x86_64-2.7/scipy/_build_utils | |
copying scipy/_build_utils/__init__.py -> build/lib.macosx-10.7-x86_64-2.7/scipy/_build_utils | |
copying scipy/_build_utils/_fortran.py -> build/lib.macosx-10.7-x86_64-2.7/scipy/_build_utils | |
running build_clib | |
customize UnixCCompiler |