Matt Kenefick
Contact Me Experiments Blog Portfolio

Archive for the ‘PHP’ Category

Qapture / Qapture Firefox Plugin

Tuesday, March 31st, 2009

“Think of Qapture as an “of the moment” aggregator. Inspired by all the chatter about Twitter as a real-time dimension in searching, it’s our shot at freeze-framing and sharing the finest links that stream through Twitter, all while keeping up with the flow.”

Check out Qapture.net to view some really great links. Go to the About section and download the Plugin ( Qapture Discovery ).

Tutorials on writing Firefox Extensions

Monday, March 30th, 2009

I’m going to write a few soon. Keep an eye out. ‘Til then, here are a few good ones:

https://developer.mozilla.org/en/Building_an_Extension

http://kb.mozillazine.org/Getting_started_with_extension_development

http://extensions.roachfiend.com/howto_bug.html

Give it a whirl.

Saving JPEGs with Flash

Thursday, November 6th, 2008

This is pretty much copy and paste. Found this one on Snipplr. I like this place a lot. It is based of reference of this tutorial: DesignReviver. ( Originally at HenryJones ).

import com.adobe.images.JPGEncoder;
 
function createJPG(mc:MovieClip, n:Number, fileName:String) {
 
	var jpgSource:BitmapData = new BitmapData (mc.width, mc.height);
		jpgSource.draw(mc);
	var jpgEncoder:JPGEncoder = new JPGEncoder(n);
	var jpgStream:ByteArray = jpgEncoder.encode(jpgSource);
 
	var header:URLRequestHeader = new URLRequestHeader ("Content-type", "application/octet-stream");
 
	//Make sure to use the correct path to jpg_encoder_download.php
	var jpgURLRequest:URLRequest = new URLRequest ("download.php?name=" + fileName + ".jpg");
		jpgURLRequest.requestHeaders.push(header);
		jpgURLRequest.method = URLRequestMethod.POST;
		jpgURLRequest.data = jpgStream;
 
	var loader:URLLoader = new URLLoader();
	navigateToURL(jpgURLRequest, "_blank");
}
 
 
//createJPG(movieClip, quality, fileName);
createJPG(myMovieClip, 90, "myDog");

<?php
if ( isset ( $GLOBALS["HTTP_RAW_POST_DATA"] )) {
	// get bytearray
	$im = $GLOBALS["HTTP_RAW_POST_DATA"];
 
	// add headers for download dialog-box
	header('Content-Type: image/jpeg');
	header("Content-Disposition: attachment; filename=".$_GET['name']);
	echo $im;
}  else echo 'An error occured.';
?>

Devunity: Collaboration

Wednesday, October 22nd, 2008

Not going to write a lot here… Just stumbled upon this and thought it could be interesting. Have a look:

 

http://www.devunity.com/

Favorite E-Commerce / CMS for PHP

Wednesday, October 15th, 2008

Silverstripe ( open-source )

A great/fairly new CMS that is very easily extendable for PHP. Voted “most-promising new cms”. Great documentation and support. Easy learning curve. I found this recently and have to say that it is probably my first choice when I need something flexible, fast, and easy for the user. It is not just easy for developers, but the interface is simple and extensive enough for website owners to dive right in and not be totally overwhelmed. Remember what it felt like the first time you opened Photoshop or 3D Studio Max? Your users will not feel like that.

http://www.silverstripe.com

Magento ( open-source )

Voted “Best New Project” by SourceForge.net. This e-commerce tool is very vast and has pretty much anything you can think of. The structure of the code is very detailed and organized. Documentation could be better and learning curve might take a little longer than usual. It is open source, very powerful, and well-supported.

http://www.magentoecommerce.com

PinnacleCart

This is DesertDog Software’s e-commerce utility. They have very intelligent / immediate tech support. This cart is recommended by PayPal. The cost may be a little steep, but if you can afford it, it is worth it. There is a long list of features including: UPS Shipments (not just tracking), extensive reporting, support for many gateways, great discount options, +much more. The structure uses Smarty and is VERY customizeable. Third party plug-ins are limited. No APIs or customization documentation offered.

http://www.pinnaclecart.com