beogradsko programiranje
Tuesday, May 16, 2017
Monday, May 15, 2017
Sunday, May 14, 2017
Kako da se zaštitite od svetske malver napasti
Prvo morate da skinete zakrpu sa Microsoft sajta (za odgovarajući operativni sistem):
http://www.catalog.update.microsoft.com/search.aspx?q=4012598
WannaCry cyber attack je zasnovan u svojoj suštini na kodu za EternalBlue NSA exploit.
Ovi napadi će se sve više dešavati, tako da niko nije siguran. Saveti da ne otvarate nepoznatu elektronsku poštu su neozbiljni, jer vektor napada može ići i preko POPUP reklama u većini modernih internet pregledača.
Nemojte otvarati nepoznate priloge u elektronskoj pošti i linkove u njoj ili na socijanim mrežama, ali se pazite i reklama dok čitate omiljene on-line vesti.
Nemojte preuzimati besplatne korisne programe na koje ste navikli, recimo uTorrent, CutePDF i neke varijante VLC Player-a koji se nalaze na drugim download sajtovima. Većina download sajtova je kompromitovana "napakovanim" verzijama osnovnog download-a Vašeg omiljenog freeware-a.
Ukoliko baš morate omiljene freeware aplikacije skidajte direktno sa sajta autora, sa sourceforge ili git-a.
Nažalost ni najbolji antivirusi poput Kasperskog vam neće biti od pomoći, jedino Vam može pomoći MalwareBytes. Takva je situacija trenutno. Bolje poslušajte, jer nije pametno na svojoj koži isprobavati verujte mi.
Veoma mi je dobro poznato ponašanje prosečnih korisnika i zaposlenih na internetu i zato je potrebno da se ozbiljno zabrinete, jer morate biti veoma - veoma pažljivi. Posledice mogu biti fatalne i nenadoknadive, ukoliko izložite svoje računare rizičnim ponašanjem na internetu.
Evo šta Vam se može desiti:
https://www.theguardian.com/society/live/2017/may/12/england-hospitals-cyber-attack-nhs-live-updates
http://www.catalog.update.microsoft.com/search.aspx?q=4012598
WannaCry cyber attack je zasnovan u svojoj suštini na kodu za EternalBlue NSA exploit.
Ovi napadi će se sve više dešavati, tako da niko nije siguran. Saveti da ne otvarate nepoznatu elektronsku poštu su neozbiljni, jer vektor napada može ići i preko POPUP reklama u većini modernih internet pregledača.
Nemojte otvarati nepoznate priloge u elektronskoj pošti i linkove u njoj ili na socijanim mrežama, ali se pazite i reklama dok čitate omiljene on-line vesti.
Nemojte preuzimati besplatne korisne programe na koje ste navikli, recimo uTorrent, CutePDF i neke varijante VLC Player-a koji se nalaze na drugim download sajtovima. Većina download sajtova je kompromitovana "napakovanim" verzijama osnovnog download-a Vašeg omiljenog freeware-a.
Ukoliko baš morate omiljene freeware aplikacije skidajte direktno sa sajta autora, sa sourceforge ili git-a.
Nažalost ni najbolji antivirusi poput Kasperskog vam neće biti od pomoći, jedino Vam može pomoći MalwareBytes. Takva je situacija trenutno. Bolje poslušajte, jer nije pametno na svojoj koži isprobavati verujte mi.
Veoma mi je dobro poznato ponašanje prosečnih korisnika i zaposlenih na internetu i zato je potrebno da se ozbiljno zabrinete, jer morate biti veoma - veoma pažljivi. Posledice mogu biti fatalne i nenadoknadive, ukoliko izložite svoje računare rizičnim ponašanjem na internetu.
Evo šta Vam se može desiti:
https://www.theguardian.com/society/live/2017/may/12/england-hospitals-cyber-attack-nhs-live-updates
Friday, May 12, 2017
Wednesday, May 10, 2017
Kontni plan za budzetske korisnike
http://www.trezor.gov.rs/uploads/news/3_443_Prilog%202-1%20-%20Kontni%20plan.pdf
http://www.trezor.gov.rs/Pravilnik-o-standardnom-klasifikacionom-okviru-i-kontnom-planu-za-budzetski-sistem-cir.html
http://www.trezor.gov.rs/uploads/news/3_443_Prilog%201-1.pdf
http://www.trezor.gov.rs/uploads/news/3_443_Pravilnik%20o%20standardnom%20klasifikacionom%20okviru%20i%20kontnom%20planu%20za%20budzetski%20sistem%202016-1.pdf
http://www.mfin.gov.rs/download/pdf/podzakonski_akti/pravilnici/Pravilnik%20o%20standardnom%20klasifikacionom%20okviru%20i%20kontnom%20planu%20za%20budzetski%20sistem.pdf
http://www.trezor.gov.rs/Pravilnik-o-standardnom-klasifikacionom-okviru-i-kontnom-planu-za-budzetski-sistem-cir.html
http://www.trezor.gov.rs/uploads/news/3_443_Prilog%201-1.pdf
http://www.trezor.gov.rs/uploads/news/3_443_Pravilnik%20o%20standardnom%20klasifikacionom%20okviru%20i%20kontnom%20planu%20za%20budzetski%20sistem%202016-1.pdf
http://www.mfin.gov.rs/download/pdf/podzakonski_akti/pravilnici/Pravilnik%20o%20standardnom%20klasifikacionom%20okviru%20i%20kontnom%20planu%20za%20budzetski%20sistem.pdf
Tuesday, May 9, 2017
Lazarus String To Hex and vice versa
function StringToHex(S: String): string;
function HexToString(H: String): String;
function StringToHex(S: String): string;
var I: Integer;
begin
Result:= '';
for I := 1 to length (S) do
Result:= Result+IntToHex(ord(S[i]),2);
end;
function HexToString(H: String): String;
var I: Integer;
begin
Result:= '';
for I := 1 to length (H) div 2 do
Result:= Result+Char(StrToInt('$'+Copy(H,(I-1)*2+1,2)));
end;
function HexToString(H: String): String;
function StringToHex(S: String): string;
var I: Integer;
begin
Result:= '';
for I := 1 to length (S) do
Result:= Result+IntToHex(ord(S[i]),2);
end;
function HexToString(H: String): String;
var I: Integer;
begin
Result:= '';
for I := 1 to length (H) div 2 do
Result:= Result+Char(StrToInt('$'+Copy(H,(I-1)*2+1,2)));
end;
procedure TForm1.Button6Click(Sender: TObject);
var a,b: string;
begin
a := Edit1.Text;
b := StringToHex(a);
Edit2.Text := b;
end;
procedure TForm1.Button7Click(Sender: TObject);
var a,b: string;
begin
a := Edit1.Text;
b := HexToString(a);
Edit2.Text := b;
end;
Java for ever
http://introcs.cs.princeton.edu/java/10elements/
http://www.oracle.com/technetwork/java/index-138747.html
https://en.wikipedia.org/wiki/Java_(programming_language)
https://www.coursera.org/specializations/java-programming
https://www.codecademy.com/learn/learn-java
https://www.ibm.com/developerworks/java/tutorials/j-introtojava1/
https://en.wikibooks.org/wiki/Java_Programming
http://courses.caveofprogramming.com/p/java-for-complete-beginners
https://www.java.com/en/download/faq/develop.xml
http://www.oracle.com/technetwork/java/index-138747.html
https://en.wikipedia.org/wiki/Java_(programming_language)
https://www.coursera.org/specializations/java-programming
https://www.codecademy.com/learn/learn-java
https://www.ibm.com/developerworks/java/tutorials/j-introtojava1/
https://en.wikibooks.org/wiki/Java_Programming
http://courses.caveofprogramming.com/p/java-for-complete-beginners
https://www.java.com/en/download/faq/develop.xml
Monday, May 8, 2017
Wednesday, May 3, 2017
Khan Academy, Coursera ili MIT OpenCourseWare ?
Khan Academy, Coursera ili MIT OpenCourseWare ?
Šta ti misliš ?
https://ocw.mit.edu/courses/new-courses/
Šta ti misliš ?
https://ocw.mit.edu/courses/new-courses/
CENTOS important commands
momount /dev/cdrom ---> usually you use /mnt/cdrom (create it (use mkdir)if does not exist)
then cp /mnt/cdrom/
cp -r /home/server/folder/test/* /home/server/
$ cp -avr /tmp/conf/ /tmp/backup
$ cp -avr /mnt/cd/ /var/www/html
-a : Preserve the specified attributes such as directory an file mode, ownership, timestamps, if possible additional attributes: context, links, xattr, all.
-v : Explain what is being done.
-r : Copy directories recursively.
=============================================
mkdir -p /mnt/cdrom
mount /dev/cdrom /mnt/cdrom
=========================================
phpinfo.php in /var/www/html/
=========================================
rm -rf httpd-2.0.48
rm -rf "dir name"
=========================================
+++++++++++++++++++++++++++++
USB...
mount /dev/sdb1 /mnt
umount /mnt
sync
And then remove the USB drive.
++++++++++++++++++++
mkdir -p /media/USB
ls /dev/sd (then hit tab)
You should see something like this:
sda sda1 sda2
Next, insert your USB flash drive into the CentOS 7 machine. Type ls /dev/sd (then hit tab). You should see a new sdb and sdb1.
mount -t vfat /dev/sdb1 /media/USB
cp nfs-utils-1.3.0-0.21.el7_2.x86_64.rpm /media/USB/
umount /media/USB
You can now safely eject the USB flash drive from the CentOS 7 machine.
++++++++++++++++++++++++++
NTFS:
yum install epel-release
yum install ntfs-3g
mkdir /mnt/win
mount -t ntfs-3g /dev/sdb1 /mnt/win
umount /mnt/win
**************************
To mount the NTFS partition permanently, add the following line to the /etc/fstab file.
nano /etc/fstab
And add the line:
/dev/sdb1 /mnt/win ntfs-3g defaults 0 0
Again, replace /dev/sdb1 with the device name that matches your setup. Now your Linux system will mount the NTFS drive automatically at boot time.
***************************
CD...
Mount DVD on CentOS
Mount DVD on CentOS
need to mount CD/DVD on CentOS Temporarily or Permanently? Here’s the Process Us Linux Pro’s Follow:
Login to a terminal window as root
from here to ls /dev
as you can see, there’s alot of stuff here (usually it’s /dvd or /sr0) but how can we be sure?
issue the following two commands to find out what Linux Thinks is the CD/DVD ROM:
ls /dev -l | grep dvd
ls /dev -l | grep cd
Linux seems pretty confident that it’s /dev/sr0 (does windows know how to do that?) Your situation may provide different output, use that.
alright, so at this point, we are talking about the following device: /dev/sr0 (always use the full path)
let’s make a directory to mount it to:
mkdir /mnt/DVD
from here, all we have to do is mount the device
to do a temporary mount (one time only until reboot) issue the following Command:
to do a permanent boot, edit /etc/fstab
Like a good Linux Admin, use the # sign, and put a comment in
from here /dev/sr0 will be mounted to /mnt/DVD the filesystem type and filesystem defaults
Save and quit
issue the almighty Linux Command that Re-Mounts ALL FILESYSTEMS
you should get a notice that it will mount as read-only, that means it mounted, and we can read from it, perfect!
ls /mnt/DVD
as you can see this is an integration services DVD mounted on this CentOS Linux Box.
That’s it!
To Get a Hosted CentOS Linux Server visit www.zwiegnet.comcd/go to get started today!
then cp /mnt/cdrom/
cp -r /home/server/folder/test/* /home/server/
$ cp -avr /tmp/conf/ /tmp/backup
$ cp -avr /mnt/cd/ /var/www/html
-a : Preserve the specified attributes such as directory an file mode, ownership, timestamps, if possible additional attributes: context, links, xattr, all.
-v : Explain what is being done.
-r : Copy directories recursively.
=============================================
mkdir -p /mnt/cdrom
mount /dev/cdrom /mnt/cdrom
=========================================
phpinfo.php in /var/www/html/
=========================================
rm -rf httpd-2.0.48
rm -rf "dir name"
=========================================
+++++++++++++++++++++++++++++
USB...
mount /dev/sdb1 /mnt
umount /mnt
sync
And then remove the USB drive.
++++++++++++++++++++
mkdir -p /media/USB
ls /dev/sd (then hit tab)
You should see something like this:
sda sda1 sda2
Next, insert your USB flash drive into the CentOS 7 machine. Type ls /dev/sd (then hit tab). You should see a new sdb and sdb1.
mount -t vfat /dev/sdb1 /media/USB
cp nfs-utils-1.3.0-0.21.el7_2.x86_64.rpm /media/USB/
umount /media/USB
You can now safely eject the USB flash drive from the CentOS 7 machine.
++++++++++++++++++++++++++
NTFS:
yum install epel-release
yum install ntfs-3g
mkdir /mnt/win
mount -t ntfs-3g /dev/sdb1 /mnt/win
umount /mnt/win
**************************
To mount the NTFS partition permanently, add the following line to the /etc/fstab file.
nano /etc/fstab
And add the line:
/dev/sdb1 /mnt/win ntfs-3g defaults 0 0
Again, replace /dev/sdb1 with the device name that matches your setup. Now your Linux system will mount the NTFS drive automatically at boot time.
***************************
CD...
Mount DVD on CentOS
Mount DVD on CentOS
need to mount CD/DVD on CentOS Temporarily or Permanently? Here’s the Process Us Linux Pro’s Follow:
Login to a terminal window as root
from here to ls /dev
as you can see, there’s alot of stuff here (usually it’s /dvd or /sr0) but how can we be sure?
issue the following two commands to find out what Linux Thinks is the CD/DVD ROM:
ls /dev -l | grep dvd
ls /dev -l | grep cd
Linux seems pretty confident that it’s /dev/sr0 (does windows know how to do that?) Your situation may provide different output, use that.
alright, so at this point, we are talking about the following device: /dev/sr0 (always use the full path)
let’s make a directory to mount it to:
mkdir /mnt/DVD
from here, all we have to do is mount the device
to do a temporary mount (one time only until reboot) issue the following Command:
to do a permanent boot, edit /etc/fstab
Like a good Linux Admin, use the # sign, and put a comment in
from here /dev/sr0 will be mounted to /mnt/DVD the filesystem type and filesystem defaults
Save and quit
issue the almighty Linux Command that Re-Mounts ALL FILESYSTEMS
you should get a notice that it will mount as read-only, that means it mounted, and we can read from it, perfect!
ls /mnt/DVD
as you can see this is an integration services DVD mounted on this CentOS Linux Box.
That’s it!
To Get a Hosted CentOS Linux Server visit www.zwiegnet.comcd/go to get started today!
Subscribe to:
Posts (Atom)