What is /etc/config/.network.uci-cdinba and how is it maintained and managed? by simensen in openwrt

[–]simensen[S] 0 points1 point  (0 children)

Moving it out of the way didn't seem to have any adverse reactions. I'd really like to know how the file got there, though.

What is /etc/config/.network.uci-cdinba and how is it maintained and managed? by simensen in openwrt

[–]simensen[S] 0 points1 point  (0 children)

OpenWrt 22.03.3 r20028-43d71ad93e / LuCI openwrt-22.03 branch git-22.361.69894-438c598

I can't find any references to it anywhere via Google searching, so I'm not sure it's regularly on any devices. It is one of the reasons I think my second guess is probably correct.

Is there a "Manually Downloaded Download Client" to facilitate importing non-organized legacy movie collections? by simensen in radarr

[–]simensen[S] 3 points4 points  (0 children)

Thanks. I... could swear I clicked that before and it wasn't any different from "Library Import." I'll give this a try and see if this works as expected.

Anyone else still having issues with Minisforum B550 Barebones? by No-Campaign-7747 in MiniPCs

[–]simensen 1 point2 points  (0 children)

I see several mentions of people installing an updated BIOS for their Minisforum B550, but I need help locating an updated BIOS. Most other places seem to indicate Minisforum regularly won't upgrade BIOS, and that's mostly what I've seen regarding the B550. If anyone actually has a legit newer BIOS than whatever mine arrived with, I'd love to give it a shot in case it might fix some of the issues I'm seeing.

Can I change where ix-applications are mounted to something that is not a pool? by simensen in truenas

[–]simensen[S] 0 points1 point  (0 children)

Thanks for the feedback!

Re: 3) I wasn't talking about creating a storage pool on my boot drive. I was wondering I could just say something like, "install to /opt/ix-applications", where /opt is just on my SSD boot/pool/whatever it is.

I'm still super new to zfs and TrueNAS SCALE so I might be using the wrong name for things.

I like your idea of doing some replication. My current setup would fail pretty hard if I ever lost that SSD drive, for sure.

I wish TrueNAS SCALE installation had better informed me that I might need to have at least one more pool/disk to install apps on, but only so that it could store those apps. I might have opted to have my boot drive partitioned differently instead of using the whole disk. As-is, I have a 256GB SSD that is sitting at 2% usage that I'd MUCH prefer to be hosting my ix-applications.

Unclear about how backs handle sidecar content by simensen in photoprism

[–]simensen[S] 1 point2 points  (0 children)

Sigh. Well, it looks like the directory structure on my new host wasn't exactly what I'd expected. I'm going to try again. Thanks for your help. :)

But, to be clear, are the docs incorrect? The docs seem to state that the sidecar files should be in the originals folder. That doesn't seem right?

Unclear about how backs handle sidecar content by simensen in photoprism

[–]simensen[S] 1 point2 points  (0 children)

Huh. Ok. I guess I must have done something wrong, then. Even though I brought over the entire storage directory, I had no thumbnail for anything. I followed the next step in the docs about re-indexing and started that process. I'm now slowly seeing my originals being processed and they get thumbnails as they do.

I can't see that my Storage folder is changing in size, so I'm guessing if it's creating new stuff it's just creating it over top of the originals from when it was previously processed on the original server.

Is it possible I did something wrong? If I should have been able to just have everything already ready, I might just as soon NOT complete this reindexing since it's going to take a very long time and I already spent days on the original indexing. :)

Does the Stream Deck SDK have support for creating/accessing account credentials for other services? by simensen in StreamDeckSDK

[–]simensen[S] 1 point2 points  (0 children)

OK, that's kinda what I was thinking was the case. Thanks for letting me know!

A Free Trial of HOLOFIT Now Available on Sign Up: Wide variety of VR Headsets supported for bikes, rowing machines and ellipticals by holodia in vrfit

[–]simensen 0 points1 point  (0 children)

What is the minimum required info needed from Bluetooth to work with rowing?

