Posts

A roadmap to Software Defined Data Center (SDDC) m... - HP Enterprise Business Community

A roadmap to Software Defined Data Center (SDDC) m... - HP Enterprise Business Community

How to know your prepaid BSNL mobile number

I was informed to dial"*888#" to know my BSNL prepaid number last week in Bangalore for my new SIM. I tried it multiple times for 2-3 days but in vain. After searching in Google, I figured out that it is: " *1# "

New-Relic T-shirt real or gimmick?

I installed and used one of the New Relic products in beginning of 2013. I was promised that a T-Shirt would be shipped to me for trying their product. They asked my size and I  provided them  the same. I waited it for 3 months but the shirt never reached me. I pinged them again to mention that the shirt has not reached me. They promised a delivery again, but it never reached me even after an year. Now I a m really wondering if it is a real gimmick from their side. Note: I live outside U.S.

C++11 Feature Series: 1. Lambdas

Image
Lambdas are simple but powerful anonymous functions in C++11.You can use lambdas wherever a function object or a functor or a std::function is expected. A simple example to explain Lambda functions in C++11. Attached is a sample to demonstrate Lambda.

Getting local socket address, foreign address and the owning process on Linux and Windows

I was searching for ways to get details of local address, foreign address, and the owning process on Linux and Windows. I found multiple commands to achieve the same. Here are the ones I used: On Linux: # ss -atpn | awk '(NR > 1) { print $4, $5, $NF }' This would list all TCP sockets and the owning process. You can redirect the same to a file in case if needed. I used "netstat" on Windows to achieve the same. for /f "tokens=2,3,5" %i in ('netstat -ano ^| findstr /v "Active Proto"') do @echo %i %j %k A sample listing is: ... 192.168.43.94:139 0.0.0.0:0 4 192.168.43.94:1093 74.125.135.125:5222 5172 192.168.43.94:1130 15.201.58.50:443 5876 192.168.43.94:1131 15.201.58.50:443 5876 192.168.43.94:1136 15.201.58.50:443 5876 192.168.43.94:1143 15.201.58.50:443 5876 192.168.43.94:1217 15.201.58.50:443 5876 192.168.43.94:1219 15.201.58.50:443 5876 192.168.43.94:1433 15.201.58.50:443 5876 ... If you want to redirect them ...

How to find out the version of cygwin

Run the command "uname -r" to get the version. For e.g.: > uname -r 1.7.25(0.270/5/3) To get complete details, run: "cygcheck --version" For e.g.: >cygcheck --version cygcheck (cygwin) 1.7.25 System Checker for Cygwin Copyright (C) 1998 - 2013 Red Hat, Inc. This is free software; see the source for copying conditions.  There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Mounting a ISO image on different Unix platforms

1. Mounting ISO images in AIX 6 and 7 # loopmount -i -o "-V cdrfs -o ro" -m e.g.: # loopmount -i cdrom.iso -o "-V cdrfs -o ro" -m /mnt/disk 2. On Linux: #mount -o loop e.g.: #mount -o loop cdrom.iso /mnt/disk 3. On Solaris: mount -F hsfs -o ro `lofiadm -a ` e.g: mount -F hsfs -o ro `lofiadm -a /path/to/image.iso` /mnt 4. To unmount: umount