HNHacker News
TopNewBestAskShowJobs

pippy

1,129 karma · joined November 5, 2010

submissionscomments
pippy··on What Color Is This? Part 2
There's a great article that explains how to use math to address the issue you metion: https://www.picturecorrect.com/tips/photoshop-computes-color... Thankfully using interpreted languages has the added benefit of usually handling numbers better, so converting between color spaces is pretty painless.

Professionally I've handled things more conservatively. Monitors with deep color support are only now being more popular. Most server side tech seems support traditional color depth best. Now is the time to start thinking about deeper color images on by default, webp is great, and support has only recently became mainstream on iOS14.

pippy··on What Color Is This? Part 2
I did something similar to this. I wanted "Lazy loaded" SVG images. Generating an average color over an area would render horrific results - an area with equal red green and blue would be gray for example.

My solution was to convert a target pixel area into a histogram in HSL color space, select the most populated color area and take an average of that populated area. You could then do smart things like render edges along where the change reached a threshold so you got clean edges. Once you blurred the SVG it was a fraction the size of a down scaled raster image (using imagemagick).

There's all kinds of very interesting pitfalls when dealing with color. RGB is great for transmitting data but horrible when applying operations. For example, your eye converts RGB in a way so that yellow essentially becomes a primary. Another is the eye perceives photons in a logarithmic fashion adding two colors and halving them doesn't make an average. This article has some great info in it: https://blog.asmartbear.com/color-wheels.html

pippy··on Time for a WTF MySQL Moment
For me MySQL isn't even worth touching. Just this week their 'stable' binaries from their website threw seg faults while executing large SQL batches on my dev box. I replaced it with mariaDB and had no issues.
pippy··on Dual-flush toilets 'wasting more water than they save'
I just installed a dual flush toilet and the first thing it does is start tricking water down the bowl. The instructions called to cut two rods inside the cistern if this happens. I'm too scared to do this with a new toilet, and i don't get charged for water where i live, so i left it trickling.

It replaced a 100 year old pull chain toilet with that with a copper cistern. it sadly was at the end of its life. there's no way the fiddly plastic parts in the new toilet will last 100 years, let alone 20.

pippy··on Britain’s CO2 Emissions Have Fallen to Levels Last Seen in 1890 (2018)
The large outsourcing of pollution would also be heavy industry.
pippy··on Letter to 20 Years Ago
or one: Bitcoin.

you'd have to wait 8 years though

pippy··on After 48 years, Democrats endorse nuclear energy in platform
Everyone knows about chernobyl. No one knows about pike river. Yet they killed the same amount of people. Every single nuclear incident is propagandized, yet dirty energy gets a free rap. It's a shame as global warming will cause much more damage than the chernobyl exclusion zone which is essentially a nature reserve now.
pippy··on Artificial Intelligence is stupid and causal reasoning won't fix it
> the ability to infer causes from observed phenomena

So 'reading the room'. In social settings you can't follow logic and rationale blindly because there are these things on two legs full of meat and organs that don't like it.

pippy··on USGS Data on the Lebanon Blast
To expand on 3: most spy satellites operate in sun synchronous polar orbits. This is so they can cover the entire earth and will have their solar panels lit by the sun. This also has the ramification that they'll always be in the same spot in the sky depending on the time of day. If you know this time, that's when you hide your tanks and don't fly your top secret spyplane
pippy··on Making Advanced GUI Applications with Godot
An underlying tone of this article which most people in this thread have missed, was the impact of hitting the ground running. Godot quickly gets something on the screen for someone to build on. Qt is difficult to get something running. The impact of this makes technical benefits one way or the other moot. After all, if it works, who cares what technology is better?

I found the hassle of setting up Qt painful, but it didn't scare me away. The final nail the coffin was their prioritization of Qt Creator over SDK integration. juggling two IDEs just didn't seem right with an existing codebase.

