 |
 |
|
2 comments
Added on January 30, 2008 by
Kris |
|
|
 |
 |
Sorry guys, we were going to record this morning but something came up with Betsy's sister and she needed to help out.
She should be back shortly and we'll get on it!
|
| |
|
|
|
9 comments
Added on January 29, 2008 by
Kris |
|
|
 |
 |
Am I crazy? Nope. It's show time for Linux.
Some of the the Linux flavors have matured enough to be great solutions for keeping family members safe from viruses and giving them the tools, graphically, that they need. So much so that Dell is now offering computers with it as an alternative to Windows.
However, it's not just family members that benefit, it saves the "son-in-law tech support company" a ton of time and headaches.
And now there is a great tool available called Automatix that is a great asset for installing new apps quickly. Sure, I am comfortable with command line work but if there is a gui available that can make installing software simpler than finding a package, decompressing, cd to directory and then running . . . well, I am all for it.
You can see from the photo above that I chose Xubuntu for the install, a smaller footprint of Ubuntu. It's designed to run on low RAM machines.
It's perfect for a mother-in-law prone to installing software from every popup ad that she encounters. Which is the reason that her Toshiba laptop has a desktop that looks like this:
So far so good.
|
| |
|
|
|
2 comments
Added on January 29, 2008 by
Kris |
|
|
 |
 |
For months I have been bypassing the Flickr API and using RSS 2.0 feeds instead. The reason? They come with all the photo stream data that you need in a nice little package. Things like title, description, tags, date taken, date uploaded, image dimensions, etc.
What is missing from the RSS feed the ability to load comments with a photo and choose how many items are returned in the feed. The API, however, will let you load hundreds of images and load comments for each photo.
There is a catch though. The API is broken up into about a 75 different calls. Not one single call to the server can match the data that is returned in the RSS feed. To get the same data I need to make approximately 8 different calls to Flickr. Not good.
What use is the API?
It gives me the ability to create a historical back up of my photos in their most basic form with urls, date, descriptions (with html stripped) and tags. It also gives someone building an application a rich data source to do some of the things that Flickr isn't already doing - the purpose of an API.
After working with it for a few hours I became frustrated. PHP is my poison of choice and the PHP examples that Flickr uses all return serialized data. Which is great and easy to work with if you already know what the XML namespaces are but without them it is hard to access the data. And in some cases impossible without printing out the serialized array and looking at it because the returned serialized array's keys don't match the XML namespaces. Not to mention children are buried in deeper arrays that aren't as easy to access as say $title = $item->photo['title'].
Here's how I cleaned up the mess. If you are PHP guru then I am sure you could get this down to one script.
An 'include' script, sort of. View this script by URL on your server to see all name spaces:
1) Create a new PHP file declaring xml as file type - header("Content-Type: text/xml")
2) Use the url that Flickr supplies to return content in REST format
3) Comment out the line for serialization
4) Use PHP's file_get_contents() function
5) echo the returned XML
A loader script:
1) Create a loader script
2) Call the include script - $resp = simplexml_load_file("YOUR INCLUDE SCRIPT URL");
3) Get the data out by name space, the same ones that Flickr documents
To view the name spaces that you will want to access simply open up the include script by url in your browser.
For now I will stick with the RSS 2.0 feeds for blog submissions but once I have some free time I will be using the API code above to create a cached archive for my own safe keeping.
|
| |
|
|
|
0 comments
Added on January 28, 2008 by
Kris |
|
|
 |
 |
but the purchases this month made from our ebay affiliate links say something different.
|
| |
|
|
|
|
| |
| |
|
|
|
 |
|