Articles

Encapsulation in JavaScript

JavaScript does not allow you to define a method as public or private. This is a limitation users need to get around to, because in real life you don’t want to expose all methods as public method.

Here is a simple implementation of the case where you want to verify input code.

How to run Selenium RC with Ruby codes

1. Download seleniumRC from –> http://bit.ly/j_sel_rc

2. Unzip the file

3. commans prompt>java -version  –> Version should grater than 1.6.0_5

4. command prompt go to –> C:\selenium-remote-control-1.0.1\selenium-server-1.0.1>java -jar  selenium-server.jar

Now Selenium runs on 4444 port.

5. cmd prompt>gem install selenium-client

6. Open new command prompt and goto ruby program path.In Ex, c:\test>ruby code.rb

7.  code.rb

require “selenium”
require “test/unit”

Double Shot #559

I’m putting in way too many late nights these days.

My Tools of the Trade – 2009

I originally posted this list in mid-2008, and it seems about time for an update. So, here are the tools I tap most often these days in building web sites and doing my other work:

Hardware

For the most part, I haven’t upgraded hardware in the past year. The desktop box is starting to feel its age, and I’d like to treat myself to an upgrade, but I can’t quite justify the cost yet.

Open File Fast updated for JEdit 4.3pre17

This is update for all you JEdit users who updated your beloved JEdit to 4.3pre17, did plugins update and found that OFF is not working anymore.

Newest JEdit offers update of ProjectViewer plugin to version 2.9.1 which is quite not compatible with 2.7.x line. There were some changes in the PV API which broke OFF. I’ve updated OFF to work with new ProjectViewer and now you can use it again. This is only compatibility relase, no new features.

Bloopsaphone on Shoes!

What I’ve Earned and Learned From Writing A Popular(ish) Ruby Book

begruby-edition-2-cover.gif A few days ago I received the latest in a long line of royalty statements for my book, Beginning Ruby (as published by Apress). Long time readers might recall that Ruby Inside was started principally to promote the book, but turned into so much more that the book took a back seat.

Attempted peace

I’ve been toying around with the idea for a small website lately, but never actually got around to do it. In an attempt to clear out my personal to do list I finally motivated myself to start yesterday, and I have to say the following combination of tools is not only insanely efficient, but also really fun to work with:

Switching to Gemcutter

So GitHub dropped gem support. No problem – Gemcutter, the drop-in replacement, is simple to use. (And now my gems get canonical names!) I’ve pushed my Rails gems (ActiveUrl, Subdomain Routes and Paged Scopes) to the new host, and updated the README installation instructions.

Ruby Metaprogramming New Batch Announced

Articles | Rails Fire

Articles

Want to create a Sinatra Web Service?

With Sinatra you can quickly create your own tiny web-applications in Ruby and write lots of small services.

Problem definition

To upload a text file to a Sinatra web service and have its sorted content returned.

How to upload a file from the command line?

We shall use cURL, a tool and library designed to give you a user-friendly but low-level interface to making HTTP requests. cURL also supports many other protocols related to uploading and downloading files.

JSONQuerying Your Rails Responses

In which I show how to use a Ruby implementation of JSONQuery to test JSON in Rails apps.

I’m writing an application right now that is really JSON heavy. Some of the functional tests are cucumber and some of them are just rails functional tests using shoulda.

The Animal raises its head

You can find the first sample-animal.rb over there at github. Deficits of this version:

Talk: Git Basics, Ariejan de Vroom

Summary

The Git Basics talk is geared towards people who want to use Git more effectively on a daily basis. Driven by real-life examples different git related techniques will be covered. From basic branching and tagging to how to manage/organise your repository. Special attention goes to hosting an open source project on GitHub effectively.

Autotest Revisited

I'm currently in the process of setting up a Rails 2.3 stack from scratch, and a few things have changed since the last couple of projects I worked on were tooled up.

Interesting Ruby Tidbits That Don’t Need Separate Posts #26

The latest installment of the series of posts crammed with random Ruby links, articles, and resources to kick off your week!

gogaruco.png

In Memoriam: George Carlin, 7 Words You *Can* Say on Twitter

Hate cuss words? Avert thine eyes! (What are you doing reading this blog, though, I'd be interested to know. Oh right. You already looked away. I'm just holding a conversation with myself. Ladeeda...

George Carlin is one of my heroes: hilarious, self-deprecating, edgy without being bitter, envelope-pushing without resorting to valueless shock, remarkably poetic, a dancer with dirty words, and, of course, in possession of an amazing voice I could listen to all day.

He's also dead. Goddamnit.

Talk: Mobilize Your Rails Application, Brendan G. Lim

Summary

Learn how to effectively take your Rails application into the mobile space using existing gems and plugins.

Details

Mobile communication and interaction shouldn't just be limited to voice. There are many ways to effectively take advantage of mobile technology that can help us build better Rails application tailored to portable devices.  Taking your application into the mobile space is easier than one would think.

Upgraded to iPhone OS 3.0 and running out of battery fast?

After upgrading my girlfriend’s iPhone 3G to OS 3.0 recently, I noticed that the iPhone’s battery was getting depleted really quickly. I’d left it overnight with Wifi, 3G, Bluetooth, Push Notifications all off, and the battery went from 80% to a jaw-dropping OMGWTFBBQ 10%.

I attributed it to the recent jailbreak (I’ve already removed the jailbreak trying to figure out this problem) at first. I only realized something was really wrong when the iPhone’s battery started draining while it was charging via USB!

String is a number?

I’ve been fishing around to see if Ruby has any way of telling whether a String object contains a valid number. The is_a? method looked like it might be a winner for a little while…

Ruby Challenge | Rails Fire

Ruby Challenge

Paul Barry Winner RPCFN #8

In this brief interview, Satish Talim of RubyLearning talks to Paul Barry of USA, winner of the eighth Ruby Programming Challenge For Newbies.

Guillaume Petit Winner RPCFN #6

In this brief interview, Satish Talim of RubyLearning talks to Guillaume Petit of France, winner of the sixth Ruby Programming Challenge For Newbies.

Guillaume Petit

Aleksey Gureiev Winner RPCFN #4

In this brief interview, Satish Talim of RubyLearning talks to Aleksey Gureiev of Ukraine, winner of the fourth Ruby Programming Challenge For Newbies.

Aleksey Gureiev

Charles Feduke Winner RPCFN #2

In this brief interview, Satish Talim of RubyLearning talks to Charles Feduke of USA, winner of the second Ruby Programming Challenge For Newbies.

Charles Feduke

RPCFN: Average Arrival Time For A Flight (#2)

Ruby Programming Challenge For Newbies

RPCFN: Average Arrival Time For A Flight (#2)

By Chris Strom

Thank you for the very encouraging response to the first-everRuby Programming Challenge For Newbies (RPCFN)“. The second Ruby challenge is from Chris Strom.

RPCFN: Shift Subtitle (#1)

Syndicate content