@sik0fewl@lemmy.ca
link
fedilink
26
edit-2
5M

If you’re reading this, you probably live in a country that is a party to United Nations Convention Against Torture.

If your company is allowing this, please contact your government or another member state.

This is torture to do to a programmer…report people torturing others to the authorities

Xylight
link
fedilink
English
275M

I feel like saying nothing but undefined is worse.

Especially when there is absolutely no JavaScript in the stack

Phoenixz
link
fedilink
15M

Some people just like to watch the world burn

Comment@2a139a55

Why is it that whenever something is spitting out junk data, those specific characters are involved?

� is used to represent an invalid character, so it makes sense that it’d appear often when bad data is being rendered (or good data is being rendered improperly).

Everything is 0s and 1s to a computer. What a pattern of 0s and 1s encodes is decided by people–often arbitrarily. Over the years there have been attempts to standardize encodings but, for legacy reasons, older encodings are still valid.

The 0s and 1s that encode ’ in UTF-8 (a standardized encoding) are the same 0s and 1s that encode ’ in CP-1252 (a legacy encoding).

The � symbol is shown when the 0s and 1s don’t encode anything of meaning.

@x00za@lemmy.dbzer0.com
link
fedilink
English
56
edit-2
5M

= e2 80 99 (3 bytes)
’ = e2 80 99 (3 separate bytes)

Good to see it “spelt out” like that

JackbyDev
link
fedilink
English
55M

Right single quote (’) in UTF-8 (https://www.compart.com/en/unicode/U+2019) has the same bytes as ’ in cp1252 (which is more or less “ASCII” if we’re doing ELI5). https://en.wikipedia.org/wiki/Windows-1252

Sometimes your keyboard or program’s settings will use right single quote for apostrophes instead of a normal apostrophe. ’ you might notice how this one is straight and not bent a certain way. This setting is often called smart quotes.

[object Object]

deleted by creator

Codex
link
fedilink
955M

Seeing this actually sent a small wave of dread through my body

When I see �, I just assume the user or another dev is using a non-standard keyboard, or my fonts aren’t up to date

When I see this shit, I lose all blood flow to the brain and then just collapse

Sonotsugipaa
link
fedilink
English
595M

Wdym? flamingo_pinyata’s explaination was quite useful, I wish somebody had told me that long ago and it’s still going to let me save so much time.

Your Lemmy client appears to have a bug.

Comrade Rain
link
fedilink
85M

undefined

[vector Victor]

You are evil

Junior dev: Oh no what is that symbol? Let me examine the code closely to find out

Senior dev: The form still works. Fuck you.

Who didn’t?

Some hackers DoS the code. This guy DoS’s the corporate process.

wow this is a good jokeú€™ wonder if it’ll work

JackbyDev
link
fedilink
English
105M

You’d need to put ’ (specifically) in place of a quotation mark. That is the cp1252 encoding of right single quote in utf 8.

“Wonder if it’ll work?”

This doesn’t makes any sense!

t�m
link
fedilink
English
45M

Honestly funny, since we don’t have GDPR here in the US, I guess this is fair.

Not sure how that’s relevant, but some states do have an equivalent to GDPR. California has CCPA for example.

👍Maximum Derek👍
link
fedilink
English
2435M

Be sure to use the image upload field too

How do I do that? Very new to lemmy. Using Boost. Thanks in advance!

JackbyDev
link
fedilink
English
25M

👍Maximum Derek👍
link
fedilink
English
8
edit-2
5M

I don’t think Lemmy supports media fields in comments (though I’ve only skimmed the API, I could be wrong) just on posts. I usually use Postimages for hosting images for comments.

@kn33@lemmy.world
link
fedilink
English
5
edit-2
5M

Idk but Boost has a button for adding pictures to comments.


👍Maximum Derek👍
link
fedilink
English
25M

That looks like the media endpoint in action, all right.

Embed the image using markdown: ![some text](image URL)

You can add an image to a comment or post like this

![](url to your image)

Remember to throw in “=” at the start just to toy with the poor sap who has to manipulate the results in excel

👺 May your socks always be wet.

Create a post

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
  • 1 user online
  • 38 users / day
  • 138 users / week
  • 529 users / month
  • 2.24K users / 6 months
  • 1 subscriber
  • 1.68K Posts
  • 37.1K Comments
  • Modlog