download

Scala - How to download URL contents to a String or file

Scala URL FAQ: How do I download the contents of a URL to a String or file in Scala?

I ran a few tests last night in the Scala REPL to see if I could think of different ways to download the contents of a URL to a String or file in Scala, and came up with a couple of different solutions, which I'll share here.

Download URL contents to a String in Scala

The best way I could think of to download the contents of a URL to a String looks like this:

Mac iPhone photos - How to download (import) iPhone photos

Mac iPhone photos download FAQ: How do I download iPhone photos to my Mac? I assumed I could import them with iTunes, but I can't seem to do anything with them from iTunes.

A shell script to download a URL (and test website speed)

I've been having a problem with a GoDaddy website lately (see my GoDaddy 4GH performance problems page, and in an effort to get a better handle on both (a) GoDaddy website downtime and (b) GoDaddy 4GH performance, I wrote a Unix shell script to download a sample web page from my website.

To that end, I created the following shell script, and then ran it from my Mac every two minutes:

Waiting iPhone apps - how to install, update, reinstall

iPhone waiting apps FAQ: I have an iPhone app in a "waiting" state; how do I get it to finish installing or updating?

How to download iPhone photos to Windows XP

iPhone photos and Windows XP tip: How to download iPhone photos to a Windows XP computer.

Okay, this was surprisingly hard. I just went to download all my iPhone photos to my Windows XP computer, and assuming this worked with the normal iTunes sync process, I started the 'sync', waited a very long time, and then at the end, all my photos were ... wait ... none of my photos were downloaded from my iPhone to my Windows XP system. What the heck?

Hyde - Download Page

Hyde for Mac is once again available, and it's now free!
 

JSP calendar - Source code for my web calendar (JSP) project

Update (August, 2010): This website no longer runs under my earlier Java servlet/JSP blog code, so the JSP calendar I used to have running here is not running any more. That being said, I am still sharing my JSP calendar source code, as it still works just fine.

My JSP calendar source code

As I've mentioned in other blog posts, I like my servlet/JSP calendar approach for the following reasons:

Learn how to download applets and decompile Java class files - Part 2

Update

This article is a little old now, so I've started a new series (as of April, 2010) on Java decompilers and obfuscators. Please follow that link for much more recent information. The content below is kept here only for legacy reasons.

Java decompile - How to download applets and decompile Java class files - Part 1

Update

This article is a little old now, so I've started a new series (as of April, 2010) on Java obfuscators and decompilers. Please follow that link for much more recent information. The content below is still valid, but mostly kept because it discusses how to download Java applets.

Java URL example - Download the contents of a URL

Java URL download FAQ: How can I download the contents of a URL using Java?

Note: It's 2013 now and this code is a little old, but hopefully it will still get you pointed in the right direction.

In some Java applications you'll want to download the contents of a URL across a network. For example, I've written two applications that do this regularly.

Syndicate content