Author Archives: admin


born 1976, Falticeni , Suceava , Romania

Linux – netstat command .

This tutorial come to show you how to use the netstat command with linux operating system.
To list out all the connections tcp, udp & unix on a system, we can use ‘a’ option with netstat command:

To list only the tcp connections our system, use ‘t’ options with netstat:

To list out only the udp connections on our system, we can use ‘u’ option with netstat:

To only list out Unix socket connections, we can use ‘x’ options:

To get list of all connections along with PID or process name, we can use ‘p’ option & it can be used in combination with any other netstat option:

To speed up our output, we can use ‘n’ option as it will perform any reverse lookup & produce output with only numbers (since no lookup is performed, our output will much faster):

To print only the listening ports , we will use ‘l’ option with netstat (it will not be used with ‘a’ as it prints all ports):

To print network statistics of each protocol like packet received or transmitted, we can use ‘s’ options with netstat:

To display only the statistics on network interfaces, use ‘i’ option:

To display multicast group information, we can use option ‘g’ ( that print the multicast group information for IPV4 & IPV6):

To print the network routing information, use ‘r’ option:

To get continuous output of netstat, use ‘c’ option:

To filter a single port connections, we can combine ‘grep’ command with netstat:

To use multiple commands with netstat.
Example: count the number of connections with CONNECTED value, we can further add ‘wc’ command with netstat and grep command:

Posted in All, Commands, Linux. Tagged with , , , , .

JavaScript – the MathJax display engine .

The MathJax is an open-source JavaScript display engine for LaTeX, MathML, and AsciiMath notation that works in all modern browsers.
Just download it from official website and used like into the next example:

The result of this script can be see into the next image:

Posted in All, HTML 5, javascript, Programming. Tagged with , , , , .

Programming with FASM – ComboBox Control – part 001.

Today I start with a simple FASM tutorial about combobox control.
In this tutorial I will show you how to deal with this control.
First you need to create a simple window and then to add it.
The steps are very simple:

  • start program with the format PE GUI 4.0
  • define entry start point to start running ;
  • include library win32a;
  • create two ID’s : one for window form and one for combobox control;
  • create sections for : .code, .idata.text and .rc;
  • create a variable ( named by me szInitText ) to use like string message into .itext area ;
  • fill the .idata and .irc with my source code ( default settings for window and set the dialogitem );
  • create the DialogProc and fill with all is need to make the winodow form;

This source code just create the combobox control without items.

This is the source code of this tutorial:

This is the result :

Posted in All, Assembler, Programming, Windows 10, Windows 7, Windows 8. Tagged with , , , , , , , .

JavaScript – the glMatrix.

The glMatrix javascript is designed to perform vector and matrix operations very fast.
The official website can be found here.
What’s new in 2.0?
The glMatrix 2.0 is the result of a lot of excellent feedback from the community, and features:

  • Revamped and consistent API (not backward compatible with 1.x)
  • New functions for each type, based on request.
  • New array operations: vec(2/3/4).forEach
  • Even more optimizations!
  • A cleaner code base, broken up by type.
  • A more complete unit testing suite.

Let’s test one example with gl matrix and shaders:

Posted in All, HTML 5, javascript, Programming. Tagged with , , , , .

News: FASM on MacOS.

The development team of FASM come with this new release:
This release contains executables for 32-bit Linux and Windows, plus an experimental executable for MacOS. It is packaged with examples of macroinstructions that allow assembly of simple programs for the architectures like x86, x64, 8052, AVR, or Java Virtual Machine.

Posted in news. Tagged with , , , .