VBS – Checking table existence in Access

This code first reads a line from a txt file and checks out its existence in access db. then the results are written to a different txt file   Const ForReading = 1 Set objFSO = CreateObject("Scripting.FileSystemObject") Set objTextFile = objFSO.OpenTextFile("c:\listfile.txt", ForReading) Set objTextFileWrite = objFSO.OpenTextFile("c:\listfileTEST.txt", 8, True) Do Until objTextFile.AtEndOfStream strNextLine = objTextFile.Readline ''check

The precedence of initializers and constructor to be called in a class

In a simple java class there are three approaches which will be initialized before any method does. So called static Initializer, Initializer and constructor. The predence of those methodologies is; 1. Static Initializer 2. Initializer: An initializer block is defined within a class, not as a part of a method. It executes for every object that’s created for a class.

Installing Wildfly 8 on Centos

I’ll show you how to set up Wildfly 8 server for standalone not for the domain mode download the package and unzip cd /opt wget http://download.jboss.org/wildfly/8.2.0.Final/wildfly-8.2.0.Final.zip unzip wildfly-8.2.0.Final.zip -d /opt/ rename the unzipped folder mv wildfly-8.2.0.Final wildfly create the wildfly user groupadd wildfly useradd -s /bin/bash -g wildfly wildfly then prepare the config file path mkdir

Installing Jdk 7 on Centos

download jdk on console cd /opt sudo wget –no-cookies –no-check-certificate –header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" \ "http://download.oracle.com/otn-pub/java/jdk/7u75-b13/jdk-7u75-linux-x64.tar.gz" then unpack tar zxvf jdk-7u75-linux-x64.tar.gz then create folder mkdir /usr/java then move mv jdk1.7.0_75/ /usr/java/ install java alternatives –install /usr/bin/java java /usr/java/jdk1.7.0_75/bin/java 1 install javac alternatives –install /usr/bin/javac javac /usr/java/jdk1.7.0_75/bin/javac 1 install jar alternatives –install /usr/bin/jar jar /usr/java/jdk1.7.0_75/bin/jar 1