off-topic

https://github.com/clojurians/community-development/blob/master/Code-of-Conduct.md Clojurians Slack Community Code of Conduct. Searchable message archives are at https://clojurians-log.clojureverse.org/
caumond 2021-02-01T00:03:06.391Z

Hi guys, Just a simple survey: for test or demonstration, we use fooor bar in english. Not sure to understand where it comes from? In french, it is toto a firstname used in some jokes, it could be a nickname but I actually don't know anybody having that name. So what about foo and bar in english, and what about other languages?

orestis 2021-02-01T08:21:32.401600Z

Hey, we use Toto in greek jokes too!

seancorfield 2021-02-01T00:26:17.391400Z

@caumond https://en.wikipedia.org/wiki/Foobar -- most likely from military slang...

seancorfield 2021-02-01T00:27:46.391800Z

You'll also see quux https://www.techopedia.com/definition/27997/quux

caumond 2021-02-01T00:28:34.393300Z

I had no idea they were one word "foobar". I thought it were two words we sometimes combine.

seancorfield 2021-02-01T00:29:05.393600Z

foo, bar, baz, quux -- I don't know if there are others that are common. I tend to use wibble quite a bit which I think comes from comic books of my youth.

seancorfield 2021-02-01T00:29:53.394Z

Ah, yes, wibble seems to come from Viz Comic https://www.definitions.net/definition/wibble ?

caumond 2021-02-01T00:30:31.394800Z

when I read the definition, foo and bar were really two words

seancorfield 2021-02-01T00:31:27.395500Z

Yes, you'll see foo, bar, foobar, sometimes fubar.

caumond 2021-02-01T00:34:17.396600Z

funny ! a full story was behind that 3 letters. maybe, we'll have some other countries updates tomorrow morning !

alexmiller 2021-02-01T01:35:26.397200Z

I believe quux came from Guy Steele (he has used the pseudonym "Great Quux")

šŸ‘ 1
alexmiller 2021-02-01T01:35:51.397500Z

he uses that to publish poetry / cartoons

alexmiller 2021-02-01T01:37:13.397700Z

http://www.catb.org/~esr/jargon/html/Q/quux.html

seancorfield 2021-02-01T01:58:41.398200Z

Yeah that agrees with the link I posted above. That was kind of a nice thing to learn!

2021-02-01T05:04:34.398400Z

Iā€™ve been slowly learning Nix to manage packages on OS X to replace homebrew. Itā€™s not as up-to-date but it has a lot of potential.

šŸ‘ 1
pez 2021-02-01T06:51:10.400800Z

I've seen gazonk. And I use that myself since. Also fubar is rather an acronym for ā€fucked up beyond recognitionā€.

danieroux 2021-02-01T07:28:59.400900Z

ā€œbeyond all recognitionā€ (my OCD had to fit in that a)

1
šŸ˜ 1
pez 2021-02-01T07:40:32.401200Z

Thanks. Totally feel ya! šŸ˜ƒ

pez 2021-02-01T07:40:59.401400Z

I fubr.d it.

orestis 2021-02-01T08:22:49.402300Z

Just so you know, beginners to programming are really confused when they see ā€œfooā€ and ā€œbarā€. I donā€™t have a source to cite, just my personal experience.

orestis 2021-02-01T08:25:22.404300Z

On the subject of hardware, after having an M1 laptop in the house (for my wife) Iā€™ve ordered one for myself too. I found that I much much prefer to just grab the M1 to do some quick internet searches compared to my phone, since itā€™s so fast to wake from sleep and unlock. Day and night compared to my 2017 intel MBPro.

Mno 2021-02-01T08:35:32.405200Z

I still work on a 2010 mbp.. I should probably upgrade at some point.

caumond 2021-02-01T08:36:56.405300Z

And do you have examples ?

orestis 2021-02-01T09:14:55.408Z

Iā€™ve helped friends through intro to programming classes, and they have to digest a lot of new keywords like ā€œdef, class, for, if, then, elseā€. If English isnā€™t your first language (and perhaps even if it is?) thereā€™s little difference between the official syntax and foo,bar. They read it all as abracadabra!

