Monday, October 19, 2009
Manually start that background tasks thingy in XP
Some people never leave their Windows XP machine unused and unattended, so the background tasks that are normally run when the machine is idle don't get run and the machine becomes very slow. To manually start that background tasks thingy in XP just open up a command prompt and type in:
Rundll32.exe advapi32.dll,ProcessIdleTasks
Rundll32.exe advapi32.dll,ProcessIdleTasks
Labels: computer tips, Windows XP
An XSLT to convert an XML file into a CSV
<xsl:stylesheet version="1.0
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
<!-- IF_THE_PIVOT_IS_A_SUBTYPE_IT_NEEDS_TO_GO_IN_HERE -->
>
<xsl:output method="text"/>"
<xsl:template match="//PIVOT_GOES_IN_HERE">
<xsl:apply-templates select="*" />
<xsl:text>
</xsl:text>
</xsl:template>"
<xsl:template match="//PIVOT_GOES_IN_HERE//*">
<xsl:choose>
<xsl:when test="count(child::*) > 0">
<xsl:apply-templates select="*" />
</xsl:when>
<xsl:otherwise>
<xsl:text>"</xsl:text>
<xsl:value-of select="."/>
<xsl:text>"</xsl:text>
</xsl:otherwise>
</xsl:choose>
<xsl:if test="position() != last()">
<xsl:text>,</xsl:text>
</xsl:if>
</xsl:template>
</xsl:stylesheet>
Labels: programming
Monday, October 12, 2009
In Memory of Common Sense
Today we mourn the passing of a beloved old friend, “Common Sense,” who has been with us for many years. No one knows for sure how old he was, since his birth records were long ago lost in bureaucratic red tape. He will be remembered as having cultivated such valuable lessons as:
- knowing when to come in out of the rain;
- the early bird gets the worm;
- life isn’t always fair; and
- maybe it was my fault.
Common Sense lived by simple, sound financial policies (don’t spend more than you can earn) and reliable strategies (adults, not children, are in charge).
His health began to deteriorate rapidly when well-intentioned but overbearing regulations were set in place. Reports of a 6-year-old boy charged with sexual harassment for kissing a classmate; teens suspended from school for using mouthwash after lunch; and a teacher fired for reprimanding an unruly student, only worsened his condition.
Common Sense lost ground when parents attacked teachers for doing the job that they themselves had failed to do in disciplining their unruly children.
It declined even further when schools were required to get parental consent to administer sun lotion or an aspirin to a student, but could not inform parents when a student became pregnant and wanted to have an abortion.
Common Sense lost the will to live as the churches became businesses and criminals received better treatment than their victims.
Common Sense took a beating when you couldn’t defend yourself from a burglar in your own home and the burglar could sue you for assault.
Common Sense finally gave up the will to live, after a woman failed to realize that a steaming cup of coffee was hot. She spilled a little in her lap and was promptly awarded a huge settlement.
Common Sense was preceded in death, by his parents, “Truth” and “Trust,” by his wife, “Discretion,” by his daughter, “Responsibility,” and by his son, “Reason.”
He is survived by his 4 stepbrothers – “I Know My Rights,” “I Want It Now,” “Someone Else Is To Blame,” and “I’m A Victim.”
Not many attended his funeral, because so few realized he was gone. If you still remember him, pass this on. If not, join the majority and do nothing.
- knowing when to come in out of the rain;
- the early bird gets the worm;
- life isn’t always fair; and
- maybe it was my fault.
Common Sense lived by simple, sound financial policies (don’t spend more than you can earn) and reliable strategies (adults, not children, are in charge).
His health began to deteriorate rapidly when well-intentioned but overbearing regulations were set in place. Reports of a 6-year-old boy charged with sexual harassment for kissing a classmate; teens suspended from school for using mouthwash after lunch; and a teacher fired for reprimanding an unruly student, only worsened his condition.
Common Sense lost ground when parents attacked teachers for doing the job that they themselves had failed to do in disciplining their unruly children.
It declined even further when schools were required to get parental consent to administer sun lotion or an aspirin to a student, but could not inform parents when a student became pregnant and wanted to have an abortion.
Common Sense lost the will to live as the churches became businesses and criminals received better treatment than their victims.
Common Sense took a beating when you couldn’t defend yourself from a burglar in your own home and the burglar could sue you for assault.
Common Sense finally gave up the will to live, after a woman failed to realize that a steaming cup of coffee was hot. She spilled a little in her lap and was promptly awarded a huge settlement.
Common Sense was preceded in death, by his parents, “Truth” and “Trust,” by his wife, “Discretion,” by his daughter, “Responsibility,” and by his son, “Reason.”
He is survived by his 4 stepbrothers – “I Know My Rights,” “I Want It Now,” “Someone Else Is To Blame,” and “I’m A Victim.”
Not many attended his funeral, because so few realized he was gone. If you still remember him, pass this on. If not, join the majority and do nothing.
Labels: joke, thought for today
Subscribe to Posts [Atom]