Archive for 'Open Source'

URLSummary php Class

I needed a way to extract additional content and details about any given website that a User might add to PickyList. So I sat down and wrote what is now dubbed URLSummary that takes a URL and outputs an XML document.

Feel free to Download URLSummary Now.

This class is written in PHP 5, and I cannot confirm or deny that it will work with any other version. Feel free to do anything you want with it - all I ask is that you consider leaving a comment letting me know if it was beneficial for you and your product.

Usage of URLSummary.php

<?
	require('URLSummary.php');
	// Get a URL paramater $url = $_GET['url'];
	$url = 'http://icorbin.com/resume';

	// Create the URLSummary Class
	$urlsummary  = new URLSummary();
	$urlsummaryxml =  $urlsummary->get($url,"xml");
	// Output the Results to the browser as XML
	header("Content-Type:application/xml");
	echo $urlsummaryxml->asXML();
?>


A few notes
Currently URLSummary currently does not Cache any of the calls.

8 Reasons not to use Internet Explorer 6

Are you using Internet Explorer 6?

Would you walk naked through Central Park at night with a $1000 tapped to your body? Well that’s exactly what your doing using IE 6. Please take a moment and see what your missing.

  1. You most likely have an infected computer that is spamming the rest of us.
  2. Your literally not seeing entire chunks of website content - because of a bug in IE 6.
  3. You’re slowing the progress of the internet - IE 6 causes developers to continually slow down so everything works right on IE 6.
  4. You get nasty computer viruses, trojan horse or malware by simply visiting an infected website.
  5. You wait 2 or 3 times as long for web pages to load than the rest of us.
  6. You DON’T HAVE TABS! (Multiple browsers in a single window).
  7. You think browser crashing/freezing is normal.
  8. You think a browser should slow your computer to a crawl.

Then go and download Google Chrome. (Firefox or worse case Internet Explorer 8)

Need more reasons?
http://whyiesucks.blogspot.com/
http://forums.cnet.com/5208-6121_102-0.html?threadID=7613

Super simple Ruby on Rails cloud hosting using AptanaCloud

Founder Paul Colton walks us through the basics of creating Ruby on Rails projects with Aptana RadRails, and then deploying those projects to Aptana Cloud.

via Aptana TV.

Aptana Cloud just knocked my socks off.

Over the last 5 days, I have been re-coding PickyList - a new database and a new user experience. Since I was already on a terror, I decided to check out some “Cloud Hosting Services” - right now we are paying a decent chunk per month at GoDaddy, with no quick way to scale.

I started playing with RightScale and Amazons EC2 - and while it was cool to see it work - the amount of  time and brainpower required to do everything was simply to much.  And then I found Aptana Cloud - (the clouds opened and rays of sunshine danced over my head)

Aptana Cloud is an absolutely amazing product/service. Their free 21 day trial, and the ability to test your application without even entering a credit card was an breath of fresh air. Setup is super fast, and it only took me about 20 minutes to get the entire PickyList product up and running.

Aptana offers a few different pricing models ranging from $30 to $200 a month - depending on the Ram and Disk space. You also get a default Staging and Live enviornment, a beautiful and simple dashboard, SSH, SFTP, FTP, Mysql, SVN and ROOT access.

Check out this video on how it works.

5 Exciting Things to Look Forward to in HTML 5 - ReadWriteWeb

HTML 5 is the upcoming major revision of the HyperText Markup Language (HTML), the main method of marking up content for sharing on the World Wide Web. HTML’s development stopped at HTML 4.01 in 1999, and since then web content has evolved so much that current HTML specifications are inadequate for today’s requirements.

via 5 Exciting Things to Look Forward to in HTML 5 - ReadWriteWeb.

LinkedIn Profile API - Unofficial and 100% Open Source

Presenting the open source PHP LinkedIn Public Profile API, released under the GNU

How does it work?
This PHP Class (requires php5) imports a users LinkedIn public profile (by supplying their public profile username) and turns the results in to a simple XML document.

You can see my example at http://brandonshead.com/work/linkedinProfile/profile.php

How do you use it?
First you have to download the linkedin open source API here.
Inside you will find 3 files.
1. linkedin.php - the actual PHP Class (requires PHP5)
2. profile.php - an example of how to use the Class.
3. livingresume.xsl - the default XSL that is attached to the Users XML Profile.

