Javascript Function to Run
kcbruce 2010-11-05 1:41pm
The crappy thing about html returned from ajax calls is that the returned html doesn't execute any javascript "onload" calls. This function is called on an ajax success AFTER the called html has been placed inside the ajax target div. The function finds any "onload" javascripts inside "script" tags and eval()'s them. This is necessary for wysiwyg editor elements inside returned html from ajax calls as well as multilayer ajax calls.
function core_activate_ajax_...
First OOP Sample
kcbruce 2010-01-03 12:14pm
Well, I've started my foray into object oriented programming, and I have to say that it's a totally different way of thinking than procedural. The sample of version 1.0 is located [here].
I have written a basic framework with a CMS built into it. The CMS allows for modules to be built for it. I've already create a couple of proprietary modules for Philips Hadco that can't be included here. I can say the it's fairly easy to build these modules (blog, forums, etc...). I'm already going to revise ...
Happy New Year!
kcbruce 2010-01-01 12:19am
Just a quick "Happy New Year" to everyone out there! May 2010 be a wonderful and prosperous year for us all!
PHP5 - Recreating .NET's membership password hash algorithm
kcbruce 2009-11-12 4:53pm
Premise:
I'm writing a php app that runs alongside ASP .NET site. I want to utilize the existing users and roles tables in the MSSQL server and can, except for one thing- matching the hashed passwords in the database. I found a blog that shows how .NET does the hashing (with salt) so I can try to recreate it in PHP.A developer on Twitter sent me this link which shows the .NET membership procedure for developing the hashes for passwords.
private static HashAlgorithm passwordHasher...
Summer is Ending
kcbruce 2009-08-26 12:39pm
Well, September is upon us and the heat is abating (granted, it was a mild Summer). That means my favorite time of year is coming up- Fall! The air gets cooler and dryer, the food gets richer and heartier and the days get shorter.
What's more important, Halloween is drawing nearer! I luvs me some good scary fun! Right now, the haunted forests, mills and houses are gearing up, getting ready for the tons of $$ they'll make scaring people with rubber masks and chainless(?) chainsaws! YES! Then the...
Twitter Down, 2012 Arrives Early
kcbruce 2009-08-06 10:02am
Well, Twitter has been down for about an hour so far. I'm feeling a little weak, but I'm fine. The weakness is probably due to the lack of movement from my desk since I first started Tweeting. Life without Twitter is possible, because we have blogs! ;)
The Absolute Definitive Word on Social Media Marketing (for about one minute)
kcbruce 2009-06-22 11:34am
I attended the Frederick Chamber of Commerce's Social Media Conference on June 5th and walked away with a ton of good advice and a healthy dose of perspective. What I've gleamed from both the conference and online Social Media content (for which, there is a ton of) follows...
Companies using Social Media for Marketing
One of the main questions for engaging in Social Media from companies is how to directly monetize the outcome. How do they sell their "stuff" to people in the SM arena?
First of...
The Problem with Discipline
kcbruce 2009-06-22 11:32am
Apparently evil must be inherent in humans, because what else would cause my little boy (light of my life and fruit of my loins) to laugh out loud at my wife's pained yelling after he scratches her face. *sigh* I know it's the terrible two's and all, but that's just plain evil!
We're trying to raise him without the use of spanking, because we think it's a little hypocritical to hit him for... well, hitting people. I tell you, though- there are times I think a good, old-fashioned ass kick'n woul...
Web Technology Group of Frederick
kcbruce 2009-05-30 2:43pm
Click here to check outThe Web Technology of Frederick!
After several conversations on Twitter, it was decided that Frederick, and the surrounding area was very underserved for geeky exchange groups. So I signed up a meetup group at meetup.com. For those that follw my sporratic blog, you know that I have occasioned the Columbia PHP meetup and have gotten alot out of the meetings. I feel that the web geeks of Frederick at least have the same talent. Frederick hosts several PH...
Brush up on the Social!
kcbruce 2009-05-08 4:45pm
When you're both the producer and the customer service (AKA "freelancer"), it's hard to switch hats. You work all day (and nights) on projects in solitude, answer and send emails, twitter and research. What is easy to forget is that customer service is king! You have to keep that line of communication open! In my years of dealing directly with customers, I've found that their main concern is being kept in the loop with their project. Daily emails, phone calls or even tweets do more to ...
Frederick connection
kcbruce 2009-04-20 1:09pm
If I've learned one thing over the course of the last 5 years, it's that Frederick is a great little town! There are so many talented professionals packed into this quaint little city, and each one of them with a willingness to share, to pitch in.
From the retailers downtown (which make this a popular destination for tourists) to the B2B set, to the huge corporations- they all make up the rich, vibrant quilt that remind me how lucky I am to live downtown.
A few of the associations that help dr...
Apple TV
kcbruce 2009-04-08 1:11pm
Just got my new AppleTV this week. Pretty sweet! The downside is My old G4 (Dig Audio) has 802.11b and it has taken approximately 14 hours to get to 60% sync completion! I'm not upgrading anything on that Mac at this point. We'll just have to wait til a real upgrade.
Happy Birthday to Me
kcbruce 2009-03-18 9:20pm
Well, I spent my 41st birthday at home with a cold. Not all that bad a thing. I got to potter around the house, tinker with facebook and twitter. I also fit a movie in (onDemand) - the 3rd Mummy movie. While the movie was entertaining, I really missed Rachel Weis. They replaced her with another actress, probably because Rachel had put her foot down.
I made myself a cheesesteak and tomato soup and vegged in front of the movie. Not a bad day :)