Sometimes I have goofy thoughts about geeky stuff, family, and dogs. And other times, I just want to be stupid. Enjoy!

2007-01-16

More than a pound!

What a feeling! It's way fun losing weight, especially when I have competition to keep me going.

First, yesterday I put on a flanel shirt I like, and at the exact moment I was buttoning it, I had an epitaph and Stacy walked in to say, "You lost weight!" My epitaph was a thought of, "this shirt stretched out!" Only it was my gut that shrunk! Ha! Awesome!

Second, today, I was a pound and a half less than yesterday! That means I am just shy of 10 lbs lost! Good start!

2007-01-15

Biggest Loser!! Fun!!

The family big loser challenge is way fun so far. What, isn't there 30 of us? Can't remember, but family and freinds all going at it to lose weight! Kick ass!

As of today I have lost only 8 lbs. But I am happy and feel way better. Thanks to all of you joining the game! It keeps me going, whether or not I win, it's fun!

I am going to start blogging my stuff here about it, but I'll post schtuff on the pbwiki too.

Main thing about all this, Mary, Stacy's mother, is to blame (just kidding!) for my few 8lbs so far! I lost 7lbs the first 5 days, then we went over there for a visit. I just couldn't deny my mother-in-law her own cooking. OUCH! It took me a week to recover, and now I am a week behind! I would have been at least a few pounds more than now, because I gained a couple pounds on that weekend. So not only did I have to "RELOSE" it, I had to play catch up!

Then, last week (week 2), I got so darn busy with work emergencies, I didnt do my workouts. OUCH 2! That keeps me from losing, even if I limit intake. The Blowflex makes me lose. (with the diet of course!)

In any case, it's fun to hear and watch all the tales. Keep it going Losers!

2006-02-18

My new opinion on AJAX

So I've spent the last 6 months learning more about Javascript and how to use different AJAX libs. After trying to create some apps using it, I can say this. It is best used either in small doses on basic web apps (bloggers, forums, forms), or use it extensively on a proprietary web-based app.

So far I have found it is very cool and helpful to run some simple graphics effects and XMLHTTPRequests for single form fields or small forms, but designing the "single page" web app isn't quite suited for standard web site right now. I say that for on simple reason, useability. Yes, useability. People have it so implanted in the mind on how to operate a web site, when you stray from the standard practice (like back buttons, urls), people don't like it. Sure, you can deal with the back button issue, but why work so hard to do that when it's so fast to do things with a new page.

I just find that using AJAX to compliment a web site form works best for now. However, say you want to build a complete application running over the Internet, then doing things the AJAX way might make things interesting. But, you'd have to rid yourself of the toolbars and run the app in a clean window, because you will be forcing the useability into your app, not into a web browser. (even though it still runs in your browser)

2006-01-20

Worthless IT Certs?

A few minutes ago I ran into a blog by someone that said something that needed to be said. IT Certs are not really worth getting. I just wanted to save my comments on my own blog to reiterate and edit later.

Here's my comments on his blog:

Having spent a few years as an IT Manager for a small company, I can say that I never looked at Certs in my stack of resumes. (Except maybe, A+, maybe) In fact, I put very little importance on College education. I wanted to see a couple years providing real, and creative solutions. This gave me a good ground work to start the interview process, and then determine if the personality would work.
I have seen a couple educated people, looking to get certs, not even be able to replace a hard drive. Or even tell me why certain DNS issues were causing problems. In my IT world, these people will never do. Learn how to do pc repair, then networking (the non-microsoft way too, ie. Linux) and you'll be 100% better off.
In my experience getting jobs (and now clients), having the NT cert from back in 98, not a SINGLE person has ever asked me about it! I was always hired because of a referral, and my experience spoke for itself.
Besides, I feel that Certs really say, "I know the books smarts that this vendor wants me to know, not necessarily what the real world needs." I would even say that, having the NT cert, only half of it was useful information.

2005-07-06

How to get Zope's ZMySQLDA to retrieve a MySQL Stored Procedure recordset.

