Open commenting!

 Just BS  Comments Off on Open commenting!
Apr 222010
 

I’ve made commenting open to anonymous commenters if you care to leave your thoughts. (who the hell is going to make an account on MY sad little chunk of real estate anyways?) I’m going to try various CAPTCHAs, and see how well they do. I came across this first one, Resisty on HACK A DAY. It’s neat in concept, but I’m not sure it will work well with my dark background.  I had to update the explanation text around it to make it more clear how the CAPCHA works.  Maybe that’s all the proof I needed? :)

Reddit<-- Share/Bookmark
Apr 142010
 

Associating Javascript in Command ShellI ran across this error a few days ago while setting up a PHP server on my Windows XP Pro SP3 box for testing purposes.  As part of this setup, a script needs to be run that associates the .php extension with php-cgi.exe. Here is the script:

cscript %windir%\system32\inetsrv\fcgiconfig.js -add -section:"PHP" ^
-extension:php -path:"C:\PHP\php-cgi.exe"

The problem, is that when I tried to run the script, I got the error: Input Error: There is no script engine for file extension “.js”. It took me quite a bit of searching before I found the fix that worked for me on this IBM forum. Hopefully, if you’re facing this issue, you find my article before the 100 other articles talking about the 99 other fixes that didn’t work for me. :) Continue reading »

Apr 062010
 

specificitywars Today, I ran into a problem with some CSS code I was modifying.  I was making what I thought was a simple change, but the change refused to show up when I refreshed.  Changing the declaration type from a class to an ID, and stripping out some HTML selectors made the problem go away, but I knew that wasn’t the right thing to do.  That’s when I ran across this article at hungred.com.

Selector Order Priority

I knew CSS favored more specific over less specific.  However, I mixed up what that meant. I thought more specific was just to have MORE information pointing at the item in question. It’s not quite so simple. Compare the following two samples:

<style>
p .bordered {
border: 1px black solid;
}
.bordered {
border:	5px red dotted;
}
</style>
<div>
	<p class="bordered">Bordered?</p>
</div>
<style>
p.bordered {
border: 1px black solid;
}
.bordered {
border:	5px red dotted;
}
</style>
<div>
	<p class="bordered">Bordered?</p>
</div>

Continue reading »