Entries Tagged as ''

Fucking Leopard Man…

Welp, I’ve upgraded my laptop / main computer to OS X 10.5 Leopard, and I must say that it’s a great improvement. Lots of fun new toys and features. I have to give it to the apple design team. They’re amazing. Also, check out the size of the image:

Picture 1.jpg

;o)

As I find new things that I like about it, I may post them here. Could be OS X overload though.

overflow:auto not working in IE6?

If your overflow in IE is showing the scroll bar and showing the content that’s supposed to be hidden outside of the element, try adding the position:relative; style to the containing element.

.myElement{
	height:300px;
	overflow:auto;
	position:relative;
}

Cool AJAX Help Balloons

I’ve been looking around for some cool effects to add to my site, and this little scriptlet for adding help balloons is pretty cool. Although, I’m still looking for something a little more formal.

UPDATE: Just go here for a whole list of awesome tool-tips widgets!

Awesome Syntax Highlighter

From the beginning until now, I have been displaying all my code postings

like this.

Well, I just found this awesome code syntax highlighter for all the main languages (C, C++, C#, Delphi, Java, JavaScript, PHP, Python, Ruby, SQL, VB, and XML). I’ve implemented it into this blog, and below is the first sample of code being rendered with it. It’s all javascript based, and damn simple to use.

You can get a copy of it through Google Code: Here

Here is a sample javascript function wrapped by this highlighter:

var attempts = 0;
var timerHandle = setTimeout("checkIfHilighterLoaded()", 350);

function checkIfHilighterLoaded(){
	try{
		dp.SyntaxHighlighter.ClipboardSwf = '/flash/clipboard.swf';
		dp.SyntaxHighlighter.HighlightAll('code');    

		clearTimeout(timerHandle);
	}
	catch(e){
		clearTimeout(timerHandle);

		if(attempts < 25){
			timerHandle = setTimeout("checkIfHilighterLoaded()", 350);
		}

		attempts++;
	}
}

see… bad ass =)

Best code reference site ever

If you develop any type of code, w3schools is by far “the shit” for all references. Go there, learn, enjoy, and thank me later if somehow you’ve never seen this site before.

Go To w3schools.com

getElementBy()

You ever use this? If you’re a web developer, I guarantee you have…a lot. I ran across this pretty nifty web2.o site that helps with syntax of all the different types. It’s GetElementsBy.com. Totally worth bookmarking.

Awesome SEO tool for dynamic IIS sites

If you’re a web guy for a site that has dynamic content (ie. something.asp?ID=1&name=sup), you may be aware that search engines only index each page once. So, like my site, I have about 40,000 mods, but they’re all shown by the same mod.asp page. Google therefore will only recognize 1 page. It ignores the querystring. For all the nix guys out there, they can just use the mod_rewrite function, but IIS doesn’t have that. So, I found this little tool a couple years ago, and have been using it since. It’s called LinkFreeze. It will turn somthing.asp?ID=1&name=sup into something~ID~1~name~sup.htm. This way the spiders will pick up all the pages.



LinkFreeze Site

Messed up .NET error

Last night, everything was working fine. Then I wake up this morning to find out that this error is on all of my aspx pages were throwing it:

Server Error in ‘/’ Application.
Could not load file or assembly ‘System.Web.Services, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ or one of its dependencies. The handle is invalid. (Exception from HRESULT: 0×80070006 (E_HANDLE))
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.FileLoadException: Could not load file or assembly ‘System.Web.Services, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ or one of its dependencies. The handle is invalid. (Exception from HRESULT: 0×80070006 (E_HANDLE))

I stopped IIS and deleted the temp .net files and started IIS back up. Worked for me. Here’s the path to the temp directory:

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\

You may want to also check to make sure that the domain your .net files are in are set to 2.0 and not 1.1.

Using a url redirect for your 404

For the longest time (and still today), I have setup my web server to redirect all 404 traffic to my home page for the site. This is done by simply changing the error redirect url to “/”. The pro’s are the obvious. The cons…. well, I just found a bad one today.

Looks like one of my css files on my server got corrupted (one that wasn’t used for anything major, but was included in almost every page). When the browser tried to load the bad css file, the web server threw a 404 and redirected the request to my home page. Well, when you have a crap-load of pages being requested constantly, and they all start polling the home page as well, my server basically vomited. The worst part about it was how much of a pain in the ass it was to trouble shoot this. I hate trying to figure out what’s wrong with my web server when it’s peaked at 100% cpu. Everything takes forever… I mean, just to bring up the task manager takes about 2 minutes to right-click, and another 10 to show the window. Sheesh.

The only way I found it was by watching the individual requests going to the server when a page was being loaded. I used Firebug (Firefox plugin) for that. If you have never used / seen / or heard about firebug. Just stop what you’re doing and go get it now. It’s a gift from the gods!

Firebug Addon Get It Page

Go… get it.

I’ll wait.

SQL Tool for OS X

If you’re in the need for a great tool to manage your SQL databases, check out SQLGrinder. It’s as about as simple as it gets, but works perfectly. It’ll manage your connections and let you execute commands remotely. What else could you ask for? Oh, and it interfaces with Growl =)



SQLGRinder Homepage