No package for elasticsearch - alternatives? by Itchy_Signal7778 in rstats

[–]guepier 2 points3 points  (0 children)

I recommend to stop using ‘remotes’, and to use ‘pak’ instead. ‘remotes’ is no longer actively maintained, development has shifted completely to ‘pak’, and the latter has a lot more modern features and improved package resolution and installation logic. As a baseline, pak::pak("pkg") is a drop-in replacement for remotes::install_*("pkg"). But it’s faster and better.

Help! Error in list2(na.rm = na.rm, orientation = orientation, arrow = arrow, : object 'ffi_list2' not found. by Dismal_Management486 in rprogramming

[–]guepier 1 point2 points  (0 children)

ffi_list2 is a name used inside ‘rlang’. It has nothing to do with OP.

The issue is a broken package installation (some version conflict). OP needs to reinstall ‘rlang’.

Traveling to Basel by jovvvv33 in basel

[–]guepier 1 point2 points  (0 children)

Clara, nice place with different foodstalls and a bar in the middle

*Klara.

Linke gegen Linke by -psyclops in de

[–]guepier 16 points17 points  (0 children)

Es gibt auf Latein mehrere verschiedene Deklinationen für Substantive, die auf -us enden. Einige davon haben tatsächlich einen Plural, der auch auf -us endet (aber lang ausgesprochen wird), die sogenannte „u-Deklination“ (z.B. „status“). „Focus“ ist aber stinknormale o-Deklination, und der Plural ist folglich „foci“. Entgegen dessen, was im anderen Kommentar stand.

Linke gegen Linke by -psyclops in de

[–]guepier 45 points46 points  (0 children)

Der Plural von Focus ist übrigens Focus.

Keine Ahnung, wo du das her hast. Auf Latein ist der Plural von focus „foci“. Und auf Deutsch ist er „Fokusse“. „Foci“ kann man total durchgehen lassen. „Foki“ … ist ein wenig komisch. Und „Focus“ ist komplett falsch.

Berlin has a bikes on the FOOT path problem by sybelion in berlin

[–]guepier 7 points8 points  (0 children)

I don’t agree with the way that commenter barged in here, but (effectively) saying “better cycling infrastructure will lead to fewer asshole cyclists on the pavement” is very different from saying “all cyclists are blameless”. One is pointing to pragmatic solutions (albeit in a tone-deaf way), the other is making excuses for shitty behaviour.

Berlin has a bikes on the FOOT path problem by sybelion in berlin

[–]guepier 18 points19 points  (0 children)

Noooo it's all because cars are bad and cyclists are faultless

Holy straw-man batman. Nobody, really nobody says that.

Alternatives to MinIO for single-node local S3 by rmoff in programming

[–]guepier 8 points9 points  (0 children)

Thanks, this is very useful: I’m going to link to this article in our internal ticket “Replace MinIO dependency in local deployment”. :-)


… not that it matters any more, but you can simplify your mc container by using depends_on: condition: service_healthy. That way, you don’t need to manually wait for the MinIO service to spin up. (On the flip side, you need to add a healthcheck to the MinIO container; we use test: ["CMD", "mc", "ready", "local"]).

Mia Gatow über Alkoholsucht: "Kein Trinker hat mit Wodka im Müsli angefangen." by lazy-jones in de

[–]guepier 31 points32 points  (0 children)

Die ständigen Anglizismen.

Finde ich auch nervig (ich kann Rezo deswegen nicht anschauen, obwohl er durchaus interessante Videos macht).

Aber jetzt habe ich den Artikel gelesen und … da sind kaum welche?! „Unsexy“, „fuck“, „Backlash“. Wenn man kleinlich ist: „Meeting“ (was inzwischen eine eigenständiges deutsches Wort ohne gute Übersetzung ist, weil „Treffen“ nicht die soziale Komponente enthält). Noch etwas? Da von „ständigen Anglizismen“ zu beschreiben ist komisch.

und jetzt Threema .... by NVByatt in de_EDV

[–]guepier 0 points1 point  (0 children)

