#Cucumber + #Watir-WebDriver
"Cucumber + Watir-WebDriver are a match made in heaven" quote from http://watirwebdriver.com/
taylor price

祝日 / Permanent Vacation

PR's Tumblrdome
Xuebing Du
NASA

roma★

oozey mess
No title available

Discoholic 🪩
Keni

if i look back, i am lost

Love Begins
Show & Tell
wallacepolsom
todays bird
TVSTRANGERTHINGS

@theartofmadeline
art blog(derogatory)
I'd rather be in outer space 🛸
Misplaced Lens Cap
seen from India
seen from United States
seen from United Kingdom

seen from Malaysia
seen from South Korea
seen from Portugal
seen from India
seen from Indonesia
seen from United States
seen from Germany
seen from Türkiye
seen from United Kingdom

seen from Malaysia

seen from Netherlands

seen from South Korea
seen from Poland

seen from Netherlands
seen from Malaysia
seen from Germany

seen from Vietnam
@sanamud
#Cucumber + #Watir-WebDriver
"Cucumber + Watir-WebDriver are a match made in heaven" quote from http://watirwebdriver.com/
#TypeCast
package com.sanam;
public class TypeCast {
/**
* @param args
*/
public static void main(String[] args)
{
StringBuffer s = new StringBuffer();
s.append("Tumblr");
s.append(" I love you:");
System.out.println(s.substring(0, 5));
}
}
#Stringdatetodate
package com;
import java.text.SimpleDateFormat;
public class Stringdatetodate {
public static void main(String[] args) throws Exception
{
String d = "05-31-2013";
SimpleDateFormat sdf = new SimpleDateFormat("MM-dd-yyyy");
System.out.println(sdf.parse(d));
}
}
#Tomcat with JMS(ActiveMQ) & MySQL integration
<!-- Tomcat with JMS(ActiveMQ) & MySQL integration -->
Step 1 : Required Jars
--> Copy active-all-5.5.0.jar from apache-activemq-5.5.0 Home Directory.
--> Download javassist-3.8.0.GA.jar, mysql-connector-java-5.1.6-bin.jar, slf4j-api-1.5.11.jar, slf4j-simple-1.5.11.jar
--> Paste the above jars in Tomcat/lib Directory.
(Note :Dont copy this active-all-5.5.0.jar in your project library)
Step 2 : Copy activemq.xml file into your Tomcat/conf directory from apache-activemq-5.5.0.
Step 3: Configure JNDI ActiveMQ Settings & Database Settings in contex.xml file in Tomcat/conf Directory.
--> We should configure the properties in Resource Tag, Under <Context> root
Step 4: Add ActiveMQ reference in your application's messaging-config.xml file
--> Copy the following properties from context.xml file and configure in messaging-config.xml file
--> Find the following properties from context.xml file from <Resource> tags. and paste in messaging-config.xml files
1) Find the name property where type = "org.apache.activemq.ActiveMQConnectionFactory" and copy the value and paste in messaging-config.xml's <connection-factory>
2) Find the property type = "org.apache.activemq.ActiveMQConnectionFactory" from <Resource> tag in context.xml
and copy the name property value and paste in <connection-factory> in messaging-config.xml under <jms> tag
3) Find the property brokerUrl = "tcp://localhost:61616" and copy the value in messaging-config.xml's <inital-context-environment>.
4) Find the name property where type = "org.apache.activemq.command.ActiveMQTopic" and copy the value and paste in messaging-config.xml's <destination-jndi-name>
Step 5: Add url in your application's services-config.xml file
Step 6 End.
#simpledateformat
package com;
import java.text.SimpleDateFormat;
import java.util.Date;
public class dateform
{
public static void main(String[] args)
{
SimpleDateFormat sdf = new SimpleDateFormat("MMddyyyy");
// Date date=new Date();
System.out.println(sdf.format(new Date()));
}
}
#rowxcolumn[JAVA]
package com;
public class rowxcolumn
{
public static void main(String[] args)
{
System.out.print("* |");
for (int i = 1; i <= 5; i++)
{
System.out.print(" " + i + " ");
}
System.out.println();
System.out.print("__________________");
System.out.println();
for (int j = 5; j >= 1; j--)
{
System.out.print(j + " | ");
for (int k = 1; k <= 5; k++)
{
System.out.print((k * j) + " ");
if ((j * k) < 10)
System.out.print(" ");
}
System.out.println();
}
}
}
#Primenumbers[java]
package com;
public class primenumbers
{
public static void main(String[] args)
{
for(int i=1; i<=20; i++)
{
int count = 0;
for(int j=1;j<15;j++)
{
if(i%j == 0)
count++;
}
if(count <= 2)
System.out.println(i);
}
}
}
ROBOTS OR DINOSAURS?
Human
#Primenumbers[java]
package com;
public class primenumbers
{
public static void main(String[] args)
{
for(int i=1; i<=20; i++)
{
int count = 0;
for(int j=1;j<15;j++)
{
if(i%j == 0)
count++;
}
if(count <= 2)
System.out.println(i);
}
}
}