Quick, before I forget!!

Tired of "can't return a result set in the given context" errors when calling stored procedures in Mysql 5?

The ultra fast how-to on returning records from a multi-column multi-record stored procedure in Mysql 5 using Zope/Python!

In the ZMySQLDA, edit the db.py file and add the lines below in the _parse_connection_string function:


#added by Greg Fischer retheoff at gmaildot com on 07/05/2005
# Wanted an option to use 'client_flag' in connection string
# to utilize MULTI_RESULTS and thereby retrieving full
# recordsets from Mysql 5.x
# There is most likely a better way to implement this,
# but this solved my isssue for now. (what if you have
# more than 1 client_flag?)
if not items: return kwargs
kwargs['client_flag'], items = int(items[0]), items[1:]
# End addition

Like so...

def _parse_connection_string(self, connection):
kwargs = {'conv': self.conv}
items = split(connection)
self._use_TM = None
if not items: return kwargs
lockreq, items = items[0], items[1:]
if lockreq[0] == "*":
self._mysql_lock = lockreq[1:]
db_host, items = items[0], items[1:]
self._use_TM = 1
else:
self._mysql_lock = None
db_host = lockreq
if '@' in db_host:
db, host = split(db_host,'@',1)
kwargs['db'] = db
if ':' in host:
host, port = split(host,':',1)
kwargs['port'] = int(port)
kwargs['host'] = host
else:
kwargs['db'] = db_host
if kwargs['db'] and kwargs['db'][0] in ('+', '-'):
self._try_transactions = kwargs['db'][0]
kwargs['db'] = kwargs['db'][1:]
else:
self._try_transactions = None
if not kwargs['db']:
del kwargs['db']
if not items: return kwargs
kwargs['user'], items = items[0], items[1:]
if not items: return kwargs
kwargs['passwd'], items = items[0], items[1:]

#added by Greg Fischer
retheoff at gmaildot com on 07/05/2005
# Wanted an option to use 'client_flag' in connection string
# to utilize MULTI_RESULTS and thereby retrieving full
# recordsets from Mysql 5.x
# There is most likely a better way to implement this,
# but this solved my isssue for now. (what if you have
# more than 1 client_flag?)
if not items: return kwargs
kwargs['client_flag'], items = int(items[0]), items[1:]
# End addition

if not items: return kwargs
kwargs['unix_socket'], items = items[0], items[1:]
return kwargs
Now, when you create your database connection object in Zope to Mysql 5, you use a slightly different connection string:
db user passwd client_flag
The client_flag is 131072 as specified in the CLIENT.py of MySQLdb for Python. (it didnt work for me to just use the constant MULTI_RESULTS.)
It will look like this:
adatabase auser apassword 131072

On Linux, this worked great. I cant get it to work on Windows. Probably need a newer version of _mysql.c from the mysql-python developers. (just a guess)

In Python, if you just want to connect, use the client_flag option in your connection string: (watch the wrapped lines)

cn = MySQLdb.Connection(db=adb, host=ahost,
user=auser, passwd=apw, client_flag=131072)
Worked great, again on Linux! But on Windows, I still get the "can't return a result set in the given context" error unfortunately. If I find out how to get around that, I'll post more.

This is a QUICK FIX! It is in know way the proper solution and will most likely cause some other problems, but it works and I needed the sprocs on Mysql! So, use at your own risk. And good luck!

Edit 7/06/05 2PM:
This *was* working. I ran in to a problem after creating a more complicated procedure using multiple statements. I then received an error in Zope stating something about releasing a lock. ?? I duno. I'll test it in Python directly and see if it's just my corny DA fix.

Edit 7/06/05 5PM:
Ok, it works, but I need to do more testing. You NEED TO USE A DASH in the connection string. Like so:
-
adatabase auser apassword 65536

Also notice I am using 65536 as the client_flag. Using this specifies MULTI_STATEMENTS, and implies MULTI_RESULTS.