Thursday, December 21, 2006

Yet Another Tool To Program In Workflow

Nice interface - it looks vaguely familiar actually. I wonder if Coghead intend to woo the enterprise crowd and do a Save-as BPEL ;-)

If a developer using a Coghead application can switch (with a click on a bookmarklet, and authentication) into inspect/debugging mode on the current application's current page that could be swell.

choonkeat Wed, 11 Oct 2006 09:10:00 -0500



Source: http://blog.yanime.org/articles/2006/10/11/yet-another-tool-to-program-in-workflow
To unsubscribe from this feed, click here
To manage other subscriptions, click here

Powered by RssFwd
Hosting sponsored by Publicaster - Powerful Email Marketing Solutions by Blue Sky Factory, Inc

HpricotForms

Since the introduction of Hpricot, the snazzy and fast Ruby parser for HTML, I've been meaning to give it a whirl - the API looks yummy. Now, as I'm doing more testing and validation stuff at work, such a need has come. Back in Javaland, when I need to navigate or test web apps by code, submit forms and do other web bot stuff, I turn to HtmlUnit. The api is simply awesome and won me over immediately. So if you're still stuck in Java, do give it a look.

Anyways, though the whole testing harness of Rails is a godsend, I started to miss some of those HtmlUnit goodies - pulling out a Form object from a visited page, setting the fields values and submitting it.. and getting back a Page. So, this is what I've come up with for use in functional tests:

def test_login_logout
page = get :new # first, let's get to the login page
form = page.forms.first # next, get a reference to the form
# form.field_names => ["user[login]", "user[password]"]
# form.field_names returns you the input fields
# available in the form

form["user[login]"] = "Joe"
form["user[password]"] = "topsecret"
page = form.submit(self) # after setting the form values, submit it
# 'page' now references the page after login
assert_response :success
# page.links # returns you an array of links found on the page

page = page.links("@id='signout'").click(self)
# locate the sign-out link by its html id
# and click it
assert_response :success
end

Can't say its a replica of HtmlUnit... but it does meet my needs for now. Notice we didn't need to explicitly handle things like session or where the form submits to. It simply goes to where its supposed to go - as rendered by the view. And yes, as you do submit() and click() you might actually cross different controllers. HpricotForms handles that for you.

The main thing I like about this API is that the field names in the form are real. If you're careless like me, and modify your action templates (.rhtml files) but forgot to change both your controller and test, traditionally your test will still pass because you were passing in parameters explicitly, e.g.

post :login, {:user => {:login => "Joe", :password => "topsecret"}}

even though your HTML form fields were changed to "account[login]" and "account[passwd]". But HpricotForms will raise an exception when you try to set values into fields that does not exist in the rendered form.

HpricotForms doesn't add new assert_xxx methods to your test environment since I personally think we've had enough already. It merely deals with navigation. I'm sure programmers out there are capable enough to do their own assertions when they need it.

script/plugin install http://choonkeat.svnrepository.com/svn/rails-plugins/hpricot_forms 

Note: It appears that HpricotForms only work on Edge Rails, with simply_restful plugin. This is due to the routing changes. Works with Rails 1.1.4 and Edge Rails. Feedback is welcome.

Update

Added form.extend!(partial) to allow extending the formfields  with a separate HTTP request. i.e. if your form appends fields via xmlHttpRequest, you can now say

form = page.forms.first
form.field_names # => ["email[0]"]
# the original form only has 1 field
form["email[0]"] = "email1"

form.extend!(get :on_security_options_clicked) do
form.field_names # => ["email[0]", "ssl"]
# the new fields from the partial is
# appended into our form object.
form["ssl"] = "true"
end
page = form.submit(self) # the combined form will be submitted

Also, to help kick off the writing of code, form.to_code will print out a series of variable assignment satements based on the default values from the form, e.g.

form = page.forms.first
puts form.to_code

# this prints lines of Ruby code like:
#
# form["from"] = "sender"
# form["email[0]"] = "email1"
# form["options[]"] = ["html", "read-receipt"]

choonkeat Wed, 19 Jul 2006 07:26:00 -0500



Source: http://blog.yanime.org/articles/2006/07/19/hpricotforms
To unsubscribe from this feed, click here
To manage other subscriptions, click here

Powered by RssFwd
Hosting sponsored by Publicaster - Powerful Email Marketing Solutions by Blue Sky Factory, Inc

Wednesday, December 20, 2006

watching tv makes one smarter

I learn something new today!

Not 'new' ways to deal with work situations/ projects/ briefs. But actually new 'nothing in particulars" ... or more commonly known as general knowledge.

And all from TV! After almost working non stop for the past few months, I've been home early for the past 2 days - early in my perspective around the range of 8-10pm. I learnt tonight that Icelanders have a delicacy that dates back to their Viking days that they eat in the month of Feb ( i think) every year -- rotten shark meat and sour milk preserved testicles.

