We just want to exclude .err files from being coped over. This is an awesome command that does the trick in just one line ;)
find $UNIX_APPS/cla/$OUTDIR ! -name "bank_loan_accruals*err" -name "bank_loan_accruals*" |xargs -i cp {} /develop/rayudsr
Thursday, February 14, 2013
Tuesday, February 12, 2013
How to create java project from SVN project in eclipse
you
should right click on the project in the package explorer in eclipse and
then select to delete it without removing directory or its contents.
Next, you select to create a Java project (File -> New -> Java
Project) and in the Contents part of the New Java Project dialog box,
select 'Create project from existing source'.
The advantage this approach is that source folders will be properly identified. I found that mucking around with the .project file can lead to the entire directory being considered a source folder which is not what you want.
The advantage this approach is that source folders will be properly identified. I found that mucking around with the .project file can lead to the entire directory being considered a source folder which is not what you want.
Thursday, January 17, 2013
qlik view - show current selection in chart header
Expression to show current selections in Chart header
=' Cabaret Volue Stats: ' & if(isnull(GetCurrentSelections()), 'Nothing selected', GetCurrentSelections('
', ': ', ','))
=' Cabaret Volue Stats: ' & if(isnull(GetCurrentSelections()), 'Nothing selected', GetCurrentSelections('
', ': ', ','))
Tuesday, November 6, 2012
Blood Pressure Chart
The 1st Number: Systolic pressure is the blood pressure when the heart muscle contracts.
The 2nd Number: Diastolic pressure is the blood pressure when the heart is relaxed.
Tuesday, October 9, 2012
Remove duplicates in excel
Excel remove duplicates :
1.Select all the rows, including the column headers, in the list you want to filter.
2.On the Data menu, point to Filter, and then click Advanced Filter.
3.In the Advanced Filter dialog box, click Filter the list, in place.
4.Select the Unique records only check box, and then click OK.
The filtered list is displayed and the duplicate rows are hidden.
5.On the Edit menu, click Office Clipboard.
The Clipboard task pane is displayed.
6.Make sure the filtered list is still selected, and then click Copy .
The filtered list is highlighted with bounding outlines and the selection appears as an item at the top of the Clipboard.
7.On the Data menu, point to Filter, and then click Show All.
The original list is re-displayed.
8.Press the DELETE key.
The original list is deleted.
9.In the Clipboard, click on the filtered list item.
The filtered list appears in the same location as the original list.
Source : http://office.microsoft.com/en-us/excel-help/delete-duplicate-rows-from-a-list-in-excel-HA001034626.aspx
1.Select all the rows, including the column headers, in the list you want to filter.
2.On the Data menu, point to Filter, and then click Advanced Filter.
3.In the Advanced Filter dialog box, click Filter the list, in place.
4.Select the Unique records only check box, and then click OK.
The filtered list is displayed and the duplicate rows are hidden.
5.On the Edit menu, click Office Clipboard.
The Clipboard task pane is displayed.
6.Make sure the filtered list is still selected, and then click Copy .
The filtered list is highlighted with bounding outlines and the selection appears as an item at the top of the Clipboard.
7.On the Data menu, point to Filter, and then click Show All.
The original list is re-displayed.
8.Press the DELETE key.
The original list is deleted.
9.In the Clipboard, click on the filtered list item.
The filtered list appears in the same location as the original list.
Source : http://office.microsoft.com/en-us/excel-help/delete-duplicate-rows-from-a-list-in-excel-HA001034626.aspx
Friday, October 5, 2012
Create Java inline thread
import java.util.Date;
public class InlineThreadDemo {
public static void main(String[] args) {
System.out.println( "parent thread " + new Date(System.currentTimeMillis())); // launch child thread using
// inline declaration
new Thread( new Runnable() {
public void run() {
try {
Thread.sleep(10 * 1000);
} catch (Exception e) {
e.printStackTrace();
}
System.out.println( "child thread " + new Date(System.currentTimeMillis()));
}
}).start();
System.out.println( "parent thread " + new Date(System.currentTimeMillis())); }}
public class InlineThreadDemo {
public static void main(String[] args) {
System.out.println( "parent thread " + new Date(System.currentTimeMillis())); // launch child thread using
// inline declaration
new Thread( new Runnable() {
public void run() {
try {
Thread.sleep(10 * 1000);
} catch (Exception e) {
e.printStackTrace();
}
System.out.println( "child thread " + new Date(System.currentTimeMillis()));
}
}).start();
System.out.println( "parent thread " + new Date(System.currentTimeMillis())); }}
Wednesday, October 3, 2012
Two guards riddle - one will always lie
You are imprisoned in a chamber with two doors as the only exit. One door leads to death by cancer, filled with complications and malpractice; the other door leads to riches of jewelry, money and fine clothing for the rest of your life. There are two guards standing before you: one guard always lies; the other always tells the truth. Of course, you don’t know their identities. You can ask only one question to save your life. What should you ask?
Solutilon :
This is a logic question and can be answered if one realizes that the TRUTH of a LIE is a LIE, and the LIE of a TRUTH is a LIE. You need one guard to give you the other guard’s answer. Knowing this one could ask a question like, “If I were to ask the other guard which door leads to freedom, what would he say?”
If you ask the guard who always tells the truth, he would tell you the other guard would point you to the door of death. If you ask the guard who always lies, he would tell you the opposite door of the truth-telling guard and point you to the door of death. In either case, both guards will point to the door of death so you should choose the other one
Solutilon :
This is a logic question and can be answered if one realizes that the TRUTH of a LIE is a LIE, and the LIE of a TRUTH is a LIE. You need one guard to give you the other guard’s answer. Knowing this one could ask a question like, “If I were to ask the other guard which door leads to freedom, what would he say?”
If you ask the guard who always tells the truth, he would tell you the other guard would point you to the door of death. If you ask the guard who always lies, he would tell you the opposite door of the truth-telling guard and point you to the door of death. In either case, both guards will point to the door of death so you should choose the other one
Subscribe to:
Posts (Atom)