Questions about programming for and on Ubuntu.

learn more… | top users | synonyms

2
votes
2answers
24 views

What language is the Ubuntu Software Center written in?

Just been wondering, since elementary AppCenter is written with Vala and Gtk+3. Also, what GUI wrapper does it use?
12
votes
2answers
717 views

Is there an easy way to log all activity that a shell script does?

Is there an easy way to log all activity that occurs from a shell script to a file? I have a script. It outputs things like echo "instructions", as well as other program output. I know the commands: ...
0
votes
0answers
20 views

Laptop for Ubuntu and Java programming

I want to buy a laptop for on the go programming. It does not matter if I would need to install Ubuntu on it, but it would be nice if it was pre-installed. I looked into purchasing a Chromebook and ...
0
votes
0answers
19 views

Linux executable file [duplicate]

Are there anyway to build a Linux executable file or .DEB? I have been trying to make my plain game file that can be built into either .exe or .DEB But I don't know how? I will need a very simple ...
2
votes
1answer
7k views

how to write characters to serial port

I have an ancient serial spectrometer which only runs on win9x. I want to convert to a Linux system, but the existing software is proprietary and wont work. I was able to access a console internally ...
0
votes
0answers
8 views

Is there a way to properly format an Ubuntu font?

I'm trying to distribute Ubuntu Mono Regular with a Media Player I'm developing: https://github.com/ki4jgt/SIMP It is my understanding that a font is defined like in line 27 uMono = ...
2
votes
1answer
3k views

Why can't I use conio.h or ncurses.h?

I am new user to Ubuntu. I wrote a simple program in C. When I try to compile it to use conio.h, the compiler gives me fatal error. So I tried by ncurses.h, but still I am getting same error.
3
votes
0answers
250 views

(QML) Flickable not working as supposed