I look forward to watching more more more tv when we move in to our place next Jan. :D

Considering its one of my favourite actitivites, 2nd only to sleep, I shan't have any problems catching up on the best how-to make myself comofrtable in front of the tv for hours. BUT no tv shows starring mediocre-corp stars.

 

nana Wed, 20 Dec 2006 23:08:00 +0800



Source: http://feeds.feedburner.com/~r/nana/~3/64189463/watching-tv-makes-one-smarter
To unsubscribe from this feed, click here
To manage other subscriptions, click here

Powered by RssFwd
Hosting sponsored by Publicaster - Powerful Email Marketing Solutions by Blue Sky Factory, Inc

Sunday, December 17, 2006

Meeting Bingos

nana Sun, 17 Dec 2006 19:29:00 +0800

* Attachment, 32K image/jpeg: Download



Source: http://feeds.feedburner.com/~r/nana/~3/62717089/meeting-bingos
To unsubscribe from this feed, click here
To manage other subscriptions, click here

Powered by RssFwd
Hosting sponsored by Publicaster - Powerful Email Marketing Solutions by Blue Sky Factory, Inc

Saturday, December 16, 2006

BBS Documentary - 'The Artscene' Episode [.MPEG] [771 mb]

A sample episode from the amazing BBS Documentary, a 3 DVD and 8-episode documentary created by Jason 'Textfiles.com' Scott which is '...actually eight documentaries about different aspects of this important story in the annals of computer history'. This episode 'tells the rarely-heard history of the ANSI Art Scene that thrived in the BBS world, where art was currency and battles waged over nothing more than pure talent', and if you like it (and the fact that Jason has kindly Creative Commons licensed it!), please go order the entire documentary forthwith.

Mon, 25 Sep 2006 21:25:20 -0500

* Attachment, 50K application/x-bittorrent: Download



Source: http://www.legaltorrents.com/bit/bbs-documentary-artscene-episode-mpg.torrent
To unsubscribe from this feed, click here
To manage other subscriptions, click here

Powered by RssFwd
Hosting sponsored by Publicaster - Powerful Email Marketing Solutions by Blue Sky Factory, Inc

Odd Job Jack Episode Episodes 1-13 animated show assets [8.3gb]

The full, gigantic (Episodes 1-13) release of every piece of art used in this season of the Canadian animated comedy Odd Job Jack. Every character, prop, and background from every episode plus tutorials and other support material. All free to hack, use, remix under a CC license. Why: We love animation and we just know you do too. We're proud of Odd Job Jack and we've put lots of work into our show. Our art deserves to live beyond broadcast and who better to give a free gift to than the entire planet? When: Every Monday during our 13 episode broadcast we will release a new set of files.

Wed, 25 Oct 2006 19:25:20 -0500

* Attachment, 31K application/x-bittorrent: Download



Source: http://www.legaltorrents.com/bit/odd-job-jack-compilation.torrent
To unsubscribe from this feed, click here
To manage other subscriptions, click here

Powered by RssFwd
Hosting sponsored by Publicaster - Powerful Email Marketing Solutions by Blue Sky Factory, Inc

Monday, December 11, 2006

How Art Can Be Good

"[T]he most important consequence of realizing there can be good art is that it frees artists to try to make it."

Ad: "Hackers & Painters" by Paul Graham




Source: http://www.paulgraham.com/goodart.html
To unsubscribe from this feed, click here
To manage other subscriptions, click here

Powered by RssFwd
Hosting sponsored by Publicaster - Powerful Email Marketing Solutions by Blue Sky Factory, Inc

Tuesday, December 05, 2006

Avoid Edge Cases by Designing Up Front

By the time they reach the coding stage, many web projects are a tangle of exceptions -- and that can make standards-based development a nightmare. Better planning may be exactly what you need to avoid markup derangement or, even worse, a dysfunctional product.

 

Hide Your Shame: The A List Apart Store and T-Shirt Emporium is back. Hot new designs! Old favorites remixed! S, M, L, XL. Come shop with us!

nospam@example.com (Ben Henick) Fri, 01 Dec 2006 11:20:39 GMT



Source: http://www.alistapart.com/articles/avoidedgecases
To unsubscribe from this feed, click here
To manage other subscriptions, click here

Powered by RssFwd
Hosting sponsored by Publicaster - Powerful Email Marketing Solutions by Blue Sky Factory, Inc

User-Proofing Ajax

Ajax offers the ability to avoid both needless browser behavior like page reloads and useful browser behavior like error handling. When good web apps go bad, Peter Quinsey's guidelines and techniques can help you and your users stay informed and productive.

 

