Install dependencies:
sudo apt-get install build-essential
sudo apt-get install nasm
sudo apt-get install libx265-dev
sudo apt-get install libfdk-aac-dev
#include <iostream> | |
#include <string> | |
#include <cstring> | |
#include <cstdio> | |
#include <vector> | |
#include <cstdlib> | |
#include "ts.h" | |
#include "debug.h" | |
TransportStream::TransportStream() { |
Install dependencies:
sudo apt-get install build-essential
sudo apt-get install nasm
sudo apt-get install libx265-dev
sudo apt-get install libfdk-aac-dev
Suppose TS has the following program streams:
Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 30 fps, 30 tbr, 90k tbn, 60 tbc
Stream #0:1[0x200]: Audio: aac (LC) ([17][0][0][0] / 0x0011), 44100 Hz, stereo, fltp, 143 kb/s
Extract video from TS from stream #0:0:
ffmpeg -i x.ts -map 0:0 -vcodec copy x.mp4
Install NodeJS from https://nodejs.org/en/
Install nginx from https://nginx.org/en/download.html
Install ng:
npm install --save-dev @angular/cli@latest
npm install --save-dev @angular/compiler-cli@latest
import json | |
jsonStr = '[{"one" : "1", "two" : "2", "three" : "3"}]'; | |
print "Parsing json " + jsonStr | |
listData = json.loads(jsonStr) | |
print "Direct access:" |
Install Node and dependencies:
sudo dnf install nodejs
sudo dnf install npm
sudo npm install -g yo grunt-cli bower
sudo npm install -g generator-angular
<?php | |
echo 'Oracle connection test<br/>'; | |
$db = "(DESCRIPTION=(ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521)))(CONNECT_DATA=(SERVICE_NAME=orcl.olivum.local)))" ; | |
if ($connection = OCILogon("userweb", "passcode", $db)) { | |
echo "Successfully connected to Oracle.<br/>"; | |
} | |
else { | |
$err = OCIError(); |
Download Oracle from:
Access SQLPlus console:
Install dependencies:
sudo apt-get install gnustep
sudo apt-get install gnustep-make
sudo apt-get install gnustep-devel
Configure environment:
. /usr/share/GNUstep/Makefiles/GNUstep.sh