bahmanm

joined 2 years ago
MODERATOR OF
[–] [email protected] 1 points 2 years ago

Yes, written communication is so tricky, esp RE sensitive topics like this. As a non-native speaker, I kind of knew I was going to mess it up, but I guess I just couldn't help my OCD πŸ˜‚

[–] [email protected] 1 points 2 years ago

donate to you instance.

That's a good sign of support and I've already done that 😎 Honestly the quality of the software and the friendliness of the community made it a no-brainer for me only a few days after logging in for the first time.

That said, I think there's more I can do than my humble donation - I've got plenty of, hopefully, relevant experience under my belt and am eager to put it to good use for Lemmy.

Servers are expensive and improving reliability will increase hosting cost.

Definitely πŸ’―

What I was trying to get at in my post was not rather improve the hardware or ask lemmy.ml folks to sweat more for free. By the gods, no! Rather I was suggesting that maybe w/ a couple of, hopefully, easy and not time consuming moves we could up our level at lemmy.ml. Though I realised what I was talking about, wasn't among the main concerns of the community. Which is totally reasonable.

[–] [email protected] 1 points 2 years ago

I had no idea about that πŸ€¦β€β™‚οΈ Bookmarked πŸ”–

[–] [email protected] 3 points 2 years ago

I'd find it a useful thing to have too πŸ‘ Please see https://lemmy.ml/post/4196612 for a similar post (by me.)

Not a show-stopper in any way though πŸ’ͺ

[–] [email protected] 1 points 2 years ago

I've been using sdkman for about a decade now and am totally pleased w/ it. It does a very good job of managing JDK versions for you and much more, eg SBT, Gradle, Scala, Groovy, Leiningen, SpringBoot, ...

Now, technically you could use sdkman in your CI/CD pipeline too but I'd find it a strong smell. I've always used dedicated images pre-configured for a particular JDK version in the pipeline.

[–] [email protected] 2 points 2 years ago

It is: https://opensource.org/license/mit/

It's most probably a bug in the addon. Best to report it on the repo's issue tracker: https://github.com/galdor/github-license-observer/issues

[–] [email protected] 1 points 2 years ago

Oops! My mistake 🀦 Updated the post.

[–] [email protected] 8 points 2 years ago (2 children)

I work primarily on the JVM & the projects (personal/corporate) I work w/ can be summarised as below:

  1. Building & running the repo is done on the host using an SCM (software configuration management tool) such as Gradle or SBT.
  2. The external dependencies of the repo, such as Redis, are managed via adocker-compose.yml.
  3. The README contains a short series of commands to do different tasks RE (1)

However one approach that I've always been fond of (& apply/advocate wherever I can) is to replace (3) w/ a Makefile containing a bunch of standard targets shared across all repos, eg test, integration-test. Then Makefiles are thinly customised to fit the repo's particular repo.

This has proven to be very helpful wrt congnitive load (and also CI/CD pipelines): ALL projects, regardless of the toolchain, use the same set of commands, namely

  • make test
  • make integration-test
  • make compose-up
  • make run

In short (quoting myself here):

Don't repeat yourself. Make Make make things happen for you!

[–] [email protected] 2 points 2 years ago

I forgot to mention that the "artwork" is by yours truly. And yes, a 1st grader would probably have done a better job πŸ˜…

[–] [email protected] 5 points 2 years ago

The first few paragraphs were a good read where the author makes a good point.

Sadly, it somehow turns into a BluSky promotion afterwards.

Good read, nonetheless.

[–] [email protected] 2 points 2 years ago

Good point! I just replaced my LI profile photo w/ an abstract image 🍻

 

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

You probably have already noticed that nowadays it's becoming fashionable online to share technical material via videos (eg YouTube.)

I somehow can understand the appeal of creating videos for sharing thoughts/news, esp b/c it takes way less time and focus compared to writing things (just hit the record button and go.)

But videos are. πŸ‘Ž not index-able (at least locally)
πŸ‘Ž not searchable. πŸ‘Ž not copy-paste friendly if at all. πŸ‘Ž impossible to skim through.
πŸ‘Ž a major distraction from the train of thoughts.

IMO, in most cases, the more effective and impactful medium of technical comms is the written form: a Mastodon toot, a blog post, a gist, a Pastebin entry or even a Facebook post!

What are your thoughts?

 

You probably have already noticed that nowadays it's becoming fashionable online to share technical material via videos (eg YouTube.)

I somehow can understand the appeal of creating videos for sharing thoughts/news, esp b/c it takes way less time and focus compared to writing things (just hit the record button and go.)

But videos are
πŸ‘Ž not index-able (at least locally)
πŸ‘Ž not searchable
πŸ‘Ž not copy-paste friendly if at all
πŸ‘Ž impossible to skim through
πŸ‘Ž a major distraction from the train of thoughts

IMO, in most cases, the more effective and impactful medium of technical comms is the written form: a Mastodon toot, a blog post, a gist, a Pastebin entry or even a Facebook post!

What are your thoughts?

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

When you open a new tab, you can instantly start typing and press ENTER which sends your query to the search engine.

However once that's done, there's no easy way to edit the query directly from the URL bar. The URL bar will contain, well, the URL and not the original query anymore.

Is there a way to edit the search query w/o using the search engine's web page or retyping the whole query again? In other words, is there a way to tell Firefox to show me the previous query in the URL bar instead of showing the URL?

I'd like to try to send as many queries as possible to Google directly from Firefox rather than using Google's webpage (more $$$ for Firefox.)

