HNHacker News
TopNewBestAskShowJobs

tda

2,807 karma · joined October 26, 2016

submissionscomments
tda··on Plant-based diet would reduce agricultural land use from 4 to 1B hectares
birth control != murder
tda··on Plant-based diet would reduce agricultural land use from 4 to 1B hectares
But not impossible! Just look at the COVID response. Massive and sudden cultural/behavioral change is actually more achievable than I would have thought last year, as long as the sense of urgency is sufficient.
tda··on The Last Message Sent on AIM
I recall having MSN on a symbian smartphone just before iPhones even existed. Really cool and all, but I could only communicate to a handful of people with it. SMS was the de-facto only way, always 1-1 and charged per message. Internet 2g/3g was being pushed for low prices (10 EUR/month for unlimited use) but there wasn't really a mass market yet. I could tether my laptop to my phone abut that was really something exceptional, but most people were like "who needs internet on a phone?" Had too look it up, this was just 14 years ago.

Then about 6? years ago almost overnight everyone (including mom) had a smartphone with Whatsapp and SMS/MMS was a thing of the past.

tda··on I paid for Spotify playlist placements so you don’t have to
Just looked it up, not sure what to make of it yet. At the very least it is passable as background music. https://open.spotify.com/artist/4FbZyaSZ5QaZES4I251OQU
tda··on ANSI escape codes (2019)
After reading this, I can confirm the title checks out
tda··on Spotify patent would suggest songs based on users' emotions
How about this very reasonable request to "Remove current Song from Playlist" [1]? Filed in 2012, status shows as "Not Right Now", has collected 1343 votes and counting... They're even worse than Atlassian.

I really hate Spotify for everything except their pretty complete library and reasonable pricing. Discovery, searching, UI, everything just plain sucks, I miss 8tracks.

1: https://community.spotify.com/t5/Live-Ideas/Mobile-Remove-cu...

Edit: I've been hoping for years 8tracks would be back, and low and behold, they have relaunched: https://blog.8tracks.com/2020/04/19/welcome-back-8tracks/

Edit2: not really, still not available outside of USA/Canada

tda··on Why we should leave old oil rigs in the sea, and why we don’t
Maybe one day we figure out how to reuse the foundation/jacket for a huge windmill, that would be a win. And enough space to add an offshore High Voltage Station
tda··on Why we should leave old oil rigs in the sea, and why we don’t
And because of this ship it is easy to see how expensive topside removal must be. The vessel costed some 2.5B or so. Recovering that in a few dozen decommissionings means a Hugh price. And don't forget the operational cost of a crew of a few hundred, easily adds up to a few 100k/day. Then the topside, probably full of toxic flame retardants and asbestos needs to be dealt with.
tda··on Representing and Editing JSON with Spreadsheets (2018)
I once came up with a system that worked pretty well for an array of mostly similar objects. I use a jsonpath like column names, so putting the values A and B in a column named "some.property.items[0]" results in

    [
      {"some": {"property": {"items":["A"]}}},
      {"some": {"property": {"items":["B"]}}}
    ]
To avoid very long column names, values starting with "[" or "{" are parsed as json, so putting {"a": 1} in a column named C results in [{"C":{"a": 1}}]. Doesn't cover all edge cases, but worked well enough form my use case, which was providing a batch upload interface for a giant json (instead of a bunch of web forms) for excel savvy power users, allowing them to batch upload semi-structured data. I used jsonschema for validation on submit, worked well enough.
tda··on Why webcams aren’t good enough
Of course, the point was more that regardless of price the following holds in poor light: webcam < phone < point and shoot cam < dslr. Why are there no webcams with actual optical zoom lenses and decent sensor sizes? Why doesn't Canon or Nikon have a go, or Sony? The market (at least now) is a lot bigger than that for camera's. Even in the longer run, I bet a lot of people are willing to spend a bit extra to have the best looking image in the meeting. Everybody my wife videoconferences with immediately notices here camera is way better than theirs

And also, not everyone wants to sit in front of a bright light

tda··on Why webcams aren’t good enough
Still doesn't explain why a $300phone has a better camera than a $250 logitech BRIO. I recently bought a BRIO and in non optimal lighting the performance is just as mediocre as a $30 C230 so I returned it immediately.

