Tuesday, October 27, 2015

Windows common variables





Here is a list of the most common Variables on Windows Vista and later systems.

Tuesday, May 5, 2015

ABI compliance checker






ABI Compliance Checker (ACC) is a tool for checking backward binary and source-level compatibility of a C/C++ library. The tool checks header files and shared libraries of old and new versions and analyzes changes in API and ABI (ABI=API+compiler ABI) that may break binary and/or source compatibility: changes in calling stack, v-table changes, removed symbols, renamed fields, etc. Binary incompatibility may result in crashing or incorrect behavior of applications built with an old version of a library if they run on a new one. Source incompatibility may result in recompilation errors with a new library version. The tool is intended for developers of software libraries and maintainers of operating systems who are interested in ensuring backward compatibility, i.e. allow old applications to run or to be recompiled with newer library versions.



Tuesday, April 14, 2015

gitdiff script





~xviengu/w/dlb D01_XVIENGU_TESTTOOL_PEXPU_IPV6 /vobs/axeiv/test_applications
[xviengu@dekt1 xviengu_tt_apz22 /vobs/axeiv]$ cat ~xviengu/w/dlb
#!/bin/sh

BR="$1"
shift
cleartool find "$@" -ver "lbtype($BR)" -type f -print |
         sed 's,\(.*\)/\([0-9][0-9]*\)$,\1/0 \1/\2,' |
        while read base new; do
                if [ -x /usr/bin/git ]; then
                        /usr/bin/git --no-pager diff --stat --no-index --color "$base" "$new"
                else
                        cleartool diff -columns 200 "$base" "$new"
                fi
        done |
        less -FRX
[xviengu@dekt1 xviengu_tt_apz22 /vobs/axeiv]$


Or


[xviengu@dekt1 xviengu_tt_pexpu_ipv6 home/xviengu/3512Transfer]$ cat ~xtunngu/bin/dif
#!/bin/sh
if [ ! -d "/tmp/$USER" ]; then
  mkdir "/tmp/$USER"
else
  rm -rf  "/tmp/$USER/*"
fi

param1="$1"
param2="$2"
LABEL=""

if [ -z "$param1" ]; then
 echo "parameter is invalid"
 exit
fi

while getopts l:h OPTION
do
   case "$OPTION" in
        l)
           LABEL="$OPTARG"
           ;;
        h)
           ;;
   esac
done

echo "$LABEL"
if [ ! -z "$LABEL" ]; then
   echo "create directories to copy ... "

   if [ ! -d "/tmp/$USER/base" ]; then
     mkdir /tmp/$USER/base
   else
     rm -rf /tmp/$USER/base
     mkdir /tmp/$USER/base
   fi

   if [ ! -d "/tmp/$USER/$LABEL" ]; then
     mkdir /tmp/$USER/$LABEL
   else
     rm -rf /tmp/$USER/$LABEL
     mkdir /tmp/$USER/$LABEL
   fi

   Exist=0 # exist counter
   echo "copying files to /tmp/$USER and comparing ..."
   cleartool find "$3" -ver "lbtype($LABEL)" -type f -print |
  # cleartool find "$3" -version 'version($LABEL)' -print |
    sed 's,\(.*\)/\([0-9][0-9]*\)$,\1/0 \1/\2,' |
     while read base new; do
       #echo "[BASE] cp $base /tmp/$USER/base/`echo $base | sed 's,@@\(.*\), ,' | sed 's,\(/.*/\),,'`"
       if [ ! -f  "/tmp/$USER/base/`echo $base | sed 's,@@\(.*\),,' | sed 's,\(/.*/\),,'`" ]; then
          yes | cp $base "/tmp/$USER/base/"`echo $base | sed 's,@@\(.*\),,' | sed 's,\(/.*/\),,'`
       else
          yes | cp $base "/tmp/$USER/base/`echo $base | sed 's,@@\(.*\),,' | sed 's,\(/.*/\),,'`.0"
       fi

       if [ ! -f  "/tmp/$USER/$LABEL/`echo $new | sed 's,@@\(.*\),,' | sed 's,\(/.*/\),,'`" ]; then
          yes | cp $new "/tmp/$USER/$LABEL/"`echo $new | sed 's,@@\(.*\),,' | sed 's,\(/.*/\),,'`
       else
          yes | cp $new "/tmp/$USER/$LABEL/`echo $new | sed 's,@@\(.*\),,' | sed 's,\(/.*/\),,'`.0"
       fi

     # echo "[LABEL] cp $new /tmp/$USER/$LABEL/`echo $new | sed 's,@@\(.*\), ,' | sed 's,\(/.*/\),,'`"
     done

     vi "+DirDiff /tmp/$USER/$LABEL/ /tmp/$USER/base/"
     exit
