News for hackers. Stuff that matters.

oxplot

Re:The Framework Laptop is now shipping on Friday July 23, 2021 @12:29AM (#27927208)
Major thumbs-up for AMD chip. With a replaceable main board, this will be a dream. I ordered a framework laptop at its highest CPU+RAM spec and can't wait to replace my 6 years old ThinkPad x250 with it.

EDIT: would also add that the open source design USB-C based side modules are amazing - looking forward to designing my own modules.

Re:Node-RED 2.0 on Tuesday July 20, 2021 @12:11PM (#27895603)
Despite my endless hatred of Node ecosystem, Node-RED is an absolute gem of a software. It hasn't skipped a beat in over a year running my home automation.
I’m talking about my own experience comparing an electric car and a gasoline car at low speeds. EVs being significantly quieter is already well established and we have laws for EVs to make extra noise to alert pedestrians.
It was only after owning a Tesla that I realized how much of the noise from a car comes from its engine, and not the tires. I'd ballpark around 80%, especially at city speeds (less than 50 km/h).
Re:The Hair Dryer Incident (2014) on Friday June 18, 2021 @06:18AM (#27548967)
I was puzzled by the responses of therapists finding out about this. I guess as an engineer I’m always thinking of a quick practical solution. I would set up a camera where the dryer is. Taking the dryer itself is of course much better and simpler. What I find absolutely dumb is to skip these immediate remedies and instead trying to medicate someone off the bat.

It’s like prescribing a healthy exercise regime for someone who’s having a heart attack.

Re:The Hair Dryer Incident (2014) on Friday June 18, 2021 @06:12AM (#27548944)
A technique I learnt as a kid from my uncle was to mindlessly use physical interaction to “feel” the state of things and learn a habit of doing it all the time. For the example of locking the door, it would be trying to open it and pull/push on the handle right after closing it. This seems to stick far longer in one’s memory.
What I noticed is the much faster download speed of the offline maps. It pretty much is as fast as my network allows.
Re:Ask HN: Tools you have made for yourself? on Sunday June 13, 2021 @06:06AM (#27491288)
https://github.com/oxplot/pdftilecut : tiles a PDF to help with printing on small printers

https://fpx.oxplot.com/ : Tiny module that allows powering anything with USB-C

Some small scripts:

https://github.com/oxplot/gists/blob/master/flashserve : creates a QR code to transfer a file over Wi-Fi from terminal

https://github.com/oxplot/gists/blob/master/qrconnect : Read a Wi-Fi password QR code from the camera and connects to Wi-Fi

https://github.com/oxplot/gists/blob/master/qropen : Opens a webpage from QR code read from webcam

Ask HN: Experience with Moving from Arch Linux to Mac

Since a few month ago, I've moved from Android to iPhone and Apple Watch (naturally) after iPhone finally sorted out their support for U2F keys.Now, I'm considering going the macOS way, from my 6 year old Arch Linux installation. I'm a power user and I tend to roll my own packages and use docker extensively but otherwise I don't depend on much of the Linux kernel functionality in particular.I'd...

( Read More... | 9 comments | 7 points | on HN )
Re:Terraform 1.0 on Tuesday June 08, 2021 @10:29AM (#27435644)
> Two years ago I looked into it and rather then having an abstraction from cloud providers

This is a misrepresentation I've seen multiple times and I don't know how it's come to be.

Terraform doesn't abstract resources. It simply supports all cloud providers and lets you intermix resources from different clouds inside a single project. Resources can depend on each other and use each other's attributes.

As an example, you can bring up a load balancer in AWS and create a DNS record for it on Cloudflare in a same Terraform project and maintain them together.

Re:Terraform 1.0 on Tuesday June 08, 2021 @10:25AM (#27435595)
> for example you can't create a kubernetes cluster then add a resource to it

Of course you can! DM me if you want details.

Re:Why electric cars will take over sooner than you think on Tuesday June 01, 2021 @09:22AM (#27353988)
Gotta realize that 99% of people like drama, love to see others fail and say they said so, and that's OK. Much like how Tesla no longer has a press department, we should just focus on the work and people will catch up eventually.
Re:Why electric cars will take over sooner than you think on Tuesday June 01, 2021 @09:14AM (#27353891)
> Pick any random apartment complex in the US and pretend 80% of the residents there own an EV

To pretend that, you'd also have to pretend that it's 20 years or so (if not a few more decades more) in the future. EVs are not gonna replace billions of the on-road vehicles over night, average of each is driven for a decade or two.

Over 20 years, as more EVs show up, more apartment buildings upgrade their electrical infra to keep up. How so? Compare the number of charging spots in buildings 20 years ago to now.

Re:Klarna users are being signed in to random accounts on Thursday May 27, 2021 @12:27PM (#27304916)
A secure cookie would be of no use for a site whose only secure page is the login page, which is what the parent post I replied to was talking about.
Re:Klarna users are being signed in to random accounts on Thursday May 27, 2021 @11:35AM (#27304324)
That only protects the user's password. The auth cookie will be sent in all subsequent requests in plain text.

EDIT: that's how firesheep (https://en.wikipedia.org/wiki/Firesheep) hijacked sessions for e.g.

Lots of misconceptions about how power delivery works over USB-C. Here are a few facts that may help:

- USB-C power is negotiated over USB-PD protocol. Dumb devices are going to get 5v at low max. current.

- The sink device (laptop) must communicate and specifically ask for voltage/current it needs. Sources (power supply) aren't going to just push the max voltage to any device.

- All USB-C cables are required to support 3A of current. For any higher current, the cable must have a chip that advertises its current capabilities.

- The new spec imposes further requirement for the cable (in form of extra capability advertised by the chip in the cable). Power supplies will only enable 50v if such a cable is present.

Re:Word usage guidance and alternative terms on Monday April 19, 2021 @07:26AM (#26861484)
> It's just nearly impossible to memorize.

This can be trivially implemented in CI for code and docs and have links to this doc. No need to remember it.

Re:Open source “split-flap” mechanical display on Monday April 19, 2021 @03:37AM (#26860013)
These screens are awesome. I did a design a few years ago, aiming for super low cost and easy build. Made a few units but it needs more refinement: https://splapr.com/
Re:Terraform 0.15 General Availability on Thursday April 15, 2021 @10:15AM (#26820781)
See my other comment. It's not about a single resource working across providers, but the ability to reference resources across providers and linking them together. Think Cloudflare pointing to AWS endpoints.
Re:Terraform 0.15 General Availability on Thursday April 15, 2021 @10:13AM (#26820753)
> nah. i’ve heard the cross-cloud argument multiple times and it does not hold any water.

You misunderstood. I'm talking a single terraform project provisioning resources across different providers.

We have AWS resources referencing stuff in Cloudflare and the other way, and Cloudflare referencing stuff in a k8s cluster running on-site. Add some some GCP LBs referencing a whole bunch of endpoints across 6 providers. They're all under a single TF project and a single tf apply makes changes across all of them.

Re:Terraform 0.15 General Availability on Wednesday April 14, 2021 @09:20PM (#26815156)
> use whatever the cloud you are using has built it (cloudformation, deployment manager, etc).

Not applicable if you're deploying infra across cloud (we do that across a dozen cloud providers!). Without terraform, it'll bring us tears.

> Or about when it just loses tracks of resources.

Never had this in years of using terraform. These should be qualified with how often they occur.

> Terraform does not automatically rollback in the face of errors. Instead, your Terraform state file has been partially updated with any resources that successfully completed. Please address the error above and apply again to incrementally change your infrastructure.

Checkout the code from before the change and apply again. I've done this numerous times and it's been as good as a natively supported rollback.

> HCL? A disaster.

Why is it a disaster? I find it predictable, ergonomic and easy to write. I also really like the JSON compatibility. But this one is I guess mostly taste.

> it's a terrible tool

I've found Cloudformation to be an abomination as far as user experience goes! Every time I used it, I lost a bit of my soul.

Re:Pass: The standard Unix password manager on Tuesday April 13, 2021 @09:16PM (#26801850)
I've just recently started to use 1password and here're my thoughts:

- Amazing support and fast response on their forums from the reps

- Works across Linux (my desktop), Mac and iPhone and Safari and Chrome browsers

- Has CLI

- Syncs instantly (unlike Chrome and iCloud Keychain)

- Supports TOTP (no - it does not completely defeat the purpose of 2FA, there are multiple aspects to it)

I am also aware of the risk I'm taking by trusting a 3rd party commercial company with my credentials.

Re:Setting up Starlink on Saturday April 10, 2021 @10:19AM (#26761647)
Note that one can use any router with the dish. Basically the dish provides you with a NATed private IP which you can assign to the WAN interface of your router of choice and go from there.
Re:Don’t use environment variables for configuration on Thursday April 01, 2021 @12:50PM (#26662971)
I've recently started developing unix tools with config passed entirely as arguments with a special argument called `--args-file` which takes a file or stdin and reads one arg per line.

This is of course nothing new, but such a powerful pattern:

- It lets you run things without the need for a config file (when testing/running interactively)

- but on the other hand, you can still define arguments saved in a file for more permanent setups.

- `--help` ends up providing all the doc needed to configure the tool.

- It's less magical than env vars and doesn't leak into subprocesses by mistake.

One pragmatic step further is to expand env vars using the shell `${VAR}` syntax for slightly more flexibility.

I'm super disappointed by recent update to Unify Controller on their CloudKey Generation 2. It now requires access to Internet and a Unifi cloud account in order to setup a local controller. I, like many others, have downgraded to the 1.x version.

And now this BS. Ubiquiti was one company I always rooted for, and recommended to friends. Time to move on I guess (for me, I've already spent many $$$ on my equipment unfortunately.

Re:Chrome does not respect autocomplete=off (2018) on Monday March 01, 2021 @10:29PM (#26311594)
I hate it when the websites try to disable autocomplete on login forms and I'm actually happy for browsers to override this anti-user behaviour.
Re:Ask HN: What websites do you visit every day? on Friday February 19, 2021 @06:20PM (#26199389)
I have RSS feed sent to my email , so I don't check anything twice. Just a linear stream of emails that I have become exceedingly efficient at scanning. i currently go through 400 articles a day and it takes me about 10-20 minutes to filter them down to a dozen to read.
Re:I Still Use RSS on Wednesday February 03, 2021 @04:27PM (#26019342)
I run rss2email on a schedule on Github Actions and get feed right in my inbox.

Older »