Questions about programming for and on Ubuntu.

learn more… | top users | synonyms

3
votes
2answers
2k views

Python Compared to BASH

I've been studying bash for the past three weeks or so, and it is very easy to learn since it is basically just command line inputs. I've decided to now move onto python but I've been lost the whole ...
3
votes
3answers
589 views

How do I get C++ to work with Code:Blocks?

I installed code blocks, selected a GNU/gcc compiler, and created a new empty project and file. When I try to execute a basic Hello World program, no console window pops up and no errors are ...
3
votes
1answer
197 views

How to create a Debian package with disjoint dependencies?

I have written an application, and I'm now interested in creating a debian package and setting up a PPA. The application is written primarily in XSLT, and includes a very thin front-end that can be ...
3
votes
1answer
578 views

I've installed golang with accordance with the wiki yet “go get” is missing

I've installed everything go-related from synaptic and later added ppa as described in the wiki: https://wiki.ubuntu.com/Go yet I cannot do "go get" for example go get code.google.com/p/gorilla/mux ...
3
votes
1answer
62 views

How does Ubuntu One know when to automatically sync files?

I am curious about how Ubuntu One automatic file sync works under the hood. When I add or change a file in my file manager, how does it know that the change occurred and it needs to sync it? This will ...
3
votes
2answers
492 views

Install Elixir to System

How can I install Elixir on Ubuntu 13.04 so that I can easily use it from the command line and update it easily by cloning git. I have installed Erlang 16 by getting package from here Erlang ...
3
votes
1answer
698 views

Is there a programmable way to tell if the screen is locked?

I have lots of stuff in my crontab, including some that talks to my screen. If I'm not there for it to be notifying, I don't really want it to run. Is there a way I can check to see if the computer ...
3
votes
1answer
206 views

C++ programming - Is there a way to make gedit recognize new classes?

I'm C++ programming in ubuntu 12.04 using gedit and it recognizes c++ default commands. I was wondering if I can make it able to recognize the new classes I define and change their color in the code ...
3
votes
1answer
384 views

How do I detect when my system wakes up from suspend via DBus or similar in a python app?

In a background Python script I need to detect, when the system just woke up from suspend. What is a good way that does not rely on a root script but rather on python modules such as DBus? I'm new to ...
3
votes
2answers
153 views

What version of C++ does 12.04 use?

If anybody knows or has a way for me to check it would be much appreciated. Isn't there a certain version of C++ that you need to use with the gcc? Sorry, I don't know much about programming, but I ...
3
votes
1answer
18 views

QML: What is the difference between a Component, Element, Property, Attribute, and Object?

The reason why I ask, is that often languages define the same terms differently, and QML is fairly unique in some regards. A brief explanation or analogy is preferred, where as more extensive and ...
3
votes
1answer
182 views

PyGObject: Gio.File.copy_async() doesn't exist in Ubuntu 12.04

According to GIO Reference Manual Gio.File has a methode copy_async. In Ubuntu 12.04 I'm getting an AttributeError when I try to call this method. What should I use instead to for asynchronous ...
3
votes
2answers
188 views

How do I daemonify my daemon?

As part of the Ubuntu Accomplishments system I have a daemon that runs as well as a client that connects to it. The daemon is written in Python (using Twisted) and provides a dbus service and a means ...
3
votes
1answer
13k views

Best text editor for Linux [closed]

What is the best text editor for ubuntu, mostly used for web development. Or a good all-round software like a IDE.
3
votes
1answer
688 views

Grails `run-app` fails when port is set to 80?

I have Grails 1.3.6 installed on my up to date Ubuntu box. I'd like to use the run-app command with the port set to port 80 (firewall, etc), however whenever I do I get the following exception: ...
3
votes
1answer
566 views

Best way to set up a haskell development platform

Since a while, I'm developing in Haskell. My question is: what's the easiest way to set up a reasonable development system for Haskell? I installed the official packages, but IMO it's not working very ...
3
votes
1answer
194 views

