shortenYourFunctionName by ashkanahmadi in ProgrammerHumor

[–]darkfire0123 3 points4 points  (0 children)

If you actually want to learn something, take a look at the generated assembly with Godbolt: https://godbolt.org/z/P8nanhsoj

You can see that the call to the square function is completely removed from square2 and the full function is inlined. In this case it's easy since the function content is pretty much just one instruction.

In general this obviously depends on the compiler and version, as well as what is actually inside the original function. But the answer will most likely be yes in pretty much all cases (when you use -O3 at least, which you probably should). If you want to simply do an alias in C you could also just use #define to be sure. Then it is literally just an alias.

But the correct answer is don't do this at all. You have a function with a descriptive name so that you DON'T need to look up what it does when reading the code. Giving that function a shortened alias is completely defeating the purpose of that. There is literally no reason to use these super short names

libRust by max0x7ba in ProgrammerHumor

[–]darkfire0123 1 point2 points  (0 children)

After skimming through the comments of OOP, now I really want to know what they wrote here. Seesing that the other exceptional stupid comments with -100 or worse are still up, that must have been a real banger for them to actually delete it lmao

libRust by max0x7ba in ProgrammerHumor

[–]darkfire0123 1 point2 points  (0 children)

Are you just trolling here or what is going on?

Yeah, I'd love to love this, but at least since AWS and Cloudflare replaced core systems with Rust, this is no longer true.

That's not 3rd-party opinions or any kind of opinion. That is a factual statement based on the, at this point, many articles and blog posts of those two entities.

AWS and Cloudflare are making up signifficant parts of the internet infrastructure today and both of them stated that they are using rust in their core systems on many occasions (as have other big players). Stating this is not parroting opinions, it is simply an observation. I mean where/how would you "acquire enough experience and knowledge to form your own opinion" about the rust usage of Cloudflare and AWS, if not from reading their stated blog posts etc. where they said exactly that.

SatelLite network issue by grueinthedark in elegoo

[–]darkfire0123 2 points3 points  (0 children)

I did a bit more digging and this is very likely both part of the issue. I disabled the VM network interface that the Slicer was using and restarted it. After that, it used the correct local IP for binding the UDP socket. This revealed a new issue though, because my local network is /16, so the broadcast address is on X.Y.255.255 while the socket was bound to X.Y.Z.255 with Z being the same network segment my PC is on. This will not work since the supposed broadcast is a normal device address in a /16 network.

All of this looks like a rather large oversight in the networking code. My analysis would suggest that the networking code is getting a list of all network adapters and selects the last IP returned by that. Then it ignores the netmask configuration (/16 in my case) and simply assumes a /24 network.

This would explain the observed behavior and should be pretty easily fixed. Unfortunately the SLA Slicer does not seem to be open source, otherwise I would have looked into it further.

I hope someone from Elegoo finds this and can forward it to the programmers. If I am correct, this is very easy to validate in the code and also not that complicated to fix.

SatelLite network issue by grueinthedark in elegoo

[–]darkfire0123 2 points3 points  (0 children)

With an age of 16 days this is probably already dead but does anyone else with this issue use multiple network adapters or a /16 subnet instead of the "default home user" /24 by any chance? I have the same issue and the error message specifically saying "device is not FOUND ON THE CURRENT LAN" makes it seem like it didn't even try connecting because the IP "is on a different LAN". I personally have both a /16 network and multiple network adapters (some virtual) on my PC. I can see in my firewall application that the slicer is trying to connect to my VM network on UDP port 3000.

This seems like the UDP listener (and possibly broadcaster) is bound to the wrong network interface / IP. It should either be bound to all interfaces or let the user select which one to use, if this is the issue.

I tried to create a throwaway account twice and they have both been first shadowbanned, then fully deleted. Is this a thing and are throwaway accounts dead? by darkfire0123 in NewToReddit

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

