Still a Ruby Newbie
I am not sure why, but the following code generated errors for me: @pieces = Piece.find(:all, :conditions =>”user = ’#{@session[:user].id}’”)
I had to save the @session[:user].id, like this… tmp = @session[:user].id @pieces = Piece.find(:all, :conditions =>”user = ’#{tmp}’”)
This probabaly has something to do with ruby saving @session[:user].id as an string instead of an integer. I am having a similar problem right now in another portion of my code, I think. In order to show an image, I had to save the instance variable in the controller and then access it in the view rhtml file using piece3.picture. Update: In the Progamming Ruby: The Pragmatic Programmer’s Guide, the author notes that,
When Ruby constructs this string object, it looks at the current value of name and substitutes it into the string. Arbitrarily complex expressions are allowed in the #{...} construct. As a shortcut, you don’t need to supply the braces when the expression is simply a global, instance, or class variable.
I am guessing that @session[:user].id returns a value, so that when you try to take the value of the value @session[:user].id, you get some garbage.
Music Overload

Songbird 0.1 has been released. The coolest thing that I have spied so far is that the songs available on a page can be displayed at the bottom of songbird or on the web playlist. Also, being able to browse else where while listening to the web playlist potentially could make for better use of music browsing web-time. This thing is not ready for prime time, but I am hoping that I can get a feel of whether or not separating my music browsing from my ‘other’ browsing will be useful. It’s open source, built from firefox. I know this really isn’t a directly related to web services, but I am having a total music overload breakdown. With pandora, odeo, last.fm, itunes, and musicmp3.ru I can’t keep up with the new music that I have, let alone continue to take in all of the recommendations provided to me by some of these cool web apps. And despite all of the music that if out there on the web, there are still albums that I have to buy “hard copies” of from amazon.com or other retailers.
Java Web Services
Steps for providing and consuming a web service with Java web services development pack.
Provide- Write and compile .jws file, place in (move to) the correct folder and access with a web browser
- Download wsdl file from .jws file in browser, run wsdl2java on it
- Find .java files generated by wsdl2java; compile them and move the .class files generated into Tomcat\axis\WEB-INF\classes… folder
- Write html page that POSTs to servlet file; place in servlet folder
- Write servlet file that extends HTTPServlet; compile and place in servlet\WEB-INF\classes\package…
- Place axis libraries in the lib folder in servlet\WEB-INF
◙ Have J2EE listen on port 8080 and Tomcat listen on 80.
◙ Double check spelling!!!

Is Java Dead?

Well, Java isn’t dead yet. And I venture to guess that it will be quite a while before its in the grave. Even Cobol is still alive… so, Java has got a ways to go. I think the fact that an article was written in 2003 on whether or not java was dead is an indication that it is moving into the later stages of its life cycle. But I
SeaSide
Evidently, there is another ruby web framework: Borges. Hopefully, it will be just as easy to use as rails. I haven’t downloaded this to try. It is difficult to justify trying something in place of rails when it is so easy to use. Borges is based on SeaSide. After listening to the Ruby on Rails podcast, I was under the impression that SeaSide was a framework for ruby, too, but from everything that I have read SeaSide is for smalltalk and Borges, which is very much like SeaSide, is for ruby.
Apache Axis
I have been trying to get Axis working on my machine for about a day. I had previously installed the Java WSDP with Tomcat (or as I now know the Tomcat Container). I don’t know if the container will work with Axis or not, but I was not able to get them to work together. My install of the Tomcat Container did not have the tomcat.exe file. But anyways I installed Tomcat again got Axis to work with the new version quickly. Note also that the Apache Axis site says that you have to have Apache web server installed, but Axis seems to be working without it. I think the idea is that you have to have a web server or an app server running on your machine.
Best instructions for installing Apache Axis
I haven’t tried this plugin, but here’s the link to a site that has a download and instructions for using Tomcat in Eclipse
PHP and Hyperlinks
I have moved into the 21st century and finally made my Extracurriculars page database driven. One interesting hang up that I ran into was including hyperlinks in the text that I saved in the database. The solution to getting the hyperlinks to print out was to take the quotes from the a href tags. So, a href= “http://www.google.com” became a href= http://www.google.com
Yes, this is incredibly simple, but if I don’t right down somewhere that I found this piece of information down, I won’t be able to remember it the next time I need it. I’ve always had a hard time remembering syntax.

