Questions about programming for and on Ubuntu.

learn more… | top users | synonyms

4
votes
1answer
244 views

Rhythmbox plugin code for hot key not working - why?

def activate(self,shell): self.shell = shell self.copy_selected() self.action = gtk.Action ('foo','bar','baz',None) self.activate_id = self.action.connect ('activate', ...
3
votes
3answers
9k views

Fast way to create gui for bash app

I want to build a simple GUI for an app that use bash so for example clicking on a button would execute some bash commands and so one. There's a GUI creator also simple, i need only buttons and ...
3
votes
7answers
1k views

Recommendation for a non-programmer's guide to self-teaching Python

I am new to Ubuntu and to programming, and I am seeking to teach myself Python. I installed the software from the Software Center and was wondering how to be sure it is up to date with the latest ...
3
votes
2answers
278 views

Is there any ubuntu API?

in Windows, a programmer can use Windows API to write a Windows application. Windows API can be used with C (not necessarily C++). In Windows API you have a message loop and you have to program ...
3
votes
2answers
135 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?
3
votes
5answers
7k 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
637 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
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
925 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
206 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
2answers
5k 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 ...
3
votes
1answer
906 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
65 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
1k 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
222 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
232 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
5k 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
164 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
4answers
252 views

making a bash script executable programatically

I need to create a bash script to create and mount a drive. So, two simple commands. Both "work" when entered at the command line. The script is created and executed every time a normal user logs in, ...
3
votes
2answers
1k 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 ...
3
votes
1answer
243 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 ...
3
votes
2answers
1k views

syscall_table_32.S file not found

I want to add a systemcall to Linux, but in training data we need to change the file linux/arch/i386/kernel/entry.S or arch/x86/kernel/syscall_table_32.S. I can not found the files. I looked and ...
3
votes
2answers
229 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
800 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
653 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
202 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
393 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
365 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?
3
votes
1answer
942 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
94 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 + ...
3
votes
1answer
128 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
177 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
1k 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
327 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
8k 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
2k 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
409 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
351 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
2k views

How make a configure/makefiles from an C file?

Hope this is not a stupid question. But here it goes... Over the last month I have learned Programming in C and Gtk to a point where I have written a small program in C. I would like to make a ...
2
votes
1answer
350 views

How to automatically restart an application for using too much RAM or CPU

I'm going to be running an Ubuntu 14.04 LTS server that will have a few Garry's Mod (Half-life 2/Source based) servers running on it. I don't want any one of those servers getting out of line by ...
2
votes
2answers
399 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
493 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
263 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
48 views

How do you equally space out elements in a Row?

Row{ width: parent.width spacing: ???? Checkbox{} Checkbox{} Checkbox{} Checkbox{} } So just to be clear, the checkboxes should be spaced in such a manner that however wide ...