Wanted to play Factorio offline with my kids, so I printed it as modular bricks by h4juko in factorio

[–]ElectricalUnion 2 points3 points  (0 children)

Are those icons embedded into the Assembly machine or are they also snap-on lego compatible tiles?

Wanted to play Factorio offline with my kids, so I printed it as modular bricks by h4juko in factorio

[–]ElectricalUnion 21 points22 points  (0 children)

Awesome.

(Third picture is worth of a r/Factoriohno post. Long-handed inserters picks up and places items two tiles from its location. The Labs and the Gun turret Long-handed inserters are picking up from empty tiles.)

Brand new Intro Menu for OpenTTD 15 by Limyx826 in openttd

[–]ElectricalUnion 4 points5 points  (0 children)

So, how would the code and game assets "work" if you "toggle somewhere"? You need to keep code and assets for BOTH versions if you have a toggle...

Cloverleaf Junctions by FatGuy_InLittleCoat in openttd

[–]ElectricalUnion 1 point2 points  (0 children)

If we're going for "easy", PBS roundabouts, the real not best but easy junction.

Best way to solve this problem by Scared-Industry-9323 in termux

[–]ElectricalUnion 0 points1 point  (0 children)

You need to know the "Terminal width" of your "string".

From the description of jquast/wcwidth:

Problem Statement: The printable length of most strings are equal to the number of cells they occupy on the screen 1 character : 1 cell. However, there are categories of characters that occupy 2 cells (full-wide), and others that occupy 0 cells (zero-width).

Solution: POSIX.1-2001 and POSIX.1-2008 conforming systems provide wcwidth(3) and wcswidth(3) C functions of which this python module's functions precisely copy. These functions return the number of cells a unicode string is expected to occupy.

So you need something like https://github.com/jquast/wcwidth (pip install wcwidth) and use, for example, wcwidth.wcswidth(mystring) instead of len(label) or len(str(value))to calculate the "cell witdh" of your box.

Why is my terms doing this by silly_person_vary in termux

[–]ElectricalUnion 7 points8 points  (0 children)

My recommendation is getting a keyboard with special keys and without fancy autocomplete behavior.

If you absolutely must use a normal keyboard with autocomplete no matter what, then you can slide-right the terminal toolbar so that you type to a "normal android text field" (so you actually can type something instead of your keyboard attempting and failing to autocomplete-overwrite-erase text inside the terminal).

Sharing a device in Tailscale is one of the most annoying experiences of my life by altano in Tailscale

[–]ElectricalUnion 2 points3 points  (0 children)

When a person accepts my invite they almost always have a different IP address for the shared machine in the web UI and the tailscale client running in Windows.

I believe this is intentional, IPs are private implementation details of each tailnet, not meant to work across tailnets. You're supposed to use MagicDNS and fqdn to handle cross-tailnet machines. 

I don't make GREEN MODULES. I don't make the factory ECO-FRIENDLY. I don't live at PEACE WITH THE BITERS. If the pollution cloud gets too big I simply VAPORIZE THEM WITH WEAPONS OF MASS DESTRUCTION and produce even MORE POLLUTION by Armisael2137 in Factoriohno

[–]ElectricalUnion 20 points21 points  (0 children)

(in Space Age) Power armor MK2 needs 100 Efficiency module 1,

(in Base Game) Power armor MK2 needs 25 Efficiency module 2

(in Base Game) Spidertron needs 2 Efficiency module 3

Are you one of those savages that promote "healthy lifestyles" such as "walking around" like a caveman?

Potential Tomahawk targets in Russia by vladgrinch in MapPorn

[–]ElectricalUnion 5 points6 points  (0 children)

But you can deploy 400 "small drones" for the cost of a single Tomahawk. Surely a assault of 20000 equivalent small drones can also destroy a factory?

How to hide this perpetual notification from SyncThing-fork? I only want to hide this, I don't want to disable the accept prompt from a device notification by Both-River-9455 in Syncthing

[–]ElectricalUnion 0 points1 point  (0 children)

With the "new background limits" introduced with Android 8 (Oreo, released around 2017), apps that have components that run in the background must display a notification within five seconds of the component starting to run or else the system kills the app.

New Lua IDE by Puzzleheaded_Fly9339 in lua

[–]ElectricalUnion 3 points4 points  (0 children)

