Questions tagged [programming]
Questions about programming for and on Ubuntu.
571
questions
0
votes
0
answers
50
views
unable to compile anything after installing cpr library #
sudo g++ -o /usr/local/bin/t1 '/home/ubuntu/Desktop/test1.cpp'
I am encountering an error while attempting to compile any cpp file, regardless of which one it is. The error message reads:
"as: ...
0
votes
0
answers
52
views
Routing audio from any program through WSLg
I have the latest version of WSL2 with Ubuntu22.04 installed. I would like to use wsl to write some c programs which need to be able to produce audio. My library of choice for this is PortAudio.
Sadly ...
-1
votes
1
answer
32
views
Why does c++ app launched from the Netbeans use Netbeans install dir?
When I run a simple application that uses a library, Ogre3D in my case, from NetBeans, it breaks with the following message:
Error occurred during execution: InternalErrorException:
Could not load ...
0
votes
1
answer
95
views
"make" command not working
I'm currently trying to install graphics.h to do C programming, but I've been having a problem that I've been unable to solve so far.
Every tutorial explaining the process is the exact same, and they ...
0
votes
0
answers
27
views
Problem with java
jre1.8.0-51 is about to be reinstalled, but its archive cannot be found.
This error keeps showing up even after restarting the laptop. I tried to download the same jre version but it didn't pass ...
2
votes
1
answer
838
views
How do I install and setup OpenJDK in Ubuntu from Snapcraft?
How is OpenJDK installed from snap so that javac and java are available from the CLI?
nicholas@mordor:~$
nicholas@mordor:~$ snap list
Name Version Rev Tracking ...
0
votes
0
answers
21
views
Ubuntu is very slow on VM
I recently upgraded my RAM from 4GB to 8GB on a 1TB Core i3 HP laptop. The assigned base memory of Motherboard on the VM is 4MB. I just found out that my Ubuntu is now slower than before. Could it be ...
0
votes
0
answers
58
views
Reading text from external file to outputText in an jsf xhtml file
I know this is possible because I did it when I was working at Lockheed. It involves keeping out labels in a separate file which makes changes much, much easier. I just cannot remember hot to set up ...
1
vote
0
answers
115
views
Error running cuda with opengl
I am trying to compile julia example code using the command "nvcc -lglut julia.cu -o julia" and getting the following error
Starting build...
/usr/bin/ld: /tmp/tmpxft_00004758_00000000-...
-2
votes
1
answer
282
views
How to correctly open and edit .lua scripts on ubuntu
I'm making a mod for a game, and all the major program files are written in Lua, however when I go to edit them all I see is a bunch of mumbo jumbo. Any ideas on what I'm doing wrong?
https://i.stack....
0
votes
0
answers
121
views
Ubuntu black screen with blinking cursor
My Ubuntu is not working, the version is 22.04 it is showing me black screen with blinking cursor and when i am trying all the possible commands it is showing me no space left on disk . Now i don't ...
2
votes
2
answers
1k
views
Bash Script to check in terminal if URLS are up or down?
excuse my bad english:
This is the situation; I make my own IPTV lists taking the URLs of free sites and passing them to the smart tv, I would like to know which urls work and which ones don't to ...
0
votes
1
answer
54
views
I am having some trouble programming this !/bin/sh code into a file on ubuntu?
I am new to Ubuntu and programming programs in general. I am supposed to edit this code into an Ubuntu file called ps1_script for an assignment for class. #!/bin/sh. However I am having some trouble ...
0
votes
1
answer
61
views
Good libdbus Tutorials in C? More specifically the introspection part?
I've been looking around for tutorials on libdbus, and wanting to learn about it. I'm mostly getting stuck on the Introspection parts and where my Methods, Interfaces, and Signals will end up. There ...
29
votes
4
answers
6k
views
How do I make a program quit with "q" and restore the console like "man" does?
The man command closes when you press q and restores the console to like you previously had it.
What is this called?
How could you make another program behave in this manner?
1
vote
1
answer
3k
views
Phpmyadmin version cli
I installed phpmyadmin from this tutorial:
https://computingforgeeks.com/how-to-install-latest-phpmyadmin-on-ubuntu-debian/
I would like to check the version using a terminal, but the command doesn't ...
1
vote
2
answers
2k
views
sh: 1: tailwindcss: Permission denied / tailwindcss
I have a problem while run the build command from Tailwindcss (i am using tailwindcss CLI):
npx tailwindcss -i ./src/input.css -o ./public/css/output.css --watch
While running this command, it puts ...
1
vote
0
answers
185
views
Stange missing libraries when linking
When developing with Qt or plain C++, my linker yields "Cannot find: -lGL"
I have checked the existence of the libraries and their use by ld with ldconfig -p |grep libGL:
libGLdispatch.so.0 ...
1
vote
1
answer
100
views
¿How can I create a multi input, customized terminal forms like FoxPlus, Clipper, dBaseIII+?
In the past we had tools like clipper, FoxPlus or the ancient dBaseIII+/dBaseIV to create multi input forms in which we were able to put things almost anywhere in the reduced available space (25 lines ...
0
votes
2
answers
1k
views
Read logs real time with bash
I have this in the system logs:
Feb 27 02:53:51 Latitude-E6430 rsyslogd: action up 7
Feb 27 02:53:51 Latitude-E6430 rsyslogd: action down B
Feb 27 02:53:51 Latitude-E6430 rsyslogd: action up U
.......
1
vote
0
answers
192
views
How to blur specefic area on the ubuntu desktop
I am a CS student and want to work on my FYP project that will get the pixels from the desktop screen and will blur the intended pixel on the screen at run time. For example, if I want to blur the ...
2
votes
2
answers
261
views
How to compile a GAP program in Linux/Debian?
I installed GAP in my Ubuntu 20.04.
I can write programs and compile them using terminal by writing gap then do the things that I found in GAP manual in your website without any difficult.
But, if I ...
2
votes
1
answer
386
views
How to show progress in dock icon?
How can I show application progress in a dock icon?
My native GTK3 application which runs on Ubuntu has an icon that appears in the the Ubuntu dock when the application is running. The application ...
0
votes
1
answer
94
views
Are Visual studio and VScodium softwares same?
I don't understand. Programmers says VS and VScodium. When i try to install VScodium, everything looks same as VS. Visual Studio (VS) community is freemium and the other part of enterprise software ...
1
vote
1
answer
75
views
Grafic problem with Pythondialog in Ubuntu 20.04
I have a problem in Ubuntu 20.04 with pythondialog. As shown in the image:
Dialog Error
#!/usr/bin/python3
from dialog import Dialog
d = Dialog(dialog="Dialog", size="autowith")
d....
-1
votes
1
answer
192
views
how to generate random number [closed]
I want to generate a few random numbers in the range 0-999 and store them in an array. This is my code:
void randnum(int number)
{
int i;
int num;
int arr[11];
printf("%d", ...
0
votes
1
answer
206
views
high RAM usage on ubuntu desktop
I'm using an Ubuntu desktop 20.04 LTS.
I'm not running any concurrent applications at the time.
and I'm using R and python and a jupyter notebook in my computer.
today while running jupyter notebook I ...
0
votes
0
answers
665
views
Unity Editor Installation Error
I'm using Lubuntu 20.04.2 and I want to install Unity Editor from the official Unity Hub 2.4.3 downloaded from the official Unity website. But When I try to install the latest Unity Editor LTS, It ...
1
vote
2
answers
647
views
Do we have offline Python documentation browser in Ubuntu repositories to have one "point of service" to read and search the Python docs and APIs?
The question is in the title. As a use case one can imagine the situation about finding function basing on its known functionality.
I already know about Zeal which is packaged. It downloads ...
-1
votes
2
answers
149
views
.NET development in Kubuntu
Hello Ubuntu community
I am a student at collegue, and I want to use Kubuntu as my main OS. Because I am programming .NET (.net 5 is ok), I need .net framework, developer pack, and Visual Studio (the ...
0
votes
1
answer
1k
views
Installing Ganache GUI in Ubuntu
How exactly is Ganache installed on Ubuntu?
The approach of using git looks advantageous, yet, I'd expect a sort of wrapper around git for use from within npm or similar.
Or does this have to be ...
0
votes
0
answers
150
views
Does fgets hold somehow where it stopped reading the FILE *stream?
I am trying to get a sample program on how to write to a file:
#include <unistd.h>
#include <stdio.h>
#include <string.h>
int main(int argc, char **argv){
char buff[1024];
size_t ...
-2
votes
1
answer
182
views
Error while installing graphics.h library on ubuntu 20.10
please answer my question as i can't installing graphics.h library in ubuntu 20.10. It shwoing me erros as libs0-dev not found. showing while installing packages
-1
votes
1
answer
208
views
How to configure the PowerShell prompt on Ubuntu?
How do I configure the PowerShell profile so that the prompt is changed?
nicholas@mordor:~/.config$
nicholas@mordor:~/.config$ ls -alh
total 108K
drwxr-xr-x 23 nicholas nicholas 4.0K Feb 4 19:50 .
...
0
votes
2
answers
133
views
What tools can I use to make an emojie service like windows on Linux?
On windows 10, one of the more recent updates, you can use the shortcut windows key + . to open up a small window next to the focussed textbox and you can use that to quickly enter in emojies.
What I ...
0
votes
1
answer
27
views
How do I edit/replace my password verification program? (Wie verändere(/ersetze) ich mein Passwort-Erkennungsprogramm?)
(I am able to understand both english and german, but german is my first language, so if you can, pls answer me in german (and please don't roast me for my bad english) :) )
(Ich kann sowohl Deutsch, ...
2
votes
2
answers
230
views
Alternatives : Odespy for Ubuntu 20.10
I am interested in numerical methods for solving odes using Python. I would like to refere to:
Linge, S., & Langtangen, H. P. (2020). Programming for Computations-Python: A Gentle Introduction to ...
2
votes
1
answer
5k
views
What is the simplest way to run Javascript code on Ubuntu?
I tried to use browsers' console, but it interprets print as command to print a document, not as output on the console.
I heard about some JavaScript Shell, but didn't quiet get how to install and use ...
1
vote
1
answer
1k
views
Why i get this error while installing graphics file and how can solve it?
*** The sdl-config script installed by SDL could not be found
*** If SDL was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the SDL_CONFIG environment variable to the
*** full ...
0
votes
1
answer
136
views
Where is the database for feedreader?
It's implied:
https://code.launchpad.net/~eviltwin1/feedreader/sqlite
that feedreader uses sqlite or that it can be configured to do so.
I looked in the .config folder, but didn't see anything ...
0
votes
0
answers
138
views
Programming in c# not working
I programmed in c # using windows and never had any problems. Since I started using ubuntu I have a problem. the applications (Visual studio code, monodevelop, sublime text and atom) do not show ...
3
votes
1
answer
352
views
Is there a way to get syntax highlighting for Raku lang in Pluma / Gedit?
This question is related to What languages does Pluma / Gedit text editor cover for syntax highlighting?. I noticed Raku programming language is not supported yet by Pluma in Ubuntu Mate 18.04. ...
0
votes
2
answers
83
views
How to enumerate a variable in a loop starting at 01?
I have a question
I have the rename command, but after I run the rename starting from 00, how to start from 01, please help me
this is the command that I use
for i in *.mkv; do
new=$(printf "...
1
vote
1
answer
2k
views
Why is total stat block size of a directory twice of ls block size of a directory?
I am fairly new to Ubuntu and would like to learn more Linux programming.
Each time I print ls -l and compare it again my own codes to add st_blocks of each file, the result is always stat block being ...
0
votes
1
answer
3k
views
Eclipses: no consoles to display at this time
How do I get a bash terminal or console from within Eclipse itself?
but no prompt:
I just see:
no consoles to display at this time
"Window->Show View->Other". Search for Terminal and select "Open"....
3
votes
1
answer
662
views
How can Gedit detect and highlight languages that aren't installed?
How can gedit detect languages, even though they are not installed?
Here's an example where Gedit detects Java.
But when I try to run Java from terminal, it says that java is not installed.
...
0
votes
1
answer
334
views
How do I run this file? It has a white icon with a grey cog on it
I am programming in Python on Ubuntu 20.04 and have just compiled my first program using 'PyInstaller'.
The program is compiled as a stand alone file with a white icon with a grey cog on it. I have ...
1
vote
2
answers
1k
views
How to enable auto close bracket inside a bracket in GEANY editor
I like the geany text editor very much. However, one thing that I don't like is that while I code in C/C++, the auto-close bracket option does not work inside similar types of brackets.
Here's an ...
2
votes
1
answer
11k
views
How to use NetBeans in Dark Mode with the Darcula Theme?
How do I install Darcula through Netbeans itself?
Seemingly a matter of enabling the correct plugins through the GUI?
Versus installing after manually downloading:
I'd expect it to be available ...
1
vote
1
answer
5k
views
How do i use the grep command in a different directory with out using cd
I want to search for a pattern in some files but without using cd to enter the directory they are saved in. How can i do that?