Skip to content

Instantly share code, notes, and snippets.

View svolpe43's full-sized avatar

Shawn Volpe svolpe43

View GitHub Profile
2018-04-09 17:44:20.499 ERROR (qtp321142942-80856) [ ] o.a.s.s.HttpSolrCall null:org.apache.solr.common.SolrException: Error trying to proxy request for url: http://<node-name>:8983/solr/<index name>/admin/ping
at org.apache.solr.servlet.HttpSolrCall.remoteQuery(HttpSolrCall.java:590)
at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:444)
at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:257)
at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:208)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
void CardProcessor::FindBlankLengthAndIndex(Card *card) {
unsigned int i = 0;
int j = 0;
int blankIndex = 0;
int blankLength = 0;
string buffer = card->GetStr();
bool foundBlank = false;
for (i = 0; i < (buffer.length()); i++) {
void CardProcessor::FindBlankLengthAndIndex(Card *card) {
unsigned int i = 0;
unsigned int j = 0;
bool blankFound = false;
int blankLength = 0;
string buffer = card->GetStr();
for (i = 0; i < buffer.length(); i++) {
if(buffer[i] == '_'){
@svolpe43
svolpe43 / gist:baf2b6ac00a0978e0a0cd3364358a3ee
Created October 28, 2016 18:35
Extract and index html pages into a Solr Cloud stack.
var request = require('request');
var fs = require('fs');
var solr_host = 'http://<>-us-east-1.sr-dev.acquia.com';
var collection;
var host;
if(process.argv[2] && process.argv[3]){
collection = process.argv[2];
#!/bin/bash -l
echo "Checking City of Boston db for R60CTR.."
resp=`curl -isS http://www.cityofboston.gov/towing/search/?plate=R60CTR`
# make sure the request came back ok
if echo $resp | grep "HTTP/1.1 200 OK"; then
# check for the criteria
if echo $resp | grep -pG "Plate not found."; then
result=" "
message="R60CTR not found."
Michael Bublé,Jason Mraz,光田康典,The National,Sarah McLachlan,Claude Debussy,Lady Gaga,周杰倫,植松伸夫,Indochine,Rise Against,City and Colour,Radiohead,Red Hot Chili Peppers,Alexisonfire,Bebo & Cigala,The Mars Volta,Chick Corea & Hiromi,Theory of a Deadman,Cantaloupe Island,Adam's Apple,A Brighter Day,Afrodisia,Mambo De La Pinta,Greg Osby,James Newton,Testify,Art Blakey,Caravan,Tsuyoshi Sekito,Mira,Temptation,A Night In Tunisia,Serj Tankian,Winter,Duke Pearson,Cantaloop (Flip Fantasia),Cæcilie Norby,El Cumbanchero,You Don't Know What Love Is,Death Letter,Art Taylor,Closer to Home,Indio Gitano,Solomon Ilori and his Afro-Drum Ensemble,Black Byrd,Far West,Hi-Heel Sneakers,Congalegra,There Is The Bomb
The Beatles,Chase Coy,Stephen Jerzak,nevershoutnever!,Taylor Swift,The Maine,All Time Low,Boys Like Girls,McFly,Owl City,Glee Cast,Brokencyde,Ke$ha,Relient K,Cobra Starship,Jason Mraz,Across The Universe Soundtrack,Romance On A Rocketship,Hellogoodbye,Avril Lavigne,Show Me The Skyline,Hey Monday,Sterling Knight,Kate Nash,Plai
Step = .001
A = 500;
B = 1000;
Range = A - B
arrayLength = Range / Step
/*
* My javascript
*
**/
$("#moduleform").submit(function(e){
$.ajaxSetup({ headers: { 'X-CSRF-Token' : $('meta[name=_token]').attr('content') } });
e.preventDefault();
var name = $("input#modname").val();
var token = $("input[name=_token]").val();
//Javascript
$("document").ready(function(){
$("#mod-form").submit(function(e){
$.ajaxSetup({
headers: { 'X-CSRF-Token' : $('meta[name=_token]').attr('content') }
});
e.preventDefault();
var name = $("input#name").val();
var token = $("input[name=_token]").val();
var dataString = 'name='+name+'&token='+token;
<?php
/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the Closure to execute when that URI is requested.