YUI pie chart example

If case you haven’t noticed – YUI Charts hit the streets. As with everything new, it’s best shown and understood by example. So here’s the simplest example of using a pie chart. Basically I took the example from the YUI page, changed all the paths to point to yahooapis.com (where YUI is hosted for free) […]

January 16th, 2008
Tags: images, JavaScript, yui

Just another church in LA

I know my fellow Québécois are going to smile on this one: Faith Tabernacle – Assembly of God Great name for a band playing for example covers of Faith No More

January 15th, 2008
Tags: Fun

Table to chart via JavaScript

A javascript by Christian Heilmann that takes a table from your page and constructs the URL to request a chart from Google APIs. Slick and accessible. Check it out.

January 8th, 2008
Tags: JavaScript

Starcaster

Look what Santa brought this year: A Starcaster by Fender! (Not to be confused with Stratocaster.) Packed with an amp and everything. Looking forward to posting some recordings in 2008!

January 8th, 2008
Tags: Music, News/personal

7 habits for a highly effective performance optimization effort

… by Tenni Theurer. Here’s the piece on YDN (Yahoo Developer Network). Read and adopt. 😀

January 7th, 2008
Tags: performance

Project management for the rest of us

Life is what happens to you while you’re busy making other plans. – John Lennon Project is what happens while you’re busy with strategy, planning or priotitizing. – Stoyan Stefanov And I’m not even talking about other equally amusing activities such as updating your Gantt charts, percent task completion and WBS 😀

PEAR site minor redesign

Just noticed there have been some changes on the PEAR site. Check it out – no nav menu on the left, spacier for the main content… http://pear.php.net/

January 6th, 2008
Tags: PEAR

Text_Highlighter 0.7.1 and hiliteme.com updates

In today’s busy schedules there’s less and less time to give love to our favorite open source projects. Luckily though, there’s January 1st when you’re supposed to relax (or suffer the consequences of partying on Dec 31st). Anyway, today I found the time to fix two bugs in Text_Highlighter and also include the patch from […]

January 1st, 2008
Tags: PEAR

Netflix – how many movies you’ve rented

Netflix is a great service, it’s a shame they don’t seem to provide any APIs. Oh, well, we’ll have to resort to other means of extracting data. A little javascript to count how many movies you’ve rented: document .getElementById(‘returned_movies’) .getElementsByTagName(‘tbody’)[0] .getElementsByTagName(‘tr’) .length You can put this code in a bookmarklet or simply type in the […]

December 30th, 2007
Tags: bookmarklets, JavaScript, netflix

Fancy formatting

