HNHacker News
TopNewBestAskShowJobs

stevetrewick

1,286 karma · joined March 10, 2013

Former dark matter programmer, analyst, startups to large multinationals. Currently indy Mac/iOS dev and part time tennis coach. Occasionally take interesting consulting gigs (reverse engineering, legacy system hacking). Cat person.
submissionscomments
stevetrewick··on Votes could be counted as fractions instead of as whole numbers
I'm deeply unconvinced by TFA (and the rest of the series). There are insufficient technical details (and those that are there are taken way out of context) to judge whether a) the author's conjecture is reasonable, and b) the author actually has sufficient understanding of such details to make their claims credible.

There's stuff like 'some code I found an FTP server one time' which add considerable amounts of doubt and ambiguity.

That said, such objections merely highlight the root cause of the problem - the software and process is not auditable. If it was I could just go and check for myself. Without that access neither I nor anyone else can verify the claims, nor the counter claims that everything is legit (though see also Thompson hack, reproducible builds, etc)

I'm not a 'closed source = evil' kind of a person but here it seems like an absolute no brainier.

stevetrewick··on Parsing JSON is a Minefield
Parsing is often deeply recursive and in some languages, throwing an exception will automatically unwind the stack until it finds a handler. As well as explicitly giving you a good path and a bad path (as someone pointed out upthread) this can (again, in some languages) save a ton of repeated special case code in your parsing routines.

Some languages or libraries are explicitly designed to use exceptions for flow control some strongly discourage this. Apple's ObjC error handling guide for example contains this stricture but also calls out parsing as an example of when you should do it.

C.A.R 'null pointer' Hoare considered exceptions a blight on the earth that would lead to us accidentally nuking ourselves, so there's a spectrum of opinions available here.

stevetrewick··on Cheerleading with an agenda: how the press covers science
Weird article. Author seems less concerned that academics and journalists may have an agenda and more that it's the wrong agenda.
stevetrewick··on Uber Self-Driving Truck Packed with Budweiser Makes First Delivery in Colorado
Video from Otto's YouTube chan :

http://youtu.be/Qb0Kzb3haK8

stevetrewick··on Uber Self-Driving Truck Packed with Budweiser Makes First Delivery in Colorado
If that were universally so, there would be no trucks.
stevetrewick··on Poor kids who do things right don't do better than rich kids who do things wrong
That doesn't much sound like the UK I live in. Would you mind expanding on that a bit?
stevetrewick··on Poor kids who do things right don't do better than rich kids who do things wrong
92 out of 813 seats are hereditary peers, the remainder are life peers [Edit: forgot the Bishops] appointed (technically) by the monarch on the advice of the government.

There's really no such thing as a class 'system', let alone anything one could point to as being 'formal'. There is a bunch of in/out group signalling with fairly extreme geographic variations. Mobility across social boundaries can be achieved by understanding and adapting to the signalling although crucially (and getting back on topic) this requires the belief that you are entitled to do so.

I'm down on the notion of class in general personally. I think it's at best an incredibly lazy intellectual model of complex social phenomena. Basically I think there's no such thing [0], but I do very much enjoy listening to the things people say while they're explaining why I'm wrong about this.

[0] Problematic for this theory is that people certainly believe there is and this has operational effects.

stevetrewick··on Webcams used to attack Reddit and Twitter recalled
It's UPnP [0]. It was always going to be UPnP. UPnP is the wrong set of trade offs and always was. And even making it 'off by default' won't solve the problem because the standard instructions for getting any multiplayer game or IoT gizmo to work are 'turn on UPnP'.

Not that this in any way absolves the OEM for the utter idiocy of including the telnet port in their forwards at all and the absolute negligence of having it active by default and 'secured' by a single or small combination of well known auth tuples.

But yeah, that's really what they did. Here's the section of Mirai's scanner.c that sets up the destination port. [1]

    // Set up TCP header
    tcph->dest = htons(23);
    tcph->source = source_port;
    tcph->doff = 5;
    tcph->window = rand_next() & 0xffff;
    tcph->syn = TRUE;

