Skip to content

Instantly share code, notes, and snippets.

View stepheneb's full-sized avatar

Stephen Bannasch stepheneb

View GitHub Profile
{
"title": "Latent Heat",
"publicationStatus": "draft",
"subtitle": "",
"about": "",
"models": [
{
"type": "md2d",
"id": "page7$0",
"url": "interactives/latent-heat-model.json",
@stepheneb
stepheneb / README.md
Last active January 8, 2020 05:04
IE Bug: Drag outside iframe and mouseup on IE10

IE Bug: Drag outside iframe and mouseup on IE10

The green circle is draggable.

The drag operation should be canceled when the drag extends outside of the iframe boundary and the drag is released.

This works in Chrome, Firefox, and Safari.

In IE10 (and probably IE9) a mouse-up (drag-end) event occurring outside the iframe is not processed correctly and the drag is now stuck on.

Comparing results of make task to build jquery in standard working dir and in a new clone.

building jquery with make task after running make clean in current working dir for Lab:

cd vendor/jquery; npm install; \
   npm install grunt-cli; \
	 ./node_modules/grunt-cli/bin/grunt
npm WARN prefer global grunt-cli@0.1.9 should be installed with -g

npm http GET https://registry.npmjs.org/grunt-cli

@stepheneb
stepheneb / wise-vle-eclipse.diff
Created May 6, 2013 13:38
uncommitted changes in Eclipse settings after setting up WISE
diff --git a/.classpath b/.classpath
index 81366f4..9b28d3d 100644
--- a/.classpath
+++ b/.classpath
@@ -1,9 +1,44 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
- <classpathentry kind="src" output="target/classes" path="src/main/java"/>
- <classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources"/>
- <classpathentry excluding="**" kind="src" output="target/classes" path="src/main/webapp/WEB-INF"/>
@stepheneb
stepheneb / airbags.v15i-includes-inquiry-export.nlogo
Last active December 16, 2015 17:19
AirBags NetLogo model with the inquiry-logging module built-in
@stepheneb
stepheneb / gist:5462997
Last active December 16, 2015 16:29
console output on creation of new WIS4 project in authoring tool
Apr 25, 2013 4:41:27 PM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring FrameworkServlet 'dispatcher'
Apr 25, 2013 4:41:30 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
Apr 25, 2013 4:41:30 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
Apr 25, 2013 4:41:30 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 14162 ms
java.lang.NullPointerException
at org.telscenter.sail.webapp.presentation.web.controllers.author.project.AuthorProjectController.handleRequestInternal(AuthorProjectController.java:208)
diff --git a/src/qtui/mainwin.cpp b/src/qtui/mainwin.cpp
index a4be9fd..8850862 100644
--- a/src/qtui/mainwin.cpp
+++ b/src/qtui/mainwin.cpp
@@ -1059,12 +1059,12 @@ void MainWin::setConnectedState()
}
else {
// Monolithic always preselects last used buffer - Client only if the connection died
- if (Client::coreConnection()->wasReconnect() || Quassel::runMode() == Quassel::Monolithic) {
+ // if (Client::coreConnection()->wasReconnect() || Quassel::runMode() == Quassel::Monolithic) {
@stepheneb
stepheneb / gist:5369537
Created April 12, 2013 05:06
error building colloquy on 10.6.8: git://github.com/danielpunkass/Colloquy.git
Build Additions of project Colloquy (Mac) with configuration Debug
ProcessPCH /var/folders/zK/zK+A4xtxHSevr7D+EoIsPE+++TQ/-Caches-/com.apple.Xcode.503/SharedPrecompiledHeaders/Colloquy-disaqzmsvsjuxucdegovnnhgcuam/Colloquy.pch.pth Mac/Colloquy.pch normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/stephen/dev/macosapps/colloquy-fork-git
setenv LANG en_US.US-ASCII
/Developer/usr/bin/clang -x objective-c-header -arch x86_64 -fmessage-length=0 -pipe -fdiagnostics-print-source-range-info -std=gnu99 -funsigned-char -fno-asm -Wno-trigraphs -O0 -Wmissing-field-initializers -Wmissing-prototypes -Werror-implicit-function-declaration -Wreturn-type -Wmissing-braces -Wunused-function -Wunused-label -Wunused-variable -Wuninitialized -Wunknown-pragmas -Wsign-compare -Wnewline-eof -DUSE_HTML_CHAT_STRING -DENABLE_AUTO_PORT_MAPPING=0 -DENABLE_SCRIPTING=0 -DENABLE_PLUGINS=0 -DENABLE_SILC=0 -DENABLE_ICB=0 -DENABLE_XMPP=0 -DRKL_FAST_MUTABLE_CHECK -DRKL_CACHE_SIZE=47 -DRKL_BLOCKS=0 -isysroot /Develo
$ make test-vows
Running Vows tests ...
/Users/stephen/dev/concord/lab/node_modules/vows/lib/vows/suite.js:230
!topic._vowsEmitedEvents.hasOwnProperty(ctx.event)) {
^
TypeError: Cannot call method 'hasOwnProperty' of undefined
at callback (/Users/stephen/dev/concord/lab/node_modules/vows/lib/vows/suite.js:230:50)
at Array.forEach (native)
at run (/Users/stephen/dev/concord/lab/node_modules/vows/lib/vows/suite.js:198:16)
./node_modules/uglify-js/bin/uglifyjs < server/public/lab/lab.energy2d.js > server/public/lab/lab.energy2d.min.js
./node_modules/uglify-js/bin/uglifyjs < server/public/lab/lab.md2d.js > server/public/lab/lab.md2d.min.js
./node_modules/uglify-js/bin/uglifyjs < server/public/lab/lab.import-export.js > server/public/lab/lab.import-export.min.js
./node_modules/uglify-js/bin/uglifyjs < server/public/lab/lab.js > server/public/lab/lab.min.js
haml -r ./script/setup.rb src/examples/compare-mw-to-mw5/index.html.haml server/public/examples/compare-mw-to-mw5/index.html
Errno::ENOENT: No such file or directory - server/public/examples/compare-mw-to-mw5/index.html
Use --trace for backtrace.
make[1]: *** [server/public/examples/compare-mw-to-mw5/index.html] Error 1
make: *** [all] Error 2