In the en I convinced my wife to just use the DSLR (she was hesitant at first because of the extra hassle). A modern DSL had good IQ even ad candlelight, you really almost can't mess it up. Only way to destroy the image is to use different color lights (warm lightbulb on left side and natural light from a window on the right side will look weird on every camera I know of)

tda··on Toolz: A functional standard library for Python
If you really want though, you can write a web server in a single python lambda:

    (lambda flask:
        (lambda app:
            (app,
            app.route('/')(
                lambda: 'Hello World!'
            )
            )[0]
        )(flask.Flask('__name__')).run()
    )(__import__('flask'))
See https://gist.github.com/e000/1023982 for more horrible examples
tda··on The surprisingly difficult problem of user-defined order in SQL
You could also use the array to store only the order, and regular FK relationships for membership. That way the referential integrity of the items is guaranteed, but the order is more of a "best effort" approach, as in that there my be members that have no defined order (default to putting them last or first), or there may be items in the order array that have been deleted (and can then be ignored)
tda··on GPT-Neo – Building a GPT-3-sized model, open source and free
Did anyone try to ask GPT-3 something about the insurrection? I can't find any free/open text prompts for GPT-3, this is what GPT-2 has to say:

After Trump lost the 2020 election his supporters stormed the Capitol

> They smashed windows, tore apart the Republican Party's headquarters, destroyed a statue of Ronald Reagan and set fire to the Texas statehouse.

> A month later, after the Democrats took control of the Senate and the House, Trump's supporters stormed their own offices. They attacked the offices of California Democratic Senator Kamala Harris and New York Democratic Representative Joe Crowley. They ransacked offices in the Minnesota and Texas statehouses and burned down the Republican Party headquarters in Tennessee. The damage was estimated at

tda··on Tiny PDP11 on an ESP32
This is yet another great demonstration of sprite_tm's combination of technical skills, creativity and perseverance to make something cool out of plain curiosity or maybe just because. I really admire his drive to not only make the technical proof of concept but also to package it up in a very nice case. And to top it off, a long read about the entire process. And he is not even bragging about it!
tda··on The surprisingly difficult problem of user-defined order in SQL
Surprised to see the obvious solution at the bottom of the comments
tda··on WRT54G History: The Router That Accidentally Went Open Source
Yep, that's because it is a mixed bag. Certainly a step up from normal consumer grade stuff, and not as expensive as 'real' enterprise hardware. Had a lot of promise, and lots of hn folks like myself converted.

But I said had, because in 2020 the company seems to have transformed into a money-grabbing shitshow. Cloud for everything, deprecating fine hardware and fine software in favor of unneeded cloud stuff. Crappy firmwares with no easy way to rollback. CEO is supposedly running the company in the ground with outsourcing, constant crunch etc. There are some disgruntled ex ubiquity employees here and on reddit, if even half is true of what they say the company really needs to turn around soon, it is probably already to late.

tda··on Ubiquiti Networks Breach
Maybe there is no causality, but quality is definitely declining, and the company focus is shifting from making enthusiast hardware to extracting profit at all costs. The fiasco with the UDM firmware, releasing more incompatible PoE products (I think they use every possible variation of the standard now), passive/active, 24v/48v). And discontinuing stand alone video software just to force everyone on new hardware?

Almost forgot, but just last month my wife started complaining about the WiFi, turned out the latest firmware that was pushed to my UAP's is horrible. You have to turn off auto update and check reddit before upgrading firmware, what a joke!

tda··on 70TB of Parler users’ messages, videos, and posts leaked by security researchers
His statements are not backed by any evidence, so I don't know what to make of them. Nonetheless an interesting opinion by someone that has done some great things that certainly tickeled my curiosity, +1
tda··on Introduction to Window Functions in SQL
In postgresql 12 a patch [0] is merged to remove the optimization fence certain conditions. From the changelog [1]

" Allow common table expressions (CTEs) to be inlined into the outer query (Andreas Karlsson, Andrew Gierth, David Fetter, Tom Lane)

Specifically, CTEs are automatically inlined if they have no side-effects, are not recursive, and are referenced only once in the query. Inlining can be prevented by specifying MATERIALIZED, or forced for multiply-referenced CTEs by specifying NOT MATERIALIZED. Previously, CTEs were never inlined and were always evaluated before the rest of the query. "

