Home Blog Page 2
I learned today that a somewhat undocumented feature of Mac OS allows users to backup to any NAS, and not just AirPort or NAS with the Apple Filesystem. The reasons this is interesting is because, first, AirPort has been discontinued, so it's no longer an option. Secondly, I've tried running...
Blackjack single deck starting probabilities.

Average Chinese Character

Using Python's Numpy is easy to draw how an average Chinese character would look like. I took the 2000 most common characters hanzidb.org, drew them onto images using `PIL` and calculated it's average with Numpy.

Simulating and Visualizing Blackjack

Introduction I am sure you are familiar with the basic strategy of Blackjack. A diagram with the dealers face up card on the x-axis and the player cards on the y-axis. In each cell, the optimal strategy is shown, usually color coded to make it easier to remember. This is...
World Cup 2018 Average Player Face by Team

Soccer World Cup 2018 Average Face by Team

  I thought today while watching England vs. Tunisia that soccer players look very much alike, especially within a team, and so I thought I could compute the average face by soccer team for this world cup. Data Getting the data, in this case, images for each player in the current soccer...
For about two years, any attempt to purchase anything on the PSN website failed with the message: "We've encountered an error while processing your order. Please try again later" It turns out I am not the only one getting this error: https://www.reddit.com/r/PS4/comments/3phke7/psn_store_weve_encountered_an_error_while. I contacted support, and they said that the billing address...

Phone Insights API

This API can parse, format and find phone numbers in text documents for any phone number worldwide. These are the endpoints: Endpoint /parse Given a phone number with an international prefix, or if you prefer by specifying the ISO country code, and the national phone number instead, we can tell you: ...
Tennis API Logo

Tennis API

I published a tennis API on https://market.mashape.com/f-sm-jorquera/tennis-database. This API has methods to query all tennis matches on the ATP since 1968,  along with players and qualifications. Filtering, sorting and pagination of the results are suported. Example request:  curl --get --include 'https://f-sm-jorquera-tennis-database-v1.p.mashape.com/v1/atp_qualification_challenge' -H 'X-Mashape-Key: {my-api-key}' -H 'Accept: application/json'  

Tablifyme API

I created an API that creates a text table from a JSON array. Useful to send tables of data over email, Slack or Markdown. The API is available on Mashape: https://market.mashape.com/f-sm-jorquera/tablifyme Example: curl -X POST --include 'https://tablifyme.p.mashape.com/tablifyme' -H 'X-Mashape-Key: My-Secret-key' -H 'Content-Type: application/json' -H 'Accept: application/json' --data-binary '{"body":,],"header":}' Result: +-----+------+-----+ | Y |...
Building maps is very easy with Folium. I got my hands on some data from the US Census, specifically, the foreign born population and total population per US county. To plot it, first download the CSV from the  2011-2015 American Community Survey 5-Year Estimates. import os import folium import pandas as pd # Load...