pippy··on Text-Only Social Network
Putting a filter: grayscale(); over the title makes the emojis melt more into the text. it makes it a bit more readable.
pippy··on Bulgaria writes new chapter in long story of demographic decline
I've never bought into the ruse of an increasing population implying a higher standard of living. Politicians love this as a stagnating economy can appear to be doing better, by pointing to an increased GDP that usually rises with an increased population. They'll never mention how much per capita adjusted for inflation it is. When inequality rises, they'll pretend it's unrelated. Of course the extra stress on the infrastructure, housing, hospitals and schools are all things that their predecessors will have to worry about. They're the first things that conservatives will conventionally not increase funding for.

We measure GDP as it's traditionally an indicator for a standard of living.

pippy··on Reddit's website uses DRM for fingerprinting
I had the idea to set mine to the Digg logo as an act of protest I'm protesting by not using Reddit. Ruqqus has so far been an OK alternative, though it's a bit slow both in terms of content and site speed.
pippy··on Reddit Ireland turns off at midnight to stop racist trolls
Reddit has become insufferable in the last few years. It used to be a great news and community aggregator, but since they switched to a social media platform the quality of content changed. It's easy to brush this off as the 'hivemind' effect, but it's a nasty combination of corporations and governments pushing agendas, identity politics, an eternal September, and even admins and moderators pushing their personal politics. There's not a single moderately popular subreddit that has no politics being shoved in your face.

Unlike the downfall of Digg/ stumbleupon, there's no alternative.

pippy··on Microsoft Defender SmartScreen is hurting independent developers
How long will it be before Google, Apple, and Microsoft start pulling certificates for apps governments deem unacceptable, such as organizing protests or communicating?
pippy··on The Vintage Beauty of Soviet Control Rooms (2018)
My dad worked in a substation in the 90's which had the aesthetic of many of these pictures. Wall to wall switches which controlled the power distribution to half of New Zealand. Halfway through the 90's they upgraded to a few boring beige boxes in an office, and there was no need to use the manual switches. I loved going there because his workmates would give me pirated MS-DOS games on floppy disks, but the magic was lost. Later on they restructured all control through a single office in the capital and my dad lost his job.
pippy··on My New Old Apple IIe Computer
It's crazy the value of vintage computers. My dad gave me an IBM XT 286 he got for nothing in the late 90's. It was for me to take apart and destroy so I could learn a bit about computers, which I did.

Now just the keyboard is worth hundreds of dollars. I was frustrated to see LGR do a repair video of the exact model I had, and the same model can go for thousands of dollars.

pippy··on 92 of top 500 subreddits controlled by same 5 people
To add to your list:

* using engagement as a ranking metric. This ensures the content is addictive, even if it's low quality

* the reactionary fabricated content they keep because it went viral

* important news won't surface until hours after an even happens unless an admin stickies it because they removed their traditional ranking algorithm

* the shift away from subreddits being communities and towards social media style entities

I wish reddit's alternatives gained some traction. Voat had some promise but got taken over by racist bots. saidit might have some potential.

pippy··on Ask HN: Mind bending books to read and never be the same as before?
Here's a nice variation to the problem, and the solution: https://www.youtube.com/watch?v=N5vJSNXPEwA
pippy··on New Zealand eliminates Covid-19
As a New Zealander my opinion on the government changed for the better after the pandemic. They listened to health professionals and implemented their advice. Far too many governments have industry in their ear overriding anything else. In a twist of irony, our economy is going to pick up faster than other countries as a result.
pippy··on Jukebox
If the tools are good enough, there would be communities of people making better music than the original artists.

It would put record companies in an interesting position.

pippy··on What concept would improve everybody's cognitive toolkit? Kayfabe (2011)
Ironically Eric used these techniques in his interview with Joe Rogan three days ago. Eric blamed the divergence of the income and production relation on the modern academic environment. Which is a bizarre conclusion to draw, instead of the more likely candidates of Neo-liberalisim and market forces of the employment sector. These conclusions wouldn't suit his world view, so he explained them away using jargon.

