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 Title

Linux 

31 May 2019 by Frankie1212
I tried to enroll my finger for NYSC Biometrics but it keep on showing "Conversion from type DBNull to type Date is not valid"? What I have tried: I have tried google for solution but i did not see the right answer
31 May 2019 by OriginalGriff
If you are trying to write your own software, then nobody can help you without the relevant code fragments. 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: the debugger. How you use it depends on your compiler system,...
2 Feb 2014 by Sanjeev236
Hi, I am getting this error when I tried to edit a file .Can somebody help me in resolving this issue?
2 Feb 2014 by CPallini
Did you Google for[^]?
15 Nov 2015 by AdamDedanga
I keep getting these errors when I create MySQL tables from CSV files.ERROR - Error No: 1103 - Error: Incorrect table name 'Hospital_Value_Based_Purchasing__HVBP____Healthcare_Associated_Infection_Scores' - Call: Function createTableFromCSV in...
16 Nov 2015 by markkuk
The maximum length for table name and most other identifiers is 64 characters: https://dev.mysql.com/doc/refman/5.7/en/identifiers.html[^]The name you are trying to use is 79 characters long. Add code to limit the length of identifiers.
15 Jan 2012 by mot sach
when i compile my source code ""g++ main.cpp Test.cpp", i have met error:"/tmp/ccSer90m.o: (.bss+0x0): multiple definition of `Test::count'/tmp/cc7iaBlq.o: (.bss+0x0): first defined herecollect2: ld returned 1 exit status"File "Test.h":class Test{public: ...
15 Jan 2012 by «_Superman_»
The definition (int Test::count = 0;) must be put in a .cpp file and not in a header file.
15 Jan 2012 by tolw
Try moving this line:int Test::count = 0;from the .h file to the .cpp file.The problem is that each time you include "Test.h" the count variable gets defined - hence multiple definitions. Moving the line to the .cpp file ensures that there is only one definition of count.
15 Jan 2015 by RupeshMote
I have downloaded Android kitkat source code(android-4.4.1_r1) from Git repository.Then I set required initial setup environment. And then try to build android source code.I did this entire procedure as per this link https://source.android.com/source/building.html[^] I am using...
6 Feb 2015 by RupeshMote
Finally, I have build android source code successfully.Here is how I did it :In first attempt, I had downloaded source code of Kitkat branch. But it was not downloaded properly.(source files were missing).Then, I have downloaded Android OS source code of master branch, which is...
9 Aug 2010 by Tejas_Pathak
Can Sharp Develop be anyways run on Linux?Like Mono(for linux)> #develop.orWINE > Mono(for windows)> #develop.
9 Aug 2010 by OriginalGriff
If you mean "Can I run Sharp Develop on Linux?" then no - it win only. There is a version that does though: MonoDevelop[^]However, (as I have said before) Do not expect Mono to work exactly teh same as .NET - it doesn't. And probably never will. If you develop with Mono on Linux you should be...
10 Aug 2010 by Tejas_Pathak
I tried it with WINE, Mono for windows and sharpdevelop. The sharp develop installs correctly, even runs to display a window but crashes when a new project is created. It has some problems with MSbuild it says.
1 Nov 2011 by Mehdi Gholam
Try the forum on : http://ioquake3.org/[^]They can probably help you better.
3 May 2019 by coffeenet
Hi,I am trying to compile ioauek3 on our IBM PowerPC machine that is running with a Linux environment.I got this error:#error You now need to define either FIXED_POINT or FLOATING_POINTI found that many say the fix is:make speex-reconfI...
23 Nov 2012 by srmohanr
In a strictly confirming shell, it's not possible to have the characters '/' and '\0' in the file name.Under what circumstances we would able to get '/' in a file name?If we are somehow given a file name with '/' in its name, what we need to do to get rid of them?Please help. very...
23 Nov 2012 by Snk Tay
I am not sure but i think the '/' to open a file when it is in a folder!!So if you have a folder named DATA and you want to open a file from that folderYou can do it like that in c++:ifstream openfile;//...............//Open the file which is in the folder...
24 Nov 2012 by CPallini
You may find a good explanation here: "Filenames and Pathnames in Shell: How to do it correctly"[^].
7 May 2010 by into_the_wild
I installed a Cygwin system on my windows XP platform, following is what I get when use './configure':$ sh ./configureloading cache ./config.cachechecking for a BSD compatible install... /usr/bin/install -cchecking whether build environment is sane... yeschecking whether make sets...
22 Apr 2010 by Michel Godfroid
You are probably missing required bits of Cygwin. Why are you using ./configure directly? The GUI download normally takes care of all that for you. And yes, the bit you are missing is most probably the GCC compiler. You should select it in your Cygwin installer.
22 Apr 2010 by CPallini
I doubt Cygwin will use the Microsoft compiler.You probably should download the gcc compiler (the Cygwin setup will do it for you). :)
22 Apr 2010 by into_the_wild
I have downloaded a gcc zip file, then unzip it under the same directory of the cygwin files.Restart the configure command again but still failed,the error information is as follow:$ ./configureloading cache ./config.cachechecking for a BSD compatible install... /usr/bin/install...
23 Apr 2010 by Tony Richards
Use the cygwin setup program again to add the GCC package. It should set up your $PATH variable for you. This is far safer than just downloading the archive.
11 Oct 2018 by Member 14016042
I want to create a program that receives a number N as an argument and starts N threads each displaying one of the numbers from 1 to N synchronously, to produce an ordered sequence (12 ... N) *. Where, it is necessary to use one and the same function executed by all threads and pass the number...
11 Oct 2018 by OriginalGriff
mutex is declared as part of your main function: int main(int argc, char *argv[]) { N = atoi(argv[1]); sem_t mutex[N]; which makes it a local variable - its scope is limited to the set of curly brackets which most recently enclose it - the main function itself. And then you try to...
12 Oct 2018 by KarstenK
Really strange that the first error is at this line. The compiler should complain already on: sem_t mutex[N]; This code shuld do the job sem_t *mutex = malloc( sizeof( sem_t ) * N ); //at the ende free( mutex ); Tip: set the warning level higher. This warnings are helping you to write good code :-)
11 Oct 2018 by Member 14016042
Sorry I copied the wrong code. #include #include #include #include #include //#include // pour les threads #include // pour les semaphores #include // pour les flags O_CREAT, O_EXCL, ... //...
11 Oct 2018 by CHill60
If the code you have posted as a solution is genuinely the code causing the error then try changing sem_wait(& mutex[N-1]); to sem_wait(&mutex[N-1]);
28 Jul 2013 by suruholo21
http://live-soccer-video.blogspot.com/2013/07/watch-usa-vs-panama-live-streaming.html[^]
17 Jul 2013 by asfvedrg
http://stateoforigingame3.blogspot.com/2013/07/blog-post.html[^]
14 Jan 2021 by honotard
Been doing a task in C programming language. I had a problem with fmod which gave me a specific error after trying to execute and give permission.(Undefined reference to fmod, error ld returned 1 exit status). Some people helped me on this...
14 Jan 2021 by Afzaal Ahmad Zeeshan
From a high-level overview, the code looks nice, secondly the code "compiles" just fine too: C++ Shell[^]. What I feel like is there might be an invalid character (most likely an invisible one) that is causing trouble for the compiler. Oh, and...
14 Jan 2021 by OriginalGriff
I just tried it using gcc via rextester, and your code shows no such error: Compilation time: 0.12 sec, absolute service time: 0,29 sec Error(s): 1693378824/source.c: In function ‘main’: 1693378824/source.c:12:1: warning: ignoring return value of...
14 Jan 2021 by CPallini
Your code compiles fine (as already noted by our Griff). Just link it with the math library in order to obtain the executable, e.g. gcc -Wall foo.c -lm Please note, factorial results become 'unmanageable' very fast: even 64 bit integers can...
6 Jan 2013 by Trevor Johansen
Just a quick question. I have an app that uses mono and this app needs to communicate with something via a serial port at 256000 baud. I can connect to the hardware via "gtkterm /dev/ttyUSB0 250000" but in the mono app I do not get any errors or any communications at all.Someone mentioned...
12 Oct 2014 by Sergey Alexandrovich Kryukov
What would be the use of the exception stack if you don't show any code which causes the exception?So, you need to learn how to ask questions and understand what is essential information and what is not. For solving the problem, learn how to use the debugger.—SA
26 Aug 2016 by Cold Avian
I am new (Day 2) and of course already can't solve this problem!!!! I am using "C++ For Dummies 3rd edition" and the first... VERY FIRST project and I already have a problem. Every time I try to build and run #include using namespace std;int main(){ cout
26 Aug 2016 by Cold Avian
I have gotten so far into coding and its only been since July 16! I have already decided to take it on as a career! Thanks for helping me with my first problem ;p ! Good luck to allSOLUTION IS TO INSTALL XTERMTerminal it uses :p or just change it to what you want in settings
26 Aug 2016 by Cold Avian
I have gotten so far into coding and its only been since July 16! I have already decided to take it on as a career! Thanks for helping me with my first problem ;p ! Good luck to all
4 Jan 2012 by Tasawer Nawaz
slam, hi i m using Ubuntu 11.10 and i m trying to install ns2.34 on it,after going to the specific path, when i m using this command, ./installi have found the following errorerror: -bash: ./install: Permission deniedplease give me a proper solution, thanx in...
4 Jan 2012 by Sergey Alexandrovich Kryukov
It's normal, as installations usually require superuser permissions. Run:sudo ./installYou will be prompted for your account login password; to pass, your account also needs to have sufficient privileges to play as a superuser. Please see: http://en.wikipedia.org/wiki/Sudo[^].—SA
30 Nov 2013 by Saman With You
Hello,Is it possible to write a program with visual studio and run it in a different operating system like linux or mac or...? I need to know that if I do programming with visual studio, it means that I always generate applications for Microsoft windows or not?Thanks
30 Nov 2013 by OriginalGriff
Yes...but.It's not that simple, because you need the whole framework below your application in order for it to work, and Microsoft only produce .NET itself for Windows.For Linux, look at MonoFor Mac, look at Mono:OSXFor iPad and Android look at XamarinThe first is free, I think...
17 Dec 2010 by VikashGohil
Hello, this is Vikash Gohil.I have developed a VB.net application in VS2005.I also want to run this application(exe) in Linux.I have came across mono, but I have no information on how to use that.All i want is I copy my Application EXE to a folder in Linux and run it to start the...
17 Dec 2010 by OriginalGriff
Install Mono - You need either the .NET framework or Mono to execute .BET applications.See http://www.mono-project.com/[^] they have a "Getting started" section.
28 Sep 2010 by prabut
I Have a doubt in .net for configure to linux os.(i)Is .Net Framework is completely or fully work in redhatlinux-5.0 environment?(ii)Is Java script Codes Work in redhatlinux-5.0 environment?
29 Sep 2010 by Sauro Viti
Microsoft develops the .NET Framework only for Windows platforms. On Linux you can use Mono which is a open source implementation of the .NET Framework; look at Main Page - Mono[^] for more informations.As you can see at Cmpatibility - Mono[^], it is not fully compatible with the Microsoft...
18 Jun 2020 by Member 14867519
I want to use .NET core IoT library in order to run C# code for my SAMA5D27 SOM1 EK1 ARM embedded board. GitHub - dotnet/iot: This repo includes .NET Core implementations for various IoT boards, chips, displays and PCBs.[^] I have build this...
18 Jul 2016 by Kornfeld Eliyahu Peter
PoC - a small trip to see how .NET Core IS multiplatform
19 Jan 2011 by Rupa1
I have small doubt we are running .net application in windows xp,it is positionable to run Linux...?
19 Jan 2011 by Nish Nishant
You can run .NET applications under Mono. But you may not be able to just take a compiled .NET exe that runs on Windows and expect it to run on Mono (although that was the original idea).But unless you use any Windows specific stuff, you should be able to reuse most or all of your code,...
19 Jan 2011 by E.F. Nijboer
Yes, you have Mono (Novell) that provides Moonlight which is open source implementation of Silverlight. Nishant is right by the way that Mono is the open source .net implementation. Using Silver/Moonlight does not require a recompile and works well on both which is a great...
19 Jan 2011 by thatraja
Already you got the answers from other answerers.So For samples pick from this collectionCross Platform Articles @ Codeproject[^]Best picksIntroduction to Mono - Your first Mono app[^]MONO: an alternative for the .NET framework[^]The platform-independent code with Mono:...
27 Sep 2010 by ZhaoRuFei
This article provides a macro + template solution to support .NET-like Reflection for enums such as ToString, IsDefined, Parse, GetValues, GetNames.
22 Jan 2011 by Debojyoti Majumder
I am building a .so file.I had build it once, it worked.Now I have changed the code and built once morefound that the .so file is not updated though the time stamp has changed.Please help.If someone knows any tool for .so file dependency checking,please let me know.Thanks in...
22 Jan 2011 by jk chan
.so file ? i think it is a shared object file in linux. Better post on some linux forums
3 Jan 2012 by prince_rumeel
//============...
2 Jan 2012 by Randor
Hi,It looks like the GCC linker is unable to find the pkg-config library[^].Depending on what distro you are using... you should be able to install this package using yum,rpm or maybe apt-get. Or you could optionally download and compile the package and 'make' it.Best Wishes,-David...
3 Jan 2012 by markkuk
You don't use pkg-config that way. There's no "libpkgconfig" you could link with your code. Read the pkg-config documentation[^] and fix your Makefile.
20 May 2010 by Gaurav Kishore, Prateek Vaishnav
A 3D chess game that can be played between a computer and a human
14 Apr 2019 by Martin Vorbrodt
3D Engine, from GLUT to GLFW
10 Sep 2013 by Pablo Aliskevicius
Memory reallocation generated by string concatenations can create performance bottlenecks. .NET has System.Text.StringBuilder, JavaScript has Array.join, and we have string::reserve.
28 Apr 2015 by Sergey Alexandrovich Kryukov
It is not possible to execute arbitrary 8086 code on Linux, you would need a virtual machine with simulation of some real-mode system, such as DOS, as a guest OS. This is not a question; there is nothing reasonable in this post. Of course, you can use assembler itself on Linux:...
23 Sep 2012 by ilostmyid2
hiwhat's the equivalent function for _vscprintf under Linux?thx
23 Sep 2012 by pasztorpisti
Well, this is tricky! :-) I have always used vsnprintf()[^] to do the job by specifying NULL and zero as the first two parameters. If you look at the documentation and check out what it says about the return value you will see that this is perfectly valid usage of the function!EDIT: The same...
18 Feb 2014 by ilostmyid2
hithere're two machines:- a client in which Windows 7 x64 is installed. the client application is developed with C# in Visual Studio 2010. it uses class SoapHttpClientProtocol to connect to server and run its web services.- a server in which Ubuntu 12.04 x64 is installed. the server...
29 Jul 2018 by ilostmyid2
In the following code: #define Uses_Info #define Uses_WebSocketServer #include "ws.h" int on_connect(WebSocketServer *server); void on_message(const char *buf); void on_disconnect(); void* CALLBACK ws_stream_on_connect(WebSocketServer *server) { Info("ws_stream_on_connect"); int n = 5;...
28 Jul 2018 by Manfred Rudolf Bihy
Maybe an exception was thrown ? You can wrap the server-> send in a try/catch statement and log a message in the catch block. BR, Manfred
29 Jul 2018 by ilostmyid2
oh i found something! in mod_websocket.c, in function handle_websocket_connection, before calling conf->plugin->on_connect which is indeed ws_stream_on_connect, apr_thread_mutex_lock is called on state.mutex. then in mod_websocket_plugin_send we see the lock again. BMO, this means that...
18 May 2019 by Gerry Schmitz
Quote: The url belongs to a camera You need to read the instructions that came with the "camera". Like, what "message" to send to get what you want.
9 Jan 2020 by ilostmyid2
Hi There's a source (camera) which sends notifications (motion alarms) to port 8085 of a server I've subscribed its IP for it. Maybe in such a negotiation I can't call it 'server', but it's our server which serves some other things. I've written two programs for receiving and echoing current...
15 Aug 2022 by ilostmyid2
I tried my best in the following program. But it doesn't establish the bridge between two network cards. Would you please review it and say what's wrong? Thanks OS: Ubuntu 20.04 // This is a program which is going to make the bridge between two...
10 Mar 2021 by KarstenK
looks like you need some Debugger tutorial. A "bridge" may be not the best word, but establish a connection between two hosts which sounds more than Networking and Socket Programming Tutorial in C. ;-)
21 Jun 2015 by Anupam_Datta
Motion activated Pushbullet notification from your Arduino to your Smart Gadgets
18 Jan 2020 by Member 14720175
Hello, I'm a beginner in programming and I'm having trouble writing a script. Write a script with two parameters: file name mask and directory name. The script's task is to display a list of file names from the given directory, matching the given mask together with the name of the owner and his...
18 Jan 2020 by k5054
Pay attention to your spaces and capital letters What you want is something more like #!/bin/bash find "$1" -name "*.$2" -exec stat -c "% N % u% U" {} \; I have not tried this to find out if it does what you want, or to find out if the call to stat is right, but note the lack of spaces and...
13 Oct 2021 by wifinut
I'm trying to remove the HH:MM:SS section in the following string example: Mar 6 01:00:53 2026 The problem is that I cannot go by character position because the text length can change. Example, there could be 16th instead of 6. Therefore I need...