HNHacker News
TopNewBestAskShowJobs

bramblerose

493 karma · joined December 1, 2013

submissionscomments
bramblerose··on Programming breakthroughs we need
https://github.com/instagram/MonkeyType can perform the call logging, and can export a static typing file which is used by mypy, but also e.g. PyCharm. It doesn't expose such fine grained types, but you could build that based on the logged data.
bramblerose··on Rolling your own crypto: Everything you need to build AES from scratch
The fundamental problem with cryptography (that doesn't apply as much to other areas) is that it's not a subject you can learn by playing with it. That's a result of the complexity of building a correct solution, the ease of building a solution that _looks_ correct at first glance but isn't, and the extreme adversarial nature of the problem. In most of software a "looks correct at first glance" solution is fine -- the 1% that is broken will not have significant consequences. In cryptography, your adversary will find that 1% and abuse it.
bramblerose··on Contra Wirecutter on the IKEA air purifier
Why do you feel it is weird? They are both 90%, because 90% * 100% + 10% * "effectively 0%" is completely dominated by the first term.
bramblerose··on Fabric is a Python library designed to execute shell commands remotely over SSH
Paramiko is licensed under the LGPL, though, so that doesn't apply here.
bramblerose··on 7-Zip up to 21.07 on Windows allows privilege escalation and command execution
Very confusingly written document, but from what I gather there are two vulnerabilities that are problematic for different reasons.

1) a command execution vulnerability in 7z. This is problematic because a downloaded 7z file could compromise your machine;

2) a privilege escalation vulnerability in the MS help viewer. This is problematic because it could allow an unprivileged user to gain admin rights. Why the help viewer does anything as NT AUTHORITY\SYSTEM is beyond me.

However the post presents them as one single vulnerability?

bramblerose··on Roundabouts reduced accidents and are environmentally friendly
Depends on the design. Roundabouts decrease speed (good) but if the cyclists follow the same path as cars they are more difficult to see in mirrors (bad). The Dutch solution is having cyclists follow a route about 1-2m from the main roundabout, which means cars and cyclists intersect at a near-90° angle again.
bramblerose··on Ask HN: How to design a good technical interview test (take home or live)
Good advice here: https://jacobian.org/series/work-sample-tests/ (also take a look at the series on interview questions and what makes them more or less predictive of performance)
bramblerose··on Tell HN: SWIFT is not a payments transfer system
> Never forget EU commissars are not elected officials, they are named by an totally informal group called "Eurogroup", to which supposedly only 15 EU presidents participate. However, as it's not formal, it's completely opaque how they get chosen.

EU commissars are not directly elected officials, no, but they are also not "named by a totally informal group". 'EU Commissars' (typically called an European Commissioner) are nominated by their member state, one each. The European Parliament then votes on the whole. So they are still under democratic control: through the various chosen governments of the states, and through the EP.

