Create function
create or replace function bytea_import(p_path text, p_result out bytea)
language plpgsql as $$
declare
l_oid oid;
r record;
begin
p_result := '';
sudo yum install -y autoconf aclocal automake | |
sudo yum install -y libtool | |
sudo yum install -y libjpeg-devel libpng-devel libtiff-devel zlib-devel | |
cd ~/downloads | |
wget http://www.leptonica.com/source/leptonica-1.72.tar.gz | |
tar -zxvf leptonica-1.72.tar.gz | |
cd leptonica-1.72 | |
./configure | |
make | |
sudo make install |
<?php | |
function execInBackground($cmd) { | |
if (substr(php_uname(), 0, 7) == "Windows"){ | |
pclose(popen("start /B ". $cmd, "r")); | |
} | |
else { | |
exec($cmd . " > /dev/null &"); | |
} | |
} |
<?php | |
$parameters = [ | |
'proxy_host' => "127.0.0.1", | |
'proxy_port' => 8888, | |
'stream_context' => stream_context_create( | |
array( | |
'ssl' => array( | |
'verify_peer' => false, | |
'verify_peer_name' => false, |
RUN apt update
RUN apt upgrade -y
RUN apt install -y apt-utils
RUN a2enmod rewrite
RUN apt install -y libmcrypt-dev
RUN apt install -y libicu-dev
RUN docker-php-ext-install -j$(nproc) intl
RUN apt-get install -y libfreetype6-dev libjpeg62-turbo-dev libpng12-dev
RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/
StiReport report1 = new StiReport(); | |
report1.RegData(dataSet1); | |
report1.Load("SimpleList.mrt"); | |
report1.ReportDescription = "Demostracion de lista de clientes"; | |
// Export PDF | |
report1.Render(false); | |
report1.ExportDocument(StiExportFormat.Pdf, "my.pdf"); | |
Process.Start("my.pdf"); |
using System; | |
using ImageMagick; | |
using System.IO; | |
namespace coreImagick | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ |
using Saxon.Api;
var xslt = new FileInfo(@"C:\path\to\stylesheet.xslt");
var input = new FileInfo(@"C:\path\to\data.xml");
var output = new FileInfo(@"C:\path\to\result.xml");
// Compile stylesheet
var processor = new Processor();