Thursday, April 28, 2022

pop3 check php



Potreban i dovoljan uslov: 

https://stackoverflow.com/questions/9654453/fatal-error-call-to-undefined-function-imap-open-in-php


Prvo koristimo:

https://www.php.net/manual/en/function.imap-body.php

da preuzmemo mejlove, a zatim naredbu za brisanje odredjenog mejla koji je sumnjiv, na primer ima nedozvoljeni tip fajla ili sadržaj:


imap_delete($mbox1);

https://www.tutorialspoint.com/php/php_functions_imap_delete.htm

https://www.php.net/manual/en/function.imap-delete.php



PRIMER:

<?php
$user = "miki@rubirosa.rs";
$pass = "RamboAmadeus";

$imap = imap_open("{mail.rubirosa.rs:995/pop3/ssl/novalidate-cert}", $user, $pass);

if( $imap ) {
   
     //Check no.of.msgs
     $num = imap_num_msg($imap);

for ($x = 1; $x <= $num-1; $x++) {
  echo "The number is: $x <br>";
  echo imap_qprint(imap_body($imap, $x));
  echo "<hr>";
}

//imap_delete($imap, 1); //Delete first msg


/*
     if( $num >0 ) {
          echo imap_qprint(imap_body($imap, $num));
     }
*/



     //close the stream
     imap_close($imap);
}
?>


Malo bolje:

<?php
$user = "info@rubirosa.rs";
$pass = "Milena123";

//$imap = imap_open("{mail.rubirosa.rs:995/pop3/ssl/novalidate-cert}", $user, $pass);
//$imap = imap_open("{mail.rubirosa.rs:995/pop3/ssl/novalidate-cert}INBOX", $user, $pass);

$imap = imap_open("{mail.rubirosa.rs:110/pop3/notls}", $user, $pass);


if( $imap ) {
   
     //Check no.of.msgs
     $num = imap_num_msg($imap);
     
$header = imap_header($imap, $x);
$from = $header->from;
foreach ($from as $id => $object) {
    $fromname = $object->personal;
    $fromaddress = $object->mailbox . "@" . $object->host;
}    
     
     

for ($x = 1; $x <= $num; $x++) {
  echo "The number is: $x <br>";
  echo imap_qprint(imap_body($imap, $x));
  echo "<hr>";
 
  $header = imap_header($imap, $x);
$from = $header->from;
foreach ($from as $id => $object) {
    $fromname = $object->personal;
    $fromaddress = $object->mailbox . "@" . $object->host;


echo $fromname . "<br>";
echo $fromaddress;


}


  //echo imap_qprint(imap_header($imap, $x));


  echo "<hr>";



}

//imap_delete($imap, 1);

/*
     if( $num >0 ) {
          echo imap_qprint(imap_body($imap, $num));
     }
*/



     //close the stream
     imap_close($imap);
}
?>

Gore navedeno su osnovne stvari koje su potrebne ako želite da napravite antispam online servis.

by:
https://vsc-rs.blogspot.com/2022/05/vscrs-programming-website.html


FREE VPN OF YOURS:



THE BRAND NEW KDE distro:


An independent RLXOS:


An Italian Linux for Academia:


++



Sunday, April 24, 2022

QR code in Google Sheet

 https://www.howtogeek.com/795025/how-to-make-a-qr-code-in-google-sheets/


https://www.howtogeek.com/255540/the-last-windows-7-iso-youll-ever-need-how-to-slipstream-the-convenience-rollup/


https://restic.net/


https://stackshare.io/stackups/d3-vs-plotly-js



++

EXCEL REPEAT FIRST ROW when print and list:

Use this feature if you would like a title row (or rows) to print at the top of every page of your data in Excel.

Note:
If you want column headings to remain at the top of your sheet when scrolling within a spreadsheet, you will need to freeze the top row.

  1. Click the [Page Layout] tab > In the "Page Setup" group, click [Print Titles].
  2. Under the [Sheet] tab, in the "Rows to repeat at top" field, click the spreadsheet icon.
  3. Click and select the row you wish to appear at the top of every page.
  4. Press the [Enter] key, then click [OK].
  5. Select File > Print > "Show Print Preview" to see what the printed spreadsheet will look like.

Note:
If the [Print Titles] button is locked (greyed out), it may be because you are currently editing a cell or you have chart selected. If the "Rows to repeat at top" spreadsheet icon is locked, it may be because you have more than one worksheet selected within your workbook. To unlock either button, you can also try clicking [File] > "Print" > "Page Setup."

Monday, April 18, 2022

Remember Screenter goodies

 ++

Freeware download:

THE NEW VERSION OF SCREENTER


Functions:

