Questions about programming for and on Ubuntu.

learn more… | top users | synonyms

3
votes
1answer
220 views

Can't get iconify() and deiconify() to work properly

I'm writing app for Ubuntu with C++ and Gtkmm. In my app i use libappindicator to show icon with simple menu in notification area. Icon and menu works ok, i can minimize window to panel (using iconify(...
2
votes
1answer
214 views

How to get gnome session idle time?

Has the method to get the session idle time through dbus changed in the recent Ubuntu or my dbus code here is wrong? #!/usr/bin/env python import dbus bus_name = 'org.gnome.ScreenSaver' obj_path = '...
2
votes
1answer
248 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
1answer
184 views

How to add in-app advertising?

I'd like to code something cool for the ubuntu software center. I'll release my app for free, but I'd like to add some in-app advertising. Is it possible ? how can I do that ? is it hard ? Thanks to ...
1
vote
1answer
23 views

I want to program the graphic UI program for Ubuntu…What is the starting point?

Hello I am a C++ Programmer for windows for many years.. Nowadays I need to code GUI program for Ubuntu or possibly for all linux machines... but I don't have any clue for starting with.. Qt is one ...
1
vote
1answer
222 views

How to show Aptana Studio 3 in the “Open with” list?

I've downloaded Aptana Studio 3 from their site and installed it successfully. Now it is showing in the Dash search. Problem is that, when I right click on any file (i.e HTML, CSS, PHP etc.), the ...
1
vote
1answer
110 views

Ubuntu Phone - detect system type Desktop or Mobile

Is there a way to detect platform from QML or Qt C++ classes? I have Qt/QML project supplied to Linux/Android/Windows at one time, I see it's possible to deploy it to Ubuntu Phone. Is there a way to ...
1
vote
1answer
93 views

Catch program crash when there is no terminal

This question may belong to Unix/Linux in general, but I guess the answer is dependent on distro or desktop environment [I use KDE and Xfce so I would like an answer that is applicable on booth]. ...
1
vote
1answer
228 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?
1
vote
1answer
108 views

Start application in the background on GNOME

Is there a way to avoid bringing an application to the front when opening it? I'm launching an app several times trough a terminal window (running a custom c++ program) and it keeps popping up when ...
1
vote
1answer
44 views

I just downloaded gnu clisp via the synaptic manager. Now how do i use it?

So in windows, I got used to putting file names in my path variable and then using the interpreter/compiler from the commandline prompt. What's the equivalent on Ubuntu?
0
votes
1answer
66 views

How do I run R programs from Sublime text 2 in Ubuntu 16.04 LTS?

I have R programming environment in Ubuntu 16.04 LTS. I also have Sublime Text 2 and I want to run R programs in it. I don't have any IDE like RStudio and even I dont want to use them as I am just a ...
0
votes
1answer
65 views

Create Ogre3D 2.1 project

I have downloaded the Ogre3D 2.1 source, compiled and installed it without any issues. To my knowledge I have a working installation. The problem now is that none of the official project templates ...
0
votes
1answer
149 views

Streaming a raw data bytes by byte into gstreamer pipeline

I have a problem that a gstreamer pipeline which has to take raw data byte by byte into pipeline, and it has to played. I have used appsrc to stream a data chunk by chunk into pipeline but it is not ...
0
votes
1answer
181 views

Using in-house programs in C++ with a DLL library in Ubuntu

I have a number of in-house programs coded in C++ using microsoft visual studio and a microsoft .dll librairy. I'm serching for a way to use those programs in Ubuntu without having to change all the ...
0
votes
1answer
21 views

Loading Session Applications

How does Ubuntu Load previously opened applications on startup? (I want to code and modify that functionality present in the system preferences manually )
4
votes
0answers
399 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 + ...
3
votes
0answers
99 views

How can I run an c/c++ program that use GNU Scientific Library (GSL)?

I'm trying to run 2 simple examples in c/c++ using the GNU Scientific Library. That are the codes: 1st: An Example Program #include <stdio.h> #include <gsl/gsl_sf_bessel.h> int main (...
2
votes
0answers
117 views

Two webcams of the same model are not working

I've been developing a dual webcam system for stereoscopic purposes, in a linux enviroment, using c++ with the opencv library The ideal setup would be with 2 webcams of the same model, but it didn't ...
2
votes
0answers
289 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 ...
2
votes
0answers
35 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" }
2
votes
0answers
462 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 ...
2
votes
0answers
2k views

gcc couldn't locate slab.h in ubuntu 12.04?

Please correct me if I'm missing something here. Thanks for your inputs. Header included in code: #include <linux/slab.h> Code snippet from my file that's asking for memory allocation using "...
2
votes
0answers
357 views

Blogengine.NET on mono

