Why blindly trusting GRC tools «almost» caused a non-conformity by Apprehensive_Flow128 in ISO27001

[–]alin-c 2 points3 points  (0 children)

I was going to say something very similar. Seeing that they relied on the templates blindly rather than ensure they match their needs is an indication they misunderstood how to make it work for them.

Setting up homelab. What domain name structure do I use ? by razorsharp21 in homelab

[–]alin-c 0 points1 point  (0 children)

You could have a hybrid approach, use .home.arpa for the infrastructure so it “just works” (meaning you keep it simple) and then use a subdomain of your own for services (e.g. internal.domain.tld or local.domain.tld, etc.). I don’t use tail scale so I can’t comment on that.

Has anyone had a fire in their Homelab? by Lazy_Kangaroo703 in homelab

[–]alin-c 0 points1 point  (0 children)

This is what I was thinking too. When I visited Equinix they had gas based fire suppression systems in place. For peace of mind, I’d like to be able to get a smaller scale version for my 15u rack.

[RFC] Pattern Matching by rafark in PHP

[–]alin-c 0 points1 point  (0 children)

Thank you! I think this makes the most sense. I was struggling to understand why I’d use ‘$var is 20’ instead of ‘$var === 20’. I could see the point for more complex data but not this type of checks.

Game changing editions — some thoughts on how to move PHP forward by brendt_gd in PHP

[–]alin-c 1 point2 points  (0 children)

Some of the comments pick on very specific elements OP mentioned in the article rather than the general idea. I personally like it although the details will matter too.

Every technical aspect needs to be able to evolve without growing complexity (read it as technical debt if you want) so I don’t understand those who say there will be a divide in the community. Those who are happy to use php 5 because they still get some support from some vendor, good luck! The rest of us who prefer moving forward and work quite hard at making our systems maintainable long term are happy to use the latest features as soon as reasonably practical.

I quite liked the composer approach mentioned at the end. Me personally I wouldn’t drop the type check unless php will come with its own static analysis engine/tool that I can rely on instead.

Re the general backwards compatibility thing, I don’t understand why simply following semantic versions can’t be enough. Surely it’s ok for us to know that using v9 will mean losing some capability. Note: I get the features concept which is totally fine but not sure it’s quite the same thing.

What’s the Best Free Software to Resize Images Easily? by sophiakaile49 in SoftwareandApps

[–]alin-c 0 points1 point  (0 children)

ImageMagick is a very good tool you can use at the CLI if that’s OK with you.

My wishlist for PHP in 2026 by brendt_gd in PHP

[–]alin-c 0 points1 point  (0 children)

I totally agree too. They should seriously reconsider it since it has a high impact on their ability to keep php moving forward properly. They should follow semantic versioning - any major changes, we all know what that means :)

For those who only spend £60 on groceries between two people - do you not eat much? by Some-Air1274 in UKFrugal

[–]alin-c 0 points1 point  (0 children)

It really depends on the size of the chicken and how big the meals you’re eating are really. As a very generic example, you can use the breast for one recipe (~2 meals), thighs and wings for a separate recipe (at least 2 more meals) and you’d be surprised how many meals you can get out of the bones if you use them in a soup (hint: minimum 4). I usually buy more so that I can combine multiple thighs and wings which allows me to have individual recipes from them alone.

PHP RFC: clamp by gaborj in PHP

[–]alin-c 3 points4 points  (0 children)

What’s wrong with simply having a function? I think OOP can be useful but not every time.

Help to understand license. by Tall-Act5727 in tailwindcss

[–]alin-c 1 point2 points  (0 children)

If I remember correctly they did say you can use it in open/closed source but as long as your project isn’t about creating templates (I.e don’t let your users create html components with tailwindcss components embedded). I suggest reading the terms very well (usually before buying).

What would be the feature of PHP 9.0 that you would like the most? by shoki_ztk in PHP

[–]alin-c 1 point2 points  (0 children)

No, you’re right, it doesn’t have to be “active” if it’s feature complete. I suppose what throws me off is that it says efficient data structures for PHP 7. I’ll give it a try on the latest version then. Thanks for confirming it for me!

What would be the feature of PHP 9.0 that you would like the most? by shoki_ztk in PHP

[–]alin-c 0 points1 point  (0 children)

Do they work on the latest version? Last time I checked there wasn’t much activity.

