home.social

#handling — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #handling, aggregated by home.social.

  1. THANK YOU ALL!!! - what errors should I check for and handle?

    Thank you all for your kind, patient and educative responses when I obnoxiously post amateur questions! 💙 While I cannot make any promises because of how my brain works, I am almost ready to continue reading *The C Programming Language, 2nd Edition”. I just want to experiment a little bit with error handling, specifially how to handle wrong input (char VS. int, etc.) and also to learn to indentify code that runs the risk of overflow/underflow.

    Question: what errors do you recommend checking for and handling?

    Meanwhile, thank you all! 🥰

    #include <stdio.h>  
    
    //Function declarations  
    int newPin();  
    int checkPin(int i);  
    
    //Program that prompts for, verifies and saves pins temporarily into an array  
    int main() {  
    
        //New pin  
        int pin = 0;  
    
        //History  
        int history[10] = {0,0,0,0,0,0,0,0,0,0};  
        int history_limit = 10;  
        int history_index = 0;  
    
        printf("Hello there! What would you like to do? (V)iew your saved pins, (S)ave a new pin or (E)xit: ");  
        int choice = 0;  
        while ((choice = getchar()) != EOF) {  
            switch (choice) {  
                case ('V'): { //Display saved pins  
                    printf("\nYour saved pins are:\n\n");  
                    for (int i = 0; i < history_limit; i++) printf("%d\n", history[i]);  
                    printf("\nWhat would you like to do next? (V)iew your saved pins, (S)ave a new pin or (E)xit: ");  
                    break;  
                }  
                case('S'): { //Prompt for and verify newly entered pin  
                    pin = newPin();  
                    if (checkPin(pin) == pin) {  
                        history[history_index] = pin;  
                        history_index++;  
                        if (history_index >= history_limit) history_index = 0;  
                    }  
                    break;  
                }  
                case ('E'): goto EXIT; //Terminate program  
            }  
        }  
    EXIT:   printf("\nGoodbye!\n");  
        return 0;  
    }  
    
    //Function definitions  
    //Prompt user to enter a new pin  
    int newPin() {  
    
        int pin = 0;  
    
        printf("This enter your pin: ");  
        scanf("%d", &pin);  
        getchar();  
    
        return pin;  
    }  
    
    //Verify newly entered pin  
    int checkPin (int i) {  
    
        int check = 0;  
    
        printf("Confirm your new pin: ");  
        while((scanf("%d", &check)) != EOF) {  
            if (check != i) printf("Mismatch! Confirm your new pin: ");  
            else if (check == i) { 
                printf("Success! Your new pin is %d. What would you like to do next? (V)iew your saved pins, (S)ave a new pin or (E)xit: ", i);  
                goto EXIT;  
            }  
        }  
    EXIT:   return i;  
    }  
    
    //TODO  
    //Error handling (overflow, input data type, other?)  
    
  2. Orbit is filling up fast. Now comes the awkward bit: pre-empting and handling a crisis.
    atlas.whatip.xyz/post.php?slug
    <p>Earth’s orbit is “on track for a catastrophe.” That was the rather alarming prediction of the
    #handling #filling #awkward #empting

  3. Orbit is filling up fast. Now comes the awkward bit: pre-empting and handling a crisis.
    atlas.whatip.xyz/post.php?slug
    <p>Earth’s orbit is “on track for a catastrophe.” That was the rather alarming prediction of the
    #handling #filling #awkward #empting

  4. Ett konstruktivt program för goda liv – intervju med Per Herngren om postprotest och Buen Vivir

    Vad händer när vi bygger det samhälle vi vill ha – här och nu? Per Herngren om Buen Vivir, ickevåld och performativ samhällsförändring. Lär dig hur gemenskaper skapar hållbara lösningar. Läs mer nu!

    godaliv.se/goda-liv/ett-konstr

  5. Ett konstruktivt program för goda liv – intervju med Per Herngren om postprotest och Buen Vivir

    Vad händer när vi bygger det samhälle vi vill ha – här och nu? Per Herngren om Buen Vivir, ickevåld och performativ samhällsförändring. Lär dig hur gemenskaper skapar hållbara lösningar. Läs mer nu!

    godaliv.se/goda-liv/ett-konstr

  6. Ett konstruktivt program för goda liv – intervju med Per Herngren om postprotest och Buen Vivir

    Vad händer när vi bygger det samhälle vi vill ha – här och nu? Per Herngren om Buen Vivir, ickevåld och performativ samhällsförändring. Lär dig hur gemenskaper skapar hållbara lösningar. Läs mer nu!

    godaliv.se/goda-liv/ett-konstr

  7. @veganguide

    Kære kammerater,

    Gå foran med et eksempel! Vi mangler et brunchhold (hver fjerde søndag). Brunchen må godt være vegansk og I får al den hjælp, I behøver for at komme i gang.

    Glæder os til at høre fra jer!

    #handling-gir-forvandling!

  8. @veganguide

    Kære kammerater,

    Gå foran med et eksempel! Vi mangler et brunchhold (hver fjerde søndag). Brunchen må godt være vegansk og I får al den hjælp, I behøver for at komme i gang.

    Glæder os til at høre fra jer!

    #handling-gir-forvandling!

  9. Puntata del 10/03/2026

    Il primo argomento della serata è stato lo sciopero transfemminista globale 2026, ne abbiamo parlato in collegamento telefonico con Chiara di Non Una Di Meno Torino: "Quest'anno sarà ancora sciopero transfemminista, lunedì 9 marzo, e l'8 sarà una giornata di lotta e mobilitazione. Due giorni potenti che fermino la produzione e la riproduzione sociale, che rendano visibile l'invisibile, che facciano emergere il sommerso e mettano al centro desiderio, rabbia e lotta. Per ribadire che […]

    radioblackout.org/podcast/punt

  10. Puntata del 10/03/2026

    Il primo argomento della serata è stato lo sciopero transfemminista globale 2026, ne abbiamo parlato in collegamento telefonico con Chiara di Non Una Di Meno Torino: "Quest'anno sarà ancora sciopero transfemminista, lunedì 9 marzo, e l'8 sarà una giornata di lotta e mobilitazione. Due giorni potenti che fermino la produzione e la riproduzione sociale, che rendano visibile l'invisibile, che facciano emergere il sommerso e mettano al centro desiderio, rabbia e lotta. Per ribadire che […]

    radioblackout.org/podcast/punt

  11. Puntata del 10/03/2026

    Il primo argomento della serata è stato lo sciopero transfemminista globale 2026, ne abbiamo parlato in collegamento telefonico con Chiara di Non Una Di Meno Torino: "Quest'anno sarà ancora sciopero transfemminista, lunedì 9 marzo, e l'8 sarà una giornata di lotta e mobilitazione. Due giorni potenti che fermino la produzione e la riproduzione sociale, che rendano visibile l'invisibile, che facciano emergere il sommerso e mettano al centro desiderio, rabbia e lotta. Per ribadire che […]

    radioblackout.org/podcast/punt

  12. Puntata del 10/03/2026

    Il primo argomento della serata è stato lo sciopero transfemminista globale 2026, ne abbiamo parlato in collegamento telefonico con Chiara di Non Una Di Meno Torino: "Quest'anno sarà ancora sciopero transfemminista, lunedì 9 marzo, e l'8 sarà una giornata di lotta e mobilitazione. Due giorni potenti che fermino la produzione e la riproduzione sociale, che rendano visibile l'invisibile, che facciano emergere il sommerso e mettano al centro desiderio, rabbia e lotta. Per ribadire che […]

    radioblackout.org/podcast/punt

  13. Puntata del 10/03/2026

    Il primo argomento della serata è stato lo sciopero transfemminista globale 2026, ne abbiamo parlato in collegamento telefonico con Chiara di Non Una Di Meno Torino: "Quest'anno sarà ancora sciopero transfemminista, lunedì 9 marzo, e l'8 sarà una giornata di lotta e mobilitazione. Due giorni potenti che fermino la produzione e la riproduzione sociale, che rendano visibile l'invisibile, che facciano emergere il sommerso e mettano al centro desiderio, rabbia e lotta. Per ribadire che […]

    radioblackout.org/podcast/punt

  14. On the fourth anniversary of Russia's invasion of Ukraine, Foreign Minister Andrij Sybiha voiced sharp criticism of the West's approach to Russia and called for... news.osna.fm/?p=35745 | #news #criticizes #eu #guarantee #handling

  15. On the fourth anniversary of Russia's invasion of Ukraine, Foreign Minister Andrij Sybiha voiced sharp criticism of the West's approach to Russia and called for... news.osna.fm/?p=35745 | #news #criticizes #eu #guarantee #handling

  16. On the fourth anniversary of Russia's invasion of Ukraine, Foreign Minister Andrij Sybiha voiced sharp criticism of the West's approach to Russia and called for... news.osna.fm/?p=35745 | #news #criticizes #eu #guarantee #handling

  17. On the fourth anniversary of Russia's invasion of Ukraine, Foreign Minister Andrij Sybiha voiced sharp criticism of the West's approach to Russia and called for... news.osna.fm/?p=35745 | #news #criticizes #eu #guarantee #handling

  18. 100 Quiz To Learn Rust (Rust MCQ 2026)

    Attempt 100 Rust quiz questions to test your knowledge and improve your Rust skills. This Rust MCQ 2026 quiz helps beginners and learners practice important Rust concepts like ownership, borrowing, traits, lifetimes, Option, Result, error handling, etc.

    🦀 codeforgeek.com/100-rust-quiz-

    #rust #rustlang #coding #code #learnrust #learncoding #ownership #borrowing #traits #lifetimes #Option #Result #error #handling #quiz

  19. 100 Quiz To Learn Rust (Rust MCQ 2026)

    Attempt 100 Rust quiz questions to test your knowledge and improve your Rust skills. This Rust MCQ 2026 quiz helps beginners and learners practice important Rust concepts like ownership, borrowing, traits, lifetimes, Option, Result, error handling, etc.

    🦀 codeforgeek.com/100-rust-quiz-

    #rust #rustlang #coding #code #learnrust #learncoding #ownership #borrowing #traits #lifetimes #Option #Result #error #handling #quiz

  20. 100 Quiz To Learn Rust (Rust MCQ 2026)

    Attempt 100 Rust quiz questions to test your knowledge and improve your Rust skills. This Rust MCQ 2026 quiz helps beginners and learners practice important Rust concepts like ownership, borrowing, traits, lifetimes, Option, Result, error handling, etc.

    🦀 codeforgeek.com/100-rust-quiz-

    #rust #rustlang #coding #code #learnrust #learncoding #ownership #borrowing #traits #lifetimes #Option #Result #error #handling #quiz

  21. 100 Quiz To Learn Rust (Rust MCQ 2026)

    Attempt 100 Rust quiz questions to test your knowledge and improve your Rust skills. This Rust MCQ 2026 quiz helps beginners and learners practice important Rust concepts like ownership, borrowing, traits, lifetimes, Option, Result, error handling, etc.

    🦀 codeforgeek.com/100-rust-quiz-

    #rust #rustlang #coding #code #learnrust #learncoding #ownership #borrowing #traits #lifetimes #Option #Result #error #handling #quiz

  22. 100 Quiz To Learn Rust (Rust MCQ 2026)

    Attempt 100 Rust quiz questions to test your knowledge and improve your Rust skills. This Rust MCQ 2026 quiz helps beginners and learners practice important Rust concepts like ownership, borrowing, traits, lifetimes, Option, Result, error handling, etc.

    🦀 codeforgeek.com/100-rust-quiz-

    #rust #rustlang #coding #code #learnrust #learncoding #ownership #borrowing #traits #lifetimes #Option #Result #error #handling #quiz

  23. Ah yes, because who doesn't want to spend their weekend parsing ELF headers and translating memory access while pretending they understand #Armv7 CPU emulation? 🤓 By the end of this 8,336-word epic, you'll be the life of the party with your newfound ability to forward syscalls and handle exception exits. 🎉 #Goals
    xnacly.me/posts/2025/building- #ELFheaders #emulation #syscall #handling #techenthusiast #weekendproject #HackerNews #ngated

  24. Ah yes, because who doesn't want to spend their weekend parsing ELF headers and translating memory access while pretending they understand #Armv7 CPU emulation? 🤓 By the end of this 8,336-word epic, you'll be the life of the party with your newfound ability to forward syscalls and handle exception exits. 🎉 #Goals
    xnacly.me/posts/2025/building- #ELFheaders #emulation #syscall #handling #techenthusiast #weekendproject #HackerNews #ngated

  25. Ah yes, because who doesn't want to spend their weekend parsing ELF headers and translating memory access while pretending they understand #Armv7 CPU emulation? 🤓 By the end of this 8,336-word epic, you'll be the life of the party with your newfound ability to forward syscalls and handle exception exits. 🎉 #Goals
    xnacly.me/posts/2025/building- #ELFheaders #emulation #syscall #handling #techenthusiast #weekendproject #HackerNews #ngated

  26. Ah yes, because who doesn't want to spend their weekend parsing ELF headers and translating memory access while pretending they understand #Armv7 CPU emulation? 🤓 By the end of this 8,336-word epic, you'll be the life of the party with your newfound ability to forward syscalls and handle exception exits. 🎉 #Goals
    xnacly.me/posts/2025/building- #ELFheaders #emulation #syscall #handling #techenthusiast #weekendproject #HackerNews #ngated

  27. Ryanair’s ground staff will strike this weekend at 24 Spanish airports
    The labour dispute between Ryanair and its handling staff in Spain is intensifying. The union UGT has confirmed that this weekend, on 23 and 24 August, the second round of strikes will take place at 24 airports operated by Aena, including those in Fuer
    fuerteventura.world/el-persona
    #airline #American #British #dispute #Emirates #handling #Menzies #situation #Turkish #workplace
    #Fuerteventura