bahmanm

joined 2 years ago
 

cross-posted from: https://lemmy.ml/post/22575070

bmakelib (which is a minimalist standard library for GNU Make) v0.8.0 was released last week.

The highlight of the release is the ability to use maps/dictionaries in your makefiles!

Here's the example from the release page:

$(call bmakelib.dict.define,THIS_BUILD)
$(call bmakelib.dict.put,THIS_BUILD,arch,x86_64)
$(call bmakelib.dict.put,THIS_BUILD,dir,/tmp/my-app/build)

some-target :
	@echo BUILD.arch = $(call bmakelib.dict.get,BUILD,arch)  # x86_64
	@echo BUILD.arch = $(call bmakelib.dict.get,BUILD,dir)   # /tmp/my-app/build
 

cross-posted from: https://lemmy.ml/post/22574276

If there was one reason I liked coding in Java, it'd be AssertJ and its brilliant extensibility.

The image is an example of it from bjForth

The ability to create custom assertions makes the test code concise and read naturally.

 

I wanted to share a personal experience that might resonate with some of you. I've been diagnosed with ADD and major depressive syndrome, and for a long time, I struggled to enjoy over-the-board chess.

The fast pace and constant need for focus left me feeling drained and frustrated โ€“ blaming myself for not being able to concentrate.

Then, I discovered correspondence chess! This format allows for a much slower pace, giving me the time I need to analyze positions and make thoughtful moves. It's been a game-changer. No more pressure, just the joy of strategic thinking without the stress.

Do you ever feel like traditional chess isn't quite the right fit?

If you struggle with focus or find the fast pace overwhelming, correspondence chess could be for you! Here are a couple of options to get you started:

  • ICCF.com (International Correspondence Chess Federation): This is the official platform for serious correspondence chess with tournaments and rankings.

  • Daily Chess on chess.com: This is a more casual option where you can play correspondence games at your own pace.

Let me know in the comments if you've tried correspondence chess, or if you're interested in giving it a go!

 

Just wanted to share some (exciting) news about my Common Lisp project, euler-cl. I finally got the time to sit down and integrate it with Codecov! This means a couple of cool things:

  • ๐Ÿ“ˆ Test Coverage Tracking: I can now see how well my code is tested over time, giving valuable insights into code quality.
  • ๐Ÿ… Codecov Badge: euler-cl now sports a snazzy Codecov badge to show off!
  • ๐Ÿ“ฆ Reusable Setup: The code and setup process should be simple enough to be used as a reference to integrate Codecov (and potentially other services) into your own Common Lisp projects!

If you're interested this commit is almost all you need: https://github.com/bahmanm/euler-cl/commit/855b014

Let me know in the comments if you have any questions or want to chat about integrating Codecov into your own projects!

 

Cross-posted from https://lemmy.ml/post/5719058


I've been working on a simple opt-in solution, primarily for Lemmy end users like me (but also helpful for admins), to easily check the status/health of their favourite instance.

๐ŸŒŽ lemmy-meter.info

You can find the details of the implementation in lemmy-meter github repo.


โ“ @admins: would you be interested in adding your instance to lemmy-meter?

You don't need to do anything except confirming - I'll handle the rest. It should only take a few minutes for your instance to show up in lemmy-meter.

Out of the box it will send only 4 HTTP GET requests per minute to your instance. However that is totally configurable if it sounds too much or too little.


 

Follow up on a previous post: [DISCUSS] Recent momentary outages


I've been working on a simple opt-in solution, primarily for Lemmy end users like me (but also helpful for admins), to easily check the status/health of their favourite instance.

๐ŸŒŽ lemmy-meter.info

You can find the details of the implementation in lemmy-meter github repo.


โ“ @admins: would you be interested in adding your instance to lemmy-meter?

You don't need to do anything except confirming - I'll handle the rest. It should only take a few minutes for your instance to show up in lemmy-meter.

