#Importing Data from MS SQL Server to Elasticsearch Adapted from the instructions for the jdbc importer here.
-
Download Elasticsearch
-
Install Elasticsearch
Follow instructions on https://www.elastic.co/products/elasticsearch
Steps to run Celery with Flask on Windows | |
1. Install Celery and RabbitMQ as described here: | |
http://celery.readthedocs.org/en/latest/getting-started/first-steps-with-celery.html#first-steps | |
2. Run a celery worker with the following command, in the directory of the app: | |
>celery -A messaging.tasks worker --loglevel=info --pool=solo | |
3. To run this in the background, configure a Windows service as described here: | |
http://mrtn.me/blog/2012/07/04/django-on-windows-run-celery-as-a-windows-service/ |
#Importing Data from MS SQL Server to Elasticsearch Adapted from the instructions for the jdbc importer here.
Download Elasticsearch
Install Elasticsearch
Follow instructions on https://www.elastic.co/products/elasticsearch
<?xml version="1.0" encoding="UTF-8"?> | |
<configuration> | |
<system.webServer> | |
<rewrite> | |
<rules> | |
<remove name="ReverseProxyInboundRule1" /> | |
<rule name="ReverseProxyInboundRule1" stopProcessing="false"> | |
<match url="search/_search(.*)" /> | |
<conditions /> | |
<serverVariables /> |
POST myindex | |
{"mappings":{ | |
"mytype" : { | |
"properties" : { | |
"flex_docText" : { "type": "string", | |
"analyzer" : "english" }, | |
"exact_docText" : { "type": "string", | |
"analyzer" : "whitespace" } | |
} | |
} |
function Invoke-Elasticsearch { | |
[CmdletBinding()] | |
Param( | |
[Uri]$Uri, | |
[Microsoft.PowerShell.Commands.WebRequestMethod]$Method = 'Get', | |
$Body = $null, | |
[PSCredential]$Credential | |
) | |
$headers = @{} |
function simpleSearch(text, str) { | |
var matches = []; | |
for (var i = 0; i <= text.length; i++) { | |
if (matchesAtIndex(i, text, str)) { | |
matches.push(i); | |
} | |
} | |
return matches; | |
} |
http://jsfiddle.net/gavvhzox/ | |
<canvas id="c" width="50" height="500" style="border:1px solid #ccc"></canvas> | |
canvas.on('mouse:down', function(o){ | |
isDown = true; | |
var pointer = canvas.getPointer(o.e); | |
var points = [ 10, pointer.y, 10, pointer.y ]; | |
line = new fabric.Line(points, { | |
strokeWidth: 4, | |
fill: 'black', | |
stroke: 'black', |
from functools import reduce | |
from string import ascii_lower as alphas | |
ALPHADICT = dict(zip(alphas,range(26))) | |
def kfun(iword): | |
return reduce(lambda x, y: x + ALPHADICT[y] ,list(iword),0) | |
".vimrc file | |
"Markdown to HTML | |
nmap <leader>md :%!/usr/local/bin/Markdown.pl --html4tags <cr></cr> </leader> | |
filetype off | |
call pathogen#infect() | |
syntax on | |
call pathogen#helptags() | |
filetype plugin indent on |
ant | |
autoconf | |
automake | |
bash | |
binutils | |
cairo | |
coreutils | |
cscope | |
diffutils | |
doxygen |