Nick Sergeant's Avatar

Nick Sergeant

@nicksergeant.com.bsky.social

Software developer at HubSpot. Started flxwebsites.com to make nice websites for small businesses who can't afford Big Design Firm pricing. Also building canandaigua.com. Personal blog at nicksergeant.com.

85 Followers  |  248 Following  |  26 Posts  |  Joined: 05.09.2023  |  1.7473

Latest posts by nicksergeant.com on Bluesky

Post image

๐Ÿ˜‚ yep the internet does suck now

10.12.2024 16:56 โ€” ๐Ÿ‘ 2    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Post image

@calendly-official.bsky.social this is why we hate chatbots. Stop it with this nonsense ๐Ÿคฃ.

01.12.2024 14:32 โ€” ๐Ÿ‘ 3    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

As a long-time YNAB (@ynabofficial.bsky.social) customer, I was pretty bummed to learn they _sell your private information_ by default. Make sure you go and turn this off -- and I'll be on the hunt for a replacement soon, I think. bsky.app/profile/nick...

01.12.2024 14:26 โ€” ๐Ÿ‘ 3    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Screenshot of YNAB showing that "Allow Sale of My Personal Info & Sharing of My Personal Info for Targeted Ads" is enabled by default and opt-out only.

Screenshot of YNAB showing that "Allow Sale of My Personal Info & Sharing of My Personal Info for Targeted Ads" is enabled by default and opt-out only.

@ynabofficial.bsky.social I feel like you should be called out for this being opt-out ๐Ÿ™„. I literally pay you money every month, why do you also need to sell my information?

01.12.2024 14:24 โ€” ๐Ÿ‘ 4    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 1

โ€œwe need to talk about your ad blockerโ€

NO WE NEED TO TALK ABOUT THE FACT THAT YOU ABNEGATED YOUR RESPONSIBILITY TO FIND A BUSINESS MODEL, TO OFFER A VALUABLE SERVICE FOR MONEY, AND SURPRISE! IT DIDNโ€™T WORK

23.11.2024 02:19 โ€” ๐Ÿ‘ 39    ๐Ÿ” 8    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Mom: Hi there!  My tv is telling me I need to sign in. Iโ€™ve look thru all the settings and not sure where Iโ€™m supposed to sign in. Any ideas?

Mom: I see where I can reset the app but I will lose my accounts and will need to sign back in. Settings will also be reset 

Mom: I figured it out haha!

Me: Oh okay! Sorry haha just got to basketball practice

Mom: Hi there! My tv is telling me I need to sign in. Iโ€™ve look thru all the settings and not sure where Iโ€™m supposed to sign in. Any ideas? Mom: I see where I can reset the app but I will lose my accounts and will need to sign back in. Settings will also be reset Mom: I figured it out haha! Me: Oh okay! Sorry haha just got to basketball practice

Rubber ducking works on parents, too!

21.11.2024 02:17 โ€” ๐Ÿ‘ 2    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

oh nooo ahahah

16.11.2024 03:14 โ€” ๐Ÿ‘ 11    ๐Ÿ” 1    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

That would match both targets in my original post here. The problem I have is that I want to style the inline code blocks differently from the box-style code blocks.

13.11.2024 15:39 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Post image

This is actually much more bearable once I became more liberal with child labor laws.

10.11.2024 20:26 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

And yea I adjust the drill setting to very low for most pieces.

10.11.2024 01:11 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

Uhhhh can I just ship all future furniture to you for assembly and you ship me the finished item!?

One of the bags of hardware broke open in the box and I'm short 21 cam lock combos ๐Ÿ˜ญ

10.11.2024 01:10 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
A dining room table with tons of cheap furniture pieces to put together

A dining room table with tons of cheap furniture pieces to put together

Nightmare fuel

09.11.2024 22:26 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

AIM buddy profiles! They supported basic HTML. From there it was a natural leap to "okay how do I do a website now".

