Your work is going to fill a large part of your life, and the only way to be truly satisfied is to do what you believe is great work. And the only way to do great work is to love what you do.
-- Steve Jobs

Sunday, October 30, 2011

Test Studio versus Visual Studio 2010 Test Professional Comparison | Telerik

Test Studio versus Visual Studio 2010 Test Professional Comparison | Telerik
This page is designed to help clarify the way Telerik Test Studio goes beyond Visual Studio 2010 testing products (Visual Studio Test Professional 2010 and Visual Studio 2010 Ultimate) to offer richer user experience and enhanced productivity. Its purpose is also to help visitors understand the key challenges with test automation that we are trying to solve with our solution beyond just the “Hello World” test case.
With the release of Visual Studio 2010, Microsoft has introduced the capability to automate the user interface (UI) of applications on the Windows platform. Visual Studio 2010 introduces the CodedUI test framework and the MTM (Microsoft Test Manager) as solutions for Testers and QAs to help manage test creation and test automation. We believe this to be a great step forward and a win for our customers especially in the areas of Test and Lab management. The Visual Studio / .NET platform has traditionally been exclusive to developers but now with VS2010 it also encompasses testers and QA professionals.

Developers + Testers = Awesome | Telerik

Telerik Automated Testing Tools Blog - Audiocast on Developer + Tester Collaboration
The Test Studio team is sponsoring EuroSTAR 2011 in Manchester, England from 21-24 November. Part of the run up to EuroSTAR includes a series of audiocasts from various people in the testing industry.
I’ve got one episode in that series: “Devs + Testers == Awesome” [1] I talk for about ten minutes on something I’m particularly passionate about: tight collaboration between testers and developers. I’ve long believed (through practical hard knocks!) that closer collaboration gets our customers better software.
You’ll have to register on the site to listen to the audiocast (sorry!), but I think it’s worth it!

[1]The EuroSTAR folks changed the title to “Devs + Testers = Awesome”, so it’s an assignment, not equality check. Please don’t compile and run that title. It won’t work as expected.

Saturday, October 29, 2011

Image Resizer for Windows

Image Resizer for Windows
Image Resizer for Windows is a utility that lets you resize one or more selected image files directly from Windows Explorer by right-clicking. I created it so that modern Windows users could regain the joy they left behind with Microsoft's Image Resizer Powertoy for Windows XP.

Wednesday, October 26, 2011

Just create to create | Brit

Brit
You may not be a Picasso or Mozart but you don’t have to be. Just create to create. Create to remind yourself you’re still alive. Make stuff to inspire others to make something too. Create to learn a bit more about yourself.
- Frederick Terral

Tuesday, October 25, 2011

Fast Image Resizer - CNET Download.com

Fast Image Resizer - CNET Download.com
We resize images all the time--to e-mail to friends, post on blogs, share on Facebook, and much more. Although we often resize images in a photo-editing program as soon as we take them off the camera, it's not uncommon for us to need a resizing tool that can be used the rest of the time. After all, who wants to launch a big photo-editing program for tasks that can be completed with a lightweight utility? That's where Fast Image Resizer comes in. This basic program lets users resize images as quickly and easily as anything we've seen.

Responsive Web Design in Sass Part 1: Fluid Layouts and Fluid Images | The Sass Way

Responsive Web Design in Sass Part 1: Fluid Layouts and Fluid Images - The Sass Way
No doubt you’ve at least heard the term “Responsive Web Design”. Since Ethan Marcotte’s article and book came out over the last year or so it’s been the hot topic among web folk, and rightly so. The solutions Ethan puts forth gracefully solve a number of problems we’ve been limping along with.

Using Compass and Sass for CSS in your Next Project | Nettuts+

Using Compass and Sass for CSS in your Next Project | Nettuts+
Sass could potentially be called CSS 2.0; it has some really nifty features that allow you to write your code in less time and with more flexibility. In today’s article, we will be working the basics!

Sass is simply a different way to work with CSS. It allows you to keep your CSS code very simple and helps increase readability.