[0] https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit... [1] https://www.postgresql.org/docs/12/release-12.html

tda··on Dogger Bank's giant turbines herald a wind of change in UK industry
The article is about the 13MW Haliade-X tubine, but on part of the Doggerbank (Sofia wind park) an even larger 14MW Siemens Gamesa turbine will be installed. As short as maybe 5 years ago >10MW turbines were thought of as unlikely in the near time, and look where we are now. And we still haven't hit any hard limits, meaning there is still room to grow! And as the turbines grow, so do the foundations. Most turbines are installed on a single steel tube that is driven into the ground, a monopile. A single one can be 100m long, 10m in diameter and weigh 2000 tons!
tda··on USA vs. Julian Assange Judgment
I have never come across the use of satisfied for "persuaded by argument or evidence" before. (yes, I had to look it up, not a native speaker) Is this usage common or just some kind of legalese?
tda··on EU Signs €145B Declaration to Develop Next Gen Processors and 2nm Technology
Floating versions of those machines (dredging vessels) are in the 300M range. And the offshore installation vessel Pioneering Spirit came in at 2.6B: https://en.m.wikipedia.org/wiki/Pioneering_Spirit_(ship)
tda··on The beautiful Silent ThunderBolt-3 PC
Recently wasted a morning at the office swapping all variants of Dell thunderbolt and USB-c docks, kept getting weird USB errors. Most frustrating was I couldn't reproduce the error at the helpdesk with same dock. The weirdest thing was usb peripherals were working fine, but somehow Windows kept giving me a non suppressable popup every minute ad infinitum. I don't see the point of docking stations anymore now you can get 49" screens with USB-c connectors. No reason to put a docking station in between or dual screen setups anymore
tda··on PFAS “forever” chemicals found in hundreds more everyday products
Quite scary to read. Known poisonous and long lasting chemical substances are used in a very wide range of products.

In the Netherlands all earth movement was temporarily prohibited last year when it was found that many sites had too high concentrations of PFAS. So nearly all soils were considered hazardous material. Of course this was "solved" by changing the threshold of allowed PFAS to something much higher...

tda··on What's new in Svelte (Dec 2020)
Thanks! Too bad SvelteKit is still in beta, cause I don't feel inclined investing any time in Sapper now I know that that is going to be deprecated. Guess I'll have to be brave and try it out

    npm init svelte@next
tda··on What's new in Svelte (Dec 2020)
Can I use svelte as an alternative to nuxt.js? I want to create a simple website where most of the content is written in markdown, that is rendered to static html (that can be hosted on e.g. netlify).

As it is kind of a hobby project, might as well learn the next hot thingg? Is Svelte suitable for these kind of applications? Some of the features of nuxt.js that i like: content module (put some markdown files in a folder and the routes, write a template and then all the html rendering etc is all taken care of) extensions for image resizing so images are resized to multiple resolutions as part of the build process, hot reloading in development

tda··on Virtual Cybersecurity Escape Room
Yep, bugged me too. Looked at the js source to see what clicked items I missed. Then guessing the password was a lot easier. Also trying the cheaphash function in the console was a lot faster than entering then keep reentering the username. The hash function result is very length dependent, so it was quite clear how long of a password I was looking for.
tda··on John Carmack on Inlined Code (2014)
Nice food for thought. For those like me that read the comments first:

"To sum up:

If a function is only called from a single place, consider inlining it.

If a function is called from multiple places, see if it is possible to arrange for the work to be done in a single place, perhaps with flags, and inline that.

If there are multiple versions of a function, consider making a single function with more, possibly defaulted, parameters.

If the work is close to purely functional, with few references to global state, try to make it completely functional.

Try to use const on both parameters and functions when the function really must be used in multiple places.

Minimize control flow complexity and "area under ifs", favoring consistent execution paths and times over "optimally" avoiding unnecessary work.

Discussion?

John Carmack"

tda··on Rock art discovered in remote Amazon forest
Yep, at least part of the site is already on google maps: https://goo.gl/maps/MYLB2SEmnoyHmvUGA

Really remote, like 500m away from a farm/main road. Maybe they discovered a few more remote sites, but the general presence of ancient rock paintings in that area must have been known for a long time

← PreviousPage 12 of 18Next →