Questions about programming for and on Ubuntu.

learn more… | top users | synonyms

0
votes
2answers
51 views

My CPU usage is unnecessarily high while creating a C program in Ubuntu 14.10

I have an MSI GE60 2PC Apache model Gamebook. I also use it for my collage work. It runs Ubuntu 14.10. I have a CPU usage problem while creating a ".c" file. I use the default text editor; while I ...
1
vote
0answers
12 views

Gtk.HeaderBar not appearing in Python Application [on hold]

I've created a Python Application to which I'd like to add a Gtk.HeaderBar. However, when I try to run the code below, the window opens with no titlebar whatsoever. I have the code below: class ...
-4
votes
0answers
25 views

What does Ubuntu can or cannot do in terms of programming compared to the other Linux OS? [on hold]

Im getting my first computer science class next term and I do not have a good background on Linux OS.
-2
votes
0answers
20 views

CImg.h with Eclipse when debugging with this error ! please help? [on hold]

18:03:37 **** Incremental Build of configuration Debug for project testImage **** make all Building target: testImage Invoking: GCC C++ Linker g++ -o "testImage" ./test.o ./test.o: In function ...
0
votes
1answer
20 views

Extending Python lightblue module to use multiple bluetooth dongles

I'm using the lightblue module and pybluez to send files via bluetooth to obex protocol object push. But I need to use multiple bluetooth dongles (3 and more) to send files to multiple devices (20 and ...
1
vote
1answer
32 views

How do I open C libraries and functions implementations?

I am having a problem that I cannot browse the header files /libraries to get the implementation of the C functions like mssget, msgsnd, shmat etc. How should I open these files?
0
votes
0answers
12 views

Using C++ in Ubuntu [duplicate]

I'm new to Ubuntu and and want to know how to run and compile programs in C++ Can i get a step by step detail please? I did try once but got only a blank thing nothing else i really want to use this ...
0
votes
0answers
27 views

Network Manager gui link to terminal network config listing 14.04

I am using 14.04. I am trying to figure out how the connections listed in Network Manager's GUI: is connected to the files found in /etc/NetworkManager/system-connections/ ...
0
votes
1answer
18 views

Can't find window builder on ubuntu

I am searching for window builder in eclipse.
-1
votes
1answer
37 views

Are QStrings mutable? [closed]

In python; strings are not mutable as far as I know. To change a string in python, you would have to create a new object. Is this the same for QString?
0
votes
1answer
16 views

How do you return a list of the current project folders and files of your current project in QtCreator?

I think Qt must have this, because QtCreator has a list on its sidebar: Ideally I am just looking for a Qt function that will just return this list. Thanks.
4
votes
3answers
229 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"} }
22
votes
17answers
14k views

Is there a Visual Studio style tool/IDE?

I have been developing in the windows space with Visual Studio for a while now with work, but I have also been using Ubuntu for a while and am keen to get into some software development for linux. I ...
1
vote
0answers
26 views

How do I develop for the Unity Control Center? [duplicate]

I found no source on how to create an entry in Unity Control Center. Is it even possible? What languages can I use? Edit: I'm searching for a method to have an entry appear in the Unity Control ...
4
votes
2answers
557 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 ...
2
votes
1answer
379 views

How to automatically restart an application for using too much RAM or CPU

I'm going to be running an Ubuntu 14.04 LTS server that will have a few Garry's Mod (Half-life 2/Source based) servers running on it. I don't want any one of those servers getting out of line by ...
1
vote
1answer
57 views

Assembly: TASM illegal command

Few weeks ago I asked for a similar TASM compiler, but seems that the instructor wants nothing but TASM. So I installed this using wine in DosBox. But no matter what my code is, when I run tasm ...
0
votes
0answers
9 views

Extension to submit problem codes on Hackerearth, Codechef from editor

Is there any extension available in any editor to submit code directly from editor to the competitive programming sites like codechef, hackerearth, hackerrank, topcoder, codeforces etc.?
3
votes
1answer
378 views

Prolog files recognized as Perl

Prolog .pl files are shown as Perl files, both in files browser and in Geany/Gedit syntax-highlighting. Is there a way to let it recognized Prolog files as non Perl files?
1
vote
0answers
32 views

how to encode a shell script so others can run it but they can not read it

I want to encode a script, so others can run that script to get relevant result but when they run command cat it should throw output in encoded format.
18
votes
5answers
8k views

How to program for Windows in Ubuntu?

Is there anyway to create (C++ or C#) windows console applications inside Ubuntu's IDE (e.g Anjuta) and compile it for Windows?
7
votes
1answer
549 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 ...
0
votes
0answers
31 views

Ubuntu 14.04 Color Variable Troubles

I have tried all the links from the first 2 pages of google searches regarding editting the LS_COLORS variable, but I can't get it to work as expected. I want all my source code files to show up as ...
-2
votes
1answer
31 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
1
vote
0answers
22 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 ...
2
votes
0answers
55 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
13 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
25 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
62 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
58 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 ...
0
votes
3answers
897 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 ...
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?
9
votes
1answer
3k views

How can I get tab-completion in the interactive Python interpreter?

I often use Python 3000's interactive interpreter, but it's missing the convenience of tab-completion I'm used to from ipython, which isn't available for Python 3.x. How do I enable tab completion in ...
0
votes
0answers
19 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 ...
28
votes
15answers
3k views

C programing suites/IDEs [duplicate]

Possible Duplicate: What IDEs are available for Ubuntu? I know that asking for something like Visual Studio is too much but something that will let me write, debug and compile in a GUI ...
1
vote
1answer
31 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 ...
0
votes
0answers
55 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 ...
1
vote
1answer
321 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
22 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
83 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
10 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
71 views

Can you do dictionaries in qml?

So for example: Item { id: sylvainLikesAnsweringMyQuestions property var myDict: {[key,value],[anotherKey,anotherValue]} }
3
votes
2answers
649 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 ...
7
votes
3answers
10k views

Is there a Source Insight alternative?

I am not a developer, but for my work I trace a lot of codes. It is actually rather difficult reading other people's code, especially for bigger projects. Source Insight is a great application that ...
2
votes
1answer
39 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
89 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
22 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
62 views

What is the full form of awk?

What is the full form of awk? I tried googling. Google doesn't answer me.
1
vote
1answer
71 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 ...