Compass makes working with Sass even easier. The author, Chris Eppstein, has also included some converted frameworks such as Blueprint, YUI, and 960.gs. It also easily integrates with Ruby based projects, but is just as easy to add to any other project. Compass is open-source and is extremely well documented.

John McCarthy 1927-2011 | Duncan Davidson

John McCarthy 1927-2011 - Duncan Davidson
John McCarthy was the inventor of the Lisp language and coined the term “Artificial Intelligence” in the 1950’s. In the sixties, his thoughts on treating time-shared computers as a utility predicted the current use of cloud computing. He is another one of those people that left a huge mark on the world as we know it. Thank you John.

CSS3 box-ordinal-group property | W3Schools

CSS3 box-ordinal-group property
The box-ordinal-group property specifies the display order of the child elements of a box.
Elements with a lower value are displayed before those with a higher value.
Note: The display order of the elements with the same group value depend on their source order.

Sunday, October 23, 2011

The "Light" CMS Trend | CSS-Tricks

The "Light" CMS Trend | CSS-Tricks
CMSs are beautiful things. Just as CSS allows us to abstract the design away from the markup, a CMS allows us to use a database to abstract the content away from the markup. There are a zillion of them, each with different backend UI's and different ways to doing things.
But CMSs are for web people. Even my beloved WordPress can be challenging to train/explain to someone who has no experience working with websites. Perhaps this is the motivation toward a new trend in CMSs I'm calling "light" CMSs. Each of them attempt to make the task of updating content on a website easier and more intuitive. This is largely at the cost of features. These are for simple, otherwise static websites where updating content is the name of the game.

Thursday, October 20, 2011

Redirecting from index.gsp | Groovy on Grails

Groovy on Grails: Redirecting from index.gsp
1. Create a TagLib file
grails-app\taglib\MyAppTagLib.groovy

2. Define a method that routes to your first page
class MyAppTagLib {
def redirectMainPage = {
response.sendRedirect("${request.contextPath}/myController/welcomePage/")
}
}


3. Change your index.gsp to contain only:


Note: One advantage to this approach is that you have a coding opportunity over simply mapping the "/" url.

For example, if you want to provide features or data based on a specific user's login id.

indexing - Best practices for grails index page - Stack Overflow

indexing - Best practices for grails index page - Stack Overflow
What is the right way to populate the model for the index page in a grails app? There is no IndexController by default, is there some other mechanism for getting lists of this and that into the model?

Simple Made Easy | InfoQ

InfoQ: Simple Made Easy
Rich Hickey emphasizes simplicity’s virtues over easiness’, showing that while many choose easiness they may end up with complexity, and the better way is to choose easiness along the simplicity path.

Tuesday, October 18, 2011

William Gibson on The Setup | Daring Fireball

Daring Fireball Linked List: William Gibson on The Setup
This man has his priorities in order:
Neither hardware nor software excite me very much, after whatever brief (and usually painful) novelty has worn off.
Good interface design is as transparent as possible, because I don’t want to have to think about it. I just want to write, or do whatever else I’m doing, and not have to think about whatever I’m doing it on.

Monday, October 17, 2011

The One Rule: Context Switches Are Horrifically Expensive | Rands In Repose

Rands In Repose: The One Rule
When it comes to working at your computer, there is only one rule: context switches are horrifically expensive.

Ask Slashdot: Ergonomic Office Environment? | Slashdot

Ask Slashdot: Ergonomic Office Environment? - Slashdot
relyte writes "In the spirit of the recent poll — where many people recommended ergonomic upgrades — what's the best way to get a comfortable, ergonomic, efficient work environment? I'm just starting my career in software development, and I'd like to get a great chair, keyboard, mouse, monitor, etc. What models would you recommend to save wear and tear on joints, eyes, and muscles? Are there other categories I should consider?"

Saturday, October 15, 2011

jQuery Drop Down Menu | Javascript-Array

jQuery Drop Down Menu - Simple JavaScript Plugin
So, I present to you the simple drop-down menu. The peculiarity of this menu is that these 20 lines of code and absence of various cumbersome mouse events within html code. This script requires the jQuery library. There's a version that does not require jQuery.