Writing readable code means proper indentation. Usually you’d tab (or use 2 or 4 or 3 spaces) after every curly bracket. Something like this: if (true) { // indent if (false) { // another indent // and some more } } Same goes when you have a bigger hash/object sort of thing: var memememe = […]

December 21st, 2007
Tags: JavaScript, misc hackery, php

Browser Wars 2.0?

browserwars.png

December 17th, 2007
Tags: browsers

How to write computer books

David Barnes, who works for my publisher Packt Publishing, has started a blog: “How to write computer books”. Great stuff in there. If you write or intend to write a book, a blog or anything technical, it’s a great addition to your RSS reader. Inspired by this quote from Mark Twain, yesterday I went through […]

December 13th, 2007
Tags: News/personal, packt, writing

YSlow-er?

One of the hidden perks about working at Yahoo! is that you get to interact with a lot of smart people, and even some celebrities in the web dev profession. Rasmus Lerdorf, Douglas Crockford, YUI guys, the list is way too long… Those couple of weeks I had the pleasure of working closely with Steve […]

December 5th, 2007
Tags: yahoo, yslow

Story of stuff

Take the time to watch this. http://www.storyofstuff.com/ (via Phil) Consumption and energy and recycling and generally destroying our planet are all topics that are increasingly interesting to me. Currently reading “Why we buy” to better understand the enemy within 😉

December 5th, 2007
Tags: Life and everything, News/personal, Stumbled upon

3 additional Web 1.0 tips and tricks

Dustin Diaz has posted on his blogs (what’s a blog? there were no blogs in good old web 1.0) “7 hottest web 1.0 techniques”. While those are nice and highly recommended, let me in on a few little secrets. 1. script language=JavaScript When including a script into a page, you need to specify the language. […]

November 22nd, 2007
Tags: Web1.0

Patch’d

Your favourite blogger (yeps, that would be me) – patched! It’s been 48 hours since my hernia surgery. Don’t worry about me, “everything’s cool, everything’s smooth”. I can hardly walk and can’t lift anything over 10 lbs (4.5 kg), but it’s all fine. This morning had a great idea for a song, I can almost […]

November 19th, 2007
Tags: News/personal

Blogroll updated

Just updated my blogroll (long overdue). It was very easy – Google reader exports subscriptions in OPML, WordPress imports. Then using my OPML-to-HTML tool I was able to quickly produce the following list in HTML. So here’s what I read, enjoy, recently I’ve added quite a few of the smart fellow Yahoo!s: Stoyan subscriptions in […]

November 18th, 2007
Tags: News/personal, OPML

Image fun with PHP – part 2

This post is a demo of what the imagefilter() PHP function can do for you. The Original imagefilter() called with different filter constants Filter: IMG_FILTER_BRIGHTNESSCode to reproduce: <?php $image = imagecreatefrompng(‘nathalie.png’); imagefilter($image, IMG_FILTER_BRIGHTNESS, 5); imagepng($image, ‘img_filter_brightness_5.png’); imagedestroy($image); ?> Filter: IMG_FILTER_BRIGHTNESSCode to reproduce: <?php $image = imagecreatefrompng(‘nathalie.png’); imagefilter($image, IMG_FILTER_BRIGHTNESS, 50); imagepng($image, ‘img_filter_brightness_50.png’); imagedestroy($image); ?> Filter: IMG_FILTER_BRIGHTNESSCode to reproduce: <?php $image = imagecreatefrompng(‘nathalie.png’); imagefilter($image, IMG_FILTER_BRIGHTNESS, 100); imagepng($image, ‘img_filter_brightness_100.png’); imagedestroy($image); […]

November 13th, 2007
Tags: images, php

My recent Maui trip

Here are some reviews of the places I visited during my Maui trip, (the markup is in hReview microformat, using the hReview creator) Breathtaking view from the volcano top Nov 11, 2007 by Stoyan place The Haleakala summit ★★★★★ I come from Bulgaria, where you can visit the highest summit on the Balkan Peninsula. Well, […]

November 11th, 2007
Tags: News/personal

Maui, PHP Quebec, etc

Aloha, I’m back from a family vacation in Maui, HI, feeling rejuvenated after having fun on some nice beaches with crystal water, seen an ex-volcano, sunsets, etc. An email from PHP Quebec was in my inbox saying I’ll be speaking at the 2008 PHP Conference in Montreal. Isn’t that great?! I’ll have a chance to […]

November 9th, 2007
Tags: News/personal, php

On Raymond Chandler’s writing

I’ve never been into crime fiction. I mean I’ve read The Hound of the Baskervilles, but that’s about it. I like Douglas Adams, Terry Pratchett, looove Kurt Vonnegut, enjoyed On the Road, Catch-22… So it came as a surprise even to me when I started reading Raymond Chandler and actually enjoying it. The thing is […]

October 26th, 2007
Tags: Life and everything, News/personal, writing

The Front-end Cerberus

Some smart guys picture the distinction of content (HTML), presentation (CSS) and behaviour (JavaScript) as a three-legged stool. This is totally fine, but can’t we draw a more heroic picture of today’s Front-end developer? I found the image here, if anyone knows the original author, let me know so I can give proper credit. BTW, […]

October 25th, 2007
Tags: (x)HTML(5), CSS, JavaScript

My performance article up on SitePoint

click

October 25th, 2007
Tags: CMS, JavaScript, performance, yahoo

JS/PHP string concatenation mistype

Another one from the “this is not a syntax error” department. The front-end developer is a strange beast who has to jiggle to and fro and code in several languages literally at the same time – javascript, html, css, php or some other server side language, some SQL dialect… No wonder that sometimes we make […]

October 25th, 2007
Tags: JavaScript, php

“Save AnyThing” offline with a Google Gears bookmarklet

Here’s a little bookmarklet I came up with, I called “SAT”, stands for “Save AnyThing (for offline reading)”. It uses Google Gears and works like this: you’re about to go offline (maybe boarding a plane) and want to catch up on some reading you visit any page you click the SAT bookmaklet it saves all […]

October 19th, 2007
Tags: bookmarklets, Google Gears, JavaScript