Windows update error: 0×80072ee2
July 29, 2008
Ran into this little gem today and figured out the solution:
1) open up services.
start -> control panel -> administrtive tools -> services
2) stop the automatic updates and background intelligent transfer service.
3) remove the c:\windows\softwaredistribution folder
4) restart the automatic updates and background intelligent transfer service.
5) rerun windows update.
Open source comedy
July 18, 2008
said at dinner one night:
innocent victim – “My God, our new kitten has such a ravenous appetite”.
me – “Ravenous?!? That’s some word there, i’m quite impressed. You got a fucking thesaurus under your place mat or something?”
yesterday david shuck posted some jquery code he was using to toggle the display of some form information. one of the things i noticed about his code was that he was using jquery to bind to the change event of a radio button, but the code to acutally toggle the display was contained in a separate function.
i commented him back about how he could combine these two functions into one jquery chain thus making the code a little more readable. today i want to share this with you, let’s take a look at the two functions:
$("#RequireCCInfo").change(function(){
toggleCreditCardCompanyPanel();
});
function toggleCreditCardCompanyPanel() {
if ($("#RequireCCInfo").attr("checked") == true)
$("#CreditCardCompanyPanel").show();
else $("#CreditCardCompanyPanel").hide();
}
toggleCreditCardCompanyPanel();
basically the first function bind to the change event of a checkbox with an id of RequireCCInfo and then calls the toggleCreditCardCompanyPanel to toggle the display of the panel.
so how could chaining in jquery help us clean this up a little? remember that with jquery you can bind a function to an event and also trigger event. with this knowledge you can do things like:
$(function(){
$(“#RequireCCInfo”).bind(“change”, function(){
// your code
}).change();
});
as you can see from the code above, we’re binding some code to the change event and then immediately after triggering it, this is the same thing a creating a separate function and then calling it. armed with this knowledge we can now perform the clean up:
$(function(){
$(“#RequireCCInfo”).bind(“change”, function(){
$(“#RequireCCInfo:checked”) ? $(“#CreditCardCompanyPanel”).show() : (“#CreditCardCompanyPanel”).hide();
}).change();
});
My many hats
July 10, 2008
I wear a lot of hats where I work. People often ask me what hats I wear when I perform the many tasks at hand. Here is the list:
Network administration: a Sherlock Holmes hat
Database administration: wizard hat (and robe)
Website Administration: Baseball cap
Technical Support: Yamika
ColdFusion Programming: Sombrero
.Net Programming: a jimmy hat
I can’t get this song out of my head
July 8, 2008