Grails active page navigation menu | Aa Ideas

Grails active page navigation menu « Aa Ideas
A Common feature found in many CMS’s or web-apps is a navigation menu with a highlighted active page, or the parent of the current page in a hierarchy. The trick is getting the proper element with an added CSS class of ‘selected’ or ‘active’. There are a number of ways to do this, but I just found a new way to do it in Grails using a Sitemesh’s pageProperty.

Friday, October 14, 2011

Grails - Add method on String to truncate long texts nicely | technipelago

Add method on String to truncate long texts nicely
I had several domain classes with long text content that I wanted to display just a summary of on the screen, especially in lists columns, etc.. I first added a getIntro(int numChars) method on domain classes with long strings, and used them when appropriate.
But I soon realised that I violated the DRY principle (Dont Repeat Yourself) with getInto() methods all over the place. I could have put the method in a base class but my text properties did not have the same name in all domain classes, so that was complicated.
I think I found a much better solution. I removed all those methods and added a getIntro(int) method to String and GString in BootStrap.groovy.

Grails - user - Paragraphs

Grails - user - Paragraphs
What's the standard design solution for the following problem :

The application prompts the user for some text. This is entered in a text area. And it's easy to store it as a long String. But how to preserve the line breaks to keep the separate paragraphs ? Should the text be stored as String[] ? Should the controller convert the text area String into String[] ?

Managing Content through Tagging in Grails: Part 1 | Packt

