beogradsko programiranje
Friday, November 20, 2020
LM317T
Thursday, November 19, 2020
Difference between Node.js and React.js
http://www.kanotix.com/module-Downloads.html
SMALL COMPILERS:
https://github.com/unisolate/plzero
https://www.lua.org/source/5.3/
Difference between Node.js and React.js:
NODE.JS | REACT.JS |
---|---|
Node.js used as a back-end framework | React is used for developing user interfaces. |
It supports the Model–view–controller (MVC) framework. | Does not support the Model–view–controller (MVC) framework. |
It runs on chrome’s v8 engine and uses an event-driven, non-blocking I/O model, which is written in C++. | It uses Node.js to compile and optimize the JavaScript code and easy to create UI Test cases. |
Node.js handles requests and authentication from the browser, make database calls, etc. | It makes API calls and processes in-browser data. |
Here the Real-time data streaming is handled easily. | In React complex architecture makes it hard to keep track of the traditional approach. |
Framework for JavaScript execution having the largest ecosystem of open source libraries. | Facebook-backed Open Source JS library. |
The language used the only JavaScript. | The language used is JSX and JavaScript. |
There is no DOM (Document Object Model) concept that is Used. | Here the Virtual DOM (Document Object Model) is Used that makes it faster. |
++
IDS:
Free and open source IDS
- ACARM-ng
- AIDE
- Fail2ban
- OSSEC HIDS
- Prelude Hybrid IDS
- Sagan
- Samhain
- Snort, GPLv2+ developed by Cisco.
- Suricata
- Zeek
Tuesday, November 17, 2020
WWII
MORE TIPS:
https://swift.org/download/#releases
https://github.com/compnerd/swift-win32
1/2 kg belog pasulja,
4 kuvana jajeta,
200 g kačkavalja,
1 kašika seckanog peršuna,
3 struka od zelenog dela mladog luka,
2-3 čena belog luka,
1 kašičica mlevene paprike,
250 ml slatke pavlake,
2 kašike kisele pavlake,
3 jajeta,
so, biber.
PRIPREMA:
Pasulj skuvajte i izmiksajte. Ako nemate vremena, možete da koristite i pasulj iz konzerve. Dodajte mlevenu papriku, iseckan crni luk, ispresovan beli luk, peršun, so i biber. Sve dobro promešajte i izručite u vatrostalnu posudu podmazanu puterom. Masu od pasulja ravnomerno rasporedite, preko nanesite polovinu izrendanog kačkavalja, zatim kolutove tvrdo kuvanih jaja i ostali deo kačkavalja. Umutite pavlaku sa jajima, malo posolite i prelijte preko kačkavalja. Stavite da se zapeče na 200 stepeni oko 30 minuta. Isključite rernu, pokrijte folijom i ostavite da odstoji još oko 15 minuta. Služite vruće uz salatu po želji.
Friday, November 13, 2020
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);
varlPdf : 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;
Tuesday, November 10, 2020
form editor c#
https://ironmansoftware.com/building-a-windows-form-app-with-powershell-in-vs-code/
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
V language:
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'.