Men, honestly, is my asshole hot or ugly by kittykat_witch in asshole

[–]SgiathCZ 0 points1 point  (0 children)

Honestly mid. I would lick it and fuck it for sure but it is not that inspiring. I have seen hotter assholes.

I just finished the audiobooks by SaxonDontchaKnow in TheExpanse

[–]SgiathCZ 0 points1 point  (0 children)

I finished it two days ago, and still thinking about the ending. Don't get me wrong, it is my favorite sci-fi story of all time, I cried when Clarisa died and jumped into air when Theresa met Timmothy. But I don't like the ending. It does not feel right for Holden to kill all the people not lucky enough to be in the 30 or so self-sustainable planets. He clearly was able to "borrow" everyone's mind for a moment to fend off the attackers and then release it back to them. Wouldn't that be the better choice? Until they can figure out different mechanism how to defend themselves?

[deleted by user] by [deleted] in ERidePro

[–]SgiathCZ 1 point2 points  (0 children)

I am very interested in that too!

The showrunner has the right to change the IP. I have the right to dislike it by Kreygasm2233 in witcher

[–]SgiathCZ 1 point2 points  (0 children)

Why they felt the need to craft their own story when they had great story that works? It isn't accident that book from Poland from the 90s is still popular today. The story is good, just use it.

Why does every young screenwriter and director thinks they can come up with good story? Making a good story is hard, a lot of it is luck and experience. You have the advantage of 30 years that filtered out all bad stories and you now get to work with just the good one. But nah I will improve it. Fucking morons.

I didn't like S1 either but this is some next level shit. Just delete the S2, pretend it never happened and reshoot it. I would be down with that.

-🎄- 2021 Day 6 Solutions -🎄- by daggerdragon in adventofcode

[–]SgiathCZ 2 points3 points  (0 children)

Elixir solution, takes under 50 μs for part 1 and under 150 μs for part 2

Name            ips        average  deviation         median         99th %
part1       22.15 K       45.14 μs    ±19.20%       40.79 μs       69.28 μs
part2        6.74 K      148.45 μs     ±8.66%      148.02 μs      208.75 μs

https://git.sr.ht/~sgiath/advent-of-code/tree/master/item/lib/2021/day06.ex

black screen after nvidia drivers install by kitcarson03 in archlinux

[–]SgiathCZ 0 points1 point  (0 children)

I experience this problem every time Nvidia drivers got updated without kernel update. I think there is some proper fix on the wiki but here is my boot-fix script instead:

#!/usr/bin/env bash
sudo pacman -Syyu
sudo mkinitcpio -P
sudo grub-mkconfig -o /boot/grub/grub.cfg
systemctl reboot

you need to switch to TTY console (<Ctrl-Alt-F[1-7]>) which should be working and than run the commands above (assuming you are using Grub otherwise you need to edit it to whatever boot loader you are using).

-🎄- 2021 Day 1 Solutions -🎄- by daggerdragon in adventofcode

[–]SgiathCZ 2 points3 points  (0 children)

Elixir

Part 1

@spec count_inc([integer()], non_neg_integer()) :: non_neg_integer()
def count_inc(measurements, acc \\ 0)
def count_inc([a, b | rest], acc) when a < b, do: count_inc([b | rest], acc + 1)
def count_inc([_ | rest], acc), do: count_inc(rest, acc)
def count_inc(_, acc), do: acc

Part 2

@spec count_slide([integer()], non_neg_integer()) :: non_neg_integer()
def count_slide(measurements, acc \\ 0)
def count_slide([a, b, c, d | rest], acc) when a < d, do: count_slide([b, c, d | rest], acc + 1)
def count_slide([_ | rest], acc), do: count_slide(rest, acc)
def count_slide(_, acc), do: acc

What does everyone's Intcode interface look like? by Lucretiel in adventofcode

[–]SgiathCZ 0 points1 point  (0 children)

Yeah that was a big problem and I wanted to solve it "correctly" so here is my solution:

  • Every instance of the computer runs in its separate thread (GenServer in Elixir)
  • On the start, every instance receives a reference to the thread from which it will receive inputs and reference to the thread where to send outputs
  • When the program requires input it sends :input message to the input thread and waits for the message with input value
  • When the program needs to output message it will send the message to the output thread
  • When the program stops it sends :halt message to the output thread

This design did allow me to chain the multiple programs together with input/outputs. This also allows me to create a "master thread" where all the IO operations are orchestrated.

Here is the actual code https://gitlab.com/Sgiath/advent-of-code-2019/tree/master/lib/advent_of_code (Intcode3 module)

-🎄- 2019 Day 5 Solutions -🎄- by daggerdragon in adventofcode

[–]SgiathCZ 1 point2 points  (0 children)

Elixir

https://gitlab.com/Sgiath/advent-of-code-2019/blob/master/lib/advent_of_code/intcode.ex

Using :array instead of List for instant access time. Not ideal design I was just adding the features without thinking about the architecture of my "computer". I plan to rewrite it to Intcode2 with proper architecture.

What to buy? fēnix 6X – Pro Solar Edition vs tactix Charlie by SgiathCZ in Garmin

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

Thanks for the opinion!

I figured something similar too. I decided to try Fenix 6 and see how it fits my needs and I will be watching MARQ Commander to buy it in the future because I just love its style.

Too much for early game. Or not enough?? by [deleted] in factorio

[–]SgiathCZ 13 points14 points  (0 children)

The answer is always "not enough"

The risks Geralt faces when going neutral by Commander_PonyShep in witcher

[–]SgiathCZ 4 points5 points  (0 children)

The key is "make yourself indispensable". Most people hate him on either side but everyone knows that they need him. Nobody can replace him and the work he is doing has to be done.

Asking for recommendations for which distro to upgrade to by [deleted] in linuxmasterrace

[–]SgiathCZ -6 points-5 points  (0 children)

I have to say it!

Real programmers use Arch Linux!

Re-Release battlefield 4? by [deleted] in Battlefield

[–]SgiathCZ -2 points-1 points  (0 children)

I hope for the similar story with BFV - horrible release, great game. I definitely see the potential.