News for hackers. Stuff that matters.

peacelilly

Re:New in Go 1.20: wrapping multiple errors on Sunday December 11, 2022 @10:08AM (#33943792)
The secret to wrapping errors is the erros.As and errors.Is special interfaces called out only in the documentation: https://pkg.go.dev/errors#Is

You must build a Directed Acyclic Graph (DAG) to ensure these special interfaces don't hit an infinite loop.

To stop the infinite loop cycles, and actually implement a DAG, I marked visited nodes and returned `false` if the nodes were already marked.

This is creepy.
Re:The Internet Tidal Wave (1995) on Saturday November 26, 2022 @01:24PM (#33755189)
You conflate seeing the future, and wanting to improve it. Microsoft very likely tried to subvert the future. See the Halloween Documents: http://www.catb.org/esr/halloween/halloween1.html
Re:Why we should end the data economy on Friday June 04, 2021 @01:51PM (#27396536)
Nowadays cable TV targets ads too. If your diabetic grandma connects to your cable provided wifi router, you will get ads for glucose monitors and insulin pumps. Targeted advertising should be illegal.
Re:Atlas of Surveillance on Monday July 13, 2020 @09:51PM (#23827702)
We really need these things to be Closed Circuit by law. Want the data? Get a warrant and seize the device physically. Centralized databases of surveillance information needs to be outlawed criminally.
Re:TikTok to pull out of Hong Kong on Tuesday July 07, 2020 @02:50AM (#23756431)
> we all know and love

No, we don't all love the spyware app called TikTok

You can have a monopoly and not abuse your power, or you can have your monopoly broken up. The Sherman Antitrust act still exists. Law still exists. There are already multiple anti-trust investigations underway by the states, and the DOJ.

There is bipartisan support to break them up. Ask Warren.

What is illegal about enforcing the law?

It's long past time to regulate social media like a phone company, natural monopoly, or common carrier. The DOJ needs to break them up for violating the public trust, then limit their ability to refuse service to law abiding citizens moving into the future. Government has every right to force companies to be neutral platforms through regulation. It's time to revoke/enforce section 230, especially the "good faith" clause.

Anyone who says that "Twitter is a private company that can refuse anyone" has never ran an actual company. There are plenty of rules against companies discriminating. That argument is the same argument used by Democrats against the landmark Civil Rights Act of 1964 which a Republican majority congress passed (82% of republicans voted yes).

Remember when this forum was up in arms about NET NEUTRALITY? Remember when the big bad ISP was going to censor you? Remember when all the sites went black because thats what the ISPs would do? Now the sites that went black are all committing the censoring. All the sites that went black track every movement you make online. Who needs DNS when you have outgoing link tracking and like buttons on every page.

Social media is about to be regulated. Its about time.

Re:Ask HN: Why did you leave the tech industry? on Wednesday April 15, 2020 @09:43AM (#22877579)
Yes the timing is good, the Artemis program is heating up and needs to disperse grants for the 2024 moon missions. You will have a much better supply of labor to choose from than our previous unemployment rate. Capital is cheap right now and banks are still lending. Aerospace is a long-term investment and you'll deliver a product when the economy is back.
> gaping hole where United States leadership should be

I've seen this exact wording a lot recently. Is this the new propaganda line everyone parrots? I must have missed the previous administration's strong stance on ANYTHING AT ALL dealing with international relations, besides killing people from the sky. When did the previous administration lead on anything and not just bow down (literally bowing) to international leaders.

Sorry, the gaping hole in leadership was filled with someone who cares about the USA.

Thank you Apple. This was needed! I have a bricked 2017 MBP that I don't want to fix. It's too expensive to fix and not worth it breaking again.
They are jails for breaking the law.
Human carelessness like allowing this crap in the first place?
The problem with deep fakes is a hostile nation taking over your phone/facetime calls and sounding exactly like your own parents. How can you tell if they can do it in real time? A bad actor could get you to do some really bad things.
Re:Trump Attacks Amazon, Saying It Does Not Pay Enough Taxes on Thursday March 29, 2018 @02:12PM (#16709476)
Yes, which makes the Gov dumb for letting them get away with it. That's why he became president, to fix dumb things (in his opinion) in government.
Re:Ask HN: What non-work task have you automated? on Wednesday October 11, 2017 @08:48PM (#15454827)
I use the national base reflectivity radar.

https://radar.weather.gov/ridge/Conus/RadarImg/latest.gif

Re:Ask HN: What non-work task have you automated? on Wednesday October 11, 2017 @02:54PM (#15452277)
Checking the radar. In the midwest, weather comes at you from a long ways away, so I wrote a script to set my desktop background to be the current national radar mosaic every 15 minutes.

Explicitly setting the background programmatically was very unreliable in practice. The beauty of my script is that it simply wgets the image, checks if it is valid, resamples the image using a high quality algorithm (slow but worth it), places it in a folder, and deletes the old image.

My background preference is set to shuffle between images in that folder every minute, therefore my script acts like a pipeline.

During Hurricane Matthew, Fedex delivered a package to my door while the island I live on was under a mandatory evacuation order. The package got destroyed. My advice is to contact the sender and have them put a hold on it.
Re:Interactive Vim tutorial on Wednesday October 04, 2017 @12:08PM (#15401513)
`vimtutor` is where most people should start. It's bundled with every vim installation. Vimtutor teaches the absolute basics in an interactive manner so you'll remember the lessons.
Re:Tell me what your company does on Monday September 04, 2017 @04:49PM (#15170777)
The web design is indeed ugly, but at least it is functional.

Here are some easy to implement design suggestions: You should change the title of the first heading so it's not the same as the banner. I think "What is Tarsnap?" is a good choice. Speaking of the banner, vectorize it. Finally, please remove the bars from the asides.

Your product is good, so transferring a little attention to its web presence is worth the effort.

Re:Google Has Dropped Google Instant Search on Wednesday July 26, 2017 @01:18PM (#14858153)
Yes, it was killed for this reason. Singular hotkeys that drastically alter state are a horrible UI design decision. When commanding, controlling, or altering a program, the trigger should be an explicit action. One accidental key stroke should not be catastrophic.
Re:Images and video showing extent of Oroville dam damage on Saturday March 04, 2017 @10:13AM (#13791179)
Life Pro Tip: In youtube, you can use the hotkeys 'j', 'k', and 'l' to jump back 10 seconds, pause, and jump forward 10 seconds. It's very convenient. If you want to rewind a minute, hit 'j' 6 times quickly.
Re:Oculus CEO Brendan Iribe Steps Down on Tuesday December 13, 2016 @05:16PM (#13171659)
Just an FYI to anyone who didn't know this, the facebook app records audio in the background. It then targets ads to your conversations. Use the browser version if you want some semblance of privacy.