This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# == Fixing users with broken avatars == | |
# | |
# VF output 'rake avatars:copy_all': | |
# | |
# Ready, but 33 users failed (632, 1796, 2766, 3160, 3269, 4550, 6208, 6247, 6841, 7045, 7803, 7830, 7841, 7842, 7845, 7864 | |
# 7866, 7869, 7872, 7886, 7887, 7910, 7916, 7946, 7962, 7973, 7977, 8148, 8329, 8437, 8497, 8635, 8662). | |
# To fix, run this, and re-run rake avatars:copy_all | |
User.find(632, 1796, 2766, 3160, 3269, 4550, 6208, 6247, 6841, 7045, 7803, 7830, 7841, 7842, 7845, 7864, 7866, 7869, 7872, 7886, 7887, 7910, 7916, 7946, 7962, 7973, 7977, 8148, 8329, 8437, 8497, 8635, 8662).each do |u| | |
u.avatar_file_name = u.avatar_file_name.gsub(/\.[a-z0-9]+$/i, '.jpg') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
iik> use("ispec") | |
+> true | |
iik> 1 should == 1 | |
+> true | |
iik> Can = Origin do(initialize = method(beans:, @beans = beans)) | |
+> Origin: | |
=== = ===:method(...) | |
eval = eval:method(...) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'sinatra' | |
require 'datamapper' | |
DataMapper.setup(:default, 'sqlite3::memory:') | |
class Idea | |
include DataMapper::Resource | |
property :id, Serial | |
property :body, Text | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'sinatra' | |
require 'datamapper' | |
DataMapper.setup(:default, 'sqlite3::memory:') | |
class Idea | |
include DataMapper::Resource | |
property :id, Serial | |
property :body, Text | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Condition Error Default in 'Jikson values objects shoudl parse an object with two mappings, one being nested' | |
Unable to parse an object. Expected either } or , | |
Error around character 39 | |
{"number": 1, "nested": {"hi": "there"} | |
^ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
iik> #/\[#\w+]/ inspect | |
+> "#/\[#\w+]/" | |
iik> "#/\[#\w+]/" | |
*** - java.lang.RuntimeException: NoViableAltException('\'@[]) (Condition Error JavaException) | |
ioke.lang.parser.iokeLexer.reportError(iokeLexer.java:59) | |
org.antlr.runtime.Lexer.nextToken(Lexer.java:94) | |
ioke.lang.parser.iokeLexer.nextToken(iokeLexer.java:50) | |
org.antlr.runtime.CommonTokenStream.fillBuffer(CommonTokenStream.java:95) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
∴ /Users/sam/Development/tik/spec | |
λ ispec tik_spec.ik | |
*** - *** - couldn't find cell 'code' on 'ISpec DescribeContext_0x7B10D1D5' (Condition Error NoSuchCell) | |
code filename [/Users/sam/Development/ioke/lib/ioke/ispec/describeContext.ik:13:11] | |
*** - couldn't load module 'tik_spec.ik' (Condition Error Load) | |
use(f) [/Users/sam/Development/ioke/lib/ioke/ispec/runner.ik:61:20] | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
λ ant clean | |
Buildfile: build.xml | |
clean: | |
[delete] Deleting directory /Users/sam/Development/ikanserve/build | |
[delete] Deleting: /Users/sam/Development/ikanserve/lib/ikanserve.jar | |
BUILD SUCCESSFUL | |
Total time: 0 seconds | |