1) create capture rectangle with SHIFT + F2, move and resize that rectangle as you wish, after that just press SPACE key to make a screenshot in a range of that rectangle. The picture file will be saved in c:\, because of that you must start screenter.exe app as administrator (right click, Run As Administrator)

2) For the first time screenshot is temporary transparent

3) You can open group of selected JPG's like dropped postcards on the table

4) You can freely rearrange all opened photographs in "always on top" manner

Have you ever seen anything like this before?



https://www.codeproject.com/Articles/1265115/Cross-Platform-AES-256-GCM-Encryption-Decryption

https://cs50.harvard.edu/college/2022/spring/

https://cassandra.apache.org/_/cassandra-basics.html

https://hbase.apache.org/

https://hadoop.apache.org/

https://www.instructables.com/Overlapping-Segments-Rotary-Digital-Clock/

https://www.howtogeek.com/752684/how-to-create-a-data-entry-form-in-microsoft-excel/

https://www.codeproject.com/Articles/878605/Getting-All-Special-Folders-in-NET

https://nextjs.org/


Beli lenor i negro bonbone za bube na vocnjaku kao mamac za rutave bube.


https://redux.js.org/


https://fydeos.io/


++


Resources: Cracking The Coding Interview: https://amzn.to/3jIPzjD Elements of Programming Interviews in Python: https://amzn.to/37hBzuP CS50: https://www.youtube.com/watch?v=NZxAL... Compiler is always right: https://blog.mozilla.org/nfroyd/2014/... Minimum network flow: https://math.stackexchange.com/questi... Knapsack problem: https://medium.com/@fabianterh/how-to... Greedy scheduling: https://www.cs.umd.edu/class/fall2017... Interview preparation: https://leetcode.com/ Mock interviews: https://www.pramp.com/






Thursday, April 14, 2022

Freebsd is nice

pkg install -y nano

pkg install -y xorg

pkg install -y xfce

pkg install -y slim slim-themes

sysrc dbus_enable=yes

sysrc hald_enable=yes

sysrc slim_enable=yes

sysrc sound_load=yes

sysrc snd_hda_load=yes

nano /home/your-user/.xinitrc

exec startxfce4

pkg install -y xfce4-pulseaudio-plugin

pkg install -y firefox libreoffice gimp thunderbird vlc tree

reboot

pkg install editors/vscode

pkg install vscode



RAM usage in HTOP = 790 MB = freebsd + xfce + firefox +youtube


Veoma sam prijetno iznenadjen jednostavnošću instalacije freebsd operativnog sistema.
Veoma je brz u xfce grafičkom okruženju, koristi vrlo malo memorije u odnosu na gomilu Linux distribucija. FreeBDS je mnogo brži od Arch, Manjaro xfce, Endeavour xfce, NuTyX xfce, MX xfce, Xubuntu, Linux Lite is ostalih xfce distribucija.

Kao dugogodišnji distrohopper u Linuxu, probao sam skoro sve bitnije Linux distribucije, kao i OpenBSD. OpenBSD se ne može porediti po jednostavnosti instalacije sa FreeBSD, naime FreeBSD je mnogo bolji, potpuniji i jednostavniji za instalaciju.
Šta reći, a ne zaplakati od sreće.
Čak i čuveni i nezaobilazni Microsoft Visual Studio Code (vsc) radi bolje nego pod Linuxom.
Programeri, nemate razloga da ne predjete na FreeBSD xfce. macOSX korisnicima će FreeBSD biti prilično poznat.




su
gpart show
boot0cfg -B ada0

shutdown -r now

df

uname -a

Friday, April 8, 2022

Jelo za programera



1 kašičica kakao
1 kašičica laneno seme (mleveno)
1 kašičica čia semenke
1/2 kašičice cimet
2 kašike ovsene/ražene pahuljice
6-7 suve šljive (ili šolja svežeg voća)
300 ml mleko (pirinčano, sojino, obrano) ili jogurt

Lan, orasi, soja, chia semenke: najbolji biljni izvori omega 3 masnih kiselina.

Spisak namirnica koje su, pored čokolade, bogate magnezijumom (na 100g):

heljda 231mg
ovas 138mg
kinoa 197mg
spanać 79mg
leblebije 79mg
integralni hleb 75mg
crveno sočivo 59mg
piletina 28mg
škampi 35mg

++



++



++

Aplikacije otvarac i tragac, tragac je bolji od Windows Search opcije

Otvarač vam omogućuje da pratite istoriju svih otvorenih dokumenata i aplikacija koje vi želite.

Programer bez aplikacije Otvarač je kao muva bez glave, budite organizovani, ne dozvolite da nemate pojma šta ste ikada radili i gde se šta nalazi.

Tragač je najefikasnija pretraga datoteka po njihovim nazivima. Mnogo brža i efikasnija od Windows Search i Cortana aplikacija, čak je bolja i od Total Commander Search pretrage.

