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
400 : {"error":"SearchPhaseExecutionException[Failed to execute phase [query], all shards failed; shardFailures {[-0rtgJWIRhGlfQVgDvIopg][events_development_20131223152109451][4]: SearchParseException[[events_development_20131223152109451][4]: from[-1],size[-1]: Parse Failure [Failed to parse source [{\"query\":{\"multi_match\":{\"fields\":[],\"query\":\"k\",\"analyzer\":\"searchkick_autocomplete_search\"}},\"size\":10,\"from\":0,\"fields\":[]}]]]; nested: QueryParsingException[[events_development_20131223152109451] No fields specified for match_all query]; }{[-0rtgJWIRhGlfQVgDvIopg][events_development_20131223152109451][3]: SearchParseException[[events_development_20131223152109451][3]: from[-1],size[-1]: Parse Failure [Failed to parse source [{\"query\":{\"multi_match\":{\"fields\":[],\"query\":\"k\",\"analyzer\":\"searchkick_autocomplete_search\"}},\"size\":10,\"from\":0,\"fields\":[]}]]]; nested: QueryParsingException[[events_development_20131223152109451] No fields specified for match_all query]; }{[-0rt |
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
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
use Encode qw( decode FB_QUIET ); | |
binmode STDIN, ':bytes'; | |
binmode STDOUT, ':encoding(UTF-8)'; | |
my $out; |
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 'spec_helper' | |
describe "Events", type: :controller do | |
before(:each) do | |
FactoryGirl.create(:user) | |
visit '/users/sign_in' | |
fill_in 'Email', with: User.last.email | |
fill_in 'Password', with: 'TestPass666' | |
click_button 'Sign in' |
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
# ... | |
# Graylog Extended Log Format (GELF) | |
use_gelf = true | |
gelf_listen_address = my-domain.com | |
gelf_listen_port = 12201 | |
# AMQP | |
amqp_enabled = true | |
amqp_host = my-domain.com |
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
<script type="text/javascript"> | |
Gmaps.map = new Gmaps4RailsGoogle(); | |
Gmaps.load_map = function() { | |
Gmaps.map.map_options.zoom = 18; | |
Gmaps.map.map_options.auto_zoom = false; | |
Gmaps.map.initialize(); | |
Gmaps.map.markers = [{"description":"Description","picture":"/assets/marker.png","width":"32","height":"37","shadow_picture":"/assets/marker_shadow.png","shadow_width":"51","shadow_height":"37","lat":35.6873983,"lng":139.7230538}]; | |
Gmaps.map.create_markers(); | |
Gmaps.map.adjustMapToBounds(); | |
Gmaps.map.callback(); |
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
/** | |
* Custom jquery.ui.autocomplete widget | |
* for main search input | |
*/ | |
$.widget( "custom.catcomplete", $.ui.autocomplete, { | |
_renderMenu: function( ul, items ) { | |
var that = this, | |
currentCategory = ""; | |
$.each( items, function( index, item ) { | |
if ( item.category != currentCategory ) { |
NewerOlder