HNHacker News
TopNewBestAskShowJobs

lewiscollard

728 karma · joined August 28, 2015

Django by day, petrolhead by night, cat BFF all the time - root@lewiscollard.com - https://exhaust.lewiscollard.com/
submissionscomments
lewiscollard··on Ask HN: Best books you read in the past decade?
Steven Pinker's "The Sense of Style" is a fantastic book about effective English writing. It helped codify some stuff I already did out of habit but never really knew why, and taught me plenty of new things too. Recommended for anyone whose job involves technical writing!

Alexander Watson's "Ring of Steel" is World War I seen from the perspective of the Central Powers. OK, it didn't really help me personally or professionally, so I'm not sure it counts. But it was definitely a huge perspective-changer, and so beautifully written too.

lewiscollard··on The Liar's Walk: Detecting Deception with Gait and Gesture
You are entirely right.

I am scared that our "AI" (really ML) future will be ML trained from bad data and it's pre-crime-fun for anyone that just acts a bit weird or tries to not stand out too much.

I hope there are enough people like you in the institutions where it matters to be all "hey, wait a fuckin SECOND here".

lewiscollard··on Floatplane – Linus Tech Tips launches their own video hosting platform
In fairness, this might have just been an overly-broad solution to a certain problem. That is, if you have an element that is clickable and isn't an <a> or <button>, double clicking it can cause page content to be selected when this was not intended.

"user-select" should be disabled more specifically than it is in this case, for sure, but that is what I suspect is really going on here.

lewiscollard··on Show HN: A bookmarklet to remove clickgates on New York Times, Medium, etc.
Good stuff timar - this definitely beats my trick of hitting the Esc key at just the right moment to stop JS from loading. I've gotten very good at that, but also life is very short and I shouldn't need to! So your bookmarklet will come to the rescue :)

Could this be integrated with Firefox's Reader mode somehow?

lewiscollard··on Ask HN: Who wants to be hired? (December 2019)

  Location: within commuting range of Cambridge or London, UK 
  Remote:  I like being around people too much to work remote, but everything is an option!
  Willing to relocate: not much
  Technologies: Python + Django, plus anything you care to throw at me :)
  Résumé/CV: https://wat.lewiscollard.com/cv.pdf
  Website: https://hp.lewiscollard.com/ (this is what I do for fun)
  Email: root@lewiscollard.com
(edited: formatting)
lewiscollard··on The 16-inch MacBook Pro is a repudiation of the ‘Ive Doctrine’
I'll put money on that not being the engineers; I'm guessing that a dev merely added Google Tag Manager and someone in sales/digital marketing went to town on it.

