» tagged pages
» logout

sorted by: recent | see : popular
Content Tagged with Ruby + How-To

Rails + Gettext Crash Course

There is a quite good crash course and introduction into using of the gettext library with ruby-on-rails. Described reasons why use gettext, some initial techniques, solutions, links. Interesting stuff.

technology: dzone.com: tech links

Getting IronRuby Up and Running

I wanted to have a little walk-through on getting IronRuby up and running. I am normally a C# guy and this is usually a C# blog, but I think that exposure to dynamic languages is very important. Since .net is starting to get a bit dynamic (with IronPython, Boo (kinda), IronPython, and VB.net 10 (kinda)), I think that developers are going to start seeing this stuff more and more. Because of this I have created this little walk-through, but this month if you are in the Richmond VA area we are going to have our Meet and Code dinner (on the 31st of July 2008) on dynamic languages.

technology: dzone.com: tech links

Tracks screencast: How to get things done

This great application helps you to get more organized (Something I definitely needed!). Another good thing about it is that it requires a minimum of knowledge to be installed using the BitNami installer.

technology: dzone.com: tech links

Ruby's Open Classes - Or: How Not To Patch Like A Monkey

Ruby's Open Classes are powerful - but can easily be misused. This article looks at how to minimize the risk of opening classes, alternatives, and how other languages provide similar capabilities.

technology: dzone.com: tech links

Writing a compiler in Ruby bottom up - step 10

ach step so far has included minor bits and pieces to test specific features. But it's hard to get an idea for how complete a language is becoming without writing something a little bit more substantial. In this case I've chosen to write a "text-mangler" that will "parse" an s-expression like (Lisp like) syntax and turn it into a Ruby script that will run the compiler with the equivalent program.

technology: dzone.com: tech links

6 Optimization Tips for Ruby MRI

MRI is slow, we all know it, but knowing the internals can help you optimize.

technology: dzone.com: tech links

Adding Google Maps To Your Rails Applications

Although there's nothing preventing you from linking to Google's mapping JavaScript API and referencing the library directly from your views, jumping between Ruby/Rails syntax and JavaScript can quickly become a tedious affair. The YM4R/GM plugin remedies this issue nicely, abstracting the API calls through Ruby's familiar object-oriented syntax. With it you can do everything from render simple maps to build complex maps complete with custom markers, information windows, and clusters for facilitating the rendering of large numbers of markers.

technology: dzone.com: tech links

MVC: How to write controllers

4 advices on how to write controllers in a typical MVC application. Rails is used for code examples.

technology: dzone.com: tech links

Easily switch between Rails development sites with Phusion Passenger

Helpful article on how to use Passenger to manage all your Rails sites in development

technology: dzone.com: tech links

Learning Ruby on Rails with Heroku Screencast Series

In this first episode of Learning Ruby on Rails with Heroku: 1. Introduction 2. Goal of this screencast series 3. What is Heroku? 4. Getting an account 5. Creating your first Ruby on Rails application 6. Basic navigation of Heroku

technology: dzone.com: tech links

Redesign your site in place using Rails custom mime types

After reading Ben Smith’s classic iPhone on Rails 2 article and implementing our own iPhone site after the jump to Rails 2, I was struck at how easy it is to create you own custom mime types to serve up different content to different devices. When the time came to redesign the main MindBites site, I didn’t look forward to a lot of branching and merging, no matter how easy Git makes it. Then it hit me. Why not create a custom mime type and serve up a new layout and views for beta users? Let’s take a look at how we’re doing just that.

technology: dzone.com: tech links

Cheap Tricks XV - Static Collections in Java

Here's another cheap trick around reducing the common need for a static block populated list

technology: dzone.com: tech links

Using jQuery with Ruby on Rails

By default, Rails comes packed with the Prototype javascript library and the effects library, Scriptaculous. While this is all well and good sometimes you want a change. I personally prefer jQuery to prototype. I don’t have any beef with prototype, infact I used it for about a year before even getting into rails, but I just prefer the jQuery syntax and selectors.

technology: dzone.com: tech links

Splunk your distributed logs in EC2

Index and search distributed (or local) logs with ease - a look at Splunk with a simple Ruby-based TCP logger.

technology: dzone.com: tech links

Not going dark

Rubyforge is now hosting an “initial pre-release of a preview of an alpha of an undocumented proof-of-concept” of the rewrite gem. Rewrite restricts things like andand or try to your code and your code alone. Sure, if you introduce a bug in your code, you may break things that directly depend on your code. But if you introduce “try” using rewrite instead of modifying Object, you will not reach out across your project and break something entirely unrelated that happens to have defined its own version of try in a completely different way.

technology: dzone.com: tech links

Settng Up The Templates for Ruby on Rails

A template can be defined as 'A master page that dictates the look and feel of the whole website.' In other words, a template contains information about the layout as well as placeholders for dynamic data, such as navigation, and menu. The definition provides us with the points on which we will be working, layout and navigation.

technology: dzone.com: tech links

How Ruby on Rails and REST go together

Rails 2.0, the latest version of the framework for the Ruby language, is made for doing REST applications, says Mike Clark, author of the newly released "Advanced Rails Recipes: 84 New Ways to Build Stunning Rails Apps".

technology: dzone.com: tech links

Cache it all

