In this post we will show you a simple way how to play HLS into web browser with JW PLayer – the free version. Even on JW Player website is saying you need the Premium version for HLS, we found it is working also with the free version together with HLSprovider plugin. We assume the… Continue reading How to play HLS with JWPlayer
Category: Programming
How to do VoD with nginx
You can read my last post on LeaseWeb Labs – Streaming Video on Demand with nginx and RTMP Module
Web server in one line of bash
If you want to quickly save a file through http but you don’t want to install a web server, you can just use netcat. You can run: [code language=”bash”] while true; do { echo -e ‘HTTP/1.1 200 OK\r\n’; cat index.html; } | nc -l 8080; done [/code] index.html can be any file you want to… Continue reading Web server in one line of bash
Install MySQLdb for Python 2.x
If you want to install MySQLdb for Python 2.x, without using the package manager of your Linux distro (Ubuntu in our case), you can do it through pip like this: First you must to have installed libmysqlclient-dev (and, of course pip) [source language=”bash”] sudo apt-get install libmysqlclient-dev [/source] After that execute this two commands: [source… Continue reading Install MySQLdb for Python 2.x
Load bundle without composer.json in Symfony2.3
This is how I loaded a legacy budle without composer.json in a custom location for my Symfony2.3 project with composer. In one of my Symfony2.3 projects I needed to use an old external bundle. This legacy bundle (from Symfony2.0) hasn’t a composer.json file and in my case I can not add one. Anyway, I wanted… Continue reading Load bundle without composer.json in Symfony2.3
Tip: List vs. Set in Python
In Python, if you have a “list” with a lot of members and you need to do many membership checks, it will be better to use a “set” instead, because the checks are linear for lists and constant for sets.