For the last months, I'm using SoundCloud's API to create an application. I had several issues, that I managed to solve, and this one I'm going to show you is one of my favorite. The waveform that soundcloud generates for a song, looks like the one I attached to the post.
It's not bad, as long as you can integrate the gray mask with your application design. If you can't then you can start to scratch your head. I did. :)
2
Read more
I've added a new feature to my blog and I would like to share it with you. It's damn easy and very useful, if you care about design.
The reason I created this script is that the videos I embed has various sizes and enlarging them is a boring task, so let a small code do it:
function fixVideos()
{
// Maybe you should be more specific, than me
var videos = document.getElementsByTagName('embed');
var cwidth = 550; // The width you want to resize to
var ratio = 0;
for( i=0; i < videos.length; i++ )
{
ratio = videos[i].height / videos[i].width;
videos[i].width = cwidth;
videos[i].height = ratio * cwidth;
}
}
That's it.
1
Read more
Buzz is a new social sharing service from Google, built in Gmail. It is very hot, released two days ago, but it even has a basic feed API, unfortunately it doesn't support RSS, so you can't just plug it to your Facebook wall page, for example.
I created a very simple converter for Google Buzz, that generates a vaild RSS feed from your Buzz feed.
Check out the source code here.
Please note that you will need a PHP setting: allow_url_fopen enabled.
All rights reserved, ©2008-2010 - Built on CodeIgniter framework - Konami codes - Mostly Valid XHTML 1.1 - Valid CSS 2.1