HNHacker News
TopNewBestAskShowJobs

levi_n

101 karma · joined June 5, 2016

submissionscomments
levi_n··on Ask HN: Your favourite tutorial for total beginners?
It's a bit dated now, but I found Using Docker by Adrian Mouat to be incredibly helpful.

http://shop.oreilly.com/product/0636920035671.do

levi_n··on Show HN: Sanic – A Comprehensive CLI for Kubernetes
Im very interested in trying this! Looks like the download page only supplies a linux binary at the moment: any plans to offer a Mac OS version too?

For what it's worth, I was able to build a Mac OS version locally.

levi_n··on FizzBuzz in ten languages
A bit shorter python version:

    for x in range(1, 101):
        out = ""
        if x % 3 == 0:
            out += "Fizz"
        if x % 5 == 0:
            out += "Buzz"

        print(out or x)
levi_n··on Advent of Code Python Solutions, Explained
Fair point. I wasn't trying to necessarily criticize the solutions, but personally found differences between the given solutions and my own enlightening.
levi_n··on Advent of Code Python Solutions, Explained
Thanks for the link, OP.

Looking at just Days 1 and 2, the author has given examples that are certainly concise, but (arguably) at the expense of readability. Similarly, the Day 2 part 2 answer is concise at the expense of performance, as there is a lot of duplicated comparisons and comparisons that could be skipped.

levi_n··on AWS icon quiz
i before e except when you run a feisty heist on a weird beige foreign neighbor
levi_n··on Common Git Problems and How to Fix Them
I found the list helpful, with just about everything I would expect in a list such as this.

If I could make one suggestion: I found it to be quite annoying to have to click through to a two-line gist for every single one command. Having those commands be in the article itself would be considerably easier to read.

levi_n··on Python decorators they don't tell you about
I've used that multipledispatch, along my own homegrown version, in production systems.
levi_n··on Meltdown and Spectre
This tweet has a GIF of the original YT video: https://twitter.com/misc0110/status/948706387491786752
levi_n··on Meltdown and Spectre
I would also assume this means exploits on a machine provisioned with multiple VMs from different customers would allow a malicious customer to leak data from another customer's VM located on the same machine.
levi_n··on Ask HN: What are best tools for web scraping?
>Have you found that you aren't able to find accessible APIs to request against?

I'm scraping from variety of different websites (1000+) that my org doesn't own. Reconfiguring to hit APIs would be complex, and a maintenance problem, both of which I easily avoid by using selenium to drive an actual browser, at the expense of time.

>Have you ever tried to contact the administrators to see if there's an API you could access?

Just not feasible given the scope and breadth of the scraping.

>Are you scraping data that would be against ToS if you tried to get it in a way that would benefit both you and the target web site?

I inspect and respect the robots.txt

levi_n··on Ask HN: What are best tools for web scraping?
I use a combination of Selenium and python packages (beautifulsoup). I'm primarily interested in scraping data that is supplied via javascript, and I find Selenium to be the most reliable way scrape that info. I use BS when the scraped page has a lot of data, thereby slowing down Selenium, and I pipe the page source from Selenium, with all javascript rendered, into BS.

I use explicit waits exclusively (no direct calls like `driver.find_foo_by_bar`), and find it vastly improves selenium reliability. (Shameless plug) I have a python package, Explicit[1], that makes it easier to use explicit waits.

[1] https://pypi.python.org/pypi/explicit

levi_n··on Ask HN: What are best tools for web scraping?
The excepted answer on this stack overflow question[1] might help. tl;dr is to build your own chromedriver, but with renamed variables.

[1] https://stackoverflow.com/a/41220267/4079962

levi_n··on [dead]
I connected the app and poked around a bit. I like the visual representation of my infrastructure, and especially liked the visual mapping of interconnected services.

As others have said, I find the pricing model to be off. Additionally, the app UI looks ands feels dated.

levi_n··on Show HN: Hatch – A modern project, package, and virtual env manager for Python
Thank you for clarifying.
levi_n··on Show HN: Hatch – A modern project, package, and virtual env manager for Python
Unless I'm mistaken, Hatch is only 3.5+, but contains a command line option to specify if a project is 2 compatible.
levi_n··on Show HN: Hatch – A modern project, package, and virtual env manager for Python
Agreed, a quick-start example at the top would be both helpful and engaging.
levi_n··on Increasing numbers of wingsuit jumpers are dying (2016)
I plotted the total BASE + wingsuit deaths since inception: http://i.imgur.com/BdlUrFK.png

* Note that the BFL has some errors in it's dates, which account for the downward trend in 1993 and 2000

levi_n··on We Have 24 Hours to Save Online Privacy Rules
https://resistbot.io/ makes it real easy to contact your representatives in a manner they are more likely to see.
levi_n··on Ask HN: What projects are perfect for learning a new language?
If you like math at all, www.projecteuler.net/problems is worth a look. They pose math related problems that are intended to be solved programmatically. Once you've solved a problem correctly you are given link to the problem's forum page, where others people have posted their solutions.

Whats truly great is that you are forced to solve the problem on your own, and then you can see how others did it, both in your chosen language(assuming it's a somewhat common language), but also a myriad of other languages.

← PreviousPage 2 of 2