10
submitted 10 months ago by [email protected] to c/[email protected]

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?

[-] [email protected] 7 points 10 months ago

He's literally me that's why I posted. Commenters won't get it

347
Anon is bewildered (lemmy.org.il)
submitted 10 months ago by [email protected] to c/[email protected]
53
submitted 10 months ago by [email protected] to c/[email protected]

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?

[-] [email protected] 10 points 10 months ago

can only get 25 hrs a week because obongocare

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

[-] [email protected] 15 points 10 months ago* (last edited 10 months 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 🐺

[-] [email protected] 50 points 10 months ago* (last edited 10 months 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

[-] [email protected] 17 points 10 months ago

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

64
submitted 11 months ago by [email protected] to c/[email protected]

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

88
submitted 11 months ago by [email protected] to c/[email protected]

My pictrs volume got quite huge and I wanna delete pics cached from other instances. The thing is I'm not sure which pics are from my instance and which aren't, because they all have cryptic filenames. Anyone knows of a way to differentiate?

31
submitted 11 months ago by [email protected] to c/[email protected]
$ 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

[-] [email protected] 12 points 11 months ago

I really liked unity 😞

[-] [email protected] 20 points 11 months 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

16
submitted 11 months ago* (last edited 11 months ago) by [email protected] to c/[email protected]

This paragraph was fascinating to me:

One of Hamoud’s recent articles, titled “The fascist state is materializing,” mentioned the blacked-out front pages of Israel’s largest newspapers that were published to protest the passing of the first law of the judicial overhaul (the pages were in fact paid for by the hi-tech workers in the protest movement). According to Hamoud, “this mourning is nothing but an expression of the desire of the white colonialists from the liberal Zionist society to continue killing Palestinians and robbing them of their land, as they have done until now, under the immunity of the Supreme Court and in accordance with the standards of the International Criminal Court.”

This is a point that I haven't heard enough, at least in here in Israel, and sounds kinda conspiratorial, but it makes perfect sense: the existence of Israel's Supreme Court is used to create the impression of a functioning democracy, or at the very least an attempt to create one. All things considered, they aren't actively fighting the occupation itself, but rather occasionally prohibit some of its crimes, mostly related to destroying homes of Palestinians who committed reprisals.

The insane point is that despite the Supreme Court's complacency, its impact has been overly stressed by the right, and it's considered a blocker for occupying the rest of the west bank. They don't seem to consider the important functionality of it: helping us pretend we're not recklessly abusing Palestinians. The polite right (the one currently protesting to keep the Jew-only democracy) seems to understand it, I guess that's one of the reasons they're fighting. It's just a bit puzzling that the impolite right doesn't. Seems like self-destruction

This point is explored in the movie "The Law in These Parts" which I highly recommend.

Thoughts? ;)

[-] [email protected] 7 points 11 months ago

Wettest dream

[-] [email protected] 16 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

[-] [email protected] 19 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
submitted 1 year ago by [email protected] to c/[email protected]

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? ;)

[-] [email protected] 37 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

[-] [email protected] 26 points 1 year ago

You just haven't seen Israeli startup culture yet

view more: next ›

maor

joined 1 year ago