HNHacker News
TopNewBestAskShowJobs

bbayles

1,191 karma · joined January 8, 2015

32bits.substack.com
submissionscomments
bbayles··on Boltons: A set of BSD-licensed, pure-Python utilities
See also more-itertools for lots of other things in this vein.
bbayles··on Sony posts whole movie on YouTube in trailer's place
Legacy video-on-demand systems (the sort your cable box can access) get full copies of movies with no DRM that could easily be uploaded to YouTube. They're often sent as part of a package that includes a preview (the trailer), a poster image, and metadata.

It wouldn't be hard, given one of these packages, to put the wrong file in.

bbayles··on AT&T updates firmware to block access to 1.1.1.1
You're absolutely right about this. This is almost certainly just there to block people who mistakenly paste in an example configuration somewhere.

Back in 2010 there were problems that came up when IANA started allocating out of 1.0.0.0/8 (e.g. [1]). Things that were once assumed to be unused started being used, leading to strange issues.

Also, why on earth would AT&T block 1.1.1.1 and not Google DNS and OpenDNS?

[1] https://bgpmon.net/issues-with-allocating-from-1-0-0-08/

bbayles··on Python decorators they don't tell you about
I had fun a little while back abusing decorators to alter the return value of generator functions: https://sites.google.com/site/bbayles/index/decorator_factor...
bbayles··on Some chip makers have hidden latency and jitter issues from common tests
This is a bit scrambled.

Both IPv4 and IPv6 have a spot in their headers to tell what type of traffic is being carried. This is a 1-byte integer called a protocol number.

The TCP protocol is protocol number 6. UDP is 17. ICMP is 1. All are carried over IP.

Both IPv4 and IPv6 have another spot in their headers to identify their version. This is where 4 and 6 go, but it's not the same as the protocol number field.

Similarly, Ethernet has a protocol identification field, "EtherType." IPv4 is number 2048 (0x0800); IPv6 is 34525 (0x86DD)

bbayles··on Justice Department suing AT&T to block $85B bid for Time Warner
I think it makes plenty of sense to criticize the consistency of the DOJ.

What I'm saying is that "Trump doesn't like CNN" is a silly explanation for DOJ wanting either AT&T to spin off DTV or for Time Warner to spin off Turner Broadcasting.

Maybe the latter scenario somehow influences CNN's coverage, but it's an extremely tenuous link.

bbayles··on Justice Department suing AT&T to block $85B bid for Time Warner
This is nonsense.

The DOJ is asking for either DirecTV or Turner Broadcasting be excluded from the deal, because being under the same roof would be a huge boost to DirectTV over its competitors - cable companies and Dish Network.

Turner Broadcasting includes several channels. Both TNT and TBS are probably more important to the deal than CNN (the former has higher ratings than CNN across the board; the latter does in primetime); the idea that it's the sole focus for DOJ is highly questionable.

Furthermore, how does DOJ's actual demand hurt CNN? AT&T could spin out Time Warner and keep the Turner channels. Or even if Time Warner spun out the Turner channels, they wouldn't go away (they were independent of Time Warner in the 1990s).

I'm as anti-Trump as the next guy, but the idea that there's not a rational basis for DOJ's demand is simply mistaken.

bbayles··on LibreOffice 5.4 released with new features for Writer, Calc and Impress
Love LibreOffice - I've used it and OpenOffice for over 15 years. I've been heartbroken by recent releases, however - the keyboard shortcuts in Calc (and other components) have changed.

This is like breaking my fingers - I'm so much slower now. It's not just that there's a difference - I can adapt to that. It's that they've re-labeled menu entries with duplicate index keys. You can't do some things quickly now (e.g. optimize column widths with Alt-O-M-O, which worked for years).

There's a reason why MS Excel has keyboard shortcuts that make no sense - they match to menu entries from old versions, and they've kept them in so people who have been using it for decades don't have a reason to switch.

Please, LibreOffice developers, make your menu shortcuts sensible again!

bbayles··on Foxconn to Build $10B Factory in U.S
The article states that: "At $3 billion for 13,000 jobs, the Wisconsin deal would cost $231,000 per job."

By comparison, economists have estimated $125K/job-year to $202K/job-year from the 2009 stimulus (ARRA). [1]