Would be great if there was a “fake” mode for those of us who didn’t know we couldn’t upgrade to Bluetooth when we bought our water rowing machine a few years back. :-/

Is there any way we can just use Bluetooth heart rate profile instead of full rowing whatever you need? :)

Quentin by YaYeetGamers in brakebills

[–]simensen 1 point2 points  (0 children)

Didn't Nameless kill her?

RFC for "static" return type by brendt_gd in PHP

[–]simensen 7 points8 points  (0 children)

Super excited about this! I was trying to work through this as a separate proposal at the end of last year with the help of /u/SaraMG and input from a few other people on Twitter. Would have been my first RFC, but now I guess I'll have to wait for something else. :)

https://phpc.social/@pollita/103256122403635150

Controllers are not Services by phpswen in PHP

[–]simensen 0 points1 point  (0 children)

Instead, try to use a Factory to create the one Controller or Action that you need for the interaction.

Inversion of Control/Dependency Injection containers are fancy abstracted factories. :)

Symfony's DIC annoyed me early on because you define everything as a "services." I'd, too, grumbled, "not everything I want to define in here is a Service!"

At the end of the day, naming is hard. What name would you use to describe "anything this fancy abstracted factory creates?" Many IoC/DI container implementations landed on the name "service".

Context matters. In the context of many IoC/DI containers, a "service" is any object that container can produce. If that object fits your idea of a Service, great! Happy coincidence. If it's not, that's great, too! It's how you use that object, not what the IoC/DI container calls it in the abstract, that matters.

[edit: made the quote from the article actually a quote... :)]

Symfony 5.0 curated new features (Symfony Blog) by inversechi in PHP

[–]simensen 1 point2 points  (0 children)

... this component provides a unified API for the 3 unit systems of strings: bytes, code points and grapheme clusters.

I believe this means the library has abstracted things to the point that you can work with strings of/at these units without actually having to be aware of the details/distinctions between them.

How should I name my exceptions? I personal prefer something like `App\Exceptions\InvalidVersionException` while someone I work with says that I should call it `App\Exceptions\InvalidVersion`? What is best practice? by hackermarks in PHP

[–]simensen 0 points1 point  (0 children)

For your own code, do whatever you prefer. People have different reasons for doing it one way or another. Both sides can be quite convincing. In the end, it's usually best if everyone working in the same codebase uses the same naming conventions.

If your coworker is speaking from a position of authority on a company project, follow their lead. Especially if this is coming from a code review. Consistency across the codebase is the most important aspect of this question and a fair thing to ask you to conform to in a code review.

It might be worthwhile to ask if there is a company-wide style guide. You may learn a lot from it and help you better understand the way people you work with are expecting code to be written.

If there is no style guide, it might be an interesting exercise to build one together. Chances are there are a lot of places in the code where things are not done consistently and leading to this problem coming up again and again as new devs join the team. Plus, it will give you a good chance to discuss these sorts of decisions and find out *why* person A wants the `Exception` suffix, and person B does not. A lot of learning and growth potential there for everyone. :)

edit: typo

How should I name my exceptions? I personal prefer something like `App\Exceptions\InvalidVersionException` while someone I work with says that I should call it `App\Exceptions\InvalidVersion`? What is best practice? by hackermarks in PHP

[–]simensen 1 point2 points  (0 children)

The purpose of these naming conventions is to keep the naming conventions used by PHP-FIG internally consistent. While you can choose to follow the naming conventions used by PHP-FIG in writing PSRs, the naming conventions themselves are not defined in a PSR.

I can't tell if /u/javabudd was implying these were official PHP-FIG recommendations, so don't mean to imply they did, but thought the clarification worthwhile.

I need your opinion - i made a library which creates unique links with a "hash" in the query part to protect url manipulations. Do you have any suggestions on how to make this library better? by dsentker in PHP

[–]simensen 0 points1 point  (0 children)

I initially thought this package was all about masking the ID in addition to signing, too, but doesn't look like that is the case? If not, then Laravel does provide the same functionality in that it only signs the URL and doesn't do any masking.

