Thursday, November 12, 2020

add jpg to pdf

Python stuff:

https://stackabuse.com/working-with-pdfs-in-python-adding-images-and-watermarks/


C# Stuff:

https://ironpdf.com/docs/questions/signing/


Delphi stuff:

https://github.com/synopse/SynPDF

https://synopse.info/forum/viewtopic.php?pid=370

http://www.trichview.com/forums/viewtopic.php?t=7304

https://awesomeopensource.com/project/synopse/SynPDF


procedure TForm5.Button1Click(Sender: TObject);

var
lPdf : TPdfDocument;
lPage : TPdfPage;
begin
lPdf := TPdfDocument.Create;
try
lPdf.Info.Author := 'Tester';
lPdf.Info.CreationDate := Now;
lPdf.Info.Creator := 'Tester';
lPdf.DefaultPaperSize := psA4;
lPage := lPDF.AddPage;
lPDF.Canvas.SetFont('Helvetica',10.0,[]);
lPDF.Canvas.SetLeading(lPDF.Canvas.Page.FontSize);
lPDF.Canvas.SetLineWidth(0.1);
lPdf.Canvas.BeginText;
lPdf.Canvas.TextOut( 300, 700, 'This is some text.');
lPdf.Canvas.EndText;
lPdf.SaveToFile('c:\temp\test.pdf');
finally
lPdf.Free;
end;
end;

Conclusion - the best choice:




# To extract pages 1-3, 5 and 6-10 from a PDF file and save them as another one:
qpdf --empty --pages <input.pdf> <1-3,5,6-10> -- <output.pdf>
 
# To merge (concatenate) all the pages of a list of PDF files and save the result as a new PDF:
qpdf --empty --pages <file1.pdf> <file2.pdf> <file3.pdf> -- <output.pdf>
 
# To merge (concatenate) given pages from a list of PDF files and save the result as a new PDF:
qpdf --empty --pages <file1.pdf> <1,6-8> <file2.pdf> <3,4,5> -- <output.pdf>
 
# To write each group of n pages to a separate output file with a given filename pattern:
qpdf --split-pages=n <input.pdf> <out_%d.pdf>
 
# To rotate certain pages of a pdf with a given angle:
qpdf --rotate=<90:2,4,6> --rotate=<180:7-8> <input.pdf> <output.pdf>
 
# To remove the password from a password protected file:
qpdf --password=<password> --decrypt <input.pdf> <output.pdf>




--------------

Extract pages 1-3, 5 and 6-10 from a PDF file and save them as another one:
qpdf --empty --pages input.pdf 1-3,5,6-10 -- output.pdf
Merge (concatenate) all the pages of a list of PDF files and save the result as a new PDF:
qpdf --empty --pages file1.pdf file2.pdf file3.pdf -- output.pdf
Merge (concatenate) given pages from a list of PDF files and save the result as a new PDF:
qpdf --empty --pages file1.pdf 1,6-8 file2.pdf 3,4,5 -- output.pdf
Write each group of n pages to a separate output file with a given filename pattern:
qpdf --split-pages=n input.pdf out_%d.pdf
Rotate certain pages of a pdf with a given angle:
qpdf --rotate=90:2,4,6 --rotate=180:7-8 input.pdf output.pdf
Remove the password from a password protected file:
qpdf --password=password --decrypt input.pdf output.pdf

Delphi:


C#:





Tuesday, November 10, 2020

form editor c#

 https://docs.microsoft.com/it-it/dotnet/desktop/winforms/how-to-simulate-mouse-and-keyboard-events-in-code?view=netframeworkdesktop-4.8

https://ironmansoftware.com/building-a-windows-form-app-with-powershell-in-vs-code/





ili još zdravija i ukusnija varijanta:


Recept

U prazan zagrejan tiganj ubaciti nasečene šampinjone, svakog minuta ih promešati tako da svaki od njih svakom stranom dotakne dno tiganja. Peći bez vode i ikakvih dodataka oko 3 minuta, zatim dodati seckan crni luk, crvenu papriku, seckan beli luk i dinstati još 3 minuta. Zatim sipati jogurt i prstohvat origana, promešati još 1 minut. Možete na kraju dodati ocedjene sardine iz konzerve ili tunjevinu i usitniti ih pri mešanju u tiganju, obavezno pobiberiti, a alevu papriku možete dodati po ukusu na vrh kašičice.
Ovo jelo jedite bez hleba, krompira i ikakvih ugljenih hidrata, ulje, puter, masnoća nije potrebna.
Možete jelo služiti uz neku salatu od krastavaca i paradajza.


http://poincare.matf.bg.ac.rs/~jgraovac/courses/projbp/2016_2017/projbp_skripta.pdf

https://lickeys.ru/bs/brauzery/vychislitelnye-sistemy-s-obshchei-pamyatyu-pamyat-vychislitelnyh-sistem/

https://www.project-benefit.eu/eplatform/?courses=36&download=Softver%20TK%20sistema.pdf

