RSS ? Recent Blog Posts

Blogs » Archive for June, 2006

Do you use video taping to your advantage?

by Andrew Neitlich

I recently videotaped myself and a self-defense pro for my latest educational web site.

While the content of the video was fine, I was pretty nauseated at how I looked. Aside from the weight I’ve gained in the past two years, my facial expressions were stiffer than Al Gore’s. Painful though the experience of watching this video was, I learned a lot about how to improve my facial expressions – starting with relaxing and smiling more in front of others. I used to be good at that, but not on this day.

Anyway, it’s a great idea to get yourself videotaped once in a while, to see how you come across to others. You might be surprised to find that your intent (come across as a brilliant, happy, enthusiastic person) doesn not match your impact.

 

Jun 19, 2006 News Wire

by Kevin Yank

  • Using XStream to forward JSON to a browser
    XStream is a Java library for easily converting Java object hierarchies to XML data. But now a specialized version of the library has emerged that can output data in JSON format, easily readable by JavaScript code in an AJAX application.
    (tags: )
  • Sun joins Open Ajax Initiative and Dojo Foundation
    Though I remain skeptical at some of the nonstandard approaches being taken by the OpenAJAX Alliance, Sun has joined the initiative, which can only be a good thing. Sun has also announced its sponsorship of the Dojo Foundation.
    (tags: )
  • Microsoft AJAX framework forges ahead
    Despite some reliability issues with certain components of Microsoft’s Atlas framework for AJAX, Microsoft is committed to releasing the framework with the next version of Visual Studio. Some of its ideas have security experts worried, however.
    (tags: )
  • Google AdWords Help Center: What is ad scheduling?
    Google launched the new ad scheduling feature for AdWords on Thursday. “With ad scheduling, a campaign can run all day, every day, or as little as 15 minutes per week. A campaign can also run and pause several …
 

Insta-block with Symbol#to_proc

by Tim Lucas

Something that might have slipped your radar in your Ruby readings is Symbol#to_proc, something that’s been in Rails since 0.14.4.

Using this nice little tidbit of Ruby tricky you can simplify code such as:

articles.collect { |a| a.title }
articles.sort { |a| a.created_at }

to

articles.collect(&:title)
articles.sort(&:created_at)

…and just in case you’re wondering why &:ruby_is_the_new_black doesn’t work in the beautiful ruby shell script you just wrote, it’s because Symbol#to_proc isn’t a standard Ruby thang. To quote Mauricio Fernandez who noted it’s recent inclusion in the upcoming Ruby 1.9:

Symbol#to_proc: first discovered by some anonymous Japanese Rubyist (fairly certain), rediscovered by Florian Groß (I saw that happen back when I wasted my time on #ruby-lang), then popula rized by Pragdave and Rails, finally adopted officially. It’s been a long journey.

“That’s nice,” you say, “but I still don’t really understand what all this Proc and block stuff is about.” Well, let me indulge you in some Ruby block mumblings.

I think the best way to describe a block if you’ve come from web-design-land is to think of it like an anonymous function in Javascript.

For example, the following piece of Ruby:

socceroos.each do |s|
s.congratulate
end

is the equivalent to the following Javascript:

socceroos.each(function(s) {
s.congratulate();
})

The block passed to …

 

DRY your Migrations

by Tim Lucas

Use Ruby’s method_missing madness to add some DRY to your ActiveRecord migrations. Rails 1.1 introduced Object#with_options which allows you to remove duplication for method calls with common options, but wouldn’t it be nice if we could use this in migrations too…

 

Jun 16, 2006 News Wire

by Kevin Yank

  • Copy ‘n paste between Excel and Flex
    Based on Google Spreadsheets, which amazingly supports pasting spreadsheet content from Excel, this technique uses a hidden text field to support pasting spreadsheet data into a Flex DataGrid.
    (tags: )
  • Oh, Apollo!
    After the dismal failure of Macromedia Central, Adobe is gearing up for another run at the desktop application development space. Apollo will let you build cross-platform desktop apps using your web development skills (HTML, Flash, PDF).
    (tags: )
  • ZeroOne Community Talks
    Training company ZeroOne is hosting a series of free online seminars for developers on topics related to ColdFusion, Flex and Flash. The first is on June 28th. Registration required!
    (tags: )
  • Model-Glue:Unity Public Beta 1
    Model-Glue is a framework for building ColdFusion web applications using the Model View Controller (MVC) design pattern.
    (tags: )
  • Ajax anti-patterns
    A list of five things not to do when developing AJAX applications.
    (tags: )
  • The Adobe and Builder AU Flex Developer Derby
    For Australian developers, build the coolest Flex application and win a plasma screen or an Xbox 360.
    (tags: )
  • Tech·Ed Offers Previews of Powerful Tools
    A good overview of what Microsoft is showing off for …
 

Fill out our developer survey and win a 20″ LCD monitor

by Kevin Yank

Dell 20Are you involved in the technical aspects of Web Development?

Tell us what technologies and development practices you use for a chance to win a 20″ wide-screen LCD monitor from Dell.

The results of the survey will be used to guide the development of sitepoint.com, our blogs, forums and books.

As a bonus, you’ll get a copy of the full survey results, so you can see what your peers (and competitors) are doing! Complete the survey before July 15th for your chance to win.

 

Jun 15, 2006 News Wire

by Kevin Yank

  • ZK 2.0
    A toolkit for writing AJAX applications in Java, which generates the client-side code (JavaScript and HTML or XUL) for the user interface automatically. The demo seems a little sluggish and the docs a little rough, but otherwise pretty slick.
    (tags: )
  • Eight Problems That Haven’t Changed
    This excerpt from Jakob Nielsen and Hoa Loranger’s new book “Prioritizing Web Usability” looks at eight usability problems that have been known for years but continue to be a frequent problem today.
    (tags: )
  • AOL-Netscape Launches Massive “Digg Killer”
    Netscape hitches its star to a Digg-like community-powered news service. With the next version of digg.com featuring general categories slated for launch in three weeks, the competition will be interesting to watch.
    (tags: )
  • eBay Adds Blogs, Wiki
    eBay is launching a wiki powered by JotSpot for its users to share information about the auction site. Other new features to the site will include user blogs and telephone alerts (U.S.-only for now).
    (tags: )
  • What users hate most about Web sites
    A nice top five of annoying design mistakes, if a bit on the obvious side.
    (tags: )
  • The HTML Report Engine
    A …
 

Jun 14, 2006 News Wire

by Kevin Yank

 

Finally a little Railz’d

by Harry Fuecks

So finally had a first hand run-in with Rails at last nights webtuesday, thanks to Patrice, based on his experiences of putting together list.blogug.ch.

Was interesting but sadly we didn’t really have enough time with the game starting at 6 – Patrice was able to give us a demo of what Rails (and rake) provides, the selling “Wow!” factor but there wasn’t enough time for much critical questioning, which has become part of what marks webtuesday – there are some very experienced hands attending regularily now, such as Urban, who only had time to question validates_uniqueness_of in regard to full table scans.

The next mission is tracking down some Python developers in Zurich – tip offs appeciated.

A big thanks to Eurospider for hosting it and kindly providing bbq and beer and the live match – couldn’t have been better.

 

Jun 13, 2006 News Wire

by Kevin Yank

 

Sponsored Links

SitePoint Marketplace

Buy and sell Websites, templates, domain names, hosting, graphics and more.

Follow SitePoint on...