Questions about programming for and on Ubuntu.

learn more… | top users | synonyms

0
votes
0answers
11 views

Is it acceptable code style to leave binding loops in QML applications?

Backstory: I am working on a patch for the ubuntu-filemanager-app that will shrink the fontSize: for a Label {}, if the width: is larger than the window size. Think this: Label { id: myLabel ...
0
votes
0answers
14 views

creating nested loop within ftp

echo "which stations you want to download (example input, brmu ankr) ? : " read stations echo "which years interval (example input, 2013 2015 or 2010 2010)? :" read year echo "which days of year ...
1
vote
0answers
23 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? ...
0
votes
1answer
33 views

Which system monitors are able to show me a non-rounded memory usage?

Backstory: I am trying to detect memory leaks in a program by viewing the memory used from the system monitor, and seeing if it rises while doing a certain activity. System Monitor unfortunately ...
1
vote
2answers
57 views

What is the best C compiler and IDE for Ubuntu? [closed]

I want to write c or cpp code on Ubuntu. I am new in this platform.Which one is best IDE and compiler for Ubuntu?
3
votes
1answer
865 views

What is the logical mistake in this code?

I have written some code for downloading favicons. It has a logical error which I am not able to see. #!/bin/bash ico="1"; if [[ $ico =~ ^-?[0-9]+$ ]]; then wget -P $HOME/Downloads/ ...
-1
votes
2answers
47 views

Strange behaviors in adding integers from Python script [closed]

This python script is adding the sums of the numbers entered in a single line delimited by space except that it is not adding correctly. Thanks in advance. Print "Enter Numbers:" ...
-1
votes
1answer
21 views

first in c++ program don't compile and execute [closed]

#include<iostream> using namespace std; int main() { cout << " hello world !! good job nothing & something" << "\n" ; cout << " i jitendra singh in ...
0
votes
1answer
26 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 ...
1
vote
1answer
30 views

how to make my own drivers? [closed]

I am learning basic c++ now, and am still learning the ins and outs of Linux. How can I learn to make drivers (keyboard etc.) For Ubuntu?
0
votes
2answers
43 views

New program development - need help

I would like to develop a new program for Ubuntu that will monitor the user's activity ,If user frequently uses a particular software "X" in certain time (like 8:00 A.M - 10:00 A.M ) ,when the time ...
0
votes
1answer
57 views

Visual Studio alternative for Ubuntu? [duplicate]

I write programs in Windows casually (apps like notepad, web-browser etc.). But I don't see a good alternative available. I have used Mono but it is not one bit like Visual Studio. I am having a tough ...
-1
votes
3answers
136 views

Do we have to install Python or It is already installed in Ubuntu 14.04LTS?

I need it for learning Python language. Please Help!
0
votes
0answers
41 views

How do I fix Blurry Sublime Text 3 graphics?

I have this problem where I get a lot of buggy visuals in Sublime Text 3, any help? I have the following packages installed: bracket highlighter, tag, trailing spaces, sublime linter buggy text ...
0
votes
0answers
23 views

Modifying user accounts using Java Ubuntu 14.04 LTS

I'm trying to make a java program that retrieves the list of users on the machine and allows the user to delete users that shouldn't be there. I'm really new to Ubuntu and I know on Windows you can ...
2
votes
0answers
29 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 ...
0
votes
1answer
37 views

How to maintain a counter across multiple executions of a script?

I have a script with a conditional statement and I want to find out how many times the then clause is executed, across multiple runs of the same script. eg: if [condition] then Some code; ...
1
vote
0answers
38 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 = ...
4
votes
3answers
122 views

How I can monitor new files in a directory and move/rename them into another directory?

A program generates output textfiles, named output.txt, after every 15th iteration of a certain process. Doing so, it overwrites the last output.txt. I want to keep the files however, and I can't ...
3
votes
1answer
23 views

Store in environment variable

I tried storing the contents of a file in an environment variable using one of those commands. a= cut -f 1 abc.txt cut -f 1 abc.txt >a neither works . So , can anybody help me out?
1
vote
0answers
18 views

How to prevent system updates from crashing my software? [closed]

This question is more related to coding practices. What do you guys do while programming, as a safety net, to avoid having system updates ruin the functionality (or the output) of your program? How ...
1
vote
1answer
48 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 ...
0
votes
0answers
49 views

Ubuntu 14.04 LTS + cnc plasma

I need some help with my project. I'd love to use Ubuntu 14.04 LTS for my cnc plasma table, but I don't know which programs do I need and how to install them (LinuxCNC does NOT work with my laptop so ...
1
vote
1answer
59 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 ...
0
votes
1answer
42 views

Recommended Languages to Learn Linux [closed]

This is a very common question i might be asking, but I have not come through a clear cut answer yet. I want to be a fully Linux Developer, (BOTH Backend/Coder and GUI). Which programming Languages ...
2
votes
1answer
82 views

Installing a program on a ubuntu touch phone

I searched on the website but didn't found an answer. I heard a lot that developing an application with C, C++ or anything else. Is it really possible ? What I mean : Imagine I develop a program in ...
0
votes
1answer
25 views

How to make geany or vi understand Maxima (or any other less known) syntax

I tend to program a lot in a symbolic language called Maxima, but I haven't found any editor that highlights its syntax. Is there I way I can make vi or geany (or whatever) understand this syntax and ...
1
vote
0answers
46 views

Start programming [closed]

I am a beginner ubuntu user, and I am interested in learning a programming language. My demands are that I would like it to help me master the command line, and be a good base voor learning future ...
1
vote
2answers
89 views

GCC Fatal Error

everyone Here's my problem; So, I'm new to Ubuntu and programming and I just wanted to start with C. I created the classic "hello.c" file #include <stdio.h> main () { printf("Hello ...
0
votes
2answers
61 views

Installation with wine error

I downloaded vds 6.0 (a script type programming language for windows OS's) and now I am trying to install it in ubuntu 14.04. I looked at wine app database and I found that vds 6 works on wine. Here ...
1
vote
0answers
19 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
1answer
126 views

How to run C program on 14.04?

I'm trying to run some C programs using Geany and Code::Blocks. After coding them, when I run them, a message is showed in the terminal like this: In Code::Blocks: sh: 1: /home/c program files/2: ...
0
votes
0answers
163 views

Arduino COM port

Everything was fine until arduino IDE suddenly closed my COM port and sent me a message about error when opening COM port. processing.app.SerialException: Error when opening serial port ...
4
votes
5answers
794 views

How can I run a program and watch its activity using top?

I have a small program which I compiled myself. It’s CPU intensive, so I want to watch the CPU usage when it’s working. However, when I run ./myprog, I can’t run top immediately and sequentially.
1
vote
1answer
59 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]. ...
0
votes
0answers
23 views

Programming in Linux [duplicate]

so I've never used Linux as a programmer I code C++ in Windows(I am newbie) and today I installed Code::Blocks.I opened some of my projects from Windows but Code::Blocks can't include some of the ...
0
votes
1answer
49 views

Is there any application which interacts with the user? [closed]

I'm very comfortable while using Linux or Lubuntu although Windows seemed a little faster but it hangs at a certain point. So I would like to thank all the programmers of Linux I really liked it .. ...
0
votes
0answers
40 views

Programming and debugging embedded systems using Ubuntu

I have switched from Win7 to Ubuntu and I got some problems to configure toolchain for programming embedded systems. On Windows I have used Em::Blocks with GDB and J-Link from Segger. It was very ...
0
votes
0answers
14 views

grub cursor position

after an incident that happened years ago caused by tee, my "down" button didn't work anymore. Now I want to set my cursor position in to the bottom. My Aim is that I can use the up button to choose ...
0
votes
1answer
75 views

How do i write a terminal script to setup ubuntu for me instead of spending days every time?

From what I understand I can make a text file with all commands same as I would type in terminal, make it executable and run it. Would running sudo mysetup.sh or mysetup.txt be OK so not typing PW ...
0
votes
3answers
3k views

What is the best editor for HTML, CSS etc? [duplicate]

in Windows I'm using Komodo & Notepad++ for coding HTML, CSS etc. In Ubuntu, what's the best editor I can use? Thanks :)
0
votes
1answer
18 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 )
0
votes
1answer
26 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
3answers
188 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
votes
1answer
69 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 ...
0
votes
1answer
408 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, ...
0
votes
0answers
34 views

Fortran Compiler

I 'm programming in Eclipse platform,I intend to install Phortran compiler on eclipse but every time I try to install the plug-in,There 's an error in installation PTP,Distribution that I 'm using is ...
0
votes
0answers
26 views

Check a programming language module or library information before installing and downloading

With aptitude, we can do something like: aptitude search package-name to display availability. aptitude show package-name to display package information. aptitude why package-name to display reason ...
1
vote
0answers
84 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
2answers
50 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 ...