#codinghelp — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #codinghelp, aggregated by home.social.
-
I seems like the string in
commandis being cut off. The/serio2/speedis getting cut off for some reason. #codinghelp -
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 -
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 -
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 -
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 -
@[email protected] you have a zoo next door? thats cool! #codinghelp
-
I was able to finally find it! Here is where I found the answer! #codinghelp
-
Hey you #bashscripting dergs! I'm working on a shell script and I need help understanding what the
commandcommand does. I basically rancommand lsis and it seems to just runls. 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 -
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
-
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 -
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 -
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 -
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 -
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 -
**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 #VietnameseTechhttps://www.reddit.com/r/SideProject/comments/1oajwcz/help_me_ayudenme/
-
"CóZip thể chạy LLM hỗ trợ lập trình offline trên USB? Câu hỏi hấp dẫn từ cộng đồng! #LLM #AI #Offline #USB #CodingHelp #LlacNhảm #HỗTrợNhậpLiệu"
https://www.reddit.com/r/LocalLLaMA/comments/1o9bgia/llm_on_usb_offline/
-
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?
-
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?
-
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?
-
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?
-
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 -
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 -
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 -
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 -
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!
-
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!
-
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!
-
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!
-
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!
-
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?
-
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 -
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 -
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 -
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 -
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 -
@shoq you might use hashtags with your inquiry to reach more people. Maybe #MastodonDevs or #CodingHelp. Not sure which #Mastodon hashtags might work. #MastodonHelp
-
@shoq you might use hashtags with your inquiry to reach more people. Maybe #MastodonDevs or #CodingHelp. Not sure which #Mastodon hashtags might work. #MastodonHelp
-
@shoq you might use hashtags with your inquiry to reach more people. Maybe #MastodonDevs or #CodingHelp. Not sure which #Mastodon hashtags might work. #MastodonHelp
-
@shoq you might use hashtags with your inquiry to reach more people. Maybe #MastodonDevs or #CodingHelp. Not sure which #Mastodon hashtags might work. #MastodonHelp