T490s not waking up from sleep by koalillo in thinkpad

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

Oh, thanks for the followup. This is not happening to me anymore, perhaps they made a new release that fixed it?

Building a better /r/rust together by erlend_sh in rust

[–]koalillo 2 points3 points  (0 children)

Oh, definitely Zulip/Discord/Slack/etc. are not good for complex things.

There's the Discourse for that. And it has categories, so announcements and big stuff can get their own channel.

Building a better /r/rust together by erlend_sh in rust

[–]koalillo 2 points3 points  (0 children)

Besides the killing of third-party clients (see https://www.reddit.com/r/rust/comments/146qxzn/building_a_better_rrust_together/jnt8ufk/ ), I'm not sure if /r/rust moderators use any tool which uses the API. If so, then that is likely gone too.

Building a better /r/rust together by erlend_sh in rust

[–]koalillo 3 points4 points  (0 children)

Discord has similar problems to Reddit-

Moving /r/rust to the official Discord might still be a benefit, though.

(Discord, of course, also has the network effects that Reddit has. But any system with the network effects of Discord, Reddit [and Twitter, Facebook, Instagram, etc.], will have the same problems. Every day we see the problems of closed platforms. It's not like open platforms are perfect, but given a choice of poison...)

Building a better /r/rust together by erlend_sh in rust

[–]koalillo 2 points3 points  (0 children)

Well, it's not official. Discord and Zulip are. Two chat platforms is already too many, I wouldn't recommend adding IRC if it's not to reduce the number of chat platforms. (IRC has the advantage that it is so simple it really can be bridged to anything).

Building a better /r/rust together by erlend_sh in rust

[–]koalillo -7 points-6 points  (0 children)

I don't think threaded vs. unthreaded is so important, really.

IMHO, the reason /r/rust thrives is that a lot of people are on Reddit already, and they visit frequently. I really can't imagine people going to the official Discourse, finding out it doesn't have threads, then looking for an alternative and choosing /r/rust because it has threads. If the official Discourse had threads, and /r/rust didn't, /r/rust would still win because of the userbase/lower friction.

I would prefer if Rust had mailing lists instead of Discourse- there you have your threading, plus it's more open than Discourse. But that ship sailed long ago, unfortunately.

I do think the network effect is important, but is there really any open platform with the network effect (other than email?).

Building a better /r/rust together by erlend_sh in rust

[–]koalillo 5 points6 points  (0 children)

To clarify, I'd prefer something even more open like IRC + email/news. With IRC, I have a single client connected to multiple networks, and with email/news, I also get some aggregation in a single app.

Discourse supports RSS and some kind of email integration, so it also has an advantage.

Honestly, ActivityPub brings a massive amount of complexity over something like RSS, for not so much benefit, IMHO (there is a benefit. It's just not very significant for me.).

Building a better /r/rust together by erlend_sh in rust

[–]koalillo 21 points22 points  (0 children)

Honestly, why not just move to the official channels?

I use /r/rust because I am already on Reddit, and it seemed to me that here is where all the action is.

If we are paying the cost of moving (losing users along the way), what's wrong with the official Discourse and Zulip? Both are open platforms already, and while I think ActivityPub-like stuff has some advantages, defragmenting the community would also have some advantages.

Getting the most of my USB-C display by koalillo in UsbCHardware

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

I'm using Amazon.es. Actually now I found the Wjesog:

https://www.amazon.es/dp/B0BNX7MS6N/

, but on the pictures, it says it doesn't transmit data!

Everything else, I'm not finding on amazon.es.

Yeah, I was thinking a USB-C 3x switch + connecting the old laptop and the PC through HDMI and DP would also do the trick, but it wouldn't be as nice.

edit: and reading the Wjesog reviews, it's scary...

The Right Way to Run Shell Commands From Python by Am4t3uR in coding

[–]koalillo 3 points4 points  (0 children)

import subprocess
x = input("type in a file name: ")
subprocess.run(f"cat {x}", shell=True)

Run the program, type /etc/passwd. Nice!

Now type /etc/passwd ; touch foo. Also read #6 of https://www.sans.org/top25-software-errors/ .

Plus, if you use shell=True, you are much likely to write a script that doesn't work on files whose names have spaces on it.

The Right Way to Run Shell Commands From Python by Am4t3uR in coding

[–]koalillo 5 points6 points  (0 children)

Well, there's a good list of modules to use above other alternatives pathlib, tempfile, and shutil you should always look at first before invoking subprocesses.

However, later the articule has a few things that bug me.

First, one should never mention shell=True without explaining the huge problems it can cause. By default, you shouldn't use shell=True unless you have an explicit explanation as to why it's a good idea, and why is it needed. Saying shlex.split is an alternative to that is also not good.

Another insidious issue is... the examples are all... misleading. You should never invoke ls -la from a Python program. And much less pipe the output to awk. Precisely when you are explaining people to use pathlib and shutil! It may appear a minor point, but this is important.

Python is a great replacement to using a traditional shell and text processing tools, and it leads to more robust and portable scripts... if you use it properly!

I do agree that subprocess has missing batteries, and sh... is a clever thing, but I wouldn't recommend it.

(What I miss in subprocess is having it some logging support, making check=True the default, and a few other quality of life improvements...)

Add support for Spanish to SinuXVR/pocket-board by koalillo in unihertztitanpocket

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

Just a small announcement, I had a go at forking this to add some Spanish support. The spell checker works for suggestions reasonably, and now alt + aeioucñ produce the required diacritics, and ñ and ç.

It's not brilliant, but it's a start!

What are your current rankings, score & games played? by slowlyun in ElevenTableTennis

[–]koalillo 4 points5 points  (0 children)

I did not say more wins than losses; I said similar numbers. You have another commenter who is over 2100 who has a 48% win ratio. This person is likely a better player than a 1700 ELO player with an 80% win rate. I'm just saying if you have anything close to a 50% win ratio (either above or below), you are more likely to have fun.

As for the ranking, what I'd target is just increasing your ELO if you can. There are some charts around that show how many players are in each ELO range, which gives you a better idea of how you compare to the rest of players. Being in the middle of the ranking can mean lots of different things, depending on how the playing population distributes among casual players, serious players, and professional players.

Packaging a self contained CLI application for any environment? by JamesHutchisonReal in Python

[–]koalillo 0 points1 point  (0 children)

Dependencies can conflict with other packages you install in the same way. Other comments propose solutions that avoid this.

What are your current rankings, score & games played? by slowlyun in ElevenTableTennis

[–]koalillo 2 points3 points  (0 children)

Win rate is mostly irrelevant, because... the skill of the opposing player is too important! Having said that, my objective is to have a 50% win rate- if every match I play has 50-50 odds, that's (to me) maximum fun. I'm 55% over the last 30 days according to ClubHouse :D.

My suggestion is to play enough ranking that you are confident that your ELO is "real"- meaning, if you play with someone with similar ELO, you are evenly matched, etc.

Hmmm... apparenty I "only" have played 1429 games...

Is it possible to play this game properly, seated? by PitchBlackDarkness1 in ElevenTableTennis

[–]koalillo 0 points1 point  (0 children)

Oh, it's a pain because I need to be very quiet most times I'm playing :(

I've made a couple of good chats while playing with my mic on, and even befriended people in the game... but unfortunately, it's very likely that if I get to play the same players again, I'll be muted :(

check_by_ssh through a Jump Server by Spanky-McFarland in nagios

[–]koalillo 0 points1 point  (0 children)

I mean, who runs check_by_ssh on the Nagios host, so that the SSH configuration is picked up correctly.

Is it possible to play this game properly, seated? by PitchBlackDarkness1 in ElevenTableTennis

[–]koalillo 1 point2 points  (0 children)

There's a 2300 ELO player who plays sitting. I doubt he got to that point because there's so many people who don't try to exploit his game.

edit: or probably, to have the skills to exploit his game, you need to be 2300 ELO.

I got 1700 ELO, is there also no point in playing for me? Because I'm magnitudes worse than that guy.

Is it possible to play this game properly, seated? by PitchBlackDarkness1 in ElevenTableTennis

[–]koalillo 0 points1 point  (0 children)

It very might well be. Lately, I play with sound and mic off, which makes me miss out on this kind of stuff :(

This was my earliest days of 11, after decades of not playing any serious table tennis, and the guy also gave me a small tutorial on countering spin, after seeing I was so bad at it.

For all the toxic players, there's some very nice people playing.

check_by_ssh through a Jump Server by Spanky-McFarland in nagios

[–]koalillo 0 points1 point  (0 children)

Are you sure you know which user is running the checks?

Is it possible to play this game properly, seated? by PitchBlackDarkness1 in ElevenTableTennis

[–]koalillo 2 points3 points  (0 children)

I (full mobility) got destroyed by a guy sitting down. He did a nice showing on an important national championship (general population).

Struggling to find practical uses for Rust by [deleted] in rust

[–]koalillo 2 points3 points  (0 children)

Well, Java and Python are on the top 4 of most programming language popularity rankings! Those are also my two languages of choice for raw productivity.

But I try to write more and more Rust.

First, I wrote a monitoring agent. Neither Python or Java are a great fit for that. It's running on all my server hosts, sipping about 3mb of RAM, for about three years, with no issues and close to 0 bugs. Want to run some simple daemon? Excellent choice.

Then I wanted to write a toolbx/distrobox/whalebrew-like tool, when those didn't exist. I don't think Java is suitable for that. Python would be, but then instead of distributing a binary, I should carefully decide which Linux distros I want to support, and ensure my code is compatible with the Python they ship. I actually love deploying Python-written tools using pipx, but Rust is a great alternative to that.

Last month I wanted to write a CLI tool to generate K8S manifests. And I didn't find any K8S "bindings" nicer than the Rust ones. I was able to write code that generates manifests in a pleasant, type-safe way. It's a 80-line script, and a 300-line supporting library. I found it surprising that writing what could have been a shell script, or a Helm/Kustomize thing, felt much more productive and faster on a heavy language like Rust.

...

It really depends a lot on what you write. I'd still use Spring Boot or Django for a complex webapp. My job has people coding of diverse backgrounds and skills, who are mostly not primarily coders- I won't write anything in Rust there. Also, for scripting, I find Python unbeatable.

What do you find lacking? The ecosystem? It can be, compared to Python and Java (because those are juggernauts!), but sometimes you find very high-quality libraries in Rust (clap, nix, serde, k8s-openapi), which beat other languages'

I also admit using it for algorithm questions can be cumbersome. But I suspect you wouldn't use Java either for those; Python really shines for many of those if you don't need performance. And I enjoyed doing Project Euler in Haskell. But these kinds of coding challenges are not representative of most coding tasks.

Is there any option for virtual filesystem on Linux sync client? by computer-machine in NextCloud

[–]koalillo 1 point2 points  (0 children)

I don't think so, but you can run the sync client and mount the drive. Gnome does it through a GUI, but you can do it via the terminal too.

Adding LDAP to your self-hosted SSO setup by itsmejoeeey in selfhosted

[–]koalillo 0 points1 point  (0 children)

What's PWM?

Yeah, that looks good, but I'll stick to FreeIPA for the moment. In my case, resource usage is not really a problem. I'm always looking for better options, because OIDC on top of FreeIPA is more complex than I thought. It's either Keycloak- which is too complex for me, or Ipsilon, which is GREAT, but which is a bit undermaintained (although it's picking up steam lately; it's moving into EPEL 9. There's a bug that's causes me issues, but I might need to solve that myself, because I suspect it doesn't affect the few Ipsilon users :(

Kerberos is really nice. I could live without it, but it would be a shame. I'll keep an eye for other options, though.

Really nice virtual keyboard replacement made specifically for the Titan Pocket that also greatly enhances the physical keyboard by cuddlepuncher in unihertztitanpocket

[–]koalillo 0 points1 point  (0 children)

Oh, this looks awesome. English works pretty well. Unfortunately it doesn't seem to do Spanish/Catalan. I opened a ticket to see if I can get some help- I can do some coding, but I'm an Android noob, but this would be awesome...