Questions about programming for and on Ubuntu.

learn more… | top users | synonyms

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
865 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
160 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
509 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
130 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
853 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
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 ...
1
vote
2answers
217 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
437 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
66 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
217 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
4k 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
105 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
235 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
6k 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
650 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
588 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
34 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
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 ...
0
votes
2answers
100 views

New to Java Programming - Error help [closed]

I am going through a Java book and drafting the examples and have run into the following error when compiling this code. Any help would be appreciated thank you. Error: Main.java:3: class Addition is ...
0
votes
1answer
509 views

Anyone know if 12.04 has OpenGL Aux Libraries?

Im wanting to know how to install ubuntu 12.04's OpenGL aux libraries if any. Im trying to program OpenGL with C++. I cant find anything on google so. any help would be super great!!!
4
votes
2answers
6k 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
vote
2answers
156 views

What dangers can come from using packages like janitor,compiz?

As I look around on askubuntu I frequently see that programs intended for ubuntu are suggested not to be used because they could break Ubuntu. Such as janitor,compiz and I am sure there are also ...
9
votes
2answers
7k 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 ...
0
votes
1answer
1k views

Update fails after checking all settings for system updates [duplicate]

Possible Duplicate: Failed to download repository information due to missing CDROM W:Failed to fetch cdrom://Ubuntu 12.04 LTS Precise Pangolin - Release i386 ...
11
votes
2answers
8k views

Why won't strace/gdb attach to a process even though I'm root?

I logged in as root but strace gives me this: root@kyznecov-System:/home/kyznecov# ps -e | grep 111 3807 pts/2 00:00:00 111 3810 pts/2 00:00:00 111 root@kyznecov-System:/home/kyznecov# ...
1
vote
1answer
373 views

Desktop file for my python gtk3 app does not load the app

I am creating an GTK3 python application for Ubuntu. At the moment the application installs in the following locations. In /opt/NSTrain folder where NSTrain is the name of my application. The NSTrain ...
1
vote
1answer
564 views

gtk3 window is not redrawn correctly

I am creating a simple GTK3 application. The main toplevel window has a search button which will display another toplevel gtk3 window. When I click the close button (near the titlebar) on the second ...
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
4answers
1k 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 ?
1
vote
2answers
2k views

Customizing Texmaker

I use LaTeX a lot but I find quite obnoxious all the crappy files it leaves behind when you compile: .aux, .log... Fortunately TeXMaker has the option "clean" that deletes all of these. However, I ...
2
votes
1answer
526 views

I can't install ocaml plugin in my eclipse

I installed eclipse with sudo apt-get install ubuntu but when i try to install OCAIDE with Help->Install New Software. Appears this error : An error occurred while collecting items to be installed ...
0
votes
1answer
140 views

Unendable question C or C++

Got a question related to programming. I was planning to choose one more language, besides Java, and stuck between choosing C or C++. I am planning to create apps specifically for Ubuntu with GUI ...
-1
votes
1answer
11k 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. ...
-1
votes
1answer
1k views

How to use Kdevelop to write c++ programs ?

How I can build c++ applications using Kdevelop. Where I can find tutorials for kDevelop4 ? How to set the path for it ? How I can build a GUI application using Kdevelop 4.2? Whenever I try to ...
0
votes
1answer
240 views

Which programming language to develop software for USC that also runs on other OS? (Windows / OS X)

I have skills in Java and C#. First I had a closer look at Java (Eclipse with Windowbuilder-Plugin). - Swing: But there is no natvie GUI-Support for GTK3 (e.g., HUD seems not to work) Then I looked ...
1
vote
1answer
123 views

Fix Nautilus URIs in a Python script

I have a very basic Python script I wrote mostly for learning purposes. It opens a terminal in the current folder. However, I can't get it to work in folders with accented characters in the URI ...
1
vote
2answers
2k views

What do I install to start programming in java?

I have an ubuntu 11.10 with eclipse installed, now I am supposed to need JVM, Java compiler and something called API. I am starting to learn Java, because it is easy to make it work on windows after. ...
3
votes
2answers
618 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 ...
2
votes
2answers
15k 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.
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 ...
0
votes
3answers
759 views

Can we install any assembler in Ubuntu

I have got to practice the assembly language, for that i need an assembler. I installed masm (Microsoft-macro-assembler) over DOSBOX emulator, but it does not give me the code-view of my program. Is ...
0
votes
1answer
377 views

Help with tool recommendation, to build a parse tree for C source code

I need a tool that can generate a tree for a C application. like walking through it to build which methods is called