Questions tagged [programming]

Questions about programming for and on Ubuntu.

Filter by
Sorted by
Tagged with
-4
votes
0answers
36 views

Hi ubuntu , can I use ubuntu for hacking and gaming? [closed]

I am installing ubuntu and I love this os but can I use ubuntu for hacking and play games from steam and epic games store and It is nice for programmers ?? System.out.println("I love ubuntu")...
0
votes
2answers
63 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 ...
0
votes
0answers
18 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
0answers
23 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
0answers
15 views

Run gui-app in Ubuntu 18.04 Kiosk

I created a small c++ app. This one is using OpenCV and the function of OpenCv imshow, which shows an image in a window. In this little window I display frames captured by a grabber and modified by an ...
0
votes
0answers
25 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 ...
1
vote
0answers
24 views

Installing of graphics.h library

when i try to install following packages using this command. sudo apt-get install libsdl1.2-dev libsdl-image1.2-dev . It shows Reading package lists... Done Building dependency tree Reading ...
0
votes
0answers
141 views

awk print question

Can you please explain what this code does? I know 'awk NR==2{print $4} means the 2nd line 4th field of the ${x}_${y}.dat file. T=`awk 'NR==2 {print $4*100}' ${x}_${y}.dat`
-2
votes
1answer
33 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
1answer
39 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
2answers
50 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
1answer
23 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
2answers
113 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 ...
0
votes
0answers
43 views

How to get the build version in C

I'm working on a function in C which allow me to save in a variable in the OS build version. I have done it already on MS-Windows and macOS; However, I can not find any information for Linux(Ubuntu) ...
0
votes
0answers
27 views

How to use JEdit to find the Xpath location of an element in an XML file?

How do I find the location path for a particular node: where jedit was suggested as an xml viewer.
0
votes
0answers
16 views

How to activate in the terminal to send broadcast message

I am using the miniedit program where I have 5 hosts connected to a switch, and I have to send a broadcast message from host 1 to all the other computers, how can I enable this option in the terminal ...
1
vote
1answer
76 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
1answer
81 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
1answer
88 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
0answers
26 views

How to use raw html documentation with Devhelp?

When I write programs, sometimes I need to see the documentation. Devhelp perfectly fits for my purpose. But most documentation do not support Devhelp. They usually come with just HTML files. Most of ...
0
votes
0answers
27 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 ...
2
votes
1answer
144 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
2answers
43 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
1answer
548 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
1answer
528 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
1answer
223 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
1answer
79 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 ...
0
votes
0answers
44 views

streaming video recording in ubuntu

my project consists in sending a streaming video from a server to a client, in order to evaluate the QoE I want to record the video perceived by the client in order to make the comparison between the ...
1
vote
2answers
439 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 ...
1
vote
1answer
2k 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
1answer
236 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?
0
votes
1answer
2k views

How install mcrypt for PHP7.2

I want to install a script on my locahost, i installed apache2, php7.2 and mysql The problem that i have is running this command: phpenmod mcrypt it ALWAYS trow the same thing when i trow it in the ...
0
votes
1answer
103 views

Who (which code) is responsible how open file dialogues appear in Ubuntu applications

Some applications (e.g. GIMP) seem to order directories first in their the File>Open, File>Save or any other file related dialogue. Some other applications (e.g. LibreOffice) don't sort directories ...
0
votes
1answer
542 views

Limiting ram usage of a program

Is there an easy way to limit the ram consumption of a specific program? I have a program that generates a really big file, up to 1 gb and it causes my whole laptop to freeze up. I want to limit the ...
2
votes
1answer
270 views

How to build Gnome Commander on 18.04 (Bionic)?

After successfully building Gnome commander for 19.04 (Disco Dingo) (you can download PPA here: https://launchpad.net/~schollsky/+archive/ubuntu/gnome-commander), I'm trying to do the trick with 18.04....
0
votes
1answer
52 views

Ubuntu crashed after big simulation

I have a dual boot Ubuntu 18.04LTS and Windows 10. I launched a big FORTRAN simulation but not too big to automatically kill the process. I played on purpose to see until the computer made it. ...
0
votes
1answer
76 views

sys_write doesn't print message to the terminal

I'm trying to explore GNU Assembler using this example: https://0xax.github.io/asm_1/ My code main.s is .data message: .ascii "ASSEMBLY OUTPUT" .text .globl _start _start: movq $1, %rdi ...
0
votes
1answer
61 views

Beginner to Linux coming from Windows [duplicate]

I have an Acer ES1-524 (2 core @ 2 GHz, 4 GB RAM, 500 GB HDD) pre-installed with Windows 10. I'm using it to learn programming but recently while using it with VSCode and a few Chrome tabs opened (I ...
1
vote
1answer
248 views

Ubuntu not accepting my arduino

I am relatively new to ubuntu, and have been enjoying it. I currently have this issue. I get the error message shown below. It detects my Arduino Mega 2560, but it instead decides to give these error ...
0
votes
0answers
29 views

Getting program states from two different terminals and comparing them

I want to run two different instances of a program in two different terminals. and check the variables inside the program if they match all the time or not. What I really want to do here is, do ...
0
votes
1answer
57 views

How to automate screen multiplexer to automatically start on a path and execute a file

I want to automatically: screen -S Test cd /home/dapkkins/Servers/Bungee sh start.sh ^Ad My sh file to run my server through ssh
1
vote
0answers
96 views

Software for msr x6 Ubuntu 18.04.2 LTS

So far I can not use my reader / recorder of magnetic band msr x6, there is some software or code to use msr x6.
1
vote
1answer
876 views

from sklearn.matrics import confusion_matrix ImportError: No module named matrics

Im using Random Forest and I want to use confusion matrix to calculate false positive and false negative but I achieved the bellow error: from sklearn.matrics import confusion_matrix ImportError: No ...
0
votes
0answers
208 views

How to deal with 128bit variable in MinGW32 bit compiler on Qt?

I want to use the below equation in one of the code A = g^a mod p; //g raise to a modulus p. (something like 2^5 % 3) = 32%3 = 2 (This equation looks like Diffie Hellman algorithm for security) ...
0
votes
1answer
444 views

What the line #!/usr/bin/python does? [duplicate]

Im learning python but I dont understand what this line does? or how many options there is?
0
votes
2answers
532 views

How to automatically edit a file (which requires hex editor) in ubuntu

I have android boot image which needs to be patched evertime I flash a kernel. The patching includes adding 4096 bytes to the boot image using a hex editor (I used ghex), which is very tedious process ...
0
votes
1answer
335 views

Command Line Interface

I need to "set up the environemnt so that the location of g++ is available from the PATH? WHat does that mean? I am new to computer science hence the jargon is still a bit confusing
0
votes
2answers
124 views

Is the current Date/Time format retrievable?

My task bar shows "Sat Feb 9, 5:41 PM". Where does Ubuntu store the current Date/Time format information? Is it retrievable? I will be programming in Java, and would like to access the current format ...
-2
votes
1answer
3k views

What is the best tool to add a GUI to Python code and make a Linux application from it? [closed]

I am learning Python. What is the best tool to add a GUI to Python code and make a Linux application from it? Something that is easy to learn but powerful. I found something like PyGTK, Tkinter or ...
0
votes
0answers
316 views

How can I view the C++ code result in terminal instead of xterm

I have just started to learn C++ and I am using code block to do all the work of c++. but when the code is run the result is displayed in something called XTERM. I would be happy to know if there is ...

1
2 3 4 5
12