#Config Postfix Mac OS X Yosemite 10.10
###Step 1. Edit Postfix config file Open a terminal and edit the file main.cf:
sudo vi /etc/postfix/main.cf
First check Postfix is configured correctly, look for the following lines:
#Config Postfix Mac OS X Yosemite 10.10
###Step 1. Edit Postfix config file Open a terminal and edit the file main.cf:
sudo vi /etc/postfix/main.cf
First check Postfix is configured correctly, look for the following lines:
##Install Xcode command line tools
Xcode>Preferences>Downloads
Enable root if not already enabled: http://support.apple.com/kb/PH11331?viewlocale=en_US
##Apache
Apache is already installed, just not running.
import itertools | |
import requests, lxml, lxml.html | |
import json | |
# 7603 Hard Drives | |
# 7611 RAM | |
# 6642 random store | |
def newegg_stores_req(): | |
r = requests.api.get('http://www.ows.newegg.com/Stores.egg/Menus') | |
return [store['StoreID'] for store in json.loads(r.content)] |
/* Kosso : March 12th 2011 | |
This the only way I managed to do this without the app crashing on resume. | |
Done slightly differently to the KS example, since they unregister the service and | |
do not use a setInterval timer. | |
*/ | |
//############ in app.js : | |
// test for iOS 4+ |
"""SQLAlchemy Metadata and Session object""" | |
from sqlalchemy import MetaData, types | |
from sqlalchemy.orm import scoped_session, sessionmaker | |
from sqlalchemy.ext.declarative import declarative_base | |
from datetime import datetime, date | |
__all__ = ['Session', 'metadata', 'BaseModel'] | |
Session = scoped_session(sessionmaker(expire_on_commit=False)) |
import numpy as np | |
import pandas as pd | |
from functools import partial | |
def summary(df, fn=np.sum, axis=0, name='Total', | |
table_class_prefix='dataframe-summary'): | |
"""Append a summary row or column to DataFrame. | |
Input: | |
------ |
Steps to update local dev environment to PHP5.6 to be ready for Drupal 8. | |
In a terminal window: | |
brew update ( you may also may need brew doctor) | |
brew unlink php55 | |
brew install php56 --with-homebrew-apxs --with-apache | |
brew install php56-xdebug |
// Mirth JS Split | |
var line; | |
var message = ''; | |
while (line = reader.readLine()) { | |
message += line + '\r\n'; // 1 to N | |
try { | |
reader.mark(1); //Looks ahead | |
var nextline = reader.readLine(); | |
if(nextline==null) break; |
from threading import Thread | |
from selenium import webdriver | |
import time | |
API_KEY = "key" | |
API_SECRET = "secret" | |
def get_browser(caps): | |
return webdriver.Remote( | |
desired_capabilities=caps, |
Add the following SublimeText configuration options (to User settings):
// Set to true to insert spaces when tab is pressed
"translate_tabs_to_spaces": true,