You can install Zune theme on Windows XP for free.
- Download the MSI installer from here.
- Run the installer.
- For XP x64, copy the theme from XP 32bit install in
/Resources/Themes/Zune to the corresponding folder in x64. - Select the Zune theme.
Just tips I want to remember, or share.
So, if you think you want Vista because it is pretty, don't get it. Stay with XP, and use all the free software out there that can give you just as many functionalities in Vista
File folder = new File(fileFolder);
// Returns true if all parent directories are created successfully.
// false otherwise.
folder.mkdirs();
URL url = new URL(urlStr);
URLConnection urlConn = url.openConnection();
// Set the timeout.
urlConn.setConnectionTimeout(timeout * 1000);
urlConn.setReadTimeout(timeout * 1000);
// Specify the MIME type.
// text/xml for SOAP
// text/plain, etc
urlConn.setRequestProperty("Content-type", contentType);
// Expected response MIME.
urlConn.setRequestProperty("Accept", contentType);
// Allow I/O for the connection.
urlConn.setDoInput(true);
urlConn.setDoOutput(true);
// Disable cache
urlConn.setUseCaches(false);
// No user interaction
urlConn.setAllowUserInteraction(false);
// To allow BASIC authentication
// create the Base 64 encoded credential.
String pwd = userId + ":" + password
sun.misc.BASE64Encoder base64Enc = new sun.misc.BASE64Encoder();
String encPwd = base64Enc.encode(pwd.getBytes());
urlConn.setRequestProperty("Authorization", "Basic" + encPwd);
urlConn.connect();
// Sending the request
PrintWriter writer = new PrintWriter(urlConn.getOutputStream());
writer.print(requestContent);
// Reading the response
StringBuffer sb = new StringBuffer();
String line;
while((line = in.readLine()) != null) {
sb.append(line + "\n");
}
toReturn = sb.toString();