They really did just forward port 23. Tempting to call malfeasance but at best massive incompetence.

[0] https://www.us-cert.gov/ncas/alerts/TA16-288A

[1] https://github.com/jgamblin/Mirai-Source-Code/blob/master/mi...

stevetrewick··on As Artificial Intelligence Evolves, So Does Its Criminal Potential
Any observed statistical regularity will tend to collapse once pressure is placed upon it for control purposes

Goodhart's Law : https://en.wikipedia.org/wiki/Goodhart%27s_law

stevetrewick··on The Best Way to Not Get Tenure
I agree. I also believe there are other good reasons for this rule. Imagine : 15 minute whiteboard workshop - "capturing value from meetings". We draw a horizontal line on the board, a relative value scale, lower to the left, higher to the right. Then we shout out a bunch of stuff people do in meetings, write them post it notes and try and arrange them on the scale. Once the stream starts drying up, draw a vertical line in the middle of the scale. It will now be reasonably obvious that what's clustered on the left can be loosely categorised as 'shit you could have emailed me' and what's clustered at the right as 'spontaneous interaction of informed participants'. Likely you can now demonstrate that stuff at the left - despite perhaps having intrinsically high value - is likely subtracting value in the context of a meeting. If you have good intuitions or hard data on time and travel, you can probably come up with a cost estimate.

I recommend trying this exercise with real people with the caveats that a) some of them will become angry, and b) probably most of them will ignore the outcomes unless you have some way of incentivising them not to.

stevetrewick··on London police charge man with terrorism over use of encryption
No, I'm really not. There is a difference between explaining how something works and advocating for it. It's a category error to conflate positive statements with normative statements. I'd be interested know which part of what I wrote makes you think I'm making the latter, despite my explicit statement to the contrary.
stevetrewick··on London police charge man with terrorism over use of encryption
And who has sadly misunderstood and subsequently misrepresented the issue. Despite the click bait headlines, this case has very little to do with encryption per se.
stevetrewick··on London police charge man with terrorism over use of encryption
Previously on HN https://news.ycombinator.com/item?id=12676758

Here's a sample charge from the police press release [0]

Preparation for terrorism. Between 31 December 2015 and 22 September 2016 Samata Ullah, with the intention of assisting another or others to commit acts of terrorism, engaged in conduct in preparation for giving effect to his intention namely, by researching an encryption programme, developing an encrypted version of his blog site and publishing the instructions around the use of programme on his blog site. Contrary to section 5 Terrorism Act 2006 [1].

Here's the Act [1] :

A person commits an offence if, with the intention of— (a)committing acts of terrorism, or (b)assisting another to commit such acts, he engages in any conduct in preparation for giving effect to his intention.

In this case encryption is the conduct. It is not the conduct which gives rise to the offence, it's the intent. The actual nature of the conduct is legally irrelevant. He could just as easily have been charged with the same offence for literally any conduct if the intent was to assist in terrorism. Procuring vehicles, preparing lunch, giving a pedicure.

Lawyer in TFA seems to indicate that the met went on some kind of fishing expedition in the accused's browsing history, but a read through the linked press release [0] tells a different story :

Count 1: Membership of a proscribed organisation. On or before 22 September 2016 Samata Ullah belonged or professed to belong to a proscribed organisation namely ISIS (Daesh). Contrary to section 11 Terrorism Act 2000.

Count 2: Terrorist Training. Between 31 December 2015 and 22 September 2016 Samata Ullah provided instruction or training in the use of encryption programmes, and at the time he provided the instruction or training, he knew that a person receiving it intended to use the skills in which he is being instructed or trained for or in connection with the commission or preparation of acts of terrorism or for assisting the commission or preparation by others of such acts.

Count 4: Directing terrorism. Between 1 December 2015 and 22 September 2016 Samata Ullah directed the activities of an organisation which is concerned in the commission of acts of terrorism. Contrary to section 56 Terrorism Act 2000.

