About
"If you want to learn to swim jump into the water. On dry land no frame of mind is ever going to help you."
~Bruce Lee
Friends
-
Loading...hernicholswed 10 months ago -
Loading...bloggersblog 2 days ago -
Loading...homunculus 13 days ago -
-
Loading...ryan77 2 days ago -
Loading...laughingsquid about 6 hours ago -
Loading...Zaphod about 2 hours ago -
Loading...maxchad 5 months ago -
Loading...ylem235 about 4 hours ago -
Loading...ffred 3 days ago -
Loading...alphabet 1 day ago -
Loading...Funk_Up 2 days ago -
Loading...comics about 6 hours ago -
Loading...Panera about 23 hours ago -
Loading...Hoazl about 7 hours ago -
Loading...kejtowa about 5 hours ago
Click here to check if anything new just came in.
July 28 2010
Brain Freeze: Summer 2010
Summer 2010 has been some crazy good times. After a 1 month period with the kids in Tahoe, they came back to the bay area in full force. We have in the last month (almost) been swimming almost every day, gone to Waterworld, eaten a ton of Sushi and been to some other minor events. Today, to cap the event stack, we are going to Californias Great America! The wife and kids have never been and the last time I went I was a midget myself.
Pictures will be posted after but it will definitely be a time to remember. I am trying to get all these pictures up before they end up getting archived so there may be a big picasa dump coming soon.
July 24 2010
How To Be an Android Power User!
Everything you need to know to master Google's smartphone OSJuly 22 2010
Google Adds Rich Text Signatures to Gmail
Gmail users will now be able to add logos to their email signature following improvements to Google’s web-based email serviceJuly 19 2010
Answer by Gabriel for Visit page without incrementing hit counter
In this case, the hit counter implementation is broken. Hits should only be counted by unique users usually. Otherwise any goon could set a reload bot and blow out the numbers on the counter. A real counting solution is going to be using something like the analytics API from google (or other analytics implementations) which will give you dashboard access to the real visibility of the site.
July 13 2010
Answer by Gabriel for jQuery: set 'active' class in menu from secondary link
$('a[rel=panel]').click(function (e) {
$('a[rel=panel]').parent('li').removeClass('current');
// $(this).parent("li").addClass('current');
$(".nav2 a[href='" + $(this).attr('href') + "']").parent('li').addClass('current');
});
this worked fine over at:
let me know if you need more in this one.
July 12 2010
Super Mouse vs Mouse Trap
It's a bit cheesy but... worth watchingJuly 10 2010
Answer by Gabriel for assign events to cloned html block
http://api.jquery.com/clone/ from this documentation, just use (true) when you call the clone method.
July 09 2010
Answer by Gabriel for Parse Raw HTTP in Python
http://docs.python.org/library/httplib.html I believe this is the library you are looking for. A little change in name for python 3 but otherwise good to go.
July 07 2010
Answer by Gabriel for difference between SDK and IDE
SDK = Software Development Kit... the tools that do the tasks you mentioned above. IDE = Integrated Development Environment... A GUI for accessing the SDK tools and then some (features differ).
Answer by Gabriel for CSS layout with max heights not working that well...
this is a mock up of what you are trying to do I believe. As it indicated by the other posters you may want to use hide() to handle the menu effect. If there is anything wrong with this mockup let me know, I do not have IE6 installed but it works on 8.
July 06 2010
Birthday Post
I am passing into my 31st year of human existence today and as is the general custom I like to take some stock on what has occurred in the past year and what I will work towards for the next year.
Personal:
My personal life this last year has obviously been dominated by my first year of Marriage. So far everything has been realy wonderful with a minimum of cuts and bruises. I am really glad I ended up waiting until I was 30 to get married, I feel like I am more prepared and more aware than I would have been in the past.
Along with the marriage has of course been the parenting role that has become an integral part of every part of my life. It seems oddly natural, but I suppose it does for most. The love of a child is truly indescribable. Both Acayda and Jaxon have been a wonder to watch as they grow and learn. My son Damon makes me so proud every time I hear from him or about him and I am really hoping we can get together over the next year.
This year I quit smoking, started eating healthier and working out. I don't know if there is a starter kit for over weight geeks but it would probably consist of the couple things I have started doing. I feel physically better then I have... well in the last 7 years or so at least.
My Dad and family on his side have been in the same area of California as me for the last year which has been really cool. I get to go visit them fairly often and have really enjoyed getting to know all my brothers and sisters more, they are all really cool people.
Educational:
Learning is kind of an all year event for me, but now with Melanie being in school full time I am really getting to see the process up close and pick up some of the tips and tools. As far as I know the current plan is for her to get her Bachelors, then I get mine, then we swap again. We will see how all of that goes but at least we have a plan.
Vocational:
This year has been marked by an almost constant stream of work. Starting with the work I was doing for Paul Kooiman this time last year up to the currrent set of websites I am finishing out. All told in the last 365 days I have put up over 200mb of content, code and creativity. Not all of it has been great, but all of it is at least good. Managing the web side work with my day job has been pretty easy... except.
The day job is a little crazy. I owe my employer a lot of respect for sticking with me through some tough times and I feel loyalty for the company in a pretty direct way. That being said working 2 graveyards a week and doubles on tuesdays for 7 months now has definitely been draining the loyalty pool. I have definitely been there to pick up the slack that the recession dropped on us, picking up support and tech duties while maintaining my development and webmaster responsibilities to make sure things don't fall apart.
The fact is... I need to make more money. I need my compensation to become a non issue for the life I live so I can really focus on providing the best code/services/skills that I can bring to the table. I don't think they are going to be able to meet that mark and so I have been keeping my eyes open for a good opportunity to shift to a more agreeable situation.
Ten food tips to help you look better naked
Any list of tips that includes "eat dessert" and "always snack at 3 p.m." sounds perfect for me!Answer by Gabriel for xml child/parent help
I decided to bash on this code for the last 20 minutes. You need two instances of the list otherwise you are changing the index mid iteration. My advice is the top area:
if (file_exists('cats.xml')) {
$xml = simplexml_load_file('cats.xml');
$categories = simplexml_load_file('cats.xml');
} else {
exit('Failed to open cats.xml.');
}
echo "<ul>";
foreach($categories as $category) {
if (!(int)$category->ParentID > 0){
// if the parentid is not set this is a root element and we want to print it and
// it's children.
categorylist($category, $xml);
}
}
echo "</ul>";
function categorylist($current, $list){
// so echo the item list and link opener, but not the closer
echo "<li><a href='index.php?Cat=$current->ID'>$current->Title</a>";
// we need to count the number of children
$count = 0;
foreach($list as $item){
// just iterate through the list for a match
if ((int)$item->ParentID == (int)$current->ID){
if($count == 0){
// if its the first match open the new child list tag
echo "<ul>";
}
// print the child link and item and iterate the counter
echo "<li><a href=index.php?Cat=$item->ID>$item->Title</a></li>";
$count = $count + 1;
}
}
if($count > 0){
// if their were children print the close of the list
echo "</ul>";
}
// now close the list item.
echo "</li>";
}
this gets the output you describe but no more, though it hints at the method you would use to create a recursive version. Of course cats.xml contains your xml content above.
a Technician and a Manager
A man flying in a hot air balloon suddenly realizes he’s lost. He reduces height and spots a man down below. He lowers the balloon further and shouts to get directions, "Excuse me, can you tell me where I am?"
The man below says: "Yes. You're in a hot air balloon, hovering 30 feet above this field."
"You must work in Information Technology," says the balloonist.
"I do" replies the man. "How did you know?"
"Well," says the balloonist, "everything you have told me is technically correct, but It's of no use to anyone."
The man below replies, "You must work in management."
"I do," replies the balloonist, "But how'd you know?"
"Well", says the man, "you don’t know where you are, or where you’re going, you expect me to be able to help. You’re in the same position you were before we met, but now it’s my fault."
Maybe Soup is currently being updated? I'll try again automatically in a few seconds...