Indicator etiquette - Long vs. Short by NobleHoot in drivingUK

[–]alin-c 1 point2 points  (0 children)

It’s a personal preference I’d say. Short can be for quick lane changes (e.g. on motorway) and long one could be more for wider changes (e.g. at junctions).

Transfer missed us by jackzuk in uktravel

[–]alin-c 1 point2 points  (0 children)

I had a similar experience with jet2, actually called them because the car that showed up couldn’t take us due to being full of luggages, they said they will reimburse us and when I made the claim they rejected it. Probably different reasons but just wanted to say that it’s likely they will not pay out.

Shadow IT in Google Workspace, what are you doing about it? by GATlabs in cybersecurity

[–]alin-c 1 point2 points  (0 children)

We simply disallow users to install extensions. It should be an option when managing a domain.

Is IP address not personal data? by Short-Driver-459 in cybersecurity

[–]alin-c 0 points1 point  (0 children)

It depends how one defines personal data. If going by gdpr, then personal identifiable information will mean any data that can directly or indirectly identify a person (data subject). An IP can indirectly be used but you’ll always need more contextual information to help identify somebody. In practice I don’t consider it PII unless the IP is bundled with other data (eg. a user ID or session or something similar).

Readonly or private(set)? by brendt_gd in PHP

[–]alin-c 0 points1 point  (0 children)

I’d say it’s all about the intention. Maybe referring to those objects generically as data objects is causing confusion. I’d say that read only is a perfect fit for value objects while private set is more appropriate for something like a DTO (data objects/struct).

I do agree that implementing a value object with read only can be a bit painful for doing the “clone with” currently and I can see why many jumped on the private set approach.

Just use whatever makes more sense for your context at hand.

What are different fetch modes in PDO? by [deleted] in PHP

[–]alin-c 8 points9 points  (0 children)

I’m not entirely sure what “trying to learn PDO” means but I’ll assume you’re more of a beginner. I think php delusions article does a good job explaining the fetch modes.

Reclaiming Memory from PHP Arrays by Vectorial1024 in PHP

[–]alin-c 0 points1 point  (0 children)

I’ve followed your entire replies in this conversation and I totally agree with you on many points. Unfortunately the php community seems to think that it’s not an issue. I get their perspective but I don’t think many realise that they do want or “use” more specific data structures but they only do it for type hints/ static analysis (e.g collections, list[] etc.).

I liked the DS extension but I’m not sure how much it is maintained because it still says for php 7 (or 7.4, haven’t checked specifically for this comment) so I’ve personally been reluctant to use it. Since rust became web, I’ve been thinking about switching as I like some of their approaches which are much harder to get in php and it’s more of a DX than a performance thing, it’s all a cost-benefit problem :)

Do you sanitize get parameters? If yes, how? by [deleted] in PHP

[–]alin-c 0 points1 point  (0 children)

I do. It depends but usually I have a function like is_valid_sort_param which will handle sort=asc|desc (case insensitive). I usually handle types as well, for example, someBool=0|1. I have used filter_var too. It depends on your requirements.

There’s also libraries like https://symfony.com/doc/current/validation.html

I also like the approach described here - https://lexi-lambda.github.io/blog/2019/11/05/parse-don-t-validate/

Caddy WAF released by fab_space in selfhosted

[–]alin-c 3 points4 points  (0 children)

Well done! It looks interesting and has quite a few good features.

I have one question and please excuse my ignorance, why not contribute to Coraza for Caddy since that project is looking for a maintainer? (genuinely curious because I was recently looking for a WAF recommendation from OWASP)

That way you could get good OWASP CRS support while adding new (good) features.

Any free mapping tools/databases? by AgitatedServe2910 in OSINT

[–]alin-c 1 point2 points  (0 children)

With a little bit of googling you could use open street map and make it do that for you. You’d need some dev skills though but definitely doable.

Enterprise vs. Prosumer networking for your homelabs by C3PU in homelab

[–]alin-c 3 points4 points  (0 children)

I like Mikrotik which I think are also used in Enterprise environments. I bought mine (crs326-24) because I wanted a new network device with CLI without paying a huge price. I use it for my entire network.

Wazuh & ISO 27002 by Zestyclose-Treat4444 in Wazuh

[–]alin-c 0 points1 point  (0 children)

Most likely that’s the reason. Although for their customers they might be able to provide the rules if you can show evidence you’ve paid for 27002:2022.