Questions about programming for and on Ubuntu.

learn more… | top users | synonyms

-2
votes
1answer
25 views

how to Create a directory and a sub directory to hold C programs?

I have run: sudo apt-get install build-essential now i need to create directory and subdirectory in C program so will u please help me. To create directory and subdirectory for the c programming.
2
votes
1answer
14 views

What is the difference between bzr lp-propose and bzr lp-propose-merge?

What is the difference between bzr lp-propose and bzr lp-propose-merge? Do I have to provide the branch I wish to propose a merge to, or does it assume it for me?
-1
votes
1answer
18 views

Program an applications print files [on hold]

i wanna make an app that get files and print it.how can i do that ? with which program language ? this program is like to get file from any protocol and read last line of it and print it ...
0
votes
1answer
39 views

What is the full form of awk?

What is the full form of awk? I tried googling. Google doesn't answer me.
-4
votes
0answers
30 views

Which is the best linux os used by programmers? [closed]

Hello linux programers!! I am new to linux. I am following software engineering. I think to use linux for my programming environment. So what is the best Linux OS for my job. Basically i am leaning ...
3
votes
4answers
80 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, ...
0
votes
1answer
44 views

Is there a programmable way to tell if the screen is locked with the new Unity interface?

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 ...
1
vote
1answer
30 views

(QML) What does the “?” do in defining properties?

Popey { working: visible ? 100 } What does that "?" indicate in this example?
0
votes
0answers
15 views

Anybody know how to delete a file from QML without resorting to a C++ plugin?

Anybody know how to delete a file from QML without resorting to a C++ plugin? It should be possible to do in the folder that my app uses for data storage.
1
vote
1answer
62 views

Should we be upgrading away from ubuntu.components 0.1?

Should we be upgrading away from ubuntu.components 0.1 in our ubuntu applications? I am working on one of the core apps, and many were unsure as to whether the current library (1.1 I think) offers ...
1
vote
0answers
13 views

In the Ubuntu SDK, is there a way to view all global variables in current project?

In the Ubuntu SDK, is there a way to view all global variables in current project? Working on one of the core apps, and I want to figure out if any global variables have been defined for the current ...
0
votes
0answers
13 views

(QML) Which components do I want to invoke for notifcations and dialogues on Ubuntu Touch?

Now of course I can make any sort of notification or dialogue I want. However, I want to know what the Ubuntu Style guide recommends for notifications and dialogues. A notifcation could be: Song ...
1
vote
2answers
36 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
32 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
116 views

Oculus Rift with Antichamber on Ubuntu 14.04 [closed]

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
32 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
25 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
9 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. ...
2
votes
0answers
95 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
35 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
26 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
65 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
43 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
37 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
36 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
34 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
33 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
43 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
32 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
23 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
53 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
12 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
98 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
79 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
56 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
56 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
29 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
86 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
20 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
30 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
55 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
152 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
76 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 ...