The blog has moved to http://jessehouse.com/ ... Many google searches point here so I am leaving it operational, but there will be no new posts.
Thursday, March 26, 2009
Get Filenames and Database names from MSSQL
I was doing some clean up on one of our database servers; we have many databases created with backup/restore for testing purposes I was checking for the largest ldf files and making sure those databases were in simple mode and then shirking the data files, there were a few files I could not match to the databases because the mdf and ldf file names were different from the actual database file name - found the following queries using a few google searches
Monday, March 2, 2009
jqueryUI effect error with Google Chrome and Safari
Ran into a strange issue using jqueryUI highlight effect, the issue only occurred with Webkit browsers (Google Chrome and Safari) and only when I was manipulating the background property of the element that was being highlighted.
Using a slightly modified version of the demo. I tweak the background image before applying the highlight effect
$("#highlight").click(function() {
$(this).css("background", "url(some_image.png) no-repeat");
$(this).effect("highlight");
});
This resulted in the highlight appearing but not going away. Then checking it in the debugger the following javascript error was being generated - "Uncaught TypeError: Cannot read property '0' of undefined," Changing the background manipulation to the following fixed the issue.
$(this).css("background-image", "url(some_image.png)");
$(this).css("background-repeat", "no-repeat");
$(this).effect("highlight");
Update 2009-03-06: You also need to make sure that if there is an existing style on the element being highlighted it is using the more verbose style tags of background-image and background-repeat or the same error will be encountered
Monday, February 16, 2009
use jquery to disable a button when clicked
jquery is such a great javascript library, the more I use it the more I like it
NOTE: the above code snippets are untested - cut, pasted and modified from real code that was tested (and worked!)
NOTE: the above code snippets are untested - cut, pasted and modified from real code that was tested (and worked!)
Labels:
javascript,
jquery
CSS position:relative + position:absolute
I do alright with css positioning but I just don't do enough css to have it mastered; anyhow I needed to float an image over into the right upper corner of a form, no problem put a div at the bottom of the form with position relative and top at -xyz. this worked but was not ideal, depending on the amount of fields in the form I would have to adjust the top setting for each, also the alignment was not consistent enough across browsers, so a google search was on once again...
Came across this great post, see tab 4 "position:relative + position:absolute", using a relative div with a nested absolute div, I did not even know this was possible but it appears to work great!
Wednesday, January 21, 2009
2009 Grasshopper Adventure Series
A really fast bike ride or is it a race? you choose
The schedule for 2009 Grasshopper Adventure Series is out!
- 2009-02-28 Old Caz
- 2009-03-07 Chileno Valley
- 2009-04-11 Lake Sonoma
- 2009-05-09 King Ridge
this year there is actually an entry fee - times they are achanging
read more here
Labels:
cycling
Subscribe to:
Posts (Atom)