Color Scheme Generator 2

Color Scheme Generator 2 voor het bepalen van kleur combinaties. Tevens de mogelijkheid om te kijken of kleurenblinden het ook kunnen zien!

backgroundrb: render rhtml templates in worker

Duurde ff voordat ik dat had gevonden maar het equivalent van render_to_string in een backgroundrb process wordt hiermee ondervangen:

Subject: [Backgroundrb-devel] render rhtml templates in worker

So i have not figured out any sane way to access controllers inside of backgroundrb
or other rails-working scripts but instead i've resorted to rendering my rhtml
templates directly using the ERB module that rails already includes from ruby standard lib.

There are a few limitations to using ERB in the raw:
- it doesn't understand the trailing dash in <% -%> so you have to strip those.
- obviously it doesn't know about any rails helper methods although i
  think you might be able to explicitly include their classes.
- you have to pass it a binding to your namespace or else it won't be
  able to access any instance variables

Here's an example that works from inside of a model class:
     #load template into ERB object for rendering
     erb = ERB.new( IO.read( rhtml_template_path ) )

     #set instance variables for rendering
     @report = self
     @chart = @report.chart

     # in order for the erb template to access the instance variables
     # we must pass it a binding to this namespace
     b = binding

     #render template with instance variables
     rendered_result = erb.result(b)

One upside to giving up all the rails framework help is that it runs a
bit faster and lighter.

-Jacob

Update:‘trailing dash’ was niet zichtbaar ivm html codes, heeft me dus een paar uur gekost :(

Shizzle!

Zoek de gelijkenis: Ergens in frame 5365 komt de heer sturre in beeld :P

Get started with Rails

Logo RoREnkele links om te beginnen met ruby op en mac:
Download eerst Locomotive en installeer ook MySQL.
Doe daarna de tutorial bij o’reilly.
Gooi er een paar handboeken bij en you’re done!
Tip: probeer textmate eens!

One for me please!

First, kill all your meetings

Small Is Essential: “First, kill all your meetings; they waste employees’ time. ‘Interruption is the biggest enemy of productivity, ….
Next, dump half your projects to focus on the core of your business. ….
Third, let your employees decide when and where to work so they can be both efficient and happy.”
Interessant interview over de schrijvers van “Getting Real” en RoR

Why SEO is Important + Checklist

“SEO isn’t rocket science (unless you’re trying to push the envelope), you just have to be aware of a few guidelines.

Page-specific

  • Unique title tag
  • Unique meta description (Yahoo is the only one using meta keywords anymore)
  • One h1 tag (the text used in your h2-h4 tags is still very important, though)

Site-wide

  • Allow only quality outbound links (eg. rel=’nofollow’ on all user-generated links)
  • Block duplicate content from being indexed with robots.txt
  • Structure your CSS so the content can go first
  • Consistent navigation that allows bots to get to any page on your site within 2 or 3 clicks”

(Via planetrubyonrails.)

The Seven Deadly Sins of Email Marketing Management

The Seven Deadly Sins of Email Marketing Management: “It’s a common belief that email marketing is dead, and that we’ve now entered a Web 2.0 era of blogs, buzzing social networks, and podcasting, but the reality is that email marketing is alive, kicking, and more powerful than ever.”.
Oftewel een ‘required read’ voor de email-marketeer!

EyeTV hybrid gekocht op de iDays

Een EyeTV Hybrid gehaald tijdens de idays in de Macinside te deventer. Kabel is perfect te ontvangen maar digitenne is in deventer nog ver te zoeken… helaas…. :( Geprobeerd om het op mijn oude G4 1Ghz 17″ te gebruiken maar dat trekt ie niet (analoog in ieder geval) Het digitale signaal moet ik nog proberen maar dat moet dan in apeldoorn gebeuren… was anders een mooie toepassing voor mijn oude vertrouwde 17″ geweest…. digitaal kun je alleen de Free-To-Air kanalen bekijken omdat er geen encrypt card bij zit.

Google Gears API Developer’s Guide – Home

Google Gears API Developer’s Guide Maak van een webapplicatie een standalone applicatie (FireFox, IE)”