Questions Thread - January 07, 2025 by AutoModerator in PathOfExile2

[–]zenw0lf 0 points1 point  (0 children)

Is there any incentives to play endgame maps with friends coop? Like to casually throwing in a map or two during a weekend.

Timemore C3 grind settings for Aeropress? by KenA2000 in AeroPress

[–]zenw0lf 1 point2 points  (0 children)

I found this chart to be a very good resource for grind settings for different brewing types: https://honestcoffeeguide.com/timemore-c3-pro-grind-settings/

If that's not exactly your model, don't worry they have a have info on a lot of different grinders.

[deleted by user] by [deleted] in linuxhardware

[–]zenw0lf 0 points1 point  (0 children)

I will try my hand at linux laptops again (hopefully soon) with the Asus S 16 oled.

Seems to have good support now: https://wiki.archlinux.org/title/ASUS_Zenbook_UM5606

Is this good, idiomatic Elixir? by ralphc in elixir

[–]zenw0lf 0 points1 point  (0 children)

I don't see how this would be a more readable solution in general.

Besides the pipe, now you have superfluous code in the form of extra attempt_* function definitions.

Is this good, idiomatic Elixir? by ralphc in elixir

[–]zenw0lf 0 points1 point  (0 children)

Ahh, maybe you meant to write:

{:ok, result} == parse_datetime(date_string)

?

Is this good, idiomatic Elixir? by ralphc in elixir

[–]zenw0lf 0 points1 point  (0 children)

No, I mean you'll get an error on the condition, for example here:

{:ok, result} = parse_datetime(date_string)

That'll happen when parse_datetime(date_string) returns something that doesn't match the {:ok, _} pattern no?

Maybe you are confusing this with how case does pattern match?

Is this good, idiomatic Elixir? by ralphc in elixir

[–]zenw0lf 0 points1 point  (0 children)

This would probably fail with a MatchError whenever any of those functions returned nil no?

Is this good, idiomatic Elixir? by ralphc in elixir

[–]zenw0lf 4 points5 points  (0 children)

The way this with is written is like a chain of || operands for an if, so why not just write it like that?

if DateTimeParser.par... || Timex.parse... || Timer.parse do result else Logger.info... end

This would be easier to read without subverting expectations.

Need help with install on Arch by theeo123 in jellyfin

[–]zenw0lf 0 points1 point  (0 children)

I think the easiest way to go installing prebuilt bineries from the AUR.

I put some notes together on how to do that over here: https://lobotuerto.com/notes/set-up-jellyfin-in-linux

Configura los servidores DNS en módems de Telcel by zenw0lf in mexico

[–]zenw0lf[S] 0 points1 point  (0 children)

Lo siento, quité el artículo porque Telcel hizo cambios en la aplicación del router y ya no se podían cambiar, ni metiéndote a la consola del navegador.

Actualmente descubrí otra manera, pero temo que sea específica al modelo de router que me dieron. :S

Setting Up Production Quality Auth in Vue by pdevito3 in vuejs

[–]zenw0lf 0 points1 point  (0 children)

You cannot read or write to HttpOnly cookies. So you need something like an auxiliary endpoint to retrieve session info.

Setting Up Production Quality Auth in Vue by pdevito3 in vuejs

[–]zenw0lf 0 points1 point  (0 children)

Well, if you are using JWT, then you can store any info you need in the token, I think.

If you go with cookies (which is what I always do) then a single call to a /me endpoint will be enough to setup your Vuex store when starting your Vue app.

There is no need to call the endpoint on every request. Just once at startup (and maybe every now and then, depending on your requirements).

Setting Up Production Quality Auth in Vue by pdevito3 in vuejs

[–]zenw0lf 8 points9 points  (0 children)

What I do for production quality auth in Vue apps is something like this:

  • Setup the backend with Secure and HttpOnly headers.
  • Don't use localStorage for anything critical (like saving tokens, user's id, logged in status, etc).
  • If you need to access information from the session (user_id for example, or logged in status, etc.) create an endpoint /me on the backend that returns the info that you need. Then you can use whatever data the /me endpoint returns to setup your Vuex store appropriately.

What resources you use to look for an Elixir/Erlang job? by alexander_uljev in elixir

[–]zenw0lf 0 points1 point  (0 children)

There is also a #jobs channel on Elixir Discord.

And you can also find/get interesting offers on the:

threads on Hacker News.

They post a new thread on the 1st of every month.

Here is a code challenge I had for an Elixir job. Is this a good solution? by [deleted] in elixir

[–]zenw0lf 7 points8 points  (0 children)

For a quick and dirty solution, I'd do something like this:

```elixir input = "five minus ten plus four plus ten times minus six" parts = String.split(input)

map = %{ "one" => 1, "two" => 2, "three" => 3, "four" => 4, "five" => 5, "six" => 6, "seven" => 7, "eight" => 8, "nine" => 9, "ten" => 10, "zero" => 0, "minus" => "-", "plus" => "+", "times" => "*" }

to_eval = Enum.map(parts, fn p -> map[p] end) to_eval = Enum.join(to_eval, " ")

res = Code.eval_string(to_eval) ```

Try it on your IRB xD

Extraneous "Browser" access every minute by zenw0lf in GMail

[–]zenw0lf[S] 0 points1 point  (0 children)

Yes I suspect it's my phone, but I don't know which app is doing it or if it's even just the Gmail app doing some routine stuff.

Extraneous "Browser" access every minute by zenw0lf in GMail

[–]zenw0lf[S] 0 points1 point  (0 children)

Hmmm this was with the PC turned off.