- OS X Mountain Lion (10.8.1)
- XCode 4.5.1 with "Command Line Tools" installed in Preferences > Downloads > Components
- MacPorts Mountain Lion installer.
Install dependencies: (you might want a grab a coffee)
sudo port install boehmgc pcre mysql5 ocaml| #!/usr/bin/env python | |
| import sys, paramiko | |
| if len(sys.argv) < 5: | |
| print "args missing" | |
| sys.exit(1) | |
| hostname = sys.argv[1] | |
| password = sys.argv[2] |
| 19:45:09 freenode | irc: reconnecting to server... | |
| 19:45:09 freenode | irc: connecting to server chat.us.freenode.net/7070 (SSL)... | |
| 19:45:09 freenode | gnutls: connected using 1024-bit Diffie-Hellman shared secret exchange | |
| 19:45:09 freenode =!= | gnutls: peer's certificate is NOT trusted | |
| 19:45:09 freenode =!= | gnutls: peer's certificate issuer is unknown | |
| 19:45:09 freenode | gnutls: receiving 2 certificates | |
| 19:45:09 freenode | - certificate[1] info: | |
| 19:45:09 freenode | - subject `OU=Domain Control Validated,OU=Gandi Standard Wildcard SSL,CN=*.freenode.net', issuer `C=FR,O=GANDI SAS,CN=Gandi Standard SSL CA', RSA key 2048 bits, signed using | |
| | RSA-SHA1, activated `2011-01-14 00:00:00 UTC', expires `2012-01-14 23:59:59 UTC', SHA-1 fingerprint `acd50e69ad93f5db08fefb67180d871415858664' | |
| 19:45:09 freenode | - certificate[2] info: |
| #!/usr/bin/env python | |
| import numpy as np | |
| import matplotlib.pyplot as plt | |
| from numpy import newaxis, r_, c_, mat | |
| from numpy.linalg import * | |
| def plotData(X, y): | |
| plt.plot(X, y, 'rx', markersize=7) | |
| plt.ylabel('Profit in $10,000s') | |
| plt.xlabel('Population of City in 10,000s') |
| #!/usr/bin/php -q | |
| <?php | |
| // set to true to avoid ' and " converting to HTML special characters | |
| @define('skip_glyphs', false); | |
| // 3+ uppercase span tag is commented out, as everyone hates it | |
| // instruction on how to use it available here: http://foliovision.com/2011/11/08/textile-editing-bbedit | |
| // define these before including this file to override the standard glyphs |
| <?xml version="1.0" encoding="utf-8"?> | |
| <project> | |
| <!-- <meta /> | |
| Use meta nodes to set metadata for your application. The description is ignored | |
| on most targets, but is useful for packaging like Chrome Apps or Opera Widgets. | |
| For compatibility with Android and webOS, the package name must include at least |
| Latency Comparison Numbers (~2012) | |
| ---------------------------------- | |
| L1 cache reference 0.5 ns | |
| Branch mispredict 5 ns | |
| L2 cache reference 7 ns 14x L1 cache | |
| Mutex lock/unlock 25 ns | |
| Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
| Compress 1K bytes with Zippy 3,000 ns 3 us | |
| Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
| Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |
| L1 cache reference 0.5 ns | |
| Branch mispredict 5 ns | |
| L2 cache reference 7 ns 14x L1 cache | |
| Mutex lock/unlock 25 ns | |
| Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
| Compress 1K bytes with Zippy 3,000 ns | |
| Send 1K bytes over 1 Gbps network 10,000 ns 0.01 ms | |
| Read 1 MB sequentially from memory 250,000 ns 0.25 ms | |
| Round trip within same datacenter 500,000 ns 0.5 ms | |
| Read 1 MB sequentially from SSD 1,000,000 ns 1 ms 4X memory |
| on handle_string(str) | |
| set arrayWithDate to my theSplit(str, "@") | |
| if arrayWithDate's length > 1 then | |
| set theDate to my parseDate(getArrayValue(arrayWithDate, 2)) | |
| end if | |
| set arrayWithBody to my theSplit(getArrayValue(arrayWithDate, 1), "#") | |
| if arrayWithBody's length > 1 then | |
| set reminderBody to my getArrayValue(arrayWithBody, 2) | |
| else |
| ########################################## | |
| # | |
| # c.f. http://stackoverflow.com/questions/3520977/build-fat-static-library-device-simulator-using-xcode-and-sdk-4 | |
| # | |
| # Version 2.82 | |
| # | |
| # Latest Change: | |
| # - MORE tweaks to get the iOS 10+ and 9- working | |
| # - Support iOS 10+ | |
| # - Corrected typo for iOS 1-10+ (thanks @stuikomma) |
Install dependencies: (you might want a grab a coffee)
sudo port install boehmgc pcre mysql5 ocaml