Click here to Skip to main content
15,890,438 members
Everything / Operating Systems / Linux

Linux

Linux

Great Reads

by Miroslav Fidler
Installation and the first look at U++ platform
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 Shao Voon Wong
A portable and easy-to-use C++ file library to read and write structured data
by Florian Rappl
Exploring the abilities, benefits and features of TypeScript by extending / rewriting the original Mario5 source.

Latest Articles

by Frédéric -lefred- Descamps
How to install WordPress on Oracle Cloud Infrastructure (OCI) using always free tier
by Frédéric -lefred- Descamps
How to deploy Arm instances on Oracle Cloud Infrastructure (OCI) using Terraform
by Pranay Bakre
How to deploy applications to the Azure Kubernetes Cluster powered by arm64-based virtual machines
by Pranay Bakre
How to migrate existing x86 containerized applications to Arm

All Articles

Sort by Updated

Linux 

N 30 Apr 2024 by OriginalGriff
To add to what Pete has said ... You should expect to get syntax errors every day, probably many times a day while you are coding - we all do regardless of how much experience we have! Sometimes, we misspell a variable, or a keyword; sometimes we...
N 30 Apr 2024 by Pete O'Hanlon
This is telling you that you have mismatched { and } in your code. To fix this, try the following. Make sure that every { and } are on new lines. Immediately after an opening { indent the code by 4 spaces Immediately after a closing } bring...
U 30 Apr 2024 by Ayan Bhanwala
I Can't upload Arduino code because of this problem. I cannot do anything other than remove the blink part of my sketch What I have tried: Trying to add other items ignore the next part please ----> Li
13 Apr 2024 by Richard MacCutchan
Please post your question in the CodeProject.AI Discussions[^] forum.
13 Apr 2024 by Member 16044303
My question : Is it possible to have this configuration and the system work correctly ? Because my GPU is every time at 0% usage and I have test lot of driver, cuda and codeproject ai version and event my GPU is at 0% usage... I don't know if...
12 Apr 2024 by Frédéric -lefred- Descamps
How to install WordPress on Oracle Cloud Infrastructure (OCI) using always free tier
11 Apr 2024 by Frédéric -lefred- Descamps
How to deploy Arm instances on Oracle Cloud Infrastructure (OCI) using Terraform
10 Apr 2024 by Pranay Bakre
How to deploy applications to the Azure Kubernetes Cluster powered by arm64-based virtual machines
9 Apr 2024 by Pete O'Hanlon
I will repeat what I said in my answer here[^]. We typically don't provide code for homework assignments here but surely this is just subtracting tax from salary. To quote Richard Deeming's excellent reply: Nobody is going to do your homework...
9 Apr 2024 by OriginalGriff
While we are more than willing to help those that are stuck, that doesn't mean that we are here to do it all for you! We can't do all the work, you are either getting paid for this, or it's part of your grades and it wouldn't be at all fair for...
9 Apr 2024 by Pranay Bakre
How to migrate existing x86 containerized applications to Arm
8 Apr 2024 by Pranay Bakre
How to build and deploy a multi-architecture application with x86/amd64 and arm64-based container images on Amazon EKS
3 Apr 2024 by GabrieleTronchin
The Docker context command simplifies the configuration and switching between contexts.
1 Apr 2024 by KarstenK
As somebody already wrote: best is to hold the complete map (your background) as drawable image the whole game, so your drawing code may look similar like:void drawScreen(int x, int y) { if( isSomeCarAt( x, y ) { drawCar( x, y ); } else {...
31 Mar 2024 by steveb
Generally in a computer graphics smooth rendering is achieved by using a back buffer to which an image is drawn with subsequent BLIT (Block Image Transfer) into the Video memory. Drawing into the video memory directly results in visual anomalies...
30 Mar 2024 by merano99
To restore the background position, the old background can be saved with its position before it is overwritten by cars or players. As soon as the field is free again, the saved position can be restored. An alternative would be to use a copy of...
30 Mar 2024 by k5054
If I were doing this, I might be tempted to track the grid, the player and the car(s) separately, something like: struct position { int row, col }; struct position player; struct vehicle { char direction; struct position pos; }; // and...
30 Mar 2024 by Member 13096931
Bo, I can't understand... I manage to compile it with this code: id: org.flatpak.LaMiaVideoteca runtime: org.freedesktop.Platform runtime-version: '23.08' sdk: org.freedesktop.Sdk command: LaMiaVideoteca modules: - name: LaMiaVideoteca ...
30 Mar 2024 by DosNecro
/* Rasal Amarasurya */ /* 21304178 */ #include #include #include /* For malloc, free */ #include "game.h" /* Include the game header */ void initializeGame(char **grid, int rows, int cols, FILE *file, int...
29 Mar 2024 by Andre Oosthuizen
Note that, according to the Official Documentation[^], these directories are blacklisted - /lib, /lib32, /lib64, /bin, /sbin, /usr, /boot, /root, /tmp, /etc, /app, /run, /proc, /sys, /dev, /var, meaning you can't give an app access to them even...
29 Mar 2024 by Member 13096931
I have written an application and I would like to package it via FLATPAK. I put the files that make up the program inside a folder called "files", inside which there are three folders "bin", "share" and "lib". I then created the "manifest.json"...
29 Mar 2024 by DosNecro
/* Rasal Amarasurya */ /* 21304178 */ #include #include #include /* For malloc, free */ #include "game.h" /* Include the game header */ void initializeGame(char **grid, int rows, int cols, FILE *file, int...
29 Mar 2024 by merano99
CPallini is right! The comment in the source code says that the initializeGame() function should determine the player position. int playerRow, playerCol; /* Removed the initialization here as it's set in initializeGame */ However, the prototype...
28 Mar 2024 by CPallini
You failed to properly initialize playerRow, playerRow variables. Put a breakpoint at movePlayer function in order to see that live.
27 Mar 2024 by vijay s 2024
Hi I have installed codeProject.ai server for linux and run. It is running in my device as expected. But When I try install module which is YOLO v5.3.1 , It throws the below error : Trace Starting Background AI Modules Trace Running module...
24 Mar 2024 by Sean Cundiff
Are you intending for only the parent child process to have CPU affinity? if(sched_setaffinity(0, sizeof(mask), &mask) == -1) { perror("sched_setaffinity()"); return EXIT_FAILURE; } If not you should probably change...
23 Mar 2024 by PhaazeReborn
Greetings, I am self-studying OSTEP (Operating Systems Three Easy Pieces). It's an amazing book, and I'm learning a ton from it. Currently, I am working on the measurement homework at the end of Chapter 6 (Mechanism: Limited Direct Execution). I...
22 Mar 2024 by Mohammad Elsheimy
Configuring OpenSSL minimum version and legacy renogetiation
8 Mar 2024 by merano99
The program cannot function in the above form. It is immediately apparent that the offset would have to be a reference if the main program is to work sensibly as suggested. In addition, it seems urgently necessary to use a size_t as the data type...
7 Mar 2024 by k5054
You've tagged this with "embedded", so maybe you are running into malloc problems when using fgets. Maybe a better solution would be to use low level open() and read() Something like: #include #include #include ...
6 Mar 2024 by Richard MacCutchan
You have a potential hazard in your CustomGetLine function, in the following lines: if (dPtr[0] != cStartChar) { // Skip this line by reading the next one return CustomGetLine(dPtr, n, stream, cStartChar,...
6 Mar 2024 by _Asif_
have compiled your code on Windows and there are no memory allocation issues found. fgets do not allocate additional memory rather it simply copy content from the file stream into the source pointer. Since you already have allocated 5000 bytes of...
6 Mar 2024 by CPallini
I compiled your code, getting just the following warning: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 50 | while (uPktlen = CustomGetLine(tempbuf, &PtrSize, pCurrFile, '$', u32Offset)) anyway...
6 Mar 2024 by Charan Kumar Oct2022
I have written a simple c program as below where we are trying to read line by line data by using fgets() and we skipping the lines which doesn't start with character '$' , the problem I'm facing is I'm getting error as fgets: Cannot allocate...
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...
1 Mar 2024 by k5054
You could always try locate $ sudo apt install -y locate # ... installation messages snipped ... $ sudo updatedb $ locate libc.so /usr/lib/arm-linux-gnueabihf/libc.so /usr/lib/arm-linux-gnueabihf/libc.so.6 $ You'll need to run updatedb to...
1 Mar 2024 by Salvatore Terress
OK, this has been asked many times, so please bear with me. My "tool" seems to ignore WHERE it should put library .so files. I need an EASY way - Linux command - to find them. clang++ -c -pipe -g -std=gnu++11 -Wall -Wextra -D_REENTRANT...
1 Mar 2024 by CPallini
What is 'your tool'? I you mean the posted command lines, they are creating the shared library files in (their) current directory, I believe.
28 Feb 2024 by Richard Deeming
Since you're using .NET 6, you could try using the MemoryExtensions.EnumerateLines method[^] method, which should handle both Windows and Linux newlines for you. List lines = []; foreach (ReadOnlySpan line in...
28 Feb 2024 by Sander Rossel
Hi all, I've recently migrated a web app from a Windows Azure App Service to a Linux one. I'm now running into a problem that I had not anticipated. Since I'm new to running on Linux I thought I'd ask here. So basically the web app allows users...
25 Feb 2024 by Salvatore Terress
SOLVED / HACKED Found yet another "Bluetooth" resource with dbus-arch-deps.h defined... "it" compiles... CASE TEMPORARY CLOSED
24 Feb 2024 by k5054
Have you installed the libdbus-1-dev? The headers are included in that package, along with everything you need for programming against the library. You might also want to look into libdbus-cpp-dev, which appears to offer a CPP wrapper to the...
23 Feb 2024 by Richard MacCutchan
See GitHub - itemis/dbus: D-Bus is a message bus system, a simple way for applications to talk to one another.[^]
23 Feb 2024 by Salvatore Terress
ADDENDUM Am I on right track ? "add this to "im0plement" dbus in my copy of Linux ??? " nov25-1@nov251-desktop:~$ g++ -Wall --std=c++11 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include main.cpp -ldbus-1 not sure what...
23 Feb 2024 by Mohammad Elsheimy
One of the major issues encountered when connecting to databases after porting ASP.NET app to Docker Linux containers.
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.
21 Feb 2024 by Patrice T
Quote: How do I prevent roads from disappearing when the player moves through them in a grid-based game? - C programming Replace /* Clear the player's previous position */ grid[*prevPlayerRow][*prevPlayerCol] = ' '; with /* Clear...
21 Feb 2024 by merano99
Obviously, according to the source code in movePlayer(), the roads do not play a role in relation to the player, as the player should be able to move through them. It is therefore background. This means that the previous state should be saved and...
20 Feb 2024 by OriginalGriff
Create a global variable called lastSurfaceType and initialise it to "road". When you move a player, set the square it is on to lastSurfaceType before you do the move, then set the variable to the type the player is about to move to. That way,...
20 Feb 2024 by DosNecro
I'm currently working on a grid-based game in C where I have roads represented by dots ('.') and a player represented by 'P'. The goal is for the player to reach the destination ('G'). However, I'm facing a challenge in keeping the roads visible...
5 Feb 2024 by Clark Fieseln
Protect your privacy against malicious network activity and policy violations
3 Feb 2024 by Christy Haymi
Illegal instructions:section. data or wrong parameters Illegal instructions:section. bss or wrong parameters Illegal instructions:section. text or wrong parameters Illegal instructions:section. start or wrong parameters Wrong parameters :MOV edx,...
30 Jan 2024 by José Cintra
IoT architecture proposal for sensor data acquisition modules using the REDIS database and the GO language
29 Jan 2024 by OriginalGriff
This would be better posted in the dedicated forum: CodeProject.AI Discussions[^]
29 Jan 2024 by Ayan Ashraf
I have tried in Windows 10 and Docker running on a Linux VM so far. The same thing happens: after starting the ALPR module, it says Module ALPR has shutdown, followed by ALPR_adapter.py: has exited. Every image shows "No predictions returned" in...
20 Jan 2024 by OriginalGriff
Talk to Google: it's their software, their ads - and they don't get paid until people can see the ads on your site. If nothing else, they can point you at the official doc8umentation which will explain how to use them.
20 Jan 2024 by angry whopper
you guys have any issue with building dashboard for company using google ads API? i have somehow cannot connect the dots between those the dashboard and the API What I have tried: actually i only adding the API
18 Jan 2024 by Minh Danh Nguyen (ToughDev)
This article describes how to use WinDbg to identify issues that may prevent Windows Subsystem for Linux (WSL) from starting.
12 Jan 2024 by Salvatore Terress
How do I find which editor is using these symbols? ..after c++ comment symbol // //! [4] What I have tried: How do I find which editor is using these symbols? ..after c++ comment symbol // //! [4]
12 Jan 2024 by Patrice T
Quote: How do I find which editor is using these symbols? There is no way to find the editor since these symbols are not specific to an editor. You need to provide some context.
8 Jan 2024 by Blainecode
API respond time in Chrome: 20.37ms API respond time in Firefox: 0.5ms - 1ms as expected. OS: Fedora Linux 38. What I have tried: I have an Express server and a client in the AWS which EC2 free service, but my server's respond time have...
3 Jan 2024 by Richard Deeming
Assuming you mean your CodeProject password: Hover over your name (top right) and click "My Settings[^]"; Enter your current password, enter the new password, and confirm the new password; Click "Save my settings"; If you're not...
3 Jan 2024 by Member 8908630
i want to change my account password please thanks GOD BLESS What I have tried: I NEED CHANGE MY ACCOUNT PASSWORD
26 Dec 2023 by Nick Polyak
This article describes embedding native Windows and Linux control into an Avalonia application.
21 Dec 2023 by Richard MacCutchan
The first message is telling you that you have not defined a start label for the program's main entry point. The others are indicating that the operands are too long for register rsi. You should check the assembler and cpu documentation to find...
21 Dec 2023 by Member 16165977
I am trying to create a program that determines if a number is prime or not in assembly x64 using wsl this is the code: global main section .data input_number dq 17 newline db 0xA prime_msg db "The number is prime" not_prime_msg...
18 Dec 2023 by Intel
Fast and Easy Training and Inference Using Intel® Consumer GPUs and Windows* Subsystem for Linux 2
22 Nov 2023 by k5054
As presented, there are no issues with your schema, other than no Stadium table definition. In any case, a column with a Foreign Key constraint may have duplicate values. Check the schema for the WomensWCSchedule table and make sure you do not...
22 Nov 2023 by DosNecro
-- Values for the schedule of all matches that took place INSERT IGNORE INTO WomenWCSchedule (Bracket, Match_ID, Referee_ID, Team_1, Team_2, Date, Time, Stadium) VALUES ('Group Stage A', 'M01', 'R05', 'New Zealand', 'Norway', '2023-07-20',...
8 Nov 2023 by Richard MacCutchan
It may be that your version of Linux is not supported. It is always best to stay away from Youtube when learning new products, and use instead the official documentation: Install Docker Desktop on Linux | Docker Docs[^].