Skip to content

Instantly share code, notes, and snippets.

View Meekohi's full-sized avatar

Michael Holroyd Meekohi

View GitHub Profile
> heroku addons:add heroku-postgresql:standard-yanari
Adding heroku-postgresql:standard-yanari on sheltered-gorge-2600... failed
@Meekohi
Meekohi / instagram_response
Created March 19, 2014 16:54
example return value of Instagram API
{
"attribution" : null,
"tags" : [
"coffeeandcookiesforbreakfast"
],
"location" : {
"latitude" : 38.03301584,
"longitude" : -78.5012547
},
"comments" : {
ExifTool Version Number : 9.45
File Name : 2014-01-23_15.52.33.jpg
Directory : .
File Size : 1996 kB
File Modification Date/Time : 2014:01:23 15:52:33-05:00
File Access Date/Time : 2014:01:23 17:13:50-05:00
File Inode Change Date/Time : 2014:01:23 16:28:43-05:00
File Permissions : rw-------
File Type : JPEG
MIME Type : image/jpeg
Incremental reconstruction
Perform incremental SfM (Initial Pair Essential + Resection).
Track building
Track filtering
Track filtering : min occurence
@Meekohi
Meekohi / gist:8199123
Last active January 1, 2016 20:49
homebrew could not build pillow
meekohi ~$ brew doctor
Warning: Setting DYLD_* vars can break dynamic linking.
Set variables:
DYLD_LIBRARY_PATH
Warning: Unbrewed static libraries were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected static libraries:
@Meekohi
Meekohi / cimg_patch_ffmpeg_deprecated_field.patch
Created December 12, 2013 18:15
Ignore deprecated field Patch to CImg.h
From c222dce2bb8bd885c86497cbcb680717a2ecb180 Mon Sep 17 00:00:00 2001
From: Michael Holroyd <[email protected]>
Date: Thu, 12 Dec 2013 13:09:49 -0500
Subject: [PATCH] Ignore deprecated field
---
CImg.h | 1 -
1 file changed, 1 deletion(-)
diff --git a/CImg.h b/CImg.h
@Meekohi
Meekohi / cimg_patch_location_libav_includes.patch
Created December 12, 2013 18:14
Point to more common location for libav
From 5cc13cd907cf29bfa56f14ed553328d0952f1adc Mon Sep 17 00:00:00 2001
From: Michael Holroyd <[email protected]>
Date: Thu, 12 Dec 2013 12:57:56 -0500
Subject: [PATCH] Point to more common location for libav
---
CImg.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/CImg.h b/CImg.h
db.things.aggregate([
{'$project': {
tags:{$setIntersection:["$tags",["one","two","three"]}
}
}
]);
function initDbHashAndFirstRun() {
return when(models.Settings.read('dbHash')).then(function (dbhash) {
// we already ran this, chill
self.dbHash = dbhash.attributes.value;
return dbhash.attributes.value;
}).otherwise(function (error) {
// this is where all the "first run" functionality should go
var dbhash = uuid.v4();
return when(models.Settings.add({key: 'dbHash', value: dbhash, type: 'core'})).then(function () {
self.dbHash = dbhash;
! @6fja2hgkb - Internal server error, for (POST) [/contact] ->
play.api.Application$$anon$1: Execution exception[[MessagingException: Exception reading response]]
at play.api.Application$class.handleError(Application.scala:289) ~[play_2.10.jar:2.1.3]
at play.api.DefaultApplication.handleError(Application.scala:383) [play_2.10.jar:2.1.3]
at play.core.server.netty.PlayDefaultUpstreamHandler$$anonfun$handleAction$1$2$$anonfun$apply$21.apply(PlayDefaultUpstreamHandler.scala:415) [play_2.10.jar:2.1.3]
at play.core.server.netty.PlayDefaultUpstreamHandler$$anonfun$handleAction$1$2$$anonfun$apply$21.apply(PlayDefaultUpstreamHandler.scala:415) [play_2.10.jar:2.1.3]
at scala.Option.map(Option.scala:145) [scala-library.jar:na]
at play.core.server.netty.PlayDefaultUpstreamHandler$$anonfun$handleAction$1$2.apply(PlayDefaultUpstreamHandler.scala:415) [play_2.10.jar:2.1.3]