Sound keyboard for Windows 7-8-10-11

Screenter and JanuarPacker applications for Windows

Programer bez Screenter aplikacije je mnogo sporiji i manje produktivan, jer Scrinter ima tri najvažnije funkcije koje ni jedan drugi screenshot program nikada nije imao, a to je da pritiskom na kombinaciju Shift +F2, zatim pomeranjem pravougaonika i njegovim resizeom, a potom klikom na SPACE slika označeni pravougaoni deo ekrana koji ostaje uvek na vrhu medju otvorenim prozorima i transparentan je pa lako možete prekucavati sadržaje sa drugih non-copy-paste aplikacija. 

Druga osobina je da snima automatski sve screenshoot-ove na C:\ root putanju tako da ih lako možete posle otvoriti hronološkim redom, dodela naziva je automatska.

Pošto Screenter zahteva admin rights da snima u C:\ na Windowsima novijim od Windows XP, funkcija automatskog snimanja na C:\ funkcioniše samo ako ste aplikaciju Screenter.exe otvorili sa administratorskim pravima (to se postiže desnim klikom miša, pa Run As Administrator).

Treća osobina je da možete više fotografija ili screenshot-ova otvoriti odjednom kao da ste ih razbacali na ekranu i lako se prebacivati sa jedne na drugu, a sve stoje uvek iznad svih otvorenih prozora, always on top.

Masovna provera ispravnosti tekucih racuna

Ukoliko imate HALKOM ili neku drugu tekstualnu datoteku sa spiskom tekućih računa i želite znati koji su pogrešni, dobro došli u moj svet i moju aplikaciju. Idealno za sve knjigovodje, posebno one koji koriste Trezor.

Aplikaciju sam vremenski zaštitio, pa datum kompjutera privremeno vratite na 2014. godinu ako želite da se uverite koliko je moćna, ko želi aplikaciju bez ove zaštite neka me kontaktira za profi verziju (koja je identična, ali nema ovu datumsku zaštitu).

Organizuj se, Organizuj se, Organizuj se, Organize more:


STORMOS:


MORE USEFUL INFO:




Thursday, April 7, 2022

Alpine Linux Sound kao dobar izbor

setup-alpine

apk add nano doas

adduser vladimir

adduser vladimir wheel

nano /etc/doas.d/doas.conf

Add the following line and save the file  (ctrl+O, crl+X):

permit persist :wheel


apk update


setup-xorg-base

apk add elogind polkit-elogind

adduser root video
adduser root input
adduser root sound

adduser vladimir video
adduser vladimir input
adduser vladimir sound


apk add xfce4 xfce4-terminal xfce4-screensaver lightdm-gtk-greeter dbus

rc-service dbus start

rc-update add dbus

rc-update add udev

rc-service lightdm start

rc-update add lightdm

$ echo "exec startxfce4" >> ~/.xinitrc

startx

Alpine Linux Sound working if you try this:

Please do not install original thing from Alpine Linux Sound tutorial, instead try this...

Alpine Linux sound workaround (enough to install only two stuff):

https://docs.xfce.org/panel-plugins/xfce4-pulseaudio-plugin/start 

apk add xfce4-pulseaudio-plugin

apk add pavucontrol

apk add xfce4-xkb-plugin

reboot

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

Warning: just type su command for root access.

Initial password for root not exists, just press enter. There is no root password for the first time in Alpine Linux.

-------

nano /etc/lighdm/lightdm.conf

Add the following line and save the file (ctrl+O, crl+X):

default-user vladimir

-------



https://ratfactor.com/dwm

https://gist.github.com/erlendaakre/12eb90eef84a3ab81f7b531e516c9594


Alpine Linux installed in OracleVM take only 1,62 GB of HDD. (Complete xfce4 and Firefox)


Wellness:

Aditivi koje bi trebalo koristiti uz oprez

E 252 kalijum-nitrat

E 251 natrijum-nitrat

E 250 natrijum-nitrit

E 249 kalijum-nitrit

E 171 titan-dioksid

E 142 zelena S

E 129 alura-crvena 4C

E 124 ponso ar (košenila crvena A)

E 122 azorubin (karmoizin)

E 110 oranž-žuta S

E 104 hinolin-žuta

E 102 tartrazin


Bezbedni, neosnovano optuženi da su štetni

E 621 mononatrijum-glutaminat

E 300 vitamin C

E 330 limunska kiselina

E 210 benzojeva kiselina

E 322 lecitin


Vitamini kao aditivi

E 101 vitamin B2

E 160a provitamin A

E 300, E 301, E 302, E 304 vitamin C i njegovi derivati

E 306, E 307, E 308, E 309 vitamin E i njegovi derivati


Windows 10 Sound Keyboard Application



++