HNHacker News
TopNewBestAskShowJobs

lil_tee

2,483 karma · joined February 13, 2013

https://toddwschneider.com
submissionscomments
lil_tee··on Show HN: SEC 13F Filings – Investment Manager Quarterly Holdings Data
Thanks. The 13F XML is not too complicated, here is the relevant section of code in case helpful: https://github.com/toddwschneider/sec-13f-filings/blob/main/...

I haven't worked with XBRL though, so am not sure if it's more involved

lil_tee··on Show HN: SEC 13F Filings – Investment Manager Quarterly Holdings Data
GitHub repo available here: https://github.com/toddwschneider/sec-13f-filings
lil_tee··on To Keep Track of Reddit Conversations Around NYT Articles, We Built a Slack Bot
nytimes.com is #3 domain of late, really #2 behind only github.com if you exclude ycombinator.com (all of the Shows, Asks, etc.)

Top 10 domains by # of items on front page since 1/1/18:

   rank |     domain      | count 
  ------+-----------------+-------
      1 | github.com      |  2041
      2 | ycombinator.com |  1911
      3 | nytimes.com     |  1818
      4 | bloomberg.com   |  1028
      5 | medium.com      |   826
      6 | techcrunch.com  |   735
      7 | theguardian.com |   666
      8 | github.io       |   615
      9 | bbc.com         |   558
     10 | arstechnica.com |   493
lil_tee··on To Keep Track of Reddit Conversations Around NYT Articles, We Built a Slack Bot
FWIW, nytimes.com accounts for ~4% of all posts that appear on the HN homepage: https://toddwschneider.com/dashboards/hacker-news-trends/?q=...
lil_tee··on Show HN: A free, lightweight static page to get stock quotes using the IEX API
Thanks, agreed this is a good idea and I added query param support here: https://github.com/toddwschneider/stocks/pull/4
lil_tee··on New data shows NYC taxi usage down 11% in H2 '15 compared to previous year
TLC just released 6 additional months of trip-level data (Jul-Dec 2015): http://www.nyc.gov/html/tlc/html/about/trip_record_data.shtm...

GitHub repo updated to process additional data: https://github.com/toddwschneider/nyc-taxi-data

lil_tee··on A Tale of Twenty-Two Million Citi Bikes: Analyzing the NYC Bike Share System
Number of bikes in active use does not seem to change with the seasons: https://github.com/toddwschneider/nyc-citibike-data/blob/mas...

The summer 2015 increase corresponds to the permanent expansion in August 2015; I'm not sure why there was a dip in Q1 2015

lil_tee··on Analyzing 1.1B NYC Taxi and Uber Trips
Yes, the database is all on the machine's local 512 GB hard drive. I did store the downloaded flat text files to an external drive and loaded them into the db from there.
lil_tee··on Analyzing 1.1B NYC Taxi and Uber Trips
Sure, there are undoubtedly lots of examples of businesses that opened in desolate areas and created new taxi activity where there had been none previously, I just happened to focus on Williamsburg for the post.

Another idea that I didn't get around to doing was to look at concert venues and measure taxi traffic around particular concerts to see if it would correlate to bands' overall popularity

lil_tee··on Analyzing 1.1B NYC Taxi and Uber Trips
Yep, all on a 2012 MacBook Air. Data size was over 400GB with indexes

Simple queries on indexed columns of the trips table take a minute or two, more complicated queries that require a full sequence scan can take up to a few hours

lil_tee··on Analyzing 1.1B NYC Taxi and Uber Trips
My dataset does not include livery cabs

FiveThirtyEight has some additional for-hire vehicle data in their GitHub which they obtained via FOIL request: https://github.com/fivethirtyeight/uber-tlc-foil-response/tr...

Intuitively, I would think livery cabs have lost significant market share to Uber, but I don't actually know

lil_tee··on A Statistical Analysis of the LearnedLeague Trivia Competition
I did, though I asked permission from the Commissioner first
lil_tee··on Show HN: Instagram viewer by latitude and longitude, hosted for free on Heroku
Mostly to keep the app simple and still deployable on the free Heroku plan. Sure, it could handle multiple locations, but then it would quickly outgrow the free tier
lil_tee··on What's the Most Concave State in the U.S.? Using R to Solve a Geography Puzzle
I think the projection becomes relevant when you're looking at "straight" borders like Colorado. A great circle will bend slightly north of the northern border, so you can actually just barely touch Wyoming and Nebraska, but I don't think the projection is significant when looking at some of the more irregularly shaped states
lil_tee··on Heroku's Ugly Secret: The story of how the cloud-king turned its back on Rails
We have updated our post to incorporate some popular suggestions and reactions into our simulations: http://rapgenius.com/1504221
lil_tee··on Heroku's Ugly Secret: The story of how the cloud-king turned its back on Rails
Simulation author here with some additional analysis using a faster distribution of request times. If you use a distribution with median 50 ms, 90th percentile 225 ms, and 99.9th percentile 898 ms, then you need 30 intelligent dynos to handle 9000 requests/minute without queueing. In the same scenario with 30 naive dynos, 44% of requests get queued.

Animations and results are in the explanation at http://rapgenius.com/1502046

lil_tee··on Heroku's Ugly Secret: The story of how the cloud-king turned its back on Rails
I'm not familiar with minimum-of-two-random routing, but it does seem like assigning request to dynos in sequence would perform much better than assigning randomly (ie in a scenario with n dyno capacity, request 1 => dyno 1, request 2 => dyno 2, ... request n => dyno n, request n+1 => dyno 1, ..., repeat)

That'd be probably significantly better than the case of (request i => dyno picked out of hat) for all i

lil_tee··on Heroku's Ugly Secret: The story of how the cloud-king turned its back on Rails
But you never want to have a queue on any of your dynos! A queued request means that a user is waiting with no response. If your goal is to have 0 (or less than epsilon) requests queued, it takes far fewer dynos if the requests are routed intelligently

If you have 10 dynos and 1000 simultaneous requests, the difference between naive and intelligent might well be reduced, but that's also a scenario in which your end user response times would be horrendously slow and so you'd need more dynos either way