Questions about programming for and on Ubuntu.

learn more… | top users | synonyms

3
votes
5answers
6k views

Where is Python source code?

I have Python 2.7 installed for learning purposes (I'm a starting programmer reading 'Learn Python The Hard Way') and wanted to know how some things were done. I installed it from Synaptic and want ...
3
votes
4answers
1k views

Which package contains the C standard library?

Which package contains the C standard library?
3
votes
2answers
3k 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
680 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
199 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
598 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
64 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
731 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
441 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
1answer
773 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
45 views

QML: How to do variables?

In QML, I am just looking for a way to do fairly simple variables: Bool String Integer
3
votes
1answer
216 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
2answers
4k 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 ...
3
votes
2answers
160 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
195 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
204 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
14k 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
725 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
603 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
197 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
377 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
900 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
1answer
267 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 ...
3
votes
0answers
107 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
171 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
991 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
318 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
7k 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
2k 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
3answers
1k views

Loop in bash to create decimal number

How to generate a numbers 0.01, 0.02, 0.03 ... until 0.2 in bash ? i run this example but it doesn't work #!/bin/bash # # Script for running several experimentations one the same JVM # for ((i ...
2
votes
2answers
352 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
341 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
4k 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
359 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
485 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
249 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
251 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
277 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
107 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
3answers
690 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
530 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
952 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
13k 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
486 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
478 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
2answers
24 views

access to field's element via awk

I have the following columns: _111_ [555] _222_ [666] _333_ [777] _444_ [888] I want to access the 111 from _111_. or 888 from [888]. How to access the fields elements with awk.