Out of the box it will send only 4 HTTP GET requests per minute to your instance. However that is totally configurable if it sounds too much or too little.


PS: I wasn't sure how to reach out to the admins short of messaging them individually.

 

cross-posted from: https://lemmy.ml/post/4593804

Originally discussed on Matrix.


TLDR; Ansible handlers are added to the global namespace.


Suppose you've got a role which defines a handler MyHandler:

- name: MyHandler
  ...
  listen: "some-topic"

Each time you import/include your role, a new reference to MyHandler is added to the global namespace.

As a result, when you notify your handler via the topics it listens to (ie notify: "some-topic"), all the references to MyHandler will be executed by Ansible.

If that's not what you want, you should notify the handler by name (ie notify: MyHandler) in which case Ansible will stop searching for other references as soon as it finds the first occurrence of MyHandler. That means MyHandler will be executed only once.

 

Lemmy, in particular lemmy.ml, is so good that I've got completely used to checking it out almost every hour to enjoy the content. Kudos to all the mods and developers โค๏ธ


Recently, in the past few weeks, I couldn't help but notice that momentary outages of lemmy.ml, ranging from a couple of mins to longer than 30mins, have become more frequent.

Is my observation correct? Or I'm just addicted to Lemmy? ๐Ÿ˜‚

If it is correct, have we got any idea what are the possible causes of the outages? In particular, I'd like to know if there's anything that I, as a member of this safe & welcoming community, can do to potentially help ยน.


On a related note, if the outages are of such a nature that may be predicted but not prevented (such as routine maintenance restart, load-testing or new feature deploy), do you folks think it makes sense to have a post here in "meta" at least a few mins prior to the action?

ยน I've got about a quarter of a century experience dealing w/ code and systems.

1
submitted 2 years ago* (last edited 2 years ago) by [email protected] to c/[email protected]
 

I come from a generally dry country and the concepts of drought & conserving the water are not new to me.


One of the things that have stunned/upset me ever since I set foot in Canada (both east & west coasts) is watching people washing their cars using a hose and tap water:

For starters, tap water is not cheap. Moreover, one definitely doesn't need sanitised water to wash their car.

But more importantly, washing cars using a hose at home is very inefficient compared to taking it to an automatic car wash: something which is programmed to make every second of operation and every litre of water count (that's how they make a margin after all.)


TBH I'm not sure about the real impact this has on our water reserves & if there have been any studies on similar water-inefficiencies but I have yet to watch/read/hear a advertisement, newspaper column or radio talk on this topic: these dry seasons take extra measures as, IMHO, they're going to stay w/ us for the foreseeable future.


Am I being too sensitive about water shortage b/c of my background? What are your thoughts?

Image from Wikipedia

 

cross-posted from: https://lemmy.ml/post/3731915

Over the past 2 decades I've been trying various medications to help me w/ my long running major depression & crippling ADHD. And none have seemed to work.

Recently, the doctor I'm working w/ nowadays suggested that she's practically running out of options to offer me & that I should take a pharmacogenetics test to help her figure out what should she prescribe.

I took the (expensive) test and the results were eye-opening! The results came out a couple of weeks later w/ a detailed list of some few hundreds medications of various sorts (from pain killers to blood pressure control) along w/ their efficacy for my case. The physician's version also included a list of suggestions and alternatives for each medicine.

In my particular case, it essentially indicated that any medication that I had tried before was supposed to be either useless or to have limited impact on my body. That part is true.

Please note that I've only started a new set of prescriptions since a couple of weeks ago and as such can't really vouch for the accuracy of the suggestions.

I struggled a lot w/ myself to post something this personal. But I thought maybe there are people out there who've got no idea such tests exist and it might turn out to be helpful to some.

 

What are you favourite/useful rsync tricks these days?

Mine is rsync -r --chown=AUSER:AGROUP SRC DST to copy the files and change the ownership on the fly.

view more: next โ€บ