fi

#update later for code review for VM on APZ_VM3
if [ -z "$param2" ]; then


  if [ "$(ls -A /vobs/APZ_VM3)" ]; then
    cleartool lsco -me -cview -r -fmt "%En@@%[version_predecessor]p\n" /vobs/APZ_VM3 | sed 's,\(.*\)/\([0-9][0-9]*\)$,\1/0 ,' |
    while read base; do
      yes |  cp $base  "/tmp/$USER/"`echo $base| sed 's,@@\(.*\), ,' | sed 's,\(/.*/\),,'`
    done
  else
    echo "view isnot set"
    exit
  fi

  echo "compare entered directory files with checked out files"
  vi "+DirDiff $param1 /tmp/$USER"

else
 vi "+DirDiff $param1 $param2"
fi
[xviengu@dekt1 xviengu_tt_pexpu_ipv6 home/xviengu/3512Transfer]$




Monday, April 6, 2015

RT: Request Tracker






RT is a battle-tested issue tracking system which thousands of organizations use for bug trackinghelp desk ticketingcustomer serviceworkflow processeschange managementnetwork operationsyouth counselling and even more. Organizations around the world have been running smoothly thanks to RT for over 10 years.
RT 4.2 is a major update. It's chock full of new features, enhancements and bug fixes. Don't miss our What's New in 4 series.
There's no need to wait for a quote or for a sales person to send you a demo. The full, enterprise-ready version of RT is always available at absolutely no cost under an open source license. That means it's yours to use and customize however you'd like. We built RT from the ground up to be easy to adapt to your organization and your needs.

https://www.bestpractical.com/rt/

Wednesday, March 11, 2015

Missing socket libraries in build














make clean; make all
rm -f *.o *~ core
g++ -c -o l.o l.cpp -I.
g++ -Wno-invalid-offsetof -Wall -Werror -Wextra -Winit-self -Woverloaded-virtual -Winit-self -ansi -pedantic -Wstrict-aliasing -Wno-unknown-pragmas -Wno-sign-compare -Wno-parentheses -Wno-write-strings  -O3 -ggdb3 -Wformat -Wuninitialized  -o la l.cpp -I.
Undefined                       first referenced
 symbol                             in file
inet_pton                           /var/tmp//ccYiZabf.o
inet_ntop                           /var/tmp//ccYiZabf.o
ld: fatal: Symbol referencing errors. No output written to la
collect2: ld returned 1 exit status
make: *** [all] Error 1
[xviengu@vnaps1 xviengu/ws/network]$


StartAllNeeds.bat






For Win8:: C:\Users\viet.nguyen\StartAllNeeds.bat

rem Start basic programs for work
START /NORMAL /MIN /D "C:\Program Files (x86)\Mozilla Thunderbird" thunderbird.exe
START /NORMAL /MIN /D "C:\Program Files (x86)\FreeCommander XE" FreeCommander.exe
START /NORMAL /MIN /D "C:\Windows" explorer.exe D:\DOWNLOAD
START /NORMAL /MIN /D "C:\Program Files (x86)\Zim Desktop Wiki\" zim.exe
START /NORMAL /MIN "C:\Program Files (x86)\Notepad++\" notepad++.exe
START /NORMAL /MIN "C:\Program Files (x86)\Xming\" Xming.exe
START /NORMAL /D "D:\DOWNLOAD\GreatNews" GreatNews.exe
EXIT

