Categories
Looking glass
Navigate/Search

Archive for the 'Programming' Category

Webmonkey Maps iPhone App Developer s Frustration - Webmonkey

Friday, September 26th, 2008

Webmonkey has a great post up about how frustrating it is to develop for the iPhone. I have spent a little time in the SDK, and it is downright confusing. Granted, I have not given it enough effort due to time constraints, but it is the most puzzling development I have ever attempted.

link

Master Page Name Mangling

Friday, April 11th, 2008

I 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, 2007

UPDATE: 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:

EnableRightClick.user.js

Code:
// ==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, 2007

I found this blog on del.icio.us I think. This is by far the best explanation of the various ways to use functions in javascript. Don’t stop with this one, look at all the other posts. There is some pretty advanced stuff here, and javascript isn’t going anywhere any time soon.

Internet Explorer Developer Toolbar

Sunday, March 4th, 2007

This toolbar makes my job a lot easier.

Protolize.org

Wednesday, February 28th, 2007

Protolize.org is awesome! This is the best collection of web tools I have seen yet.

Mono Project

Friday, February 23rd, 2007

Mono Project

Now 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, 2007

Side 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, 2007

Here 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, 2007

Pixel2life 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.