Questions about programming for and on Ubuntu.

learn more… | top users | synonyms

0
votes
1answer
220 views

How to install clpqr library in SWI-Prolog

I am using Ubuntu 12.10 and going to write Prolog program with clpqr. I write this in first line: :- use_module(library(clpr)). I got this message: source_sink `library(clpr)' does not exist So, ...
4
votes
1answer
984 views

Python Global Hotkey

I'm looking to create a global hotkey in Python 3.2 for Ubuntu 12.10. That is, my script will run in the background and whenever I press Shift+F4 (for example), no matter what the active window is, ...
5
votes
2answers
721 views

PYGTK to PYGI: gtk.timeout_add equivalent

I have converted some Python code to use PYGI but I can't figure out how to convert this line: gtk.timeout_add(PING_FREQUENCY * 1000, self.doWork) To by clear, since I don't really know the ...
2
votes
2answers
940 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
1answer
218 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 ...
0
votes
2answers
148 views

LOVE2D Graphics are not working

I sudo apt-getted (grammar ftw) LOVE2D Lua API, and when I try to run a game on my machine, it doesn't work at all. When I use a simple love.graphics.print("Hello, World!") I get a blank screen, and I ...
1
vote
2answers
125 views

Is there an alternative to VS 2012?

Hey I'm not sure if this is the right place to ask and sorry if its not, But I'm needing an alternative to Visual Studio 2012 for Linux and I found 2 so far called Netbean and Eclipse, Out of those or ...
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 ...
2
votes
0answers
74 views

Both 64-bit and 32-bit support for development purposes

I'm looking for directions to complete in the most convenient way (well at least without lots of troubles) set up as in subject. I need (probably): 64 bit platform for running 64-bit Vmware Win7 ...
0
votes
2answers
536 views

Can't install libpcap0.8-dev:i386 to compile 32bit App under 64bit environment [closed]

I am writing a little program which uses libpcap and my target machine is i386, while my dev machine is x86_64. Now, when I install libpcap0.8:i386, which works, I get under /usr/lib/i386_linux_gnu/ ...
0
votes
1answer
188 views

Can't Compile A Simple C Program

I installed the last version of Ubuntu. I tried to compile and run simple c program. I was get error: fatal error: stdio: No such file or directory I installed and updated gcc compiler few times, ...
3
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 ...
5
votes
3answers
4k views

How to use Verilog HDL on Ubuntu?

I tried to begin a small course with some examples in Verilog Hdl and after spending much time searching for the best Simulator or IDE to practice with some examples , I failed to figure out how to ...
0
votes
1answer
21 views

Where does one get the info to run software off of the software center download site?

Like for instance I see a lot of Qt and C++ programs but where is the background info, like getting on IRC and using the kde gui? Is there info in the archives on how to program or am I going to have ...
1
vote
3answers
142 views

Someone tell me why people writing GNU code use { like that?

I saw the rules on how to type code for UNITY project or GNU software in general. Why do they write code in such an ugly form? Is there a particular reason why they don't put brackets the way (from ...
0
votes
2answers
525 views

What Language is unity written in? [duplicate]

Possible Duplicate: How do I build Unity from source? What Language is Unity written in? Also, where can i get its source code? I have an idea for a windowing enviroment or shell (dont ...
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
1answer
453 views

how to find a samba share's gvfs path?

If Nautilus is used to drop a file on a samba share into an app, then the app will see: "SMB://server/share/file" How is the app supposed to detect real, working gvfs path of that file ? different ...
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
1answer
55 views

What part of the update manager do you have sift through for, to avoid errors in one's system?

Are the updates on the update manager all by Ubuntu? What part of the update manager do you have sift through for, to avoid errors in one's system? Thanks.
3
votes
2answers
380 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 ...
1
vote
1answer
5k views

What is an alternative Linux application for Visual Basic? [closed]

What is an alternative Linux application for Visual Basic?
0
votes
1answer
371 views

C programming on Ubuntu

I have problems related to C programming on Ubuntu 12.04. While compiling C program consisting pow I faced difficulties. Then I searched the Internet and got the solution with -lm. But that's the ...
11
votes
3answers
5k views

How do I make Geany my default editor on Ubuntu?

I actually want to change the default text editor on my Ubuntu 12.04 from nano to Geany. When I used this code: update-alternatives --config editor .. I don't see Geany in the list. So to add ...
5
votes
2answers
185 views

How do I access the windows spread programmatically?

I am doing a project in which my application has the ability to spread, similar to effect of pressing Super+W. I was wondering how it can be done programmatically, preferably using python. Can it be ...
2
votes
3answers
733 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?
0
votes
2answers
146 views

Is there any CLI utility that can convert program written in C to Java? [closed]

Is there any ubuntu program that converts the program written in C to Java. I know there's an utility that can convert awk script to perl script(a2p).
3
votes
1answer
471 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 ...
0
votes
2answers
126 views

GTK Recent Chooser Menu callback not working

I am currently very puzzled why something so simple fails so hard: This is the source code for a very very simple recent chooser menu, but it fails. My output is this: Display name: ...
6
votes
5answers
823 views

How are the programs in /bin directory compiled into a non-readable format?

I've noticed that most of my commands/programs in the /bin directory are compiled. I wish to duplicate this non-readable code format myself. Can someone tell me why and/or how these programs get this ...
3
votes
2answers
161 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 ...
1
vote
2answers
213 views

I wrote a Python/QT app that downloads files. How can I stop it from 'greying out' after few seconds?

Here's the gist. The application is still running and the progress bar will still move, but the window will grey out and if I click the X to close it, a popup shows up and says "The window X is not ...
0
votes
1answer
424 views

How to combine quickly and my python program?

Firstly, I'm not sure if I'm allowed to ask this question. I'll delete it if it's not welcome. I'm after some guidance on how to start programming. Perhaps I need to start somewhere else, but I'm ...
2
votes
1answer
64 views

OCaml with Threads

I already have the OCaml language working in my Ubuntu 12.04 installation, but I don't believe that it comes with the threads library. Does anyone know I can get threads working?
2
votes
1answer
202 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 ...
1
vote
2answers
1k views

c++ programs are not working properly [closed]

/* write a prog to take the name of the user and output it with a thank you stamement*/ #include<iostream> using namespace std; int main() { char ch[20]; cout<<"enter your name ...
1
vote
4answers
3k views

What editor is as good as TextPad for compiling and running Java programs?

I want an editor that is as good as TextPad (for Windows) for compiling and running Java programs on Ubuntu 12.04. Please suggest one.
0
votes
1answer
104 views

Quickly application How to call function from other .py files?

I'm new to programing and I'm writing my first python program using quickly. I have added new window and on this new window I want to call function from main window? I google for it and all I found is ...
0
votes
1answer
231 views

Best Setup for a Java EE Developer Machine

I have a dual-boot machine, Windows 7 and Ubuntu 12.04. When I'm using Windows, I have a C:\dev directory that, say, is my "root folder" under which I have all the tools (C:\dev\jdk1.7 for JDK, ...
-1
votes
2answers
5k views

What is the Best Way for Using & practicing C language in Ubuntu 12.04? [closed]

I want to learn C language . and i would like to know how i can practice on C language by using Ubuntu 12.04 And is there any platform for it and how to get it ? or learn it by Terminal and how to ...
2
votes
4answers
3k views

Minimal Ubuntu 12.04 for programming

I'm new to linux, I've windows 7 installed side by side with Ubuntu 12.04. I want to use Ubuntu for the sole purpose of programming and for that I've already removed many programs which I don't need ...
4
votes
1answer
636 views

What is a good folder structure for multi-platform distribution of a Python application? [closed]

Sorry about the wall of text, but I am trying to provide a good background to my question. Actually, there are like a million questions here because I am utterly confused. I recently learned some ...
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?
1
vote
1answer
60 views

How do I do Drag-and-Drop with an Appindicator?

Is it possible to connect the Appindicator Icon to receive a basic drop-event? Like with every other GTK+ Widget drag_dest_set(...)?
2
votes
1answer
547 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
1answer
2k views

How to draw on mouse click in Gtk.DrawingArea using pygi

I am writing a small application using PyGI which will interactively draw a line on a Gtk.DrawingArea between mouse clicks. But I am unable to figure out how to draw using the cairo context at the ...
1
vote
1answer
33 views

I just downloaded gnu clisp via the synaptic manager. Now how do i use it?

So in windows, I got used to putting file names in my path variable and then using the interpreter/compiler from the commandline prompt. What's the equivalent on Ubuntu?
1
vote
1answer
1k views

Root directory of the kernel

A newbie here. I am trying to set up Eclipse for Linux Kernel Programming. The guide says set the project location as the root directory of the kernel. Where's the root directory of the kernel now? ...
0
votes
1answer
1k views

eclipse-CDT won't debug my c++ programs

I've installed eclipse from ubuntu repositories and I installed CDT from "install new software." But every time I try to debug a simple program, an error occurs that says 'launching q.cpp debug' ...
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 ...