Questions tagged [programming]
Questions about programming for and on Ubuntu.
573
questions
0
votes
1
answer
331
views
How can I delete menus in Glade?
I'm writing a program using Quickly and I can't figure out how to delete menu bar entries.
1
vote
3
answers
18k
views
Start a programs in terminal only by name
I'm new to the Linux environment and I noticed there are many programs of which we can use only the program name to start them in the Linux terminal.
E.g. gedit, vi, firefox
Instead of providing ...
1
vote
1
answer
698
views
Where are the headers with IOCTL numbers for ext4?
I am looking for ext4.h, or another file that contains EXT4_IOC_*. There is nothing in /usr/include or /usr/src. I have linux-headers-generic installed. I am on Kubuntu 14.10. Where are the headers?
...
-1
votes
1
answer
170
views
What programming language would be ideal for making a note taking app for Ubuntu in which you use a wacom digitizer app? [closed]
I have some, but not much experience in programming, so I decided that now that I will have some spare time, I'll choose one language and try to master it to a level. I am not sure which language ...
1
vote
1
answer
17k
views
OSError: [Errno 101] Network is unreachable
When doing a network broadcast from Python, I get this: OSError: [Errno 101] Network is unreachable
My code is as follows:
def send(ip, message):
sock = socket.socket(socket.AF_INET, socket....
1
vote
1
answer
1k
views
scala ide (eclipse) and sbt project
I am using the last version of the scala ide eclipse http://scala-ide.org/
Scala IDE build of Eclipse SDK
Build id: 4.0.0-vfinal-20141216-1226-Typesafe
I have a project that I am able to run from ...
1
vote
0
answers
183
views
How do I bundle a python interpreter in my qml app?
How do I bundle a python interpreter in my qml app? I can not use the system's python interpreter due to the nature of Ubuntu’s new Click Packages, and App-Armour.
How do I do this?
1
vote
2
answers
192
views
No editors installed to fix sources list
I 'm in Ubuntu 12.04 but I'm using it with crouton in a Chromebook, the terminal emulator it uses is UXTerm but it seems that it doesn't have any editor installed - gedit, nano and pico are all absent....
2
votes
1
answer
392
views
Ubuntu Touch App with Simple UI (QMake) - how to connect C++ to QML
I've noticed that the Ubuntu SDK now has a template for an 'App with Simple UI (QMake)'. This creates a C++ Ubuntu application project with a sample UI containing a Label and a Button (Needs a 15.04 ...
2
votes
3
answers
4k
views
Is Gedit-3.14.2 available for ubuntu?
From where I will get gedit latest version? Current I have 3.10.4 installed on my Ubuntu version 14.10. Do we have any ppa available to download latest gedit?
0
votes
1
answer
176
views
How do I write perl code for following example? [closed]
I have file content like this:
aaa accounting exec ...
aaa accounting exec ...
aaa accounting commands ..
aaa accounting commands ..
aaa accounting commands ..
aaa accounting commands ..
aaa ...
0
votes
1
answer
861
views
Cobalt theme for Geany?
Is there any cobalt theme available for Geany Editor just like Gedit cobalt theme? Also how to install these themes. Is there any way we can create our own theme for these types of editors?
0
votes
2
answers
542
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 ...
0
votes
1
answer
640
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
1
answer
2k
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
1
answer
996
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
1
answer
109
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.
1
vote
0
answers
33
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 ...
0
votes
1
answer
2k
views
Can't find window builder on ubuntu
I am searching for window builder in eclipse.
2
votes
1
answer
5k
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
2
answers
14k
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 ...
1
vote
0
answers
2k
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.
9
votes
2
answers
9k
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 ...
2
votes
2
answers
17k
views
Installing C POSIX libraies in Ubuntu 14.04 LTS [duplicate]
I'm trying to install the following C POSIX headers in Ubuntu 14.04 but for some reason some of them won't install.
sys/ioctl.h
unistd.h
locale.h
ncursesw/ncurses.h
Commands tried
sudo apt-get ...
-2
votes
1
answer
179
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
0
answers
187
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 no ...
2
votes
0
answers
630
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 ...
1
vote
0
answers
112
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
0
answers
48
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"
}
4
votes
2
answers
12k
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
1
answer
252
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 10....
28
votes
4
answers
10k
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?
2
votes
1
answer
116
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
1
answer
219
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 ...
8
votes
1
answer
26k
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?
4
votes
1
answer
6k
views
Can you do dictionaries in qml?
So for example:
Item {
id: sylvainLikesAnsweringMyQuestions
property var myDict: {[key,value],[anotherKey,anotherValue]}
}
6
votes
1
answer
47k
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.
17
votes
3
answers
47k
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
1
answer
132
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
1
answer
4k
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
1
answer
99
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
1
answer
39
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
1
answer
4k
views
What is the full form of awk? [closed]
What is the full form of awk?
I tried googling. Google doesn't answer me.
0
votes
1
answer
727
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
1
answer
2k
views
(QML) What does the "?" do in defining properties?
Popey {
working: visible ? 100
}
What does that "?" indicate in this example?
1
vote
0
answers
845
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
1
answer
91
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
0
answers
29
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 ...
1
vote
2
answers
1k
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 ...
3
votes
1
answer
3k
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 ...