Category "linux"

gensim error : no module named gensim

I trying to import gensim. I have the following code import gensim model = gensim.models.Word2Vec.load_word2vec_format('./model/GoogleNews- vectors-negative

how to compare only date from a model's datetimefield with current date?

I want to use Model.objects.filter(datetime_lte=datetime.datetime.now.date()) How exactly can I achieve this? I am using django 1.6.5. I want only records of cu

WebDriverException: no chrome binary at /usr/bin/google-chrome-stable or chrome binary not found

I am executing selenium test via Jenkins server in AWS Ubuntu. I was getting chrome binary not found error so I set chrome binary in my code. System.setPrope

How to measure the stack size of a process?

How do I find the stack size of a process ? /proc/5848/status gives me VmStk but this doesnt change No matter how much ever while loop and recursion I do in m

Failed compile delegate Raspbian

i trying to compile the latest ver of Delegate on my rpi3 with this tuto (i use raspbian): https://its-more.jp/delegate/ftp/pub/DeleGate/INSTALL.htm but i have

Deploy Strapi on AWS - ERROR: "Knex: Timeout acquiring a connection. The pool is probably full. Are you missing a .transacting(trx) call?"

I'm trying deploy Strapi on AWS, but when I'm launching pm2, then I'm getting error: "Knex: Timeout acquiring a connection. The pool is probably full. Are you m

How to use sed to remove the last n lines of a file

I want to remove some n lines from the end of a file. Can this be done using sed? For example, to remove lines from 2 to 4, I can use $ sed '2,4d' file But

libudev-dev is not installed in debian

I have to install pcsc-lite 1.8.13 on my debian-sid operating system. When I run :/configure, I encounter "install libudev-dev" error. I have installed libud

How to emulate TrustZone in QEMU?

I'm trying to emulate TrustZone features in Qemu. I've found two links that seems explain this process. The First Reference doesn't attach the image kernel tha

How to read a sector using a bio request in Linux kernel

How do I create my own bio request to read a sector from the disk drive ? I am trying the following but it freezes the system. static void read_bio() { st

How to show a Message Dialog in GTK using GTK# (Mono)

I would like to show a dialog inside my GTK# application (I'm using MonoDevelop). Sorry for the silly question, but I'm pretty new to GTK and Linux in general.

How to list pipes used by a process with a bash command

Is there a way to list pipes used by a running linux process (e.g. given its pid or process name) and to determine their used capacity? Something like: lspip

Run multiple python scripts concurrently

How can I run multiple python scripts? At the moment I run one like so python script1.py. I've tried python script1.py script2.py and that doesn't work: only t

Nginx RTMP not recording

I already setting up Nginx RTMP in ubuntu linux hosted by DigitalOcean. And currently running my laravel web application in localhost mode in my desktop. Everyt

Commands to control the volume of a connected bluetooth device in Linux? [closed]

Let's say I have paired and connected a Bluetooth headset successfully to my Linux system. I know I can check my Bluetooth device MAC id from

How do I access the `addr2line` functionality within my C++ program?

I need to get the information provided by addr2line (source file and line from backtracing a function call) from within a C++ program. I know I can call addr2li

How to change the starting directory of a tmux session?

The directory where you start a tmux session in will be the directory that all new windows will start at. My question is, how can you change this starting dir

Configuring for a compiler different than the default while running configure

I am compiling the glibc library. Before I could do that, I need to run configure. However, for compiling glibc, I need to use the gcc compiler which is not the

Segmentation fault in calling Python script from C++

Summary: I am getting a segfault when calling an embedded Python script, which somehow only happens when the script is called the second time around. Hello the

Linux - Command a2ps For PDF File

it is possible to print a PDF file with the a2ps command? If someone could give me an example set?