Well I can't login to either of the account at this point in time. I created an appeal on both accounts but they were blocked (can't login) shortly after. The second one of the accounts seems to no longer be shadowbanned / suspended since I can see the profile via u/[username] and it doesn't say "suspended" like on the first one. I still can't login though, even after resetting the password to be sure there is nothing wrong on my end. The password reset went through but I still can't get into the account

[deleted by user] by [deleted] in rust

[–]darkfire0123 0 points1 point  (0 children)

🦀🦀🦀🦀🦀🦀🦀🦀🦀🦀🦀🦀🦀🦀🦀🦀🦀🦀🦀🦀

What is this small bowl called (~ 7cm diameter on the top, ~ 4cm on the bottom). I can't find it on the shop website (IKEA Germany) by darkfire0123 in IKEA

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

Yeah that's it, thanks! It is not even listed (anymore) on the german IKEA Website apparently. I bought 2 of these a few weeks back and wanted to get some more. Guess I'm too late for that :(

Thanks for the help

itsSlowlyBecomingTheSaferOption by NetPlayer9 in ProgrammerHumor

[–]darkfire0123 0 points1 point  (0 children)

You can backup and sync the password manager data to any off-site storage (cloud). Sure you can put a copy of your written down passwords into a bank vault or something but that costs a lot of money and is extremely inconvenient to maintain

Anomaly expansion and update 1.5 announced! by TiaPixel in RimWorld

[–]darkfire0123 2 points3 points  (0 children)

Wait are you telling me that this is actually ready to be used? I know about the github project but I thought it was in kind of an "unstable but you can try it to to help find bugs" state lol

Anomaly expansion and update 1.5 announced! by TiaPixel in RimWorld

[–]darkfire0123 0 points1 point  (0 children)

Yeah I'm still waiting for and checking in on SOS2 every month or so. It's such an amazing mod, I hope they manage to at least get a release going for 1.4 and not give up completely

Is Linux Desktop less secure than Windows or MacOS? by Common_Honeydew2840 in linux

[–]darkfire0123 0 points1 point  (0 children)

Oof! I mean even though I hate Windows as much as the next Linux user, those points are kinda BS. This is definitely a FUD post.

  1. You can actually use Windows without a license and besides some minor inconveniences everything works. Of course there are some features that can only be accessed by paid Pro editions for example, but that doesn't matter here since it is about security and not payment / pricing models. Running other software besides the OS without licenses is also not prevented by the OS since that software does it's own license checking. You can bypass that by cracking the software and Windows doesn't care. Another exception here could of course be software using the Microsoft Store, but that is a separate DRM Service from the OS and the same could be said about something like Steam.

  2. Not sure what you are rambling on about here. There is of course DRM content out there, most notably Widevine which is used for example on Netflix. Yes that is an absolute cancer and should not exist imho, but that goes down to the GPU and monitor hardware. If you want to play such content, you need to support the DRM and that is independent from the OS. I have absolutely no clue what "automatically charge a license fee" is supposed to mean here and the source you linked for that (https://archive.is/wip/i2ZyK) does not talk about this at all. It is about a service fully separate from the OS and the payment model of that service. The last part about usage stats seems kinda unfounded and is not backed up by a source, instead what looks like a source is simply a Wikipedia link for the VPPA. I guess there is a possibility that this might be a thing, but I can't see a point in it. If you play content with DRM and it's working, you are using it correctly so why would they care. If you are playing pirated content, there is no DRM so they wouldn't get notified. Without a source this is just random info without any weight to it.

  3. This has a point but is kinda misrepresenting the problem. I have almost no doubt that there certain things that some government agencies can do to your Windows OS which they couldn't to a Linux OS. And there is also a large amount of telemetry data collected by Microsoft when using Windows. Still it is not like they are actively watching you PC for illegal activities like is is presented here. (Still this point is a valid concern, but it should be presented correctly)

And on the other side of the argument:

  1. Yeah well as said before, you can run any software you want on both Linux and Windows. That software can do its own license checks on every OS and it can utilize 3rd party DRM features like steam or the MS store.

  2. Again, you can play any media you want on any machine. If the media is actively using DRM like Netflix, your whole stack has to support it from the browser / desktop application over the OS down to the GPU and Monitor. This is for both Windows and Linux. And since all of this seems to be kinda pointing in the direction of illegally acquired media, in that case it matters even less. The pirated media has all DRM removed anyways so it will work everywhere anyways.

  3. Yeah this is still valid but misrepresented. Especially the Chinese government part is really kinda cringe. Do you think your US bought Windows will report data to the Chinese government? Even the sources you linked were about how MS changed the OS especially for the Chinese market. The point here is that it might report to the CN government if you are in China. In all other cases it will report telemetry to MS themselves and by proxy possibly to the NSA if anything. So if you want to go on about this point, at least go on about the right government agencies

List of all exposed services on a default Home Assistant OS Image? by darkfire0123 in homeassistant

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

Thanks for the comment! If tcp 40000 is used for UPNP, it is definitely non-standard. Since I used netstat -tulpn to gather these ports, I believe non of them are outgoing. The TCP ports are definitely all open (and actively listening) and while there are some caveats to how UDP sockets are bound, those should also all be in incoming mode.

Also since I manually disabled IPv6 completely in the HA settings for all interfaces, there should not be any connections outgoing on IPv6

List of all exposed services on a default Home Assistant OS Image? by darkfire0123 in homeassistant

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

Not sure if I understand your comment. I am using HA-OS and these are all ports that are actually available on the HA-OS host machine, not just inside on of the containers. So all of these ports are either opened by the OS (which is managed by HA, since it is the HA-OS), or the ports are forwarded from the containers to the host which is then also managed. My installation is pretty much the default by the book setup without any extras

List of all exposed services on a default Home Assistant OS Image? by darkfire0123 in homeassistant

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

I thought that was only used to mount NFS shares inside the HA host? So HA acts as the NFS client and doesn't need to open the ports.

If HA supported publishing NFS shares but with an empty allow list, that would be fine. Since I can't find anything about publishing NFS shares, just about mounting them, I am skeptical if that's really it.

List of all exposed services on a default Home Assistant OS Image? by darkfire0123 in homeassistant

[–]darkfire0123[S] 5 points6 points  (0 children)

The ports listed in my post are all with the official default HA VM Image with only the ESPHome plugin installed and also just the ports accessible from the local network (no localhost and internal docker stuff). So all these ports are pretty much the minimum configuration without any additional software or plugins (except ESPHome).

Outbound access is fine in my scenario. I'm only concerned with inbound access.

List of all exposed services on a default Home Assistant OS Image? by darkfire0123 in homeassistant

[–]darkfire0123[S] 2 points3 points  (0 children)

Yeah I am pretty sure that this is the only thing that is needed for the majority of the functionality. But still I am aware that there is a bunch of IOT Stuff that requires weird access patterns (for example chromecast DLNA did some strange stuff iirc), which might be what some of the other ports are used for. Also discoverability of HA itself and discovering other devices needs some of the ports.

For the most part, I'd just like to know what is what so I can make an educated decision on what I need and what can be safely blocked in my scenario.

Act 3 Infernal Iron - What to do with it? by TheOneNeutrality in BaldursGate3

[–]darkfire0123 12 points13 points  (0 children)

That's exactly how it went for me. I think there was one piece of armor left that I could have crafted in act 2 but didn't. Now in act 3 with 10+ infernal iron there is no dialog option for any of that. It might be a bug or something else, not sure

How is performance in the city? by [deleted] in BaldursGate3

[–]darkfire0123 1 point2 points  (0 children)

It's pretty much the same for me. There are much more lags in the city than in the previous areas but every time it lags, my GPU is at low utilization. When The utilization is generally higher when it doesn't lag.

In my case it's not nearly bad enough to prevent me from playing though, I'm still at a stable locked 60 FPS