How do I install plpython on MacOs X 10.5?

I have just installed PostgreSQL 8.3.4 on Mac OS X 10.5 (using ports), but I cannot figure out how to enable PL/Python. When I run the CREATE LANGUAGE plpythonu I get the following errors: ERROR: ...

How check if a String is a Valid XML with-out Displaying a Warning in PHP

i was trying to check the validity of a string as xml using this simplexml_load_string()Docs function but it displays a lot of warning messages. How can I check whether a string is a valid XML...

Unable to Install with easy_install or pip on mac

I'm trying to install lxml and pycrypto modules using easy_install (and pip) but getting error messages like Running lxml-2.3.4/setup.py -q bdist_egg --dist-dir...

installed libtool but libtoolize not found

im trying to build libxml2 from source on my mac. so i have autoconf libtool and automake installed using mac ports autoconf and automake seem to be working fine as expected. i try running...

extconf failed, exit code 1 error when installing [Ruby on Rails] 5 on OS X Yosemite 10.10.5

I'm trying to install Ruby on Rails v5 on OS X Yosemite 10.10.5, following the instructions on the rails site: http://railsapps.github.io/installrubyonrails-mac.html When I run this: sudo gem...

How to install Nokogiri on Mac OS Sierra 10.12

I'm having troubles installing Nokogiri (1.6.8.1) on Mac OS Sierra 10.12. I tried using brew install libxml2 libxslt and then referencing the install directories using command line options but it...

Error:fork/exec : no such file or directory -- when run Golang code in docker

first of all any help is appreciated I want execute Gocode in a container: FROM index.tenxcloud.com/tenxcloud/centos:centos7 ADD ./ping-app /wls/applications/ping-app RUN yum install -y gcc...

Docker-Compose won't volume my php.ini file

I'm trying to use docker-compose to volume my php.ini file so I can make changes on the fly on my local machine to see how it affects the host machine. Unfortunately the only way I've been able...

Docker - Create new files as www-data and not root

I have a basic docker container which I build using docker-compose (version 3) to bring up a basic LAMP stack. The issue I am having is that files created inside the docker container are always...

I want to run wpscan on Ubuntu vps server, but getting ruby errors

Firstly i installed wpscan on ubuntu by following these methods apt-get install git sudo apt-get install libcurl4-openssl-dev libxml2 libxml2-dev libxslt1-dev ruby-dev build-essential libgmp-dev...

how to add audio to existing video using FFMPEG at specific time?

I have video file (.avi) that contain video of 10 minutes. I also have audio file (.wav) that contain 1 minute of sound. I need to add the audio to the exist video but the audio need to start at...

ffmpeg livestream alway stop after 160hours streamming

I use ffmpeg with this code to run stream youtube 24/7 from Windows VPS. But stream alway stop after 160-167 hours and I don't know why. dir/b/s "C:\Users\NASA\Desktop\ffmpeg\bin\1\*.mp4" >...

FFMPEG: Too many packets buffered for output stream 0:1

I want to add a logo to a video using FFMPEG. I encountered this error: "Too many packets buffered for output stream 0:1.", "Conversion Failed.". I tried with diffent pictures and videos, always...

linux: m3u8: how to manually download and create an mp4 from segments listed in .m3u8

I have an .m3u8 url i.e http://example.com/test.m3u8 I can download it by ffmpeg command: ffmpeg -y -loglevel verbose -i "http://example.com/test.m3u8" -c copy -f mpegts test.mp4 But i am trying...

How to install multiple packages in conda from a file without creating a new environment?

I took these from yml file of packages that my current environment is missing. How do I just install these within my current environment? channels: - defaults dependencies: -...

Docker container killed after Ctrl +C

I have a nginx and php-fpm containers. When I'am in my php container in a projet and I exec any command (like vendor/bin/behat or composer update) who takes time and I click on CTRL+C. I'm...

Python: why do I get an error when I import geopandas?

I try to import geopandas in my jupyter notebook. import geopandas as gp and I get the following error: ImportError:...

WEBP support not installed error with Pillow included in Anaconda

I have written a small code to open webp image in the Anaconda prompt. from PIL import Image im = Image.open('test.webp') It causes the following...

Cannot connect to Azure SQL using an alpine docker image with Python

I have an alpine based docker image, with support for Python, through which I am trying to connect to Azure SQL service. Here is my simple connection code. I am getting an error when connecting...

"AssertionError: Torch not compiled with CUDA enabled" in spite upgrading to CUDA version

I figured out this is a popular question, but still I couldn't find a solution for that. I'm trying to run a simple repo Here which uses PyTorch. Although I just upgraded my Pytorch to the latest...

Docker: PhpMyAdmin has an upload limit of 2048KiB

i have a docker-compose.yml that looks like this: webserver: build: ./_docker/php ports: - 80:80 links: - mysql volumes_from: - app mysql: image: mysql:5.7 environment: ...

ImportError: cannot import name 'rcParams' from 'matplotlib'

I have tried to uninstall and reinstall matplotlib in my tf-gpu enviornment I made but I keep getting this error: ImportError: cannot import name 'rcParams' from 'matplotlib' This is the entire...

Convert videos in ffmpeg filter_complex with different timebases to use xfade

I'd like to use ffmpeg's new xfade filter to crossfade between two videos. In theory this is easy: ffmpeg -i v1.mp4 -i v2.mp4 \ -filter_complex "[0][1]xfade=duration=1:offset=5,format=yuv420p"...

FFMPEG sync video from image2pipe with audio from RTMP

I have an rtmp url, and i need to put overlay using opencv and keeping audio. It works well, exept for syncronization between audio and video. with this command ffmpeg -re -y -f image2pipe -i - -i...

How to install php debug symbols on Debian Buster?

I am trying to obatin a meaningful backtrace for some segmentation faults occuring on php-fpm in Debian Buster. Reading Debian's guide, I understand that I need to add the debug repo deb...

how to install php-amqplib in alpine image?

I use docker-compose version: '3' and need to install php-amqplib. I faced with strange behaviour. Thrown exception about missing sockets, but I installed and added to my composer.json, how to...

ffmpeg cannot open connection tcp://a.rtmp.youtube.com

I want to live stream using ffmpeg, when live on Facebook it runs normally, but when I live on YouTube there is an error, is there anything wrong with the command I entered? even though the...

Prevent ffmpeg from changing the intensity of colors while downscaling the resolution of the video

I have a use case where I need to downscale a 716x1280 mp4 video to 358x640 (half of the original). Command that I used is ffmpeg -i ./input.mp4 -vf...

Passing bytes to ffmpeg in python with io

Sorry, new to stackoverflow Just wondering if it's possible to pass byte data from io. I'm trying to extract frames from a gif with ffmpeg then use Pillow to resize it. I know you can extract...

Add API endpoint to invoke AWS Lambda function running docker

Im using Serverless Framework to deploy a Docker image running R to an AWS Lambda. service: r-lambda provider: name: aws region: eu-west-1 timeout: 60 environment: stage:...