[-] tunawasherepoo@iusearchlinux.fyi 65 points 4 months ago

i interpreted it as the user's first DE was gnome :)

[-] tunawasherepoo@iusearchlinux.fyi 10 points 5 months ago

Lock screen

Home screen (i applied a black tint since i had trouble reading white text against it)

I got them from lurking r/wallpaper though I wish i knew more of their original sources

[-] tunawasherepoo@iusearchlinux.fyi 29 points 6 months ago

__LINE__ returns the line of code its on, and % 10 means "remainder 10." Examples:

1 % 10 == 1
...
8 % 10 == 8
9 % 10 == 9
10 % 10 == 0 <-- loops back to 0
11 % 10 == 1
12 % 10 == 2
...
19 % 10 == 9
20 % 10 == 0
21 % 10 == 1

In code, 0 means false and 1 (and 2, 3, 4, ...) means true.

So, if on line 10, you say:

int dont_delete_database = true;

then it will expand to:

int dont_delete_database = ( 10 % 10 );
// 10 % 10 == 0 which means false
// database dies...

if you add a line before it, so that the code moves to line 11, then suddenly it works:

// THIS COMMENT PREVENTS DATABASE FROM DYING
int dont_delete_database = ( 11 % 10 );
// 11 % 10 == 1, which means true
[-] tunawasherepoo@iusearchlinux.fyi 3 points 7 months ago

maybe bring back the hyper key! (Wikipedia link)

[-] tunawasherepoo@iusearchlinux.fyi 59 points 10 months ago

A more polished wayland with plasma 6 :)

1
submitted 10 months ago* (last edited 10 months ago) by tunawasherepoo@iusearchlinux.fyi to c/programming@programming.dev

I'm doing a solo coding project for work. It's a tool that you interact with similar to npm or cargo, where you can create a new workspace, run / test etc. Importantly, you have to be in the working directory for the commands to work...

Yesterday I decided to go home early to do remote work at home. Before i left i quickly did git add ., committed and pushed. I turned on my computer this morning, ran git pull, and noticed that... only some files got pushed, but more importantly none of the code i wrote yesterday made it through. Yup, I was still cd'd into my workspace folder and not at the project root, so I only committed the mock workspace folder 😄

Luckily i didnt write or change much this time, but lesson learned: git add -A or git commit -am '...'

[-] tunawasherepoo@iusearchlinux.fyi 3 points 11 months ago* (last edited 11 months ago)

Thanks :) I didn't see anyone mention the points made by the svelte guys https://news.ycombinator.com/item?id=35892250 which is a shame since I thought they made better points than the dramatic "type gymnastics" argument haha (i am biased toward type-safety, as long as there is idiomatic, algebraic data types w/ pattern matching)

Overall it sounds like a major change with a few minor/moderate benefits, but it's their choice and time will tell if it was worth it :P

[-] tunawasherepoo@iusearchlinux.fyi 17 points 11 months ago* (last edited 11 months ago)

I'm not really involved in javascript land so im parroting off of what i've heard for "why js over ts?"

  • it reduces file size since you no longer need to ship source maps
  • ctrl+clicking stuff will take you to the definition rather than an unhelpful type declaration
  • if you spot a bug in the library, you can edit the source directly than having to recompile/reimport
  • ts adds some unnecessary type "gymnastics" (can't speak for what this means), when all they really want is intellisense thru jsdoc

So mainly: devs who don't prefer strongly typed languages, and library devs who find typescript to be less transparent and more time consuming for new and old contributors than it's worth

[-] tunawasherepoo@iusearchlinux.fyi 10 points 11 months ago

huh, TIL brushing before is apparently better

I go 1, 3, 2 because it was easier for me to form the habit that way. I don't always have time for breakfast in the morning, so I anchor it to 1 instead of 2

Agreed. First LMG needs to clean house to make it a mentally safe work environment so there is never a repeat of Madison's case ... cause wtf. Second, an apology to Billet Labs ... cause wtf. Third, they need to slow down the pace of work so the employees can focus on quality and accuracy.

The rate at which they pump out content is, in my opinion, unsustainable for the employees and unsustainable for the semi-regular viewer as well

I've noticed my recommendations have largely stopped showing me LTT videos over the past several months, probably because youtube recognizes that im not watching a large % of their videos, so why would youtube recommend the next one? i feel like their pace is thinning out their semi-regular viewers and leaving a highly devout community. To me, the semi-regulars are what add balance to the community rather than it becoming an echo chamber.

I think by slowing down, LTT will be in a much healthier happier place in the long term, even if the numbers don't obviously show it. That said, idk if I can see their videos in the same light knowing what's happened behind the curtains. I think for rn, that might be it for me.

[-] tunawasherepoo@iusearchlinux.fyi 3 points 1 year ago* (last edited 1 year ago)

Lol, ok there might be a little more than what meets the eye, cuz when i type `&` (without amp;) it converted it to &amp; !!

new challenge- try to get it to render a & instead of &amp; inside of `` (or ``` ``` for bulk testing)

tried:

  • `&`
  • `&amp;`
  • `&#38;`
  • `&;`
  • `&<invisible character>`
  • `&divide;` still becomes `÷` weirdly enough

I kinda cheated cuz its not the same character... but I got it to show by using the japanese monospaced & (&)

test:

[-] tunawasherepoo@iusearchlinux.fyi 13 points 1 year ago* (last edited 1 year ago)

There's not enough symbols on my keyboard, so let's invent a code so we can write other symbols

  1. lets say & means start of code
  2. and say ; means end of code
  3. Between the start and end is the code

Now let's make some real symbols

  • ¢ can be &cent;
  • © can be &copy;
  • ÷ can be &divide;

I want to tell other people how to use our new code, but if I tell them to "just write &divide;" it'll turn my message into "just write ÷" !! So how can we fix this?

What if we make & its own code?

  • &amp; —> &
  • &amp;divide; —> &divide; ???

Yes! That'll work :)

This is how &amp; came to be, and it's specifically used in HTML as a way to write those symbols above (and escape other a few other symbols for similar reasons we did with &amp;)

As for why & shows up as &amp;, there are 2 main places I can see this happening:

  1. The editor you use to write it automatically converts an & —> &amp;. But the user typed in &amp; (making it &amp;amp;). I think this is most likely. I'm guessing the title of posts automatically do the conversion, but the post body and comments do not because it uses a raw markdown editor
  2. In some contexts the & specifically doesn't get converted? like how you can write `&amp;` to get &amp; as opposed to seeing

There's one for hearing too i think, so while i'm like a 4 when it comes to sight, i feel hearing the sound in my "minds ear" makes up for it. The limit is how much of the song I remember, otherwise i can loop a part of the song as much as I like, and switch to whatever other song I want :) (And not just songs but the sound of my gf's voice for example. Not as effortless as the songs, but still possible)

view more: next ›

tunawasherepoo

joined 1 year ago