03.11.2024 23:06 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Hello, again! Feeling inspired to start blogging again โœจ. I recently started using an RSS reader again after a failed attempt at [building our own](https://github.com/nickse

First new blog post in 9 years ๐Ÿ™ˆ nicksergeant.com/hello-again

03.11.2024 20:51 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

Oh I mean the character count. Funny though, I can just screenshot the code and use up to 2,000 chars for alt text ๐Ÿ˜†

03.11.2024 00:02 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
'use client';

import { useEffect, useRef } from 'react';

export default function PostContent({ content }: { content: string }) {
  const ref = useRef<HTMLDivElement>(null);

  useEffect(() => {
    const codeElements = ref.current?.querySelectorAll('p code');

    codeElements?.forEach((codeElement) => {
      const codeElementWrappedInnerHtml = `<code>${codeElement.innerHTML}</code>`;

      if (
        codeElement.parentElement?.innerHTML === codeElementWrappedInnerHtml
      ) {
        codeElement.classList.add('code-block');
      }
    });
  }, [ref]);

  return <div ref={ref} dangerouslySetInnerHTML={{ __html: content }} />;
}

'use client'; import { useEffect, useRef } from 'react'; export default function PostContent({ content }: { content: string }) { const ref = useRef<HTMLDivElement>(null); useEffect(() => { const codeElements = ref.current?.querySelectorAll('p code'); codeElements?.forEach((codeElement) => { const codeElementWrappedInnerHtml = `<code>${codeElement.innerHTML}</code>`; if ( codeElement.parentElement?.innerHTML === codeElementWrappedInnerHtml ) { codeElement.classList.add('code-block'); } }); }, [ref]); return <div ref={ref} dangerouslySetInnerHTML={{ __html: content }} />; }

Yeah what a bummer. Ended up doing this to explicitly mark block-level code elements (had to post this as an image because of Bluesky's character limit... are we for real gonna do this again ๐Ÿ˜ญ)

02.11.2024 22:51 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
Preview
CSS selector for elements without text siblings I'm trying to find a CSS selector that can help me distinguish between the &lt;var&gt; tags in these 2 different usages: &lt;p&gt;&lt;var&gt;Foo&lt;/var&gt;&lt;/p&gt; And &lt;p&gt;Some text &lt;...

๐Ÿ˜ญ stackoverflow.com/questions/23...

02.11.2024 22:37 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Post image

I think the problem I'm having is that :first-child matches the <code> element inside <p>some<code>code</code></p> because "some" is not inside an element.

02.11.2024 22:27 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 2    ๐Ÿ“Œ 0
A screenshot illustrating that I want to target the code element inside the p tag of code <p>some<code>code</code>text</p>, but _not_ the code element inside <p><code>code</code></p>.

A screenshot illustrating that I want to target the code element inside the p tag of code <p>some<code>code</code>text</p>, but _not_ the code element inside <p><code>code</code></p>.

CSS wizards:

Anyone know how I can target the child of a selector that has siblings but those siblings are not within elements!?

Ie., I have <p>some<code>code</code>text</p>, I want to style the <code> element differently than <p><code>code</code></p>.

/cc @wesbos.com ๐Ÿคฃ #nerd-snipe

02.11.2024 22:23 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 2    ๐Ÿ“Œ 0
Post image

Ermigherrrrd thank you!! ๐Ÿ’ฏ

26.10.2024 22:21 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

{homerAppear}

/me checks for "disable retweets" on users. doesn't exist.

{homerDisappear}

19.10.2024 00:18 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

How many trees had to die for my credit card company to mail me a letter saying "if there is a mistake on your statement, you have a right to dispute it.โ€?

14.09.2023 17:18 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
A ridiculous captcha by LinkedIn asking me to rotate a fucking animal

A ridiculous captcha by LinkedIn asking me to rotate a fucking animal

What in the actual fucking fuck

14.09.2023 12:10 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

I HATE NEW SLACK SO MUCH

13.09.2023 21:53 โ€” ๐Ÿ‘ 8    ๐Ÿ” 3    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Photo of the Playdate gaming system on top of a MacBook Air

Photo of the Playdate gaming system on top of a MacBook Air

๐Ÿ˜ป

08.09.2023 00:35 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

RIP to web pioneer Molly Holzschlag. May her name continue to ring out as a true champion of the open web, someone who made the internet a better place for all of us. [tucsonsentinel.com]

07.09.2023 12:48 โ€” ๐Ÿ‘ 15    ๐Ÿ” 7    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

I've tried a huge amount of NA beer over the last couple of years and Untitled Art blows away everything, likely due to their RO process through their contract brewer Octopi.

It's very easy to fool a "leaded" beer drinker w/ UA's beers, not so much with Athletic and other breweries IMO.

06.09.2023 20:15 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

Here now!

06.09.2023 00:49 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

Is this place like Old Dev Twitter? It seems like it might be.

Ie., the OG An Event Apart speaker cohort. I just went through @simplebits.bsky.social's followers and pretended it was 2008 ๐Ÿ˜‚.

05.09.2023 18:11 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

Hello, world.

05.09.2023 18:04 โ€” ๐Ÿ‘ 5    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

@nicksergeant.com is following 16 prominent accounts