Skip to content

Instantly share code, notes, and snippets.

View Sreyanth's full-sized avatar

Sreyanth Sreyanth

View GitHub Profile

Keybase proof

I hereby claim:

  • I am sreyanth on github.
  • I am sreyanth (https://keybase.io/sreyanth) on keybase.
  • I have a public key ASAS8PsKjju9YBXLDcwhah8yoE46zTm3gBsmofMoW2GnCgo

To claim this, I am signing this object:

@Sreyanth
Sreyanth / error.log
Created September 21, 2015 22:33
Cloud 9 ImageMagick Error
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/usr/local/rvm/rubies/ruby-2.1.2/bin/ruby extconf.rb
checking for gcc... yes
checking for Magick-config... no
checking for pkg-config... yes
Package MagickCore was not found in the pkg-config search path.
Perhaps you should add the directory containing `MagickCore.pc'
to the PKG_CONFIG_PATH environment variable
No package 'MagickCore' found
@Sreyanth
Sreyanth / development.log
Created September 17, 2015 05:37
Complete Dev Log
This file has been truncated, but you can view the full file.
Connecting to database specified by database.yml
OpenIdAuthentication.store is nil. Using in-memory store.
 (7.0ms) select sqlite_version(*)
 (134.0ms) CREATE TABLE "comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "author" varchar(255), "email" varchar(255), "body" text, "x" integer, "y" integer, "spectrum_id" integer, "created_at" datetime, "updated_at" datetime, "spectra_set_id" integer DEFAULT 0, "user_id" integer DEFAULT 0, "wavelength" integer, "intensity" integer)
 (71.6ms) CREATE TABLE "devices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "description" varchar(100) DEFAULT '' NOT NULL, "height" integer, "width" integer, "calibration_id" integer, "user_id" integer, "range_start" decimal, "range_end" decimal, "created_at" datetime, "updated_at" datetime, "key" varchar(255) DEFAULT '' NOT NULL) 
 (71.9ms) CREATE TABLE "likes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "spectrum_id
@Sreyanth
Sreyanth / development.log
Created September 17, 2015 05:35
SWB Spectrum creation error
Started POST "/spectrums" for 127.0.0.1 at 2015-09-08 09:26:38 +0530
Processing by SpectrumsController#create as HTML
Parameters: {"spectrum"=>{"title"=>"dasfladksfjlkj", "notes"=>"qsdlkjsdlgkj", "calibration_id"=>"calibration"}, "tags"=>"dlkfjdflk", "dataurl"=>"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAoAAAACWCAYAAABO3TmMAAAgAElEQVR4XmS9aZNs6ZactWPIc24jQFPfFmqZpFYLJNOEhMEXDOP//xyMwaSqkxkRmD+P+44sKFmpbp+TGbH3O6zBly9fl//0j/78ulyfx3H7PF6vr+P5fB7P13E8Lq/jec1/j+N1vR3P14U/zz+XS/7wceT/fFwux+U4jtvrddwu1+N1PI/84C3/5u9ex3G5Hsflln8vx+V6OZ6P1/H49cwHH8/8xut1PC/HcX0dx/Xx8r/52cuFP38cx/H1fB6P/Mozn3M7vvJDl/6s//N45UGu/vvMH+RZXz7Drc+ev7tdr8fl+Tqej3z7lc9/HL53Hv9+XI97fufy4tn3ea88+4vXO16vl8+R58+zX3y/r6xL3v11PX68LsfPZ57xxXfm33z+r6/H8fvzeXxdL8frnrV9Hsfx4n3zub7Hlee75uHyzz3v8Tquzxfvs/W5X6/HIwvDPl2O5z2LfRyvX4/j43k5fjwux+3p8z0fjyO7lef9uuYb8775shefxzv0617H5cgOv3IO8hNZ68vluL4ux+3If/MT73XPZ2UtPl+v4/F8Ha/n5bhdbwdni/2/9iGenLHX68nfZ01e1zzP6/jKOnztPPDpx/125Xuz6Pkv5+H5PD5zhlgLn5izxfO8jo/r9bg/juPy9Txu+fs8XNb6ejke12/n+vk67seFs3F/+v6v+4Uff
@Sreyanth
Sreyanth / TweakedAutoCalib.js
Last active August 29, 2015 14:07
Tweaked AutoCalib Code. This is fun!
attempt_autocalibrate = function(min_required_intensity) {
//The following two are copied from end; before calling attempt_autocalib
flotoptions.grid.markings = []
$W.plot = $.plot($("#graph"),$W.data,flotoptions);
var max_limit = 5
//min_required_intensity = 20
var max_green = -1000 // We need to find the maximum value of G first
@Sreyanth
Sreyanth / AutoCalib.js
Last active August 29, 2015 14:07
AutoCalib code for SWB.
attempt_autocalibrate = function(min_required_intensity) {
//The following two are copied from end; before calling attempt_autocalib
flotoptions.grid.markings = []
$W.plot = $.plot($("#graph"),$W.data,flotoptions);
var max_limit = 5
//min_required_intensity = 20
var max_green = -1000 // We need to find the maximum value of G first