Learn how to set up a fresh Ubuntu installation with Docker, enabling you to leverage the power of containerization for efficient development and deployment.
By its very nature, Ubuntu is a Linux distribution, in just the same way that Debian, Red Hat, CentOS, etc, are. And, while Linux started off as a one-person exercise, it's a lot more than that now. There's no way that Torvalds could maintain the...
I.e. not being built "on a one-person project" (linux). The "whole Linus Torvalds worship" for me really ruins what ubuntu should be about, collaboration, not "idealizing one person above everyone else". I know the story "that Linus Torvalds...
How might one download the entire directory http://ports.ubuntu.com/ubuntu-ports to an external drive using a Windows computer? After a good deal of looking, no solution has been found. The intention here is to set up an exact mirror of...
I am running Codeproject.ai in a Docker container on an Ubuntu 22.04 machine. The machine has 2 nvidia tesla k80s installed. Both cards are functioning properly. I am currently using Codeproject.AI with Blue Iris and everything is running fine...
When I started installation of "Wexstream - Video Conferencing Platform with Node.js, React and Jitsi" on Ubuntu server. I got this error: "High:-Crash in HeaderParser in dicer ". Please help to resolve this. What I have tried: I have tried...
When we hit this link "http://x.x.x.x:3000/sign-in" on browser, we get it the below error and after cancelling it, the buttons are not working. Uncaught runtime errors: ERROR [object Object] at handleError...
If it's your website, then you have a secret error somewhere in your secret code. You need to fix that. If it's someone else's website, then they need to fix it. You should report it to them, assuming you can find a way to contact them with...
You're going to have to ask the people who wrote it. There is an "Issues" link at the top of the GitHub page for Wexstream. Click that and describe your problem there.
By using ffmpeg or ffplay you may specify -rtsp_transport tcp switch to force the rtsp stream be opened via tcp. In programming, I'm using libav to open the rtsp stream with the following code: AVDictionary *options = NULL; av_dict_set(&options,...
Hello, I created an API in C++ using Poco Libraries. I also have a http request client that can perform requests on the server API. Both the API and the client are standalone programs running on the same machine Ubuntu. However, when I try to do...
Hello, I have created an API in C++ in Ubuntu (using this tutorial https://levelup.gitconnected.com/building-an-api-in-c-with-pistache-413247535fd3) and I would need to secure it. I've read about OAuth, tokens and TLS (transport layer security),...
As a high-level overview, there are a few steps you can follow - OAuth - There are a few framework/libraries that supports C++ on OAuth. POCO, OAuth2CPP, or CPP-REST-SDK are some options. We used POCO before, have a look at their libraries...
I'm running Ubuntu 22.04.2 LTS and have dual boot windows 11. I'm trying to hide grub menu while booting and automatically boot ubuntu as I have seen that can be done with changing GRUB_TIMEOUT to 0 in /etc/default/grub and run sudo update-grub...
i have bot when i start in my local computer is work fine but when i try in ubuntu server i have this error : exchange.fapiPrivate_post_leverage( AttributeError: 'binanceusdm' object has no attribute 'fapiPrivate_post_leverage' so i need to...
The message is clear, the object binanceusdm does not have an attribute with the name fapiPrivate_post_leverage. So you need to go back to where the object is created and check its properties, or those of the class used to create it. And since we...
This is the error that shows up when I type command-"pip3 install elastalert" in "Ubuntu" Building wheel for blist (setup.py) ... error error: subprocess-exited-with-error × python setup.py bdist_wheel did not run successfully. │ exit...
Learn how to set up a fresh Ubuntu installation with Docker, enabling you to leverage the power of containerization for efficient development and deployment.
#include #include #include #include // for sleep() function #include enum direction { UP, DOWN, LEFT, RIGHT }; struct ant { int row; int col; enum direction dir; }; void...
Those variables ARE declared in your code. The problem is you are not passing them to the functions that need them. They do not need to be global. Your program does not appear to be multi-threaded so no synchronization is needed. You just need...
Seems to work fine for me. What is in your input.txt, and what command line arguments are you using? But maybe now is a good time to get acquainted with the debugger (gdb). Make sure you've compiled a debug version (gcc flag -g, -g3 or -ggdb....
#include #include #include #include // for sleep() function #include enum direction { UP, DOWN, LEFT, RIGHT }; struct ant { int row; int col; enum direction dir; }; void...
Quote: My new question is; how to check for out-of-bounds access I don't think it will help this time because as Richard said this is the third post with almost the same questions. As I told you here ...
You might actually use usleep, however it cannot handle waiting times greater than one second (see the relative man page). An alternative could be nanosleep[^], try #include #include #include int main(int argc,...
This is your third post of the same question, and you are still making the same mistake that I pointed out in the first one. You have the following code at the beginning: int waiting_time = atof(argv[1]); // get waiting time from command...
This is the same issue as How to implement a sleep wait time function and take it in as a command line argument?[^], where I gave you a suggestion as to capturing the command line parameters. And I notice that you have still got the erroneous...
#include #include #include #include // for sleep() function enum direction { UP, DOWN, LEFT, RIGHT }; struct ant { int row; int col; enum direction dir; }; void print_map(char **map, int...
As OriginalGriff said, a debugger should find the problem. However, except for the problem that the file might not be found, I have not found any problem reading in when there are actually exactly 7 positive numbers in the input.txt file. If...
Start by using the debugger to find out exactly what values you are getting: argc and argv - when you know the number of arguments and what they are, it should be obvious what the problem is. We can't do that for you: we have no idea what you...
No module named ‘pyaudio’ in Ubuntu python app. This is because pip3 install PyAudio fails because no such file as portaudio.h. What I have tried: It has been awhile since I tried accessing the microphone and speaker from Ubuntu. I was waiting...
I resolved this issue with the following: sudo apt install portaudio19-dev The WSL2 Ubuntu-22.04 did not have portaudio installed. The portaudio.h file is provided by portaudio19-dev package. The file list of that package can be found here...
As k5054 has already noted, the file is not read correctly. All values from the file are needed to initialize the grid. I would also avoid the global variables as far as possible. First of all it would make sense to define an own data type for...
I assume that a line like 4 2 P Means that the player is at row 4 column 2. Take a look at what you have to locate the player and the goal. You're reading in a single character each time, and comparing it to whether it's a 'P' or a 'G', but you...
In order to use the [] operator you need to implement 3. Data model — Python 3.11.2 documentation: __getitem__()[^]. See also 3. Data model — Emulating container types[^] for complete details.
The definition of the grid does not match at first sight: int** map char board[][SIZE] Since both row and col are specified by the user at startup, the constant SIZE will not work well either. int row_map = atoi(argv[1]); int col_map =...
Your error description isn't helpful: we have no idea where the error is. If I had to guess, I'd say that from the indentation you have ended the main method too early - immediately above the for loop freeing up the memory. You should expect to...
ERROR in app: Exception on / [GET] Traceback (most recent call last): File "/home/aalam/Flask_Blog/venv/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 1900, in _execute_context self.dialect.do_execute( File...
Look at the code around line 736. You seem to be setting up a SQL query and your statement is not correct because there is "no such table: post" in your database.
The message is telling you that it cannot find the TimedJSONWebSignatureSerializer class or module in the itsdangerous package. Check the documentation to see whether you have mis-spelled the name.
flask run --host=0.0.0.0 Usage: flask run [OPTIONS] Try 'flask run --help' for help. Error: While importing 'run', an ImportError was raised: Traceback (most recent call last): File...
If I am not mistaken, "flask" Should be "Flask" with uppercase F. This error is also emitted when there's an error in an imported module. A good way to start debugging such errors is to directly run the file with python (without flask run). Do...
flask run --host=0.0.0.0 Traceback (most recent call last): File "/home/aalam/Flask_Blog/venv/bin/flask", line 8, in sys.exit(main()) File "/home/aalam/Flask_Blog/venv/lib/python3.10/site-packages/flask/cli.py", line 1047, in...
import numpy as np import sys import timeit import DSAsorts import random REPEATS = 3 #No times to run sorts to get mean time NEARLY_PERCENT = 0.10 #% of items to move in nearly sorted array RANDOM_TIMES = 100 #No times to randomly...
Quote: I don't think this is the correct output that should be displayed. That is exactly the output that should be displayed, as shown by the code at: #main program if len(sys.argv)
Since we have no idea what your data contains or what output you actually get from the sort, we can't really help you. So, it's going to be up to you. Fortunately, you have a tool available to you which will help you find out what is going on:...
please check the version of python. for version 3.11.1, you should use '\r\n' for line break reference the official doc smtplib — SMTP protocol client — Python 3.11.1 documentation[^]
This is the error that shows up when I type command-"pip install -r requirements.txt" in "Ubuntu". Building wheel for cffi (setup.py) ... error error: subprocess-exited-with-error × python setup.py bdist_wheel did not run successfully. │...
Hello. I have a python code that I want to delete an email with specific subject.But I get an error.What should i do? Error: /usr/lib/python3/dist-packages/requests/__init__.py:89: RequestsDependencyWarning: urllib3 (1.26.12) or chardet (3.0.4)...
[Moving the comment to answer with a reference] You seems to be passing list in store command instead of individual emails. You need to try this instead of last line in your original code: for num in mail_ids.split(): mail.store(num,...
What is the equivalent project file for a Java project? For example, a C# project file is denoted by the delimiter of .csproj. So what would it be for a Java project? Is it dependent on what IDE I am using for Java? I did some search online...
You first need to decide which IDE to use. Netbeans is probably the default for Java, although Eclipse has been in the past. Install one of the IDEs and do some experimenting.
Short answer: Yes, it depends on your IDE. Why not just try it yourself? You're unlikely to do any real damage with a simple "Hello, World" style project. You could even try different IDEs.
Look at your code: void loop(); ^ | { if (digitalRead(switchPin)) { rollTheDice(); } delay(100); } What is the semicolon doing there? The line void loop(); is a forward declaration, and can't be followed by a...
Hello Everyone, I am trying to read a file which contains numbers(Floats and integers) line by line, I am able to read the line correctly and it works fine, but when I try to compare it with a different number I am failing at that point ...
My problem is that over time the memory usage (especially the virtual memory) increases until the system freezes. There is hardly not traffic on the server and it seems to happen independendly from making any HTTP-Request. Last time the virtual...
Hi, I am using libcurl to send SMTP emails from a ubuntu server. I have been asked to change the emails to have a HTML body from a temple stored in a file. Is libcurl able to send the HTML body and if so any advice or example on how to achieve it would be appreciated....
You must include MIME-Version as well as Content-Type, for example this will work, assuming every line ends with "\r\n". MIME-Version: 1.0 Date: Thu, 16 Jun 2022 14:12:05 +0000 To: Test From: Info ...
Just tested it with WSL2 on Win10. As a result gets one a blocking function. After going without further input RETURN has entered, the length 0 is displayed. Exactly the same thing happens on Windows with VS, but requires as include additionally...
On Windows, the following returns an empty string when the enter key is hit without any other input: string input; cin.clear(); getline(cin, input); But on WSL/Ubuntu, compiled with gcc, a bare enter key does nothing. It must be preceded by a...
I am trying to use "sbas_parallel.c" code in ubuntu 18.04, i install a "gcc" compiler and insert the written row below ; "gcc -fopenmp -w sbas_parallel.c -I/usr/local/include/gmt -I/usr/local/GMTSAR/gmtsar -I/usr/local/include...
You'll note that the include directive is surrounded by double quotes. This indicates that the file in question should be either in the current directory, or perhaps in a directory on the include path, (the arguments to the -I flags). Looking...
I am working on simple website hosted on AWS EC2 instance. When I change the code then I push it on GitHub and manually access the EC2 instance using putty then take pull of new changes from GitHub. I want to do this work programmatically in...
I'm porting a C++ program that runs on Windows to WSL/Ubuntu. It's multithreaded, and all application threads run at the same priority. However, one thread needs to run at priority+1, and another at priority+2. Round-robin scheduling is also...
Two things: 1) setcap only seems to apply to the current executable. 2) You can't get the desired behavior using GDB, even using sudo For example, using the following simple C program #include #include #include...
Moved to Ubuntu following centos server end of support from redhat. I'm using emacs, but the .emacs file doesn't seem to load. How do I solve the problem? What I have tried: emacs -q --load ~/.emacs It's work, but I don't like it.
This is a software development site, not linux tech support. We answer questions on coding and other directly development related matters - not how best to use a particular text editor. Try a Technical support | Ubuntu[^] site instead.
Hello.I have a java project running in the web (localhost). Something like this[^] So,I have some courses from a sql script. Also,I have a html file that contains 3 buttons such as (Edit,Remove,Show Students). So, I want to extract all the...
Hello.I want to open mysql and I cant. I write this command in terminal: mysql -uroot -p and the it says: Enter password but I don't remember what the password is,so what can I do now? Thanks. What I have tried: ...
Quote: I don't remember what the password is Nothing. Passwords are a security mechanism, and if there was a way to bypass them, there would be no security involved. All you can do is try really, really hard to remember the password you set -...
Hello!! I'm using C language and I want to use an input ,without waiting for user input or pushing enter.(in python I can do this)-I guess here too. For example,I want to print "hello\n" in console inside a while-loop and when user gives an input...