A personal diary of DataFrame munging over the years.
Convert Series datatype to numeric (will error if column has non-numeric values)
(h/t @makmanalp)
import asyncio | |
import base64 | |
import concurrent.futures | |
from functools import partial | |
import os | |
import pip | |
import re | |
import requests |
curl -LI mazgi.com -o /dev/null -w '%{http_code}\n' -s |
A personal diary of DataFrame munging over the years.
Convert Series datatype to numeric (will error if column has non-numeric values)
(h/t @makmanalp)
Portions taken from http://www.cs.utexas.edu/~mitra/csSpring2011/cs327/cx_mac.html (in case that link ever dies.)
Assume you've got homebrew installed.
Download the following files from Oracle
var sys = require('sys'), | |
exec = require('child_process').exec, | |
child, | |
http = require('http'); | |
child = function(res, cmd) { | |
exec(cmd, | |
function (error, stdout, stderr) { | |
res.end(stdout); | |
if (error !== null) { |
#!/usr/bin/env sh | |
brew update | |
brew install rbenv | |
brew install ruby-build | |
brew install openssl | |
CONFIGURE_OPTS=--with-openssl-dir=`brew --prefix openssl` rbenv install 2.0.0-preview1 |
Unfortunately, the Cisco AnyConnect client for Mac conflicts with Pow. And by "conflicts", I mean it causes a grey-screen-of-death kernel panic anytime you connect to the VPN and Pow is installed.
As an alternative, there is OpenConnect, a command-line client for Cisco's AnyConnect SSL VPN.
Here's how to get it set up on Mac OS X:
OpenConnect can be installed via homebrew:
brew update
brew install openconnect
validates_presence_of | |
# Attribute must not be blank (nil, false, "", " ",[] ,{}) | |
# :message => "can't be blank" | |
validates_length_of | |
# Attribute must meet the length requirements of the options | |
# :is, :minimum(integer) | |
# :within, :in(range) | |
# :wrong_length => "is the wrong length (should be {{count}} characters)" | |
# :too_short => "is too short (minimum is {{count}} characters)" |
# MySQL. Versions 4.1 and 5.0 are recommended. | |
# | |
# Install the MySQL driver: | |
# gem install mysql2 | |
# | |
# And be sure to use new-style password hashing: | |
# http://dev.mysql.com/doc/refman/5.0/en/old-client.html | |
development: | |
adapter: mysql2 | |
encoding: utf8 |