Click here to Skip to main content
15,891,607 members
Everything / Ubuntu

Ubuntu

Ubuntu

Great Reads

by Dr. Song Li
This is a note on how compilers implement function calls to pass the parameters to and get the return value from the called functions.
by Igor Ladnik
Software for large image smart viewing, mark out and annotation
by Nick Polyak
This article describes a new multiplatform Docking framework - UniDock
by 0xG00DC0FFEE
A better and much simpler implementation of Finite State Machine library for C++

Latest Articles

by Richard Chambers
This article discusses using cross compile tools under x86 Ubuntu Linux to build the Linux kernel for the VisionFive 2 RISC-V SBC.
by Minh Danh Nguyen (ToughDev)
Dual-system Bluetooth keyboard setup: Seamless pairing with Windows 11 and Ubuntu 22
by Dr. Song Li
This is a note on how compilers implement function calls to pass the parameters to and get the return value from the called functions.
by bhupeshkietian
Learn how to set up a fresh Ubuntu installation with Docker, enabling you to leverage the power of containerization for efficient development and deployment.

All Articles

Sort by Updated

Ubuntu 

5 Mar 2024 by Pete O'Hanlon
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...
5 Mar 2024 by Dave Kreskowiak
No, there was never a Unix version.
5 Mar 2024 by Maarten ten Velden
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...
21 Feb 2024 by Richard Chambers
This article discusses using cross compile tools under x86 Ubuntu Linux to build the Linux kernel for the VisionFive 2 RISC-V SBC.
23 Jan 2024 by Minh Danh Nguyen (ToughDev)
Dual-system Bluetooth keyboard setup: Seamless pairing with Windows 11 and Ubuntu 22
7 Sep 2023 by Byron Case
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...
6 Sep 2023 by Richard MacCutchan
This may help to achieve what you want: Mirrors - Ubuntu Wiki[^].
29 Aug 2023 by Richard MacCutchan
Please post your question in the CodeProject.AI Discussions[^] forum.
29 Aug 2023 by DaxSalmon
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...
29 Aug 2023 by chavankaushik
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...
29 Aug 2023 by chavankaushik
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...
28 Aug 2023 by Richard Deeming
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...
22 Aug 2023 by Dave Kreskowiak
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.
14 Aug 2023 by Richard MacCutchan
Support and maintenance of libav was abandoned some years ago according to Libav - Wikipedia[^].
14 Aug 2023 by ilostmyid2
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,...
1 Aug 2023 by MrJay994
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...
11 Jul 2023 by MrJay994
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),...
11 Jul 2023 by Andre Oosthuizen
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...
28 Jun 2023 by Dr. Song Li
This is a note on how compilers implement function calls to pass the parameters to and get the return value from the called functions.
24 Jun 2023 by Littery
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...
18 Jun 2023 by Meeam0112
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...
18 Jun 2023 by OriginalGriff
It seems to be a library problem: fapiPrivate_post_leverage - Google Search[^] - you will probably have to talk to the API creators on GitHub
18 Jun 2023 by Richard MacCutchan
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...
14 May 2023 by Member 15418280
how can we setup apache guacamole in linux step by step then we can use rdp in our system What I have tried: I tried to find step by step by not found
14 May 2023 by Richard MacCutchan
In fact all the information you need is likely to be at Apache Guacamole™[^].
11 May 2023 by Chinthaka Udakandage
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...
11 May 2023 by Richard MacCutchan
It looks like the code for this package has a number of errors in it. So you need to contact the package owners for help.
11 May 2023 by bhupeshkietian
Learn how to set up a fresh Ubuntu installation with Docker, enabling you to leverage the power of containerization for efficient development and deployment.
17 Apr 2023 by DosNecro
#include #include #include #include // for sleep() function #include enum direction { UP, DOWN, LEFT, RIGHT }; struct ant { int row; int col; enum direction dir; }; void...
17 Apr 2023 by Rick York
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...
17 Apr 2023 by k5054
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....
17 Apr 2023 by DosNecro
#include #include #include #include // for sleep() function #include enum direction { UP, DOWN, LEFT, RIGHT }; struct ant { int row; int col; enum direction dir; }; void...
17 Apr 2023 by merano99
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 ...
17 Apr 2023 by CPallini
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,...
17 Apr 2023 by Richard MacCutchan
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...
15 Apr 2023 by Richard MacCutchan
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...
15 Apr 2023 by DosNecro
#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...
15 Apr 2023 by merano99
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...
15 Apr 2023 by OriginalGriff
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...
4 Apr 2023 by Tough Developer
How to compile WinQEMU v0.10.2 in VS2008 and VS2012
3 Apr 2023 by Edmond Seymore
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...
3 Apr 2023 by Edmond Seymore
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...
2 Apr 2023 by merano99
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...
2 Apr 2023 by DosNecro
#ifndef MY_GAME_H #define MY_GAME_H #include #include #include #include #define EMPTY ' ' #define BORDER '*' #define PLAYER 'P' #define GOAL 'G' #define COLLAPSED 'X' typedef struct position { int...
2 Apr 2023 by k5054
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...
29 Mar 2023 by Richard MacCutchan
A simple Google search finds PyAudio · PyPI[^].
22 Mar 2023 by Richard MacCutchan
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.
22 Mar 2023 by DosNecro
class Node: def __init__(self, key, value): self.key = key self.value = value self.next = None class LinkedList: def __init__(self): self.head = None def search(self, key): curr = self.head ...
14 Mar 2023 by sebjameswml
Walks you through the steps needed to draw high quality 2D graphs in your C++ programs using the header-only library morphologica
24 Feb 2023 by merano99
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 =...
24 Feb 2023 by DosNecro
#include #include // Constants for the map characters const char MAP_BORDER = '*'; const char PLAYER_CHAR = 'P'; const char GOAL_CHAR = 'G'; const char COLLAPSED_CHAR = 'X'; const char EMPTY_CHAR = ' '; int main(int argc,...
24 Feb 2023 by OriginalGriff
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...
8 Feb 2023 by Aalam Pratap Bedi
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...
8 Feb 2023 by Dave Kreskowiak
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.
7 Feb 2023 by Richard MacCutchan
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.
7 Feb 2023 by Aalam Pratap Bedi
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...
7 Feb 2023 by Andre Oosthuizen
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...
6 Feb 2023 by Aalam Pratap Bedi
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...
23 Jan 2023 by DosNecro
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...
23 Jan 2023 by Richard MacCutchan
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)
23 Jan 2023 by OriginalGriff
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:...
18 Jan 2023 by Aalam Pratap Bedi
"requirements.txt" file- BareNecessities==0.2.8 bcrypt==4.0.1 blinker==1.4 certifi==2022.12.7 cffi charset-normalizer==3.0.1 click==8.1.3 cmake==3.25.0 Flask==2.2.2 idna==3.4 itsdangerous==2.1.2 Jinja2==3.1.2 login==0.0.6 Mail==2.1.0...
12 Jan 2023 by Ken Tang 2023
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[^]
29 Dec 2022 by Aalam Pratap Bedi
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. │...
29 Dec 2022 by Richard MacCutchan
The actual error message is at the compilation phase: x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -DUSE__THREAD...
4 Nov 2022 by Nick_is_asking
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)...
4 Nov 2022 by Sandeep Mewara
[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,...
9 Oct 2022 by Xarzu
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...
9 Oct 2022 by Richard MacCutchan
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.
9 Oct 2022 by Peter_in_2780
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.
6 Oct 2022 by Lucia Gilene
int ledPins[7]={2,3,4,5,6,7,8}; int dicePatterns[7][7]= { {0,0,0,0,0,0,1}, //1 {0,0,1,1,0,0,0}, //2 {0,0,1,1,0,0,1}, //3 {1,0,1,1,0,1,0}, //4 {1,0,1,1,0,1,1}, //5 {1,1,1,1,1,1,0}, //6 {0,0,0,0,0,0,0}, // En blanco }; int...
6 Oct 2022 by OriginalGriff
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...
26 Jul 2022 by Goutham GSK
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 ...
26 Jul 2022 by k5054
You can use normal comparison operators inside a bash [[ ]] expresion. Try if [[ $line > 30 ]]; then ... fi
20 Jul 2022 by Matt Pogue
Deploy XDR, host integrity, and more with Wazuh Server
9 Jul 2022 by Mathis 2022
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...
19 Jun 2022 by tracam
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....
19 Jun 2022 by Martin Fisher2
Try this char *msg = "To: bob@example.com\r\n" "From: alice@example.com\r\n" "Content-Type: text/html; charset=us-ascii\r\n" "Mime-version: 1.0\r\n" "\r\n" "\r\n" ...
16 Jun 2022 by Member 15136862
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 ...
15 Jun 2022 by merano99
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...
15 Jun 2022 by Greg Utas
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...
14 Jun 2022 by k5054
Following works as expected for me: #include using namespace std; int main() { string input; cin.clear(); getline(cin, input); cout
3 Jun 2022 by srtmdem
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...
3 Jun 2022 by k5054
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...
2 Jun 2022 by Ubaid Ullah 2022
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...
2 Jun 2022 by Greg Utas
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...
2 Jun 2022 by k5054
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...
29 May 2022 by Chopin2001
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.
29 May 2022 by Richard MacCutchan
See GNU Emacs - GNU Project[^]
29 May 2022 by OriginalGriff
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.
22 May 2022 by Fazlur Rahman
Step by step procedure to install Hadoop 2.7.3 version on Ubuntu 16.04 operating system
17 May 2022 by Nick_is_asking
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...
12 May 2022 by Nick_is_asking
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: ...
12 May 2022 by OriginalGriff
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 -...
12 Apr 2022 by Nick_is_asking
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...