home.social

#codinghelp — Public Fediverse posts

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

  1. I seems like the string in command is being cut off. The /serio2/speed is getting cut off for some reason. #codinghelp

  2. I'm working on tool to allow you to easily change your Trackpoint settings on the Lenovo thinkpads. The little nipple. I'm writing it in C to help me learn the language more. I'm having a problem I can't quite put my paw on.

    The code responsible for changing the setting is:

    int set_nipple_speed(int speed) {
      if (speed <= 0) {
        printf("Invalid value %d speed must be greater than 0", speed);
        return 1;
      }
    
      char command[100];
      char * path = get_trackpoint_path();
      sprintf(command, "echo %d | sudo tee %s/serio2/speed", speed, path);
      return system(command);
    }

    I'm getting:
    tee: /sys/devices/platform/i8042/serio1: Is a directory
    33
    sh: 2: /serio2/speed: not found

    Oh and theres a function being called to get the base path to get to the trackpoint settings:
    char *get_trackpoint_path() {
      FILE *pipe_stream =
          popen("find /sys/devices/platform/i8042 -name name | xargs grep -Fl "
                "TrackPoint | sed 's/\\/input\\/input[0-9]*\\/name$//'",
                "r");
      char path[2048];
      if (pipe_stream == NULL) {
        printf("Failed to run command to find trackpoint path");
        return NULL;
      }
      fgets(path, sizeof(path), pipe_stream);
      pclose(pipe_stream);
      char *path_ptr = path;
      return path_ptr;
    }

    Would anyone be willing to help me
    #debug this? I'm pretty new to C. Project is here #codinghelp

  3. I'm working on tool to allow you to easily change your Trackpoint settings on the Lenovo thinkpads. The little nipple. I'm writing it in C to help me learn the language more. I'm having a problem I can't quite put my paw on.

    The code responsible for changing the setting is:

    int set_nipple_speed(int speed) {
      if (speed <= 0) {
        printf("Invalid value %d speed must be greater than 0", speed);
        return 1;
      }
    
      char command[100];
      char * path = get_trackpoint_path();
      sprintf(command, "echo %d | sudo tee %s/serio2/speed", speed, path);
      return system(command);
    }

    I'm getting:
    tee: /sys/devices/platform/i8042/serio1: Is a directory
    33
    sh: 2: /serio2/speed: not found

    Oh and theres a function being called to get the base path to get to the trackpoint settings:
    char *get_trackpoint_path() {
      FILE *pipe_stream =
          popen("find /sys/devices/platform/i8042 -name name | xargs grep -Fl "
                "TrackPoint | sed 's/\\/input\\/input[0-9]*\\/name$//'",
                "r");
      char path[2048];
      if (pipe_stream == NULL) {
        printf("Failed to run command to find trackpoint path");
        return NULL;
      }
      fgets(path, sizeof(path), pipe_stream);
      pclose(pipe_stream);
      char *path_ptr = path;
      return path_ptr;
    }

    Would anyone be willing to help me
    #debug this? I'm pretty new to C. Project is here #codinghelp

  4. I'm working on tool to allow you to easily change your Trackpoint settings on the Lenovo thinkpads. The little nipple. I'm writing it in C to help me learn the language more. I'm having a problem I can't quite put my paw on.

    The code responsible for changing the setting is:

    int set_nipple_speed(int speed) {
      if (speed <= 0) {
        printf("Invalid value %d speed must be greater than 0", speed);
        return 1;
      }
    
      char command[100];
      char * path = get_trackpoint_path();
      sprintf(command, "echo %d | sudo tee %s/serio2/speed", speed, path);
      return system(command);
    }

    I'm getting:
    tee: /sys/devices/platform/i8042/serio1: Is a directory
    33
    sh: 2: /serio2/speed: not found

    Oh and theres a function being called to get the base path to get to the trackpoint settings:
    char *get_trackpoint_path() {
      FILE *pipe_stream =
          popen("find /sys/devices/platform/i8042 -name name | xargs grep -Fl "
                "TrackPoint | sed 's/\\/input\\/input[0-9]*\\/name$//'",
                "r");
      char path[2048];
      if (pipe_stream == NULL) {
        printf("Failed to run command to find trackpoint path");
        return NULL;
      }
      fgets(path, sizeof(path), pipe_stream);
      pclose(pipe_stream);
      char *path_ptr = path;
      return path_ptr;
    }

    Would anyone be willing to help me
    #debug this? I'm pretty new to C. Project is here #codinghelp

  5. I'm working on tool to allow you to easily change your Trackpoint settings on the Lenovo thinkpads. The little nipple. I'm writing it in C to help me learn the language more. I'm having a problem I can't quite put my paw on.

    The code responsible for changing the setting is:

    int set_nipple_speed(int speed) {
      if (speed <= 0) {
        printf("Invalid value %d speed must be greater than 0", speed);
        return 1;
      }
    
      char command[100];
      char * path = get_trackpoint_path();
      sprintf(command, "echo %d | sudo tee %s/serio2/speed", speed, path);
      return system(command);
    }

    I'm getting:
    tee: /sys/devices/platform/i8042/serio1: Is a directory
    33
    sh: 2: /serio2/speed: not found

    Oh and theres a function being called to get the base path to get to the trackpoint settings:
    char *get_trackpoint_path() {
      FILE *pipe_stream =
          popen("find /sys/devices/platform/i8042 -name name | xargs grep -Fl "
                "TrackPoint | sed 's/\\/input\\/input[0-9]*\\/name$//'",
                "r");
      char path[2048];
      if (pipe_stream == NULL) {
        printf("Failed to run command to find trackpoint path");
        return NULL;
      }
      fgets(path, sizeof(path), pipe_stream);
      pclose(pipe_stream);
      char *path_ptr = path;
      return path_ptr;
    }

    Would anyone be willing to help me
    #debug this? I'm pretty new to C. Project is here #codinghelp

  6. I was able to finally find it! Here is where I found the answer! #codinghelp

  7. Hey you #bashscripting dergs! I'm working on a shell script and I need help understanding what the command command does. I basically ran command ls is and it seems to just run ls. I have no man entry for this in Debian, and looking up, "what does the command command do" really confuses the search engine lol. Please help! #codinghelp

  8. Luyện tập Python, HTML và CSS trên FreeCodeCamp nhưng nhiều bước thất bại khiến mình bế tắc! Mong anh em chia sẻ tài liệu, khóa học hữu ích hoặc sách tham khảo chất lượng. Làm sao để học hiệu quả mà không lo âu? Bức xúc quá! 🛠️ #HọcLậpTrinh #TưVấnLậpTrình #Python #HTML #CSS #CodingHelp #TechCommunity

    reddit.com/r/programming/comme

  9. I want to connect a LORA and a rassbery pi pico, what should I know when connecting them? ("friend" gifted the parts and i can't really ask them for help, nor have I been able to play with rasbeery pico-s much, I have childhood electronic board-basic level of practical understanding of electronics with high school physics theory-understanding)
    Should I just give up or can I connect them? Mao?


    #electronics #Raspberry-Pico #Raspberry-Pi #Raspberry-Pi-help #Raspberry-Pi-coding #coding #help #coding-help #electronics
  10. I want to connect a LORA and a rassbery pi pico, what should I know when connecting them? ("friend" gifted the parts and i can't really ask them for help, nor have I been able to play with rasbeery pico-s much, I have childhood electronic board-basic level of practical understanding of electronics with high school physics theory-understanding)
    Should I just give up or can I connect them? Mao?


    #electronics #Raspberry-Pico #Raspberry-Pi #Raspberry-Pi-help #Raspberry-Pi-coding #coding #help #coding-help #electronics
  11. I want to connect a LORA and a rassbery pi pico, what should I know when connecting them? ("friend" gifted the parts and i can't really ask them for help, nor have I been able to play with rasbeery pico-s much, I have childhood electronic board-basic level of practical understanding of electronics with high school physics theory-understanding)
    Should I just give up or can I connect them? Mao?


    #electronics#Raspberry-Pico#Raspberry-Pi#Raspberry-Pi-help#Raspberry-Pi-coding#coding#help#coding-help#electronics
  12. I want to connect a LORA and a rassbery pi pico, what should I know when connecting them? ("friend" gifted the parts and i can't really ask them for help, nor have I been able to play with rasbeery pico-s much, I have childhood electronic board-basic level of practical understanding of electronics with high school physics theory-understanding)
    Should I just give up or can I connect them? Mao?


    #electronics #Raspberry-Pico #Raspberry-Pi #Raspberry-Pi-help #Raspberry-Pi-coding #coding #help #coding-help #electronics
  13. I want to connect a LORA and a rassbery pi pico, what should I know when connecting them? ("friend" gifted the parts and i can't really ask them for help, nor have I been able to play with rasbeery pico-s much, I have childhood electronic board-basic level of practical understanding of electronics with high school physics theory-understanding)
    Should I just give up or can I connect them? Mao?


    #electronics #Raspberry-Pico #Raspberry-Pi #Raspberry-Pi-help #Raspberry-Pi-coding #coding #help #coding-help #electronics
  14. **Greuon giúp ng цереineux hành động với google sheets!**
    Đang tạo giao diện đăng nhập, cần hỗ trợ xác định vai trò Admin/Employee từ bảng Google Sheets (cột A: tên dùng, B: mật khẩu, C: vai trò). Giói年から Himmie giúp ạ!
    #GoogleSheets #LoginSystem #AdminRole #EmployeeRole #CodingHelp #VietnameseTech

    reddit.com/r/SideProject/comme

  15. I need help with an adaptation for a disability.
    As a social worker I need to enter different combinations of the same sensitive information about clients into several different pieces of software.
    My brain doesn't allow me to do this well.
    What i think could be a solution is a piece of software that could take the information and format it so I could copy/paste it into the appropriate software.

    Is there something that does that? Would it be hard to make something that does?

    #codinghelp

  16. I need help with an adaptation for a disability.
    As a social worker I need to enter different combinations of the same sensitive information about clients into several different pieces of software.
    My brain doesn't allow me to do this well.
    What i think could be a solution is a piece of software that could take the information and format it so I could copy/paste it into the appropriate software.

    Is there something that does that? Would it be hard to make something that does?

    #codinghelp

  17. I need help with an adaptation for a disability.
    As a social worker I need to enter different combinations of the same sensitive information about clients into several different pieces of software.
    My brain doesn't allow me to do this well.
    What i think could be a solution is a piece of software that could take the information and format it so I could copy/paste it into the appropriate software.

    Is there something that does that? Would it be hard to make something that does?

    #codinghelp

  18. I need help with an adaptation for a disability.
    As a social worker I need to enter different combinations of the same sensitive information about clients into several different pieces of software.
    My brain doesn't allow me to do this well.
    What i think could be a solution is a piece of software that could take the information and format it so I could copy/paste it into the appropriate software.

    Is there something that does that? Would it be hard to make something that does?

    #codinghelp

  19. It seems to me I’m resolving a problem that should have been resolved ages ago, but I couldn’t find any reasonable solution for the problem. Am I missing something? Any help from fellow #iOSDev and/or #IndieDev? 😅
    #HelpNeeded #DeveloperCommunity #CodingHelp #AppDev

  20. It seems to me I’m resolving a problem that should have been resolved ages ago, but I couldn’t find any reasonable solution for the problem. Am I missing something? Any help from fellow #iOSDev and/or #IndieDev? 😅
    #HelpNeeded #DeveloperCommunity #CodingHelp #AppDev

  21. It seems to me I’m resolving a problem that should have been resolved ages ago, but I couldn’t find any reasonable solution for the problem. Am I missing something? Any help from fellow #iOSDev and/or #IndieDev? 😅
    #HelpNeeded #DeveloperCommunity #CodingHelp #AppDev

  22. I would like to learn programming. I'm familiar with the idea but don't know any language (I'm good with excel and have worked with microcontrollers 10 years ago).

    I have an idea, a tool for work, it's a GUI where I click on a drawing and get a popup with relevant links/text. Should be pretty straightforward.
    Any advice on what my step 0 should be?
    I've been thinking of checking out PirateSoftware's develop.games

  23. Hm...I'm having some trouble understanding how to change the font of my website right now.

    I feel like everything should be working according to some reddit posts, but I must be missing something.

    Help appreciated!

    #html #CodingHelp #neocities #HonestSelfHostingMeta

  24. Hm...I'm having some trouble understanding how to change the font of my website right now.

    I feel like everything should be working according to some reddit posts, but I must be missing something.

    Help appreciated!

    #html #CodingHelp #neocities #HonestSelfHostingMeta

  25. Hm...I'm having some trouble understanding how to change the font of my website right now.

    I feel like everything should be working according to some reddit posts, but I must be missing something.

    Help appreciated!

    #html #CodingHelp #neocities #HonestSelfHostingMeta

  26. Hm...I'm having some trouble understanding how to change the font of my website right now.

    I feel like everything should be working according to some reddit posts, but I must be missing something.

    Help appreciated!

    #html #CodingHelp #neocities #HonestSelfHostingMeta

  27. Hm...I'm having some trouble understanding how to change the font of my website right now.

    I feel like everything should be working according to some reddit posts, but I must be missing something.

    Help appreciated!

    #html #CodingHelp #neocities #HonestSelfHostingMeta

  28. My code-teaching website is suggesting Jupyter for Python development, from a Data Analytics POV. I'm not taking to it at all. Any other recommendations?

    #Python #CodingHelp #DataAnalytics

  29. Hi, there's #nostupidquestions right?
    I have a #selfhosted #wordpress #blog. Is there a #plugin I can use so that all my #pictures #size adjust to the #screensizes of my visitors? Currently pictures in the content column go into the sidebar, which is quite annoying to be honest. Any help would be appreciated, I have no idea what to do! #wordpresshelp #wordpresstips #compatibility #help #codinghelp

  30. Hi, there's #nostupidquestions right?
    I have a #selfhosted #wordpress #blog. Is there a #plugin I can use so that all my #pictures #size adjust to the #screensizes of my visitors? Currently pictures in the content column go into the sidebar, which is quite annoying to be honest. Any help would be appreciated, I have no idea what to do! #wordpresshelp #wordpresstips #compatibility #help #codinghelp

  31. Hi, there's #nostupidquestions right?
    I have a #selfhosted #wordpress #blog. Is there a #plugin I can use so that all my #pictures #size adjust to the #screensizes of my visitors? Currently pictures in the content column go into the sidebar, which is quite annoying to be honest. Any help would be appreciated, I have no idea what to do! #wordpresshelp #wordpresstips #compatibility #help #codinghelp

  32. Hi, there's #nostupidquestions right?
    I have a #selfhosted #wordpress #blog. Is there a #plugin I can use so that all my #pictures #size adjust to the #screensizes of my visitors? Currently pictures in the content column go into the sidebar, which is quite annoying to be honest. Any help would be appreciated, I have no idea what to do! #wordpresshelp #wordpresstips #compatibility #help #codinghelp

  33. Hi, there's #nostupidquestions right?
    I have a #selfhosted #wordpress #blog. Is there a #plugin I can use so that all my #pictures #size adjust to the #screensizes of my visitors? Currently pictures in the content column go into the sidebar, which is quite annoying to be honest. Any help would be appreciated, I have no idea what to do! #wordpresshelp #wordpresstips #compatibility #help #codinghelp

  34. @shoq you might use hashtags with your inquiry to reach more people. Maybe #MastodonDevs or #CodingHelp. Not sure which #Mastodon hashtags might work. #MastodonHelp

  35. @shoq you might use hashtags with your inquiry to reach more people. Maybe or . Not sure which hashtags might work.

  36. @shoq you might use hashtags with your inquiry to reach more people. Maybe #MastodonDevs or #CodingHelp. Not sure which #Mastodon hashtags might work. #MastodonHelp

  37. @shoq you might use hashtags with your inquiry to reach more people. Maybe #MastodonDevs or #CodingHelp. Not sure which #Mastodon hashtags might work. #MastodonHelp