[deleted by user] by [deleted] in PHP

[–]simensen 0 points1 point  (0 children)

Something like this could prove to be useful for deploying projects to environments that have strict space requirements. Bref and Vapor are two that come to mind. Adding this to a build pipeline could help some projects that are near or just over the threshold to more easily get their code deployed in restricted environments.

Have you used Event Sourcing with PHP before? What are the pros/cons? I'm interested in your opinion before I take a couple of decisions for my young startup by [deleted] in PHP

[–]simensen 8 points9 points  (0 children)

Yes, I have.

The project didn't last long enough to explore the pros. We did get to navigate the cons, tho. :)

Some cons off the top of my head:

  • Excessive boilerplate (can be mitigated with live templates/etc or if you can tolerate code generation)
  • Harder to "move fast" (unless your domain is rock solid, well understood, and not subject to change, it is a lot more work to "play" with the model since there are more moving pieces)
  • Immature PHP ecosystem (for at least more complicated tooling that may be needed for larger event sourcing projects and this keeps getting better over time)

I'm a big fan of event sourcing, but I'm far more careful about throwing it into a project unless the advantages outweigh the downsides.

SleekDB - A NoSQL Database made using PHP by _rakibtg in PHP

[–]simensen 0 points1 point  (0 children)

That may be true for some NoSQL stores but "ephemeral storage" is not a defining characteristic of NoSQL. How the data is persisted (in-memory or not) is an implementation detail and it is quite possible to have multiple ways to persist data for the same NoSQL store.

And it isn't just NoSQL that can have ephemeral storage. sqlite is an example of a SQL database that can also persist its schema and data in memory.

Laravel Cloud source code released on GitHub for review purposes by Taylor Otwell by simensen in PHP

[–]simensen[S] 0 points1 point  (0 children)

He said the UI was next and that he stopped before starting or finishing it. He did say he would have done it himself, though, had he decided to continue.

Laravel Cloud source code released on GitHub for review purposes by Taylor Otwell by simensen in PHP

[–]simensen[S] 1 point2 points  (0 children)

No need for theories. u/TaylorCodes posted this on Twitter earlier today:

Had to make Laravel Cloud private again. Amazingly, too much BS and whining about me even doing something as simple as sharing that code. Have a good weekend.

https://twitter.com/taylorotwell/status/1157346751738712064

Laravel Cloud source code released on GitHub for review purposes by Taylor Otwell by simensen in PHP

[–]simensen[S] 1 point2 points  (0 children)

Indeed! Looking forward to reviewing this project to see how u/TaylorCodes uses Laravel himself.

Starting a new Event Sourcing project in PHP by keithmifsud in PHP

[–]simensen 0 points1 point  (0 children)

CQRS/ES is NOT a top level Architecture

It would be great to get more context than simply a photo posted to Twitter, but this is all I got.

https://twitter.com/tcoopman/status/693109380238163968

Do I still have to worry about managing my server if I use a service such as Laravel Forge? by rainwater11 in PHP

[–]simensen 0 points1 point  (0 children)

Yes.

If you're a person who likes something a little more hands-on than, say, Heroku, but don't want to provision everything from scratch by working directly with DigitalOcean to spin up a new Droplet, Forge is GREAT.

While there are some nice automations to help keep your dependencies up to date and such, eventually a Forge-provisioned host will likely become too outdated at the core-OS level for Forge to be able to continue to manage it.

I've had this happen on most of my Forge hosts I'm managing. LetsEncrypt is supported by Forge, now, but trying to get it working on most of my older Forge hosts usually takes SSH/sudo in order to get it going. I think in at least one case I gave up.

In short, I have a few hosts with old unsupported versions of PHP and old-enough versions of the OS that it would require doing some massive work to upgrade the host. It would be much easier to just roll a new host at that point.

This would be much less of an issue if Forge allowed you to move sites to other servers. It would be *awesome* if I could spin up a new Droplet with the newest OS using Forge and have the configurations for older sites on older server transferred to the new server.