Archive for the 'Programming' Category
Master Page Name Mangling
Friday, April 11th, 2008I just read over some of my oldest posts, and found this gem. While I stand by it still, the code is unreadable, and using some class names that will not be relevant to your project. Mayhaps a better approach would be to create a class to implement in pages where needed.
Again, this is really only needed when time is at a premium and you have legacy javascript that accesses page elements by ID that will be mangled by master pages.
Obviously, the best course of action is always to use the coding tools you have and not hack around them. Sometimes, that is not an option. That was the situation I was in when I wrote those posts. Shakespeare’s gotta get paid, son.
Enable Right Click
Wednesday, June 6th, 2007UPDATE: Do not keep this script enabled, only use it as needed. It could cause some issues while browsing, as it loops through every HTML element on the page.
Greasemonkey script to reenable right clicking on sites that disable it for “security” purposes:
// ==UserScript==
// @name enable right click
// @namespace http://forrestledbetter.com
// @description enable right click
// ==/UserScript==
if (document.all)
{
iElements = document.all.length;
for (i = 0;i < iElements;i++)
{
document.all[i].setAttribute("oncontextmenu", "return true;");
}
}
else
{
iElements = document.getElementsByTagName('*').length;
aElements = document.getElementsByTagName('*');
for (i = 0;i < iElements;i++)
{
aElements[i].setAttribute("oncontextmenu", "return true;");
}
}
Functional Javascript
Thursday, April 19th, 2007Internet Explorer Developer Toolbar
Sunday, March 4th, 2007This toolbar makes my job a lot easier.
Protolize.org
Wednesday, February 28th, 2007Protolize.org is awesome! This is the best collection of web tools I have seen yet.
Mono Project
Friday, February 23rd, 2007Now you can write AND run .net code on pretty much anything, for free. With Mono’s newest release, you can use Visual Basic. I’m not sure why you would want to, but you can if you feel the urge.
VB.Net and C# Comparison
Thursday, January 11th, 2007Side by side comparison of VB.Net and C# syntax. This was very useful for me when starting out in C# since I already had VB.Net experience.
Javascript libraries roundup
Thursday, January 11th, 2007Here is a great post containing a list of several javascript libraries. These are great for speeding up web development. Form field validation, ajax, visual effects… each implemented with usually one line of code.
Pixel2life Free Tutorial Search Engine
Thursday, January 11th, 2007Pixel2life is an awesome source of tech tutorials including graphic design, coding, 3D animation, photoshop, and on and on. There are tons of things to learn there.