[1] https://files.stlouisfed.org/files/htdocs/publications/revie... , page 3

bbayles··on Cisco acquires network security startup Observable Networks
Likewise!
bbayles··on Why Tesla Is Worth More Than GM
Conflating market cap and total worth is a pet peeve of mine.

Market cap is "price of one share" multiplied by the total number of shares outstanding.

If you want to buy a small number of shares, you can probably just multiply to find the total price you would pay.

If you want to buy a large number of shares, or the whole company, you can't just multiply. You would need to get the current owners to sell to you, and they might either charge you a premium or refuse to sell. The total worth of a company depends on the distribution and type of ownership (among many other things).

Market cap is a fine shorthand, but serious analysis about comparing worth should control for several other things.

bbayles··on AWS Security Primer
Excellent! Pleased to see VPC Flow Logs included; they are underrated as a security tool and one big advantage AWS has over other providers.

At work I co-develop an open source Python library for reading VPC Flow Logs - it can be an easy way to get started analyzing them for security: https://github.com/obsrvbl/flowlogs-reader

bbayles··on How to Call B.S. On Big Data: A Practical Guide
I admire your charitable interpretation. I'd be fine with the rating system using automation to reduce the number of subjective decisions to be made - I thought the LVM approach was a good one when I first heard about it.

As the second article points out, even this is kind of crazy, and the implementors didn't seem to care at all about what the results were - for example, the imaging category is driven by a single measure related to abdominal CT scans.

bbayles··on How to Call B.S. On Big Data: A Practical Guide
I recently got entangled with some "big data" and "machine learning" B.S. in the form of the U.S. health care system.

CMS, the federal agency that administers Medicare, introduced a hospital quality ratings system last year. It is supposed to combine a variety of objective metrics into an easy-to-understand grade for hospitals.

However, the techniques they used are really bad. For example, a programming error makes the model give different results depending on how the data are sorted. Some measures get negative weights, meaning a hospital should do worse to get a better rating.

I wrote more about the technical failures here: https://sites.google.com/site/bbayles/index/cms-star-ratings

Another criticism: http://jktgfoundation.org/data/An_Analysis_of_the_Medicare_H...

bbayles··on The Unfinished: David Foster Wallace’s Struggle to Surpass Infinite Jest (2009)
I really enjoyed The Pale King, and felt that had it been finished it would have been one of my favorite books. The chapters with the David Wallace section in the IRS are _really_ funny.
bbayles··on The Unfinished: David Foster Wallace’s Struggle to Surpass Infinite Jest (2009)
Infinite Jest is worth getting through. It's not easy or pleasant, but it's something I'll always remember vividly.
bbayles··on The Gilectomy – How's It Going [video]
Yes, it can. The purpose of the project is to figure out how to do that while minimizing the number of APIs that have to break.
bbayles··on It’s a Wonderful Loaf
This video isn't my cup of tea, but Roberts' EconTalk podcast has been educational and illuminating for over 10 years now - highly recommended.
bbayles··on Spanish scientists create a 3D bioprinter to print human skin
Hopefully this new process's product can help alleviate some of the issues faced by burn victims.

When I was a small child I was run over by a car and severely burned (by the catalytic converter). I had to have multiple skin grafts, one fairly large.

At the time (1987), a temporary measure was to graft pig's skin over the burn. This is apparently still done today, but this new process's product (and others) could conceivably be used instead.

After the temporary graft I got autografts, which involves cutting skin off an un-burned area and applying it to a burned area. This was pretty painful†, and I wound up with a bad infection on the donor site.

The grafts have been fine ever since, but they're pretty unsightly (thankfully my clothes cover them). I also have the scar from the donor site (worsened by the infection). The artificial skin produced by these new printers will hopefully prevent some of these issues.

† I have memories of hurting from this, but I was only 1.5 years old, so I'm not sure if they're really memories or interpolations of things I've been told.

bbayles··on Many LASIK patients may wind up with glare, halos or other visual symptoms
I've never had a medical procedure work like this. The office was transparent and prompt about everything. Every other encounter with the U.S. medical system I've had has been a confusing mess.

When I first visited the office they went over why I might not want to do the procedure.

