We are Fourth Dimension Kreative a web and print agency with roots in The Twin Cities and Central Minnesota
Founded as Fourth Dimension Design and Development llc in 2011 by graphic designer Myles Kedrowski & web developer Matt Adams. Later joined with web developer Chris Vaughan becoming Fourth Dimension Kreative. We make the world wide web simple, beautiful and our mothers (and wives) approve. We do web and print design, front and back end web development, responsive layouts, content managment, domain registrations, hosting and all that other good stuff, we have you and your business covered. Contact us for a free quote.
I often find myself converting images to data URIs in an attempt to reduce network requests. This script is based on the same concept as David Walsh’s article Image Data URIs with PHP but rather than using the depreciated mime_content_type, my script makes use of FileInfo, which “provides the same functionality in a cleaner way” as quoted from the PHP docs.
echo '<img src="'.getDataURI('path_to/your_image.png').'">';
function getDataURI($image,$mime='') {
$finfo = new finfo(FILEINFO_MIME_TYPE);
$mime = $finfo->buffer(file_get_contents($image));
return 'data:'.$mime.';base64,'.base64_encode(file_get_contents($image));
}
Please keep in mind if you plan on using data URIs, they are not supported by ie7 and lower.
I would like to take a quick moment to talk about my favorite text editor, Sublime Text 2 and go over, step by step, how to install Sublime Text 2 on Ubuntu 12.04 / 12.10 / 13.04. read more
I ran into some problems running Killing Floor and Red Orchestra on my Nvidia dual monitor setup. The games would run at 800×600 on my secondary monitor, not exactly ideal. Luckily this was an easy fix that will hopefully help out someone that runs into the same problem. read more