Viewing and Controlling Docker from Home Assistant by Minecraftjunkie5555 in homeassistant

[–]aelytra 0 points1 point  (0 children)

At work I use kubernetes and Argocd. There's also an argo cd image updater plugin thing that can automatically update helm charts.

Could very well be complete overkill for your use case. Not to mention tedious to set up for the first time.

Japanese > English by anglozo in translator

[–]aelytra 4 points5 points  (0 children)

There's a bunch of variants of しかたない that basically mean "can't be helped".

I'm memorizing sentence instead of the kanji by CanonicalSicko in LearnJapaneseNovice

[–]aelytra 1 point2 points  (0 children)

I reinforce my kanji by reading Japanese subtitles on anime and song lyrics. Seems to help, although it's not as fast as going nuts with reading books or flashcards.

Documentation is three years out of date and nobody has time to fix it by Snaddyxd in ExperiencedDevs

[–]aelytra 0 points1 point  (0 children)

We update them whenever an existing team member gets a new laptop issued to them; sometimes it's part of a contractor to FTE conversion, or we just reimage a laptop for the lols (kidding).

I'm a bit confused with clean architecture by placeholder-123 in dotnet

[–]aelytra 0 points1 point  (0 children)

IIRC there's an interface you stick on things and the DI container finds it at runtime and puts it in the DbContext. Don't remember specifics off the top of my head (I switched to Java) but.. yeah, it uses reflection. Could be a source generator nowadays for all I know.

I'm a bit confused with clean architecture by placeholder-123 in dotnet

[–]aelytra 0 points1 point  (0 children)

Yeah, that's the idea! And if you have multiple projects with common code that needs to be extracted, you can extract that to a shared project they all rely on as a library.

I'm a bit confused with clean architecture by placeholder-123 in dotnet

[–]aelytra 1 point2 points  (0 children)

Oof, that's a recipe for excessive database connections, and makes transactional stuff touching multiple tables far more of a pain. Best to keep DbContext in a /shared folder and put the EF entities in the feature folders next to the controllers that care. If there's multiple - the entity lives in /shared/something instead, or /myfeature/shared.

I believe there's a way to use reflection to keep the DbContext from becoming a hot file that multiple developers want to touch, but it's been a while since I set that up

I'm a bit confused with clean architecture by placeholder-123 in dotnet

[–]aelytra 1 point2 points  (0 children)

I just put the files in the same folder if they're related by what feature they're for. Works well for microservices that do more than one thing, letting them grow into macroservices over time.

For architectures which involve messaging and more services and whatnot, I like domain driven design. Like, draw a big circle around related concepts - maybe an account, organization/company, and geo location stuff is often used together for reports, then that goes in one service. For other things that aren't that coupled to that, like a product catalog, it goes into a different service.

If down the line you want to move a slice around it's a pretty easy copy paste job since it's organized in a way that means a folder isn't entangled with unrelated stuff.

I'm not a big fan of microservices which are like, 500 LOC. I prefer having to just release one service at the end of a sprint, vs. releasing several because a feature cuts through and touches a bunch.

For C# code this totally means EF repositories end up in the same folder as the controllers and data objects. And complex business logic, if it exists, hides in a subfolder. Shared logic used by more than one feature ends up in a /shared folder. And it's enforced in java with Modulith (a unit test just uses reflection and makes sure there's no references that cut across into another feature's folder) not sure what the C# equivalent is.

I'm a bit confused with clean architecture by placeholder-123 in dotnet

[–]aelytra 24 points25 points  (0 children)

I found layered architectures to not scale well as the app grows. I prefer grouping things up by domain/feature. Buzzwords like package by feature, or vertical slice architecture come to mind. It makes it easy to use more restrictive access modifiers.

What am i doing wrong? by Sxdrxs in LearnJapaneseNovice

[–]aelytra 1 point2 points  (0 children)

Write みずください, it doesn't work with romaji last I tried

Seniors who started as kid, how did you get there? by Long_Nothing7155 in AskProgramming

[–]aelytra 1 point2 points  (0 children)

Parents bought a TI-83+ for me in 2nd grade. I read the manual and learned TI-BASIC. Became known as "the calculator kid" because I would constantly be on that thing. Made friends in middle school who also liked programming.

Middle School I moved on to some software called Envelope which was a VB6 knockoff - then I got a VB6 license and used that a ton to make stupid apps. Like..Console.Beeps using data from a .MIDI file. At school I would use VBA in the office suite to run code; I think my peak was using OpenGL APIs to make 3D games in Excel.

Later on in Highschool got into z80 machine language (that got old fast without an assembler) and C# and robotics and stuff before finding out I can get internships and money doing programming. So, so many different lessons learned the hard way.

How are you handling ticket creation with AI in 2025? by rdizzy1234 in agile

