News for hackers. Stuff that matters.

rukenshia

Re:Zoxide: A Better CD Command on Tuesday September 23, 2025 @03:52AM (#45344050)
I tried zoxide, but at the end settled for using fzf to quickly find and enter directories:

  qcd () {
   local d
   dirs=$(fd -t d -t l --ignore-file ~/.gitignore . $@)
   d="$(echo ${dirs} | fzf +m --height=50%)"  && cd "${d}"
  }
  
  alias hd="qcd ${HOME}"

Show HN: A smart coffee scale that can order coffee on its own

https://github.com/Rukenshia/terminal.scale

Hello again! I recently shared another device of mine (a focus timer based around an epaper display) and seeing all the positive feedback motivated me to keep building :)What you're looking at is a overcomplicated way of buying coffee a coffee scale that is connected to a coffee shop's (terminal.shop) API. You can order new coffee directly from the scale or even let it do that on its own once...

( Read More... | 1 comment | 2 points | on HN )
will give that a try next time, thank you!
thanks for that, i'll update references.
great questions!

- knob: yeah, if I were to redesign that part I would move it to the top. I had a total schedule of 4 weeks for this project, and I didn't feel confident enough to rebuild (and print prototypes) of the case when I encountered the weight problem, but that would definitely make it better

- I did fillet/chamfer (almost) every edge I believe, I also printed the final case with fuzzy skin to make it feel higher quality

- The knob was originally meant to also allow you to change the timer, so having a dial felt like the right thing to do. Didn't turn out that way, so yes three buttons might be the better UX for the menus I ended up with (and would make the device smaller)

- The shroud actually started out as a way to prevent light leaking (and then I re-printed it in white so that it would boost the LED diffusion a bit together with the diffusion plastic film), but I like your idea of having an LED strip around the edges of the screen - didn't think of that!

- I am usually more of a Blender guy, so I followed a tutorial for doing knurling in onshape. The tool really doesn't like that much geometry and is laggy to work with, but feel free to check out the onshape file (linked in the README)

