News for hackers. Stuff that matters.

tossaway9000

Re:Ask HN: Self-Hosted Serverless Solution? on Tuesday January 04, 2022 @10:15AM (#29795621)
> a serverless solution

> I wanted to move all those functions on a server in my LAN.

Not so "serverless" after all eh?

Re:How to permanently lock your PayPal account on Wednesday December 22, 2021 @07:58PM (#29657499)
I'm getting so annoyed at companies requiring a phone number and then forcing MFA on me with it.

If you're going to force MFA on users give them another option besides receiving a text message or phone call. I don't want to live with my phone attached to my body at all time, sometimes I just want to log in without having to go find where I left it. I have Yubikey, let me use that, or worst case, send a code to my email.

Re:Ask HN: Logical Vulnerability Discovery? on Sunday December 19, 2021 @01:43PM (#29616887)
CodeQL comes with a bunch of pre-configured queries for the language you're using (at least when running on Github enterprise)
Re:Ask HN: Logical Vulnerability Discovery? on Saturday December 18, 2021 @12:26PM (#29606362)
CodeQL will do this for some languages, the kind of bugs I've seen it identify have been pretty impressive, I'm sure there are some other static analyzers that can do this as well.
Re:Ask HN: I'm tired of intense code review cycles on Saturday December 18, 2021 @12:22PM (#29606309)
I don't know why someone would want to waste time arguing about code style.

Standardizing on things like `cargo fmt`, `go fmt`, and `terraform fmt` remove a ton of nitpicking out the gate. The javascript world can't seem to make up their mind though (jslint is rarely used these days, jshint died, I think eslint is the thing now?)

Re:Ask HN: Is serverless worth it in some cases? on Friday December 17, 2021 @03:56PM (#29598246)
I see the business befit in serverless in a lot of ways but I don't think its necessarily a good thing for developers, its a good thing for business in some cases but its highly proprietary.
I'm considering holding out for the Mudita: https://mudita.com/

Though I like Lightphone's aesthetic more.

> I don’t even want to mention the crap cake that is KaiOS...

Oh please do, its absolutely horrid. How are they even keeping up with Firefox security updates? The only conclusion I could come to, when investigating this, was that they aren't, and when I asked the company in a comment on their public blog how they were handling it they deleted my comment.

I was hoping Lightphone would be a strong contender for a non-smartphone but the reviews so far have been mixed and there seems to be a few serious issues (e.g. battery life), also there's no 2FA which honestly is one of the main things I use my phone for these days (not everything supports hardware 2FA)

Re:We check our node_modules folder into source control on Sunday December 12, 2021 @01:23AM (#29527587)
I second this, "google's problems are not your problems"
Re:We check our node_modules folder into source control on Sunday December 12, 2021 @01:19AM (#29527570)
I came to mention this exact issue.

I've seen this trip up people in the past, in one case a CI/CD system running Linux was used to produce a project deployed to a mostly windows environment this didn't cause any issues until the day a developer added a binary module. Honestly, I'm surprised it worked as long as it did, it took a little over a year before anyone hit that issue.

Re:Ask HN: Shifting my career back to Software Development on Wednesday December 08, 2021 @10:20AM (#29485772)
Double down on your strongest skill (sounds like Python) brush up on some of the changes (e.g. Python 3isms) and find a role where you can use it, all the new shiny stuff can come later.
Re:SuperH on Monday December 06, 2021 @02:16PM (#29464273)
no update since August 31, 2016 seems pretty dead, though I guess there is someone around to renew the domain name, etc.
Re:SuperH on Monday December 06, 2021 @02:15PM (#29464260)
NetBSD has an active port (though "active" for NetBSD is not as "active" as other projects, but it still builds and runs): http://wiki.netbsd.org/ports/sh3/

Aside from the Dreamcast, there's a few Japanese NAS devices that run the SH3 port too.

Re:Leaving MySQL on Monday December 06, 2021 @02:00PM (#29464069)
> MySQL has the whole 'worse is better' thing going for it.

I've used both MySQL and PostgreSQL and I prefer MySQL, it seems to work and scale better "out of the box" and has a more comprehensible permission model than Postgres. I might be biased somewhat as I've used MySQL a lot longer and have even written plugins to interop with it but its still my number 2 go to (after SQLite)

Other comments have mentioned my usual go-tos, but to add one more to the list: https://www.sparkfun.com/
LOL
What is the deal with banks being actively hostile to password managers?

One bank specifically I have to deal with will:

- Not allow you to paste a username/password (ctr+c/ctrl+v, right click disabled)

- Lastpass autofill doesn't work

- If the page loses focus, both user/password inputs are cleared, you get to start all over.

There is also a very small subset of special characters that are allowed. If you do not reset your password as often as they'd like, you have to agree to waive any responsibility for any issues with your account before logging in.

SMS 2FA required, there's no other 2FA option.

After entering your 2FA code, the "proceed" and "cancel" buttons are the exact same shape and color and I've hit the wrong one multiple times, in which case there is also SMS 2FA cool down and you have to wait 15 mins to start all over again.

It's absolute insanity and every time I have to login its an adventure.

Re:Processing and P5 got newbies into coding on Wednesday November 24, 2021 @01:10PM (#29333104)
Much love for processing!

Back when I was starting school and learning programming I also picked up an Arduino Duemilanove and learned Wiring and Processing which went together like peanut butter and jam. What an amazing time. I recall getting some of my processing apps to run on my Sony Erricson phone as they once had a way to convert the Processing sketches to a Java Mobile Edition apps (back before Andriod was widespread)

Re:Tools to generate constants and enums in multiple languages on Thursday November 11, 2021 @10:14AM (#29188692)
Update: protocol buffers look more promising than I initially gave it credit and there is a Rust implementation.
Re:Tools to generate constants and enums in multiple languages on Thursday November 11, 2021 @10:02AM (#29188538)
I glossed over it early on as it didn't support mention Rust support, it also seemed to be for a different use case than I was targeting but I'll give it another look. Thanks for the suggestion.

Tools to generate constants and enums in multiple languages

I would like to generate constants (and ideally enums) from a single source into multiple languages so that I don't need to maintain multiple definitions.I'd like to support at least: C, C++, C#, Rust, JavascriptSo far the closest thing I've found is reconstant[0], which looks simple enough to add C# to but curious what other options are available.

( Read More... | 3 comments | 4 points | on HN )
Re:NPM install is curl – bash on Saturday November 06, 2021 @01:48PM (#29132244)
This is why I will never install an npm module with sudo or globally with -g

You can get around that requirement by having a specific location set aside for global modules (I use ~/.config/node/node_modules) and then putting the node_modules/bin directory in your path. Install anything there that some bone-headed project things you should install globally (mocha, grunt, serverless, etc.)

Also, I'm not disagreeing with the post at all, but there is at least one important distinction between piping curl output into bash and that is the expectation of what will happen after running the command.

Piping the output of curl into bash can result in absolutely anything happening, just like running a script you've never looked at.

Running `npm install` or `yarn install` _should_ just install the NPM module, possibly build a native module and not much else. There's numerous cases of NPM modules doing other things they shouldn't, and I'd argue invoking a compiler to build a native module is one of them too but there is at least an intention of what will occur. NPM is not alone in this regard either.

RPMs can execute arbitrary commands too (though coming from your distribution they will be vetted and signed), so can Make, but there are some expectation around what they will and will not do. With curl/bash anything is fair game as to what to expect.

Re:AWS GovCloud is having an outage in us-gov-west-1 on Tuesday November 02, 2021 @03:18PM (#29086139)
This is the first of its kind I recall seeing in GovCloud (customer for a few years now), but given their clientele I wouldn't be surprised if its very high priority.
Re:Do-nothing scripting: the key to gradual automation (2019) on Tuesday November 02, 2021 @03:06PM (#29085989)
It's not a "private" key if its shared. Only the end user needs to know the private key details.

Consider the usecase of generating a user their initial password for a service, this almost always results in the user needing to immediately reset their password after initial login, this doesn't happen if someone is generating both parts of the key pair for you.

My sysadmin doesn't need to know my password, and doesn't need to know my private key or passphrase, that would allow them to impersonate me.

Re:Do-nothing scripting: the key to gradual automation (2019) on Tuesday November 02, 2021 @03:01PM (#29085915)
> Create an SSH key pair for the user.

> Send the user their private key via 1Password.

Why are you generating *private keys* for users, then sharing them? Not that this impacts the automation bits but IMHO users should known how to generate and maintain a key pair, and send you the public key.

Re:AWS GovCloud is having an outage in us-gov-west-1 on Tuesday November 02, 2021 @02:03PM (#29085063)
AWS acknowledging the issues is such a rarity I didn't even check it until well after we started seeing issues.
Re:Show HN: FlakyBot – Identify and suppress flaky tests on Thursday October 28, 2021 @01:48PM (#29028900)
How about you fix the flaky tests? Am I insane for thinking that? The whole concept of "just reboot it" or "re run it again" and "fixing" the problem is at least one reason the modern world sits on a mountain of complete garbage software.
Are there any means to detect that a cosmic ray caused such a crash without ECC memory? I recall that Drop Box had some issues early on with memory corruption due to how many low-end PCs ran Drop Box.

I recall coming across a more detailed write up a long time ago but still found mention of the issue [0]

> our clients rarely have ECC memory. We see a constant rate of memory corruption in the wild and end-to-end integrity verification always pays off.

[0] https://dropbox.tech/infrastructure/-broccoli--syncing-faste...

Re:Uber and Lyft don't save money, time, or the planet on Thursday October 21, 2021 @10:59AM (#28945411)
> I swore off taxis years ago after I realized that every time I walked out of an LAX terminal toward the taxi line, my neck and shoulders began to tense. I was bracing for a fight.

Same thing with the "Grab" app in Asia, its just not worth fighting the cab drivers in Manila or Bangkok, when you can get a Grab driver they will give you zero drama but the cab drivers in those cities will haggle you, not use the meters, try to get you to go to some tourist trap, etc. Its not like that across those entire countries (Davao City notably has absolutely amazing taxi drivers) but the big cities are terrible.

South Korea, Japan, and Singapore have such amazing public transpiration options there's little need for taxis most of the time (though its worth noting that when I have used them I had zero issues in those countries, even in Seoul and Tokyo.)

There are lots of interesting bits in there though, such as:

> List of Items Controlled

> a. Any type of telecommunications equipment having any of the following characteristics, functions or features

> a.2. Specially hardened to withstand gamma, neutron or ion radiation;

is ECC memory now a controlled item?

Older »