Manager JDBC Adapters in webMethods
Package: WmART
1. Fucntion: WmART:pub.art.listRegisteredAdapters
List all registered adapters in webMethods server. It takes no input and return a list with adapterTypeName and adapterDisplayName.
The adapterDisplayName is the name you see in the Connection Type column of the Connections table from IS Adapters > JDBC Adapter > Connections window.
The adapterTypeName is the name to use for listAdapterConnections function.
2. Function: WmART:pub.art.connection.listAdapterConnections
List registered adapters in webMethods server. It takes one input, adpaterTypeName, i.e. "JDBCAdapter" for JDBC Adapter Connections.
3. Function: WmART: put.art.connection.disableConnection
It takes one input, connectionAlias, which is the name in Connection Name column of the Connections table on IS Adapters > JDBC Adapter > Connections window.
4. Function: WmART: put.art.connection.enableConnection
It takes one input, connectionAlias, which is the name in Connection Name column of the Connections table on IS Adapters > JDBC Adapter > Connections window.
Monday, June 25, 2012
Manage JDBC Adapters in webMethods
Posted by
techgeek168
at
9:25 AM
0
comments
Labels: webmethods
Thursday, March 22, 2012
Manage names by using the Name Manager dialog box
Use the Name Manager dialog box to work with all of the defined names and table names in the workbook. For example, you may want to find names with errors, confirm the value and reference of a name, view or edit descriptive comments, or determine the scope. You can also sort and filter the list of names, and easily add, change, or delete names from one location.
To open the Name Manager dialog box, on the Formula tab, in the Defined Names group, click Name Manager
Posted by
techgeek168
at
12:24 AM
0
comments
Labels: Excel
Sunday, February 19, 2012
三寸天堂 v.s. 夢のしずく v.s. Braveheart - 聽得出來嗎? (C調)
第一次聽到 严艺丹的《三寸天堂》 是有那麼一點似曾相識的感覺。 但批評人家抄襲, 我認為這些人有點酸葡萄心理。
http://www.wenzhousx.com/yule/yulebagua/39426.html
我倒覺得 严艺丹《三寸天堂》 和 松たか子《夢のしずく》 是有那麼一點學 Horner為影片《Braveheart》所做的配樂。
《三寸天堂》中的中國胡琴演奏增添了中國古典風味 與 《Braveheart》的蘇格蘭風笛 有著異曲同工之妙。
讓人覺得 严艺丹《三寸天堂》 有那麼一點點奧斯卡的味道。 難怪聽了以後, 感覺餘音繞樑, 久久不能忘記。
而 松たか子《夢のしずく》 就是一般流行歌曲, 感覺遜色的多了。
严艺丹《步步惊心》片尾曲《三寸天堂》【抄袭原曲-松隆子《梦的点滴》】? 這些網路上的批評文章 真的有點好笑。
P.S.
Braveheart Soundtrack: http://www.youtube.com/watch?v=9AN04imFDK8
严艺丹《三寸天堂》: http://www.youtube.com/watch?v=HKryDrp2Nds
松たか子《夢のしずく》: http://www.youtube.com/watch?v=wWnu-1gChko
Posted by
techgeek168
at
4:39 AM
0
comments
Labels: 123隨便彈談-Piano
Thursday, January 26, 2012
Awk Sed Sort Command Sample
Get the strings you need from a file, sort the strings, and then save it into another file.
cat 10000ACRB_wm_pdf.xsl | sed 's/RefID/RefID\n/' | grep RefType | sed 's/.*RefType/RefType/' | sed 's/RefType=./RT_/' | sed 's/.].*//' | sort | tee ACRB_RefTypes.txt
Read the new file line by line and then add strings you need.
while read line
do
if echo ${line} | grep -q ${preline}
then
equal=${line}
else
preline=${line}
echo ${line}
fi
done < ./ACRB_RefTypes.txt |
sed 's/RT_//' |
awk '{print "Map(XPath(\"/PmtRec/*s/RefInfo/*s/RefID\"), XPath(\"/DocMap/*s/ACRB_RefTypes/*s/RT_"
$0
"\"), [], \""
$0
"\")," }'
Posted by
techgeek168
at
9:31 AM
0
comments
Labels: CygwinAwkCronSed, UnixBashVi
Tuesday, July 5, 2011
Is application/package running in 32-bit or 64-bit in a 64-bit kernel?
In Solaris:
If the hardware is 64-bit capable, a new software install will, by default, install the 64-bit packages. To check to see if the 64-bit packages have been installed, use the pkginfo command.
/usr/bin > pkginfo | grep 64 application SUNWbdb BerkeleyDB-Base 4.2.52 (sun-private) Solaris Sparc 32-bit and 64-bit Architecture application SUNWbdbj BerkeleyDB-Java(sun-private) 4.2.52 Solaris Sparc 32-bit and 64-bit Architecture system SUNWkfb Sun XVR-2500 Graphics System Software/Device Driver (64-bit) system SUNWnfb Sun XVR-300 Graphics System Software/Device Driver (64-bit) application SUNWnfbcf Sun XVR-300 Graphics Configuration Software (64-bit) application SUNWnfbw Sun XVR-300 Graphics Window System Support (64-bit) system SUNWrtvc SunVideo Device Driver (64-bit) /usr/bin > /usr/bin >
If no package names are returned, then only 32-bit packages are installed.
Use pkginfo -l to verify the package is installed:
/usr/bin > pkginfo -l SUNWkfb
PKGINST: SUNWkfb
NAME: Sun XVR-2500 Graphics System Software/Device Driver (64-bit)
CATEGORY: system,graphics
ARCH: sparc.sun4v
VERSION: 10.0.0,REV=2007.05.24
BASEDIR: /
VENDOR: Sun Microsystems, Inc.
DESC: Device driver for the PCI-E Bus Sun XVR-2500 graphics accelerator (64-bit)
PSTAMP: zubat20081229020311
INSTDATE: Mar 05 2011 21:28
HOTLINE: Please contact your local service provider
STATUS: completely installed
FILES: 6 installed pathnames
5 shared pathnames
5 directories
1 executables
2800 blocks used (approx)
-----------------------------------------------------------
In Linux:
List all installed packages using rpm -qa option:
>rpm -qa | grep htmldoc htmldoc-1.8.27.1-0
Display more information about package using rpm -qi <package> command:
>rpm -qi htmldoc Name : htmldoc Relocations: (not relocatable) Version : 1.8.27.1 Vendor: Easy Software Products Release : 0 Build Date: Tue Aug 29 21:01:51 2006 Install Date: Tue Mar 2 17:26:33 2010 Build Host: amd64.lab.easysw.com Group : Applications Source RPM: htmldoc-1.8.27.1-0.src.rpm Size : 8052423 License: 1997-2006 by Easy Software Products, All Rights Reserved. Signature : (none) Packager : mike@amd64.lab.easysw.com Summary : HTMLDOC Description : HTMLDOC converts HTML files and web pages to PDF and PostScript.
Posted by
techgeek168
at
9:09 AM
0
comments
Labels: OS - Unix
Is Unix running in 32-bit or 64 bit?
In Solaris:
You can determine the currently running kernel with this command:
/usr/bin > /usr/bin/isainfo -kv
64-bit sparcv9 kernel modules
/usr/bin > isainfo -v
64-bit sparcv9 applications
asi_blk_init vis2 vis popc
32-bit sparc applications
asi_blk_init vis2 vis popc v8plus div32 mul32
This machine is able to run 64 bit applications, thus it has a 64 bit kernel running. If you only saw a 32-bit response or even "Command not found" then you are running with a 32 bit kernel.-------------------------------------------------------
In Linux:
>uname -a Linux linux-machine 2.6.18-194.8.1.el5 #1 SMP Wed Jun 23 10:52:51 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux >uname -m x86_64If it prints i686 then your kernel is 32 bit, if you see x86_64 then it's 64 bit,
Posted by
techgeek168
at
8:40 AM
0
comments
Labels: OS - Unix
Thursday, March 3, 2011
Remove CVS folder
hsual@DTC2700311CD565$ find . | grep CVS ./PMP_Report/DEFAULT/C3.1_STND/CVS ./PMP_Report/DEFAULT/C3.1_STND/CVS/Entries ./PMP_Report/DEFAULT/C3.1_STND/CVS/Repository ./PMP_Report/DEFAULT/C3.1_STND/CVS/Root ./PMP_Report/DEFAULT/CVS ./PMP_Report/DEFAULT/CVS/Entries ./PMP_Report/DEFAULT/CVS/Repository ./PMP_Report/DEFAULT/CVS/Root ./PMP_Report/DEFAULT/PAYROLL/CVS ./PMP_Report/DEFAULT/PAYROLL/CVS/Entries ./PMP_Report/DEFAULT/PAYROLL/CVS/Repository ./PMP_Report/DEFAULT/PAYROLL/CVS/Root hsual@DTC2700311CD565$ hsual@DTC2700311CD565$ hsual@DTC2700311CD565$ hsual@DTC2700311CD565$ find . | grep CVS$ | xargs rm -rf hsual@DTC2700311CD565$ find . | grep CVS hsual@DTC2700311CD565$
Posted by
techgeek168
at
1:25 PM
0
comments
Labels: UnixBashVi
Thursday, February 24, 2011
Java Read/Write Fixed Length file sample
public static void TempPreProcessor_Fixed(String input, String output){
BufferedReader reader = null;
BufferedWriter writer = null;
try
{
String inputfilename = input;
String outputfilename = output;
reader = new BufferedReader(
new InputStreamReader(
new FileInputStream(inputfilename)));
writer = new BufferedWriter(
new OutputStreamWriter(
new FileOutputStream(outputfilename)));
String thisLine = null;
//line 1
if((thisLine =reader.readLine()) != null)
writer.write("AA,"+thisLine+"\n");
//line 2-4
for(int i = 0; i<3; i++){
if((thisLine =reader.readLine()) != null)
writer.write(thisLine+"\n");
}
//remaining lines
while((thisLine=reader.readLine()) != null){
//add AB to start of line
writer.write("AB,"+thisLine+"\n");
//copy with no change
if((thisLine=reader.readLine()) != null)
writer.write(thisLine+"\n");
}
}catch(Exception e){
throw new ServiceException("TempPreProcessor: Unknown errors: " + e.toString());
}finally{
try{
if(writer != null) writer.flush();
if(reader != null) reader.close();
if(writer != null) writer.close();
reader=null; writer=null;
}catch(Exception e){
throw new ServiceException("TempPreProcessor: Unknown errors: " + e.toString());
}
}
}
Posted by
techgeek168
at
2:33 PM
0
comments
Labels: java
Java Read/Write CSV file sample
public static void TempPreProcessor_CSV(String input, String output){
//IDataSharedCursor idc = pipeline.getSharedCursor();
BufferedReader reader = null;
BufferedWriter writer = null;
try
{
String inputfilename = input;
String outputfilename = output;
reader = new BufferedReader(
new InputStreamReader(
new FileInputStream(inputfilename)));
writer = new BufferedWriter(
new OutputStreamWriter(
new FileOutputStream(outputfilename)));
int lineNum = 1;
String checkNum = "";
String thisLine = "";
// comma, which is not enclosed in quotes
String delims = ",(?=([^\"]*\"[^\"]*\")*[^\"]*$)";
while((thisLine=reader.readLine()) != null){// till end of file
StringBuffer sb = new StringBuffer();
if(thisLine.trim().equals(""))
continue; // ignore blank lines
if (lineNum++ == 1){
sb.append(thisLine + "\n");
writer.write(sb.toString());
continue;
}
String[] thisTokens = thisLine.split(delims);
if (!checkNum.equalsIgnoreCase(thisTokens[0].toString())){
checkNum = thisTokens[0].toString();
sb.append("AA," + thisLine);
}else{
sb.append("AB," + thisLine);
}
sb.append("\n");
writer.write(sb.toString());
}
}catch(Exception e){
//throw new ServiceException(
// "TempPreProcessor: Unknown errors: " + e.toString());
}finally{
try {
if(writer != null) writer.flush();
if(reader != null) reader.close();
if(writer != null) writer.close();
reader=null;
writer=null;
//idc.destroy();
}catch(Exception e){
//throw new ServiceException(
// "TempPreProcessor: Unknown errors: " + e.toString());
}
}
}
Posted by
techgeek168
at
12:46 PM
0
comments
Labels: java
Java Date Format
public static String parseDate(String inDate, String fmFormat, String toFormat){
SimpleDateFormat fmFormatter = new SimpleDateFormat(fmFormat);
SimpleDateFormat toFormatter = new SimpleDateFormat(toFormat);
if ( inDate == null ) return ""; // To avoid java.lang.NullPointerException
if ( inDate.length() == 0 ) return ""; // Taking care of empty string.
Date fromDate = null;
try {
fromDate = (Date) fmFormatter.parse(inDate);
} catch (ParseException e) {
e.printStackTrace();
}
return toFormatter.format(fromDate);
}
Posted by
techgeek168
at
12:38 PM
0
comments
Labels: java
Java Switch Statement
int boolInt=1;
switch (boolInt){
case 0: System.out.println("true = 0"); break;
case 1: System.out.println("false = 1"); break;
default: System.out.println("Invalid"); break;
}
// In Java SE 7 and later, you can use a String object in the switch statement's expression
String boolStr = "true";
switch (boolStr.toLowerCase()){
case "true": System.out.println("0 = true"); break;
case "false": System.out.println("1 = false"); break;
default: System.out.println(" Not 0/1 = false"); break;
}
Posted by
techgeek168
at
11:30 AM
0
comments
Labels: java
Wednesday, January 12, 2011
How to move a tag to the tip of a branch?
CVS allows an existing tag to be moved to the tip of a branch in one operation (tag -F) so with this method we don't have to execute an additional “cvs rtag –d” operation to clean out the tag and then “cvs tag”.
Step 1: View the current Graph Selection: Right click on file2.txt file -> click on Graph selection…
Step 2: Update file2.txt and commit it to version 1.2.2.2
Step 3: Repeat Step 1 – Note that we want to move R-0-1-1 to version 1.2.2.2.
Step 4: Moving R-0-1-1: Admin -> Command Line … -> Enter “cvs tag –F R-0-1-1” in Command line settings window -> click on OK button in Command line settings window.
Step 5: Verify Changes:
cvs tag -F R-0-1-1 T file2.txt *****CVS exited normally with code 0*****Or repeat Step 1:
Posted by
techgeek168
at
11:19 AM
0
comments
How to remove files or directories in CVS?
To remove files, you first schedule the files for removal, and then commit the change:
1. Select the file or files that you want to remove.
2. Click the right mouse button on the selection, and choose the Remove selection menu item. (See the Note below if you can’t find the Remove select menu item.)
3. As the files are only marked for removal, you have to commit them to remove them from the repository. See Sending Your Changes to CVS if you don't know how to commit.
Note: If you can’t find the Remove selection menu item, then: Right click on any file -> Select “Customize this menu…” -> Add the “Remove selection” item on Customize menus window. -> Click OK.
The files will now be removed from the repository. Note that files are not physically removed, but rather marked as "dead". By this way it will still be possible to retrieve the files if you choose to check out an old version of the module.
Removing directories is another story. CVS will optionally remove empty directories when you update one of its parent directories. If you want to get rid of an empty directory, do the following:
1. Select the parent directory of the empty directory you want to remove.
2. Click the right mouse button on the selection, and choose the Update selection menu item.
3. Select the Globals tab.
4. Make sure Prune (remove) empty directories is checked (it is by default).
5. Press the OK button.
The directory will be removed if all its files were previously removed from your local copy and from the repository.
Posted by
techgeek168
at
11:11 AM
0
comments
Labels: SourceControl
Using Branch with WinCVS
How to setup a fix branch?
Step 1: Initial Situation: Let’s suppose
A. R-0-1-0 installed in production.
B. The current version of file1.txt is 1.3.
C. We have a production issue now. Meaning we have a bug in release R-0-1-0.
Step 2: Setup fix branch, F-0-1-0, for R-0-1-0 in CVS server.
A. Create -> Select the “Create a branch by module” menu item. -> In Create branch settings window, enter a tag/branch name “F-0-1-0” in the “New branch name” input field. Enter “CVSBranchTest” in the “Module to fork:” field. -> Under “Optionally use this revision/tag/date to create the branch”, check “Fork from this rev./tag” and enter “R-0-1-0”
B. Uncheck “Checkout read-only” option in Globals tab window.
C. Press the OK button
D. Verify the branch creatation: Within CVSBranchMain tree, right click on the file, file1.txt, and select “Graph select” option -> In Local setting window, click on OK button. -> Verify that “F-0-1-0” created as below:
Step 3: Selecting the Fix Branch to Work on:
To start working on a branch instead of the default development line, you have to bind your local copy to the branch. This is needed to make sure that actions such as updates, commits etc. work on the branch rather than on the main line of development.
To prepare your local copy to another branch, do the following:
A. Following Checkout Initial Release Module to checkout CVSBranchTest into CVSBranchF010 directory.
B. Verify F-0-1-0 checkout.
C. After working on file1.txt, right click on file1.txt file and select “Commit selection…” -> Enter the commit comment in the Commit settings window, and then click on OK button.
Step 4: Verify fixed version of the updated file: Right click on file1.txt stored in CVSBranchF010 directory -> Select “Graph selection…” -> Verify a version 1.2.2.1 is created under the F-0-1-0 branch.
Step 5: Repeating a few times for testing…
Step 6: Fix/Patch Release: Create new “R-0-1-1” tag for F-0-1-0 branch.
Create a tag by module… -> Enter the following info into Create tag settings window and then click on OK button.
Step 7: Verify Fix/Patch Release:
Right click on file1.txt stored under CVSBranchF010 folder à Select Graph select and click on OK button on the “Log settings” window.
How to merge fix branch into main?
When you are satisfied with the changes you have done on a branch, you may want those changes to be available on the main line of development. Incorporating changes from one branch to another, is known as merging. To merge from a branch, do the following:Step 1: Right click on CVSBranchMain folder and select “Update selection…” option.
Step 2: Make sure “Create missing directories that exist in the repository” is checked.
Step 3: Select the Merge options tab -> Click the Only this rev./tag radio button -> In the Only this rev./tag input field, enter the tag/branch name,”R-0-1-1”. If you want to merge from a given timestamp in this tag, check the Date radio button and type in your preferred timestamp as well. -> Click on OK button.
Note: Any changes on the branch F-0-1-0 (or tag R-0-1-1) will now be merged into your local copy under CVSBranchMain folder.
How to merge fix branch into main?
When you are satisfied with the changes you have done on a branch, you may want those changes to be available on the main line of development. Incorporating changes from one branch to another, is known as merging. To merge from a branch, do the following:Step 1: Right click on CVSBranchMain folder and select “Update selection…” option.
Step 2: Make sure “Create missing directories that exist in the repository” is checked.
Step 3: Select the Merge options tab -> Click the Only this rev./tag radio button -> In the Only this rev./tag input field, enter the tag/branch name,”R-0-1-1”. If you want to merge from a given timestamp in this tag, check the Date radio button and type in your preferred timestamp as well. -> Click on OK button.
Note: Any changes on the branch F-0-1-0 (or tag R-0-1-1) will now be merged into your local copy under CVSBranchMain folder.
How to resolve conflicts?
Once in a while, the CVS server will report a conflict when you update your files from the repository. A conflict occurs when two or more developers have changed the same few lines of a file. As CVS knows nothing of your project, it leaves resolving the conflicts to the developers. Whenever a conflict is reported, you should open the file in question, and search for lines starting with the string <<<<<<<. The conflicting area is marked like this:You should decide what the code should look like, do the necessary changes, remove the CVS markup, and commit your modifications to the repository.
<<<<<<< filename your changes ======= code merged from repository >>>>>>> revision
If you would like a more graphical diff tool, there are several to go for. Download and install your preferred tool, then go to Admin -> Preferences / WinCvs menu item and check the External diff program checkbox, find your tool and click OK. Then, in the Diff -> Selection menu item, check the Use the external diff checkbox to use it.
cvs -z9 update -P -d -jR-0-1-1 (in directory C:\cygwin\home\hsual\alhsu\AlHome\CVSBranchMain\) RCS file: /opt/cvs/CVSBranchTest/file1.txt,v retrieving revision 1.2 retrieving revision 1.2.2.5 Merging differences between 1.2 and 1.2.2.5 into file1.txt rcsmerge: warning: conflicts during merge *****CVS exited normally with code 0*****
Step 5: Resolving Conflicts
Remove the lines in red below in file1.txt file: Suppose the lines in blue below are correct.
hsual@psgltpe014 $ hsual@psgltpe014 $ pwd /home/hsual/alhsu/AlHome/CVSBranchMain hsual@psgltpe014 $ hsual@psgltpe014 $ ls -a ./ .#file1.txt.1.8* ../ CVS/ file1.txt* file2.txt* file3.txt* hsual@psgltpe014 $ hsual@psgltpe014 $ more file1.txt <<<<<<< file1.txt file1 initial version. Update this file for release R-0-1-0 (Release-Year-Month-Fix/Patch) changed for F-0-1-0 branch. 00.UPDATE 1.4 ======= file1 initial version. Update this file for release R-0-1-0 (Release-Year-Month-Fix/Patch) changed for F-0-1-0 branch. 00. UPDATE 1.2.2.3 >>>>>>> 1.2.2.5 hsual@psgltpe014 $ edit file1.txt hsual@psgltpe014 $ more file1.txt file1 initial version. Update this file for release R-0-1-0 (Release-Year-Month-Fix/Patch) changed for F-0-1-0 branch. 00. UPDATE 1.2.2.3 hsual@psgltpe014 $After editing the file, do a Diff on file1.txt file: Right click on file1.txt file -> Diff selection… -> Select “Compare your local file with another revision/tag/branch/date:” option -> Enter “R-0-1-1” as below:
cvs -z9 diff -r R-0-1-1 file1.txt (in directory C:\cygwin\home\hsual\alhsu\AlHome\CVSBranchMain\) *****CVS exited normally with code 0*****Step 6: Right click on CVSBranchMain folder and select “Update selection…” option.
Step 7: Make sure “Create missing directories that exist in the repository” is checked.
Step 8: Select the Merge options tab -> Click the Only this rev./tag radio button -> In the Only this rev./tag input field, enter the tag/branch name,”R-0-1-1”. If you want to merge from a given timestamp in this tag, check the Date radio button and type in your preferred timestamp as well. -> Click on OK button.
Step 9: Commit update: Right click on CVSBranchMain à Select Commit selection… -> Enter comment -> click OK.
Posted by
techgeek168
at
10:58 AM
0
comments
Labels: SourceControl
Using Tag with WinCVS
Assign R-0-0-0 tag for new project Release 0.0.0
Step 1: Create -> Create a tag by module…
Step 2: On Create tag settings window: Enter the tag name and which module to tag “R-0-0-0” into the New tag name field. Enter “CVSBranchTest” into Module to tag field. -> Click OK
Note:
1. Tag must start with a letter.
cvs rtag 0.0.0 CVSBranchTest cvs [rtag aborted]: tag `0.0.0' must start with a letter
2. Tag must not contain the characters `$,.:;@'
cvs rtag R.0.0.0 CVSBranchTest cvs [rtag aborted]: tag `R.0.0.0' must not contain the characters `$,.:;@'
Step 3: Check status of the source file: Right click on file3.txt -> Select “Status selection” option
Step 4: Verify “R-0-0-0” tag displayed under Existing Tags:
cvs -z9 status -v file3.txt (in directory C:\cygwin\home\hsual\alhsu\AlHome\CVSBranchTest\) =================================================================== File: file3.txt Status: Up-to-date Working revision: 1.1.1.1 Repository revision: 1.1.1.1 /opt/cvs/CVSBranchTest/file3.txt,v Sticky Tag: R-0-0-0 (revision: 1.1.1.1) Sticky Date: (none) Sticky Options: (none) Existing Tags: R-0-0-0 (revision: 1.1.1.1) INITIAL (revision: 1.1.1.1) ALHSU (branch: 1.1.1) *****CVS exited normally with code 0*****
Assign R-0-1-0 tag for CVSBranchTest project Release 0.1.0
Step 1: Following the same steps of "Assign R-0-0-0 tag for new project Release 0.0.0" to create R-0-1-0 from CVSBranchMain directory, and then following "Checkout Initial Release Module" to checkout CVSBranchTest into CVSBranchR010 directory.
Step 2: Verify R-0-1-0 checkout.
Remove a tag from module
Suppose we are going to delete R-0-1-1 tag on CVSBranchTest module. Follow the steps below via WinCVS 1.2.Step 1: Create -> Delete a tag by module …
Step 2: On Delete tag settings windows:
Enter “R-0-1-1” in Delete tag name field -> Enter “CVSBranchTest” into Module to untag field. -> Click on OK button.
Step 3: Verify Result: Note that the R-0-1-1 tag is removed from Graph selection window.
Click on “CVSBranchMain” folder -> Right click on file1.txt file -> Select “Graphic selection…” option -> On Log settings windows, click on OK button.
cvs -z9 rtag -d R-0-1-1 CVSBranchTest *****CVS exited normally with code 0*****
Posted by
techgeek168
at
10:38 AM
0
comments
Labels: SourceControl
Thursday, January 6, 2011
Checkout Module with WinCVS
We are going to checkout the “CVSBranchTest” module from CVS server. If the CVSBranchTest module does not exist in CVS server, please refer to “Import Module with WinCVS” in this document.
Step 1: Create -> Checkout module…
Step 2: Type in checkout module/directory, “CVSBranchTest”, in Checkout settings window.
If the Override option is not checked and “Checkout as” is not assigned, this checkout process will create a directory named “CVSBranchTest” under the path listed in “Local folder to checkout to” text box.
Step 3: Verify checkout directory:
Right click on “AlHome” folder and select “Reload view” option -> Click on “CVSBranchTest” folder and verify the files being checked out from CVS source.
Refer to Some files get checked out read-only
Step 4: Reset File Permission: Refer to Some files get checked out read-only
hsual@psgltpe014 $ hsual@psgltpe014 $ pwd /home/hsual/alhsu/AlHome/CVSBranchTest hsual@psgltpe014 $ ll total 3 drwxrwxrwx+ 2 hsual Users 4096 Jan 23 16:13 CVS/ -r-xr-xr-x 1 hsual Users 22 Jan 23 16:05 file1.txt* -r-xr-xr-x 1 hsual Users 22 Jan 23 16:05 file2.txt* -r-xr-xr-x 1 hsual Users 22 Jan 23 16:05 file3.txt* hsual@psgltpe014 $ chmod 777 * hsual@psgltpe014 $ hsual@psgltpe014 $ ll total 3 drwxrwxrwx+ 2 hsual Users 4096 Jan 23 16:13 CVS/ -rwxrwxrwx 1 hsual Users 22 Jan 23 16:05 file1.txt* -rwxrwxrwx 1 hsual Users 22 Jan 23 16:05 file2.txt* -rwxrwxrwx 1 hsual Users 22 Jan 23 16:05 file3.txt* hsual@psgltpe014 $Step 5: Verify File Permission: Refer to Some files get checked out read-only
Posted by
techgeek168
at
2:40 PM
0
comments
Labels: SourceControl
Some files get checked out read-only in WinCVS
Check your umask. Set your umask to 0001 in .bash_profile file in your Cygwin home directory.
Note:
1. If your umask is 022 your files will be 644.
2. If your umask is 02 your files will be 664.
3. If your umask is 0 your files will be 666.
Uncheck the ‘Checkout read-only’ option in WinCvs Preferences or in Checkout settings -> Globals
Posted by
techgeek168
at
2:33 PM
0
comments
Labels: SourceControl
Import Module with WinCVS
Step 1: Create -> Import module …
Step 2: Select “module”/directory and then click on OK button.
Step 3: Click “Continue” button on the Import filter window:
Step 4: Edit Import Settings and then click on OK button. Enter “CVSBranchTest” into the text box of Select the module name and path on the remote server. Enter “ALHSU” into Vendor tag text box. Enter “INITIAL” into Release tag.
Step 5: Verify Message in Console window:
cvs import -I ! -I CVS -m "no message" CVSBranchTest ALHSU INITIAL (in directory C:\cygwin\home\hsual\alhsu\AlHome\CVSBranchTest) N CVSBranchTest/file1.txt N CVSBranchTest/file2.txt N CVSBranchTest/file3.txt No conflicts created by this import *****CVS exited normally with code 0*****
Posted by
techgeek168
at
2:29 PM
0
comments
Labels: SourceControl
How to reset dynamic IP address?
code:-------------------------------------------------------------------------------- @ECHO OFF %WINDIR%\system32\ipconfig /release echo. echo Ip-adress released Make sure you wait about 5 minutes for someone to take your old IP-adress. echo. pause %WINDIR%\system32\ipconfig /renew echo. echo Ip-adress renewed echo. pause exit --------------------------------------------------------------------------------
Explanation:
%WINDIR%\system32\ipconfig /release <-- tells command prompt to look for a program named ipconfig in your
%WINDIR%\system32\ipconfig /renew <-- tells command prompt the same as above, only with the option /renew. (which renews your IP-address hoping that someone took your old. @ECHO OFF <-- tells the command prompt to hide paths (Like C:\windows\system32\ipconfig /renew wont be shown on screen.) echo. <-- tells command promt to jump a line down without displaying any text or doing anything at all. echo
pause <-- makes you have to press a key to continue with the script.
exit <-- exits command prompt.
Posted by
techgeek168
at
2:16 PM
0
comments
Labels: OS - Windows
How to get my local IP address?
Using ipconfig, grep, and awk commands.
hsual@psgltpe014 $ ipconfig | awk '{ print NF, $0 }'
1
4 Windows 2000 IP Configuration
1
3 Ethernet adapter CPQTUN:
1
6 Connection-specific DNS Suffix . :
15 IP Address. . . . . . . . . . . . : 0.0.0.0
15 Subnet Mask . . . . . . . . . . . : 0.0.0.0
13 Default Gateway . . . . . . . . . :
1
5 Ethernet adapter Local Area Connection:
1
6 Connection-specific DNS Suffix . : aaa.bbb.ccc.corp
15 IP Address. . . . . . . . . . . . : 10.22.10.2
15 Subnet Mask . . . . . . . . . . . : 255.255.255.0
13 Default Gateway . . . . . . . . . : 10.22.10.1
hsual@psgltpe014 $ ipconfig | grep IP.Address | grep -v 0.0.0.0 | awk '{ print $15 }'
10.22.10.2
hsual@psgltpe014 $
Posted by
techgeek168
at
2:12 PM
0
comments
Labels: UnixBashVi


































