Blog

How to get PHP errors to show up in MAMP

June 6th, 2009

If your installation of MAMP does not show php errors, you may need to change a setting in your php.ini file. You can find this file in MAMP > conf > php5 > php.ini

Look for “display_errors = Off” and change to “display_errors = On

After that you should restart your apache and mysql servers.

Why min-width and maximum-width hacks blow up in IE6

May 14th, 2009

There are many hacks for ie6 to get the css properties min-width and maximum-width to work. Granted these hacks work. But what I can’t seem to find is a solution that doesn’t freeze the browser when you try to resize it.  It’s been years and the problem sis still present. It doesn’t matter if you follow these instructions: “This important step is frequently omitted from many min/max-width tutorials, and is required to prevent Internet Explorer from freezing up and crashing.” - Perishable Press It will still crash when you follow those instructions and try to resize the window by stretching it.

Granted windows users are used to full screen, but its not always acceptable to have that instability.

Some Examples of these ie6 min-max hacks:

A Javascript Solution:


window.onload = checkAvailableWidth;
window.onresize = checkAvailableWidth;
function checkAvailableWidth(){
var container = document.getElementById("page");
container.style.width = (document.body.clientWidth < 959)? "959px" : "auto";
}
 

http://robertnyman.com/2007/11/13/stop-using-poor-performance-css-expressions-use-javascript-instead/

CSS Expressions:

The more common hack fom Andy Budd’s CSS mastery: http://www.cameronmoll.com/archives/000892.html

#container, #footer {
	width: expression(document.body.clientWidth < 742? "740px" : document.body.clientWidth > 1202? "1200px" : "auto");
	}

Going to DC for DrupalCon 2009

February 25th, 2009

This Wednesday I will be driving down to DC with my co-workers at DLC Solutions to attend the 2009 DrupalCon. Three days of sessions. March 4th through the 7th. Its going to be great.

What Wednesday looks like for me:

My attendee profile: http://dc2009.drupalcon.org/user/mhunt

Follow me on twitter: http://twitter.com/mhuntdesign

IE Security Flaw, Experts say to switch browsers

December 16th, 2008

Today, it was announced that there has been a serious security flaw in IE7. As you all know IE has always has issues with security. Not to mention its lack of css support.

Found first on Slash Dot:

Here is another article: http://news.bbc.co.uk/2/hi/technology/7784908.stm
and another http://www.eweek.com/c/a/Security/Hackers-Compromise-Legit-Web-Sites-to-Target-Microsoft-IE-Flaw/

A list of awesome browsers that are safe:

Web Browser Elements and Wireframe Stencil Graphics Freebies

December 3rd, 2008
Web Browser Elements

Web Browser Elements, image courtesy of Designer Toolbox.com

I found some freebies on the web- browser graphics or elements for wire frames or web design comps.

Form elements for all browsers and operating systems: http://www.designerstoolbox.com/designresources/elements/

Vectortuts Freebie Vector Chrome for firefox on mac: http://vectortuts.com/articles/news/vectortuts-freebie-vector-pack-browser-screens-and-website-elements/

OmniGraffle Stencils: http://www.graffletopia.com/

Yahoo Developer Stencil Kit: http://developer.yahoo.com/ypatterns/wireframes/

Related articles [Updated 12-23-08]:

http://piksels.com/photoshop-browser-templates/

http://patterntap.com/

Linking to Google’s jQuery Repository

November 30th, 2008

Here’s the code to link to Google’s jQuery repository. It grabs the latest jquery. Also added before that is the ie7.js script. The idea here is to speed up the load time if the user has already cached this file from another site using the same technique.

You can go here http://code.google.com/p/jqueryjs/downloads/list for the download list and right-click copy-link location.

    <!–[if lt IE 7]>

  • <script src=“http://ie7-js.googlecode.com/svn/version/2.0(beta3)/IE7.js” type=“text/javascript”></script>
  • <![endif]–>
  • From jQuery:
  • <script type=“text/javascript” src=“http://code.jquery.com/jquery-latest.js”></script>
  • OR
  • From Google:
  • <script type=“text/javascript” src=“http://jqueryjs.googlecode.com/files/jquery-1.2.6.js”></script>

How to Export or Save Sites in Coda

October 23rd, 2008

Coda currently does not have a way to export or save sites like you can using Transmit. But there is a way to save your coda site settings if you need to migrate your site data from one computer to another. You  will need to save a file from your preferences folder.

Save the file:

~/Library/Preferences/com.panic.Coda.plist
~/ is your user name root

This info was originally found at: Google Groups | Coda User

Forcing Internet Explorer to obey css using Javascript, CSS hacks and specific style sheets

September 27th, 2008

I know all of this has been written before, but this post has the best of the best in combating the ie6 and ie7 css issues.

Hate IE6?

I found an article that explains that this line of code can crash ie6:


< style >*{position:relative}< /style >< table >< input >< /table >

I have not tried this out. But I have one question: What in the hell was this guy doing to discover this? Either some really bad code or his page was fragmented some how.

How can I make IE6 behave like a normal Browser?

Enter Dean Edward’s IE7.js

This lightweight javascript library forces internet explorer 6 to accept a number of css selectors that standards-compliant browser allow.

Read the rest of this entry »

Custom Top Level Domain Names

September 15th, 2008



ICANN voted to allow custom TLD’s ( Top-level Domains). Vista is unrelated, but you get the picture. This happened back in June. Looks like they could cost anywhere from $50,000+ or $100,000+ . Now anyone with enough money and resources can create their own custom domain extension. You can see where this can get very chaotic especially for company branding. This forces companies to register these before cyber-squatters get to them. I just don’t know about this. It’s not like an average person can afford these.

Read the rest of this entry »

Wordpress Vector Logos and Hi-Res Graphics Download

September 10th, 2008
Wordpress Logos

Wordpress Logos

Wordpress recently placed all of their logos, buttons and color palettes online available to download. These are the full vector Wordpress logos. Something you don’t see everyday.

View the Official Wordpress Logos page