Random Snippet of Code and Life

Archive for the 'Computing' Category


23
Nov

Hubbub 07 by nuStart - 2007-11-23 Stockholm, Sweden

Tomorrow I will be covering live from Nymble, KTH from 1pm onwards for Hubbub 07. The organisation I am involved in -nuStart has organised this nice little conference on the convergence of various technologies.
From the site description itself.. :
This conference will touch on:
* The ubiquity of FMC - in particular the […]

Popularity: 19% [?]


13
Apr

Converting entries in ArrayList to DataTable

Let say you want to convert all your entires in an ArrayList and place them inside a DataTable for the purpose of populating a DataList, how to do it? For eg. We create an ArrayList and load it with a bunch of integers
ArrayList list = new ArrayList();for(int x=0; x < 10; x++)
{
list.add(x);
}
So we have an […]

Popularity: 11% [?]


01
Apr

Generics Feature in Java Programming Language

Generics Feature in Java Programming Language
A major drive to the success of Object Oriented Programming Languages (OOP) is the support for code reusability.
Generics were introduced to allow us to provide abstraction over datatype.
For eg, during the use of a ArrayList,
ArrayList arrayList = new ArrayList();
arrayList.add(new String(“abc”));
String a = (String) arrayList.iterator().next();
The code above is perfectly fine; […]

Popularity: 6% [?]


29
Mar

Connecting to a SOAP web service server in Java (Part 2)

There are several things we need to do in the java client.
1) Create an URLConnection to the endpoint
2) Set the HttpRequest Header parameters
3) Send the XML file over (either by writing the whole file line by line thru the outputstream or read in the XML file from a FileReader and write the bytes over, we […]

Popularity: 8% [?]


29
Mar

Connecting to a SOAP web service server in Java (Part 1)

I was trying use one of the services provided by http://www.webserviceX.NET last night. It was supposed to be an relatively task, but I end up getting http 500 and 403 errors without know why.
Whats error code 500 and 405 anyway?
This is what wikipedia says
500 Internal Server Error
405 Method […]

Popularity: 7% [?]

Random Snippet of Code and Life is is proudly powered by Wordpress
Navigation Theme by GPS Gazette