Questions about programming for and on Ubuntu.

learn more… | top users | synonyms

24
votes
7answers
55k 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
456 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
14 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
23 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
33 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 ...
14
votes
6answers
144k 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.
1
vote
2answers
56 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
123 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
865 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
47 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
10k 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
21 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
25 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
30 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
56 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
132 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
41 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
23 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
37 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
29 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
59 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
36 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
118 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
23 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?
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 ...
1
vote
0answers
18 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 ...
1
vote
1answer
46 views

How to show Aptana Studio 3 in the “Open with” list?

I've downloaded Aptana Studio 3 from their site and installed it successfully. Now it is showing in the Dash search. Problem is that, when I right click on any file (i.e HTML, CSS, PHP etc.), the ...
2
votes
2answers
148 views

What's the best approach in migrating currently C# and VB.net (Windows) developed applications?

I would like to start to "translate" my Windows applications to Ubuntu users. These are mainly CRMs or CRM related programs written in VB.net and C#. What would be the best language and IDE for these ...
26
votes
7answers
8k views

How do I develop .NET apps on Ubuntu?

at college we use Microsoft .NET for developing applications. I recently switched to Ubuntu and would like to know similar tools for making apps on/for ubuntu.
1
vote
1answer
59 views

Catch program crash when there is no terminal

This question may belong to Unix/Linux in general, but I guess the answer is dependent on distro or desktop environment [I use KDE and Xfce so I would like an answer that is applicable on booth]. ...
0
votes
0answers
48 views

Ubuntu 14.04 LTS + cnc plasma

I need some help with my project. I'd love to use Ubuntu 14.04 LTS for my cnc plasma table, but I don't know which programs do I need and how to install them (LinuxCNC does NOT work with my laptop so ...
23
votes
18answers
20k views

Is there a Visual Studio style tool/IDE?

I have been developing in the windows space with Visual Studio for a while now with work, but I have also been using Ubuntu for a while and am keen to get into some software development for linux. I ...
0
votes
1answer
41 views

Recommended Languages to Learn Linux [closed]

This is a very common question i might be asking, but I have not come through a clear cut answer yet. I want to be a fully Linux Developer, (BOTH Backend/Coder and GUI). Which programming Languages ...
17
votes
3answers
31k views

Completely Remove Ruby + Rails + Gems?

I have messed up my ruby dev environment on Ubuntu 10.04. I need to install Ruby this time using RVM. What is the best possible way to remove: Ruby All Gems RubyGems From my machine, so that I ...
2
votes
1answer
81 views

Installing a program on a ubuntu touch phone

I searched on the website but didn't found an answer. I heard a lot that developing an application with C, C++ or anything else. Is it really possible ? What I mean : Imagine I develop a program in ...
0
votes
2answers
332 views

My CPU usage is unnecessarily high while creating a C program in Ubuntu 14.10

I have an MSI GE60 2PC Apache model Gamebook. I also use it for my collage work. It runs Ubuntu 14.10. I have a CPU usage problem while creating a ".c" file. I use the default text editor; while I ...
0
votes
1answer
23 views

How to make geany or vi understand Maxima (or any other less known) syntax

I tend to program a lot in a symbolic language called Maxima, but I haven't found any editor that highlights its syntax. Is there I way I can make vi or geany (or whatever) understand this syntax and ...
1
vote
1answer
516 views

How to add more languages docs to Devhelp? (Java etc)

I was wondering if there is a way to add more languages (such as Java, C, C++ etc) to Devhelp. I know that there is a software named zeal, but Dev help seems to be more mature. By the way, I'm on ...
1
vote
2answers
88 views

GCC Fatal Error

everyone Here's my problem; So, I'm new to Ubuntu and programming and I just wanted to start with C. I created the classic "hello.c" file #include <stdio.h> main () { printf("Hello ...
1
vote
0answers
46 views

Start programming [closed]

I am a beginner ubuntu user, and I am interested in learning a programming language. My demands are that I would like it to help me master the command line, and be a good base voor learning future ...
0
votes
1answer
14k views

Compiling C++ code raising “no input files” fatal error?

I am finding it hard to run/compile a simple C++ code in the terminal. Here's the code I am using to compile the file (helloworld.cpp). g++ helloworld.cpp -o helloworld I am getting an error. ...
5
votes
1answer
2k views

warning messages while compiling c program using gcc [closed]

I am new to linux. I use gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3 on Ubuntu 12.04 LTS. When I compiled the c program using pointer, I got the -Wformat warning as shown below. But if I execute a.out ...
0
votes
2answers
60 views

Installation with wine error

I downloaded vds 6.0 (a script type programming language for windows OS's) and now I am trying to install it in ubuntu 14.04. I looked at wine app database and I found that vds 6 works on wine. Here ...
1
vote
0answers
19 views

I can't log back in my Ubuntu account after logging out (I have a cromebook acer C720)

I have installed ubuntu on my crome book (acer C720) and when I was updating something I dicided to log out (I usually hit shut down and I would be able to get back in) and now I can't get back in.
1
vote
1answer
121 views

How to run C program on 14.04?

I'm trying to run some C programs using Geany and Code::Blocks. After coding them, when I run them, a message is showed in the terminal like this: In Code::Blocks: sh: 1: /home/c program files/2: ...
4
votes
1answer
722 views

System programming in Ubuntu

I'd like to get into Ubuntu systems programming; to be specific - developing and debugging device drivers. However, I'm not sure about how to get started, even though I have prior experience ...
8
votes
2answers
5k views

How Can I Add, and Use, a Color Scheme for Geany?

I have found that one of my favorite text editors for programming is Geany, however the default color scheme is very bright and hurts my eyes when programming for awhile. There are other color schemes ...