Tagged Questions

Questions about programming for and on Ubuntu.

learn more… | top users | synonyms

3
votes
1answer
128 views

Assembler similar to TASM on Ubuntu

I have an HP computer running 64-bit Ubuntu, so you could say Intel. I'm taking a assembly course at the university. The instructor wants us to use TASM. While it may run on wine I'm not sure about ...
-1
votes
0answers
8 views

compare between sco open server old version and ubuntu

I was running a program with cobol under sco open server if i change to ubuntu server can I run my programm and how to do so? I've tried to do so but my programm dosen't work and it's very important ...
-2
votes
1answer
22 views

Make operating system with Ubuntu? [duplicate]

I just had a quick question is it true that you can make your own operating system with Ubuntu and if so where can i go to learn how to make my own operating system with Ubuntu. Thanks
-2
votes
0answers
14 views

How do I reset a counter every 1 second inside a kernel module [on hold]

How do I reset a counter every 1 second inside a kernel module? I'm not getting how to use an interrupt to reset a particular variable array to some initial set of values. Can someone give me sample ...
1
vote
0answers
9 views

Scilab installation tcl tk configure not working

I am installing Scilab 4.1.2 in Ubuntu 12.04 manually. I entered the folder and pressed ./configure but after some steps it shows configure: error: header file tcl.h has been found for 8.4* but ...
1
vote
0answers
36 views

How can I detect screen rotation with QML

I've been trying to create a Ubuntu QML application, but when I rotate my screen while it is running on my tablet, the header is semitransparent and the content below is exceeding the screen's height ...
0
votes
0answers
10 views

How do I Resolve a dependency issue with Ubuntu SDK, chroot, CMakelists, and the Emulator?

I am trying to build lp:ubuntu-filemanager-app on the ubuntu sdk for running on the emulator. The libraries I need are installed on my system, and in the phablet-shell. I can run the application in ...
2
votes
0answers
22 views

Is there a Bool or Flag you can use in QML to determine whether a phone is running the application?

For example: Text { text: isPhone ? "this application is running on a phone" : "this application is not running on a phone" }
1
vote
2answers
28 views

What is the objectName: property in QML, why is it needed, and how is it different than the id: property?

What is the objectName: property in QML? Which components have this property? Why is it needed? How is it different than the id: property? Why can't I just use the id: property instead?
0
votes
1answer
49 views

segmentation fault on 14.04, but did not fail on 10.04

I'm using ubuntu 14.04 64bit LTS and I'm writing image processing program in C. When I'm runing any programe in terminal it shows segmentation fault (core dumped). The same program run nicely in ...
21
votes
1answer
2k views

Would Android apps be able to run in Ubuntu touch natively?

I'm wondering why Android apps won't be able to be run natively on Ubuntu Touch. I mean, isn't it all just Linux?
0
votes
0answers
16 views

Ubuntu hangs while coding

Ubuntu 14.04 LTS, x64, 4GB RAM. When I launch Android Studio+ Intellij Idea it runs smooth, but at some point it just hangs to death. Especially if I will open 2-4 pages in google chrome, or start my ...
0
votes
0answers
31 views

If I want to test apps on the phone emulator, what kind of emulator do I have to build?

It recomends either i386, but there is an arm version as well; what is the difference? I tried running my app on the i386, but I got this error: 20:31:27: Running steps for project ...
2
votes
1answer
21 views

How do open a link with a button

I would like to click a button in my QML app and have it open a link in the browser on the device.
1
vote
1answer
29 views

How do you determine the combined width of the components in a Row {}?

How do you determine the combined width of the components in a Row {}? The width of the row itself will not work, as I need to set its spacing:, and using this property will create a loop error. It ...
1
vote
1answer
44 views

How do you round numbers in qml to two decimal places?

I have these ridiculously long real numbers such as 33.088117576394794, and I am trying to convert them to doubles (Two decimal places). So in this case, I want 33.09. How do you do this in QML?
0
votes
0answers
9 views

Page Stack Component Depth to always remain visible?

Is this possible? Say you have a depth of 5 tabs, They appear and disappear as you click the header. I want them to always remain visible.
1
vote
1answer
21 views

Can you do dictionaries in qml?

So for example: Item { id: sylvainLikesAnsweringMyQuestions property var myDict: {[key,value],[anotherKey,anotherValue]} }
1
vote
1answer
69 views

Why can't I use conio.h or ncurses.h?

I am new user to Ubuntu. I wrote a simple program in C. When I try to compile it to use conio.h, the compiler gives me fatal error. So I tried by ncurses.h, but still I am getting same error.
2
votes
1answer
60 views

How do you check if a property is undefined in qml?

How do you check if a property is undefined in qml? This is what I am trying to do: Button { id: myButton text: if (text === "undefined"){"default text"} }
2
votes
1answer
35 views

How to make sure a Row {} or Column {} does not contract when an item's visible: property is set to false?

This is a question about good coding practice with QML: How can I make sure that a Row {} or Column {} does not contract when one of its Item's visible: property is set to false? The current work ...
1
vote
1answer
52 views

How do you use Q_INVOKABLE to access c++ functions in QML?

I am looking for the most simple and straightforward example. For my part; .h public: KTerminalDisplay(QQuickItem *parent = 0); ~KTerminalDisplay(); Q_INVOKABLE void setFontStyle(QString & s); ...
2
votes
1answer
18 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
19 views

Program an applications print files [closed]

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
45 views

What is the full form of awk?

What is the full form of awk? I tried googling. Google doesn't answer me.
3
votes
4answers
128 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
64 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
34 views

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

Popey { working: visible ? 100 } What does that "?" indicate in this example?
0
votes
0answers
29 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
67 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
16 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
19 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
51 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
42 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
187 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
44 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
28 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
12 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
202 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
45 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
120 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
82 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
51 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
53 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
40 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
38 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
34 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
44 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
38 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
27 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: ...