Thursday, March 5

I was going through my juniors work on Ruby on Rails. I was helping them to build some interesting web applications. And then the discussions lead to design, usability and accessibility of the application. As they don't have enough exposure on web applications, I quoted few articles and books to say UI is as important as functionality. Of which, I highlighted the "Ten Principles for Web Accessibility" from "Pragmatic Design & Accessible Web Sites" by Jeremy J. Sydik.

Avoid making assumptions about the the physical, mental, and sensory abilities of your users whenever possible.

Your users’ technologies are capable of sending and receiving text.That’s about all you’ll ever be able to assume.

Users’ time and technology belong to them, not to us. You shouldnever take control of either without a really good reason.

Provide good text alternatives for any non-text content.

Use widely available technologies to reach your audience.

Use clear language to communicate your message.

Make your sites usable, searchable, and navigable.

Design your content for semantic meaning and maintain separation between content and presentation.

Progressively enhance your basic content by adding extra features. Allow it to degrade gracefully for users who can’t or don’t wish to use them.

As you encounter new web technologies, apply these same principles when making them accessible.

Link to Book:http://www.pragprog.com/titles/jsaccess/design-accessible-web-sites

Monday, March 2

then I realised that "libmemcached" also needed. Got the latest tar http://tangent.org/552/libmemcached.html and installed.

then went on to install the "memcached" gem.

Unfortunately, this did not go as expected but raised lots of issues!

rlibmemcached_wrap.c: In function ‘_wrap_MemcachedSt_next_distribution_rebuild_set’:rlibmemcached_wrap.c:5835: error: ‘struct memcached_st’ has no member named ‘next_distribution_rebuild’rlibmemcached_wrap.c: In function ‘_wrap_MemcachedSt_next_distribution_rebuild_get’:rlibmemcached_wrap.c:5858: error: ‘struct memcached_st’ has no member named ‘next_distribution_rebuild’rlibmemcached_wrap.c: In function ‘Init_rlibmemcached’:rlibmemcached_wrap.c:11380: error: ‘MEMCACHED_SERVER_MARKED_DEAD’ undeclared (first use in this function)rlibmemcached_wrap.c:11380: error: (Each undeclared identifier is reported only oncerlibmemcached_wrap.c:11380: error: for each function it appears in.)rlibmemcached_wrap.c:11411: error: ‘MEMCACHED_BEHAVIOR_AUTO_EJECT_HOSTS’ undeclared (first use in this function)make: *** [rlibmemcached_wrap.o] Error 1

After googling across and friends suggestions, could solve the problem. The problem seems to be with the latest versions of the libmemcached and also gem memcached. I cleaned up the mess and repeated the trial with the following combination.