sudo apt-get install python3-pip
sudo pip3 install virtualenv
Download
http://kickass.to/infiniteskills-learning-jquery-mobile-working-files-t7967156.html
http://kickass.to/lynda-bootstrap-3-advanced-web-development-2013-eng-t8167587.html
http://kickass.to/lynda-css-advanced-typographic-techniques-t7928210.html
http://kickass.to/lynda-html5-projects-interactive-charts-2013-eng-t8167670.html
http://kickass.to/vtc-html5-css3-responsive-web-design-course-t7922533.html
http://kickass.to/10gen-m101js-mongodb-for-node-js-developers-2013-eng-t8165205.html
$ pg_dump -h <public dns> -U <my username> -f <name of dump file .sql> <name of my database>
$ psql -U <postgresql username> -d <database name> -f <dump file that you want to restore>
# You don't need Fog in Ruby or some other library to upload to S3 -- shell works perfectly fine | |
# This is how I upload my new Sol Trader builds (http://soltrader.net) | |
# Based on a modified script from here: http://tmont.com/blargh/2014/1/uploading-to-s3-in-bash | |
S3KEY="my aws key" | |
S3SECRET="my aws secret" # pass these in | |
function putS3 | |
{ | |
path=$1 |
<?php | |
require_once("PHPExcel/PHPExcel.php"); | |
$phpExcel = new PHPExcel(); | |
$styleArray = array( | |
'font' => array( | |
'bold' => true, | |
) | |
); |
You have to do 2 things in order to allow your container to access your host's postgresql database
Obs: By "Host" here I mean "the server where docker is running on".
Find your postgresql.conf (in case you don't know where it is)
$ sudo find / -type f -name postgresql.conf
# Initialize the scroll | |
page = es.search( | |
index = 'yourIndex', | |
doc_type = 'yourType', | |
scroll = '2m', | |
search_type = 'scan', | |
size = 1000, | |
body = { | |
# Your query's body | |
}) |
from pyelasticsearch import ElasticSearch | |
import pandas as pd | |
from time import time | |
root_path="/home/clemsos/Dev/mitras/" | |
raw_data_path=root_path+"data/" | |
csv_filename="week10.csv" | |
t0=time() |
# coding: utf8 | |
""" | |
Goal: import csv to database. | |
pip install pandas, numpy | |
""" | |
import pandas | |
import numpy as np |
# -*- coding: utf-8 -*- | |
# import pandas and numpy package | |
import numpy as np | |
import pandas as pd | |
# List unique values in a DataFrame column | |
df['Column Name'].unique() | |
# To extract a specific column (subset the dataframe), you can use [ ] (brackets) or attribute notation. |