Skip to content

Instantly share code, notes, and snippets.

View johnbendi's full-sized avatar

John Chijioke johnbendi

View GitHub Profile
@johnbendi
johnbendi / thread.clj
Created October 15, 2012 16:44 — forked from richhickey/thread.clj
new thread macros draft
(defmacro test->
"Takes an expression and a set of test/form pairs. Threads expr (via ->)
through each form for which the corresponding test is true."
[expr
& clauses]
(assert (even? (count clauses)))
(let [g (gensym)
pstep (fn [[test step]] `(if ~test (-> ~g ~step) ~g))]
`(let [~g ~expr
~@(interleave (repeat g) (map pstep (partition 2 clauses)))]
@johnbendi
johnbendi / package-err
Created November 18, 2012 12:24
package.el error
Debugger entered--Lisp error: (error "Trying to parse HTTP response code in odd buffer: *http marmalade-repo.org:80*-968649")
signal(error ("Trying to parse HTTP response code in odd buffer: *http marmalade-repo.org:80*-968649"))
error("Trying to parse HTTP response code in odd buffer: %s" " *http marmalade-repo.org:80*-968649")
url-http-parse-response()
package-handle-response()
package--download-one-archive(("marmalade" . "http://marmalade-repo.org/packages/") "archive-contents")
#[nil "\301\302\"\207" [archive package--download-one-archive "archive-contents"] 3]()
package-refresh-contents()
call-interactively(package-refresh-contents record nil)
command-execute(package-refresh-contents record)
@johnbendi
johnbendi / gist:4191495
Created December 2, 2012 23:04
gem env
RubyGems Environment:
- RUBYGEMS VERSION: 1.8.24
- RUBY VERSION: 1.9.3 (2012-11-10 patchlevel 327) [x86_64-linux]
- INSTALLATION DIRECTORY: /usr/local/ruby-1.9.3-p237/lib/ruby/gems/1.9.1
- RUBY EXECUTABLE: /usr/local/ruby-1.9.3-p237/bin/ruby
- EXECUTABLE DIRECTORY: /usr/local/ruby-1.9.3-p237/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-linux
- GEM PATHS:
@johnbendi
johnbendi / gist:4191587
Created December 2, 2012 23:35
bundle install error
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/usr/local/ruby-1.9.3-p237/bin/ruby extconf.rb
checking for sqlite3.h... no
sqlite3.h is missing. Try 'port install sqlite3 +universal'
or 'yum install sqlite-devel' and check your shared library search path (the
location where your sqlite3 shared library is located).
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
@johnbendi
johnbendi / Clojure compilation failure
Created July 31, 2014 03:39
Clojure fails to compile
[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building clojure 1.6.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ clojure ---
[INFO]
[INFO] --- build-helper-maven-plugin:1.5:add-source (add-clojure-source-dirs) @ clojure ---
@johnbendi
johnbendi / Pux output
Created August 1, 2014 07:54
Pux compilation output
/opt/php/Pux/ext $ ./configure
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
@johnbendi
johnbendi / Barryerr1
Last active August 29, 2015 14:05
Barry Error Output When Compiling
$ ./buildgen.sh
Copying file ABOUT-NLS
Copying file m4/codeset.m4
Copying file m4/fcntl-o.m4
Copying file m4/gettext.m4
Copying file m4/glibc2.m4
Copying file m4/glibc21.m4
Copying file m4/iconv.m4
Copying file m4/intdiv0.m4
@johnbendi
johnbendi / clojure_android_build_error
Created August 27, 2014 17:27
clojure android build error
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building clojure 1.6.0-RC1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ clojure ---
[INFO]
[INFO] --- build-helper-maven-plugin:1.5:add-source (add-clojure-source-dirs) @ clojure ---
[INFO] Source directory: /opt/clojure/android/clojure/src/jvm added.
@johnbendi
johnbendi / pedestall sse application
Last active August 29, 2015 14:07
Pedestal sample application not working properly
;; clj
;; ===
(def stored-event-channel (atom nil))
(defn start-foo-events [ctx]
(async/go (loop [n 1000]
(Thread/sleep 10)
(async/>! @stored-event-channel "ping")
(recur (dec n)))
@johnbendi
johnbendi / idempiere_start_log
Created January 9, 2015 16:42
idempiere server startup output
JAVA_HOME is not set.
You may not be able to start the server
Set JAVA_HOME to the directory of your local JDK.
===================================
Starting iDempiere Server
===================================
Jan 09, 2015 4:34:10 PM org.eclipse.jetty.util.log.Log initialized
INFO: Logging initialized @2767ms
Jan 09, 2015 4:34:10 PM org.eclipse.jetty.osgi.boot.internal.serverfactory.DefaultJettyAtJettyHomeHelper startJettyAtJettyHome
INFO: Configuring the default jetty server with [file:/opt/idempiere-server/jettyhome/etc/jetty.xml, file:/opt/idempiere-server/jettyhome/etc/jetty-selector.xml, file:/opt/idempiere-server/jett\