16,004,602 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Nick_is_asking (Top 67 by date)
Nick_is_asking
24-Oct-22 12:05pm
View
Yes,this is exactly what I was thinking. So this may not be a problem for my project.
Anyway thank you
Nick_is_asking
24-Oct-22 11:59am
View
Ok,never mind,but thank you for your time
Nick_is_asking
24-Oct-22 11:55am
View
Just change the link, put your github repository.......
Nick_is_asking
27-Aug-22 8:29am
View
Thank you. I will not do it
Nick_is_asking
27-Feb-22 15:44pm
View
This is why I m here.I run the program & I get some errors.I provided a link above.
Nick_is_asking
27-Feb-22 14:38pm
View
I had a lot of files with a file (geckodriver_some_version.tar.gz)in github and I did clone it with all the other files in a directory ,then I write the command: tar -xvf geckodriver_some_version.tar.gz , then
mv geckodriver_some_version.tar.gz /usr/local/bin and finally
export PATH=$PATH:/usr/local/bin/geckodriver and when I enter that path I see there the geckodriver,so I think I'm right.So, what is going on?
Nick_is_asking
27-Feb-22 14:23pm
View
Yes, I saw it yesterday, but didn't help me.I think I have the right version of geckodriver.One thing that I observed is that when I type "geckodriver --version" in terminal ,it doesn't show me the version,but it tells me that I have no permission of something (I don't remember now) ,despite the fact I m super user (used sudo su command).
But in my laptop when I type geckodriver --version, it shows me the version I use.
I have installed the same geckodriver in both computers(laptop & raspberry pi 3)
Nick_is_asking
27-Feb-22 7:48am
View
I use ubuntu server 20 (it has not a gui),so I use nano editor,I dont know if there is a debugger in nano.
Nick_is_asking
27-Feb-22 7:02am
View
The funny thing is that I can run the same code in my laptop and a virual machine I have (ubuntu server 20) ,but can't run it in raspberry pi 3 (ubuntu server 20)
Here I write the last line of errors:
"OSError: [Errno 8] Exec format error: 'geckodriver'"
I don't know what's going on? I included all the libraries in raspberry pi and still doesn't work.
Nick_is_asking
27-Feb-22 6:30am
View
I'm connected via TeamViewer in the raspberry pi because I'm far away and can't just copy paste all these lines of error.You can simple click the link I provide
Nick_is_asking
10-Feb-22 12:26pm
View
I get this error
/usr/lib/python3/dist-packages/requests/__init__.py:89: RequestsDependencyWarning: urllib3 (1.26.8) or chardet (3.0.4) doesn't match a supported version!
warnings.warn("urllib3 ({}) or chardet ({}) doesn't match a supported "
Traceback (most recent call last):
File "carClicker.py", line 79, in <module>
print(int(off_time - datetime.datetime.now().time() ) )
TypeError: unsupported operand type(s) for -: 'datetime.time' and 'datetime.time'
Nick_is_asking
7-Feb-22 5:13am
View
Never mind.I found the solution.
I had to write "" instead of "\n".
But thank you for your time.
Nick_is_asking
4-Feb-22 8:38am
View
All I had to do was to follow these steps from this link:
https://www.youtube.com/watch?v=xgsFwaw9W4Q&ab_channel=Python-Bug
Nick_is_asking
4-Feb-22 8:34am
View
I already found the solution.Anyway.thanks for your time.
Nick_is_asking
28-Dec-21 4:42am
View
I do not keep the direction of each segment of the snake,only the coordinates.Its difficult to think something so that I can figure it out.
Nick_is_asking
28-Dec-21 4:18am
View
As about the 2nd problem, I have a lot of cells(1400 columns and 740 rows).How can I keep track of each cell and what is the algorithm to make it work?
Nick_is_asking
28-Dec-21 4:14am
View
By avoid eat itself I mean I mean I don't want the head of snake hit the body.
Nick_is_asking
8-Oct-21 17:14pm
View
Yes,exactly.Thanks you very much all of you for your time.
Nick_is_asking
10-Sep-21 10:22am
View
I don't know how to do that.if anyone can help me ,I would appreciate it.
Nick_is_asking
24-Mar-21 14:44pm
View
Yes
Nick_is_asking
24-Mar-21 12:56pm
View
I searched a lot before ask here and didn't found anything......
Nick_is_asking
20-Mar-21 9:59am
View
I tried it before I ask here.Nothing happened
Nick_is_asking
18-Mar-21 6:03am
View
Thank you!!!
Nick_is_asking
18-Feb-21 12:30pm
View
Anyone?
Nick_is_asking
18-Feb-21 4:35am
View
I want to do something for a few seconds(for example) without interrupt the whole code like time.sleep().
Nick_is_asking
17-Feb-21 17:29pm
View
Any ideas?
Nick_is_asking
17-Feb-21 16:55pm
View
But,Timer() method has to pass a function parameter.
Nick_is_asking
29-Jan-21 14:41pm
View
Anyone?
Nick_is_asking
29-Jan-21 5:09am
View
I can't figure it out.I tried a lot.Can anyone help me?
Nick_is_asking
26-Jan-21 9:30am
View
As I said,I have a button named "Camera" and I want to open my laptop's camera if I click this button,but I also want to do other things(for example :click another button to do something else) at the same time.When I click the "Camera" button ,a black window appears(I also use opencv).
See open_camera() function here:
https://drive.google.com/file/d/1yl5bTFSZapLrYbuODl86e65oCJEdLRGE/view?usp=sharing
Nick_is_asking
19-Dec-20 6:06am
View
Thank you.I 'm thinking to write it on my own to practice more.If I have any problem, I will ask here.
Nick_is_asking
19-Dec-20 5:50am
View
Finally I will write the algorithm I found (Hsv to Rgb),because I didn't find any functions.Anyway thank you!!!
Nick_is_asking
26-Oct-20 12:46pm
View
I understand.Thank you!
Nick_is_asking
26-Oct-20 8:15am
View
Ok,I understand some things,because at this semester I have assembly and C.
So Ι noticed that I have to write char *y = malloc(sizeof(char) * 50) to get
50 * (1 byte) = 50 byte of memory
and then everything's alright.
Nick_is_asking
26-Oct-20 7:10am
View
ooo, ok now I understand.
If I change char x[30] to char *x and char y[10] to char *y ,why compiler hit error?
Thanks.
Nick_is_asking
21-Oct-20 9:19am
View
Thank you,I will try ,cause I don't understand why is this happening...
Nick_is_asking
30-Sep-20 9:33am
View
No,but thanks for your interest.I found it.
Nick_is_asking
30-Sep-20 8:59am
View
Ok .I have to change it to Western IBM850
Nick_is_asking
26-Sep-20 15:49pm
View
Because I want to return this character to others functions(Program is big).
I tried MANY methods ,but still nothing...
Nick_is_asking
26-Sep-20 15:07pm
View
I test it and it works, BUT when I try to do it in my basic code I receive: Segmentation fault (core dumped)
char *get_word(char *buffer , size_t bufferSize , char *player_A , char *player_B , int flag)
{
char *p;
//fgetc(stdin);
fgets( buffer, bufferSize, stdin );
p = strchr( buffer, '\n' );
if( p )
{
*p = 0;
}
return buffer;
}
In main I have this: char word[ 100 + 1 ] = { 0 }; and I call
char *str = get_word(word , 100 , A , B , 0);
but doesn't work...
Nick_is_asking
26-Sep-20 11:55am
View
I'm a college student.I will have C this semester,so they will give us book.
As about this loop ,I found it on internet.
Nick_is_asking
26-Sep-20 11:32am
View
Thanks for the update.
so ,what can I do?
Nick_is_asking
25-Sep-20 14:27pm
View
Ok I found the problem.Thanks by the way
Nick_is_asking
16-Sep-20 10:52am
View
Thanks!!!
Nick_is_asking
16-Sep-20 9:36am
View
Nice.
I do not understand what " if ( count[c-'a'] ) " this line does?
What exactly do you check?
Thanks!!!
Nick_is_asking
15-Sep-20 14:09pm
View
I found it.
I had to write scanf(" %c" , &character);
with a space before %c.
I don't know why...
Nick_is_asking
11-Sep-20 6:56am
View
Thanks.It works fine...
Nick_is_asking
8-Sep-20 9:47am
View
Yes,I changed it ,cause I wanted to do something else I had in my mind.Never mind.Anyone can see my new above code without any trouble/miss part of program.So,any help???
Nick_is_asking
8-Sep-20 4:22am
View
Deleted
OK.I corrected it ,but I receive this error now:
Floating point exception (core dumped)
Nick_is_asking
1-Sep-20 10:30am
View
Nice!!!
Nick_is_asking
25-Aug-20 16:22pm
View
I disagree ,because when comes through do statement ,scanf is called so it waits for user and then check the number.This is how do while works
I checked it and it works as I expected.
Nick_is_asking
12-Aug-20 16:28pm
View
I want to build snake game in terminal with C and I don't know what input to use to move snake.So simple.
Nick_is_asking
5-Aug-20 12:52pm
View
I compile like this: gcc name.c name and run like this ./name
I just want to get an input without waiting for user input and without pushing [ENTER] button.
Nick_is_asking
5-Aug-20 8:18am
View
I tried this one code:
#include <stdio.h>
#include <stdlib.h>
#include <curses.h>
int main(void)
{
initscr();
noecho();
cbreak(); // don't interrupt for user input
timeout(500); // wait 500ms for key press
int c = getch();
printf("%c\n",c);
endwin();
nocbreak();
return 0;
}
but I got this error:
/tmp/ccNmVWH7.o: In function `main':
input_no_wait.c:(.text+0x9): undefined reference to `initscr'
input_no_wait.c:(.text+0xe): undefined reference to `noecho'
input_no_wait.c:(.text+0x13): undefined reference to `cbreak'
input_no_wait.c:(.text+0x1a): undefined reference to `stdscr'
input_no_wait.c:(.text+0x27): undefined reference to `wtimeout'
input_no_wait.c:(.text+0x2e): undefined reference to `stdscr'
input_no_wait.c:(.text+0x36): undefined reference to `wgetch'
input_no_wait.c:(.text+0x54): undefined reference to `endwin'
input_no_wait.c:(.text+0x59): undefined reference to `nocbreak'
collect2: error: ld returned 1 exit status
Nick_is_asking
5-Aug-20 6:46am
View
Is there anything else,because I don't understand??
Nick_is_asking
5-Aug-20 4:36am
View
no this is not what I want ,but thanks for your try.I want to draw and print letter "O" inside , to look like a ball (same size with letter "O").
Nick_is_asking
5-Aug-20 4:28am
View
I forgot to say that I want to draw a shape without graphics.
See this link to understand what I mean:
https://www.arduino.cc/en/Reference/LiquidCrystalCreateChar
Nick_is_asking
3-Aug-20 7:14am
View
Well,I want to return a string character from player_input() function.
What should I fix?
Nick_is_asking
3-Aug-20 6:21am
View
I understand that when I build a function ,its variables are saved to a special part of memory (such as main or another function),but I don't understand how to fix this problem now...
I followed your link (malloc/free) ,but it doesn't work(I'm definitely doing something wrong,I know...).
What should I do?
Can you help me?
Thanks again!!!
Nick_is_asking
3-Aug-20 5:51am
View
I just uploaded the whole code.Take a look. Thanks!!
Nick_is_asking
3-Aug-20 5:08am
View
I just uploaded the whole code.Take a look. Thanks!!
Nick_is_asking
27-Jul-20 4:41am
View
Thanks guys.It works fine.
How can I read user input until newline ('\n' , doesn't work,because I get this error: Segmentation fault (core dumped) and '\0' is used until NULL character.)?
Nick_is_asking
26-Jul-20 15:40pm
View
Deleted
You are right,I understand ,but I don't know know where the error is?
Nick_is_asking
20-Jul-20 15:19pm
View
ok I understand, thanks!!
Nick_is_asking
20-Jul-20 14:52pm
View
One more question.If x = 8 and I write this: *p++; then I recieve this:
price of x = 9 , price of pointer p = -971355120 , address of x => 0x7ffec61a4c0c , address of pointer p = 0x7ffec61a4c10
=============================
.but I expected this:
price of x = 9 , price of pointer p = 9 , address of x => 0x7ffec61a4c0c , address of pointer p = 0x7ffec61a4c10
or am I wrong?
Nick_is_asking
20-Jul-20 14:45pm
View
It works. Thank you!!!
Nick_is_asking
20-Jul-20 14:43pm
View
Deleted
Unfortunately,it doesn't work.Same error.
Show More