10.31.07

TMail 1.1.0 Gem Released

Posted in E-mail, Ruby at 9:00 am by Željko Filipin

stamp-sm.jpg

I have been using TMail for testing e-mail functionality of web application that I test for a long time. But, development of that library stopped at 2004. Today I found out that it is again in development. Take a look at it’s web site and RubyForge project site.

10.30.07

Everyday Scripting with Ruby Arrived

Posted in Books, Ruby at 11:27 am by Željko Filipin

pa300022.JPG

Long long time ago, I was reviewer of Brian Marick’s Everyday Scripting with Ruby. On February 2, 2007 Pragmatic Programmers said they would send me a free copy, but it did not arrive for a long time. I exchanged a few e-mails with them, and today the book arrived. I did not even have time to unwrap it yet. :)

10.25.07

warning: toplevel constant File referenced by IO::File

Posted in Ruby at 3:27 pm by Željko Filipin

I want to delete a file from Application::Mail.download. The problem is that inside Application module, File.delete calls Application::File.delete.

Run this code and you will get error message:

Exception: undefined method `delete' for Application::File:Class

I could rename Application::File to something else, but I created Application module because I wanted to name my classes as I wish without conflicts with Ruby classes.

One solution is to specify that I want to call IO::File.delete.

But then I get this warning:

warning: toplevel constant File referenced by IO::File

How to ignore warning thread at ruby-forum.com provided the solution to removing warning. Add this at the beginning of the file:

But, I want to see other warnings. I know I can change the value of $VERBOSE to nil just before I call IO::File.delete and then change it back. That just feels wrong. Why am I getting that warning after all? Why do I get the warning after calling IO::File.delete? Am I doing something wrong?

10.23.07

Watir 1.5.3 Released

Posted in Watir at 4:45 pm by Željko Filipin

Bug fixes and minor cleanup.

Read more at Watir wiki.

10.18.07

How Do I Get REXML Version Number?

Posted in Ruby at 9:00 am by Željko Filipin

10.17.07

Internet Explorer Puts map Tag inside head Tag

Posted in Bugs at 5:08 pm by Željko Filipin

I have ported Support for XPATH in Watir by Angrez Singh to wiki format. Take a look: XPath Support.

I was trying example from What to do for elements not having class in Watir section and for this HTML:

Watir always returned nil:

I asked Angrez am I doing something wrong and he replied to check if generated HTML (that is rendered in the browser) is the same as source HTML.

Brilliant!

There seems to be a bug in Internet Explorer 7 (IE). If you create HTML file with above HTML (only that code, do not add anything else) IE puts map tag inside head tag.

ie.PNG

Firefox 2 puts it inside body tag, of course.

ff.PNG

The workaround is to put map tag explicitly inside body tag.

10.16.07

Watir Tutorial

Posted in Watir at 11:09 am by Željko Filipin

Woo hoo! Done! (For now.)

wiki.openqa.org/display/WTR/Tutorial

10.15.07

Troubleshooting SMTP Issues with Telnet

Posted in E-mail at 9:00 am by Željko Filipin

I have really bad memory. I have to write this down. I just know I will forget it, but need it later.

I had to find out why one user did not receive any mail from us. I tried the usual things, but all looked fine. My developer suggested to troubleshoot it with telnet. I found good article about troubleshooting SMTP issues. What I did:

  • open command prompt
  • find server
    >nslookup -querytype=MX [domain]

    Non-authoritative answer:
    [domain] MX preference = [integer], mail exchanger = [subdomain].[domain]

  • connect to that machine with telnet
    >telnet [subdomain].[domain] 25
  • good
    220 SMTP Proxy Server Ready
  • not so good
    554 Transaction Failed Listed in connection control deny list

10.14.07

Selenium Is Better Than Watir?

Posted in Humour, Watir at 9:20 am by Željko Filipin

Do not trust me, see it for yourself: Selenium is better than Watir.

10.13.07

Exploits of a Mom

Posted in Humour at 9:00 am by Željko Filipin

Great comic. Via Rosie Sherry’s delicious account.

« Previous entries