His view on physics is equally as baffling. He claims he knows the secret that will revolutionise the field, at the same time, people in the field discredit his theory because they're arrogant and academically institutionalized. It's a bold claim to make, and I'll have to eat my hat if he's right, but I'll trust the people who are experts in the field.

In short, Eric Weinstein is a crackpot. A very intelligent crackpot, but he really should stick to mathematics and investment.

pippy··on Don’t bail out the cruise industry
The article missed another point: they're competing with US based tourism. Every person who chose to go on a cruise didn't visit a US city and spend money there.
pippy··on The reckless, infinite scope of web browsers
The increasing complexity of web browsers has less to do with companies using browsers to shoulder competition out (after all, why would they bother to make their engines open source?) and more to do with the web becoming the default application platform. And this has its roots in companies... trying to shouldering out competition with native UI frameworks. Microsoft just two days ago introduced WinUI, another propitiatory UI that's tied into their ecosystem. Bringing Microsoft's total non standard UI frameworks to seven (or is it eight?). Developers want cross compatibility, so they naturally turn to the web. Usually in the form of election or native web. And if they do choose to go native, iOS and Android on the top of the list now days.

So developers expect native OS level API access from browsers. This is the true source of the bloat. And to be honest, we're converging on an open standard cross platform API. this is great.

pippy··on Kubuntu Linux 19.10 for a digital painting workstation
Krita is not an image manipulation tool, it's a digital painting application aimed at artists. Comparing the two is like saying that oranges are inferior because they're not a truck.

GIMP on the other hand is an apt comparison. Linux users are best to use photoshop under wine.

pippy··on Epistemic standards for “Why did it take so long to invent X?”
All inventions have prerequisites that people don't think about. The steam engine is the first invention people think about if they were time travel, scribble something on a bit of paper and become rich. You'll need several boring things that need to happen for you to make a working steam engine.

You'll need the materials. A lot of strong, cheap steel. Preheated blast furnaces weren't invented until the early 1800's. Thomas Savery had the idea for the steam engine almost a hundred years before the Watt, but Savery's engines kept blowing up because the lack of strong steel.

You'll also need to overcome trade barriers too. You'll also need cheap coal (ironically requiring steam engines to become cost effective) and high quality iron ore (ideally from Sweden). Through out most of history, empires hated trading as it could create vulnerabilities.

There's also the market prerequisites, no one wants your expensive steam engine if a donkey pulling a wheel is cheaper and more reliable.

pippy··on Julian Assange was 'handcuffed 11 times and stripped naked'
It's because their actions exposed illegal activities that various governments were partaking in. The same organizations which define what a criminal is, and are supposed to be held accountable to the people. Having people that are above the law is of course a dangerous precedent. To boil down to a stupid thought experiment, why should Assange or Snowden be prosecuted when the people who they exposed blatantly exposed breaking the law were not?
pippy··on Beyond Bézier Curves (2013)
A few years back I wrote a basic bezier curve library with boolean operations in C/C++. Bezier curves are fantastic when you get started, they're easy to deal with and the math is well documented online.

However the edge cases are nightmares to deal with. Intersection (and similar operations) typically work by approximating via subdivision, so you'll never get an accurate answer, which is important when dealing with boolean operations. You'll wind up piling on hacks. One edge case I wound up being due to a floating point arithmetic error, which was fun because my computer science degree finally wound up coming in handy.

It makes me appreciate the work that the guys who made paper.js. They've done some outstanding work, and it's by far the most superior open source vector graphics framework out there.

pippy··on Ending Support for macOS and Linux
If you earn $10k out of a ~15% to 10% marketshare, you've only earned about $100k total. You're not going to get your money back.
pippy··on Kaboom: an unusual Minesweeper
The original minesweeper had a smiley face up the top, which would turn dead if you lost, and would have a :o face while picking a cell.

Having the face change if there are safe cells available would give the face a purpose.

← PreviousPage 2 of 14Next →