Questions about programming for and on Ubuntu.

learn more… | top users | synonyms

1
vote
1answer
23 views

Where are the Build and Src locations for QtCreator?

In the QtCreator Plugin Creation Wizard, this http://doc.qt.digia.com/qtcreator-extending/images/firstplugin-pluginsetup.png window asks for Qt Creator Sources, and Qt Creator Build. I installed ...
1
vote
0answers
14 views

how to set mmap for better performance of raw socket

req.tp_block_size=96; req.tp_frame_size=96; req.tp_block_nr=2; req.tp_frame_nr=2; if ( (setsockopt(fd, SOL_PACKET, PACKET_RX_RING, (char *)&req, sizeof(req))) != 0 ) { perror("setsockopt()"); ...
2
votes
2answers
25 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.
1
vote
0answers
18 views

Simple voice chat over command line?

I will be using this for development. What I want is: No large proprietary blob overhead to accomplish this, like skype No account needed. So no skype account, no email, etc etc. Ability to run ...
0
votes
0answers
9 views

Mir based desktop sharing?

I am asking this because I am developing a pair programming plugin, and would like to know if Mir has any desktop sharing capabilities either planned or already existing. This would be to share built ...
1
vote
1answer
35 views

Pair Programming in Ubuntu SDK?

How do you do collaborative code editing, aka pair programming, in the Ubuntu SDK? I heard you can do this in Vim, and I wonder if the Vim functionality in QtCreator makes this possible.
1
vote
1answer
424 views

Installation and configuration of Java 3D in ubuntu

My java 3d project using netbeans is running fine in my windows environment. But when I run project in Ubuntu 12.04 it shows this exception: java.lang.UnsatisfiedLinkError: no J3D in ...
2
votes
1answer
21 views

How to print all coloumns using AWK

In AWK, is there a way to print all columns? I do not want to print them like this: printf($1 $2 $3 ...) Is there a way to print all of them?
0
votes
0answers
18 views

Prolog-C++ inteface doesnt work

I want to use prolog in C++ as a knowledge base or logical service(Embedded prolog in C++). I've searched alot but found nothing which can help me. I also checked the official link: ...
0
votes
2answers
49 views

go on the line where a variable define on any editor

Is there any add-on or ability on geany or any known linux editor for this purpose : when you click on one variable . The mouse coursor goes to when it initialize. My code is c language. what I am ...
0
votes
1answer
52 views

Add notes on Geany

I have a code to which I do not like to add my comments and notes. But I need the ability to add my notes on that. So is there any thing to do that on Geany or do you need any another editor to do ...
0
votes
0answers
8 views

warning multiple values for a block parameter (2 for 1)

I get this when I start Ubuntu: odin.rb:202: warning: multiple values for a block parameter (2 for 1) from /var/lib/gems/1.8/gems/eventmachine-0.12.10/lib/em/deferrable.rb:134 mClient.rb:202: ...
0
votes
0answers
6 views

In Ubuntu SDK, how do you search for text which include linebreaks?

If you ctrl+f in Ubuntu SDK to browse through your code, and you paste within the search box a multi-line piece of text, it will fail to find any results. Is there a way to get around this ...
1
vote
2answers
1k 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 ...
0
votes
0answers
10 views

Deadlock and starvation conditions

I have some question concerning deadlocks. I have understood, the issue that can occur when more threads or processes are in critical section becuase of shared memory, and the solutions can be ...
0
votes
1answer
30 views

Prove programs without installing ubuntu? only running with the cd?

I have a question, I would like to test a program in ubuntu to see if that works better in Windows 7 ("Android SDK"). But I do not want to install ubuntu on the pc, and do not want to use a virtual ...
4
votes
6answers
2k views

Which window has current focus?

I'd like to know (programmatically) which window has current focus. Is there a window-manager independent way of discovering that? Otherwise, how does one determine which window has focus in Compiz ...
2
votes
3answers
63 views

What is the best way to start developing ubuntu touch apps? [closed]

I'm a starting programmer and I can write c++ programs (nothing more or less). I want to get started with writing Ubuntu touch apps, but I have no idea were to start. Should I just jump into it, or ...
0
votes
1answer
89 views

What is the best way to run own server side programs on ubuntu server

If I make some server side programs with node.js / Java / Python what is the best way to run them and make them run every time I boot my server. Is crontab @reboot valid way to do this. If so how do I ...
4
votes
3answers
4k views

portable Virtual Machine

I'd like to create a virtual machine with virtualbox and use it on different computers. The problem is that I need to work on my programming projects on different machines and syncing them over the ...
0
votes
2answers
55 views

Need advice for programming languages for a custom GUI

I just transitioned from windows to Ubuntu and so far loving it. On my list of tasks is to develop a GUI interface for collecting data from a remote device through RS232, compile and display the ...
0
votes
2answers
512 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/ ...
1
vote
1answer
38 views

Sublime Text interface looks blurred

Suddenly my Sublime Text editor started to looks blurred. The screenshot talks by itself. No other program fails like this, just Sublime Text. Someone recognizes this painful behavior?
0
votes
1answer
48 views

Does Ubuntu have a clipboard that works differently from Windows?

Does Ubuntu have a clipboard that works differently from Windows? I've noticed an anomaly between the two, perhaps a bug, or perhaps I'm misusing the functionality. It works the same way every time ...
0
votes
0answers
20 views

QML: How do I set my icon in the Ubuntu SDK with a CMakeLists based project?

How do I set my icon in the Ubuntu SDK with a CMakeLists based project? Do I need a specific type of image file, or can I use just a png?
1
vote
2answers
107 views

apt-build on ubuntu, if I change processor will give problem?

I installed apt-build on Ubuntu, it is a program that compiles and installs programs. It compiles optimally for the user processor and this makes programs run quickly. But I thought what if I change ...
0
votes
1answer
98 views

how to get the address with /proc/kallsyms

cat /proc/kallsyms | grep "\ doexecve$" i run this command in ubuntu 13.04 in virtual box in order to get address. However, no result. How to get the address for kprobe debug
0
votes
1answer
28 views

Confusing Code, request help [closed]

I need help. I am recently coding a bash script, which I have 26 sets of variables. I'm stuck on this part which I need help with. I noticed when you install Ubuntu to check out this website if you ...
1
vote
1answer
64 views

Intel assembly language from Ubuntu

I just want to know if its possible to run assembly language programme, that I was running on windows os using tasm, on ubuntu (linux environment). I actually removed windows completely from my ...
60
votes
12answers
5k views

How to learn vim on a high level? [closed]

I know that vim (like emacs) is very powerful editor for programmers, as long as you know how to use it, its shortcuts, and so on. What steps can I take and what tutorials can I read to become an ...
3
votes
1answer
47 views

QML: How to do variables?

In QML, I am just looking for a way to do fairly simple variables: Bool String Integer
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
0answers
29 views

What are the steps needed to implement a Qt class or member function into a QML project for Ubuntu-Touch? [duplicate]

Qt contains many classes and functions that are useful for a QML project, but not readily available. The existing solutions do not employ a method that is platform independent, thus it is unclear ...
1
vote
1answer
19 views

scala language not avaible?

For another course I need the scala programming language. Is it right it's not avaible on the software center? if that is so, what is the best way to install it. Roelof
1
vote
2answers
54 views

How do I stop a daemon when the user logs out?

I wrote a daemon in C++ which is automatically started on login using a bash script placed in /etc/profile.d/ while running the install section of my makefile. The problem is that when I log out and ...
4
votes
1answer
68 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
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 ...
0
votes
1answer
27 views

How does a graphical front-end control a daemon?

I'm developing a file sync daemon on Ubuntu as a hobby project, and I'm thinking I might want to develop a graphical front-end at some point which will let me control it. How can a GUI control and ...
17
votes
5answers
29k views

How could I begin C++ programming on Ubuntu?

I recently switched to Ubuntu from Windows 7. I was previously learning C++ with Microsoft's IDE, Visual Studio. How would I go about programming C++ on Ubuntu, preferably with an IDE?
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 ...
0
votes
1answer
35 views

problem with gcov, cannot run

So i'm trying to optimize a file called linpack.c. I have to use gcov to find the 10 most executed lines. I've been given these compiler options: -fprofile-arcs -ftest-coverage -O2 So i ran this $ ...
0
votes
2answers
60 views

line 45 Syntax error: unexpected end of file

Now no matter what I do it just always says that even with a fi it doesnt do that help me debug the code please. also this has 44 lines of text and it says line 45 also the ascii art is just a dog it ...
4
votes
7answers
4k views

Best editor for ubuntu [duplicate]

Possible Duplicate: Is there a Dreamweaver HTML editor replacement? Hello Can anybody suggest me the best editor for ubuntu(9.10) for programming purpose like dreamweaver.and also the ...
0
votes
1answer
420 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 ...
7
votes
2answers
403 views

Reverse rendering of Urdu fonts

I am working on a project that is based on Urdu language in Ubuntu platform. I'm using Python language and have almost achieved my task. The problem is that, the Urdu text is rendered in reverse ...
0
votes
1answer
34 views

gedit:3457 Error: Not using units is deprecated. Assuming 'px'

I have an error with my first application which I don't understand : (gedit:3457): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:1971:11: Not using units is deprecated. Assuming 'px'. ...
0
votes
1answer
47 views

Not getting output after dmesg

I am a beginner. I wrote a hello world module (actually copied from the o'Reilly book). the code is: #include <linux/init.h> #include <linux/module.h> MODULE_LICENSE("Dual BSD/GPL"); ...
2
votes
1answer
135 views

How can I get install a Cool computer language for Ubuntu?

I am considering taking an online class through Coursera.org. The class is offered by Stanford University. They use the Cool programming language. Does anyone have experience installing Cool in ...
0
votes
1answer
118 views

Simple GUI to display static text informations

I would like to know if there is a way to write or modify a simple program (I don't really care what language it'll use) that can be launched in GUI mode and will display formated text and URL that ...
2
votes
3answers
130 views

IDE/Compiler for C or C++ Programming [duplicate]

Is there any software that supports on C or C++ Programming? Then, if it so, how to run, compile or debug your own code to display its output via terminal(linux/ubuntu) or cmd(windows)