Writing drivers & stuff: sources for learning

Are there good sources for learning how to write drivers for webcams, electronic devices and stuff for Linux? Besides reading the source code :P
3
votes
2answers
358 views

DEB installer - Dependency Checks

Using a third-party install generation tool, I created a .deb package for my application. There are several dependencies that are required to be present on user’s Linux OS for my application to run ...
3
votes
1answer
865 views

How to send All-Notes-Off ALSA MIDI Event?

I am writing a MIDI sequencer in C++ using asoundlib. Sometimes I would like my application to stop all voices, calling an All-Notes-Off event. I do it by calling a note-off to every note at every ...
3
votes
0answers
97 views

Can't get iconify() and deiconify() to work properly

I'm writing app for Ubuntu with C++ and Gtkmm. In my app i use libappindicator to show icon with simple menu in notification area. Icon and menu works ok, i can minimize window to panel (using ...
3
votes
1answer
162 views

Need more information about API for 'Ubuntu for Phones' [duplicate]

Possible Duplicate: How do I start developing applications for Ubuntu mobile? I would like to develop a app on Ubuntu for Phones. I have already developed apps on iPhone and Android. Could ...
2
votes
3answers
1k views

How to create clickable notifications using pynotify?

Is it possible to show notifications displayed in right top (like these about being connected to a wifi), that can be clicked? Right now I can either create a notification, that can't be clicked or ...
2
votes
6answers
887 views

What Programming Language Would Be Best For Ubuntu Programming? [closed]

Hi I've recently switched from Windows 7 to Ubuntu 12.10 and love the OS. However I have had trouble deciding which programming Language would be the all-around best for Ubuntu programming. I have no ...
2
votes
1answer
316 views

How to apply a patch to indicator applet?

I have a patch named "incator.patch". How can I apply that to the application "indicator applet" and get it running? The bug will solve a bug with key-binding caused by "indicator applet". Patch is ...
2
votes
2answers
5k views

Learning how to use Python in Ubuntu? [closed]

I've recently installed ubuntu 12.04 on my oldie ThinkPad, along with Python-interpreter idle and obviously Python. I'm looking to learn the basics of this programming language, but I've had no luck ...
2
votes
2answers
1k views

Learning the base for programming in C [closed]

it's been a while since I think about starting to programming in C and after that to learn programming in C# and I search a lot on google but couldn't find a good guide to start learning base ...
2
votes
2answers
336 views

Which Ubuntu is oriented to programming and robotics? server, desktop or other distro?