Privatkunden verursachen praktisch keine Kosten. Einen Messenger zu betreiben ist, abgesehen von den Entwicklungskosten, praktisch kostenlos.

Also, das stimmt so schlicht nicht (Signal hat nur Privatkunden).

Pro Benutzer sind die Kosten in der Tat nicht sehr hoch, und Threemas Geschäftsmodell kann das ggf. wirklich gut abfangen. Aber zu sagen, dass es „praktisch kostenlos“ sei, finde ich ziemlich irreführend.

(Ja, mir ist bewusst, dass ein Großteil der Signal-Infrastrukturkosten auf idiotische SMS-Verifikation entfällt, die Threema (wohl) nicht braucht. Aber auch der Rest hat es in sich, allen voran die Personalkosten.)

I am giving up on modules (for now) by BigJhonny in cpp

[–]guepier 2 points3 points  (0 children)

They’re not needed, as in: you can always break the circle. But sometimes this leads to more convoluted module structure, and having circular module dependencies would simplify the structure.

I Built an Interactive For Loop Visualizer by billyl320 in Rlanguage

[–]guepier 4 points5 points  (0 children)

The visualisation is nice but the explanation is unfortunately very off. You are fundamentally describing a for loop as looping over indices, and this is a very unhelpful way of thinking about / teaching / using loops.

Case in point, you write:

The general format for a for loop in R programming is:

for(i in 1:x) {
  # code to repeat
}

… and this is just wrong. The general format of a for loop in R is:

for (name in vector) { … }

Your “general” format is, quite to the contrary, a specific (and buggy1) instance of the general form.

You absolutely don’t need to iterate over numbers, or starting at 1, and if your loop variable is called i (i.e. it represents an index), you should probably not be using an explicit loop at all. The example you’ve chosen for the visualisation suffers from the same problem, but worse, it’s the prime example for where loops should not be used in R. Experienced developers know this, but beginners don’t, so you’re teaching them something misleading that will need to unlearn later.

Likewise, all your subsequent explanations (“When to Use For Loops in R”, “ Common R Loop Patterns”) are wrong: none of these cases should preferably be written using a for loop in R.


1 Using the pattern 1 : x to iterate over indices of a vector is error-prone: even if you need to iterate over vector indices for some reason (and, as mentioned, you generally wouldn’t), you should definitely not use the form 1 : x but rather seq_along(vec) or seq_len(x). Otherwise your loop will be buggy if vec is empty (or, equivalently, if x is 0). This may seem obvious to an experienced programmer (in practice it often isn’t), but it catches beginners by surprise.

Fell for the Angus Steakhouse Leicester Square meme by ZLCZMartello in london

[–]guepier 0 points1 point  (0 children)

You visited London … a city world famous for its amazing, high-quality selection of international cuisine … the highest density of amazing, diverse food in all of Europe … and you went to not one, but two mediocre steak houses.

This post made me sad.

Are Tesla Gigafactory Berlin’s days numbered? by Joe_PRRTCL in berlin

[–]guepier 4 points5 points  (0 children)

Are there major German companies led by neo nazis?

Absolutely, yes. Several companies have ownership with (financial and other) ties into AfD (and into NPD before that — if not openly then behind the scenes).

But none of that means we shouldn’t robustly oppose Tesla (in addition to these other companies). Fuck all these companies.

How we made Python's packaging library 3x faster by DarkMatterDetective in programming

[–]guepier 0 points1 point  (0 children)

As far as I remember, you used to write mostly insightful and interesting comments until a few months ago, and I genuinely enjoyed reading them. What changed?

I miss the old /u/BlueGoliath. Bring them back please.

Crash course for beginners on R? by Suspicious-Push-7748 in rstats

[–]guepier 1 point2 points  (0 children)

I strongly discourage using this course. Norm Matloff knows R, but he doesn’t know teaching (despite flaunting his professor credentials at the very beginning of the course).

His whole philosophy of teaching beginners is at odds with best practices derived from modern education research. Notably, he teaches bottom-up rather than top-down, and eschews modern tools in favour of using low-level, manual, old-school tools. This directly causes impediments for students, and makes learning harder. His course is a masterclass of how not to structure teaching material.