I would have thought those - if sufficiently evidenced - would be enough to establish intent [2], which is what kicks in Section 5.

So he wasn't charged 'because encryption' he was charged 'because terrorism'.

Please note that I'm not making (here) any argument for or against S5, just pointing out that the reporting of this case is misleading as to the legal reasoning.

[0] http://news.met.police.uk/news/man-charged-with-terror-offen...

[1] http://www.legislation.gov.uk/ukpga/2006/11/section/5

[2] https://en.m.wikipedia.org/wiki/Intention_in_English_law

Edit: formatting

stevetrewick··on In the UK, running a blog over HTTPS is “terrorism”, says Scotland Yard
Indeed. The Terrorism Act 2006 [0] defines the offence given in count 3 (just to pick one) thusly ...

>A person commits an offence if, with the intention of—

(a)committing acts of terrorism, or

(b)assisting another to commit such acts,

he engages in any conduct in preparation for giving effect to his intention.

That the conduct happened to be encryption is basically irrelevant. Had he been purchasing giant shrimp in order to further some bizarre terror plan then that would be the exact same offence. The author of TFA would be well advised to familiarise himself with UK terror legislation before making such sweeping and incorrect generalisations. It's the intent that is the offence, not the conduct.

Which is not to say that the UK doesn't have a frighteningly totalitarian attitude to crypto, just that this isn't a good example of it in action.

[0] http://www.legislation.gov.uk/ukpga/2006/11/section/5

Edit: add link

stevetrewick··on Google Noto Fonts
Common use is literally the only thing which defines correctness.
stevetrewick··on Code of Silence
>smaller decentralized crews that would be much less violent

Maybe, maybe not. The problem is that those businesses are still illegal and so have no recourse to the law for dispute settlement. When fraud, theft, delinquent payments, etc cannot be addressed with the force of the law they can only be addressed with the force of, well, force. Which likely escalates recursively until the biggest bad ass is holding all the marbles, taking us back to where we started out. It's that lack of recourse to legit dispute settlement that fundamentally guarantees that illegal markets for high demand, high value goods will attract and/or create violent actors, IMO.

stevetrewick··on The 2016 Nobel Prize in Physics
Something not entirely quite unlike this http://matpalm.com/blog/2011/08/13/wikipedia-philosophy/
stevetrewick··on Solar outstrips coal in past six months of UK electricity generation
The actual economy doesn't give a fig for the appetites of 'the current elites' - whatever that means, but that's not the point, the point is that it is bad to move to an energy supply model that creates a large number of additional jobs because that means it is likely to be more expensive than the current one. It also carries the opportunity cost of the value that labour could add by doing stuff other than keeping the lights on for the rest of us.
stevetrewick··on Solar outstrips coal in past six months of UK electricity generation
How refreshing to come across someone who understands the economics and doesn't just blame Thatcher.
stevetrewick··on Solar outstrips coal in past six months of UK electricity generation
>If harnessed properly, a mass-switch to renewables could generate millions of jobs

There are excellent reasons why it shouldn't. Jobs are a cost of doing something, not a benefit.

stevetrewick··on Solar outstrips coal in past six months of UK electricity generation
If by 'before' you mean in 1920, when mining employment peaked at around 1.2 million. In 1970, 5 years before Thatcher was elected there were around 300,000. [0]

To your second point, I come from a mining background, you can find my name on many pit disaster monuments and you can take it from me that that benefit is very much recognised.

[0] https://en.m.wikipedia.org/wiki/Coal_mining_in_the_United_Ki...

stevetrewick··on Solar outstrips coal in past six months of UK electricity generation
Sigh.

>Annual mean precipitation over England and Wales has not changed significantly since records began in 1766. Seasonal rainfall is highly variable, but appears to have decreased in summer and increased in winter, although with little change in the latter over the last 50 years. [0]

