Quantcast
Channel: Pragmatic Forums | Posts by Bharat Ruparel
Browsing latest articles
Browse All 25 View Live
↧

I still feel stupid--where is the generate script documented? posted by...

Brian,You may want to look at the Advanced Rails Recipes book. As I am beginning to program in Rails professionally, I find myself turning more frequently to the Rails Way, Advanced Rails Recipes, and...

View Article


Not sure how to interpret this? posted by Bharat Ruparel @ Fri, 01 Aug 2008...

Thanks Jim. I am reading it now. I found the following post by Ola Bini to be particularly helpful. Before David’s screencasts, I could not really understand posts similar to these, I think I do now...

View Article


Not sure how to interpret this? posted by Bharat Ruparel @ Sat, 26 Jul 2008...

And this is on Memoization:http://ryandaigle.com/articles/2008/7/16/what-s-new-in-edge-rails-memoizationSounds familiar?

View Article

Not sure how to interpret this? posted by Bharat Ruparel @ Tue, 22 Jul 2008...

Thanks. So essentially it becomes a class method of Object (and inheriting classes) which returns the metaclass ‘class’ (or the ghost class) of type class?Check this...

View Article

Not sure how to interpret this? posted by Bharat Ruparel @ Tue, 22 Jul 2008...

David,I am maintaining a Rails App that is using backgroundDrb. It creates a helper file called dbrb_test_helper.rb in the test directory. Amongst other things, it has the following piece of code that...

View Article


Episode 2 - class

Thanks for the tip:I tried it, and it prints:BharatNext, to see how it differs when you defined a method in it and inlcude it in a class, I created the following test scenario: module Bharat p self def...

View Article

Episode 2 - class

Thanks. I am finding that I have to go back and review the episodes multiple times to get a better understanding of the concepts. Every time I do that, I take a few steps forward, but sometimes, it is...

View Article

Episode 2 - class

Hello David,You have this nice example of recommended use of class << self as follows: class Dave @count = 0 class << self attr_accessor :count end def initialize() Dave.count += 1 end end...

View Article


Example 9 from Episode 5 posted by Bharat Ruparel @ Fri, 27 Jun 2008 23:54:11...

Hello Tony,I am not sure what the answer is to your question because I cannot run the program with your module definition above. May be you have made more changes in the program below where remember...

View Article


Edisode 5 - Example 1 to Example 9 posted by Bharat Ruparel @ Fri, 27 Jun...

First, some feedback. This is excellent. I am posting below my ruby newbie critique for each and hope to get your feedback. Your were understandably more reserved in offering your preferences since you...

View Article

include private? posted by Bharat Ruparel @ Thu, 26 Jun 2008 20:11:27 +0000

Thanks for the quick reply. I understand what you are saying in the screen cast now.I am referring to episode 4 – use 3: it seems to me that this kind of use of include as shown in the code snippet...

View Article

include private? posted by Bharat Ruparel @ Wed, 25 Jun 2008 22:23:35 +0000

David,You keep saying that include is a private method throughout the screencssts (specifically episode 4 towards the end in the class_eval section). May be it is obvious, but I don’t get it. How can...

View Article

Episode 3 - my_attr_accessor exercise posted by Bharat Ruparel @ Wed, 25 Jun...

It seems like the code does not contain a solution to this exercise. I am taking the liberty of posting the snippet of solution as I understood your question for the purpose of...

View Article


Screencast on Meta Programming versus Programming Ruby posted by Bharat...

Just went through all the five episodes.Well done.An edisode or two by one of your experts on irb/rails console power use would be very useful to me.Regards,Bharat

View Article

Screencast on Meta Programming versus Programming Ruby posted by Bharat...

Hello David,I see that you have expanded the meta-programming chapter significantly in the third Edition. Also, you have released a screencast as well.My question relates to Metaprogramming – I have...

View Article


Chapter 17: Builder posted by Bharat Ruparel @ Tue, 10 Jun 2008 01:26:29 +0000

Thanks Christophe. How do you know this? Just by trial and error or is there a method to this madness which they call Internet Explorer?

View Article

Praise and suggestion posted by Bharat Ruparel @ Mon, 09 Jun 2008 17:34:33 +0000

Hello Matt,I can see where you are coming from. Like you, I am an experienced Java programmer, and have dabbled in Ruby for awhile. The Javascript/Prototype syntax does take some getting used to.To get...

View Article


Chapter 17: Builder posted by Bharat Ruparel @ Sun, 08 Jun 2008 21:50:56 +0000

Hello Christophe,The example scripts in your code do not work in Internet Explorer 7. They work fine in Firefox on my Windows XP machine. Do you know what might be the problem? Just try loading your...

View Article

Chapter 16 - AutoCompletion posted by Bharat Ruparel @ Sat, 07 Jun 2008...

Hello Christophe,Took a detour into Advanced Rails Recipes and Deploying Rails Applications and am back into your book. The auto-completion chapter has excellent examples as usual.On page 333 of the...

View Article

Welcome posted by Bharat Ruparel @ Sat, 07 Jun 2008 17:34:19 +0000

What I would love to see and pay $10.00 for gladly is how to be the power user of Rails Console. If you can produce a couple of in depth screen-casts on that topic, it would be great.Also, I had asked...

View Article

Section 9.4 Polling: Ajax.PeriodicalUpdater posted by Bharat Ruparel @ Sun,...

OK. Fixed the problem, but still would like to know why this fix works.I googled for PeriodicalUpdater not working in Internet Explorer and got a hit list that was extensive. the fourth thred on the...

View Article


Section 9.4 Polling: Ajax.PeriodicalUpdater posted by Bharat Ruparel @ Sun,...

Hello Christophe,I am in Ajax chapter now. I find the examples very useful. The example in section 9.4 where you get a Live Logged-in List is not working in IE7 for some reason? Works very well in...

View Article


dom example does not work in IE 7? posted by Bharat Ruparel @ Sat, 24 May...

Thanks Christophe for sharing your experience and knowledge. I live in Newton which is next to Boston. So, most likely, I will see you in the Ajax World in October.Regards,Bharat

View Article

dom example does not work in IE 7? posted by Bharat Ruparel @ Thu, 22 May...

Thanks Christophe for the quick response. That was it. For the sake of other readers: here is what Christophe is pointing out: var Staff = { nodes: [ { id: 'item1', name: 'ACME', children: [ { id:...

View Article

dom example does not work in IE 7? posted by Bharat Ruparel @ Wed, 21 May...

I am going through Chapter 7 of your book and the people example in the directory /code/prototype/dom/people.html does not seem to work in Internet Explorer? It works fine in Firefox.Here is what...

View Article

Browsing latest articles
Browse All 25 View Live