Home Blog Page 2

Average Chinese Character

0
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

0
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

5
  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

0
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

1
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

0
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...

Saïgon on iPhone 6 iOS 10.2.1

0
Saigon's Jailbreak is now on beta 2r1, https://iabem97.github.io/saigon_website/ and it promises to jailbreak iPod Touch 6 (10.2.1), iPhone SE (10.2.1), iPhone 6/Plus (10.2.1), iPhone 6s/Plus (10.2.1), iPad Mini 4 (10.2.1) (Not tested), iPad Air 2 (10.2.1). I have an iPhone 6 on 10.2.1 and decided to give it a try. Download Cydia...
Although a heavy Mac Book user and lover, I had been away from Apple phones, I saw them as more restricted and expensive versions of their Android counterparts but that changed recently when my company gave me a corporate iPhone 8 Plus 256Gb. I've used the phone for roughly two...