This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.sachinhandiekar.oracle.aq; | |
import javax.jms.Destination; | |
import javax.jms.JMSException; | |
import javax.jms.MessageConsumer; | |
import javax.jms.Session; | |
import oracle.jms.AQjmsSession; | |
import oracle.xdb.XMLType; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.sachinhandiekar.oracle.aq; | |
import java.sql.Connection; | |
import java.sql.SQLException; | |
import javax.jms.JMSException; | |
import javax.jms.Message; | |
import javax.jms.Session; | |
import javax.sql.DataSource; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.jdom.JDOMException; | |
import org.jdom.input.DOMBuilder; | |
import org.jdom.output.DOMOutputter; | |
public class DocumentConverter { | |
public org.jdom.Document convertDOMtoJDOM(org.w3c.dom.Document input) { | |
DOMBuilder builder = new DOMBuilder(); | |
org.jdom.Document output = builder.build(input); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
class linklist | |
{ | |
private: | |
//structure containing a data part and link part | |
struct node { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Bubble Sort / String - Ascending order | |
*/ | |
#include <iostream> | |
#include <string.h> | |
using namespace std; | |
const int MAX = 10; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Note : Dial - *99# | |
Vodafone | |
Vodafone has several possible options for Pay As You Go SIM cards. Try each one in turn until the connection works. All use the same username and password. | |
APN (contract): internet | |
APN (PAYG): pp.internet | |
APN (PAYG): ppbundle.internet | |
APN (PAYG): smart | |
APN (PAYG): pp.vodafone.co.uk |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
import org.jinstagram.Instagram; | |
import org.jinstagram.auth.InstagramAuthService; | |
import org.jinstagram.auth.model.Token; | |
import org.jinstagram.auth.model.Verifier; | |
import org.jinstagram.auth.oauth.InstagramService; | |
import org.jinstagram.entity.users.basicinfo.UserInfo; | |
public class Demo { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Random; | |
public class Main { | |
public static long generateRandom(long min, long max) { | |
double rValue = new Random().nextDouble(); | |
return (long) ((rValue * max) + ((1.0 - rValue) * min) + rValue); | |
} | |
public static void main(String[] args) { | |
System.out.println(generateRandom(1, Long.MAX_VALUE)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.lang.annotation.Annotation; | |
import java.lang.reflect.Field; | |
import java.util.ArrayList; | |
import java.util.HashMap; | |
import java.util.List; | |
import java.util.Map; | |
import javax.persistence.PersistenceContext; | |
public class ClassInjector { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<plugin> | |
<groupId>org.apache.cxf</groupId> | |
<artifactId>cxf-codegen-plugin</artifactId> | |
<version>${cxf.version}</version> | |
<executions> | |
<execution> | |
<id>generate-sources</id> | |
<phase>generate-sources</phase> | |
<configuration> | |
<sourceRoot>${basedir}/target/generated/src/main/java</sourceRoot> |