Skip to content

Instantly share code, notes, and snippets.

SELECT 1 REGEXP ''
Got error 'empty (sub)expression' from regexp
SELECT 1 REGEXP '('
Got error 'parentheses not balanced' from regexp
SELECT 1 REGEXP '['
Got error 'brackets ([ ]) not balanced' from regexp
SELECT 1 REGEXP '\\'
body
{
background-color:#000000;
background: url(http://abstractwallpapers.biz/wp-content/uploads/2012/04/wide-blue-wallpaper.jpg) no-repeat;
size:2080px 1960px;
/*background-position: 100px 100px;*/
}
#page wrapper
{
body
{
background-color:#000000;
background: url(wide-blue-wallpaper.jpg) no-repeat;
size:2080px 1960px;
/*background-position: 100px 100px;*/
}
#page wrapper
{
"card"=>{"membership_id"=>"1", "number"=>"1231", "expiry_date"=>"06-08-2012", "image"=>#<ActionDispatch::Http::UploadedFile:0xacfd848 @original_filename="2.7 Overview-settings.jpg", @content_type="image/jpeg", @headers="Content-Disposition: form-data; name=\"card[image]\"; filename=\"2.7 Overview-settings.jpg\"\r\nContent-Type: image/jpeg\r\n", @tempfile=#<File:/tmp/RackMultipart20120606-31564-1tqrjlt>>
class CardsController < ApplicationController
def index
end
end
var getAllProducts = function(){
var i;
var product_divs;
var products = new Array();
try{
product_divs = document.getElementsByClassName('listing-card');
if(product_divs.length){
for(i=0; i<product_divs.length; i++){
if(product_divs[i].getElementsByTagName('IMG').length){
var element = product_divs[i].getElementsByTagName('IMG')[0];
Command.find('6geFvMBEFGqY3YEqSrXiC2qRD2j')
<Command:6geFvMBEFGqY3YEqSrXiC2qRD2j created_at=2012-03-28 22:28:45 UTC sorting_time=1332967640 command_type="302" source="web" state="device_notified" device_id="355031040449155" delivery_requested_at=2012-03-28 18:28:45 UTC updated_at=2012-03-28 22:28:45 UTC profile_type=nil params=nil device_audit_id=nil>
Riak search
1.9.2-p290 :184 > client.search('commands','device_id:355031040449155')
=> {"responseHeader"=>{"status"=>0, "QTime"=>14, "params"=>{"q"=>"device_id:355031040449155", "q.op"=>"or", "filter"=>"", "wt"=>"json"}}, "response"=>{"numFound"=>0, "start"=>0, "maxScore"=>"0.0", "docs"=>[]}}
Riak::HTTPFailedRequest - Expected 201 from Riak but received 500. <html><head><title>500 Internal Server Error</title></head><body><h1>Internal Server Error</h1>The server encountered an error while processing this request:<br><pre>{error,
{error,badarg,
[{erlang,iolist_to_binary,
[{hook_crashed,{riak_search_kv_hook,precommit,error,undef}}]},
{wrq,append_to_response_body,2},
{riak_kv_wm_object,handle_common_error,3},
{webmachine_resource,resource_call,3},
{webmachine_resource,do,3},
{webmachine_decision_core,resource_call,1},
{webmachine_decision_core,accept_helper,0},
map <F4> :NERDTreeToggle <CR>
let g:fuf_dir_exclude = '^pry'
:set nu
set tabstop=2
colorscheme desert
nnoremap <F3> :FufCoverageFile<CR>
nnoremap <F5> :FufFile<CR>
filetype indent on
nnoremap <C-down> :m+<CR>==
nnoremap <C-up> :m-2<CR>==
application error
NoMethodError at /devices/bccf4d12d11815ca50d7cd6bac779ac7d0c89c5e/state
private method `get_action_for_lost' called for #<Device:0xbfec990>
file: attribute_methods.rb
location: method_missing
line: 385