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 

14 Jan 2017 by #dev_Preet
Is there something like recordset with filter like property in c++ in Linux(Ubuntu) ? Or what else can be used in place of recordset in this case ?Does anyone know something for this?What I have tried:Till now I am fetching values from variables but due to large data to be used I...
5 Mar 2019 by #dev_Preet
I am using vs2008 and trying to connect MySQL on remote Linux machine using ODBC driver 5.3 version. My connection string is :: "Driver={MySQL ODBC 5.3 Driver};Server="& DSName &";Database="& DBName &"; User=root; Password="& MySQLPWD &";Option=3;" But when I am trying to connect using this...
13 Jan 2010 by #realJSOP
Do not advertise for people to do work for you using quick answers. There's a forum here for that.
13 Jan 2010 by #realJSOP
Become familiar with the game and then write code to duplicate its behavior. Chances are that you won't be able to get the source to most games, regardless of their current status.
19 Apr 2010 by #realJSOP
Did you contact the camera manufacturer? Do they have a linux driver available? Will a generic driver work? You should ask this question on a hardware forum that caters to linux.
12 May 2010 by #realJSOP
First, this is called "Quick Answers", not "Teach Me Everything There is To Know About This or That".Second, you not likely find many people here that can discuss this topic with any kind of authority since this is primarily a Windows developer site.Third, we don't do people's homework...
13 Jul 2010 by #realJSOP
I'm not sure how much help you're going to be able to get here, (this is for Linux, right?). I googled "asm segmentation fault", and got 116,000 hits.
15 Jul 2010 by #realJSOP
It's really not that hard to use google ("wcf web service linux client"). Here's one of the 210,000 hits returned:http://coab.wordpress.com/2009/10/15/calling-wcf-services-from-a-linux-c-client-using-gsoap/[^]
31 Jul 2010 by #realJSOP
Anyone on this site that COULD answer it would probably have to google it to find you an answer, so you may as well google it yourself and save everybody valuable time.
25 Aug 2010 by #realJSOP
Review this web page:http://msdn.microsoft.com/en-us/library/system.net.ftpwebrequest.aspx[^]
29 Nov 2010 by #realJSOP
Capacity is how many characters the string can hold, and size is the actual size of the string as it exists.
20 Jan 2011 by #realJSOP
Linux isn't Unix. They're close, but there will be differences. Try this web site:Linux Socket programming tutorials[^]
2 Mar 2011 by #realJSOP
The best way would be to just use Virtaul Box to create the required virtual machines. Then, you don't have to risk your boot sector, or mess around with a multi-boot scenario.
24 Mar 2011 by #realJSOP
It's a problem on the windows box. I googled "iis ftp server access denied" and got back more than 253,000 hits.http://www.google.com/search?q=iis+ftp+server+access+denied&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a[^]
13 Apr 2011 by #realJSOP
Looks to me like it's defining a field offset based on the type of value that's represented by the specified field name.
30 Apr 2011 by #realJSOP
You can't use a boolean in a for loop. You're effectively doing this:for d = 0 to false (or true)...Next, you're incrementing the control variable d inside the loop - this goes WAY beyond bad programming practice.Finally, we can't help you convert it if we don't know the types of...
25 Jul 2011 by #realJSOP
Why don't you just do the work assigned to you? If you're good at what you do, people will notice.EDIT ==============I think your really need to read this article:Being a Programmer[^]The best way you can impress your superiors is to put 120% into the work to which you've been...
1 Aug 2011 by #realJSOP
Isn't google compatible with Linux?
26 Aug 2011 by #realJSOP
Go here [^]BTW, it won't *your* project if you use someone else's code.
12 Sep 2011 by #realJSOP
IMHO, if you want to do C# coding, you're wasting your time by switching to Linux. Mono has always been - and will always be - at least a step and a half behind the Windows version, and WPF and Silverlight are still not supported. Microsoft has also terminated support for the project. If you...
27 Dec 2011 by #realJSOP
Go here [^]
2 Mar 2012 by #realJSOP
You can specify that NTFS be case-sensitive, but that might break other apps. Best practice ina multi-platform environment is to simply add code to normalize the folder and file names INTERNALLY to your application..
30 Mar 2012 by #realJSOP
I'm on a project where the code is currently being developed with QT Creator, using the QT framework. We've run into problem after problem, and we've effectively stopped development until we resolve the problem (one way or the other).One approach is to force VS2010 to work for us (this is...
8 Nov 2018 by #realJSOP
Try this: db2 "CREATE PROCEDURE TEST_PROCEDURE() BEGIN AS SELECT DECLINECODE FROM [DASUSR1].[DECLINECODE]; END"
28 Mar 2019 by #realJSOP
Try this (no guarantees, just a stab in the dark): if (data.lower() == "exit"): or maybe if (data.lower().startswith("exit")):
16 Apr 2019 by #realJSOP
This might help. I googled to find it... How to Find Files With setuid Permissions (System Administration Guide: Security Services)[^]
7 Jul 2020 by #realJSOP
Using .Net Core 3.1 in VS2019. The app that will be running on a Linux system, so I can't use any WinAPI stuff. I'm trying to read a file on a local network system. The IP and path are correct (using SSH, I can connect to the machine, change...
20 Dec 2021 by #realJSOP
Use reflection. I change the object names a bit and refactored the sample list, but you'll get the picture. public class InboundDataItem { public string OriginCompany { get; set; } public string OriginState { get; set; } public...
7 Feb 2015 by 'Anil' Radhakrishna
Show off your book collection using a AngularJS script & Google Spreadsheet as your back-end
19 Dec 2009 by 0x3c0
A spinlock causes the process to continuously loop until the spinlock is released, while a semaphore causes the process to sleep until it's released.A semaphore is usually better if you're going to be waiting a longer time for the criteria to be met.
13 Jul 2010 by 0x3c0
A segmentation fault means that you've made the memory protection systems think that something is wrong. Generally, it means that you're trying to access an unmapped address, or passing a wrong address to a system call. Work out where it's faulting, and check what you're supposed to provide to...
6 May 2010 by 0xeffe
Im sure you can find an answer in the Java Hello World example
15 Jun 2017 by 0xG00DC0FFEE
A better and much simpler implementation of Finite State Machine library for C++
1 Feb 2015 by 1&1 Internet
Providing a rich, interactive experience will increase visitors returning to your website. Symfony, known as a stable and powerful development environment, can be used to create a wide range of Web projects. Here we provide an introduction to Symfony and a guide to getting started.
29 Jan 2015 by 1&1 Internet
In this tutorial we will provide you with detailed instructions on how to install and setup Git and GitList for your Git repositories
14 Oct 2013 by 101zeeshan101
You can use sed like this:Solution:s='1 2 3 4 1 2 3 4 1 2 3 4 1 2 3 4'p='1 2 3 4'echo "$s"|sed "s/$p\s*/&\n/g"1 2 3 4 1 2 3 4 1 2 3 4 1 2 3 4You can use infinite while loop and use the input file and iterate through each line to use this logic for murtiple lines.Live...
5 Dec 2019 by 10xlearner
A post on how to format CPP, C, JavaScript and other stuff
6 Apr 2013 by 125Azazelo
Hi i have beginner question how to make .so and .dll from .cpp in Linux?I have simple project no thread , 2 .h files ,and 2 .cpp files.
26 Jul 2023 by 1f604
Source code and explanation of my io_uring based implementation of b3sum
26 May 2022 by 1mf2p
hello I would like to create a program which by giving the equation of a straight line allows us to draw it, then a program which could determine the point of intersection of two straight lines according to their equations What I have tried: ...
6 Oct 2023 by 1negroup
I am trying to make a flappy bird clone using xlib and I have an XSendEvent inside a function and that function is inside a while loop. I am thinking that that is the issue so is there a better way to update the screen? I just need it to stop...
29 Apr 2016 by 23ars
This will be a simple article about Linux Device Drivers, in fact about a char driver that controls the GPIO ( General Purpose Input-Output) port of the Beaglebone Black.
28 Oct 2014 by 28shivamsharma
I am facing this problem from many months and still it is not debugged. I am using Lenovo Z570 laptop in which there is two operating system is installed one is Windows 7 and another is Kali linux and using public wifi connection. Internet works great in Windows 7 but not in Kali linux. In linux...
18 Feb 2010 by 3170
Temperature Differential Thermostat ?I'm toying with the idea of heat transfer from my attic to the floor below.I was wondering if anyone knows of a cheap, or home made Temperature Differential Thermostat please ?I only want the system to work if the temp in the attic is higher than...
25 Oct 2013 by 3bood.ghzawi
I want to write a C code that reads billions of integers from a text file. Each integer is of length 10 digits (e.g. -2311872000). then I build a linked list to store these integers.how could I do that ?
25 Oct 2013 by 3bood.ghzawi
I have generated text file containing random numbers (using for loop), and these numbers are stored in the text file in the form space number space. I need to read integers each of 10-digit (as 8210347655). I'm very headache and seeing it a very trouble, please can anyone help me.regards...
15 Nov 2017 by @@18selva
TAC7 issue in accessing the image file from Linux Dev environment ​POC: To read the Metadata properties from .axf file (image) through SDK executable and populate the Metadata inside the DDVPM application. I have an executable both in windows and Linux , I am using Process process =...
1 May 2020 by @raj0072
Input : D8B9D8B1D988D8B320D8A7D984D8BAD8B1D8A8 Output : دضبصدضب١دصضضدضبعء٠دضاحدصض٤دضبادضب١دضاض(In Arabic language),1 day, 4 days, 4 days, 1 times(In English Language). Please suggest solution in java code only. Thanks in advance. What I have...
9 Oct 2010 by [pl]3k
My problem is the same, I use Fedora 13 x86_64. Is it a bug or when we used "setlocale" we modified something in our configs?
26 Aug 2013 by _Amy
You should not feel lazy to use Google. You may find your answer here[^].You should read this[^] article before posting any question to CP.--Amit
22 Jun 2014 by _Asif_
Welcome to the wonderful word of CCXML/VXML
26 Aug 2013 by _Asif_
A simple google search prime numbers C++[^] would give sufficient link for your home work.
11 Sep 2013 by _Asif_
Check this linkprintk()[^]
26 May 2015 by _Asif_
I have not tried it myself but it seems that this could help you out[^]
13 Jul 2015 by _Asif_
A good and detail discussion over difference between linux and unix is briefed here![^]
13 Jan 2016 by _Asif_
If you have had googled you might not need this question. Any wayQuote:The rename() function shall change the name of a file. The old argument points to the pathname of the file to be renamed. The new argument points to the new pathname of the file.#include int...
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...
18 Jan 2010 by _Damian S_
You have given us very limited information to go on, so I will give you a general solution.First, you need to find out the file structure that is required for a .m file. I will assume it's a plain text file with .m extension.Then, grab your information (from where you don't say),...
3 Oct 2014 by _debasis
Is JavaScript function invocation confusing
20 Oct 2014 by _Maxxx_
The Internet of Things needs YOU!
14 May 2013 by _rfk
Hi,I have an 2 MB spi nor flash. It has jffs2 filesystem on it with size of 1 MB. Here is the steps for deploying jffs2flash erase -j /dev/mtd10 0 0mount -t jffs2 /dev/mtdblock10 /root/rootfs_rarely_rwThen some important stuffs stored there. Normally everything is just fine and...
8 Oct 2013 by _rfk
Hi,I am working on multi process environment on embedded Linux Kernel.How can I make all of my elfs to listen the console without blocking other elfs.For example:app1.elf -> call getchar() or similarapp2.elf -> call getchar() or similarapp3.elf -> call getchar() or...
18 Mar 2013 by _Shepherd
So, how does one code these methods/functions in Linux ?void drawengine::gotoxy(int x, int y){ COORD pos; pos.X = x; pos.Y = y; SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE), pos);}void drawengine::setcursor(bool visible){ CONSOLE_CURSOR_INFO...
9 May 2014 by _Starbug_
hi friend.i have problem when using execlp function in c in linux OS.i set the first parameter of it path of executable file and second parameter to name of file like this and else. what is wrong with this code that do not execute the...
13 Dec 2012 by A beginner in C++
Hi Guys,I do have a small query. Suppose I would have to pass two arguments, say, a derived data type(like a enum) as constant 4 i/p n an inbuilt data type(say a string)as non constant 4 o/p to one of my shared obj's function from my main application. What would be the best way to do it?...
24 Nov 2021 by A ch iaosisyfsj Halshdxos
Forgotten Report There are N cities in a state. You start your ride from the first city. You have to visit all other cities exactly once and finally return to your origin city. After visiting each city, you collect the analysis report. But when...
9 May 2012 by A-s-h-l-e-y
I want to release some software for free home only non-commercial use. I don't want to allow unlimited copying and distribution as i have worked hard on some projects and want my site to be the only distributor (To increase traffic). I also don't want to make my work open source, i am happy for...
3 Aug 2004 by aa2max
Receive email notification if your website is down or slow
6 May 2020 by Aaditya Mittal
import subprocess import re import optparse ifconfig_result = subprocess.check_output(["ifconfig", options.interface]) print(ifconfig_result) mac_address_search_result = re.search(r"\w\w:\w\w:\w\w:\w\w:\w\w:\w\w", ifconfig_result)...
10 Feb 2011 by aancha88
how to send encrypted data form from one system to another sytem
9 Jul 2013 by Aaron @ Think Software
If haproxy redirects the site to the specific server and port, the host name should still stay the same in the users browser so you should be able to extract the subdomain from the hostname and then redirect on the site to the specific folder relating to the subdomain such as Apache's...
1 Oct 2012 by Aarti Meswania
every one have different point of view for this questionsuppose comparing c# & vb, vb is easy for mefirst you should decide on which technology you want to work.language doesn't matter so muchlike real-world example, we can convert french, hindi etc languages to some other languages...
1 Feb 2013 by aaverian
A very simple console progress bar.
25 Aug 2013 by abbaspirmoradi
just look at this link.same problem here
24 Nov 2014 by Abdallah Al-Dalleh
Hello allI have a C++ project under Linux, the program will receive Xml content through HTTP requests. I have already planned for XML content parsing by using the TinyXML-2 library, I'm stuck at the point on how to receive HTTP requests. Any advice on how to handle HTTP requests that are...
27 Nov 2014 by Abdallah Al-Dalleh
For anyone facing this problem, see this:Capture Incoming HTTP Requests to the Web Server[^]
17 Feb 2015 by Abdallah Al-Dalleh
hello allI've used Linux capabilities to enable network operation for non-root programs using the option CAP_NET_ADMIN. There is another application that uses Linux watchdog timer (which obviously requires root). Can I use the watchdog timer in an application and use Linux capabilities to...
1 May 2019 by abdou_31
I have setting up a project that should detect iris region ( in eye ) in real time using deep learning , I have cloned yolo segmentation project in github : https://github.com/ArtyZe/yolo_segmentation I compiled the project using make -j4 , and i'm trying now to training my own dataset using...
11 Jul 2018 by abdul subhan mohammed
Dear All, I have an CSV file, where i have to validate the data, that the each row and column of csv file, is correct or not. To store in SQL database. for example: CSV file contains columns: FullName, EmailID, DOB, Age. if EmailID is not in correct format(in nth number of rows), then i have...
27 May 2011 by Abdullatif M. Abu Al Rub
you should define an object of any form so that you can handle with it's componentsfor Example:Form2 x= new Form2;now you can access any of form2 controls by using:x. and the control u need i.g:x.label1.Text="Hi";x.textBox1.Text="12345";take care
21 Sep 2012 by abey e mathews
http://qt.digi...
8 Aug 2014 by abey e mathews
hi,i have a web application using PHP.I need to provide more security for images stored in server..i have cpanel linux server..is any option to secure using compain with Linux file permittion and php encryption..Client will not have access to hack and access the image gallery...
10 Jan 2013 by Abhijit_Satpute
Needed C/C++ code which returns MAC address on on solaris platform without root user..
18 Jan 2010 by Abhinav S
In c# we have namespaces.The tag for the question you've posted here is incorrect.
13 Feb 2010 by Abhinav S
Have a look at the Data Access sample applications here[^]. They should help you get started.Police file system - you will have to understand the workflow on your own - that's homework !
10 Jun 2010 by Abhinav S
Masood Naqvi wrote:gfs.t00z.pgrbf00You need to tell us what this is - if it is a third party temporary file, then you need to use some tool to read it, probably provided by the third party.
20 Oct 2010 by Abhinav S
The .Net framework does not work on the linux environment (unless you are thinking in terms of mono[^]).Javascript should work in a browser on redhat.
1 Nov 2010 by Abhinav S
If you are discussing an issue with an article, please post this question in the article itself. You stand a much better chance of receiving an answer then.
7 Mar 2011 by Abhinav S
This[^] might help you.
20 Mar 2011 by Abhinav S
Why dont you try searching on the internet? You might find a solution or two that may help you get started.
23 Mar 2011 by Abhinav S
You could use Merge sort as one option. See http://www.chiark.greenend.org.uk/~sgtatham/algorithms/listsort.html[^].
4 Jun 2011 by Abhinav S
Doing a search on the internet will give you a number of links.I found this[^] interesting for a start.But remember, there is tons more to do.
28 Feb 2012 by Abhinav S
You need to understand why a constructor is used in object-oriented programming in the first place.A constructor is nothing but a method.The whole idea is to prepare a new object for use (e.g. with parameters etc that the object methods might need).A constructor can be inherited in a...