News for hackers. Stuff that matters.

zeroimpl

Re:The Beginning of the End of the Beef Industry? on Wednesday July 31, 2019 @07:47PM (#20579851)
The author mentions that 60% of it is...
Re:The Beginning of the End of the Beef Industry? on Wednesday July 31, 2019 @07:39PM (#20579794)
Nut-based milks are a great alternative. Though just like veggie burgers, there are good and bad nut milks - look for ones without tons of additives. They are also trivial to make yourself.
But when all your apps stop working every time you install a major OS update, are you saying you would be happy to pay again? Because most people will whine like crazy.
Note that for mobile apps, paid upgrades aren’t really an option for developers due to the way the app stores work. Also, developers constantly need to update apps to be compatible with new OS releases. Only the subscription model aligns with this.
I’d be interested to know some specifics on how big the index is and how well it performs for different values of the pages_per_range parameter on this dataset.
Looks like this constant should be parsed as: ElderCousin && (MothersSiblingsDaughter || FathersSistersDaughter)
Re:Slack Is Going Public at a $16B Valuation on Wednesday June 19, 2019 @10:14PM (#20229229)
R&D expenses will presumably not grow at the same rate
They probably are also not be expecting to sell as many of these stands as other stand manufacturers, so their manufacturing costs could be significantly higher considering it uses a unique design.
Re:WWDC 2019 Keynote Livestream on Monday June 03, 2019 @06:57PM (#20089831)
I'd be willing to settle for a 4K HDR display on my laptop first
Re:H.264 is magic (2016) on Friday May 24, 2019 @09:36PM (#20006608)
I'm pretty sure there is plenty of 444 content. Movies are likely filmed/edited at 444, they are provided to theaters at 444, but they are generally only made available to consumers at 420.

I believe the reason is that most hardware decoders sold to consumers do not support anything above 420. As Blu-rays and such are all currently 420, the chip makers don't have much incentive to support 444. It's a shame because your TV fully supports 444, and the difference can be huge on some content.

Re:H.264 is magic (2016) on Friday May 24, 2019 @09:21AM (#20001141)
But it can produce a result which looks better at the same bitrate. It’s not all about speed.
Re:H.264 is magic (2016) on Thursday May 23, 2019 @11:13PM (#19998160)
Chroma subsampling is a terrible idea in the digital era. You should just assign a different compression factor to the chroma channels instead. I don't understand why we keep using this system of discarding 75% of the color data BEFORE applying the lossy compression algorithm. (Well I do know of one argument - apparently it reduces the amount of CPU time required to compress and decompress the data, but I think that's a pretty lame reason)
“Doesn't choke on fast-flowing outputs”

Nice to see a terminal addressing this issue. Even worse is when the output is super long and has no newlines. That can freeze up my whole desktop at work for minutes.

Re:Performance of nnn vs. ls on Tuesday May 07, 2019 @07:44PM (#19854539)
I’m not surprised there are a bunch of optimizations which could be made to “ls”. On a related note, I once looked at source code for “rm” (specifically “rm -rf”) and was surprised how inefficient it seemed. Not sure if it has changed since, but it would stat files before deleting and do various permissions checks - things that could be accomplished by just letting the kernel try to do the delete and then checking the status code. That ought to be faster 99% of the time.
It does seem odd that browsers don’t preload images for hover effects. I guess in practice most hover effects just use colors? Otherwise there’d be a noticeable lag the first time you hover or something.
Re:Common mistakes in PostgreSQL on Friday May 03, 2019 @09:03PM (#19823590)
It looks like the only safe way to use the Rule system is if you replace the query with exactly one new query. Basically what a view does.

They should really deprecate all other forms. I’ve wasted time reading up on this feature several times, always to conclude there is a better solution to my problem.

Re:Common mistakes in PostgreSQL on Friday May 03, 2019 @08:31PM (#19823454)
If they supported foreign keys, I’m pretty sure I’d have used it many times. It seems like a good way to efficiently represent multiple distinct types which have some shared columns and some non-shared columns.
Re:Common mistakes in PostgreSQL on Friday May 03, 2019 @08:24PM (#19823420)
Agreed. I work on databases where column names are capitalized throughout our source code, and it’s annoying when sql like “SELECT FirstName FROM ...” gets output as “firstname”.

This is one case where MySQL seems a bit better.

Note if I could I’d change to lowercase underscore naming conventions, but it’s impossible to change now.

Re:Records and Sealed Types for Java (JEP Draft) on Monday April 22, 2019 @10:54PM (#19725212)
For Records, can the public read accessor method be overridden? I'm assuming so, otherwise should just make the instance variable public final.
Re:Qualcomm and Apple agree to drop all litigation on Tuesday April 16, 2019 @06:50PM (#19678009)
It’s possible the deal didn’t affect Apple but losing all those lawsuits did.
Re:Variance in Java on Thursday April 11, 2019 @07:42PM (#19640420)
I always find the ArrayStoreException funny. I've written a lot of Java code over the years, including a fair bit pre-generics, and yet I don't believe I've ever triggered this exception.
Re:Making email more secure with MTA-STS standard on Thursday April 11, 2019 @09:58AM (#19634567)
Yes, I don't see how this MTA-STS avoids the DNS security issue. The system first uses a DNS TXT record to indicate a policy exists, then uses HTTPS to fetch that policy.
Re:PostgreSQL Count(*) Performance Improvements on Wednesday April 10, 2019 @11:41PM (#19630972)
Note the trigger approach mentioned in the article would be terrible for performance in a concurrent environment, since only one transaction could modify the whole table at a time.
Re:Making email more secure with MTA-STS standard on Wednesday April 10, 2019 @09:10PM (#19630242)
Can somebody explain why this couldn't be as simple as adding a DNS TXT entry which says to use TLS for a specific domain? Then add a large TTL on this DNS entry so it can be cached for a week or more.

If it was that simple, I'd turn this on now.

Re:Fast Directory Listing on Linux on Sunday April 07, 2019 @01:34PM (#19598412)
I wonder how this compares to filesystem traversal APIs like fts/ftw?
Re:Timestamps and Time Zones in PostgreSQL (2016) on Sunday March 31, 2019 @11:13AM (#19535989)
This is exactly why I said in my original post that I sometimes want this - in many cases I don't, but whenever a user has explicitly input the data I'd like to easily be able to return it in the same timezone. I can (and do) store two columns in the database, but I'd prefer the database and JDBC interface natively support this as a single data type.

Right now, supposing you have two columns, EventTime TIMESTAMPTZ and EventTimeZone TEXT, you'd have to do something like the following in your query to get the data returned to the application properly:

    SELECT (EventTime AT TIME ZONE EventTimeZone) || ' ' || EventTimeZone
Re:Timestamps and Time Zones in PostgreSQL (2016) on Saturday March 30, 2019 @09:28PM (#19533112)
I sometimes wish there was an actual "TIMESTAMP WITH TIME ZONE" type that stored the input timestamp as well. Basically, a version that didn't canonicalize the input by converting to UTC. This way, I can easily show timestamps to the user in the time zone they used to input them.
I learnt plenty in my CS courses. I just don’t use most of them, and most of the skills I do use I didn’t learn there. That does not mean it was a waste of time - knowing the theory behind various data structures, algorithms, and circuitry make programming more satisfying for me.
There’s a lot of numbers between 0 and 100...
Re:You probably don’t need input type=“number” on Monday March 25, 2019 @09:42AM (#19482313)
Is there an <input type=“scrollbar”/>?

Also, input does not necessarily mean text entry. We have <input type=“checkbox”/> and <input type=“button”/> among others.

Older »