1
submitted 8 months ago by bahmanm@lemmy.ml to c/vancouver@lemmy.ca

Do you know any chess clubs/programmes for a 5-7 year old in Vancouver/Richmond area?

I would preferably want to be able to look up the coach(es) online or attend one of their lessons before enrolling my kid.

PS: I know I may sound very picky, but I have witnessed first hand how a not great tutor in the early ages can ruin the enthusiasm for chess and change the future.

1
submitted 8 months ago by bahmanm@lemmy.ml to c/prolog@lemmy.sdf.org

I just started learning Prolog (based on "Programming in Prolog") and in doing so I've been trying to write code as much as I can.

So far, my little collection of tiny predicates have seemed OK, to my mind.

However, I'm not sure if I'm confident about the most recent piece of Prolog code I've written: https://github.com/bahmanm/prolog-etudes/blob/main/basic-list-techniques/mapping_nested.prolog

Which is why I'm asking if I could please get a code review from the experts. Any hint/feedback is highly appreciated πŸ™

1
submitted 9 months ago by bahmanm@lemmy.ml to c/makefile@lemmy.ml

bmakelib v0.7.0 has just been released.

The highlight is the fail-fast alternative to $(shell) which relieves you from checking .SHELLSTATUS every time $(shell) is used.


Makefile:

include  bmakelib/bmakelib.mk

VAR1 := $(call bmakelib.shell.error-if-nonzero,\
	       echo Fails hard❗ && false)

unreachable-target :

Shell:

$ make unreachable-target
Makefile:3: *** shell.error-if-nonzero: Command exited with non-zero value 1.  Stop.
6
Winter Update (lemmy.ml)
submitted 10 months ago by bahmanm@lemmy.ml to c/lemmy_meter@lemmy.ml

You may have noticed that things have been quite quiet these past few weeks and there hasn't been any new developments.

The reason is that I have recently become a father (again) and my life, as I had expected, have become quite busy leaving literally no free time for me and my FOSS endeavours.

I anticipate that starting from Spring, things will slowly fall back to normal and I will find myself comfortable w/ life's new routines and schedules and will resume the work on lemmy-meter.

In the meantime, in case of urgencies, the best way to reach out to me is via my e-mail (Bahman@BahmanM.com)

Stay warm and keep safe,

1
submitted 11 months ago by bahmanm@lemmy.ml to c/lemmy_meter@lemmy.ml

Latency, aka Roundtrip Time (RTT) or Time To Load (TTL), is the time it takes for the instance to respond to an HTTP request.


Latency indicators have been added to the instance health breakdown dashboard, allowing you to view the latency of your favourite instance compared to itself:

  • Past 3 hours compared to the past 7 days
  • Past 24 hours compared to the past 30 days
  • Past 24 hours compared to the past 90 days

Screenshot 1

Screenshot 2

3
submitted 11 months ago by bahmanm@lemmy.ml to c/programming@lemmy.ml

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

bmakelib is a collection of useful targets, recipes and variables you can use to augment your Makefiles.


I just released bmakelib v0.6.0 w/ the main highlight being the ability to define enums and validate variable values against them.


➀ Makefile:

define-enum : bmakelib.enum.define( DEPLOY-ENV/dev,staging,prod )
include define-enum

deploy : bmakelib.enum.error-unless-member( DEPLOY-ENV,ENV )
deploy :
	@echo πŸš€ Deploying to $(ENV)...

➀ Shell:

$ make ENV=local-laptop deploy
*** 'local-laptop' is not a member of enum 'DEPLOY-ENV'.  Stop.

$ make ENV=prod deploy
πŸš€ Deploying to prod...
1
submitted 11 months ago by bahmanm@lemmy.ml to c/makefile@lemmy.ml

bmakelib is a collection of useful targets, recipes and variables you can use to augment your Makefiles.


I just released bmakelib v0.6.0 w/ the main highlight being the ability to define enums and validate variable values against them.


➀ Makefile:

define-enum : bmakelib.enum.define( DEPLOY-ENV/dev,staging,prod )
include define-enum

deploy : bmakelib.enum.error-unless-member( DEPLOY-ENV,ENV )
deploy :
	@echo πŸš€ Deploying to $(ENV)...

➀ Shell:

$ make ENV=local-laptop deploy
*** 'local-laptop' is not a member of enum 'DEPLOY-ENV'.  Stop.

$ make ENV=prod deploy
πŸš€ Deploying to prod...
3
submitted 1 year ago by bahmanm@lemmy.ml to c/lemmy_meter@lemmy.ml

As of a couple of days ago, uptime indicators have been added to the health breakdown page allowing you to glance at the availability of the instance during the past 7, 30 and 90 days.

Screenshot 1

Screenshot 2

[-] bahmanm@lemmy.ml 18 points 1 year ago

Good question!

IMO a good way to help a FOSS maintainer is to actually use the software (esp pre-release) and report bugs instead of working around them. Besides helping the project quality, I'd find it very heart-warming to receive feedback from users; it means people out there are actually not only using the software but care enough for it to take their time, report bugs and test patches.

30
submitted 1 year ago by bahmanm@lemmy.ml to c/lemmy@lemmy.ml

lemmy-synapse is a light-weight observability and monitoring stack for Lemmy servers.


Using Prometheus and Grafana, it allows the admins to visualise and query the stats of their instance. v1.0.0 comes out of the box with 3 detailed dashboards:

  • Host stats (CPU, RAM, disk, network, ...)
  • PostgreSQL stats (connections, locks, transations, queries, ...)
  • Docker stats (container CPU, RAM, disk, network, OOM signals, ...)