Still, yep, I disabled uBlock Origin and that site is bad (on my work's 2015 Macbook Pro). I like disabling it on news sites every now and then to remind me just how utterly fucking unusable much of the Web is without it.

lewiscollard··on Using Firefox for a faster, calmer and distraction-free internet
To expand on your comment a little: The new API means uBlock Origin cannot do useful things that it does now. gorhill/Raymond is not refusing to implement a new API, he is refusing to nerf uBlock Origin.

That's a stance I like very much. And it is good news for Firefox for sure, since the roughly 30% (last I checked) of users that use privacy-enhancing extensions are being handed a very good incentive to switch.

lewiscollard··on We Stood Up to a Patent Troll and Won
> Please remember that patents were invented as a way to fight trade secrets.

Does anything in the early history of patents backs the assertion that they were invented for that reason?

"Patents might be useful as a way to fight trade secrets", is not the same thing, and could even be true enough; I think "patents were invented because..." might be a back-port of more recent thinking on to a history that does not support it.

lewiscollard··on NSO hacked WhatsApp to spy on top government officials at U.S. allies
The bad guys will find out first.

Back when I first heard that, the bad guys were bored and/or hyperactive teenagers who understood how computers work. Today we are talking nation-state actors and nation-state-sponsored actors with practically unlimited resources.

Keeping your code secret will not stop them, cf. WhatsApp. "Responsible disclosure" will not stop them either, and sets up all the wrong kinds of incentives for vendors to sit on problems until just before the "responsible" disclosure window closes. And FFS, there are still grown adults that believe building backdoors into E2E won't be exploited by the bad guys first, insofar as they are not the bad guys themselves.

I only have questions, not answers, and I don't know what we do from here.

lewiscollard··on Ask HN: What are unintended consequences of new tech you've noticed?
Optimising for "engagement". I don't think, at least to start with, that Machiavellian intentions were behind it. But it turned out that optimising for the thing that got the most likes, the most retweets, the most emotional reactions, and the most views from people was a shit way of deciding what information should propagate the furthest.

That is a paperclip maximiser. I don't think we, collectively, have fully come to terms with how damaging it is.

lewiscollard··on California bans private prisons
> The focus of a healthy prison system should be to rehabilitate people and help them turn their lives around so that they contribute positively to society.

Compare with this statement: "A well-run private prison system would be given financial rewards based on recidivism rates and internal violence, and could do so at less cost than state-run prisons". I suspect your response will probably be along the lines of "that's nice dear, but that's not the system we actually ended up with".

The alternative to privately-run prisons that actually exists in CA is not the healthy prison system that you have described, but is the state-run prison system: a revolving door into criminal training centres, with all the abuses you could expect from a system in which certain sets of people have near-arbitrary power over other sets of people.

> A for-profit company by definition seeks to maximize profits.

Yep, people who make money from a thing have an incentive for that thing to continue happening. Now, I challenge you to take a less narrow view of "profit", one that would include (say) a secure job that pays a good wage and comes with a cushy pension (and power over others for those that relish that sort of thing), and apply your reasoning to the state prison system.

lewiscollard··on Google begins penalising domain leasing
Wow, I'm rather shocked by the Apache Foundation doing this. It seems far too sketchy for a respected open source foundation.

FWIW, though, Google can/does penalise such links. From their list of things that can negatively affect ranking:

> Buying or selling links that pass PageRank. This includes exchanging money for links, or posts that contain links; exchanging goods or services for links; or sending someone a “free” product in exchange for them writing about it and including a link

https://support.google.com/webmasters/answer/66356?hl=en

lewiscollard··on North American versus European distribution systems (2011)
For anyone that does not know why, as rarely as I recommend videos I very much suggest Tom Scott's video "British Plugs Are Better Than All Other Plugs, And Here's Why":

https://www.youtube.com/watch?v=UEfP1OKKz_Q

lewiscollard··on Standard JS: npm install funding
The GitHub issue is now limited to contributors only, and perhaps rightly so as they tend to turn into total shitshows, won by the "clever" one-liner and emoji counts. This was a good reminder to send Feross $50 as a token of my appreciation for his work. Which I just did!

But please, please, Feross: NPM package installs are noisy enough as it is as every package seems to think it has VERY IMPORTANT things to say which are actually noise I could live without. Please do not add to the number of steamers that are being shat onto my terminal any time I do npm install/yarn. :( I understand that you should be rewarded for your work, but this isn't at all the way to go. And given that even on one of my own tiny personal projects, when you factor in the dependencies, there are like five hundred packages this just will not scale :/

lewiscollard··on The Ethics of Web Performance
I think this is a very thoughtful article. As web devs we are much more likely to be developing and testing on beefy machines and beefy Internet connections than the general population is. Let's remember that we're building this stuff for other people, not just for us. :)

I'll take one issue with one thing in the article (emphasis added):

> The cost of that data itself can be a barrier, making the web prohibitively expensive to use for many without the assistance of some sort of proxy technology to reduce the data size for them—an increasingly difficult task in a web that has moved to HTTPS everywhere.

But: HTTP/2! It's only available over HTTPS, gives really significant performance improvements and is supported on Chrome on those low-end Android devices the article mentions (and basically everything browser other than IE11 on Windows < 10 and Opera Mini).

lewiscollard··on SFTPGo: A Full Featured SFTP Server in Go
What would the RL use case be for running this server, whose purpose is to facilitate transferring files from one computer's filesystem to another, on an ephemeral filesystem?
lewiscollard··on What's Coming in Python 3.8
For me, the hugs thing about f-strings was that invalid string format characters become a compile time error (SyntaxError).

  print('I do not get executed :)')
  f'{!}'


  File "stefco.py", line 2
    f'{!}'
    ^
  SyntaxError: f-string: empty expression not allowed
This has the pleasing characteristic of eliminating an entire class of bug. :)
lewiscollard··on Ask HN: How do you deal with professional envy?
Don't limit it to the younger developers: we're all doing that all the time! Always have all our lives. We learn a lot of things by imitating, then understanding, then building on that. I mean, I learned English from my mother at a very young age (who was following the best practices of the 1950s) without understanding any of the underlying principles. :)

