@zalasur@mastodon.surazal.net
@zalasur@mastodon.surazal.net avatar

zalasur

@zalasur@mastodon.surazal.net

I play strategy games, write software, and stream on Peertube (not necessarily in that order). Also, sock monkeys! Preferred pronouns: he/him/his.

This profile is from a federated server and may be incomplete. Browse more on the original instance.

Mrfunkedude, to random
@Mrfunkedude@mastodon.social avatar

Itโ€™s morning. I should probably get out of bed at some point.

zalasur, (edited )
@zalasur@mastodon.surazal.net avatar

@Mrfunkedude This is the worst Idea you've had all day so far

pbump, to random
@pbump@journa.host avatar

Went through a big new report from Pew Research Center to illustrate how cultural insecurity helps define Trump's base of support. https://www.washingtonpost.com/politics/2024/06/06/trump-supporters-polling-race-immigration/

zalasur,
@zalasur@mastodon.surazal.net avatar

@pbump I think it's a lot less "insecurity" and more "violent hostility"

Mrfunkedude, to random
@Mrfunkedude@mastodon.social avatar

If a Linux user runs the OS as their main, yet never opens terminal, are they still allowed to be smug?

zalasur,
@zalasur@mastodon.surazal.net avatar

@Mrfunkedude Doubly so, I would think

zalasur, to random
@zalasur@mastodon.surazal.net avatar

It's kinda funny how the process of deciding how to implement a certain feature in your application takes s lot more time to code the actual feature.

I spent about a week trying to figure out the best way to implement pagination. On the surface of things the answer was easy: URL parameters. But how to fit that in the app?

I decided against individual subcomponents responsible for parsing the page URL because what if multiple components wanted a "page" parameter? (cont)

zalasur,
@zalasur@mastodon.surazal.net avatar

So to avoid namespace collision in the URL search string I decided to have to top-level pages responsible for parsing URL parameters. That way, if there are multiple pagination controls on the page, then the page itself can assign names for the various parameters and the subcomponents only have to worry about what attributes are assigned to it.

It felt like the "correct" way. And coding time for this feature? Maybe fifteen minutes. This was after a week of thinking about how I wanted to do it ๐Ÿ˜…

zalasur, to random
@zalasur@mastodon.surazal.net avatar

My favorite* thing is having to trouble-shoot code that was working perfectly fine yesterday but decided to break for mysterious reasons with no clue as to the root cause so I have to put a literal debug statement between every line of code.

And compilation takes like several minutes, by the way.

  • No this sucks
zalasur,
@zalasur@mastodon.surazal.net avatar

Ugh god dammit I forgot to put quotes around the word "string".

Thanks, JavaScript.

zalasur, to random
@zalasur@mastodon.surazal.net avatar

If there's anything in the past five years that the tech industry has proven, it's how it's demonstrated the incredible power of imprinting.

zalasur, to random
@zalasur@mastodon.surazal.net avatar

My second most favorite fact about Steve Bannon is that he used to be a World of Warcraft gold farmer.

My first most favorite fact is that he's gonna go to jail.

zalasur, to DwarfFortress
@zalasur@mastodon.surazal.net avatar

Today we are embarking on the Dwarf Fortress Volcano Challenge: Clear Glass and Obsidian Castle!

I generated a new world to improve the volcano embark situation a little bit and hit pay dirt! There are many more embarkable volcanoes and they have plenty of resources near by them, so I picked a spot and will embark on to my next challenge:

Can I build a fortress entirely out of clear glass and obsidian?

Let's find out!

https://video.surazal.net/w/9HhmDj1WqnkgTzvXKsVKka

zalasur, to random
@zalasur@mastodon.surazal.net avatar

I had as dream last night where we stayed at an Airbnb for $7,000, but then we discovered that it was $7,000 per person. I woke up in a cold sweat because I thought I was going to have to cough up $14,000 somehow for staying at someone's house for a few days. ๐Ÿ˜…

zalasur, to random
@zalasur@mastodon.surazal.net avatar

I have the CMS mostly set up now to begin transferring my old fractal images and blog data from my old site to the new one. The blogs won't be a big deal since I only had like 17 entries, but I have almost 60 fractal images and I can either do them all in one sitting, which would take a few hours, or do them a few at a time.

But before I worry about that, I need to do the front end first and set up the pages.

One this project is completed I'll finally retire the old site and set up a redirect.

zalasur, to random
@zalasur@mastodon.surazal.net avatar

I got pagination to work! Even better, it works in an SPA context, so the page doesn't reload just because you want to browse back and forth. The MobX data store keeps items cached in the browser so that each item is fetched only once (unless you refresh the page).

Pagination is one of those "It seems like it should be easy but it really isn't" features on most websites. I've build pagination components on many, many web apps over the years and it still is a bit of a challenge every time.

zalasur, to fediverse
@zalasur@mastodon.surazal.net avatar

YouTube is login-walling videos apparently, meaning you need an account to watch them. It's still in testing but some users are reporting that it's live in some places already.

On an unrelated note, even though I ask for donations to help me cover costs for my #peertube server I will never hide my content behind a paywall. I just thought I'd throw that out there. โ˜บ๏ธ

https://video.surazal.net/

  • All
  • Subscribed
  • Moderated
  • Favorites
  • โ€ข
  • JUstTest
  • mdbf
  • ngwrru68w68
  • cubers
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • InstantRegret
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • DreamBathrooms
  • megavids
  • tacticalgear
  • osvaldo12
  • normalnudes
  • tester
  • cisconetworking
  • everett
  • GTA5RPClips
  • ethstaker
  • anitta
  • Leos
  • provamag3
  • modclub
  • lostlight
  • All magazines