Extracting raw bytes from pcap file

If you have a pcap file, which is captured with tcpdump -w dump.pcap, and want to extract transport level protocol (TCP, UDP or other) bytes from each packet, task might not be as trivial as it seems. I ended up with the solution which uses tshark command line program, which is a part of Wireshark [...]

Binding Oracle nchar and nvarchar2 variables from PHP

PHP OCI8 extension does not support binding nchar/nvarchar2 variables as it always uses SQLCS_IMPLICIT for the character set form. With the help of UNISTR function, we can encode Unicode characters as ‘\xxxx’ where ‘xxxx’ is the hexadecimal value of a character in UCS-2 encoding format. UNISTR function returns a string in the national character set [...]