Likewise, some of the "kids these days" (literally what I call the rest of my much younger development team, and they're just as capable about poking me about my age :)) may be doing that in tech in their early-ish careers. I think it'd be underestimating younger devs to apply that too broadly, because I've seen too many little gems of genius from younger devs.

The way I see my role leading a younger team is to help the folks somewhat younger than me learn from some of the lessons I have learned: to spot code that is going to be a nightmare in the long run, to maybe gain my weird knack of being able to tell people what their bug is without even seeing the code. But they also have a valuable role in teaching me to be less conservative (disposition, not politics) when I should not be, or coming up with brilliant solutions that I was blind to.

If I had a point, it's that there's room in the world for all of us, and that both the old motherfuckers and the Kids These Days have a lot to bring to the table to build up each other. I hope this was useful in some way. :)

lewiscollard··on Ask HN: How do you deal with professional envy?
I am 36, my job title is a Lead Developer (I made it despite fucking up all of my late teens and the entirety of my 20s), and I have been outclassed in some respects by people in their 20s, and I am at peace with this.

You know there is some aspect of jealousy going on here, and being so self-aware in that way is really important and you're half the way there already! So any time you feel that you want to tear apart someone's ideas or someone's code or whatever else, that might just be the jealousy talking. While there's a lot to be said for being an old motherfucker (by tech standards) and lessons that you can teach others, just always use that as a damper on yourself.

Perhaps a good antidote to that mindset is to refocus. Tell people what they are doing right. Look for little moments of genius when you see them. Actively look for things that are done right, and be sure to let the person in question know what they did right! Building people up will make you feel good, and it will definitely feel a lot better than professional jealousy.

I hope this is helpful in some way.

lewiscollard··on 2020 Honda E Has 148 HP and More Than 221 LB-FT
Hngggg...as someone that is not so big on modern cars (my background in cars defines that loosely as "post-1995") I've gotta say that is ADORABLE. It reminds me more than a little of the original Mini 1275GT! I can't remember the last time I saw a new car whose styling I liked.

From my perspective, 221 lb/ft of torque is only slightly, as in single digits, less than the legendary Toyota Celica GT-Four (ST-205) from the 90s, and in such a cute car! If it's as small and light as it looks, that could be an awful lot of fun. :)

lewiscollard··on Brave Improves Its Ad-Blocker Performance with New Engine in Rust
Google can make forks of Chromium unusable in practice by refusing to license their WideVine DRM module.

This has already happened: https://www.theregister.co.uk/2019/04/03/googles_widevine_dr...

> Developer Samuel Maddock found this out to his cost. He's been working on an open source Electron-based (Chromium) browser called Metastream that allows users to stream videos in sync with one another. It's designed to be a way for friends to watch shows together even when they're apart.

> But Google's Widevine DRM business doesn't want to work with him. After four months of waiting, the firm responded to his request to license their proprietary DRM code, in conjunction with the castLabs API, with a denial.