http://www.scl.rs/pics/files/News/20080625-meteo/SEEGRIDSCI-NA3-RS-013-Parallel_Computing_Introduction-a-2008-06-24.ppt

http://predmet.singidunum.ac.rs/pluginfile.php/8543/mod_folder/content/0/0b%20Klaud%20i%20distribuirano%20ra%C4%8Dunarstvo.pdf?forcedownload=1

https://singipedia.singidunum.ac.rs/preuzmi/42921-informatika/3495

http://eprints.rclis.org/14122/1/prirucnik-linux-audio-aplikacije.pdf

http://www.vps.ns.ac.rs/Materijal/mat3799.pdf







Friday, November 6, 2020

America

 








#include <SQLite.au3>
#include <SQLite.dll.au3>

Local $aResult, $iRows, $iColumns, $iRval

_SQLite_Startup()
If @error Then
    MsgBox(16, "SQLite Error", "SQLite.dll Can't be Loaded!")
    Exit -1
EndIf
ConsoleWrite("_SQLite_LibVersion=" & _SQLite_LibVersion() & @CRLF)
_SQLite_Open() ; Open a :memory: database
If @error Then
    MsgBox(16, "SQLite Error", "Can't Load Database!")
    Exit -1
EndIf

;Example Table
;   ID  | Name   | Age
;   -----------------------
;    1     Alice  | 43
;    2     Bob    | 28
;    3     Cindy  | 21

If Not _SQLite_Exec(-1, "CREATE TEMP TABLE persons (ID,Name, Age);") = $SQLITE_OK Then _
        MsgBox(16, "SQLite Error", _SQLite_ErrMsg())
If Not _SQLite_Exec(-1, "INSERT INTO persons VALUES (1,'Alice','43');") = $SQLITE_OK Then _
        MsgBox(16, "SQLite Error", _SQLite_ErrMsg())
If Not _SQLite_Exec(-1, "INSERT INTO persons VALUES (2,'Bob','28');") = $SQLITE_OK Then _
        MsgBox(16, "SQLite Error", _SQLite_ErrMsg())
If Not _SQLite_Exec(-1, "INSERT INTO persons VALUES (3,'Cindy','21');") = $SQLITE_OK Then _
        MsgBox(16, "SQLite Error", _SQLite_ErrMsg())

; Query
$iRval = _SQLite_GetTable2d(-1, "SELECT * FROM persons;", $aResult, $iRows, $iColumns)
If $iRval = $SQLITE_OK Then
    _SQLite_Display2DResult($aResult)

;~    $aResult looks like this:
;~
;~  ID Name   Age
;~  1 Alice  43
;~  2 Bob    28
;~  3 Cindy  21
;~
;~    If the dimensions would be switched in _SQLite_GetTable2d the result would look like this:
;~
;~   Name  Alice  Bob  Cindy
;~   Age   43     28   21

Else
    MsgBox(16, "SQLite Error: " & $iRval, _SQLite_ErrMsg())
EndIf

_SQLite_Close()
_SQLite_Shutdown()
; SQLite.dll version must match

#include <MsgBoxConstants.au3>
#include <SQLite.au3>
#include <SQLite.dll.au3>

Local $sSQliteDll = _SQLite_Startup()

If @error Then
	MsgBox($MB_SYSTEMMODAL, "SQLite Error", "SQLite3.dll Can't be Loaded!" & @CRLF & @CRLF & _
			"Not FOUND in @SystemDir, @WindowsDir, @ScriptDir, @WorkingDir, @LocalAppDataDir\AutoIt v3\SQLite")
	Exit -1
EndIf

MsgBox($MB_SYSTEMMODAL, "SQLite3.dll Loaded", $sSQliteDll & " (" & _SQLite_LibVersion() & ")")
ConsoleWrite("_SQLite_LibVersion=" & _SQLite_LibVersion() & @CRLF)
_SQLite_Shutdown()


FTP SERVER

 http://smallftpd.sourceforge.net/

https://labs.rebex.net/tiny-sftp-server

https://filezilla-project.org/

http://www.pablosoftwaresolutions.com/html/baby_ftp_server.html

http://stahlworks.com/dev/swiss-file-knife.html

sfk172.exe ftpserv -rw


https://www.instructables.com/Heatless-cold-Toner-Transfer-for-PCB-Making/




++

Ova snažna mješavina posebno je efikasna za snižavanje holesterola i visokog krvnog pritiska.

Sastojci

– 1 ribani češnjak
– 1 kašika soka od limuna
– 1 komad naribanog đumbira
– 1 kašika jabučnog octa
– 1 kašika organskog meda
Priprema

Priprema je vrlo jednostavna – samo pomiješati sve sastojke i staviti smjesu u frižider na 5 dana.

Kako se koristi:

Nakon pet dana, uzmite smjesu prije doručka i večere, ali nikad više od tri puta dnevno. U samo sedam dana, osjetit ćete rezultate – napravite test krvi i vidjet ćete da je vaša razina holesterola niska. Vaš krvni pritisak također će se normalizirati.

 

Thursday, November 5, 2020