Friday, February 27, 2015

CHECKSUM OFFLOAD













CHECKSUM OFFLOAD
As network speed increases, offloading is becoming an important feature, and the ability to offload tasks from the host processor aids in the efficiency of the host and in overall system performance. To achieve a significant performance boost, most operating systems now a days offer a mechanism for the TCP/IP protocol stack to offload checksum calculations to the device.


Thursday, February 26, 2015

OpenStack overview








http://docs.openstack.org/juno/install-guide/install/zypper/content/index.html

Overview

The OpenStack project is an open source cloud computing platform that supports all types of cloud environments. The project aims for simple implementation, massive scalability, and a rich set of features. Cloud computing experts from around the world contribute to the project.
OpenStack provides an Infrastructure-as-a-Service (IaaS) solution through a variety of complemental services. Each service offers an application programming interface (API) that facilitates this integration. The following table provides a list of OpenStack services:
Table 1.1. OpenStack services
ServiceProject nameDescription
DashboardHorizonProvides a web-based self-service portal to interact with underlying OpenStack services, such as launching an instance, assigning IP addresses and configuring access controls.
ComputeNovaManages the lifecycle of compute instances in an OpenStack environment. Responsibilities include spawning, scheduling and decommissioning of virtual machines on demand.
NetworkingNeutronEnables Network-Connectivity-as-a-Service for other OpenStack services, such as OpenStack Compute. Provides an API for users to define networks and the attachments into them. Has a pluggable architecture that supports many popular networking vendors and technologies.
Storage
Object StorageSwiftStores and retrieves arbitrary unstructured data objects via a RESTful, HTTP based API. It is highly fault tolerant with its data replication and scale out architecture. Its implementation is not like a file server with mountable directories.
Block StorageCinderProvides persistent block storage to running instances. Its pluggable driver architecture facilitates the creation and management of block storage devices.
Shared services
Identity serviceKeystoneProvides an authentication and authorization service for other OpenStack services. Provides a catalog of endpoints for all OpenStack services.
Image ServiceGlanceStores and retrieves virtual machine disk images. OpenStack Compute makes use of this during instance provisioning.
TelemetryCeilometerMonitors and meters the OpenStack cloud for billing, benchmarking, scalability, and statistical purposes.
Higher-level services
OrchestrationHeatOrchestrates multiple composite cloud applications by using either the native HOTtemplate format or the AWS CloudFormation template format, through both an OpenStack-native REST API and a CloudFormation-compatible Query API.
Database ServiceTroveProvides scalable and reliable Cloud Database-as-a-Service functionality for both relational and non-relational database engines.
This guide describes how to deploy these services in a functional test environment and, by example, teaches you how to build a production environment. Realistically, you would use automation tools such as Ansible, Chef, and Puppet to deploy and manage a production environment.

Friday, February 6, 2015

Coding Ground - Edit, compile, execute 100% cloud










Code in almost all popular languages using Coding Ground. Edit, compile, execute and share your projects, 100% cloud.

http://www.tutorialspoint.com/codingground.htm



Friday, January 30, 2015

nbtstat and nbtscan






D:\DOWNLOAD>nbtstat -A 172.16.91.227 | find "UNIQUE"
    PHATNGUYENT-VNP<00>  UNIQUE      Registered
    PHATNGUYENT-VNP<20>  UNIQUE      Registered

D:\DOWNLOAD>
D:\DOWNLOAD>


D:\DOWNLOAD>nbtscan-1.0.35.exe -r 172.16.91.1/24
nbtscan-1.0.35.exe: illegal option -- r
nbtscan 1.0.35 - 2008-04-08 - http://www.unixwiz.net/tools/

