Click here to Skip to main content
15,894,343 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 Title

Ubuntu 

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...
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...
28 Feb 2021 by Member 15086508
Hey all noob programmer here. I thought Instead of watching tutorials just to jump In and build stuff and learn on the go and trial and error rather than just being stuck In tutorial limbo. First Is obvious a basic hello world Program easy done....
28 Feb 2021 by OriginalGriff
Because the C language is case sensitive: "I" is not the same as "i" Change this line:Int main(){ To this:int main(){ And in future, don't take photos of your screen and post links to them: copy'n'paste the actual text and post that here,...
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
25 Aug 2020 by Nick_is_asking
Hello guys... I use C to do a 2d array without total success.I get the below error: Segmentation fault (core dumped) Explaining the code: First I give rows and cols via input and then I print the 2d_array with random numbers between 1 to 100....
25 Aug 2020 by Patrice T
As far as I remember, int **array_2d; you declare a pointer to a list of pointers to lists of integers. But here, array_2d = malloc(sizeof(int) * rows * cols); malloc makes a list of integers and return a pointer to the list, and the pointer...
25 Aug 2020 by k5054
You have the declaration: int **array_2d; This declares array_2d as a pointer to pointer to int. But then you allocate the array witharray_2d = malloc(sizeof(int) * rows * cols) . The malloc() returns a contiguous block of memory (i.e. int *,...
25 Aug 2020 by OriginalGriff
What you need to do is look at what is happening while your code is running. 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, but a quick...
25 Aug 2020 by Rick York
Other solutions have given you about everything you need with one exception and that is how to release this memory. You must always remember to release the memory that you allocate. Here are pair of functions to handle allocation and release of...
8 Oct 2021 by Nick_is_asking
Hello everyone.I have 3 files in C++. It is my 2nd day with C++ (I have learned C last year in university). So, my first file is a header file (human.h) The 2nd file is a .cpp file (human_functions.cpp) and here I implement all the...
8 Oct 2021 by OriginalGriff
Check your linker settings: is the human_functions.
8 Oct 2021 by k5054
The command g++ main.cpp -o main doesn't tell the linker where to find the compiled code for human_functions. Although you've included human.h in your main.cpp, that only includes the class definitions to main.cpp, it doesn't say where the...
8 Oct 2021 by Nick_is_asking
What I did is that I delete #include "human.h" from main.cpp and insert #include "human_functions.cpp" and now it works. Is that a good way generally or not? Thanks.
8 Oct 2021 by Nick_is_asking
I only want to compile main.cpp .What should I include in main.cpp so that I can run it without any problems?You told me a lot of thing on solution 2.
23 Dec 2012 by ilostmyid2
hia client application is written in C# by Visual Studio which calls some web services in an Ubuntu server which are implemented in php and get available via NuSoap. a web service is required to download a file from server to client. the file may be as large as 1GB.what's your suggestion for...
9 Sep 2014 by Sergey Alexandrovich Kryukov
You can created a DEB package using the source code by doing proper software development work. I hope this answer will help you, but only if your properly understand it. A little hint: ask YOUR question.Thank you.—SA
9 Jun 2013 by Arsineh Boodaghian
Hi, I have edited my question...Im having problem with this part of program, if ((n = sendto(dccp_sockfd,cmdframe, 18, 0, (struct sockaddr*)&PMU_addr,sizeof(PMU_addr)) == -1)) { perror("sendto");// when I use the program, this error execute at runtime by saying sendto: broken...
6 Jun 2013 by KarstenK
You should search for some working sample code.I guess you mismatch some flags
29 Dec 2013 by Sergey Alexandrovich Kryukov
One of the approaches is this: to rely on already setup mail Mail Transfer Agent ("sendmail") on Linux, but it won't be an equivalent to your SMTP-based code sample. Please see one answer here:http://stackoverflow.com/questions/9317305/sending-an-email-from-a-c-c-program-in-linux[^].For...
25 Feb 2013 by CodingLover
Hi all,When I run sudo apt-get install g++ terminal display that so many packages I has are the newest version on Ubuntu 12.10. But even after I cannot compile any c++ files. Any comment on this highly appreciate.Note: This Ubuntu 12.10 installation running inside a vertual box which is...
23 Feb 2013 by H.Brydon
I would suggest making sure that all the underlying libraries and packages are up to date. Try it this way:sudo apt-get updatesudo apt-get upgradesudo apt-get install g++If you haven't done the update/upgrade for a while, your system might be too uncooperative to accept the...
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.
10 Oct 2016 by Rasmus Lindegaard
Hey AllAs the title says, all I'm really seeking out is a good guide on building MVC applications, preferably with the new Open Source tools from microsoft.I'm including vscode in this, because most guides assume Visual Studio Community (or above) and since I wish to do this the platform...
10 Oct 2016 by Afzaal Ahmad Zeeshan
Good request that you are making here. Sadly, there are very less guides that take Visual Studio Code into considerations and the one that do take it into consideration talk about .NET Core applications, and not the ASP.NET applications. I am currently working on a book titled, "Considering...
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.
4 Nov 2019 by Dr. Song Li
FAQs about Visual Studio Code
10 Oct 2018 by Dave Kerr
A portable and magic-free way to open Pull Requests from the command line
8 Dec 2015 by JinWenQiang
An instance of Floodlight Controller
12 Feb 2014 by charles henington
This is an alternative for "Send Mail With Attachment File"
28 Jan 2021 by top Amy
I am using MacBook2016. When I turn on the camera in the virtual machine, the frame rate is very low, whether it is my MacBook camera or an external usb camera What I have tried: I tried to find the answer from Google, but unfortunately I failed
28 Jan 2021 by RickZeeland
It is not a good idea to use a camera from a virtual machine. Install software like e.g. ISpy Agent directly on your Mac: free-video-surveillance-software[^]
7 Nov 2013 by Member 9377677
Hello allI am having ubuntu 12.04 server installed as webserver and windows server 2008 installed as data server.both server connect fine through smb.Problem is when i call images from windows server in website. images does not appears in browser. while the both the servers are...
7 Nov 2013 by Sergey Alexandrovich Kryukov
Samba is not a valid Web protocol. You can solve this problem is you install and run some HTTP server on the other site. It does not have to be exposed to outside Internet or even have a domain name (you can use IP-based URLs), but it will give you opportunity to hotlink those files in a "real"...
3 Jul 2020 by m.r.m.40
Hello, I'm new to both java and ubuntu. Currently I'm practicing java, JSF with netbeans on ubuntu. after writing my first application and trying to run. I see a pop-up window saying "GlassFish server could not be started with JDK11 (Default)....
3 Jul 2020 by Richard MacCutchan
GlassFish needs Java EE, see Oracle GlassFish Server[^].
25 Nov 2012 by Samprith
Hi,Is it possible to add a WCF web reference in Monodevelop project.There is a Add WCF reference option in monodevelop. But if i add a reference, I get Error Stream in response and If I add a client Proxy class and call the methods of a WCF service, I get Decryption/Encryption failed...
21 Apr 2020 by Kevin Mack
Some resources to help with Artificial Intelligence in Azure if you are looking for some demos to show the “art of the possible” or tools to start
29 Dec 2010 by VikashGohil
Hello, this is Vikas Gohil.I have created a small page for testing the ajax functionality in MonoDevelop under ubuntu.I did the following thing, created a C# web project in VS2005 under windows, with a single page. On this page I used a ModalPopup Extender to display a panel with a message...
29 Dec 2010 by Henry Minute
If you do an internet search for ajax in mono you should get over 1,000,000 hits.Give it a try.
5 Apr 2011 by magamsatya
Is Android able to read and retrieve values from DLL file?
6 Apr 2011 by #realJSOP
No. Android is Linux, not Windows. What you want are .SO files (the Linux equivalent of a Windows DLL file).
19 Dec 2016 by Intel
We are very excited to announce the release of Intel® IoT Developer Kit 5.0!
5 Apr 2021 by Nick_is_asking
Hello. I want to make a project using an arduino and SIM900 to send a sms,but doesn't work and I want your help to figure it out,because I do not understand some things. I asked in arduino forum,but I also ask here. Code: What I have tried: ...
5 Apr 2021 by Member 2597184
Hello Try to swap pins 8 and 7: SoftwareSerial mySerial(7, 8); Regards Gil
12 Sep 2017 by Bruce Yang CL
Develop an ASP.NET Core NES Game website on Linux with cross platform Database, and deploy to Ubuntu & Windows which have no .NET Core runtime installed.
7 Mar 2013 by Member 9891424
I am using Ubuntu 12.04I read the following tutorial on how to access the contents of RAM in Linux....http://www.rootninja.com/using-dd-to-search-for-strings-in-memory-or-devices/dd if=/dev/mem | hexdump -C | grep “string to search for”So, I run the code...sudo dd if=/dev/mem...
7 Mar 2013 by Member 9891424
OK... forget it... turns out Ubuntu has 1 MB limit on RAM extraction, as defined in the kernel.. and obviously, that's good security, because then a hacker can't extract your passwords from RAM etc...And so... yeah.... this thread is now SOLVEDHere is the full info, for anyone...
18 Mar 2016 by johnniealan
Auto Login in TI-SDK, Am335x
24 Sep 2016 by Ankita Khanna
We are testing a standalone application that is developed in Java and uses ubuntu platform. We have to validate that there are not truncation issues when the application is tested in different languages. Do we have an tool that can do it or what could be the way to automate this...
24 Sep 2016 by David_Wimbley
It looks like in java you have a local method and it interacts with ResourceBundle which is a key value pair of your strings that are localized.Locale (Java Platform SE 6)[^]You should then be able to create unit tests where all you do is call the same class/method but pass in the...
12 May 2020 by Tech Knights
This is the code snippet awk -v s=$frame_shift '{n += $2}; END{printf("%.0f\n", (n / s))}'
15 Dec 2013 by DaveAuld
I have spent numerous hours over the last few weeks and carried out hundreds of google searches and tried tons of various things and cannot succeed in getting a remote desktop session to successfully work beyond the login prompt.I have tried the same on both Ubuntu 12.* and 13.* variants...
7 May 2012 by Sicppy
I am making a sort of Stereotypical english to russian translator, when I do: read -p 'Wanna learn russian? Type in an english phrase!: ' ENGecho $ENG | sed 's/ //g'It echoes the sentence perfectly fine with no spaces in the sentence. But when I try to do this:read -p 'You wanna learn...
7 May 2012 by Sergey Alexandrovich Kryukov
Out of curiosity, I tried to see how your sample phrase is translated into Russian, in your original form (slightly fixed) and also its equivalent in formally correct English:Wanna learn Russian? Type in an English phrase!orDo you want to learn Russian?Type in an English phrase!and...
8 May 2012 by Hex01
Instead of:ENG=$ENG | sed 's/ //g'try:ENG=`echo $ENG | sed 's/ //g'`Note that this uses back-quotes after the equal sign and the last character.
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
29 Feb 2020 by Oscar-Tark
A basic formatted string exploit shows you how small errors in programming with the printf function can be a lethal weapon for hackers looking to compromise a system.
10 Feb 2013 by hor_313
what is the best for linux (and what about android?)
10 Feb 2013 by Usman Hunjra
Please Have An Eye: []Installing Visual Studio on Linux[^]BTW Why you ask questions like that One. ?!Let Me G O O G L E It For You: []http://lmgtfy.com/?q=best+IDE+for+linux[^]
10 Feb 2013 by Andreas Gieriet
Linux:- some use eclipse[^]- some use vi[^] and its derivation like vim[^]- some use emacs[^]Especially if you need to also admin the linux box, you better learn some of the low level editors too (vi, emacs -nw).CheersAndi
10 Feb 2013 by Matthew Faithfull
From my limited experience I would say Netbeans with clang for Linux Desktop/Server development but the ADT/Eclipse package which uses GCC underneath for Android because it integrates Android SDK management and sets up the cross compiler for you which I would find a nightmare otherwise. Don't...
10 Feb 2013 by Sergey Alexandrovich Kryukov
GCC and Anjuta:http://en.wikipedia.org/wiki/GNU_Compiler_Collection[^],http://gcc.gnu.org/[^],http://en.wikipedia.org/wiki/Anjuta[^],http://www.anjuta.org/[^].—SA
11 Feb 2013 by Albert Holguin
There's definitely quite a few choices for IDEs: - Netbeans - CodeBlocks - Eclipse - Qt Creator - KDevelop....I'd try a couple of those and see what works best for you. They all have good and bad parts to them. One example is Qt Creator, it's all ready to go with the Qt framework...
20 Dec 2015 by venkat28vk
Hi,I have developed a server and client code using tcp/ip protocol, which enables the client to send data to server and the same data is received from server to client. I would like to know how to keep the client open all the time, same like as server. I should not keep executing the...
18 Dec 2015 by Garth J Lancaster
surely that depends on YOU - what you you want/need to achieve in the client ? (we dont know your requirements because you havnt stated any)instead of str_echo(ls); you could do for (; ; ){ str_echo(ls); sleep(60 * 1000); // for example to sleep 1 minute between loops...
12 Sep 2017 by Mahsa Hassankashi
This article is the most complete essay about big data from scratch to practical.
10 Mar 2017 by Member 11436383
hello in my project i have a function in python that read from database (psql) about 5 rows each 6000 lines. but i have a problem it take long time!!! > 10 h .so i used thread (so about 5000 tread will begin) but i got some problem!!!N.B my function execute normal when i don't use threading...
26 Nov 2012 by SM_AsimHaroon
We all know that we have a booting file in windows xp that is in the C:\ drive and its name is boot.iniTheir must be a booting file in ubuntu can anyone tell me the name and location of that booting file for ubuntu.I want to alter that boot file in such a way that it would first display a...
26 Nov 2012 by xawari
In Linux, the system boots YOU!Learn about boot loaders! In Ubuntu it is GRUB. AFAIR, the version I use stores files in /boot/grub/* directory. And it is NOT necessarily located on the first partition.
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 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...
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
21 Dec 2016 by Intel
This guide demonstrates how to run the Arduino 101 platform on Ubuntu using a VMware* Workstation.
13 Feb 2018 by Intel
In this article, we give an overview of the SAWR project and also offer some tips for building your own robot using the Intel RealSense camera and SAWR projects.
12 Oct 2016 by Mahmoud Samir Fayed
Getting started with 2D games development and build the Flappy Bird 3000 game using the Ring programming language.
27 Apr 2019 by Kevin Mack
How to build a Solr cluster with Terraform
3 May 2020 by Christian Specht
How to build and deploy a Jekyll site via GitHub actions
20 Dec 2016 by Martin Radu
How to install Debian with MATE Desktop Environment and setting it up.
19 Mar 2021 by Nick_is_asking
Hello everybody.I have an exercise (kiwi engine) in university (OS course) and I have to use thread. The code is big (10.000 lines) and I only have to use threads to make it faster. In the following code if you can see a comment like: //...
19 Mar 2021 by Greg Utas
SIGSEGV means that you dereferenced an invalid pointer, most often one that was NULL or uninitialized. EDIT: To follow up, let me start by saying that I haven't used this pthread stuff. But the following looks suspicious: pthread_mutex_t...
16 Sep 2020 by Nick_is_asking
Hello everybody!!! I use enum for first time & I have a problem. I want to print the number of the letter(of enum) See code: What I have tried: #include #include enum alphabet...
16 Sep 2020 by OriginalGriff
When you declare an enum, you are effectively creating a set of "names" for values within the enum - when you print the name, you get the value not the name itself. Suppose you have an enum for employees:enum Employee {CEO, Manager, Peon,...
16 Sep 2020 by Nick_is_asking
Thank you I found it. Now I have another problem. I want to give a string and then count all letters it has For example ,for string: "aabbllld" ,I want to receive ========================================================== a = 2 b = 2 l = 3 d = 1...
16 Sep 2020 by Richard MacCutchan
You are (if you uncomment those lines at the beginning) trying to read a string into a character pointer (which makes no sense at all). And then the last line is trying to print from the expression chosen_letter = j where neither chosen_letter...
16 Sep 2020 by CPallini
Try (warning not-robust code!) #include int main() { char my_input[200]; int count[26] = { 0 }; char * p; printf("Give a word:"); scanf("%s", my_input); p = my_input; while (*p) { ++count[*p++ - 'a']; } p =...
16 Sep 2020 by Nick_is_asking
In my code when I write for example "hellllllool" it prints h = 1 e = 1 l = 7 l = 7 l = 7 l = 7 l = 7 l = 7 o = 2 o = 2 l = 7 but I want to print each letter only once.How can I do that? OK I thought something and it works good. #include...
26 Oct 2020 by Nick_is_asking
Hello.I have a code in C,that I copy an array to another. Why can I copy x array to y array? x array has void strcpy2(char *s, char...
26 Oct 2020 by F-ES Sitecore
C doesn't do bound checking, it's your responsibility to ensure you're not writing outside of your array. It's one of the reasons C has better performance and it's also one of the reasons it is harder to write and debug and easier to write code...
26 Oct 2020 by OriginalGriff
Quote: If I change char x[30] to char *x and char y[10] to char *y ,why compiler hit error? This gets a little complicated for a beginner, but here goes ... I'll try to be gentle with you! There are two "types" of memory that a C program uses:...
26 Oct 2020 by Patrice T
Quote: Why compiler don't hit error? Because in C, you are responsible of everything. The compiler do not have to check anything.
12 Dec 2020 by Nick_is_asking
Hello guys. I have a problem reading some information from a file and save them to struct. I receive: Segmentation fault (core dumped) I want your help. Thanks in advance. My code and the file (read_structs.txt) read_structs.txt contains: ...
11 Dec 2020 by Rick York
This is structured incorrectly, pun intended. fgets reads one line from a file : fgets - C++ Reference[^]. Car should not be a separate structure. It should be part of human since there is no more data for it other than the model. The bigger...