Java GUI editors

 https://www.javatpoint.com/java-swing

http://guigenie.com/


V language:

https://vlang.io/


Odmah uvedite radikalne promene u jelovnik, a ne postepene. Zaboravite na šećer i ugljene hidrate. Jedite sveže povrće, ali ne i krompir. Jedite malo voća (bobičasto najviše), orašaste plodove i semenke, posno meso, domaća jaja i maslinovo ulje. Faza traje dve nedelje.

Doručak: kajgana od dva jajeta sa crnim lukom, paprikama, keljom, povrćem i zelenim čajem.

Ručak: Garden salata i jabuka.

Užina: humus sa celerom ili šaka orašastih plodova.

Večera: Grilovano belo meso sa brokolijem na pari, sa paprikom i salatom od svežeg povrća.


ELM LANGUAGE COMPILER

https://github.com/elm/compiler





Font settings in Thunderbird are a little tricky

 Font settings in Thunderbird are a little tricky. These settings work for me.

 


1) main menu bar

  View > Character Encoding > Auto-Detect > set to "Universal"

2) View > Message Body as > set to "plain text"

3) Tools > Options > Display > Formatting > set preferred default fonts and sizes

4) Tools > Options > Display > Formatting > Advanced

a) Western Page

set fonts and sizes as desired

tick "Allow messages to use other fonts"

tick "Use fixed width font for plain text messages"

Outgoing Mail UTF-8

	   Incoming Mail UTF-8

untick "When possible use the default character encoding in replies"

b) On "Fonts For" drop-down menu repeat the procedure for Unicode and Central European.

c) On "Fonts For" drop-down menu select "User Defined" and repeat the procedure.

This will cover most messages, but you may have to repeat this for any other character encodings that cause you problems. For example, messages in ISO 8859-7 will mean you have to change the "Greek" page too. If you don't know which character sets correspond to the Thunderbird pages they're all on Wikipedia and elsewhere.

5) Go to Tools > Options > Advanced > Config Editor

mailnews.force_charset_override false

6) Folder Properties

Default Character Encoding User Defined
Uncheck 'Apply default to all messages'.

Tuesday, November 3, 2020

Vienna

Java...

 http://guigenie.com/

Hardware...
https://www.crowdsupply.com/rcc-productions/galaksija


Hosting SSL...


Dualboot W/L...


Lazarus-ide:



Odmah uvedite radikalne promene u jelovnik, a ne postepene. Zaboravite na šećer i ugljene hidrate. Jedite sveže povrće, ali ne i krompir. Jedite malo voća (bobičasto najviše), orašaste plodove i semenke, posno meso, domaća jaja i maslinovo ulje. Faza traje dve nedelje.

Doručak: kajgana od dva jajeta sa crnim lukom, paprikama, keljom, povrćem i zelenim čajem.

Ručak: Garden salata i jabuka.

Užina: humus sa celerom ili šaka orašastih plodova.

Večera: Grilovano belo meso sa brokolijem na pari, sa paprikom i salatom od svežeg povrća.

Sunday, November 1, 2020

Remote Learning

The most important CMD command from safe mode:

 bootrec.exe /fixmbr

Martial arts

https://endlessos.com/thank-you/



http://knjigovodstvo.eu5.org/xxpregled.php

https://html5-editor.net/

https://emscripten.org/docs/api_reference/html5.h.html

https://code.org/learn

https://www.codecademy.com/

https://www.khanacademy.org/computing/computer-programming

https://www.codewars.com/

https://www.coursera.org/

https://www.udemy.com/

https://www.freecodecamp.org/

https://www.edx.org/

https://www.codeconquest.com/

https://ocw.mit.edu/index.htm

https://dash.generalassemb.ly/

https://www.udacity.com/

https://developer.android.com/guide

https://thecodeplayer.com/

https://www.pluralsight.com/codeschool

https://www.theodinproject.com/

https://www.html5rocks.com/en/

https://alistapart.com/

https://www.sitepoint.com/

https://tutsplus.com/

https://www.afterhoursprogramming.com/

https://codeasy.net/

https://www.codeavengers.com/


MORE TIPS ABOUT PHP:


//cistac gluposti na unosu
if (get_magic_quotes_gpc()) {
function undoMagicQuotes($array, $topLevel=true) {
$newArray = array();
foreach($array as $key => $value) {
if (!$topLevel) {
$key = stripslashes($key);
}
if (is_array($value)) {
$newArray[$key] = undoMagicQuotes($value, false);
}
else {
$newArray[$key] = stripslashes($value);
}
}
return $newArray;
}

$_GET = undoMagicQuotes($_GET);
$_POST = undoMagicQuotes($_POST);
$_COOKIE = undoMagicQuotes($_COOKIE);
$_REQUEST = undoMagicQuotes($_REQUEST);
}


//vremenski potpis
date_default_timezone_set('Europe/Belgrade');

$vreme = date("d.m.Y H:i:s");
$srv = $_SERVER['REMOTE_ADDR'];
$srv = trim($srv);
$potpis_vreme_server = $vreme."@".$srv;