Once they confirmed I was still interested, they did human and machine measurements and tests of my eyes, and showed me the results and told me what they meant. They took care to explain their error correction procedures.

After they'd done their tests they told me what the procedure would cost and scheduled it right away They explained what I'd need to do after the procedure (eye drops and followup visits) and what that would cost.

The day of, they saw me promptly. They did more verification, and then the procedure. They made sure I understood my instructions for post-op care (correcting my misunderstanding about some eye drops).

The procedure cost what they said it would, and at each followup appointment I was seen promptly and kept in the loop about my status.

bbayles··on Many LASIK patients may wind up with glare, halos or other visual symptoms
I got my eyes fixed with LASIK a while back. I noticed glare and halos for a while, but they subsided. Overall I've been very satisfied with the how it went. I wish that more medical procedures worked this way.
bbayles··on Shame on Y Combinator
One concern with this line of argumentation: reasonable people shouldn't have to change their behavior, but rational people might want to.

That is, suppose you believe (as I do) that D.T. and his supporters are quite dangerous. If they are using my behavior to gain strength, it behooves me to change my behavior!

bbayles··on The Economics of Dining as a Couple
I'll advocate for: see a marriage counselor regularly! Before getting married if possible, and at least every couple of years after. Many people take more seriously the maintenance of their car than the maintenance of their marriage.

There's nothing magic about what you'll learn, and a lot seems pretty elementary. But go before you have a problem! This is one of the best things my partner and I have done. We know that if we have an issue there's someone we can talk to for help, and because we go regularly there's no stigma with going.

bbayles··on New DDoS Attack record 1.5+ Tbps
Water damage could run to hundreds of thousands of dollars in a few hours.
bbayles··on Announcing Azure Command-Line Interface 2.0 Preview
The directory structure is beautiful.
bbayles··on Ask HN: What are the must-read books about economics/finance?
See Mark Thoma's "Economist's View" for a broad sampling.

I personally enjoy Marginal Revolution (Alex Tabarrok and Tyler Cowen), Confessions of a Supply-Side Liberal (Miles Kimball), and The Money Illusion (Scott Sumner).

bbayles··on Ask HN: What are the must-read books about economics/finance?
This is why I said "Dubner's and Levitt's books are entertaining, but I wouldn't try to learn much about economics from them."
bbayles··on Ask HN: What are the must-read books about economics/finance?
I read Dubner and Levitt's Freakonomics in 2005. It's lame to say that a pop-science book changed my life, but since then I've thought about economics every day.

I would recommend some pop-econ to become familiar with a stylized version of how economists think. I'd recommend Tim Harford's The Undercover Economist Strikes Back and The Logic of Life and Robert Frank's The Economic Naturalist. (Dubner's and Levitt's books are entertaining, but I wouldn't try to learn much about economics from them)

The world of professional economists has been fascinating to watch over the last 10 years, as academic economist blogs are very active and very high quality. Watching debates and commentary about the global financial crises unfold on the blogs in real time was really something. Economist bloggers have a real influence on policy now, and whole schools of thought have coalesced out of blogs (e.g. market monetarism).

There are some excellent economics podcasts out there now. EconTalk (with Russ Roberts) has been going since 2006. I'd recommend listening to some of his interviews with academic economists. Macro Musings (with David Beckworth) just started this year, and the policy discussions have been quite informative.

The Marginal Revolution University website has an fantastic series of videos on economics topics. The "Development Economics" course I would recommend strongly - I wish I'd been taught the Solow Model in school.

Economics is a very interesting discipline to study from the outside. Learning a bit about it puts policy debates in a new light - I've become much more liberal on some topics and much less confident on a lot of topics. I find that reporting about economics issues is generally pretty terrible, so beware that if you get into economics you'll want to stop reading a lot of news analysis.

bbayles··on I gave commit rights to someone I didn't know
I offered to take over a library that provides a Pythonic interface for Redis a little while ago. The original author accepted, and I've really enjoyed bringing the project back to life.

I'll probably do something like that again - it would be great if there were a good list of projects that are looking for maintainers.

bbayles··on Are Index Funds Eating the World?
This is an under-appreciated point... if 99 people leave money on the table, and the 100th person picks it up, we're back to efficiency in the aggregate.
← PreviousPage 3 of 4Next →