linuxmemes linuxmemes Which DE/WM do you prefer?
Jump
  • tunawasherepoo tunawasherepoo 6 months ago 98%

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

    63
  • casualconversation [Outdated, please look at pinned post] Casual Conversation What is your current wallpaper? Where did you find it?
    Jump
  • tunawasherepoo tunawasherepoo 6 months ago 100%

    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

    9
  • linux Linux What does your desktop look like?
    Jump
  • tunawasherepoo tunawasherepoo 6 months ago 100%

    try https://github.com/zhichaoh/catppuccin-wallpapers/blob/main/landscapes/tropic_island_morning.jpg

    if you look in the same folder there's also ones for day, evening, and night

    3
  • tunawasherepoo tunawasherepoo 7 months ago 50%

    What is the freakout?!?!?!?!?!?!?!? Maybe i want to read other people's code in a wacky comic-looking silly goofy totally awesome monospaced font!?!?!?!

    0
  • programmer_humor Programmer Humor Me after I got fired
    Jump
  • tunawasherepoo tunawasherepoo 7 months ago 100%

    __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
    
    28
  • linux Linux Microsoft says a Copilot key is coming to keyboards on Windows PCs starting this month
    Jump
  • tunawasherepoo tunawasherepoo 9 months ago 100%

    maybe bring back the hyper key! (Wikipedia link)

    3
  • linux Linux Bluez trying to connect to my PC?
    Jump
  • tunawasherepoo tunawasherepoo 11 months ago 100%

    Sorry 😅 I probably could have taken a closer look at other comments, but in any case this paints a nice picture for me, thank you :)

    Edit: Actually I decided to boot into Windows and test this a little myself, and turns out when bluetooth is on it is discoverable (Windows is a peripheral, the BlueZ device is a central wanting to connect). When i connected from my phone to my computer, It seemed more accurate to what you described too. If you dont use bluetooth disable it, or make your device not discoverable. 😅

    It does help to know it was a notification and to know what was in it. I was able to find an image which looked similar and led me to find a Windows feature called Swift Pair. It lets you connect to a bluetooth device via notification, rather than in the settings. You can try disabling Swift Pair if it is enabled.

    Here is my conclusion:

    As others said, BlueZ is essentially the program that allows bluetooth to run on Linux. The name alone doesn't tell you if the person behind has malicious intent.

    It's possible that somebody was making a swift pair compatible device using Linux. Maybe they thought 5AM was early enough that the swift pair notification would only show up on their computer since they wouldn't be able to prevent other people from seeing it otherwise 🤷

    It could also just be some device rebroadcasting itself on a clock. I'm not sure why or what you would do with this other than to annoy people?

    If you especially don't trust your neighbors and want to imagine a worst case scenario, it could be spoofing something like a bluetooth keyboard, rebroadcasting until someone connects, and runs a series of shortcuts / commands to infect your computer to replicate the virus further. ((Issue is, it doesn't make sense they'd develop on Linux with BlueZ even though the virus could only propagate on Windows. Kinda fun to think about regardless though))

    I hope that answers your question :)

    2
  • linux Linux Bluez trying to connect to my PC?
    Jump
  • tunawasherepoo tunawasherepoo 11 months ago 100%

    I think i'm still confused on how you came to know the device was trying to connect to you :D Was there a Windows notification? Did it ask you to enter or confirm a code? Were you using bluetooth in general at the time?

    I guess my main proposal is that central device can't begin to initiate to another central device. In the discovery phase, a central device is like an ear, and a peripheral device is like a mouth. Ears can't speak to other ears, and mouths can't listen to other mouths. Mouths don't know if ears are even there to listen, only the ears can initiate a connection.

    In most cases Windows is like an ear. Neither a central nor peripheral can initiate a connection to you. Only you can initiate a connection to some other peripheral.

    However Windows can act like a mouth under specific circumstances, specifically I found that you can use your computer as a hotspot and share over bluetooth. Sharing over bluetooth means Windows opens its bluetooth mouth to tell anyone willing to listen that it is connectable. So if you were doing something bluetooth related at the time it could have allowed a foreign (central) device to initiate a connection

    1
  • linux Linux Bluez trying to connect to my PC?
    Jump
  • tunawasherepoo tunawasherepoo 11 months ago 100%

    This does sound very unusual that it would try to connect, so I wanted to add more context about how bluetooth works, which might help figure out where to look next or if you should look into it at all

    In bluetooth there is the idea of a central device and peripheral device. Peripheral devices advertise of their existence in hopes that a central device establishes a connection. The central device always has the final say. For example, a phone (central device) connecting to bluetooth headphones (peripheral device).

    Your computer should really only act as a central device. So you get to choose which devices are allowed to connect .. but there are two exceptions:

    • a device can auto-connect to a previously paired device. Maybe you accidentally paired with the Linux device, or thought it was another device. You can unpair / forget the device if you did.
    • special software which auto-connects to devices. For example the nintendo switch auto-connects to controllers when the "change grip/order" menu is open. I think this would be very unusual, even for malware.

    Technically, the bluetooth spec does allow bluetooth devices to be a central and peripheral at the same time. In theory if Windows is advertising itself as a peripheral, then the Linux device could connect as a central. The issue is, I don't know if or when Windows is sending these bluetooth advertising packets. Maybe when bluetooth settings are open or if you have a wifi hotspot enabled?

    Also, not all devices support running both modes at the same time, so you can rule it out if the device can't be a peripheral. According to this guide, this is how you check that: https://www.howto-connect.com/see-if-windows-10-pc-supports-bluetooth-low-energy-peripheral-role/

    If it just appeared in the connectable device list, then there is nothing to worry about really, bluetooth has some range to it, and it could just be a neighbor's device.

    2
  • linux Linux What feature are you dying for to come to your DE - Linux?
    Jump
  • tunawasherepoo tunawasherepoo 11 months ago 100%

    A more polished wayland with plasma 6 :)

    59
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearSN
    snippets tunawasherepoo 11 months ago 100%
    KDE cli clipboard

    `$ cat /usr/local/bin/c` ```sh #!/bin/sh if test -n "$1"; then STDIN="${1}" elif test ! -t 0; then STDIN=$(cat) else echo 'Usage:' echo ' c &lt; /path/to/file' echo ' c text-to-be-copied' echo ' command | c' exit 1 fi qdbus org.kde.klipper /klipper setClipboardContents "$STDIN" ``` `$ cat /usr/local/bin/v` ```sh #!/bin/sh qdbus org.kde.klipper /klipper getClipboardContents ``` This is what I like to use :)

    1
    0
    programming
    Programming tunawasherepoo 11 months ago 100%
    did git add . in subfolder 🤡

    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 '...'`

    1
    3
    chat chat Do you use xorg or wayland?
    Jump
  • tunawasherepoo tunawasherepoo 12 months ago 100%

    Been running plasma wayland on my desktop.. and I'm glad to say it's working fine. My GPU is just the intel integrated gpu on my i7 11700. I use two monitors, one is new @165hz, the other is older, prob 60hz. I quite like the mixed refresh rate :) The issues I had before with Wayland aren't relevant to me right now (but still unfixed). I see myself going full Wayland in Plasma 6

    1
  • chat chat How often do you update your OS?
    Jump
  • tunawasherepoo tunawasherepoo 12 months ago 100%

    No problem haha. I think the Arch Wiki is full of neat little tricks like that, definitely give it a check for other things ^^. In this case I actually learned about it from a high school teacher who ran Arch. I was sarcastically complaining that Arch didn't update fast enough because the update Discord wanted wasn't in the repos. So to both help me and play along, my teacher linked the wiki page and said RTFM 🤣

    1
  • chat chat How often do you update your OS?
    Jump
  • tunawasherepoo tunawasherepoo 12 months ago 100%

    Yup lol. Although just now I discovered that the Arch Wiki changed a section on Discord where you can disable the update check (before, it was written on how to spoof your version which I used a couple times)

    New emojis don't roll out very frequently, from what I understand there's a whole process it goes through and then it sits in a queue for like 2 years. Sometimes I use the brand new ones, other times it's other people who use them and I want to see the emojis myself. Text ones are still just as valid though o(^-^)o

    2
  • chat chat How often do you update your OS?
    Jump
  • tunawasherepoo tunawasherepoo 12 months ago 100%

    Desktop: (Arch) about 2-3 times a month, but used to be 1-2 times a week when I wasn't working. I also usually update when Discord stops working. Sometimes asap when there's a security fix. Otherwise i update for cool new stuff or because it's been a while :P

    Laptop: (Debian) 50/50 chance when Discover says there's updates available

    Phone: (ios) usually when new emojis are available 💀

    1
  • outoftheloop Out of the loop What's going on with typescript?
    Jump
  • tunawasherepoo tunawasherepoo 1 year ago 100%

    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

    3
  • outoftheloop Out of the loop What's going on with typescript?
    Jump
  • tunawasherepoo tunawasherepoo 1 year ago 90%

    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

    17
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearCH
    chat tunawasherepoo 1 year ago 100%
    Whatcha been up to?
    1
    0
    asklemmy Ask Lemmy Why do people brush their teeth first thing in the morning?
    Jump
  • tunawasherepoo tunawasherepoo 1 year ago 100%

    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

    10
  • memes Memes Sonic has a solution
    Jump
  • tunawasherepoo tunawasherepoo 1 year ago 100%

    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.

    12
  • linuxmemes linuxmemes I'd love to talk to you about the one true operating system
    Jump
  • tunawasherepoo tunawasherepoo 1 year ago 100%

    me too fyi

    2
  • explainlikeimfive Explain Like I'm Five What happens to the ampersand on the internet?
    Jump
  • tunawasherepoo tunawasherepoo 1 year ago 100%

    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:

    3
  • explainlikeimfive Explain Like I'm Five What happens to the ampersand on the internet?
    Jump
  • tunawasherepoo tunawasherepoo 1 year ago 100%

    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
    13
  • explainlikeimfive Explain Like I'm Five What happens to the ampersand on the internet?
    Jump
  • tunawasherepoo tunawasherepoo 1 year ago 100%

    hmm what if you use the escape code to write the escape code :P

    &amp;

    written as &amp;amp;

    ... written as &amp;amp;amp;

    1
  • linuxmemes linuxmemes Every time.
    Jump
  • tunawasherepoo tunawasherepoo 1 year ago 100%

    Mint is great, i'd say stick to it if it's working! :P

    Unless you want to branch out, I don't think it's much of a failure to return back home to a "noob distro." To my eyes no such thing exists, they are just working operating systems and there's nothing noob or beginner about that

    I do use Arch, but because I've had bad luck with (proprietary) OS's in general, so being able to choose exactly what to install and being able to fix it myself (if something ever happens) is something I value a lot. But I will say it takes a delicate type of nerd to handle that 🤣

    1
  • linux Linux My Debian 12 all of a sudden started freezing up on me. any kind folks that can help troubleshoot?
    Jump
  • tunawasherepoo tunawasherepoo 1 year ago 100%

    Just throwing another suggestion to look for, maybe check your RAM usage? When I was first trying Linux i was using a persistent live iso, and it would randomly lock up like you describe. Just about the only functionality I had was to REISUB lol. It turned out my OOM services weren't closing programs until it was too late ... or maybe it was trying to put memory into swap space that didn't exist. Who knows. Try opening firefox a bunch of times and maybe see what happens

    This type of thing shouldn't happen with a normal setup though.

    I hope you can figure it out :)

    2
  • asklemmy Asklemmy What niche reddit community do you want to see find a place on the fediverse?
    Jump
  • tunawasherepoo tunawasherepoo 1 year ago 100%

    agreed. r/infp especially, i always felt more at home there (even if my interests are more intp-like)

    2
  • tunawasherepoo tunawasherepoo 1 year ago 100%

    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)

    3
  • gaming Gaming *Permanently Deleted*
    Jump
  • tunawasherepoo tunawasherepoo 1 year ago 100%

    A friend of mine got me Sea of Thieves and Ark. Never seen gameplay or played them before soooo we'll see how it goes! I'm also planning on picking up Bread & Fred to play with my SO. Well, after I beat the demo (singleplayer). We were doing co-op and it's tough! 🤣

    2
  • gaming Gaming *Permanently Deleted*
    Jump
  • tunawasherepoo tunawasherepoo 1 year ago 100%

    Yea! Ninja Kiwi really found their golden egg-laying goose with Bloons. I first played btd3 in elementary school when i was like 8 (praise coolmathgames 🤣), and I guess I've been a fan ever since

    2
  • gaming Gaming *Permanently Deleted*
    Jump
  • tunawasherepoo tunawasherepoo 1 year ago 100%

    I've recently been into with Bloons games again, specifically Bloons Monkey City. If you've never played, you basically capture tiles on a map, each tile varies in difficulty, getting harder the further you get out. You have to plan on what upgrades to give your monkeys, cause you have a limited amount of space and power, and city cash doesn't trickle in very fast. ((And if you've never played a bloons game, its tower defense. You place monke, monke pop bloon))

    It's a free-to-play game, but you can definitely have as much fun being a free player than paying players. So things like continues, speed-ups, extra city cash, and cosmetics are just some conveniences. Steam version has no ads, and works perfectly under wine, although on mobile there's very few forced ads, the rest give you a small bonus (usually a time speedup bonus)

    I first played it about 6ish years ago and got to a point where it felt hard to progress cause my strategies kinda sucked, and I wasn't too brave to venture out into harder tiles. However in this play-through I've researched some strategies and it's been a blast. My #1 suggestion for new players is do not underestimate the ice monkey upgrades. Both tier 3 upgrades help tremendously. Ice spikes is huge in earlier rounds and later rounds. How the upgrade works is when a frozen bloon pops, it sends out shards. Those shards can pop other frozen bloons, which send out those shards, etc etc and so it's like unleashing an atomic bomb Lol.

    I've gotten pretty close to the edge of the map. Soon i'll hit the big milestone, one that effectively says i can conquer any tile in the whole map :)

    It's not a recently released game by any means but sometimes it's fun to revisit them, especially to redeem yourself

    2