Wait until you write code that is self-hosting!

Weird. I used to do video games and I used to run around in the forest building tree houses or, at the rare occasion, snatch a few bag of potato chips from our local potato chips factory. The Legend of Zelda, tree houses and potato chips. What a great life. This only changed when I was finally admitted to a musical school at the age of 15. ๐ŸŽน Today, at the age of 37, I can only game for an hour before my back starts aching. That's when I go outside and touch grass for a couple of hours.

It's late and I need to sleep so I'll just paste some links for now, but you are talking about such a wide variety of issues that's it kind of hard to give a short, succinct answer.

Some privacy tips that I follow, by Naomi Brockwell: https://www.youtube.com/playlist?list=PLt3zZ-N423gXV-0pdxnRn-nw0WzVKh4NY

Same, but by Rob Braxman: https://www.youtube.com/playlist?list=PLKqVMfkpsufHUWAwU9nnkHnhSRH1TBgF3

14

Just wanted to share a pretty sic "notebook kit" that I found at a thrift store. I didn't buy it since I don't need it (I'm carrying around an XTRFY M42 RGB PINK and a Deltaco WK90B TKL). But the fact that it even has RJ11 connectors just blew me away.

Mods: Feel free to remove this post if it doesn't fit here

1

37, male.

I live in Europe, born and raised here too. Never really felt genuine joy or purpose in life until I moved to Japan, where I immersed myself in the language and culture. I moved back to Europe after taking my Master's degree in education, because I had a wife at the time and it's indisputably socioeconomically easier to have a family in my country, compared to Japan. We got divorced even before she got her residence permit. We had a good run. Eight years.

I've been back to Europe for six years now. I haven't felt happiness or purpose since. The contrast is just bizarre. To the point where it feels like a bad joke. In Japan I was a student, in my own country I work full time. Sure. But come on... I know that life isn't easy and that you can't always be happy and euphoric. I would accept being in some sort of "neutral" state 75% of the time and happy 25% of the time. But I'm sad, lonely and angry 90% of the time and "neutral" 10% of the time. I was diagnosed with medium to severe depression a year ago. Go figure. The antidepressants maybe have taken some of the edges off my feelings and I have learned a lot from my therapist.

But I am still sad. The depression seems unaffected. I still project this seemingly unfounded anger and hatred towards myself. What the heck were those euphoric years in Japan?

Anyway, I have spent about โ‚ฌ100 per therapy session for the last year. Once a week the first six months and then once every second week the last six months. I'm considering taking a break. For the money and to explore other options.

I would recommend formulating your threat model before doing anything else. There is a lot of materials on the topic on the world wide web, but for starters, ask yourself and answer the question, what information about yourself would you like to keep secret and why.

Again, before anything else, subscribe to an email alias service - maybe there are free ones out there too, I don't know. This way, you don't have to share your real email address and you can turn off or even delete that attack vector at anytime.*

Finally, regarding Bandcamp, I have never uses it myself so my understanding of your situation is poor to say the least, but are not able to simply save the links in a text file? Again, I'm not trying to play down the situation, I just don't understand it.

*This is basically what I do with almost all my services that need registration: I give them an email alias, a randomly generated cyberpunk name and create a 30 characters long password with a password manager. The only services where this doesn't anonymize you are those that require your payment information, which is often tied to your real identity. Had I been living in the US, I would have used those anonymous prepaid debit cards that work like email aliases, but for your debit or credit cards.

Personally, I don't hate this book:

https://tldp.org/LDP/intro-linux/intro-linux.pdf

It's somewhat outdated, for instance, it still assumes that your first process is init while most of us have transitioned to systemd, but I still find to book very educational in terms of... "Linux mentality"? Give it a try! :)

4
submitted 1 week ago* (last edited 1 week ago) by emotional_soup_88@programming.dev to c/android@lemmy.world

~~While I usually don't condone proprietary software or hardware, I have to give a thumbs up to the One UI/Samsung devs.~~

I was "playing around" with my Samsung S23 - which by the way I have debloated to the point of it feeling snappier than all the bleeding edge iPhones - I "accidentally" messed up my recovery partition. Here comes the thumbs up part.

Instead of falling into a bootloop or becoming bricked in any way, some sort of failsafe mechanism kicked in, sending the user (me) to the download mode. So instead of leaving me with a brick containing all my music, contacts, banking stuff and, well, my everyday life, it allowed me to reflash a working recovery partition, albeit not the official one but TWRP since I - in my panicked state - could not find an image of just the Samsung recovery (I would have had to reflash all of Android...).

WELL DONE programming it so that it takes you to download mode! :D

PS: If you're going to experiment, don't do it on your daily driver. Don't be like me.

22
submitted 2 weeks ago* (last edited 2 weeks ago) by emotional_soup_88@programming.dev to c/gaming@lemmy.ml

I mostly play open world games such as the Horizon series, The Elder Scrolls series, God of War, Assassin's Creed, etc. You get the picture.

I have used consumer grade PAs (colloquially "speakers"), studio monitors, in-ear headphones and now, finally, I am trying out over-ear headphones.

I don't remember what PAs I used to use, but my studio monitors were the German Adam A5X. Gaming with these, I could feel the ambience, soundtrack or whatever sound resonating in my chest. Boss battles were intimidating on a new level. The A5Xs are now "retired", working part-time for my pseudo home theater (just an old T480 - connected to a TV - being used as a media player to play back Linux ISOs that reside on my server). The in-ear headphones were the, again, German Sennheiser IE-900. The sound was out of this world. At least the balance. The immersion level of any game just skyrocketed. But the immersion was somehow limited or confined to my ears or to their immediate surroundings. Now, finally, I am gaming with the, yet again, German over-ear headphones DT 700 PRO X of beyerdynamics. The sound quality of the Adam A5X and the immersion of the Sennheiser IE-900 are all there, but instead of being limited to my ears, it's like the sound is perforating all the cavities in my head. I can taste the sound. The band or orchestra seems to be right there, behind me. I don't think I will be going back to anything else. Hot damn.

LOL AdAway blocked liberux.net wtf๐Ÿ˜‚ but thanks! The specs are surprisingly good too! :O

Right, then I'll just stay on my current build, being careful not to flash an OS update ๐Ÿ˜ˆ

But in all seriousness, couldn't one manage without OS updates - relying on only proper cyber hygiene and opsec - until a more viable solution comes up? ๐Ÿค”

89

If I am already using a rooted but proprietary smartphone (Samsung Galaxy S23), downloading my apps from other sources than Google Play, how would Google be able to control what I do with it? If necessary, I could just stay on my current OS build as well. All in all, while politically and philosophically, Google's new policy is bad, I don't feel threatened by it with my current understand of the situation and technology...

Thank you so much! :D Yeah, I noticed there were no remainders. I'll try with float and see what I can come up with.

Looking into it now! Thanks! :)

