10
submitted 9 months ago by maor@lemmy.org.il to c/devops@programming.dev

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?

357
Anon is bewildered (lemmy.org.il)
submitted 10 months ago by maor@lemmy.org.il to c/greentext@lemmy.ml
55
submitted 10 months 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 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?

[-] maor@lemmy.org.il 16 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 🐺

[-] maor@lemmy.org.il 51 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

[-] maor@lemmy.org.il 17 points 10 months ago

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

68
submitted 10 months ago by maor@lemmy.org.il to c/python@programming.dev

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

91
submitted 10 months ago by maor@lemmy.org.il to c/lemmy_admin@lemmy.ml

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 10 months ago by maor@lemmy.org.il to c/selfhosted@lemmy.world
$ 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

[-] maor@lemmy.org.il 8 points 10 months ago

To be frank I got lucky here. Palestine-Israel is a tiny country and the based leftist orgs are concentrated in the three biggest cities: Jerusalem, Haifa, and Tel Aviv. Most people live around one of these three cities, with Tel Aviv notoriously being the most left leaning, and I live in its metropolitan area for work so life is good.

Now with this info in mind, I found these organizations through social media. The food security project is called Culture of Solidarity and they've made an ingenious decision of putting a strong emphasis on their Instagram presence. The women who founded this org (who I personally admire) have immense people skills and they leveraged the Corona crisis to create this network of food security.

The org I most recently got into is one that my psychologist recommended on, though :)

26
submitted 10 months ago by maor@lemmy.org.il to c/comradeship@lemmygrad.ml

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 11 months ago

I really liked unity 😞

[-] maor@lemmy.org.il 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

[-] maor@lemmy.org.il 9 points 11 months ago

Wettest dream

[-] maor@lemmy.org.il 16 points 11 months ago* (last edited 11 months 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 11 months ago

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

242
submitted 11 months ago by maor@lemmy.org.il to c/selfhosted@lemmy.world

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 37 points 11 months ago* (last edited 11 months 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 11 months ago

You just haven't seen Israeli startup culture yet

view more: next ›

maor

joined 1 year ago