Skip to content

Instantly share code, notes, and snippets.

@skelter
skelter / pixie-lang.log
Created July 3, 2016 13:26
Not finding boost/type_traits.hpp while building pixie-lang core libs
[Timer] ===========================================
[Timer] Total: --- 1738.7 s
-e
WARNING: Compiling core libs. If you want to modify one of these files delete the .pxic files first
@skelter
skelter / mysheet.clj
Created July 25, 2015 20:36
basic Gorilla Repl worksheet file
;; gorilla-repl.fileformat = 1
;; **
;;; # Gorilla REPL
;;;
;;; Welcome to gorilla :-)
;;;
;;; Shift + enter evaluates code. Hit ctrl+g twice in quick succession or click the menu icon (upper-right corner) for more commands ...
;;;
;;; It's a good habit to run each worksheet in its own namespace: feel free to use the declaration we've provided below if you'd like.
@skelter
skelter / gist:ba435cf93ab57253a725
Last active August 29, 2015 14:03
Microsoft SQL Server JDBC Drivers 4.0.2206 timeout on first connection
Microsoft SQL Server Express with Microsoft SQL Server JDBC Drivers 4.0.2206.
Connection times out after 20 minutes.
Occurs with the first connection made after the SQL Server Express server wakes up from going to sleep.
Connections after the first are just fine, until SQL Server Express sleeps.
SSL enabled.
Timeout duration for the connection failure is unaffected by setting timeout options for the connection.
Work around:
could not insert: [gov.fcc.ecfs.beans.Submission];
SQL [insert into SUBMISSION (city, intl_address, address_line_1, address_line_2, postal_code,
id_state, zip_code, applicant_name, author_name, brief_comment_flag, bureau_id_num,
confirmation_number, browser, path_info, remote_addr, remote_host, remote_ident,
remote_user, server_name, contact_name, delagated_authority_number, date_accepted,
date_comment_period, date_disseminated, date_filed, date_pn_ex_parte, date_rcpt,
date_released, date_reply_comment, date_submission, date_transmission_completed,
id_edocs, contact_email_id, exparte_late_filed, fcc_record, file_number, filed_from,
lawfirm_name, date_modified, id_proceeding, reg_flex_analysis, report_number,
small_business_impact, id_submission_status, total_page_count, id_submission_type,
@skelter
skelter / gist:8288460
Created January 6, 2014 19:35
Jenkins 1.545 and maven plugin 2.1 (pinned)
org.jvnet.hudson.plugins.mavendepsupdate.MavenDependencyUpdateTrigger.run() failed for myawesomebuild
java.lang.NoClassDefFoundError: org/sonatype/aether/repository/WorkspaceReader
at org.jvnet.hudson.plugins.mavendepsupdate.MavenDependencyUpdateTrigger.run(MavenDependencyUpdateTrigger.java:153)
at hudson.triggers.Trigger.checkTriggers(Trigger.java:255)
at hudson.triggers.Trigger$Cron.doRun(Trigger.java:203)
at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:54)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
@skelter
skelter / gist:6489197
Last active December 22, 2015 14:58
Pallet 0.8.0-RC.1 (palletops.com), jclouds, aws-ec2 Unsafe.park
On OS X with Oracle JDK 7u25
Thread [i/o thread 7] (Suspended)
Unsafe.park(boolean, long) line: not available [native method]
LockSupport.park(Object) line: 186
AbstractQueuedSynchronizer$ConditionObject.await() line: 2043 [local variables unavailable]
DynamicThreadPoolExecutor$DynamicQueue<E>(LinkedBlockingQueue<E>).take() line: 442
DynamicThreadPoolExecutor(ThreadPoolExecutor).getTask() line: 1068
DynamicThreadPoolExecutor(ThreadPoolExecutor).runWorker(ThreadPoolExecutor$Worker) line: 1130
ThreadPoolExecutor$Worker.run() line: 615
Thread.run() line: 724 [local variables unavailable]
@skelter
skelter / threaddump.txt
Created August 28, 2013 02:15
A pallet project hanging upon completion. lein run cloud
2013-08-27 20:47:02
Full thread dump Java HotSpot(TM) 64-Bit Server VM (23.25-b01 mixed mode):
"DestroyJavaVM" prio=5 tid=0x00007ff751837800 nid=0x1c03 waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
Locked ownable synchronizers:
- None
@skelter
skelter / replsession.clj
Last active August 30, 2017 11:59
defrecord is one of my favorite examples of the usefulness of macros in Clojure. This particular use demonstrates adding some mild syntax and generating a lot of boiler plate. Let's see what all it does.
4837 ◯ lein new macrofun
Generating a project called macrofun based on the 'default' template.
To see other templates (app, lein plugin, etc), try `lein help new`.
hobiecat ओम् /tmp:
4838 ◯ cd macrofun
hobiecat ओम् /tmp/macrofun:
4839 ◯ lein repl
nREPL server started on port 48544
REPL-y 0.1.0-beta10
Clojure 1.4.0
@skelter
skelter / gist:4975335
Created February 18, 2013 05:52
JVM crashing when launching overtone
SEGV when launching overtone on Mac OS X 10.7.5
╰─$ lein --version
Leiningen 2.0.0-preview10 on Java 1.7.0_11 Java HotSpot(TM) 64-Bit Server VM
╰─$ lein repl
nREPL server started on port 53407
REPL-y 0.1.0-beta10
Clojure 1.4.0
Exit: Control+D or (exit) or (quit)
Commands: (user/help)
Docs: (doc function-name-here)
@skelter
skelter / gist:4055460
Created November 11, 2012 16:41
Blink lights in sequences that we can count
void setup() {
// initialize the digital pin as an output.
// Pin 13 has an LED connected on most Arduino boards:
pinMode(13, OUTPUT);
Serial.begin(9600);
}
void loop() {
for(int i =0; i < 10; i++) {