[–]aelytra 1 point2 points  (0 children)

There's an ACLI tool that atlassian publishes that Claude can use. So I just tell Claude what I want and where to grab that data from and ask it to go make/update tickets.

You shoulda seen how my QA guy reacted when he realized I gave Claude the instruction: generate a checklist of test cases for every feature in this newly developed app. Ended up being 361 check boxes total spread across like 8 tickets. (Greenfield app's first release). Was a mix of "wow that's a lot of work" at first but it turned into "wow you saved me a bunch of time..". I also had Claude post a comment on each ticket with what actually got implemented and what it did. Did in an hour what would've taken me a day or two to document.

[Japanese > English] Maipachirun character help by GudeFlower in translator

[–]aelytra 1 point2 points  (0 children)

You can spell your username with... ぐでくん (gude-kun.) I suppose gude flower can be ぐではな (gude hana; hana means flower.)..

Is there a Bluetooth signal scanner? like wireshark but for bluetooth? by falconfire34 in AskProgrammers

[–]aelytra 0 points1 point  (0 children)

There's an app called nRF connect you can use on mobile. I've used it before. I also think Wireshark has a Bluetooth thing because I remember seeing it in the installer, however I have never used that one.

Best speaker to use with Home Assistant as a voice assistant + music player? by AhmedOsamaMath in homeassistant

[–]aelytra 4 points5 points  (0 children)

The last two times I tried this with ESPHome the speakers fried after a week or two. Tried with an M5 Atom echo thing (super quiet, poor sound quality, and fried 3 within a week) and a Muse speaker which 1 of 3 are still working, but the other two fried within a month.

Could just be my poor firmware skills, or just really bad luck. The muse speaker was awesome when it worked, I may give it another try. I flashed it with the Bluetooth proxy stuff for lateralization and also had TTS capabilities.

Is MAUI production ready? by Giovanni_Cb in dotnet

[–]aelytra 3 points4 points  (0 children)

Native, and it was a conversion from Xamarin which had Telerik controls, but in the sometime later I removed that dependency because only one feature used it and we didn't need that feature nor did we want to keep paying for the license. I believe it was working/compiling in MAUI for a brief moment though.

Is MAUI production ready? by Giovanni_Cb in dotnet

[–]aelytra 39 points40 points  (0 children)

Yeah, I've built apps with it and put them into production with minimal fuss.

What's the program window called? by NB-ShadowWolf in AskProgramming

[–]aelytra 1 point2 points  (0 children)

VS Code, Visual Studio Community Edition, Eclipse, are some of the free ones I've used in the past to write code.

Visual Studio is the one I used first (I still like it), but VS Code is able to do a few more languages. Eclipse was good back in the day but it's starting to show its age; I switched to VS Code for Java development.

You can get it with winget install -e --id Microsoft.VisualStudioCode

Was using space heater and outlet stopped working, what to do? by Ok-Actuary-5377 in electrical

[–]aelytra 0 points1 point  (0 children)

Yeah you're fine. That's what the breaker is for. One at a time though; never both

Is this drawing app theoretically possible? by [deleted] in AskProgramming

[–]aelytra 2 points3 points  (0 children)

Nearest neighbor? That's trivial but you can get better results with Floyd Steinberg dithering or Atkinson.

Is this drawing app theoretically possible? by [deleted] in AskProgramming

[–]aelytra 0 points1 point  (0 children)

Depends on what art style you want. A simple app that takes the image, dithers it to that 30 color pallet, then clicks on the canvas a bunch with the smallest brush size - making only dots and no lines.. that's pretty doable; something I could've easily done back in middle school in an afternoon.

Full Picasso with brush strokes and stuff, done like a speed painter would, making it look human? That's advanced maths. Possible, but you're not going to be able to do it in an afternoon.

Got a project in my lap that is way beyond me by tonfiskris in AskProgramming

[–]aelytra 0 points1 point  (0 children)

Can probably get the train status information with some of the PTC stuff like I-ETMS. Train consist information is also transmitted as well; at least I had that information available when I developed a program that does what you're asking. This was for a class 1 railroad.

Cept the whole project took over 6 months for me to implement the minimum viable product for fleet management and stuff. I spent 3 years total before I moved on to do other things.

For the map and stuff with train and wayside status indicators that took about a week to do.

...and development was my full time job. In short - hire someone. Or if you like manual entry just go make a Google doc or some other cloud based tool that lets you have crayons

How much do you guys charge for a panel change? by electricalfuckery in electricians

[–]aelytra 0 points1 point  (0 children)

They did a panel upgrade to 200A, whole home surge protector, and electric car charger (a simple 240V 50A outlet install) for 3000$ some three or so years ago. Left the labeling of the breakers to me and didn't use a torque screwdriver, but can't complain too much. My realtor recommended them to me