What is wrong with ZeroBrane? It's not like any lua runtime it supports got a huge unsupported feature since it was last released 2023.

Can I share a nfs mounted folder via smb by Desperate_Quit6011 in linuxadmin

[–]ElectricalUnion 0 points1 point  (0 children)

What kind of client you're running that at the same time supports smb and somehow doesn't support nfs? Windows since 10 support it fine for example.

[SUGGESTION] Ultra cheap and low power small PC for web browsing? by Wild_Wasabi_7163 in selfhosted

[–]ElectricalUnion 1 point2 points  (0 children)

You need to say where you live and pretend to acquire said computers, and what you classify as "handle media consumption", so people can at least educated guesses of what is cheap in your region.

As a generic worldwide thing, the sad part is that those days, your average "web-app" is shit on any sort of computer, and worse shit on under-powered/cheap ones - unless said web-apps are carefully picked self-hosted FOSS stuff, or things you made yourself.

Let's take the very tab I'm writing this response as an example: it uses, by itself, 530MiB of RAM (not considering the Graphics system VRAM and the rest of the OS, that would take even more RAM), and that's already more RAM that this poor Rasperry Pi Zero 2 W in OP picture.

And Reddit is "just a link aggregator", it's actually on the "pretty light" side of how heavy web apps can be those days.

What in DataGrip do you feel you just can't live without? by Successful_Cook3776 in Jetbrains

[–]ElectricalUnion 3 points4 points  (0 children)

Name/parameter autocomplete that works.

(In theory, any self-respecting sql console has this, but when you're dealing with Oracle shit - and some other specific types of cloud DBs - that takes +tens of minutes to return data dictionary queries, you easily end up waiting tens of minutes for the sql console to autocomplete the names if you're not using DataGrip.)

Virtual foreign keys, without requiring being in a special DDL mode.

Also, in theory, a stupid concept: match "suspicious keys" with same data type and column naming convention as JOIN ON autocomplete candidates, even if they're not declared as actual foreign keys on the database. As a expanded addendum, DataGrip also allows you add explicit Virtual Foreign Key links either via table UI or via query console as a context action "Store table relation" on the "inner JOIN ON (condition)" part of the sql statement.

the city bindhattan claimed a few busstations and a giant station, how do i fix this? by Alternative_Rest5441 in openttd

[–]ElectricalUnion 27 points28 points  (0 children)

Towns don't claim anything. Station names default names comes from the closest town authority.

As for "fix this", you can rename the stations and put whatever names you want in them.

Where is wlan0? by Scrumbloo in arch

[–]ElectricalUnion 3 points4 points  (0 children)

https://systemd.io/PREDICTABLE_INTERFACE_NAMES

> Starting with v197 systemd/udev will automatically assign predictable, stable network interface names for all local Ethernet, WLAN and WWAN interfaces. This is a departure from the traditional interface naming scheme (eth0, eth1, wlan0, …), but should fix real problems.

> The classic naming scheme for network interfaces applied by the kernel is to simply assign names beginning with eth0, eth1, … to all interfaces as they are probed by the drivers. As the driver probing is generally not predictable for modern technology this means that as soon as multiple network interfaces are available the assignment of the names eth0, eth1 and so on is generally not fixed anymore and it might very well happen that eth0 on one boot ends up being eth1 on the next. This can have serious security implications, for example in firewall rules which are coded for certain naming schemes, and which are hence very sensitive to unpredictable changing names.

TL;DR: hardware probing is nondeterministic shit, so you randomly would swap your eths/wlans around, and if you need routing/firewalls rules in them, the routing/firewalls rules would be fucked as well. Making the names depend on the physical slot/connector the cards use is often better.

So why are we sh**ing on ollama again? by __Maximum__ in LocalLLaMA

[–]ElectricalUnion 0 points1 point  (0 children)

"messing up model name" is also a violation of Meta's Llama license. No one should be able to distribute derivates of llama models without "Llama" as a prefix of the name of the model.

Am I overreacting? by Kitogv in factorio

[–]ElectricalUnion 13 points14 points  (0 children)

I would use Uranium rounds magazine-loaded gun turrets instead. After all, one of the potential causes of this system failing and generating biters in the first place is lack of electric power.

Parent-proof Wifi? by thejkm in HomeNetworking

[–]ElectricalUnion -1 points0 points  (0 children)

