Thursday, September 30, 2010
Success of Avatar film
True success of avatar film is not in the matter of cash, its a success if anyone oppose cutting of a tree which is happening in front of their eyes.
Tuesday, June 22, 2010
Avatar - indian
I have seen the avathar movie. when humans and other planet ppl fight indians are accepting it. If a indian remake of Avathar film shows a Kerala person cutting trees in Tamilnadu or a Tamilnadu person cutting trees in Kerala or Karnataka then -- just imagine the conflicts and issues that will get raised.
Wednesday, December 12, 2007
Strange thing I learned today in java
Strange thing I learned today [12-12-07] is
This code wont works and my yesterday productivity is spoiled by this error
System.out.println("Data 3 from Synonym table: " + rs_synonym.getString(1) );
word[3]=rs_synonym.getString(1);
and I corrected the error by,
word[3]=rs_synonym.getString(1);
System.out.println("Data 3 from Synonym table: " + word[3] );
I modified almost all the parts of the project without thinking about the following reason J
Reason:
rs_synonym.getString(1) takes value out, so again if u assign value from it to word[3] , it will be error.
This code wont works and my yesterday productivity is spoiled by this error
System.out.println("Data 3 from Synonym table: " + rs_synonym.getString(1) );
word[3]=rs_synonym.getString(1);
and I corrected the error by,
word[3]=rs_synonym.getString(1);
System.out.println("Data 3 from Synonym table: " + word[3] );
I modified almost all the parts of the project without thinking about the following reason J
Reason:
rs_synonym.getString(1) takes value out, so again if u assign value from it to word[3] , it will be error.
Thursday, November 22, 2007
Execute Excel Macros from Java application
We are developing a Java Web application and one of our project features require an excel document to be opened over web page. Once the page (with excel) gets opened a macro should be run automatically and a chart should be shown to user.
Best Solution:
~~~~ ~~~~~~~~
since excel macro is vb code, since we can make a vb script file called from java and it calls excel macro
Example:
make a script file as content is
Dim objXL
Set objXL = CreateObject("Excel.Application")
With objXL
.Workbooks.Open ("File_Path")
.Application.Run "Macro_Name"
.Application.Quit
End With
Set objXL = Nothing
and save it as calling.vbs
in java you can call it as Runtime.getRuntime().exec("cmd /c start calling.vbs");
Best Solution:
~~~~ ~~~~~~~~
since excel macro is vb code, since we can make a vb script file called from java and it calls excel macro
Example:
make a script file as content is
Dim objXL
Set objXL = CreateObject("Excel.Application")
With objXL
.Workbooks.Open ("File_Path")
.Application.Run "Macro_Name"
.Application.Quit
End With
Set objXL = Nothing
and save it as calling.vbs
in java you can call it as Runtime.getRuntime().exec("cmd /c start calling.vbs");
Labels:
application,
execute Excel,
from Java,
Macros,
programming
Wedding Query............. (SQL Style)
Wedding Query............. (SQL Style)
CREATE PROCEDURE MyMarriageBridegroom Male (25) ,Bride Female(20) ASBEGINSELECT Bride FROM India_ BridesWHERE Father-In-Law = 'Millionaire' AND Count(Car) > 20 AND House Status ='ThreeStoreyed'AND BrideEduStatus IN (B.TECH ,BE ,Degree ,MCA ,MBA) AND Having Brothers= Null AND Sisters =Null
SELECT Gold ,Cash,Car,BankBalanceFROM Father-In-Law
UPDATE MyBankAccout SETMyBal = MyBal + FatherInLawBal
UPDATE MyLockerSET MyLockerContents = MyLockerContents + FatherInLawGold
INSERT INTOMyCarShed VALUES('BMW')
END
GO
Then the wife writes the below query:
.
..
.
.
.
..
.
.
.
.
.
..
..
.
.
..
.
.
.
.
.
.
.
.
.
.
.
.
DROP HUSBAND;
Commit;
CREATE PROCEDURE MyMarriageBridegroom Male (25) ,Bride Female(20) ASBEGINSELECT Bride FROM India_ BridesWHERE Father-In-Law = 'Millionaire' AND Count(Car) > 20 AND House Status ='ThreeStoreyed'AND BrideEduStatus IN (B.TECH ,BE ,Degree ,MCA ,MBA) AND Having Brothers= Null AND Sisters =Null
SELECT Gold ,Cash,Car,BankBalanceFROM Father-In-Law
UPDATE MyBankAccout SETMyBal = MyBal + FatherInLawBal
UPDATE MyLockerSET MyLockerContents = MyLockerContents + FatherInLawGold
INSERT INTOMyCarShed VALUES('BMW')
END
GO
Then the wife writes the below query:
.
..
.
.
.
..
.
.
.
.
.
..
..
.
.
..
.
.
.
.
.
.
.
.
.
.
.
.
DROP HUSBAND;
Commit;
Subscribe to:
Posts (Atom)