It runs as Docker compose cluster alongside the Lemmy cluster and does not require any changes to it in most cases. Uninstalling lemmy-synapse is as easy as tearing down its cluster and deleting its installation directory.


Got questions/feedback? Pray drop a line:

2
submitted 1 year ago by bahmanm@lemmy.ml to c/lemmy_meter@lemmy.ml

As an instance admin, would you be interested in receiving alerts in case lemmy-meter detects your instance's health has deteriorated?

The alerts could be sent to any combination of

  • a Matrix chat (private or channel)
  • a Discord server
  • an e-mail address

For example, you could receive an alert if the landing page hasn't been loading for the past 5 minutes.


The details of alerting levels and the conditions that'd trigger them will be ironed out later. At this stage I'd mostly would like to know if there's interest in this feature in the first place before getting to the implementation.


Follow up on https://github.com/bahmanm/lemmy-meter/issues/71

8
submitted 1 year ago by bahmanm@lemmy.ml to c/programming@lemmy.ml

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

Fed up w/ my ad-hoc scripts to display the targets and variables in a makefile(s), I've decided to write a reusable piece of code to do that: https://github.com/bahmanm/bmakelib/issues/81


The first step toward that would be to understand the common commenting styles. So far I have identified 4 patterns in the wild which you can find below.

Are there any style guides/conventions around this topic? Any references to well-written makefiles I can get inspiration from?


A

VAR1 = foo   ## short one-liner comment
my-target:   ## short one-liner comment 
	…

B

# longer comment which 
# may span
# several lines
VAR1 = foo

## comments can be prefixed w/ more than # 
## lorem ipsum dolor
my-target: 
	…

C

#####
# a comment block which is marked w/ several #s on
# an otherwise blank line
#####
VAR1 = foo

D

#####
#>    # heading 1
#     This is a variation to have markdown comments
#     inside makefile comments.
#
#     ## It's a made-up style!  
#     I came up w/ this style and used it to document `bmakelib`.
#     For example: https://is.gd/QtiqyA (opens github)
#<
#####
VAR1 = foo
1
submitted 1 year ago by bahmanm@lemmy.ml to c/makefile@lemmy.ml

Fed up w/ my ad-hoc scripts to display the targets and variables in a makefile(s), I've decided to write a reusable piece of code to do that: https://github.com/bahmanm/bmakelib/issues/81


The first step toward that would be to understand the common commenting styles. So far I have identified 4 patterns in the wild which you can find below.

Are there any style guides/conventions around this topic? Any references to well-written makefiles I can get inspiration from?


A

VAR1 = foo   ## short one-liner comment
my-target:   ## short one-liner comment 
	…

B

# longer comment which 
# may span
# several lines
VAR1 = foo

## comments can be prefixed w/ more than # 
## lorem ipsum dolor
my-target: 
	…

C

#####
# a comment block which is marked w/ several #s on
# an otherwise blank line
#####
VAR1 = foo

D

#####
#>    # heading 1
#     This is a variation to have markdown comments
#     inside makefile comments.
#
#     ## It's a made-up style!  
#     I came up w/ this style and used it to document `bmakelib`.
#     For example: https://is.gd/QtiqyA (opens github)
#<
#####
VAR1 = foo
[-] bahmanm@lemmy.ml 12 points 1 year ago

Thanks! So much for my reading skills/attention span πŸ˜‚

[-] bahmanm@lemmy.ml 15 points 1 year ago

πŸ˜†Can someone make a similar one for bluetooth devices too, pretty please?

[-] bahmanm@lemmy.ml 12 points 1 year ago

I agree w/ you RE posts looking horrible πŸ‘

Though I'd say for one-liners like this, it's mostly OK. It gets really messy when folks post more complex posts and mention and tag a bunch of times.

[-] bahmanm@lemmy.ml 11 points 1 year ago

NOTE: Today is NOT Mozilla's birthday!

Fun read nevertheless πŸ™‚

[-] bahmanm@lemmy.ml 13 points 1 year ago

So I can just boost the automated post in Mastodon instead of copy-pasting everything over.

Hopefully it didn't clutter the post.

[-] bahmanm@lemmy.ml 12 points 1 year ago

Given I was recently involved in minimising the impact of Lightbend's similar move earlier this year, AFAIU it means their products will be conditionally open source. They'll be free to use for non-commercial use but you'd need to pay for anything else.

[-] bahmanm@lemmy.ml 16 points 1 year ago
[-] bahmanm@lemmy.ml 14 points 1 year ago* (last edited 1 year ago)

Hopefully they pull it off for real and it will not get bogged down by bureaucracy and red tapes.

[-] bahmanm@lemmy.ml 11 points 1 year ago

People like me, who actually learned GIMP before PS, obviously didn’t go in with the same bias and therefore have a much better grasp on it.

Speaking for myself, I can say that's true. To the point that even if I've got access to both, my default would be GIMP.

[-] bahmanm@lemmy.ml 16 points 1 year ago

Where there's money, there's war 😬

--

"Can't you see,

It all makes perfect sense,

Expressed in dollars and cents, pennies, shillings and pence.

[-] bahmanm@lemmy.ml 13 points 1 year ago
view more: β€Ή prev next β€Ί

bahmanm

joined 1 year ago
MODERATOR OF