Well, rather than a question is an opinion from you, it goes well, What version of ubuntu is better oriented programming to robotics or anything related to programming languages ​​(like C, perl, c + ...
2
votes
2answers
3k views

How to add a system call to the Linux Kernel?

I'm currently reading Operating System Concepts 7th edition by Silberschartz, Galvin and Gagne. At the end of chapter 2, there is an exercise "Add a system call to the Linux Kernel". Unfortunately, I ...
2
votes
2answers
332 views

How can I listen to a specific signal in Rhythmbox?

I want to listen to the key press of lets say Ctrl+W in Rhythmbox, and call a functions if that happens. How can I do that in Python ?
2
votes
2answers
2k views

Auto indentation in Gedit

I'm using Gedit to program C and CPP, and I've enabled auto indentation in Edit->Pref. However, it still doesn't work. Is there anything I can do?
2
votes
2answers
3k views

Howto install google-mock on Ubuntu 12.10

I am having hard time trying to install Google C++ Mocking Framework. I have successfully run sudo apt-get install google-mock. Then I tried to compile this sample file #include "gmock/gmock.h" int ...
2
votes
2answers
332 views

Problem linking libunity

I'm trying to compile a basic C++ app consisting of the following code: #include <unity/unity/unity.h> int main() { return 0; } just to try and get the libunity library compiled before I ...
2
votes
2answers
476 views

Executable execution path. Does it depends of the place the executable is called from?

as I'm still a new Linux user, I still discover some behaviours and I'm unable to tell if they are "normals" or not. I searched the Internet but as I can't really find an answer I guess it's time to ...
2
votes
3answers
234 views

Programming language api sidebar in gedit

Im not sure this is an SO question or not, but is there a plugin for gedit to enable me to have the api for a particular language open in a sidebar? Im currently working in Java, and it would be ...
2
votes
1answer
200 views

Why am I getting compile time errors in this C++ program?

I am new to Ubuntu and its terminal. I am trying to code C++ using nano something.cpp a general "Hello World" program at first. First I got some error about iostream.h and cout not recognised. I ...
2
votes
1answer
252 views

PyGTK changing theme for popup menu

I spent few hours searching on google and I gave up now... I need to change background for popup menu in my app. It set to whatever system default theme is... and I need this to be set to Radiance ...
2
votes
1answer
101 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 ...
2
votes
2answers
3k views

C# on ubuntu 12.04

Is C# a good choice for ubuntu programming? E.g unity, or applications that will run on ubuntu? Am I doing good wanting to learn C# when I'm determined to stick with ubuntu and develop on it or for ...
2
votes
3answers
539 views

How to see object code generated by g++?

g++ -c xyz.cpp creates an object file xyz.o But when I open it in vim editor it shows some crazy text... How can I see the machine code? What package can use to open and see that machine code?
2
votes
1answer
470 views

Why does lsof show the same file descriptor for different processes?

lsof -i :80 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME gnome-pan 28597 murat 18u IPv4 2907888 0t0 TCP .... gnome-pan 28597 murat 19u IPv4 2907903 0t0 TCP .... ...
2
votes
4answers
822 views

Is there any Graphical Control Panel available for apache2 and MySQL to start and stop them?

I dont like command line. Is there a Graphical Control Panel to start/stop apache2 ? and MySQL ?
2
votes
2answers
11k views

is there an IDE and compiler for c# in ubuntu? [duplicate]

Possible Duplicate: Visual Studio style tool? I'm looking for an IDE and compiler for C# in linux like visual studio or... to design forms an run programs. I'm moved to linux newly.
2
votes
2answers
484 views

Fortran and C IDE

I am currently working on a Fortran 77 program which includes several C routines, and using the KDevelop 3.5.3 (Using KDE 3.5.11) IDE for that matter. I had to stick to KDevelop 3.5.3 since the newer ...
2
votes
1answer
437 views

Watch syntax help

In my Systems Programming class, there are weekly programming experiments, and I'm having trouble with the current one. The objective is to write a C program that slowly writes a string of text to a ...
2
votes
1answer
197 views

OSS object oriented alternatives to oracle database

I want to know if oracle style object oriented database code can be written in mysql, postgresql or any OSS database softwares. I don't want to install the massive oracle db on my ubuntu to learn ...
2
votes
1answer
112 views

Help with running C programs in Ubuntu

I've been teaching myself to write programs in C, using Geany as my IDE. All of my programs get compiled and linked correctly, and they seem to work fine when I test run them inside of the IDE, ...
2
votes
2answers
616 views

How to add buttons in Glade and resize

Trying to create the framework for a calculator. I add the window I add the vbox using 2 boxes. 1 for the display, the other for the buttons When I add 1 button it fills the entire panel and I can't ...
2
votes
1answer
305 views

Further information on the Ubuntu Phone SDK [closed]

We saw many threads on the Ubuntu User Interface Toolkit that will be available for the Ubuntu Phone application development (see this thread for example). But there seems to be no information about ...
2
votes
2answers
86 views

Is it possible for emacs to appear on right side of the desktop area when invoking it from the command line?

My standard programming mode is to have a bash shell open on the left side of my desktop and to have emacs open on the right side. However, when I type emacs "filename" in to my shell, it comes up on ...
2
votes
1answer
201 views

How can I test if a variable matches another value and move to another function?

I am writing a script where I store a predetermined line of text into a string (we will call abc). I am storing the results from grep -iqs $USER file (we will call def) into another string. How can ...