10

I recently stumbled upon a problem: I wanted the stdout of a command task to be printed after execution, so I toggled the global -v flag. However, the service module is apparently verbose as shit and printed like a 100 lines and uhh.... that's a costly tradeoff O_o

Seems like a PR for a task-level verbosity keyword has been proposed, yet rejected.

I'm aware it's possible to just register the stdout of the command and print it in a following debug task, but I wonder if there's a prettier solution.

How would you go about this? Ever encountered such a feeling?

356
Anon is bewildered (lemmy.org.il)
submitted 1 year ago by maor@lemmy.org.il to c/greentext@lemmy.ml
55
submitted 1 year ago by maor@lemmy.org.il to c/linux@lemmy.ml

Saw the post here regarding CentOS's off-springs and a couple of people brought up the excellent point of: why play with fire? Let's just stick to Debian.

The only disadvantage I currently see is the outdated packages, and I'm curious whether makedeb solves them. Does anyone here use it regularly? How stable and comfortable is it? Did you write your own PKGBUILDs?

[-] maor@lemmy.org.il 11 points 1 year ago

can only get 25 hrs a week because obongocare

Uh can an American explain this? Obamacare sets a cap for weekly working hours?

[-] maor@lemmy.org.il 16 points 1 year ago* (last edited 1 year ago)

I feel the same and I've been using Python for years professionally. It's the lack of examples for me; usually functions and classes aren't meant to be used as-is but rather fed as an argument into some other function or class, and this info is seldom portrayed in the func's documentation. E.g. the documentation of BaseHTTPRequestHandler is one that I trip over every single time, I have to resort to reading the source code of SimpleHTTPRequestHandler to remember how handlers are supposed to be defined 🐺

[-] maor@lemmy.org.il 51 points 1 year ago* (last edited 1 year ago)

I think you took the joke a bit too seriously

Edit: oh wait wtf I didn't notice the post body. I agree with you then lol

[-] maor@lemmy.org.il 18 points 1 year ago

get-with-the-times-old-man.tar.xz

69

One of my fav Python writeups. I love Python and luckily I get to dictate how it's being written in my job, so I'm forcing types down the through of my colleagues. Saved a bunch of debugging time, so I can waste more time on Lemmy while still getting paid. Good shit

32
$ cd lemmy-dir
$ du -sh *
456K    lemmy-ui
15G     pictrs
4.3G    postgres

Guys this is no longer funny please I feel literally chased by the "no space left" message. Please help I don't need those pics I did not upload them

1

I've been dabbling in the past year and a half with getting into orgs, which haven't been that hard since I live in a big city, but I still had trouble staying consistent with it or feeling like I have any actual impact.

I went through orgs dealing with asylum seekers, unions for part-time workers, food security, fun local events that raise money for the aforementioned food security project, and now I landed in an org dealing with helping low-wage workers getting benefits that their employers stole from them. Most of them are refugees, some are Palestinians, which does feel somewhat impactful, but it's still a minority.

These were all great orgs with moral people, but the catch is that I can't be passive with it like in my work. There aren't really any managers that are responsible for finding me work at these orgs, because they're busy with their own work. There are no Bullshit Jobs there. I need to ask around and find work myself.

This is exhausting, especially while juggling a 9-5 and a couple of hobbies, and while I'm fully aware of the capitalistic scam of keeping us busy working instead of organizing, I'm yet still frustrated with it. Anyone feeling the same? I hope it'll get more impactful as my life gets more stable, and I have an overall optimistic feeling about this, but non the less the helplessness I feel right now is real :(

[-] maor@lemmy.org.il 13 points 1 year ago

I really liked unity 😞

[-] maor@lemmy.org.il 20 points 1 year ago

Love me some systemd timers. Much more fun than cron.

  • Sane handling of environment variables with EnvironmentFile=
  • Out of the box logging. Especially useful is the ability to journalctl -f to watch long-running processes, which I'm not sure whether possible with cron
  • The ability to trigger the service manually rather than setting the timer to * * * * *, then forgetting it's supposed to run in a minute, get distracted, come back in 15 minutes

My only complaint is it's a bit verbose. I'd rather have it as an option inside the .service file. The .timer requires some boilerplate like [Unit].description (it... uh... triggers a service. that's the description), and WantedBy=timers.target. But these are small prices to pay

[-] maor@lemmy.org.il 9 points 1 year ago

Wettest dream

[-] maor@lemmy.org.il 13 points 1 year ago* (last edited 1 year ago)

In an email statement on Monday, a spokesperson for Tinder said the company disputes the study.

"Based on Tinder’s data, the figures highlighted in this study are highly misleading and do not accurately represent our members," the spokesperson wrote. "Study participants were only given three options to describe themselves — ‘celibate’, ‘in a relationship’ or ‘widowed’ — with no option for ‘single.’ This likely resulted in a completely skewed depiction of who Tinder members are and what they seek."

Just don't write the article lol. Just put the draft in the trash and move on. I hate rating-based media

[-] maor@lemmy.org.il 21 points 1 year ago

Also seeing the federation happening live at tail -f /var/log/nginx/access.log is so satisfying. I think I like computers

239

Y'all should try it! I loved seeing it popping on other instances' /instances page, and seeing it polling other communities. Also changing the background in my theme was lit.

Lemmy's hosting documentation is a bit rough around the edges, especially the ARM situation (and its contemporary solution), so I had some extra tinkering to do. No shade at all yeah? I appreciate every bit of their work and I jotted down some points that I need to consolidate into a documentation PR soon.

Anyway, I feel like the extra @... on our usernames should be worn as a badge of honor you feel me? ;)

[-] maor@lemmy.org.il 7 points 1 year ago

Oh there's an --exec flag as well? That's great. This seems like a totally viable solution for cases where the crux of the container is a small script, with a handful of decision branches so the surface area to cover is manageable, but it also needs to come in a non-alpine distro because I assume that's the hefty part that we're like to remove. But that's just off the top of my head, I'm sure there's more. It's genuinely a good idea and it deserves a respectful README as well :(

[-] maor@lemmy.org.il 39 points 1 year ago* (last edited 1 year ago)

It ptraces the main container process and cuts off unused files. It also fires some customizable HTTP requests to trigger any dynamically loading libraries. Clever idea. If I understand correctly, the problems that arise to me are:

  1. Undoubtedly some essential files will be omitted. Unless my image consists merely of scratch and an executable, I can't imagine myself successfully covering all edge cases.
  2. What about files that aren't loaded by HTTP requests?

I'm not shitting on this program at all. These are two problems that I'm sure they could solve or just tell straight up "we can't guarantee it'll work in XYZ scenarios. Don't use it if that's your use case". Then I saw that this is backed by some kinda SaaS with a domain that ends with .ai, and that explains why THAT FUCKING README IS WRITTEN like a FUCJik/INg MIND NUMBING LINKEDIN POST that my CEO could write bro what the fuck do you mean by simplifying the value of my digital assets in a seamless secure cost efficient way????? Who fucking cares??? ?WHat does your program ACTUALLY DO??????????

10000000s of seemingly AI-generated paragraphs going on and on about how convenient their product is, 1 measly line in a diagram that describes what it actually does. Again not to shit on the programmers at all, this is a great idea and I'm glad that it's being explored I just hate this industry I can't read another pile of gibberish like that. That ruined my night. Thanks for listening

[-] maor@lemmy.org.il 26 points 1 year ago

You just haven't seen Israeli startup culture yet

view more: next ›

maor

joined 1 year ago