Hide Your Shame: The A List Apart Store and T-Shirt Emporium is back. Hot new designs! Old favorites remixed! S, M, L, XL. Come shop with us!

nospam@example.com (Peter Quinsey) Thu, 30 Nov 2006 09:07:57 GMT



Source: http://www.alistapart.com/articles/userproofingajax
To unsubscribe from this feed, click here
To manage other subscriptions, click here

Powered by RssFwd
Hosting sponsored by Publicaster - Powerful Email Marketing Solutions by Blue Sky Factory, Inc

Monday, December 04, 2006

Wanted: A video of you talking about why you love Basecamp (Reward: $250)

We’re looking for video clips of Basecamp customers telling us why they love Basecamp. If we use your clip to promote the product, you’ll get a $250 voucher for Basecamp.

What should I say?
Tell us why you love Basecamp, how you use it, how it’s helped you, what you would say to recommend it to a friend, and/or anything else you’d like to share. No fancy production skills required — what you have to say is what matters here. Also, screenshots aren’t necessary. We want your story, not a tour of the product. A simple shot of your head while you talk is fine.

How long should it be?
Clips need to be under three minutes.

How do I submit a video?
Option 1: Use a file uploading service like MediaFire (unlimited file size), DropSend (250 MB limit), or YouSendIt (100 MB limit). Send it to svn [at] 37signals [dot] com.

Option 2: Upload the clips to your own server and send the link to svn [at] 37signals [dot] com.

Also, make sure to include your Basecamp URL.

Important: Please do not email the video clip directly to us. Also, do not use a video-sharing site like YouTube.

Is there a deadline?
No, but videos that get here sooner rather than later may have an advantage.

37signals Mon, 04 Dec 2006 19:41:00 +0000



Source: http://www.37signals.com/svn/posts/143-wanted-a-video-of-you-talking-about-why-you-love-basecamp-reward-250
To unsubscribe from this feed, click here
To manage other subscriptions, click here

Powered by RssFwd
Hosting sponsored by Publicaster - Powerful Email Marketing Solutions by Blue Sky Factory, Inc

Who is Jeff Craig and what is Sixty Second Preview?

I’ve long been fascinated with movie reviewer Jeff Craig of Sixty Second Preview, a man who seems to love bad movies. About “Swordfish,” he said, “One of the most breathlessly entertaining releases of the summer. You’ll be pinned to your seat by Swordfish.” “The Chamber” was “an explosive, gripping drama!” And “Free Willy III” was breathtaking.

So who is Jeff Craig and what is Sixty Second Preview? NPR tried to track him down but couldn’t.

The Kevin Pollack/Sheryl Lee Ralph vehicle, titled “Deterrence,” wasn’t one of the top ten of the year, it was one of the most important films of our time. Now, there’s a movie lover. So we naturally wanted to speak to him, but we couldn’t find “Sixty Second Preview” — not any trace of it anywhere we looked. We don’t even know what medium it is.

Roger Ebert also asked, “Has anyone ever actually seen Jeff Craig of ‘Sixty Second Previews’ at a movie? For that matter, does anyone know what ‘Sixty Second Previews’ is? I ask in all sincerity.”

Little Rock native Ron Breeding has an answer:

I once worked for a radio station that aired “Sixty Second Previews,” a daily modular program one minute in length. Jeff Craig is the host of the thing, but since the program comes on CD a month at a time, he apparently hasn’t actually seen most of the movies — thus “previews,” not “reviews.” Still, his gushing about an upcoming movie he hasn’t yet seen ends up being used as blurbs in movie ads.

Matt Mon, 04 Dec 2006 14:39:00 +0000



Source: http://www.37signals.com/svn/posts/139-who-is-jeff-craig-and-what-is-sixty-second-preview
To unsubscribe from this feed, click here
To manage other subscriptions, click here

Powered by RssFwd
Hosting sponsored by Publicaster - Powerful Email Marketing Solutions by Blue Sky Factory, Inc

Saturday, December 02, 2006

The 10 most popular newspaper typefaces

The 10 most popular typeface families in American newspapers according to a study by Ascender Corporation:

1. Poynter
font

2. Franklin Gothic
font

3. Helvetica
font

4. Utopia
font

5. Times
font

6. Nimrod
font

7. Century Old Style
font

8. Interstate
font

9. Bureau Grotesque
font

10. Miller
font

Related: Newspaper Body Text [Design With Reason]

Matt Fri, 01 Dec 2006 15:50:00 +0000



Source: http://www.37signals.com/svn/posts/140-the-10-most-popular-newspaper-typefaces
To unsubscribe from this feed, click here
To manage other subscriptions, click here

Powered by RssFwd
Hosting sponsored by Publicaster - Powerful Email Marketing Solutions by Blue Sky Factory, Inc