Showing posts with label ruby. Show all posts
Showing posts with label ruby. Show all posts

Friday, 3 August 2012

Ruby iOS Development Tool

Smashing Magazine has this story on the RubyMotion development tool. This is an iOS development tool which allows you to develops apps using the Ruby language instead of Objective C. The tool is Mac OS X only and costs $199.



There are more and more of these Objective C alternative tools coming out. I will try to mention the reasonably price options. Some that I have seen are ridiculously expensive.

Monday, 30 June 2008

O'Reilly PDF Wonderfulness and Lighter Laptop Bags

As I have hopefully blogged about a little bit, I have been working a lot lately with Ajax stuff and writing a lot of my course content in HTML. Consequently, I am constantly bouncing from Javascript to CSS to HTML to Java to PHP, etc.... Add to this, I have never been that great at remembering syntax. So I often carry around a number of the O'Reilly quick reference books with me. Cause I know what I need to do, but I can't remember correct idiom (References to Monty Python and the Holy Grail welcome). :)


So I often find myself carrying around a bunch of books that I don't really want to carry around. At the Rails conference this really began to bug me cause I'm sure my books were heavier than my laptop.


So at said Rails conference I chit chatted with the nice O'Reilly lady at their booth. This problem came up during the conversion and she mentioned that a number of their books were available as PDFs.


Well I looked into it this weekend and sure enough, most of their books (especially the new ones) have a PDF version. I found replacements for all my quick references: the CSS, HTML, Regex, JavaScript, and SQL. In addition, I found PDF versions of the PHP Cookbook and Mats' Ruby book. My laptop bag has just dropped about 2 or 3 pounds!


The quick references cost between $7 and $10 each. The regular books from $20 to about $35, only a slight discount off the print book. I do think O'Reilly should consider lowering the price of the PDFs a bit. I think they would sell better.


The PDFs themselves have no passwords or DRM on them. Plus they are indexed and searchable!!! Woo hoo! So if you want to lighten that load, head over to their store and check it out: http://oreilly.com/store/



Thursday, 12 June 2008

Ruby on Rails 2 and Netbeans 6.1 Tutorials

My coworker Asok ran across these Rails 2.0 tutorials on the Netbeans site. Haven't gone through them yet, but I intend to:

  1. Creating a Ruby Weblog in 10 Minutes

  2. Building Relationships Between Rails Models


And here is an older tutorial on Rails 1.2 with Netbeans 6.0.
Getting Started with Ruby and Rails

Wednesday, 11 June 2008

Rails Conference 2008 Review

Well I meant to write this last week, but have been busy with work since I got back.


>First let me state right off that when it comes to Rails, I'm still a noob. I have dabbled with it a bit, but I have not done a project in it yet. In my opinion, writing a tool or something is the only way to really learn about a technology. My JPA and Dojo projects have taken all my time since January, so there was no time to spend on Rails before the conference.



The attendees seemed to be mostly independent software consultants or employees of startups. Very nice people and very friendly. I definitely got a backend/database sort of vibe from folks. Let us just say no one wanted to to discuss the in and outs of Dojo. lol.



The main focus of the conference seemed to be scaling. That is understandable since Rails seems to get a lot of grief about not being scalable. The good news is, based on what I saw, that Rails does in fact scale fine with the right know how and equipment. The best example is probably yellowpages.com. The lead developer for that project gave a presentation on their setup. Sadly, that was the only scaling presentation I found all that useful or informative.

The highlights for me were:



  • Creating Successful Side Projects - This session was hosted by Geoffrey Grossenbach. A panel discussion by some people who have turned some side projects into full time jobs. It seemed like all of them were trying to solve a problem they had and it turned out other folks had the same problem. Thusly, sites and businesses were born. github.com, peepcode.com, there were others, but that is all I can remember.

  • CRUD doesn't have an S in it - By Stephen Midgley a developer of a travel site hutz.com. Talked about searching with Rails when you have a non trivial dataset. Very interesting talk.

  • JRuby - A couple of presentations on this. Enjoyed both of them.

  • Keynotes - DHH and Kent Beck are great speakers. If you ever get a chance to hear them speak, go.