Managing Content through Tagging in Grails: Part 1 | Packt
Tagging is a loose, community-based way of categorizing content. It allows a group of people to categorize by consensus. Anyone is able to tag a piece of content. The more a tag is used, the more meaning it takes on and the more widely used it becomes. This categorization by consensus has been dubbed as folksonomy (http://en.wikipedia.org/wiki/Folksonomy)
So let's get started by building our tagging support.

Thursday, October 13, 2011

Integration and unit tests in large Grails project | Stack Overflow

Integration and unit tests in large Grails project - Stack Overflow
It is usually more complicated to write unit tests due to having to deal with mock objects than integration tests in a large Grails project. This article even suggests we can even do away with unit tests altogether and write only integration tests which I tend to agree.
The only disadvantage I see is the speed of execution for integration test as compared to same unit test.
What are your thoughts about this from your actual experience working on a large scale Grails project?
If we write a unit test that tests exactly same method and also write integration test that also tests exactly same method, is this normal way of writing tests?
What you ended up with in terms of ratio of unit tests to integrations tests in actual large Grails project?
Have you successfully completed a large Grails project without writing any tests?

Wednesday, October 12, 2011

Grails 2.0.0.M2 released! | grails.org

Grails 2.0.0.M2 released!
We are pleased to announce that the second milestone of Grails 2.0 is now available to download. You can find out what's new in Grails 2.0 and what's been fixed through the release notes.

Monday, October 10, 2011

Grails - Plugin - FullCalendar

Grails - Plugin - FullCalendar
Adam Shaw has written a full page javascript calendar component using jQuery: http://arshaw.com/fullcalendar/ See the page above and the Screenshots tab for more.

Grails - Best Calendar plugin?

Grails - user - Best Calendar plugin?
I'm looking for a simple way to add some calendar views to my application. I need to render blocks of time on a monthly, weekly and daily view. The primary use case is a read-only view, so I don't really care about editing/creating abilities.

FullCalendar - Full-sized Calendar jQuery Plugin

FullCalendar - Full-sized Calendar jQuery Plugin
FullCalendar is a jQuery plugin that provides a full-sized, drag & drop calendar like the one below. It uses AJAX to fetch events on-the-fly for each month and is easily configured to use your own feed format (an extension is provided for Google Calendar). It is visually customizable and exposes hooks for user-triggered events (like clicking or dragging an event). It is open source and dual licensed under the MIT or GPL Version 2 licenses.

Ask Slashdot: Does Being 'Loyal' Pay As a Developer? - Slashdot

Ask Slashdot: Does Being 'Loyal' Pay As a Developer? - Slashdot
An anonymous reader writes "As a senior developer for a small IT company based in the UK that is about to release their flagship project, I know that if I were to leave the company now, it would cause them some very big problems. I'm currently training the other two 'junior' developers, trying to bring them up to speed with our products. Unfortunately, they are still a long way from grasping the technologies used – not to mention the 'interesting' job the outsourced developers managed to make of the code. Usually, I would never have considered leaving at such a crucial time; I've been at the company for several years and consider many of my colleagues, including higher management, to be friends. However, I have been approached by another company that is much bigger, and they have offered me a pay rise of £7k to do the same job, plus their office is practically outside my front door (as opposed to my current 45 minute commute each way). This would make a massive difference to my life. That said, I can't help but feel that to leave now would be betraying my friends and colleagues. Some friends have told me that I'm just being 'soft' – however I think I'm being loyal. Any advice?"

Countdown to Grails 2.0: Unit testing | SpringSource Team Blog

Countdown to Grails 2.0: Unit testing | SpringSource Team Blog
The first milestone of Grails 1.4 (now 2.0) has now been released and we are on the last stages of the journey towards 1.4 2.0 final. As we approach that point, I will be writing a series of blog posts that cover the various new features and changes that the 1.4 2.0 version brings. I'll be starting with the new testing support.
Since the beginning, Grails has provided three levels of testing support for developers: unit, integration, and functional. Unit tests had and still have the benefit of running independently of Grails, but they typically required a fair bit of extra work in the form of mocking. The unit test framework introduced with Grails 1.1 helped with that mocking, but it still didn't cover all use cases and so developers needed to resort to integration tests, which run inside a bootstrapped Grails instance, earlier than was desirable.
Grails 2.0 introduces significant changes that improve the situation considerably:
  • the unit test support can be integrated into any test framework (no more base classes);
  • it has a full in-memory GORM implementation; and
  • it better supports testing REST actions, file uploads, and more.
So what do these changes look like to you as a user?

Saturday, October 8, 2011

Using Cloud Foundry from STS | SpringSource Team Blog

Using Cloud Foundry from STS | SpringSource Team Blog
By now you probably heard about Cloud Foundry, the open PaaS from VMware that was announced yesterday; if not make sure to check out the recording of the webcast. Eventually you have already read earlier blog posts introducing the Spring support for Cloud Foundry, the add-on for Spring Roo and the Grails plug-in.
With this post I’d like to introduce the Eclipse-based support for Cloud Foundry that lets you manage your cloud deployments, including configuration of Services and service bindings, application scaling, access to file resources and much more.

Thursday, October 6, 2011

Steve Jobs: A Few Memories | Stephen Wolfram Blog

Stephen Wolfram Blog : Steve Jobs: A Few Memories
When I first met Steve Jobs nearly 25 years ago I was struck by him explaining to me that NeXT was what he “wanted to do with his thirties”. At the time, I thought it was a bold thing to plan one’s life in decades like that. And—particularly for those of us who spend their lives doing large projects—it’s incredibly inspiring to see what Steve Jobs was able to achieve in his small number of decades, so tragically cut short today.
Thank you, Steve, for everything.

Universe Dented, Grass Underfoot | Daring Fireball

Daring Fireball: Universe Dented, Grass Underfoot
I like to think that in the run-up to his final keynote, Steve made time for a long, peaceful walk. Somewhere beautiful, where there are no footpaths and the grass grows thick. Hand-in-hand with his wife and family, the sun warm on their backs, smiles on their faces, love in their hearts, at peace with their fate.

Remembering Steve Jobs | kottke

Remembering Steve Jobs
I am incredibly sad this morning. Why am I, why are we, feeling this so intensely? I have some thoughts about that but not for now. For now, I'm just going to share some of the things I've been reading and watching about Jobs.

Steve Jobs Dead At 56 - Slashdot

Steve Jobs Dead At 56 - Slashdot
SoCalChris writes "Apple cofounder Steve Jobs was found dead in his Cupertino home this morning. I'm sure everyone in the Slashdot community will miss him — even if you didn't enjoy his work, there's no denying his contributions to popular culture. Truly an American icon."