Logistic regression ( classification) in plain English
In logistic regression, we just assume the probability of x to be classified as 1 is : P( y = 1 | x ) = 1 / ( 1 +…
Bayes classifier in plain english
Bayes theorem: where A and B are events and P(B) ≠ 0. P(A) and P(B) are the probabilities of observing A and B without regard to each other. P(A | B), a…
Decision tree learning in plain english
Decision tree works just like computer language if. In AI/ML world, the problem is usually like this: Given training set with features [( f1,f2 ….), ….] and known category/label [c1,…
std::unique_lock vs std::lock_guard
The std::unique_lock class is a lot more flexible when dealing with mutex locks. It has the same interface as std::lock_guard but provides additional methods for explicitly locking and unlocking mutexes…
k-Nearest Neighbors in plain English
Here is how it works in plain English: we have training set ( known features ( normalized), and classification) : many data points: [ ( feature1,feature2,feature 3,…), ( f1,f2,f3 …),…
What is bro and how to install bro on debian 8
Bro, or sometimes referred to as Bro-IDS is a bit different than Snort and Suricata. In a way Bro is both a signature and anomaly-based IDS. Its analysis engine will…
How to see all network traffic in (KVM) VM
if your NIC ( eth0) of the KVM (VM) is on the host device br0,and you want to see all the network traffics, what you can do is: on the…
how to install/config Suricata on debian 8
suricata: on Debian 8 apt-get install suricata ( it is 2.0.7 version) vi /etc/default/suricata ( change RUN=yes, and adjust IFACE to the interface and listen mode to pcap) systemctl start…
Postgresql cheatsheat
Connecting to MySQL: mysql -u user_name -p Connecting to PostgreSQL: sudo -u postgres psql Description MySQL command PostgreSQL equivalent Show databases SHOW DATABASES; \l[ist] Use/Connect to a database named ‘some_database’ USE…
DTLS, DTLS-SRTP
DTLS: Basically DTLS is to construct TLS over datagram (UDP, DCCP, etc.) DTLS is similar to TLS intentionally except that DTLS has to solve two problems: packet lost and reordering.…