usage: nbtscan-1.0.35.exe [options] target [targets...]

   Targets are lists of IP addresses, DNS names, or address
   ranges. Ranges can be in /nbits notation ("192.168.12.0/24")
   or with a range in the last octet ("192.168.12.64-97")

   -V        show Version information
   -f        show Full NBT resource record responses (recommended)
   -H        generate HTTP headers
   -v        turn on more Verbose debugging
   -n        No looking up inverse names of IP addresses responding
   -p    bind to UDP Port (default=0)
   -m        include MAC address in response (implied by '-f')
   -T    Timeout the no-responses in seconds (default=2 secs)
   -w    Wait msecs after each write (default=10 ms)
   -t    Try each address tries (default=1)
   -1        Use Winsock 1 only
   -P        generate results in perl hashref format

http://www.unixwiz.net/tools/nbtscan.html
D:\DOWNLOAD>nbtscan-1.0.35.exe 172.16.91.1/24
172.16.91.139   WORKGROUP\NGUYENTRAN-VNPC       SHARING
172.16.91.141   WORKGROUP\LONGTO-VNPC           SHARING
172.16.91.143   WORKGROUP\VN-LAP-155-VNPC       SHARING
172.16.91.144   WORKGROUP\VN-LAP-53-VNPC        SHARING
172.16.91.145   WORKGROUP\THONGNGUYEN-PC        SHARING
172.16.91.148   WORKGROUP\KINGNGUYEN-VNPC       SHARING
172.16.91.150   WORKGROUP\DUCTRINH-VNPC         SHARING
172.16.91.149   WORKGROUP\THAOLE-VNPC           SHARING
172.16.91.152   WORKGROUP\BAONGUYENV-VNPC       SHARING
172.16.91.154   WORKGROUP\THONGLE-VNPC          SHARING
172.16.91.158   WORKGROUP\KHIEMLE-VNPC          SHARING
172.16.91.160   WORKGROUP\THANGNGUYEN-PC        SHARING
172.16.91.161   WORKGROUP\KIMBUI-VNPC           SHARING
172.16.91.162   WORKGROUP\BUUNGUYEN-VNPC        SHARING
172.16.91.163   WORKGROUP\VN-LAP-152-VNPC       SHARING
172.16.91.164   WORKGROUP\BAOTRAN-VNPC          SHARING
172.16.91.165   WORKGROUP\DUNGCAO-VNPC          SHARING
172.16.91.169   WORKGROUP\SONNGUYENT-VNPC       SHARING
172.16.91.172   WORKGROUP\NGUYENPHAM-VNPC       SHARING
172.16.91.173   WORKGROUP\TRONGLE-VNPC          SHARING
172.16.91.174   WORKGROUP\VN-LAP-163-VNPC       SHARING
172.16.91.175   WORKGROUP\CANHTRUONG-VNPC       SHARING
172.16.91.176   WORKGROUP\VANGLAM-VNPC          SHARING
172.16.91.178   WORKGROUP\THAIHA-VNPC           SHARING
172.16.91.181   WORKGROUP\HOANGNGUYEN-VNP       SHARING
172.16.91.183   WORKGROUP\BINHHOANG-VNPC        SHARING
172.16.91.185   WORKGROUP\PHATDO-VNPC           SHARING
172.16.91.186   WORKGROUP\XTRUTRI-PC            SHARING
172.16.91.188   WORKGROUP\VN-LAP-177-VNPC       SHARING
172.16.91.192   WORKGROUP\BAONGUYEN-VNPC        SHARING
172.16.91.194   WORKGROUP\VUONGNGUYEN-VNP       SHARING
172.16.91.195   WORKGROUP\THAIHOANG-VNPC        SHARING
172.16.91.197   WORKGROUP\TUANNGUYEN-VNPC       SHARING
172.16.91.198   WORKGROUP\CHINHHOANG-VNPC       SHARING
172.16.91.199   WORKGROUP\DUCLE-VNPC            SHARING
172.16.91.200   WORKGROUP\                      SHARING
172.16.91.201   WORKGROUP\VN-LAP-27-VNPC        SHARING
172.16.91.203   WORKGROUP\VUDAO-VNPC            SHARING
172.16.91.206   WORKGROUP\DONGNGUYEN-VNPC       SHARING
172.16.91.209   WORKGROUP\VN-LAP-50-VNPC        SHARING
172.16.91.210   WORKGROUP\VN-LAP-159-VNPC       SHARING
172.16.91.211   WORKGROUP\NGANGUYEN-VNPC        SHARING
172.16.91.212   WORKGROUP\VN-LAP-141-VNPC       SHARING
172.16.91.213   WORKGROUP\HUYHA-VNPC            SHARING
172.16.91.215   WORKGROUP\THENGUYEN-VNPC        SHARING
172.16.91.217   WORKGROUP\TRINGO-VNPC           SHARING
172.16.91.218   WORKGROUP\VN-LAP-178-VNPC       SHARING
172.16.91.216   WORKGROUP\TAMCHAU-VNPC          SHARING
172.16.91.219   WORKGROUP\VN-LAP-174-VNPC       SHARING
172.16.91.221   WORKGROUP\ANHNGUYEN-VNPC
172.16.91.222   WORKGROUP\TOANPHAM-VNPC         SHARING
172.16.91.223   WORKGROUP\TAIDINH-VNPC          SHARING
172.16.91.224   WORKGROUP\VN-LAP-135-VNPC       SHARING
172.16.91.225   WORKGROUP\MANPHAN-VNPC          SHARING
172.16.91.227   WORKGROUP\PHATNGUYENT-VNP       SHARING
172.16.91.228   WORKGROUP\THANHLE-VNPC          SHARING
172.16.91.229   WORKGROUP\DITA-VNPC             SHARING
172.16.91.230   WORKGROUP\TRUNGHUYNH-VNPC       SHARING
172.16.91.231   WORKGROUP\VN-LAP-153-VNPC       SHARING
172.16.91.232   WORKGROUP\TUNGVU-VNPC           SHARING
172.16.91.235   WORKGROUP\TANLY-VNPC            SHARING
172.16.91.236   WORKGROUP\TUNGQNGUYEN-VNP       SHARING
172.16.91.237   WORKGROUP\VN-LAP-87-VNPC        SHARING
172.16.91.238   WORKGROUP\TRUNGNGUYEN-VNP       SHARING
172.16.91.239   WORKGROUP\ANHLE-VNPC            SHARING
172.16.91.240   WORKGROUP\NGUYENLUU-VNPC        SHARING
172.16.91.241   WORKGROUP\HUNGNGUYEN-VNPC       SHARING
172.16.91.243   WORKGROUP\BAODO-VNPC            SHARING
172.16.91.244   WORKGROUP\XMAONGO               SHARING
172.16.91.234   WORKGROUP\                      SHARING
172.16.91.245   WORKGROUP\DUONGPHAN-VNPC        SHARING
172.16.91.246   WORKGROUP\NHANTRAN-VNPC         SHARING
172.16.91.247   WORKGROUP\VN-LAP-130-VNPC       SHARING
172.16.91.248   WORKGROUP\HUNGCAI-VNPC          SHARING
172.16.91.249   WORKGROUP\HIEUTRAN-VNPC         SHARING
172.16.91.250   WORKGROUP\VN-LAP-167-VNPC       SHARING
172.16.91.251   WORKGROUP\QUYENDAO-VNPC         SHARING
*timeout (normal end of scan)

D:\DOWNLOAD>
D:\DOWNLOAD>



Wednesday, January 28, 2015

X connection to srv01:52.0 broken






Reason:
Log in to srv01 via Putty but X11 session is unhappy

srv01 SunOS 5.10 Generic_127127-11 sun4v sparc SUNW,Sun-Fire-T1000
X connection to srv01:52.0 broken (explicit kill or server shutdown).
X connection to srv01:52.0 broken (explicit kill or server shutdown).


Deactivate X11 forwarding in PuTTy configuration

PuTTY Configuration | Connection | SSH | X11 | Enable X11 forwarding












Labels