So, while building an Ubuntu app I needed to use Flickable for scrolling, so now I have code of the form Page{ ... Flickable { anchors.fill: parent content.height: element1.height + ...
0
votes
1answer
21 views

Can not run a command at startup in ubuntu14.04 LTS

I am trying to run command with start up of computer, for that I add the command in cd /etc && sudo gedit rc.local But still when I restart the computer it's not running automatically. I have ...
-2
votes
0answers
24 views

How to run a C program that compiled on other linux distro?

I am using Ubuntu Linux and Kali Linux both so, I compiled a C program on Kali and tried to run on Ubuntu but it gave an error Permission Denied?
3
votes
3answers
197 views

Is Ubuntu or Linux OS more on coding? [closed]

There is some problem when install this OS because I cant connect to wifi so i saw some tutorial about using nautilus keyword and works. I switch to use Ubuntu just now but is Ubuntu more on coding or ...
0
votes
1answer
34 views

Programming on Ubuntu [closed]

To begin with I'm a new Linux user, my distro is "Ubuntu GNOME 15.04" if that matters. I would like to start writing code on Linux, I have to install editors, compilers, IDE etc just like windows or ...
0
votes
0answers
26 views

How does Click/Snappy solve dependency issues?

There is a bit of confusion surrounding click and snappy. For one, I understand that there are certain packages that are not allowed to be shared due to app-armor. For example, if I write a Qt ...
54
votes
13answers
9k views

What advantages does Ubuntu have over Windows as an environment for programming?

Why is writing a program in text files or via the terminal a better option (as I read) than using IDE(s) like Visual Studio on Windows? Do the features an IDE provides exist there (eg. showing ...
0
votes
2answers
76 views

How to encrypt or protect folder with password in ubuntu 14.04

Myself looking for encrypt or protect folder with password. Myself found some programs, but they are not enough. I need a way to protect folder with password , whenever i access the folder it will ...
0
votes
0answers
17 views

Would there be any disadvantages to using Pyglet for GUI programming?

On Linux systems (such as Ubuntu), would it present a problem to program a GUI (for a media player) using OpenGL? I don't like WXPython b/c it's ugly as poop and PyQt requires a license when being ...
0
votes
1answer
39 views

Streaming a raw data bytes by byte into gstreamer pipeline

I have a problem that a gstreamer pipeline which has to take raw data byte by byte into pipeline, and it has to played. I have used appsrc to stream a data chunk by chunk into pipeline but it is not ...
15
votes
4answers
161k views

What is a command to compile and run C++ programs?

I am new to Linux. I am using Ubuntu 11.04 and do not know how to compile and execute C++ program in it. I need to know the commands to Compile and Execute a C++ program in Linux.
2
votes
1answer
45 views

How to multiply negative numbers in bash

This is my script for multiplying negative numbers #!/bin/bash p="1" h="-10" z=$(echo "(($p)*($h)+2"| bc -l) echo $p $h $z and this is the result (standard_in) 2: syntax error 1 -10 how to ...
3
votes
2answers
145 views

Under the hood, what is Quickly made of?

under the hood, What is Quickly made of? It's a wrapper to python? It's a compiled language? It's portable? What about the architecture and the design?
6
votes
2answers
581 views

How can I get install the Cool computer language for Ubuntu?

I am considering taking an online class through Coursera.org. The class is offered by Stanford University. They use the Cool programming language. Does anyone have experience installing Cool in ...
0
votes
0answers
17 views

How do I install Game Maker

I went to a page that claimed to have sucessfully installed Gamemaker ( the old version 8.1 legacy program by Mark Overmarrs. However despite doing the following (after first seeing if WINE would do ...
0
votes
0answers
21 views

Is it acceptable code style to leave binding loops in QML applications?

Backstory: I am working on a patch for the ubuntu-filemanager-app that will shrink the fontSize: for a Label {}, if the width: is larger than the window size. Think this: Label { id: myLabel ...
24
votes
7answers
62k views

How could I begin C++ programming on Ubuntu?

I recently switched to Ubuntu from Windows 7. I was previously learning C++ with Microsoft's IDE, Visual Studio. How would I go about programming C++ on Ubuntu, preferably with an IDE?
3
votes
2answers
479 views

Prolog files recognized as Perl

Prolog .pl files are shown as Perl files, both in files browser and in Geany/Gedit syntax-highlighting. Is there a way to let it recognized Prolog files as non Perl files?
0
votes
0answers
20 views

creating nested loop within ftp

echo "which stations you want to download (example input, brmu ankr) ? : " read stations echo "which years interval (example input, 2013 2015 or 2010 2010)? :" read year echo "which days of year ...
1
vote
0answers
47 views

What are the advantages of using GTK3 and GTK+3 over GTK-2?

I'm creating a utility program for Ubuntu in Python using GTK-2 and have been told by several people to use GTK3. Why would I want to do so, and would are the advantages of using it instead of GTK-2? ...
0
votes
1answer
45 views

Which system monitors are able to show me a non-rounded memory usage?

Backstory: I am trying to detect memory leaks in a program by viewing the memory used from the system monitor, and seeing if it rises while doing a certain activity. System Monitor unfortunately ...
1
vote
2answers
95 views

What is the best C compiler and IDE for Ubuntu? [closed]

I want to write c or cpp code on Ubuntu. I am new in this platform.Which one is best IDE and compiler for Ubuntu?
2
votes
1answer
145 views

Ubuntu Touch App with Simple UI (QMake) - how to connect C++ to QML

I've noticed that the Ubuntu SDK now has a template for an 'App with Simple UI (QMake)'. This creates a C++ Ubuntu application project with a sample UI containing a Label and a Button (Needs a 15.04 ...
3
votes
1answer
869 views

What is the logical mistake in this code?

I have written some code for downloading favicons. It has a logical error which I am not able to see. #!/bin/bash ico="1"; if [[ $ico =~ ^-?[0-9]+$ ]]; then wget -P $HOME/Downloads/ ...
-1
votes
2answers
54 views

Strange behaviors in adding integers from Python script [closed]

This python script is adding the sums of the numbers entered in a single line delimited by space except that it is not adding correctly. Thanks in advance. Print "Enter Numbers:" ...
7
votes
3answers
11k views

How can I create a new socket in /dev?

I want to create a new socket file in /dev. Does the way to get it is adding a new rule to udev?
-1
votes
1answer
33 views

first in c++ program don't compile and execute [closed]

#include<iostream> using namespace std; int main() { cout << " hello world !! good job nothing & something" << "\n" ; cout << " i jitendra singh in ...
0
votes
1answer
43 views

Using in-house programs in C++ with a DLL library in Ubuntu

I have a number of in-house programs coded in C++ using microsoft visual studio and a microsoft .dll librairy. I'm serching for a way to use those programs in Ubuntu without having to change all the ...
1
vote
1answer
35 views

how to make my own drivers? [closed]

I am learning basic c++ now, and am still learning the ins and outs of Linux. How can I learn to make drivers (keyboard etc.) For Ubuntu?
0
votes
2answers
43 views

New program development - need help

I would like to develop a new program for Ubuntu that will monitor the user's activity ,If user frequently uses a particular software "X" in certain time (like 8:00 A.M - 10:00 A.M ) ,when the time ...
0
votes
1answer
215 views

Visual Studio alternative for Ubuntu? [duplicate]

I write programs in Windows casually (apps like notepad, web-browser etc.). But I don't see a good alternative available. I have used Mono but it is not one bit like Visual Studio. I am having a tough ...
-1
votes
3answers
282 views
10
votes
3answers
10k views

Valgrind does debug error

I have been trying to follow the online tutorial for Learn C The Hard Way. However after setting up valgrind (I followed other links that help setting up valgrind on ubuntu 12.04), when I try to ...
12
votes
1answer
4k views

How can I get tab-completion in the interactive Python interpreter?

I often use Python 3000's interactive interpreter, but it's missing the convenience of tab-completion I'm used to from ipython, which isn't available for Python 3.x. How do I enable tab completion in ...
0
votes
0answers
76 views

How do I fix Blurry Sublime Text 3 graphics?

I have this problem where I get a lot of buggy visuals in Sublime Text 3, any help? I have the following packages installed: bracket highlighter, tag, trailing spaces, sublime linter buggy text ...
0
votes
0answers
35 views

Modifying user accounts using Java Ubuntu 14.04 LTS

I'm trying to make a java program that retrieves the list of users on the machine and allows the user to delete users that shouldn't be there. I'm really new to Ubuntu and I know on Windows you can ...
0
votes
1answer
39 views

How to maintain a counter across multiple executions of a script?

I have a script with a conditional statement and I want to find out how many times the then clause is executed, across multiple runs of the same script. eg: if [condition] then Some code; ...
2
votes
0answers
43 views

Two webcams of the same model are not working

I've been developing a dual webcam system for stereoscopic purposes, in a linux enviroment, using c++ with the opencv library The ideal setup would be with 2 webcams of the same model, but it didn't ...
1
vote
1answer
71 views

Ubuntu Phone - detect system type Desktop or Mobile

Is there a way to detect platform from QML or Qt C++ classes? I have Qt/QML project supplied to Linux/Android/Windows at one time, I see it's possible to deploy it to Ubuntu Phone. Is there a way to ...
1
vote
0answers
63 views

How to get gnome session idle time?

Has the method to get the session idle time through dbus changed in the recent Ubuntu or my dbus code here is wrong? #!/usr/bin/env python import dbus bus_name = 'org.gnome.ScreenSaver' obj_path = ...
4
votes
3answers
233 views

How I can monitor new files in a directory and move/rename them into another directory?

A program generates output textfiles, named output.txt, after every 15th iteration of a certain process. Doing so, it overwrites the last output.txt. I want to keep the files however, and I can't ...
3
votes
1answer
25 views

Store in environment variable

I tried storing the contents of a file in an environment variable using one of those commands. a= cut -f 1 abc.txt cut -f 1 abc.txt >a neither works . So , can anybody help me out?
1
vote
0answers
19 views

How to prevent system updates from crashing my software? [closed]

This question is more related to coding practices. What do you guys do while programming, as a safety net, to avoid having system updates ruin the functionality (or the output) of your program? How ...