Sarajevo, Bosnia and Herzegovina

Category Archives: Technology

Posts related to my job or interests

New article pre-published in “Quantum Information Processing” journal

Implementation of quantum key distribution network simulation module in the network simulator NS-3 Authors Miralem Mehic, Department of Telecommunications, VSB-Technical University of Ostrava, Ostrava-Poruba, Czech Republic Oliver Maurhart, Digital Safety and Security Department, AIT Austrian Institute of Technology GmbH, Vienna, Austria Stefan Rass, Universitaet Klagenfurt, Institute of Applied Informatics, System Security Group, Klagenfurt, Austria Miroslav Voznak, Department of Telecommunications, VSB-Technical University of Ostrava, Ostrava-Poruba, Czech Republic Abstract As the research in quantum key distribution […]

Read more

Monitor live MySQL queries

Log to your mysql with mysql -u username -pPassword and execute: mysql> SHOW VARIABLES LIKE “general_log%”; +——————+—————————-+ | Variable_name | Value | +——————+—————————-+ | general_log | OFF | | general_log_file | /var/run/mysqld/mysqld.log | +——————+—————————-+ mysql> SET GLOBAL general_log = ‘ON’; Then in another terminal execute tail -f -n300 /var/run/mysqld/mysqld.log Then don’t forget to disable general_log […]

Categories: Web
Read more

Clearing Linux disk cache

For experimentation, it’s very convenient to be able to drop the disk cache. For this, we can use the special file /proc/sys/vm/drop_caches. By writing 3 to it, we can clear most of the disk cache: $ free -m total used free shared buffers cached Mem: 1504 1471 33 0 36 801 -/+ buffers/cache: 633 871 […]

Read more

Socket::SetIpTos in NS-3 ver.3.26

One of the changes between ns-3 ver 3.25 and ver 3.26 is that now it is possible to set TOS value to the address. Yes, you read it right, TOS value to the address. Official Doxygen states following: The native sockets API for ns-3 provides two public methods (of the Socket base class): void […]

Read more