News for hackers. Stuff that matters.

zeroimpl

Seems like it’d be easier/more effective to take out the launch vessel.
How's that ironic or relevant? Most scientists do not receive awards.
Re:Have lots of AWS accounts on Monday October 03, 2022 @05:22PM (#33073875)
The browser will only remember the last 5 roles you’ve assumed, so it’s still a pain.
Re:Google wants to take on Dolby with new open media formats on Friday September 23, 2022 @08:22PM (#32958636)
I'm familiar with several Dolby tools for processing ATMOS and Dolby Vision, none of which are free.
Re:I have 218 browser tabs open on Tuesday August 02, 2022 @10:00AM (#32318557)
Wow just realized Firefox has this feature built-in but not enabled by default! Just needed to turn on "Ctrl+Tab cycles through tabs in recently used order".
Re:I have 218 browser tabs open on Tuesday August 02, 2022 @09:55AM (#32318496)
The author mentioned the vimium addon with the ability to quickly flip back to the previous tab. This makes me want something similar to the recently-used-tab selector in VSCode - pressing ctrl-tab pops-up a list of recently used tabs in reverse-chronological order and makes it super easy to flip back and forth. I wonder if there's any browser extension like this?
Re:I have 218 browser tabs open on Tuesday August 02, 2022 @09:47AM (#32318405)
Could also "Bookmark All Tabs" and then export your bookmark list.
Re:Librarian's Letter to Google Security on Monday August 01, 2022 @12:56PM (#32308908)
It’s private property so traffic laws won’t apply. Pedestrians are allowed all over parking lots.
Re:The many flavors of hashing on Sunday July 31, 2022 @10:00PM (#32301041)
The section about signature hashes could use some improvement. Cryptographic hashes have multiple use cases. The main one that comes to mind is basically just secure checksum/integrity hashes where you want to guarantee nobody could force a collision. For this case, all the scary warnings about "don't use these algorithms directly" makes no sense.
Re:It’s time to leave the leap second in the past on Tuesday July 26, 2022 @12:17AM (#32234188)
But where are the reports/blog posts from the thousands of companies using these algorithms that ran into performance problems the last few times cloud providers used time smearing? I’ve done some searching and can’t find any, which suggests this is mostly a theoretical issue.

Yes I could come up with an algorithm where this is a problem, but in most cases I’d favor a solution that doesn’t depend on separate systems having clocks perfectly in sync.

Re:It’s time to leave the leap second in the past on Monday July 25, 2022 @10:20PM (#32233514)
Seems a weird way to write an algorithm. Easier to rely on database locking and/or the obvious fact that if you have received some data telling you about an event having happened, then it has happened… Curious if there are any real reports where this caused issues?
Sure but that’s why I think the take-away here is to design the system such that you can do such automated rollbacks. For example, the devices should also be connected to some sort of isolated management network. Granted, pushing out a config to the routers could also break their connections to said management network, but it is less likely anyways.
The router config is not the top of the stack though. There should be orchestration systems that push out changes to these devices and can roll them back when required.
I’ve seen this type of thing happen a few times. Usually a combination of a human error at the factory plus flaky backend systems that like to do upserts.
You are arguing purely on price but not considering other factors. To the person who bought the beer, the deemed value is probably more than they paid for it, and to the seller the beer was a liability due to having a limited shelf life and occupying shelf space. Thus there was a gain for both parties.
Re:Column order in PostgreSQL does matter on Tuesday July 12, 2022 @09:17AM (#32069465)
Same - the row format itself starts with a bitmask listing all null columns. You don’t need to read the column data itself to determine if a column is null.

https://www.postgresql.org/docs/current/storage-page-layout....

Re:Postgres 15 improves UNIQUE and NULL on Monday July 11, 2022 @09:51AM (#32056117)
I think this is a great change. I wish NULLS NOT DISTINCT was the default already - if I wanted the constraint to ignore null values I’d have used a partial index to only index non-null values. Doing the opposite is much more difficult.
Re:Postgres 15 improves UNIQUE and NULL on Monday July 11, 2022 @09:43AM (#32056024)
Your last statement would be better written as: Because NULL values are of unknown equality, they may or may not violate UNIQUE constraints.

The safest implementation would assume that they do violate the constraint, rather than the current behavior assuming they don’t.

In practice I don’t think I’ve ever added a unique index on a nullable column where null might imply unknown. I have used it in cases where null meant “none”.

I ordered chicken wings at a vegan fast food restaurant. I too would have preferred if the name was more specific, even though it’s implied by the context. It was my first time at the restaurant so I specifically asked them to confirm it was vegan.

Also some chains/brands do a very poor job labeling their things so that it’s obviously plant-based. For example at Tim Hortons: Farmers wrap=meat based, Harvest wrap=plant based. Feels intentionally confusing.

Re:macOS screenshot tricks to impress your co-workers on Thursday June 16, 2022 @10:30PM (#31773509)
Apparently it hides the shadows when you screenshot an individual window. Neat trick, although I think I'm going to apply the trick from the article, since I don't think I ever actually want the shadows.
I was in a gifted program but it was poorly executed and I deem it to have been detrimental to my growth.

I was randomly pulled from normal classes in order to hang out with a few other gifted students and do weird puzzles or whatever. Then later I’d have to figure out from classmates what I missed, including what homework to do etc. My social skills already sucked, and being labeled as special to the classmates whom I’d have to spend most of the day with certainly didn’t help.

I’m sure there a ways to do it better, but having no gifted program is better than a bad gifted program.

Re:Zq: An easier and faster alternative to jq on Tuesday April 26, 2022 @09:03PM (#31175064)
I use both awk and jq infrequently enough that I tend to struggle with anything non-trivial. I think zq would be the same.

> Not entirely convinced by the zq syntax either though; it also seems "arcane enough" that I would keep forgetting it.

I think this is the main thing. I’d prefer a streamlined CLI tool where you passed in some JS code and it’d just run it on the input (with the same slurp/raw args as jq). Could just be npm with underscore.js autoimported.

I’d like to see a flag somewhere to enable this. Perhaps it is a filesystem flag, similar to case-sensitivity.
Re:Git security vulnerability announced on Tuesday April 12, 2022 @09:45PM (#31010349)
Yes I’ve run “git status”, “git log” and “git diff” on other people’s repo’s plenty of times to help debug things, so it’d be sad to see this stop working. It seems some basic readonly operations should still be supported.
You can't implement an outer join with a cross product.
I'm surprised nobody else has mentioned this yet - a LEFT JOIN can be more efficient than an INNER JOIN precisely because the database doesn't need to enforce the filter during the query plan.

This comes up for me most often with views, when a query referencing the view doesn't end up using all the columns - when a LEFT JOIN is used, the database can potentially skip querying those tables entirely, but not with an INNER JOIN.

It sounds like this could be a behind-the-scenes feature to optimize ThreadLocal class. It doesn't seem like the type of thing you'd use directly.
If you are running a 10-year old version of python 3, and you try and install some recently written python 3 application, it will never work - you'll be stuck in dependency hell, even getting pip to run may be a challenge due to outdated certs or TLS versions.
If we can’t agree on permanent DST vs permanent standard time, I propose we divide the continent in half and have permanent DST on the West and permanent standard time on the East, leaving a 2 hour time gap between the coasts. Over time the morning people will flock to one side and the evening people the other, and all will be harmonious.

Older »