@person @huy_ngo and as for the others, there are no builtins like sum() but you could go with reduce() and use function from operator. Code would be something along these lines:

import operator
from functools import reduce

def multiplication(*args):
print(reduce(operator.mul, args))

@person Unless I seriously misremembering, *args should yield a tuple which is definately an iterable so why wouldn't that work?

@cirno That's so much fun πŸ™„ I translated an entire webpage once, was several hours of work, and when it was time to submit, apparantly my session had timed out and poof, everything gone.

@gruffymax I believe Heimdall should be able to, but never got it done personally

@5am Having run a cluster for a few years I can tell you that it's a good system, although I can't yet do everything I'd like from within the gui. It's a nice way to work with LXC containers though. If you plan to run a lot of similar vm's the memory pressure can be somewhat mitigated by Kernel Samepage Merging, but I think the default is that it only kicks in when at 80% used

@person Sure, go nuts. Keep the option to spit it out on stdout though, I can imagine it being consumed and used by some kind of automation tools that needs to throw in a password somewhere, autoconfigure a sql user or whatever.

@person Nice! But only numbers? Improvement suggestion would be to pull x number of random characters from string.printable πŸ˜ƒ

I have used Gnome as my desktop now for years and years, but for some reason, an arch update yesterday managed to break it for me. While I could have found the problem and fixed it, I decided to use the opportunity to remove it completely and try KDE Plasma instead. Tried it before but generally never managed to last more than a day or two, but this time I'll try to stick with it at least to the end of the year. First impressions are a lot better than previous times, so I'm hopeful.

@XxAlexXx If you were, lets say an expert in writing C, then it should not be a surprise that you find both writing and maintaining C code to be very easy. Experts tend to make fewer bugs too in general, and probably makes use of other tools to catch the not so obvious ones. So yes, I think easiness and skill have a direct relationship. Things you don't know are hard.

@trhr If they have public routable IPs it should, boxes send packet to router and router just forwards them to the next hop in the chain

@trhr You need to masquerade if using rfc1918 (192.168.x.x etc) IP's on the systems that require internet access

@XxAlexXx I'm going to go with the incredibly boring "It depends on the skill of the programmer" answer here

@dasbrennen I'm assuming you want to keep local network here, but deny it internet access in the gateway/router perhaps?

Slight update on this one, something seems to have happened during the night, woke up and it was back to being broken. The solution seems to be in sysctl somewhere, but tbh I'm out of patience for the moment. Reverting to the old two-ips-one-nic setup and wrapping it up in netfilter

Show thread

Quite pleased with myself. My system got two got two ip's on different subnets and and require different macs but just one network interface (A typical Hetzner setup for those who recognise it) . While it was working fine to configure to config both addresses on the one interface, I wanted to split ip two up into a separate virtual interface.

It took some trial and error, but finally managed to get it working. πŸ˜…

TFW your in the zone, working remotely on several opened terminals typing away happily, then go for a reboot of the remote system and suddenly your own system instantly reboots :blobcatfacepalm:

Turn on the firewall, they said. Open an ssh session to be safe, they said. It will be fine, they said.

Show older

Fosstodon is an English speaking Mastodon instance that is open to anyone who is interested in technology; particularly free & open source software.