Oh that looks very cool! I spent some time researching when I started but didn’t come across this. Thanks!
Absolutely no offense taken! I knew I was overengineering the hell out of this when I started it :)
I think functionally the Focus Dial (I linked to it in my README as well) is the much better „product“ and keeps exactly that UX compared to what I built. I had to face the reality of my own limited knowledge and skillset to build something like that (and wanted to do my own thing), plus I really ended up liking that epaper display.
honestly feeling this - I (or my friend who now has the device) don't really follow this religiously either. I think it's great when you have a lot of work to be done and feel a little overwhelmed. Getting down into this rhythm can help you chip away at it.
I actually bought a 4" round LCD for that reason, but ended up ditching it in favor for the e-paper display. I also stuck to just showing minutes (and in the last minute 10-second interval updates) so that it doesn't get too distracting.
Re:Blob Opera on Thursday December 17, 2020 @05:14AM (#25454226)
If anyone else has troubles loading this, It didn't work when I was logged in with my G Suite account. Using an incognito tab works fine though.
Re:Music for Programming (2011) on Thursday December 12, 2019 @11:03AM (#21772984)
surprised nobody has mentioned the freecodecamp radio yet, I really like listening to this on a very low volume. Mostly Lo-Fi music that doesn't take your attention away.

https://coderadio.freecodecamp.org/

Re:How SAML 2.0 Authentication Works on Tuesday July 30, 2019 @01:55AM (#20562416)
We've been using SAML to log in to AWS for the better part of a year now and it's been pretty good for us.

When logging in, you assume a role (sts:AssumeRoleWithSAML), I'm surprised you did not mention the worst part: logging in to the CLI with this. You either have to manually input the returned SAML assertion to the AWS cli[1], but luckily there is a tool called saml2aws[2] to do this with the majority of identity providers.

saml2aws sadly didn't have proper support for assuming many roles at once, so we even ended up writing our own tool for this.

This is something AWS has completely ignored so far and I am not aware of any progress towards a better CLI experience.

[1]: https://aws.amazon.com/premiumsupport/knowledge-center/aws-c...

[2]: https://github.com/Versent/saml2aws

Re:How I use the good parts of AWS on Sunday July 28, 2019 @08:39AM (#20547215)
What are the downsides of using terraform? We are currently in the process of redoing a lot of our infrastructure and are considering Terraform. We had some bad experience in the past with AWS (probably 12-18months ago) and Terraform especially when it comes to manual changes to resources for environments where manual changes for testing purposes are common (think changing security group rules for example). It resulted in us having a broken state and being unable to apply changes to our Terraform deployment without tracing the manual changes and undoing them, so I'm a bit cautious about moving forward with terraform. Have you experienced this recently? I'm intrigued by your comment and would love if you could expand on it.
Re:Manual Work is a Bug – Always be automating (2018) on Tuesday July 23, 2019 @02:19AM (#20504819)
I never heard any excitement from people when we told them we would test some automation with their request, but otherwise I love being reminded of this. We tend to slack with that in our team, all the reasons mentioned in this post.

What we have found helped us quite a bit is, after writing the initial runbook for a task, to write a second script (usually pretty short, maybe two dozen lines) that asks you questions and then generates customised steps. We then later use these functions in the actual automation.

Re:EC2 Instance Connect on Friday June 28, 2019 @12:54AM (#20301590)
I'm a bit confused about this one.. we have been using SSM Session Manager for quite some time now and this looks like it does the same. We also export all logs during the session with SSM and you can see which user initiated the session. What am I missing here?
Re:AWS Control Tower on Monday June 24, 2019 @10:08PM (#20270566)
I love that AWS is starting to care more about providing these services. For context, we have basically been building this for 2 years in our company internally to provide hundreds of “compliant by default” accounts. Every company seems to do it themselves.

What I personally find very frustrating is the lack of being able to migrate any existing organisations into this. I’d love to get rid of some of our account provisioning but this would basically mean starting over with a brand-new AWS Organization which is impossible for us.

It still is quite a hassle to manage many accounts (and resources you need in them) so I hope this service will sooner or later help us with this.

PS: if anyone is over at re:Inforce and wants to talk about anything AWS Orgs & accounts, feel free to mail me (profile)!

Re:Sourcehut Q1 2019 financial report on Wednesday May 15, 2019 @03:30PM (#19922875)
I'm actively using[0] sr.ht with a paid membership. I really like the service and the build system is super simple and easy to use, while fulfilling everything I need for my private development. The owner has been super responsive to feedback/issues. I encourage other people to try it out as well and I am looking forward to see how this service grows.

[0] https://git.sr.ht/~rukenshia/

Re:Sourcehut Q1 2019 financial report on Wednesday May 15, 2019 @03:27PM (#19922843)
I actively use it and still call it Sir Hat in my head.
Re:Apple Is Blocking Linux User-Agent on appleid.apple.com on Friday February 22, 2019 @09:03AM (#19225335)
if you're talking about the iCloud website, switch to "Desktop Mode" on your phone and it will work for the "Find my iPhone" application on there.

source: lost my phone and went full panic mode when it said "unsupported" and fiddled around with it for 30 minutes on an android phone

Re:TypeScript at Google on Sunday September 02, 2018 @03:47AM (#17896083)
I feel you and I think it is more of a "React + TypeScript" problem than a TypeScript problem.

We have started using Angular 2 (now.. 6?) with TypeScript for a project last year and I never had big issues with TypeScript.

Last month, one of our teams started a React project and given the success of using TypeScript before, they opted to do the same with their project. I've walked them through a few things but found myself getting frustrated a lot with weird TypeScript errors. Especially things like typing your Props was such a nightmare that we resorted to "any" a lot more than I'd like.

The project is not using TypeScript 3 so I am unsure whether that would get rid of some problems but React + TypeScript was just a frustrating experience for us.

Re:$600 Chromebooks are a dangerous development for Microsoft on Saturday September 01, 2018 @01:11PM (#17892806)
> CORNER OF PALM REST SMASHED AND CRACKED, SPREADS TO BOTTOM COVER

I assume parent spoke about a new Chromebook, not a used (broken) one

Re:Introduction to Go Modules on Sunday August 19, 2018 @03:22AM (#17793029)
Definitely sounds like an upgrade to our current approach, thank you!
Re:Introduction to Go Modules on Sunday August 19, 2018 @03:05AM (#17792992)
Do I have the ability to somehow specify "use git+ssh for this dependency" with the new modules system?

Right now it seems near impossible with go to do that other than manually cloning the repositories into the correct path. We can't host our things publicly and have to use SSH to clone the repositories at my company.

It is especially frustrating in our CI/CD process if we need to manually clone our packages for setting everything up.

> Most of my friends that work at larger public tech companies — it just feels like they're constantly doing unimportant things, going to conferences just for the sake of it

Working at a BigCorp(tm) right now, this is somewhat of a false statement imo, at least for us. Being in such a standardised place, it is very hard a lot of times to find new inspiration for technologies to adopt and things like conferences or meetups are the perfect opportunity to network and hear about how people make use of new things. Usually, we don't really get much time to explore new technologies as capacity is always planned for our current workloads. That's why I love being able to go to a conference every few months (this year it'll be 4 for me) to be able to bring some things back into my team that might be interesting to us.

We get the time approved for conferences, but not to explore things "while at work".

This obviously differs from company to company but that's my experience at my current one so far.

I think the big problem in us being that slow is that you can't properly test changes. The initial programs get written under immense time pressure to put it productive and what after that? Do you want to touch your productive system and refactor it and risk causing hundreds of thousands in damages for production loss? You pretty much need to nail your initial design and can't afford to do the usual "we will take care of our technical debt later".

I hear you saying "but you have debuggers/simulators!", for anyone actually having worked in the field you will know they are pretty much useless for big changes in machines that speak to hundreds of other systems, sensors, motors, etc. At least that's what my experience was and nobody has a backup factory to test changes on. In the tight schedules we had during production stops (Sunday nights, mainly) we were busy enough maintaining everything else than having fun on a PLC.

I completely agree that this is all a big mess and people don't tend to write maintainable programs, they just want their machines running and this is where everyone needs to be trained and improve.

Did you ever have the pleasure of working with Siemens' SCL? I found it very frustrating to use but overall a better experience than just using the lego blocks programming you usually see. Combined with your data blocks you could at least get some structure into your programs.
It honestly doesn't surprise me that so many PLCs are exposed directly and are not up to date. Having worked in maintenance at a large factory where we directly worked with Siemens PLCs, nobody is really prepared to make their PLC secure. Most people handling and programming those PLCs do not have a deep understanding of "Internet of things" (in Germany, the term "Industrie 4.0" is used a lot) but management is happy to jump on that topic.

You usually don't worry about anything other than the task your PLC is supposed to perform (we're in a factory after all and need to make money, so better do it quick). I don't think I can remember ever updating the firmware of any of our PLCs, most of them even rot in a storage room for a couple of years before even being put in use.

Everything is connected to the local network for monitoring purposes and if it weren't for another department strictly managing our network I reckon there would be a lot more of them accessible directly from the internet.

Older »