#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
| // require this script before your document is done loading | |
| ;(function () { | |
| var isDroid = navigator.userAgent.match(/Android/) | |
| var isiOS = navigator.userAgent.match(/(iPhone|iPod|iPad)/) | |
| var droidScripts = [ | |
| "script/cordova-android.js", | |
| "script/android-utils.js", | |
| "script/cdv-plugin-childbrowser-android.js", | |
| "script/cdv-plugin-datepicker.js", |
| var mongoose = require('mongoose'); | |
| var glob = require("glob"); | |
| var path = require('path'); | |
| mongoose.connect('mongodb://username:password@localhost/dbname'); | |
| /** | |
| * We check if the connection is ok |
| { | |
| "title": "Web Requests", | |
| "services": { | |
| "query": { | |
| "idQueue": [], | |
| "list": { | |
| "0": { | |
| "id": 0, | |
| "color": "#7EB26D", | |
| "alias": "SUCCESS", |
| # get existing queries results | |
| users = get_query_result(132) # this one has {id, name} | |
| events_by_users = get_query_result(131) # this one has {user_id, events count} | |
| # actual merging. can be replaced with helper function and/or some Pandas code | |
| events_dict = {} | |
| for row in events_by_users['rows']: | |
| events_dict[row['user_id']] = row['count'] | |
| for row in users['rows']: |
| #!/bin/bash | |
| PROJECT_NAME=MyApp | |
| SCHEME_NAME=MyApp | |
| STARTTIME=$(date +%s); | |
| set -e | |
| set -x | |
| ### Install dependencies | |
| echo "--- Install dependencies [Time Elapsed $(($(date +%s) - $STARTTIME))s]" |
#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
| Question by @nntaleb | |
| Throw a coin, H=head, T= Tail. Which sequence one is more likely? | |
| A={H,T,H,T,H,T,H,T,H,T,T,H,T,H,H,T,T,T,H,H} | |
| B={H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H} | |
| C={H,H,H,H,H,H,H,H,H,H,T,T,T,T,T,T,T,T,T,T} | |
| # Make a directory you can blow away in full later | |
| mkdir -p aicamp_demo && cd aicamp_demo | |
| # Clone and pin the fwhigh/metaflow-helper git repo | |
| git clone https://github.com/fwhigh/metaflow-helper.git | |
| cd metaflow-helper | |
| git checkout v0.0.1 | |
| # Set up and active a virtual environment | |
| # Install the metaflow-helper package in editable model and dependencies |