I recently redid my personal web site, at welton.it. Wanting to be quick about it, and make the look and feel a bit more uniform than it has been in the past, I hacked together some pages in Rails. Despite this being sort of a "killing a fly with a bazooka" situation, I've been doing lots with Rails, so it was quick to use. Here's the thing, though: Rails is definitely overkill, as the site is basically static. I don't need to calculate anything or fetch stuff from a database - I just wanted a reasonably good template system, and I am quite comfortable with Rails these days.

technology: dzone.com: tech links

Tutorial for installing and setting up LiteSpeed and a Rails App

Start to finish process of installing the LiteSpeed webserver for a Rails application.

technology: dzone.com: tech links

Fuzed and EC2: Scale Rails big and fast!

First of all, this post is about 2 things that rock. One is Fuzed, the new Erlang web glue that runs Rails on the Erlang-based Yaws web server, put together by Tom Preston Warner and Dave Fayram of Powerset. The other is Amazon EC2, which is a big, sneakily expensive nerd playland. I became interested in Fuzed at the talk I heard on it at RailsConf by Tom and Dave.

technology: dzone.com: tech links

Fractal Programming or Layers of Code

This is a continuation of my previous posts describing layers of code written in different programming languages. I have thought about the things involved for a while, and had several discussions with people about it. There were some parts that I didn't describe as well as I thought in my posts, and I will try to do better in this one.

technology: dzone.com: tech links

HUGE file upload with Ruby On Rails and Adobe FLEX

I spent 10 years now in web-based development and I never came across anything worse than trying to post big files to a web server.. Not only the problem of not being able to finish the upload because you kill the server but also the horrible wait for the operation to finish without any clue about the real status.. but now I have the final and robust solution for this task (with a cute and precise progress bar)!! This example is obviously realized with RoR, but probably it’s not too hard to implement with PHP.

technology: dzone.com: tech links

Small Things, Loosely Joined, Written Fast

Thanks to everyone who came out to my talk yesterday at RailsConf. That has to have been my favorite speaking engagement of the last year. Great crowd at a great show.

technology: dzone.com: tech links

Setting up a Rails 2.0 Project without a Database

I needed to create a Rails application that wasn't going to use a database backend. In my case I was going to be using REST services to access the data, so I had no need for database integration.

technology: dzone.com: tech links

A Useful Example in Java, Ruby, and Groovy

We've been using Java and Ruby for work, and we've recently been asked to look more toward Groovy where we were using Groovy, so I rewrote a useful little iconv script which we use to re-encode large volumes of data (which the GNU iconv doesn't seem to want to handle).

technology: dzone.com: tech links

Connecting to MySQL using SSL encryption in Ruby on Rails

If you're connecting to your database from remote clients, then it's high time you started encrypting! Otherwise, you have only yourself to blame if your data gets intercepted.

technology: dzone.com: tech links

Ruby EventMachine - The Speed Demon

Hands on tutorial / look at Ruby EventMachine, and the evented server architecture.

technology: dzone.com: tech links

21 Ruby Tricks You Should Be Using In Your Own Code

In this post I present 21 different Ruby tricks, from those that most experienced developers already use every day to those that are more obscure. Before writing this piece, for example, I had no idea about trick number 2! Whatever your level, a refresh may help you the next time you encounter similar scenarios.

technology: dzone.com: tech links

Automating the Development Environment

A simple guide that teaches you how to automate your development environment to a 1-click affair using the latest Mac OS X technologies.

technology: dzone.com: tech links

Writing a compiler in Ruby bottom up - step 6

Sixth in my series on writing a compiler in Ruby: "How about some deferred evaluation and anonymous functions? Lambdas, or anonymous functions, can be passed around like values and called at your convenience (or not at all). Generally, they can access variables from the surrounding scope that gets "bound" to the function as an environment that allows it to pass state. That's a closure. What we're going to do this time is not going to bring full closure support, but it's the start, and we'll get to full closures down the road."

technology: dzone.com: tech links

Fabio Akita advises a young Ruby beginner

Paresh, a 16 year young Ruby beginner asks Fabio Akita some Ruby related questions and seeks his advice. Fabio's answers is a good read.

technology: dzone.com: tech links

Yahoo! Web Services in Ruby

Yahoo! Web Services are a set of online services that can be used by developers when creating “mashups”. These services are like a gateway to the huge amount of available data at Yahoo! The services are provided through a REST-based API, which is well documented at Yahoo! Developer Network. The author, José Carlos Monteiro is a Portuguese Ruby enthusiast.

technology: dzone.com: tech links

JRuby - Or how I manage to write Ruby in a strict corporate environment

A quick summary on working in a tied down development environment at your work place and how JRuby and NetBeans can bring Ruby into your daily work flow.

technology: dzone.com: tech links

Import Gmail Contacts using Ruby on Rails

Tutorial on importing Gmail contacts with Ruby on Rails and the new Google Contacts API

technology: dzone.com: tech links

Turbocharge your string keyed hashmaps

This post gives you a small tip which just might make a world of difference to your java hashmap’s (and perhaps even for the overall application) performance. This trick has been inspired by the “symbol” construct in Ruby language.

technology: dzone.com: tech links

Writing a compiler in Ruby bottom up - step 4

Fourth in a series on writing a compiler targeting x86. This part shows how to define functions, and adds a mechanism for adding a runtime library.

technology: dzone.com: tech links

Page 1 | Next >>