I just counted, and the latest version of my book on functional programming in Scala currently contains 90 short lessons and another 25 appendices. It’s going to grow a little more, but that’s where it is right now. I hope to have a first draft of it publicly available by the end of May.
Health (and other things) permitting, I hope to have a first draft of my book on Scala and functional programming (now titled, Learning Functional Programming in Scala) completed by the end of May.
It may only be in an alpha or beta state by then, but I’m debating about making it available as an Amazon ebook for a low cost at that time. I’ll be going back to work almost immediately after that, so if I don’t release it now, it may be another year before I can really finish it.
I was looking for a good way to access XML resources (like RSS feeds) in Scala, and I currently like the idea of using ScalaJ-HTTP to access the URL and download the XML content, and then using the Scala XML library to process the XML string I download from the URL.
This example Scala program shows my current approach:
Wow, it’s not even published yet, and people are searching for Scala Cookbook PDF download. That kind of freaks me out.
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 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.
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:
iPhone FAQ: I have an iPhone app in a waiting state; how do I get it to finish installing or updating?
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?