>The results suggest that there have been trends towards more protracted high flows over the last 30–50 years, but that this could be accounted for as part of climatic variation rather than climate change. There is no statistical evidence of a long–term trend in flooding over the last 80–120 years. Thus, although climate change could be influencing floods, direct analysis of flood records does not yet provide proof. [1]

>The adjusted record shows no trend in reported flooding over time, but there is significant decade to decade variability. [2]

>A rising population, more households and greater wealth have led to an ever greater demand for water, putting the limited supply in the south of England under stress. [3]

So no, if we like an evidence based approach, climate change has not had any measurable effect on precipitation, flooding or water shortages in the UK. These are basically seasonal variations exposing infrastructure weaknesses.

[0] p12 : http://www.ukcip.org.uk/wp-content/PDFs/UKCP09_Trends.pdf

[1] http://rsta.royalsocietypublishing.org/content/360/1796/1327...

[2] http://dx.doi.org/10.1080/02626667.2014.950581

[3] http://catchments.nerc.ac.uk/issues/crisis/index.asp

stevetrewick··on ​How to Send an Email in 1984
Not very AFAICT, partly because audio out was relatively uncommon, never knew anyone who got it to load and they stopped doing it after the first series IIRC. Great bit of nostalgia.
stevetrewick··on ​How to Send an Email in 1984
Ugh, manual switches! Should have sprung the extra for a Hayes Smartmodem 1200. Bet he just liked it because he got to twiddle the knobs.

I never managed to load the software (because our TV didn't have an audio jack and I just stuck a tape recorder up to the speaker exactly as the nice lady suggested we not do) and I didn't know anyone who did, but I've left a link to a recent demodulation from that very video up thread.

stevetrewick··on ​How to Send an Email in 1984
>At first I tried to load these files into BeebEm. The trouble is that BeebEm doesn't take .wav files directly-- you have to convert them to a format called .uef-- and the conversion programs were reallyt finicky with noisy signals. And this signla is very noisy, having been transmitted over UHF, recorded on home video, and then digitised. In the end, I ended up writing my own demodulator

http://marnanel.dreamwidth.org/361588.html

stevetrewick··on C Is Not Reasonable
ULONGLONG is in fact a Windows Drivers Kit specific type. WDK has its own specialised set of weird and uncomfortable type conventions in the MS style [0] and although the author's point about C arithmetic type promotion is generic, his context is WDK device drivers, so ULONGLONG is absolutely correct, if possibly somewhat archaic (there's a ULONG64 lately).

[0] https://www.osr.com/blog/2015/05/27/newbie-corner-theres-typ...

stevetrewick··on C Is Not Reasonable
>OKOK, so you write drivers but don't know about C types, standard types, fixed-length types

That was my thought as well. I've occasionally been hired to write windows kernel drivers and I'd say that if you don't have a good grasp of stuff like C's type promotion, you're gonna have a bad time. Surprised to see this from OSR, which was a great source of info for driver development arcana when I was doing it.

Edit: remove repeated phrase

stevetrewick··on Sale of Kodi ‘fully-loaded’ streaming boxes faces legal test in UK
Correct. The UK legislation which defines what kind of infringement (or enablement thereof) constitutes a criminal offence [0] uses the language "In the course of a business ... otherwise than in the course of a business to such an extent as to affect prejudicially the owner of the copyright."

The second is a very high barrier.

[0] https://www.gov.uk/government/publications/intellectual-prop...

stevetrewick··on As Our Jobs Are Automated, Some Say We'll Need a Guaranteed Basic Income
Actually-and perhaps surprisingly-a sizeable swathe of doctors are directly in the firing line for automation and have been for some time[0]. Medical and legal expert systems have been an AI research goal from the very beginning. Economically speaking, it may make sense to automate high cost labour sooner than low cost.

[0] https://www.google.co.uk/search?site=&source=hp&ei=uGnoV6-AC...

stevetrewick··on Show HN: An Open Source Tool to Combat Clickbait Links
"Publishers hate it!"
← PreviousPage 2 of 11Next →