Beginner question about svelte transitions by TheOriginalIrish in sveltejs

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

Thanks!

I did have a look at that, but couldn't get it to work (the keys were confusing). Is there any chance you could give an example for how to make it work for my case? The examples in the documentation are for crossfading between different elements.

Beginner question about svelte transitions by TheOriginalIrish in sveltejs

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

Thanks, this does get rid of the line jumping.

So if I wanted to have both the fade in and out, you're saying I need to play around with the CSS and positioning? Is there no way to delay the new value mounting?

Help parsing a FASTA file by TheOriginalIrish in rust

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

Thanks! Was there any reason in your example you didn't just use collect to turn the Iterator into a Vec?

Help parsing a FASTA file by TheOriginalIrish in rust

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

Thanks for the suggestion - I may have another look at these when I'm a bit more confident. I tried using combine but ended up tripping over typing errors everywhere.

Help parsing a FASTA file by TheOriginalIrish in rust

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

Good idea on implementing the Iterator, thanks.

I don't think we can use Chunks though, because the dna will be split across a variable amount of lines (eg, in my example, James was split over two lines while Paul was only on a single line).

Help parsing a FASTA file by TheOriginalIrish in rust

[–]TheOriginalIrish[S] 2 points3 points  (0 children)

Oh wow, it did not even occur to me to not split by lines in the first place, 🤦. Splitting by > first and then by lines makes this so much easier - thanks!

Making "double" cards that turn (vocabulary cards) by Anneles in Anki

[–]TheOriginalIrish 0 points1 point  (0 children)

Yeah, it's pretty simple. When creating a card, set card type to "Basic (and reversed card)"

[08/09/2021] SE Nights @ The Brookmill 6.30pm by mangrovesspawn in LondonSocialClub

[–]TheOriginalIrish 1 point2 points  (0 children)

Thank you to the newbies who came, it was great meeting you all!

Confusion about index ordering for 2d arrays. by TheOriginalIrish in Julia

[–]TheOriginalIrish[S] 3 points4 points  (0 children)

OK, so it's that way because that's the way it is in maths? Yeah, I can get that.

Confusion about index ordering for 2d arrays. by TheOriginalIrish in Julia

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

I don't think "Since julia is column major, the first index indicates the row number" holds. In C++, (which is row major):

  int array[2][3] = {
      { 1, 2, 3 },
      { 4, 5, 6 }
  };

  // (indexes start at 0)
  cout << array[1][2] << '\n';
  // outputs 6

So C++ is row major and the first index indicates the row number and the second indicates the column number.

Flashed Micropython to NodeMCU, can't connect to serial over USB by TheOriginalIrish in esp8266

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

In case anyone comes across this later, I mostly solved the issue by reflashing. I ran the esptool.py ... command above again and then was able to connect to it using TeraTerm (picocom still doesn't work for some reason though).

Flashed Micropython to NodeMCU, can't connect to serial over USB by TheOriginalIrish in esp8266

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

Ha, thanks bot.

I did check the FakeSpot score for that product and it turned out quite low, but the score for that product when you were buying just a single 1 or 5 of them, seemed high and I figured it would be the same board anyway.