An example where I searched for Lemmy and tried to edit the search query

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

A collection of utilities for Scala/Java developers who are targeting Persian (Farsi) speaking users.

persianutils 5.0-SNAPSHOT has just been published to Sonatype snapshot repo. The release will be published in a few weeks after some testing.

The main changes are

  • Added support for Scala 3.x
  • Dropped support for the discontinued Scala 2.11.x

To use it, simply add the following lines to build.sbt:

ThisBuild / resolvers += Resolver.sonatypeRepo("snapshots")

...

libraryDependencies += "com.bahmanm" %% "persianutils" % "5.0-SNAPSHOT"

Please take a moment to report any bugs or ideas in the project issue tracker πŸ™

 

Investors are barely breaking even as the venture is hardly making any profits due to a shortage of chips, divided interests, and more.

... OpenAI has already seen a $540 million loss since debuting ChatGPT.

... OpenAI uses approximately 700,000 dollars to run the tool daily.


⚠️ First off, apologies as I didn't cross check. Take it w/ a grain of salt.


This piece of news, if true, somehow explains why OpenAI has been coming up w/ weird schemes for making $$$ like entering the content moderation space.

On a similar note, I wonder if this had been a key driver (behind the scenes) in the recent investment in open source AI initiatives (Haidra comes to my mind?) Perhaps some corporations who haven't got enough $$$ to fund their own dedicated research group are looking to benefit from an open source model?

 

This problem happened recently to couple of people on various Pg support channels, so I figured I can write a bit more about it, so that in future I have a place where I can refer people to.

 

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

I've had the (mis)fortune to deal w/ a good number of Makefiles over the years. Enough to take a liking to Gnu Make πŸ€·β€β™‚οΈ

I've been haphazardly compiling a collection of common tasks that I'd like my Makefiles to do out-of-the-box for me.

The collection grew to a point where I thought it might benefit my fellow engineers in their day-to-day programming.

Hence bmakelib was born w/ an Apache v2.0 license πŸ‘Ά

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

The aim is not to simplify writing Makefiles but rather help you write cleaner and easier to read and maintain ones.

Everything is well tested via CI pipeline (yes, I wrote unittests for Makefiles 😎) and should work out of the box.

Please take a look and let me know what you think. I'd love to hear your thoughts and possibly your experience if you ever use bmakelib in your projects.

 

I've had the (mis)fortune to deal w/ a good number of Makefiles over the years. Enough to take a liking to Gnu Make πŸ€·β€β™‚οΈ

I've been haphazardly compiling a collection of common tasks that I'd like my Makefiles to do out-of-the-box for me.

The collection grew to a point where I thought it might benefit my fellow engineers in their day-to-day programming.

Hence bmakelib was born w/ an Apache v2.0 license πŸ‘Ά

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

The aim is not to simplify writing Makefiles but rather help you write cleaner and easier to read and maintain ones.

Everything is well tested via CI pipeline (yes, I wrote unittests for Makefiles 😎) and should work out of the box.

Please take a look and let me know what you think. I'd love to hear your thoughts and possibly your experience if you ever use bmakelib in your projects.

 

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

Suppose I've got a simple #Makefile w/ a few URLs that I'd like to process as dynamic targets.

For example here is a not working snippet:

.DEFAULT_GOAL := all

#####
URLS  = https://foo.example.com
URLS += https://bar.example.com
URLS += https://www.example.org

#####
% :
	@echo the url is $(*)

#####
.PHONY : all
all : $(URLS)

It fails w/

*** target pattern contains no '%'

I believe that's b/c of the character : being part of URLS which confuses Make after expansion (order o

As a workaround, I've removed https:// from all URLs. For example this works:

URLS = foo.example.com
URLS += bar.example.com

I know Make generally doesn't play well w/ targets w/ space or colon in the name but I wonder if the above is the best I can do. What do you think?

 

Suppose I've got a simple #Makefile w/ a few URLs that I'd like to process as dynamic targets.

For example here is a not working snippet:

.DEFAULT_GOAL := all

#####
URLS  = https://foo.example.com
URLS += https://bar.example.com
URLS += https://www.example.org

#####
% :
	@echo the url is $(*)

#####
.PHONY : all
all : $(URLS)

It fails w/

*** target pattern contains no '%'

I believe that's b/c of the character : being part of URLS which confuses Make after expansion (order o

As a workaround, I've removed https:// from all URLs. For example this works:

URLS = foo.example.com
URLS += bar.example.com

I know Make generally doesn't play well w/ targets w/ space or colon in the name but I wonder if the above is the best I can do. What do you think?

 

I'm working on a hobby project of mine which requires Gnu Make 4.4. I am now trying to setup the project's Travis pipeline on github. Travis, understandably, only offers LTS Ubuntu images and sadly Gnu Make 4.4 is not available on those images.

Is there any way, compiling from the sources aside, to install the said version on an Ubuntu image? Something like a PPA?

 

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

β›” Latest #Emacs (29.1-1.1) is broken on openSUSE Tumbleweed. Running emacs fails w/ a cryptic message.

πŸ’‘The solution is to launch it using any of emacs-gtk or emacs-x11 or emacs-nox.

πŸ’‘If your workflow relies on Emacs daemon like mine does, then simply evaluate (server-start) in the scratch buffer.

Hopefully the fix will be out very soon.

Cross-posted from https://mastodon.social/@bahmanm/110842724716130994

view more: β€Ή prev next β€Ί