(edited: formatting)

lewiscollard··on Give Firefox a chance
Ctrl + click the tabs you want to move and drag em around to your heart's content :)
lewiscollard··on How LinkedIn exfiltrates extension data from the browser
> but I guess others might find it challenging.

Nah. Perhaps I have a more strict work/not-work separation than many, but I am 9-5:30 plain-ol'-employed here, and from what I have seen of LinkedIn I am absolutely not challenged by this. I care about doing a job well, but watching a bunch of people advertising themselves to future employers by pretending to give far more a shit about The Haps in their industry than they actually do is, while almost charming, not something I would care to spend more than about two minutes every two years doing.

lewiscollard··on Why I'm still using jQuery
It is a trick to coerce it to an integer.

    >> new Date()
    Date 2019-05-27T12:52:41.932Z
    >> +new Date()
    1558961556913
    >> +"4" // works on anything else :)
    4
lewiscollard··on Update Regarding Add-Ons in Firefox
> Please note: The fix does not apply to Firefox ESR or Firefox for Android.

Damn it, Firefox, because it supports extensions, i.e. uBlock Origin, is the only usable browser on Android :(

lewiscollard··on A Conspiracy to Kill IE6
I'm glad you've actually measured this, because you've saved me from doing it! Killing off our "update your browser" nag on our sites has been something I've been considering for a while.

Over the last week we hit the jackpot at work, in that we had errors come into Rollbar caused by every version of Internet Explorer we don't support all the way back to 6. Yes, there was a little celebration in our dev team when we scored our first IE6 exception. :)

lewiscollard··on Protections Against Fingerprinting and Crypto Mining in Firefox Nightly and Beta
This is a good insight.

Because Firefox is open-source, everything can be gamed. If they went for some more "intelligent" method, the kind that instinctively appeals to people like you and I and anyone posting on HN, the fingerprinters could see exactly what they were being tested on, and it would be faster to iterate their counter-measures (keep this particular activity just below threshold X on metric Y) than it would be to make new Firefox releases. And the counter-measures to these more smart kind of measures happen _in secret_, whereas counter-measures to the "bash the problem to death with simple rules" approach are public, are (if their fingerprinting is to have any point) widely distributed, and thus much more immediately picked up and remedied by the many wonderful people who work on the lists used by privacy tools like ad blockers.

While we all like a cool and innovative solution, sometimes bashing the problem to death with dumb rules really is the best approach :)

(edited for a clarification)

lewiscollard··on Firefox 66.0 Aims to Reduce Online Annoyances
You (or others) may or may not know it is already possible in CSS as it is. To force 16:9:

  .DamnInteresting {
    position: relative;
    display: block;
  }

  .DamnInteresting::before {
    content: '';
    display: block;
    /* 16:9 shim! */ 
    padding-bottom: 56.25%;
  }

  .DamnInteresting img {
    position: absolute;
    top: 0;
    left: 0; 
    width: 100%;
    height: 100%;
  }
Ugly, but it's easy to make a mixin (or similar) if you're using a preprocessor!

(The ::before element isn't stricly necessary; the padding can go on the .DamnInteresting element directly - just make sure .DamnInteresting is wrapped in a containing element of your desired width and you can even use inline styles for the padding shim.)

(Edit: a word)

lewiscollard··on Ask HN: What is the best “dumb” phone?
woohoo, somehow I managed to miss this existing. I had an original 8110 back in the day and every now and then since I've daydreamed about just how cool it would be to have that same form factor with modern internals. It's real!

Yeah, I might just have to pick one of those up. :) What do you object to about the keyboard? And is it squishy rubber like the original 8110 or something harder?

lewiscollard··on Show HN: A retro video game console I've been working on in my free time
At risk of being more "me too" about this, I am in awe of the hard-earned multi-disciplinary skills that went into making this. You should be proud of yourself :) Great project, and a great read.
← PreviousPage 5 of 7Next →