Usage:

<?
include_once('linkedin.php');
$LIProfile=new linkedinprofile(’brandoncorbin’);
// OUTPUT THE RESULTS
header(”Content-Type:application/xml”);
echo $LIProfile->getProfileXML()->asXML();
?>

Questions? Leave them in the Comments and I will reply ASAP.

Disclaimer: I offer absolutely no guarantees that this will work on your system. As a matter of fact, it’s possible that this script could ask you to play “global thermal nuclear war” - if it does, please answer no. We all know what about happened last time.

Turn your Wii Remote in to a Digital Whiteboard [Video]

Johnny Lee shows his killer Wii Remote hacks. He converts the $40 Wii Remote in to a digital whiteboard, a touchscreen and a 3-D viewer you wear on your head.


Here is Johnny’s Wii Remote Hack Site
where you can learn how to do this, and download his software.

Roll your own Wordpress Tiny URL and Capitalize on your Domain’s Brand.

I am tired of TinyURL getting all of the domain “brand share” from my Blogs tweets. So I wanted to come up with my own solution to create short urls using my blogs domain: BrandonsHead.com.

Yes, my domain is longer than “TinyUrl”, and I assume that yours is too - however, those 5 or so extra characters are well worth the brand awareness (especially if you are cross posting to other social media outlets). And thanks to Mod Rewrite and Wordpress, pulling this off is relatively simple.

By adding a rewrite rule to Wordpress‘ .htaccess file (in the root of your Wordpress installation) - you add 1 line of code, and poof you can have a Short URL like http://brandonshead.com/go446

Here is the code that I added to my .htaccess to achieve this:

RewriteRule ^go(.*)? /index.php?p=$1 [R=301,L]

This code is simply saying, any time a user goes to http://mydomain/go123 take the 123 and treat it like a blog post ID, then the rest of Wordpress’ rewrite rules will take over.

Here is what my Wordpress’ .htaccess file looks like:


# BEGIN WordPress
RewriteEngine On
RewriteBase /
#Short URL Processing
RewriteRule ^go(.*)? /index.php?p=$1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress

Also, we want to make it easy for us and our users to copy and paste this new short url. So I went in and added the following code to my Single.php file (that is part of the theme you are using).


<div class="shorturl">
<label>Short URL</label>
<input type="text" value="http://YOURDOMAIN.com/go<? the_ID(); ?>" onclick="this.select()" />
</div>

Disclaimer: This might or might not make your Wordpress installation completely blowup, this is only for the brave of heart. I repeat: This might make your Wordpress installation come alive and eat your entire city - so please proceed with caution.

The End of JobFu - The Dying Resume

UPDATE: Download the LinkedIn PHP Class that powered JobFu.

Recently, my little side project JobFu (turning a LinkedIn Public Profile in to a nice looking Living Resume) was slammed on LinkedIn by M. Joyce the Creator of IDEA Masters Online Real Time Magazine (thats a mouthful).

She clearly states that she is partly outraged, not surprised and basically really really hates the idea of my product.

While I always enjoy making people emotionally respond (both good and bad), I really never intended Jobfu to be anything other than a way for me to have a Resume that was always updated from a single place. After a few friends asked for the same thing, I used my JobFu.org domain and created the ability to claim a resume from their LinkedIn Public Profile.

However, after reading the replies from other LinkedIn users - it is fair to say that they would rather not have JobFu promoting their Public Profiles (even through they are publicly available and cloned all over the web, http://74.125.95.132/search?q=cache:iJMiWqfOaTYJ:www.linkedin.com/in/tribecanineinc+tribecanineinc&hl=en&ct=clnk&cd=1&gl=us&client=safari)

UPDATE: Download the LinkedIn PHP Class that powered JobFu.

Photos of Downtown Indy - Free for any use.

I noticed that there was a shortage of FREE (and decent) photos of Indianapolis and specifically downtown when I started working on PickyList’s marketing material. As any self respecting (and broke) entrepreneur - I grabbed the camera, jumped in the car and headed south. 

Keep in mind, I am far from a photographer - however, with a Digital SLR and sheer probability, one of them has to be good enough for some use! See the photos here

Indianapolis Downtown Free Photos