A tool that I use for testing my web is Cucumber. Cucumber is a tool for Behavior Driven Development (BDD). I think it's really cool because it's easy to use and easy to understand. Scenarios in Cucumber will be written like speaking language not programming language. This helps non-technical people such as designers and business owners understand the scenario better. I will show you an example of Cucumber.
First, you write the scenario
Define steps, tell Cucumber what you want it to do.
Run "cucumber features"
Yea it's Done!
If you install Cucumber and webrat and got errors like " iconv is missing. try 'port install iconv' or 'yum install iconv' "
or " libxslt is missing. try 'port install libxslt' or 'yum install libxslt-devel' "
You have to install libxml2-dev and libxslt1-dev using
"sudo apt-get install libxml2-dev libxslt1-dev"
As you can see, My blog just have RSS feed. @wiennat asked me that why I don't have RSS. So I did it . It's very simple and easy to create RSS feed. But if you google it using keyword "rss", you will get many unrelated results. Also, I used Rails 2.3.2 and many examples used lower version and it didn't work with 2.3.2. For you guys who use will_paginate, creating only .rss.builder file is not enough because it will show only posts in that page. You can define new method in the controller and map the route to it. Example
"articles_controller.rb" def feed
@articles=Article.find(:all)
end
Remember that the order of map.connect is important. The top most has higest priority. So, you have to put this line before "map.connect ':controller/:action/:id". Good luck with RSS.
About my iphone, today I cannot use internet from my iphone. I searched and found that it might because my old iphone setting. I disable GPRS in my old one and when I sync it with the new one it still disable. It's very easy to fix this problem just reset it.
I got new TV yesterday. I watched a game show called "I survived a japanese game" show from ABC last night. The show combine japanese game show with reality show. They did very good job, it's very funny and I couldn't stop watching it. Moreover, today I got my iPhone 3GS. I haven't activated it yet. I plan to do it tonight.
About internship, I presented the application that I've been developing for 4 weeks. The clients like it and want to use it. In the past the clients use spreadsheet to do one task. My manager think that it can be changed to database application. So, she assigned this job to me. We designed the database together and I developed the application. I've done two types of aplication. One is Access application and another one is web application with ASP.NET. They do the same thing, have the same function. My manager like the web one more than the Access one. However, we cannot go with it because the server doesn't support ASP.NET.
Finally, I have my own blog. I posted the first entry today because it's my birthday. Now, I'm doing internship in Pittsburgh. I have to wake up about 5.30 am. to catch a bus at 6.25. In the first week, the bus came on time almost everyday. And I can catch another bus that leave downtown at 6.35. After the first week, it always come late about 10-15 minutes. If it's late just 10 minutes, it's ok because I can catch a bus at 6.45. But the last 2 days, I had to run to catch the bus at 6.45 because it arrived downtown at 6.45. I arrived the company about 7.25. I have to work 8 hours a day and I have 30 minutes lunch break. So, I leave the company about 4 pm, walk about 10 minutes to bus stop and arrive home about 5 pm.
Althought the company that I'm working for isn't a software company, I learn many things about software and web development. I'm working on one project which is developing web application with ASP.Net. It's easy to develop a web using ASP.Net. However, after I used Rails to develop this blog, I think I like Rails more.