Questions about programming for and on Ubuntu.

learn more… | top users | synonyms

-1
votes
0answers
9 views

when I enter this code, it gives me " fatal error: iostream: no file found.. help?

#include <iostream> using namespace std; int main() { int age; int new_age; cout << "Please enter your age::: " ; cin >> age; new_age = age + 1; cout << ...
4
votes
0answers
22 views

How to lock ubuntu device orientation in portrait or landscape from user input?

I am working on a reader app to be used on Ubuntu-Touch. When reading books from the app it would be a helpful feature to lock the orientation in either portrait or landscape. This would be useful ...
0
votes
0answers
18 views

How can I create an operating system? [on hold]

I like to make an operating system,and people around,told me that I should use Ubuntu for this kind of programmings,but now,when I installed Ubuntu,I understood that I'll need another software to do ...
1
vote
2answers
29 views

Is there a better way to programatically get the networking parameters from Linux OS?

I am writing some scripts which need to programatically get a lot of networking parameters from Linux OS. For example, the names of all network interfaces, ip address, netmask, MAC address. For ...
2
votes
1answer
24 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 ...
2
votes
0answers
54 views

Oculus Rift with Antichamber on Ubuntu 14.04 [on hold]

Antichamber runs great on linux (steam version). But it is not playable with the Oculus Rift at this point. The issues are: 1) no headtracking 2) graphics are not being split and distorted by Oculus ...
1
vote
1answer
27 views

How to you get a flickable to do a smooth scroll?

Flickable{ Button{ onClicked: parent.????????? } Or do I have to create a function for this?
0
votes
1answer
24 views

What are the files needs to be edit to add a user? and what to be write?

I am trying to write a C program to add a new user to my Ubuntu 14.04. I edited 1) /etc/passwd sachin:x:65535:1:sachin:/home/sachin:/bin/bash 2) /etc/shadow ...
0
votes
1answer
6 views

finger print sensor for project

I am an engineering student and I am doing my minor project which uses finger print sensor and I am using R30x series. Can I work in the Ubuntu platform and work with the module that I have got. ...
1
vote
0answers
39 views

Unable to start topcoder arena in Ubuntu 14.04

When I want to clear cache using javaws - viewer these error comes. I am trying to launch my topcoder arena. Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar Exception in ...
0
votes
1answer
31 views

using system(“clear”); command to clean the screen yet last line printed. using GNU gcc compiler please help

I am using 'system("clear");' command to clean the output screen yet the last line printed is displayed.I am using Geany text editor using GNU gcc compiler.Please help and tell me clear the whole ...
0
votes
0answers
10 views

Configuration of $QTDIR

I installed Qt from ubuntu repository. I'm on Trusty. Now I use a another program who need $QTDIR but when I enter echo $QTDIR, the terminal output nothing. How to set up this path without ...
3
votes
0answers
56 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 + ...
1
vote
1answer
34 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
25 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
33 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
28 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
28 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
42 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.
2
votes
1answer
27 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
20 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
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
2answers
51 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
0answers
11 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 ...
0
votes
0answers
11 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
32 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 ...
0
votes
1answer
97 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 ...
0
votes
2answers
69 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 ...
1
vote
1answer
47 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
54 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
25 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?
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 ...
3
votes
1answer
63 views

QML: How to do variables?

In QML, I am just looking for a way to do fairly simple variables: Bool String Integer
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
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
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 ...
5
votes
1answer
106 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 ...
1
vote
1answer
72 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 ...
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 ...
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 ...
0
votes
1answer
39 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
64 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 ...
0
votes
1answer
38 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
55 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
159 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 ...
2
votes
3answers
167 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)
1
vote
1answer
193 views

Programming Java on Ubuntu 13.10 [duplicate]

I have ubuntu 13.10 and I am trying to use a disk that contains a book, How to program Java, 7th edition. It is the Linux version CD and I can't figure out what program to use so I can look at the ...
1
vote
2answers
124 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 ...
2
votes
3answers
80 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 ...