Signing off now, but I did have the strength left to do this:

else if (choice == 4) {
                        if (num2 == 0) printf("\nhttps://en.wikipedia.org/wiki/Division_by_zero\n\n");
                        else {
                        memory = num1 / num2;
                        printf("\nThe quotient of %d and %d is %d\n\n", num1, num2, memory);
                        }
                }

Cheers!

Thank you! I really appreciate your guidance! It almost feels like you could have experience from teaching or the likes, since you are so good at explaining! Or maybe that just comes with being a senior SE? Either way, thanks again!

97
submitted 3 weeks ago* (last edited 3 weeks ago) by emotional_soup_88@programming.dev to c/programming@programming.dev

Please excuse - and do not hesitate to point out - any violation against etiquette that I might be committing here... I am new here.

I started to learn C a few months ago as a hobby as part of a bigger project, namely to learn about computers in general. I have had so much fun reading Code - The Hidden Language of Computer Hardware and Software by Charles Petzold. But that's another story...

I was about to buy a few new SSDs and needed to do some budgeting. Instead of using my phone's calculator, I decided to try to write a calculating program in C, because I hadn't touched programming for some weeks or months because life and I wanted to see if my knowledge had matured some.

The goal was to have it do the four standard arithmetics and also save the last result in a variable, which I just called "memory" for lack of bette phrasing on my part. Maybe next week I'll figure out how to make it possible to use the value saved in memory instead of having to type a number.

I welcome any constructive criticism on how and why this code is up to code or not(sorry...), if it can be improved and how or even if it's just garbage and why that is. I am just proud that it worked without gcc throwing any errors.

#include <stdio.h>

int main(void) {

        int num1 = 0;
        int num2 = 0;
        int choice = 0;
        int memory = 0;

        printf("Welcome to the Calculator of the century!\n\n");

        while (1) {
                printf("What would you like to do?\n\n");
                printf("(1) Add two numbers\n(2) Subtract two numbers\n(3) Multiply two numbers\n(4) Divide two numbers\n(5) Show memory\n(6) Exit\n\n");
                printf("Enter 1, 2, 3, 4, 5 or 6: ");
                scanf("%d", &choice);

                if (choice >= 6 || choice < 1) break;

                if (choice == 5) {
                        printf("\n%d in memory.\n\n", memory);
                } else if (choice < 5 || choice > 0) {
                        printf("\nEnter the first number: ");
                        scanf("%d", &num1);
                        printf("Enter the second number: ");
                        scanf("%d", &num2);
                }

                if (choice == 1) {
                        printf("\nThe sum of %d and %d is %d\n\n", num1, num2, num1 + num2);
                        memory = num1 + num2;
                } else if (choice == 2) {
                        printf("\nThe difference of %d and %d is %d\n\n", num1, num2, num1 - num2);
                        memory = num1 - num2;
                } else if (choice == 3) {
                        printf("\nThe product of %d and %d is %d\n\n", num1, num2, num1 * num2);
                        memory = num1 * num2;
                } else if (choice == 4) {
                        printf("\nThe quotient of %d and %d is %d\n\n", num1, num2, num1 / num2);
                        memory = num1 / num2;
                }
        }

        printf("\nWe hope to see you soon again!\n");
        return 0;
}
view more: next โ€บ

emotional_soup_88

joined 3 weeks ago