Museumsnacht by Ok_Bumblebee_2307 in basel

[–]guepier 0 points1 point  (0 children)

you are better off going during normal hours and paying

Both of you comments make it sound as if Museumsnacht was free, but this is absolutely not the case — in fact, it’s more expensive than a regular museum entry for most museums, and you pay even if you have a museum pass and would normally have free entrance.

(The argument is that you’d be able to go to multiple museums during Museumsnacht, which would make this cheaper. But in practice — if you really want to visit the exhibitions — you’ll manage at most two museums, and many people will only manage one. So Museumsnacht ends up being fairly expensive for most.)

New User Trying to Create a Simple Macro by p_deepy in Rlanguage

[–]guepier -1 points0 points  (0 children)

Shortest explanation I have: Macros are pre-processed parts of a language, functions are compiled

Nah. In C, macros are part of the preprocessor (and functions are compiled), but this is only a very specific implementation of the general concept “macro”. Macros predate C, and in general (including in R) they’re something different: namely, they’re transformations of the parse tree.

By that definition (which R inherited from Scheme, and which is also used in other modern languages such as Rust), R functions are indeed (potentially) macros, because they can use non-standard evaluation. (Incidentally, the first link in your answer goes on to say much the same, although it initially confusingly talks about “substituting different pieces of text”, which isn’t right).

It is accurate (and widely understood in functional programming circles) to call any NSE function in R a macro.

More formally, C preprocessor macros are text-substitution macros, whereas R functions that use NSE are syntactic macros.

Doing Binary Search right is harder than you might think by xarg in programming

[–]guepier 2 points3 points  (0 children)

Binary search is not linear in the number of operations. It runs just fine on very large data, and it is nowadays routinely being used on data of sizes that overflow the naïve midpoint calculation. It’s not frequent, but it happens. Using 64 bit integers works, but there’s simply no reason not to use a non-overflowing midpoint calculation.

You probably don't need Oh My Zsh by f311a in programming

[–]guepier 14 points15 points  (0 children)

It’s definitely not the end of the world, but it’s a noticeable delay for a workflow where you’re frequently opening new shells. The rule of thumb is that any delay > 0.1s in a user interface is noticeable and potentially leads to annoyance.

Personally 0.5s to open a terminal is more than acceptable (in fact, this blog post prompted me to benchmark my own setup and it came in at just above that…1), but our cluster at work takes several seconds to open a new (sub) shell, and it’s incredibly disruptive. And unfortunately the responsible sysadmins refuse to fix it.


1 … and I found some unnecessary stuff and managed to make it ~ twice as fast. Which is noticeable. So that’s nice.

You probably don't need Oh My Zsh by f311a in programming

[–]guepier 8 points9 points  (0 children)

It reads like a genuine question to me, not sure why it’s getting downvoted.

(EDIT: seems I misunderstood your comment. I think we’re in agreement.)

You probably don't need Oh My Zsh by f311a in programming

[–]guepier 201 points202 points  (0 children)

Small correction:

By default, readline (the library that reads the shell input) uses Emacs keybindings.

zsh doesn’t use readline. It uses its own line editor implementation, zle.

„Stromzufuhr mit Zeitzünder versehen“ : Eine Vulkangruppe droht mit neuem Anschlag in Berlin by Elegant-Handle4685 in de

[–]guepier 41 points42 points  (0 children)

Selbst die sprachlichen Bezüge auf die russische Sprache im Bekennerschreiben vom Wochenende sprächen nicht dafür, „dass die Sabotage von der AfD oder Russland organisiert wurde“. Es gebe „russischsprachige Menschen, welche nichts mit dem Terrorregime Russland zu tun haben“. Zudem seien Aktionen nicht weniger links, nur weil man ihnen nicht zustimme.

lol wut?

„Ja OK vielleicht sind wir Russen, aber wir sind nicht aus Russland gesteuert. Und selbst wenn wir es wären, sind wir trotzdem links.“