That pretty much sums things up. I don't think I will attend another conference for a while. After having time to reflect, I think my time would have been better spent renting a cabin someplace, spending half a day hacking code, and half a day hiking. lol.



P. S.,

Before I wrote this post, I Googled around a bit to see if there were any other blog posts on Rails Conf. All I found was some posts about the GemStone S64 VM. I didn't attend that session, its probably a great product. The link is to the SlashDot story on the product. Check out the comments, some of them are very funny. :)

Friday, 30 May 2008

At Rails Conference Thru Monday

I'm at the Ruby on Rails conference thru Monday. Will try to post here and there when I run across interesting stuff.

Thursday, 27 March 2008

New Ruby Dev Site at Sun

Sun has a new landing site for Ruby developers. For all things Sun and Ruby check out:
http://developers.sun.com/ruby/

Tuesday, 4 March 2008

uninitialized constant RedCloth (NameError)

OK, here is another bone headed mistake I made that I will post about in hopes of helping other poor souls who run across the problem. This morning I decided to play around a bit with the RedCloth library that comes with Ruby 1.8 on Mac OS X 10.5 Leopard. So I wrote a simple program in Ruby and tried to run it. Every time I did I got:

uninitialized constant RedCloth (NameError)



And here is my program if you are interested:




#!/usr/bin/ruby
require 'rubygems'
require 'RedCloth'
doc = RedCloth.new "h2. test header

just some text

another para"
puts doc.to_html



Pretty simple. (RedCloth, by the way, is a processor for Textile. Kind of a simple yet powerful way to mark up text like you would in a wiki.) Well I know the RedCloth Gem is in my path and is installed. I know my code should work, but it doesn't. What is the problem?



Turns out I unfortunately named my test file "redcloth.rb". Turns out the Gem file is named "RedCloth.rb" and is in the path and can be executed from the command line. If you don't know, OS X is case insensitive like Windows XP, so those names are equivalent. Thusly, Ruby faithfully tried to load my local script file, which doesn't define any of the needed objects. Therefore, the error. Naming the file "rctest.rb" fixes the problem.



So I hope this little note helps someone else out in the future. So if you get a: "uninitialized constant XXXXXX (NameError)", make sure your file name isn't the same as a the Gem file.

Wednesday, 20 February 2008

Thursday, 7 February 2008

The Future of Languages

This link is a little old, but I came across it at a work presentation and thought I should blog it for future reference. This is a blog post from O'Reilly detailing the trend in book sales for 2007 for programming languages. Not surprisingly, only two languages are showing growth, Ruby and Javascript. Something to keep in mind when improving your skills.

Thursday, 3 January 2008

Java the next Cobol?

Infoworld posted this story last week, Java is Becoming the New Cobol.



Maybe it is, maybe it isn't. With technologies like JRuby, which allow you to run Ruby code in a JVM, I think Java technology will be around for a long time. Whether Java the language will be the most popular I'm not sure. Languages are constantly evolving and falling in and out of favor. When I was in school, C was king, then came C++ to replace it, and then Java to replace that.



As scripting languages go, Ruby is the best one I have seen so far. And if you just look at what new tech books are coming out, it is definitely on the upswing. Probably not a bad idea to pick it up. :)

Wednesday, 7 November 2007

NetBeans 6.0 Great Ruby IDE

Finally found some time to play around with Ruby on Rails on NetBeans 6.0 beta 2 very late last night. I downloaded the Ruby specific version since I still need to use 5.5.1 for work. All I can say is wow!

You get a complete Rails development environment (except for the database) in a 20 meg download. Everything runs fast and loads fast. I had the Hello World! app created and running in about 5 minutes. Very impressive. In the past, I have run into a number of roadblocks just getting rails setup, especially on OS X. If you have been itching to learn Rails, this is the tool you need to start with.

Friday, 26 October 2007

JRuby on Rails?

Rails has been running on JRuby for some time. I know the development team has used that as one of their benchmarks for Ruby compatibility. But check out this post from one of my fellow Sun employees. Basically what the graph shows is over time, Rails runs about the same speed on Java as it does on C. Very interesting.

Add to that great Ruby support in Netbeans 6.0 (due out in a month) and the ability to deploy Rails applications to Java application server. Things get very interesting indeed! Methinks Ruby will be getting a closer look in the enterprise.