I'd like to set up the new 2.7 Blogengine on Mono using Ubuntu, but I experience issues with it. It has support for mono because there is another project called Blogengine.Web on Codeplex which is ...
2
votes
0answers
85 views

Both 64-bit and 32-bit support for development purposes

I'm looking for directions to complete in the most convenient way (well at least without lots of troubles) set up as in subject. I need (probably): 64 bit platform for running 64-bit Vmware Win7 ...
1
vote
0answers
28 views

How can I create a chromium-like background app?

I want to create an application that (like chromium) creates an icon on the top menu bar and after you close the application, the icon is still there and the application continues running in the ...
1
vote
0answers
41 views

HIbernation or Suspending & Restarting for NON-root users

My purpose is to run a main shell script which calls many sub-processes like other shell scripts, perl sources, and compiled c++ files. I want to run the main shell script "run.sh" at some line in ...
1
vote
0answers
34 views

Is there a way to properly format an Ubuntu font?

I'm trying to distribute Ubuntu Mono Regular with a Media Player I'm developing: https://github.com/ki4jgt/SIMP It is my understanding that a font is defined like in line 27 uMono = pyglet.font.load(...
1
vote
0answers
118 views

What are the advantages of using GTK3 and GTK+3 over GTK-2?

I'm creating a utility program for Ubuntu in Python using GTK-2 and have been told by several people to use GTK3. Why would I want to do so, and would are the advantages of using it instead of GTK-2?
1
vote
0answers
73 views

I can't log back in my Ubuntu account after logging out (I have a cromebook acer C720)

I have installed ubuntu on my crome book (acer C720) and when I was updating something I dicided to log out (I usually hit shut down and I would be able to get back in) and now I can't get back in.
1
vote
0answers
111 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
0answers
279 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.
1
vote
0answers
116 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
79 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 ...
1
vote
0answers
282 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
0answers
23 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
0answers
351 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()"); ...
1
vote
0answers
203 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 ...
1
vote
0answers
86 views

Recommended way to check/fire alarm in Python (PyGI/PyGTK)

I am learning to develop an application by using Quickly (quickly create ubuntu-application). This application will stay in Application Indicator / Notification Bar and only work when a defined "alarm"...
0
votes
0answers
21 views

Problem installing snapd

I like to install snapd but my computer say message like this: Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package snapd how ...
0
votes
0answers
14 views

How to ensure threading and parallel computing with cado-nfs

I tried to run CADO-NFS 2.1.1 to factor 512-bit number (155 digits) using 4 machines with this command : t=/tmp/c155 factor.sh ...
0
votes
0answers
20 views

how to program and burn p89v51rd2 and sst89e516rd in ubuntu? suggest some software

how to program and burn p89v51rd2 and sst89e516rd in ubuntu? suggest some software. as there's flash magic in windows. which is software used in linux? im doing ISP programming
0
votes
0answers
58 views

Segfault running PyQt5 on Ubuntu Phone

I'm struggling with running a very simple pyqt5 application on the Ubuntu Phone, loading a QML file. I have installed extra python-qt5 packages for this. This is basically as stripped down as I can ...
0
votes
0answers
26 views

How to Use Gambas?

I recently shifted to Linux and installed Gambas for creating a project , but the navigate command use to code in visual Basic is missing in visual basic it looks something like this WebView1....
0
votes
0answers
17 views

opengl give the compilation error

I have install opengl in my linux and when I tried to compile the file it give the message this : gcc test.c -lGL -lglut -o test test.c:1:16: fatal error: gl.h: No such file or directory #...
0
votes
0answers
22 views

How do i install libraries for tcl programs?

I want to install all the libraries required to run tcl.However i dont have any error asking me the absence of any lib but i dont want to get stuck in middle of a presentation. Also nam is giving a ...
0
votes
0answers
28 views

I'm trying to install rpl/2 from rpl2.net. Need desperate help

I've been using a Hewlett Packard HP50g for programming and I found that the emulators on hpcalc.org aren't really designed as a fully developed programming language for a computer. This is very ...
0
votes
0answers
21 views

How custom report in Gnucash?

I'm going to report about INVOICES of CUSTOMERS in Gnucash, but all REPORTS are not what I'm looking for :( I want REPORT that I can check which CUSTOMER what ITEM ordered. I searched but I'm not ...
0
votes
0answers
30 views

How do i install Blitzmax

Its this game programming IDE. Here is the download page for blitz max http://www.blitzbasic.com/Products/index.php. I found some documentation on how to install but all of it is very old. For Ubuntu ...
0
votes
0answers
320 views

Not Able To Compile Hello World Kernel Module

I am currently following this tutorial of making a makefile for the simple kernel hello world module. However, I have not been able to do so even after searching on the internet thoroughly for several ...