Why is printing to stdout so slow? Can it be sped up?

I've always been amazed/frustrated with how long it takes to simply output to the terminal with a print statement. After some recent painfully slow logging I decided to look into it and was quite...

How to wrap and indent long lines when using print()?

I'm using Python to gather data from a Web service. The data itself is a list that will presented to users. I've managed it that it's printed out like: ( 1) Example of strings ( 2) Example 4 (...

How to open parallel terminals and call same shell script

I would like to open X gnome terminal and in this terminals open parallel shell script, which are same for all terminals. I create one shell script: #!/bin/bash for ou in 11 33 34 35 36 37 39 41...

siege is ignoring query parameters

I am testing siege against a simple server which outputs the n'th Fibonacci number. The server works great when using curl: [[email protected] ~]$ curl http://localhost:8000?q=8 21 Doing the same...

struct.error: bad char in struct format

I have a problem with a little server-client assignment in python 2.7. The client can send 5 types of requests to the server: get the server's ip get contents of a directory on the server run cmd...

Open gnome-terminal from php script

I want to try to open gnome-terminal from php script: shell_exec('bash /data/manager/application/.shell/system.sh'); This script use a function to check terminal: SCRIPTCURRENT=`readlink -m...

Running jar with Processbuilder doesn't work properly

I have the following code: ProcessBuilder pb = new ProcessBuilder( "java", "-jar", "test.jar", Integer.toString( jobId ), Integer.toString( software ), Integer.toString( entryPoint ), application...

Yocto sumo, meta-virtualization with vmdk

I try to build a custom linux distro with yocto sumo, that will include docker. I downloaded yocto core, and added meta-virtualization layer (from sumo branch). I am able to build and run it...

Opening a file associated with a GTK+ application (in C) via a double-click in Ubuntu 16.04

I have a GTK+3 program that I have written and it uses GKeyFile's to store user parameters. There is a default keyfile that is loaded when the application is executed that stores the previously...

Can't build bootlader and kernel image for my DE0-Nano-SoC board

I am using poky to build a BSP for my DE0-Nano-SoC board. i got the following error. please help me on this. After using bitbake virtual/bootloader i got these: I am using poky to build a BSP for...

Glade detects wrong version of Gtk+

I have a program (written by someone else) that I am trying to run. Traceback (most recent call last): File "gui/gui.py", line 387, in <module> gui = GUI(filepath=filename) File...

yocto raspberrypi showing default splash instead of raspberrypi splash

I tried to build rpi-basic-image and core-image-base ( rpi-basic-image.bb suggest to build core-image-base because rpi-basic-image is deprecated) for raspberry pi zero wifi. I am able to build and...

How to launch gnome-terminal from dbus plugin, a systemd service, using Python

I use Python to develop a simple dbus based plugin (dbus.service.Object) that takes IPC calls from a command-line script. The dbus service is configured to host in systemd. It is running as...

How do I run a python script using PHP on Raspberry Pi?

I want to run a python script on Raspberry Pi via web-app. I have a PHP page for a button, and when the button is clicked it goes to another PHP page which is made up of the following code. If I...

Removing dot from centre of empty gnuplot point

I am plotting data in gnuplot with points. When using point types that I think should be empty dots (as in points with coloured borders but white or clear centres) they still have a small dot in...

Fail to startup Oracle Database (failure in processing system parameters)

I'm going to setup Oracle DB 12c on Ubuntu 16.04. I'm following this guide. But when I was trying to STARTUP, it's fail with this error: SQL> connect sys as sysdba Enter password: Connected to an...

Trying to install a simple kivy app on my phone but got a buildozer last command error message

import kivy kivy.require('1.11.1') from kivy.app import App from kivy.uix.gridlayout import GridLayout from kivy.uix.label import Label from kivy.uix.textinput import TextInput class...

Error when compiling an apk with buildozer

I tried to make an apk via Buildozer on a simple "Helloworld" code on ubuntu but i got an error and i didn't find a solution on internet.. i used this command "buildozer android debug deploy "...

Julia program stalls when run from crontab scheduler (Linux)

I have a really specific and tricky bug that I can't figure out how to fix/work around and I can't find a similar case on here. I have a bash script that invokes a Julia script partway through to...

"Buildozer failed to execute the last command" Error

Iam trying to make an Apk out of my Kivy Application right now. But Buildozer gives me an error at the moment, where i dont find a working solution in the internet. My Program is an simple...

Kivy buildozer.spec Error - Trying to build an android App that sends an email out

I have an app that I'm trying to deploy and can't. Towards the beginning I get an 'ValueError: read of closed file' I don't know if this is related to openssl which is the step it's on when it...

how to decode a base64 string into human readable characters on gnome terminal

I want to decode a base64 encoded string to human readable data, and seeking right encoding for the same. This is the command that i am trying echo...

Job for docker.service failed because the control process exited with error code. during installing docker ubuntu 19.10

I tried to install docker on Ubuntu 19.10 And I followed this Docker Install Document But after sudo apt-get install docker-ce docker-ce-cli containerd.io I got some errors: Hit:1...

Tried to build a Kivy APK using buildozer and got "Invalid syntax" iin runpy.py

I was trying to build a Kivy app as an APK for android. However, when it downloaded all of the needed dependencies it spat a traceback saying runpy.py had an invalid syntax. This is inside an...

How to execute multiple QProcess in Qt5

I have been struggling on how to execute multiple processes using QProcess. I was able to execute a single process, e.i. opening a terminal window QProcess *openTerminal = new QProcess(this);,...

Kivy garden mapview deploying error with Buildozer

I am using kivy.garden.mapview for my application. Everything works properly, but problems arise when I try to deploy the application to Android with Buildozer. I set "garden_requirements =...

Error when trying to build apk with buildozer

I've tried building an apk with buildozer before and it worked however today I tried to change the app logo on my phone by using the icon.filename in the .spec file and it displays an error. I've...

Kivy app works fine in development but throwing error when generating a release

I developed a kivy app and everything works perfectly on my laptop and on my android phone too (in debug mode). The next step is to make a release so that I can finally publish the app. I followed...

How to make android APK with buildozer?

I am trying to buid an APK with buildozer, I have a windows but i have set up a virtual machine(linux). When i try buildozer init, it creates the .spec which I have edited as per my needs spec...

sh.CommandNotFound: ./compile.sh Buildozer and KivyMD error

OS: (VM) Ubuntu 20.04.2 Python3 : 3.8.5 I've been trying to compile a an application I created using the following modules: kivy,kivymd,pafy,vlc,sys, threading,time. And also a local custom module...