Let's have some command-line fun with curl, [jq][1], and the [new GitHub Search API][2].
Today we're looking for:
| -- a little flame in a functional style | |
| function particle(step, style, t) | |
| local newStyle = step(style, t) | |
| return { | |
| style = newStyle, | |
| next = function() | |
| return particle(step, newStyle, t + 1) | |
| end | |
| } |
| Thanks for that, very helpful. As it happens we have two stagings instances. | |
| http://harrowcn-staging-eu.herokuapp.com | |
| http://harrowcn-staging.herokuapp.com | |
| I just tried to run our cucumber and rspec tests on the latter, and got the following | |
| saasbook@saasbook:~/Documents/github/LocalSupport$ heroku run rake cucumber | |
| The plugin heroku-sql-console has been deprecated. Would you like to remove it? (y/N) N | |
| Running rake cucumber attached to terminal... up, run.5774 |
| saasbook@saasbook:~/LocalSupport$ heroku run bash | |
| Running bash attached to terminal... up, run.9534 | |
| ~ $ cat config\database.yml | |
| cat: configdatabase.yml: No such file or directory | |
| ~ $ ls | |
| app config db Gemfile log README spec vendor | |
| autotest config.ru doc Gemfile.lock public README.md test | |
| bin COPYING features lib Rakefile script tmp | |
| ~ $ cd config | |
| ~/config $ database.yml |
| | allDeps toDigraph | | |
| toDigraph := [:hash | | s | | |
| s := WriteStream on: String new. | |
| s nextPutAll: 'digraph {'; lf. | |
| hash keysAndValuesDo: [:pkg :pkgDeps | | |
| pkgDeps do: [:dep | | |
| (pkg includesSubString: 'Test') | |
| ifTrue: [s nextPutAll: ' "'; nextPutAll: pkg; nextPutAll: '" [color="gray"]'; lf]. | |
| s nextPutAll: ' "'; nextPutAll: pkg; nextPutAll: '" -> "'; nextPutAll: dep; nextPutAll: '"'. | |
| (pkg includesSubString: 'Test') ifTrue: [s nextPutAll: ' [color="gray"]']. |
| g++ -c -include webkit_server -pipe -O2 -Wall -W -D_REENTRANT -DQT_WEBKIT -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtWebKit -I/usr/include/qt4 -I. -o NetworkReplyProxy.o NetworkReplyProxy.cpp | |
| NetworkReplyProxy.cpp: In constructor âNetworkReplyProxy::NetworkReplyProxy(QNetworkReply*, QObject*)â: | |
| NetworkReplyProxy.cpp:15:21: error: âsetFinishedâ was not declared in this scope | |
| NetworkReplyProxy.cpp: In member function âvoid NetworkReplyProxy::handleFinished()â: | |
| NetworkReplyProxy.cpp:37:19: error: âsetFinishedâ was not declared in this scope | |
| make[1]: *** [NetworkReplyProxy.o] Error 1 | |
| make[1]: Leaving directory `/home/ubuntu/.bundler/tmp/20603/gems/capybara-webkit-1.0.0/src' | |
| make: *** [sub-src-webkit_server-pro-make_default-ordered] Error 2 | |
| Command 'make' failed |
| 1968 gem install capybara-webkit -v '1.0.0' | |
| 1969 sudo gem install capybara-webkit -v '1.0.0' | |
| 1970 sudo apt qmake | |
| 1971 apt-install qmake | |
| 1972 sudo apt-get qmake | |
| 1973 sudo apt-get install qmake | |
| 1974 sudo gem install capybara-webkit -v '1.0.0' | |
| 1975 sudo apt-get install qt4-qmake | |
| 1976 sudo gem install capybara-webkit -v '1.0.0' | |
| 1977 sudo apt-get install libqtwebkit-dev |
Let's have some command-line fun with curl, [jq][1], and the [new GitHub Search API][2].
Today we're looking for:
Scan for access points (run multiple times for more complete scan):
# connmanctl scan wifi
Scan completed for wifi
In order to demo your feature specs, follow these steps:
| #!/usr/bin/ruby | |
| # Create display override file to force Mac OS X to use RGB mode for Display | |
| # see http://embdev.net/topic/284710 | |
| require 'base64' | |
| data=`ioreg -l -d0 -w 0 -r -c AppleDisplay` | |
| edids=data.scan(/IODisplayEDID.*?<([a-z0-9]+)>/i).flatten | |
| vendorids=data.scan(/DisplayVendorID.*?([0-9]+)/i).flatten |