orestis 2021-02-01T09:16:00.409400Z

I would prefer things like a, b, c or x, y, z or even more domain specific stuff like ā€œstock_priceā€

šŸ‘ 2
2021-02-01T09:26:18.410Z

I always thought it was quax, and pronounced it in my head as "quacks"

Eamonn Sullivan 2021-02-01T16:37:00.416600Z

Well, I've had better days. I'm experimenting with babashka for the first time and thought a good first project would be to rewrite a bash script I use to back up the two laptops and one desktop in the house. It was pretty straightforward to translate the bash into Clojure, but I thought I'd be clever and replace a shell-out to rm -rf some/dir/* with Clojure. Well, a spare dot was left, a symlink was followed, and you know the rest... There goes the desktop. šŸ˜ž Fortunately, the script worked a few times, before I messed with it, and I have a very recent (minutes old) backup, but I'll need to reinstall Ubuntu...

borkdude 2021-02-01T16:38:26.416800Z

Oh no...

Mno 2021-02-01T16:39:06.417500Z

Oh boy.. That's terrible, amazing backup though

Eamonn Sullivan 2021-02-01T16:39:51.418900Z

Yeah, very lucky. Don't get me wrong, @borkdude, I'm still very impressed with Babashka. I was just aiming that gun poorly.

2021-02-01T16:40:22.419600Z

> a spare dot was left as in, your some/dir/ was actually some/. somehow?

Eamonn Sullivan 2021-02-01T16:40:30.419800Z

yeah.

Eamonn Sullivan 2021-02-01T16:40:41.420100Z

Classic Unix mistake.

2021-02-01T16:40:46.420300Z

yeah, recursion over . is classic for sure

bronsa 2021-02-01T16:40:49.420500Z

we've all been there

bronsa 2021-02-01T16:41:00.420700Z

ā¤ļø

2021-02-01T16:41:35.421400Z

which widely used PL released a version that tried to delete your entire HD on uninstall? I want to say it was Scala

borkdude 2021-02-01T16:42:18.421800Z

Just for my understanding: the mistake was that /some/. got deleted instead of some/foo/?

borkdude 2021-02-01T16:43:05.422500Z

How does this require a re-install of Ubuntu? Unless /some was /home... I guess?

2021-02-01T16:44:05.423600Z

or /usr or /etc

2021-02-01T16:44:54.424400Z

if all you lost is home you don't need any reinstall

2021-02-01T16:45:13.424900Z

(though you do need to create a new account from recover mode)

borkdude 2021-02-01T16:45:49.425400Z

right

Eamonn Sullivan 2021-02-01T16:52:03.429100Z

I think what I did (I would be able to tell for sure, but...) was /some/. using a too-clever-for-me recursion (.isDirectory, .listFiles, etc.). I will need to order another USB pen big enough, but I'll boot into it tomorrow and try to find out for sure. Annoyingly, I had already changed my mind (see https://github.com/eamonnsullivan/backup-scripts/commit/e0123d5f96c21b06239895de842e1dfe33ffb92c) about my cleverness, but that wasn't on the machine at the time. I think I failed to connect to the MacBook Pro, and then somehow carried on. The other amazing bit of (bad) luck is that it's the first of the month, and the script tries to start a completely new backup, which is where that rm -rf comes in. Oy.

borkdude 2021-02-01T16:54:45.429600Z

Maybe next time babashka.fs will be released... and you can use https://babashka.org/fs/babashka.fs.html#var-delete-tree to delete a file tree

šŸ‘ 1
borkdude 2021-02-01T16:55:26.430200Z

Any reason you're not using rsync for this? :)

Eamonn Sullivan 2021-02-01T16:57:10.431500Z

I am using rsync, but my bash script does some clever stuff where it hard-links the backups each day and then starts another fresh one on the first of every month. The core of the backup is just rsync over ssh, though.

borkdude 2021-02-01T16:57:46.432Z

Cool. Well, I hope you recover well from this shock :)

clyfe 2021-02-01T20:51:53.434200Z

rm -rf ./* aka "empty my dir" is often done & risky business, or used to be (distros added some protections in recent times eh?)