The Eurogroup -- a discussion body for the 19 states that use the Euro as currency -- had nothing to do with the SWIFT ban. (it does have a bunch of issues from a democratic perspective, although it seems like most of the members are just their country's finance minister... which makes sense for a discussion forum about the Euro?).

bramblerose··on 'Dutch reach' rule change to Highway Code welcomed
All the time, especially in low incidence high impact scenarios. You must wear a seat belt ("don't get killed in a crash"), your brake disks must be at least this thick ("you should be able to stop before your brakes fade"), you cannot use a mobile phone while driving ("you must pay attention to what's going on around you"). Concrete requirements are much easier to police, even though they may not reach the intended end goal completely (e.g. distracted driving due to hands free calling).
bramblerose··on Ask HN: Solving problems by mapping to other problems that we know how to solve
TRIZ (https://en.m.wikipedia.org/wiki/TRIZ) is a methodology that tries to solve problems by mapping them to a set of 40 "generic problems". It's not focused on algorithms per se, but on industrial problems.
bramblerose··on When MVPs Hurt
> I’d guess it took 4x longer to ship than expected, which allowed doubt in the project to run rampant.

Isn't that an MVP working as it should? Implement something small, realize the whole project is _much_ more complicated than expected, and therefore realizing it's a bad plan after investing 'MVP' sized money rather than 'full project' sized money?

Formulated otherwise, you haven't wasted X in building a useless MVP, rather you invested X in gaining knowledge that saved the company 10X (or 100X) by not investing in the wrong thing.

bramblerose··on The HoTT Game
This seems all well thought-out and the drawings are very well-made. However, descriptions like "We make a path p : true ≡ false from the assumed path (homotopy) h : Refl ≡ loop by constructing a non-trivial Bool-bundle over the circle, hence obtaining a map ( Refl ≡ loop ) → ⊥." are largely incomprehensible for people without an undergraduate in mathematics.

The combination "try to understand the math concepts that are not explained", "deal with a programming language and syntax I've never seen before" and "deal with emacs" quickly extinguished any interest I had as a mere physicist.

That being said, I think the core issue is that I'm not in the target audience. At the same time, it's being posted in a more general forum, and I think it's important for others to know that thye shouldn't feel too frustrated when they can't figure out the goal (let alone the solution) to the exercises.

bramblerose··on Ask HN: How to handle 500+ repositories in GitHub?
Fair question -- I wasn't involved in the decision, but my understanding is that GitHub is relatively cheap if you're a C# shop (i.e. you're already paying MS for VS). We had to have some moving pain anyway as teams in different departments were using a variety of different git hosting solutions and there was a wish to consolidate.
bramblerose··on Ask HN: How to handle 500+ repositories in GitHub?
In the process of moving from GitLab to GitHub. We just use naming conventions for this: all repositories are called Company.Group.Product, where Group roughly corresponds to the old GL group.
bramblerose··on Julia: Faster than Fortran, cleaner than Numpy
Because what's measured is how how the runtime (on the Y axis) increases as the matrix size N (on the X axis) increases (i.e., you set N and measure t, rather than setting t and measuring N)
bramblerose··on Licenses alone do not govern behavior in open source
"BSD" can refer to the BSD license, but I think the poster is referring to the operating system here.
bramblerose··on The secret Thinkpad powerbutton code to bring dead laptops back to life (2007)
It's unfortunate this isn't mentioned in the repair manual -- that simply mentions 'go into the bios and use that to soft-disconnect the battery'. Which is awfully difficult if you're disassembling the computer to repair the screen :-(

But at least I now know this trick for the next time I need to do something like that. Thanks!

bramblerose··on Obsolete German Units of Measurement
The "metrification" of Dutch customary units is a fascinating subject on itself. The "ons" was in fact quite close to the ounce, but it was set to 100 grams during metrification. The step from 1 pound to 1 metric pound = 500g was less noticable.
bramblerose··on Error-riddled data sets are warping our sense of how good AI is
https://labelerrors.com/ has an overview of the label errors uncovered in this research.
bramblerose··on Salesforce.com Must Face Texas Victims over Sex-Trafficking
It's a badly written article (is this a civil or a criminal case?), but my reading is that because of these facts the case was not immediately dismissed. Which does not mean Salesforce is liable, just that they need to show up for an actual trial.
bramblerose··on What’s up with these new not-open source licenses?
Thanks for explaining that, that makes a lot of sense. I hadn't considered the terms would be effectively impossible to follow, even for a reuser/hoster with good intents.
bramblerose··on What’s up with these new not-open source licenses?
> Under the license another company couldn't setup a replacement.

I'm confused here -- the new 'open core' is available under the SSPL, which clearly allows this, as long as you provide the source code of any management layers as well. The non-open parts already weren't available under the Apache license, so nothing has really changed there.

And, yes, this does mean Elastic is the only company able to build proprietary components on top of the code base, which means there isn't an even playing field with competitors. But once Elastic goes bankrupt this is no longer an issue.

bramblerose··on In Defense of Fahrenheit
One calorie, not one Joule. Water has a specific heat of ~4.2 kJ/kg.
bramblerose··on Skype contact lists may have been exposed (2017)
They have been interoperable for quite a while now: https://docs.microsoft.com/en-us/skypeforbusiness/set-up-sky...
bramblerose··on Great Britain's longest linear walk without crossing a road – Ordnance Survey
OSGB36, most likely (see https://en.wikipedia.org/wiki/Ordnance_Survey_National_Grid).

You can use https://epsg.io/map#srs=27700&x=262540.000553&y=778255.00082... to plot the listed coordinates.

bramblerose··on Carlsberg glues beer cans together as it abandons plastic rings
For trays, yes, but 6-packs are shrinkwrapped in plastic: https://i.imgur.com/VmHhQph.jpg
bramblerose··on MinUnit – A minimal unit testing framework for C (2002)
I never understood the value of Gherkin/Cucumber style testing until I worked with a QA engineer. The engineer started writing the tests (in Cucumber format) as a way to write __manual__ tests: they allow you to write 'do this, then that, verify this' in a structured manner. Automating this was a secondary goal: once you have (relatively) structured manual tests, it's nice if you can automate them, while still retaining the possibility to run them manually. This is actually important, and they would typically be end-to-end UI tests, which can be quite fragile when completely automated. Having them in a human-friendly format allows you to have a manual fallback if e.g. a changed identifier blocks you from running the automated test.
bramblerose··on Batch editing files with ed
An older version of the article contained the following:

> I had one extra weird requirement which was that some of the lines were indented with 2 spaces, and some with 4 spaces. The - elephant line needed to have the same indentation as the previous line.

bramblerose··on Modern PHP without a framework
The dynamicness of languages like Python make it relatively easy to do so. For example, it's difficult in Java to mock an http request if you can't inject a `HttpRequestor` (or so) to the object you're testing.

In Python, it is common practice to patch objects, which means that even though the code calls `requests.get()`, the call will actually be patched through to a mock. (in the Java world, this is possible with e.g. PowerMock, but generally frowned upon)

bramblerose··on Memory use in CPython and MicroPython
Why would "makes your code run 1% faster" be a better sell than "saves you 1% development time by reducing the number of bugs"?
← PreviousPage 3 of 4Next →