Category: TECH
Flask – article list
Deployment Deploy Flask on Apache Recipes Larger applications using packages Flask Extensions registry Tutorials – Basic Notes application (CRUD, sqlite, SQLAlchemy) Bucketlist application (mysql) including login Tutorials RESTful JSON API … Read More
BeautifulSoup4 scrape multiline text data list without tags
import requests from bs4 import BeautifulSoup scrape = requests.get(“http://scedc.caltech.edu/recent/Maps/Los_Angeles.html”) content = scrape.content soup = BeautifulSoup(content, “html.parser”) lineitem=” for details in soup.find(‘pre’).find_next_sibling(‘pre’): lineitem = lineitem + str(details.string.split()) process further as needed … Read More
What version of Python is running ?
Two things to check: 1. Version # In the Python Console: import sys print (sys.version) Sample output: 3.5.0 (v3.5.0:374f501f4567, Sep 12 2015, 11:00:19) [GCC 4.2.1 (Apple Inc. build 5666) (dot … Read More
OS-X – secure erase free space at command line
Source: http://www.macworld.com/article/1139688/os-x/erasefreespace.html man diskutil Read the secureErase section: secureErase [freespace] level device Erase, using a secure method, either a whole-disk (including any and all partitions), or, only the free space … Read More