Showing posts with label The Ruby Programming Language. Show all posts
Showing posts with label The Ruby Programming Language. Show all posts

Tuesday, December 10, 2013

O'Reilly Media book: Jump Start Sinatra

Jump Start Sinatra:
This short SitePoint book provides readers with a fun and yet practical introduction to Sinatra, a framework that makes web development with Ruby extremely simple. It's not intended to be a completely comprehensive guide to the framework or an in-depth Ruby tutorial, but will quickly get you up to speed with Sinatra and give you the confidence to start experimenting on your own.

The book is built around a real-life example project: a content management system. It's a fun and easily understandable project that is used to demonstrate the concepts outlined in the book in a practical way.

This is a clear, approachable and very easy-to-follow book that will get you to to speed with Sinatra in no time.

The Pragmatic Bookshelf: Build Awesome Command-Line Applications in Ruby 2

Build Awesome Command-Line Applications in Ruby 2:
Speak directly to your system. With itssimple commands, flags, and parameters, a well-formed command-lineapplication is the quickest way to automate a backup, a build, or adeployment and simplify your life. With this book, you'll learnspecific ways to write command-line applications that are easy touse, deploy, and maintain, using a set of clear best practices andthe Ruby programming language. This book is designed to makeany programmer or system administrator moreproductive in their job. Now updated for Ruby2.

Wednesday, December 4, 2013

last night's online e-book purchases through o'Reilly Media

  • PacktPub--Instant_Nokogiri.20130826122153.pdf (ruby xml)
  • TidBITS--Take_Control_of_Your_Online_Privacy.20130827161623.pdf
  • nostarch--Book_of_GIMP.20130128094115.pdf
  • nostarch--Perl_One_Liners.20131101112448.pdf (perl)
  • rockynook--Testing_Cloud_Services.20130826101828.pdf (testing)


Monday, October 21, 2013

PacktPub book: Nokogiri by Hunter Powers

http://www.packtpub.com/article/nokogiri
In this article by Hunter Powers, author of the book Instant Nokogiri, you will get an insight about Nokogiri the open source library to parse XML and HTML in Ruby.

Friday, August 23, 2013

SitePoint book: Jump Start Rails

Jump Start Rails:
Jump Start Rails provides you with a fun and yet practical introduction to Rails, an incredibly popular framework that makes it possible to quickly develop incredibly powerful web applications with Ruby. This short book covers Rails 4, the latest version of the framework, and while it's not intended to be a completely comprehensive Rails guide or an in-depth Ruby tutorial, it will quickly get you up to speed with Rails and give you the confidence to start experimenting on your own.

The book is built around a real-life example project: a personal portfolio site. It's a fun and easily understandable project that is used to demonstrate the concepts outlined in the book in a practical way.

This is a clear, approachable and very easy-to-follow book that will get you to to speed with Rails in no time.

Saturday, September 8, 2012

openSUSE-12.2 : upgrading again …

  • downloading the 4.7GB DVD ISO image from a mirror – funny to watch a download rate of 1.92M/s with wget; my last installation was with the network CD, but this time I am giving the DVD installation another try, as I want to implement this upgrade on 3 boxes within a rather short time after the release of 12.2, so there should only be a few upgrades necessary and most packages will get installed from the DVD anyway
  • checking the download: sha1sum openSUSE-12.2-DVD-i586.iso
  • cutting the DVD – doing this on my Mac using Disk Utility – OS X refused to mount the DVD afterwards; but the PC booted from it (etc.) w/o complaints
  • installing 12.2 on the Eee Box
  • rcxdm failed; I removed /etc/X11/xorg.conf, after that I am able to start up rcxdm successfully; apparently /etc/X11/xorg.conf.install is also quite suitable /etc/X11/xorg.conf – it uses the screen with 1024x768 at least
  • logging into the system with ssh works as usual for root but not for my personal account – solved! they changed something in sshd_config, from now on only .ssh/authorized_keys counts
  • installing 12.2 on the NEO
  • installing 12.2 on the ASUS notebook
  • installing 12.2 on a "x86_64-suse-linux" VirtualBox VM with Mac OS X as host
  • [now] …
Of course I need these, and of course I have notes on them here on the blog:
  • $ zypper install gcc
  • $ zypper install patch
  • $ zypper install libcurl-devel
  • perl: $ perlbrew available # perl-5.16.1 (needed "--force --notest"), perl-5.14.3-RC1 (???), perl-5.14.2 (broken on my x86_64-suse-linux), … – it does not list all available ones, only the most recent ones on all major releases – here are all of them: www.cpan.org/src/5.0/ – you may want to pre-download a few of them ("$ perlbrew download perl-5.14.1"), and they go here: $PERLBREW_ROOT/dists/
  • perl: $ perlbrew install-cpanm; perlbrew install-patchperl
  • perl: migrate CPAN modules using perlbrew and cpanm (https://metacpan.org/module/perlbrew)
  • ruby: rvm

Wednesday, August 29, 2012

Ruby: can I name the class of a particular variable? is there something like "is_a?"?

What is a simple / elegant way in Ruby to tell if a particular variable is a Hash or an Array? - Stack Overflow

The answer is of course: yes, you can.
And: yes, exactly.

XmlSimple treats elements with attributes as Hash, w/o attributes they are simply String.

"googlecl-0.9.12 -> googlecl-0.9.13" brought a change, where a specific element now does not have attributes any longer, and this broke my code, that reads "google contacts list … --fields=xml".

Solved one of my two urgent home software problems.

Tuesday, July 10, 2012

The Pragmatic Bookshelf: Deploying with JRuby

Deploying with JRuby:
Deploy using the JVM's high performance while building your apps in the language you love. JRuby is a fast, scalable, and powerful JVM language with all the benefits of a traditional Ruby environment. See how to consolidate the many moving parts of an MRI-based Ruby deployment onto a single JVM process. You'll learn how to port a Rails application to JRuby, get it into production, and keep it running.

Friday, May 11, 2012

O'Reilly Media book: Exploring Everyday Things with R and Ruby

Exploring Everyday Things with R and Ruby:
Programming is not just for geeks. If you’re curious about how things work, and want to get programmatic solutions to everyday problems, this intriguing book will help you find what you’re looking for. By using some fundamental math and simple Ruby and R constructs, you’ll learn how to model the problem and work toward a solution.

Sunday, January 15, 2012

Perl's Dancer is a port of Ruby's Sinatra

Joel Berger's blog

Interesting!

on 2012-01-03 Google changed the XML for their address books, and that breaks jruby

At first I thought, it breaks XmlSimple or REXML, but everything is fine with MRI ruby, just jruby (up until 1.6.5.1) is concerned.

Before then Google Contacts had their German "umlauts" (ä, ö, ü, Ä, Ö, Ü) and the German "sz" i.e. "ß" represented as "ä" (for ä) etc.

In the middle of that day they changed that, and started showing the characters themselves (in UTF-8).