centos 7 : mrtg setup Hint

# yum -y install net-snmp net-snmp-utils mrtg   # vi /etc/snmp/snmpd.conf ----------------------- #com2sec notConfigUser  default       public   com2sec local     localhost       owl com2sec mynetwork 192.168.0.10      owl   group MyRWGroup  v2c        local group MyROGroup  v2c        mynetwork   view all    included  .1      […]

Read More

centos 7 : php5.4 oci8 setup Hit

# rpm -ivh oracle-instantclient11.2-basic-11.2.0.4.0-1.x86_64.rpm # rpm -ivh oracle-instantclient11.2-devel-11.2.0.4.0-1.x86_64.rpm # pecl download oci8-1.4.9.tgz # tar xvzf oci8-1.4.9.tgz # cd oci8-1.4.9 # phpize   if oracle server installed # ./configure    if oracle client installed # ./configure --with-oci8=shared,instantclient,/usr/lib/oracle/11.2/client64/lib # ln -s /usr/include/oracle/11.2/client64/ /usr/lib/oracle/11.2/client64/lib/include # make all # make test # make install   # cp modules/oci8.so /usr/lib64/httpd/modules/ […]

Read More

Excel vs Unix Timestemp : excel datevalue to java dateformat Hint!

Unix Timestamp from 1970 Excel Timestamp from 1900 Gap : (1970-1900) Days = 25569 Days     String rtn = ""; try{ DateFormat format = new SimpleDateFormat("yyyyMMdd"); //format.setTimeZone(TimeZone.getTimeZone("UTC")); double excelDays = Double.parseDouble((String)valv.elementAt(0)); double unixDays = (excelDays-25569); java.util.Date unixTime = new java.util.Date((long) ( 86400000l * unixDays)); rtn = format.format(unixTime); out.println(rtn); } catch(Exception e) {}  

Read More