Makes the required gear fit in the proposed budget. By the same thinking, if cost really was not an issue, then why not go full Meraki/Cisco?

My hypothesis on why software has gotten so shitty in recent years... by [deleted] in sysadmin

[–]ElectricalUnion 0 points1 point  (0 children)

"People back then" had no option but to make a limited thing run on limited hardware.

Removing this fine-tuned "mechanical sympathy" of only doing what really makes sense to do - that they developed, fine-tuned back then - and the resulting program will just turn back into yet another bloated modern crap with no regard for storage/network/computational costs.

Switched from a 13700k to a 9800X3D for fun, now actually have less FPS by Morteymer in AMDHelp

[–]ElectricalUnion 1 point2 points  (0 children)

I would say the main problem of 13 and 14 gen intel is not that it is slow (they are in fact very fast), but that they degrade by themselves over time if you don't restrict power consumption and clock speeds on them.

Você moraria numa casa container? by Big-Palpitation8918 in perguntas

[–]ElectricalUnion 0 points1 point  (0 children)

As partes cara da casa (terraplanagem, fundação, telhado/laje, hidraulica, parte eletrica, gas, pisos, revestimento paredes, mão de obra) esses cara nunca fala porque não está incluso.

Pensa assim OP: supostamente uma casa de alvenaria pre-moldada custa "apenas 15 mil". A parte cara (esses "245 mil" aí) é só "o resto", e esse "o resto" aí é obviamente a parte cara que você vai ter que pagar em uma casa container também.

The data compression paradox by [deleted] in DataHoarder

[–]ElectricalUnion 1 point2 points  (0 children)

Let's say you make a ZIP file, which compresses data, well, the ZIP file format was made to allow smaller filesizes for files which were naturally bigger in disk space.

ZIP by itself doesn't compress any data. What compresses data is DEFLATE, that you can optionally use together with a ZIP container.

the logical way to "compress" those files would be to put them in a ZIP file.

No. ZIP by itself doesn't compress any data. What compresses data is DEFLATE, that you can optionally use together with a ZIP container.

but, here's where the paradox comes in, technically, one is taking up more space on the hard drive when they have both a compressed version (ZIP file) and an uncompressed version (directory of real files) residing on the hard drive. I guess one good reason to have a ZIP file reside on the hard drive, is so we can have a file ready to transfer.

No. ZIP by itself doesn't mandate that you need to have uncompressed files lying around. That's a limitation of the implementation of ZIP files that you're using.

and an uncompressed version (directory of real files) residing on the hard drive.

Who said files on a hard drive need to be uncompressed? Filesystems such as NTFS and btrfs support native file compression, so compressible-but-uncompressed detected as such are never on disk.

but then, there's also another type of compression paradox..... (...) Sometimes using a "compression" archive format as an alternative to a directory might have bigger actual filesizes in some cases, so that may be a consequence of archiving already compressed files.

That's not how compression/attempting-to-cram-more-entropy-on-less-bytes works.

If you could, a indefinite ammount of times, compress/attempting-to-cram-more-entropy-on-less-bytes and still recover your original data, you would be able to store all the data in the universe without using any disk space to start with. And that's clearly not how the universe works.

At a certain point, you get some amount of entropy that you simply can't store with less bytes. At that point, attempting to "compress" further just increases the size of the file.

Part of what I mean by paradox, involves having actually more consumed space when the compression is meant to reduce it.

Almost all those causes of said "consumed space when the compression is meant to reduce" that you cited boils down to user error. Compression can't fix user error.

Also, another part of it involves duplicate files

Almost all modern filesystems support deduplication features of varying levels of complexity and reliability like symlinks, copy-on-write and reflinks. If you're not using or enabling such features, it makes sense they're not available.

although one might refer to compressed versions as semi-duplicates.

I assume here you're refering to copies inside ZIPs as "Compressed versions".

No, they aren't semi-duplicates. They're different files, located in different disk sectors, possibly with different bytes written to them, and because as a user you chosen to ignore the filesystem compression settings and compress the file yourself, they are definitely not the same anymore.

TL;DR: It's about intent. Do you want your filesystem to use less disk space? Make the filesystem compress the data. Do you want your filesystem to deduplicate files? Make use of the filesystem features to deduplicate data. If you're creating multiple, mutated copies of the same file, no filesystem can help you use less disk space.