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

RPCFN | Rails Fire

RPCFN

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.

RPCFN: Interactive Fiction (#9)

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

RPCFN: Broadsides (#7)

RPCFN: Mazes (#5)

RubyLearning wishes all its readers and their friends and families a happy, healthy 2010. Thanks to everyone for the support and encouragement this year. It’s been a fun and rewarding year and we do appreciate all that you contribute to this site.

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

RPCFN: Short Circuit (#3)

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.

Felipe Elias Philipp Winner RPCFN #1

In this brief interview, Satish Talim of RubyLearning talks to Felipe Elias Philipp of Brazil, winner of the first-ever Ruby Programming Challenge For Newbies.

Felipe Elias Philipp

Syndicate content