new job
Posted by detour1999 | Filed under general, work
so, yeah….
i’ve finished up the fourth day of my new job.
its kinda weird to be busy.
and kind of exciting.
more to be posted sometime when Im not about to fall asleep.
-d.
the end is nigh.
Posted by detour1999 | Filed under general, work
tomorrow is the end of my current tenure at this job.
i’ve been here for a long time (about 26.6% of my life right now…), so it’s kind of bittersweet.
good people will be missed.
new and different things starting soon.
werd.
-d.
css selectors
Posted by detour1999 | Filed under css, nerdly, xsl
okay…
here’s something I’ve been thinking about.
XHTML is just a specific flavor of XML, right?
Furthermore, valid HTML is almost valid XML (aside from some non-closed tags, like <hr>, <br> etc..)
CSS uses selectors to chose which parts of the markup to affect, essentially returning a set of nodes based on a selector.
XPath queries return a set of nodes based on that query.
Why can’t we use XPath queries as CSS selectors?
I know the obvious answer is that it doesn’t support it… I guess my question is why not?
I know, this sounds a lot like XSL…
but not.
I just want the selectors that XSL has for CSS.
Can anyone tell me why that’s a bad idea?
-d.
summary of work.
Posted by detour1999 | Filed under css, js, nerdly, work
Well, I quit my job that I’ve had for the past 7 1/2 years…
It’s a really odd sensation to not have the same thing to do everyday…
Friday is my last day.
Until then I am supposed to write some sort of ReadMe file for the internal site I’ve been working on.
I should rephrase that.
I am supposed to write a series of ReadMe files on the aspects of the internal site I’ve been working on that no one else seems to understand.
Which is to say, three files:
- CSS
- DOM Scripting
- AJAX
I’ve been somewhat nonplussed about the whole thing. Frankly, I’m of the opinion that if you don’t know the basics of CSS, you shouldn’t be allowed anywhere near the back side of a website. Similarly, if you don’t know anything about the DOM, don’t go near DOM scripting. Especially not on a production site.
But, in the end, I want to leave here on good terms, so I’ve been working on the ReadMe files…
Here’s what I’ve garnered from writing the CSS one and the DOM scripting one. (more…)
sleep, or lack thereof.
Posted by detour1999 | Filed under general, nerdly
Couldn’t sleep last night… shocking, I know.
Rah tried to help with the following
“Try to think of 100 colors.”
it helped for about 3 seconds while I wrote this in my head:
public string[] ListColors(int numColors)
{
ArrayList colorList = new ArrayList();
for (int curColor = 0; curColor < numColors; curColor++)
{
string newColor = Convert.ToString(curColor, 16);
newColor = FormatHexColor(newColor);
colorList.Add(newColor);
}
return (string[])colorList.ToArray(typeof(string));
}
private string FormatHexColor(string newColor)
{
string retStr = "#";
int leadLength = 6-newColor.Length;
for (int a = 0; a < leadLength; a++)
{
retStr += "0";
}
retStr += newColor;
return retStr;
}
yeah, I’m kinda lame..
caved.
Posted by admin | Filed under general, welcome
i caved in.
i has a blog.
more to come.
blarg.
-d.