Quantcast
Channel: Davin's blog » code
Browsing all 15 articles
Browse latest View live

XML file of shooting ranges in Michigan

As another small step in this process of manipulating a data set to upload to Google Maps, I took the cleaned XHTML I had from a few days ago, and used TextWrangler to do some quick search and replaces...

View Article



Can robots.txt prevent a dead page from being removed from a search engine’s...

Problem: Pages taken offline 4 months ago are still indexed by Google and Yahoo! In the course of work this week, we discovered that Yahoo! and Google still have record of a section of a website we...

View Article

Nephtali

Oh! Nephtali! Alright, so if you look up “Nephtali” on thinkbabynames.com, you see it listed as a variant of “Naftali.” The boy’s name Naftali \n(a)-fta-li, naf-tali\ is of Hebrew origin, and its...

View Article

Using Javascript to add instructive text for input and textarea form fields

OUTDATED POST: HTML5′s placeholder attribute creates the behavior that this javascript did. Just use the placeholder attribute. UPDATE 2008-04-13: This code has been refactored. Please view the updated...

View Article

Revision: Using Javascript to add instructive text for input and textarea...

OUTDATED POST: HTML5’s placeholder attribute creates the behavior that this javascript did. Just use the placeholder attribute. This is a code update to a prior post. The Javascript I had posted...

View Article


Ladies and gentlemen: introducing REGEXER.COM!

My friend Adam has been tapping at the keyboard and pacing again. This time, he’s working on a project called Regexer. For many programmers and Web developers, having to write up a regex (regular...

View Article

HTML form fields that, when not selected, do not even send a field name upon...

Checkboxes and radio buttons that have not been checked and multiple select lists that have no selection submit nothing upon submission of the form. It’s as though they aren’t even there. At first,...

View Article

Image may be NSFW.
Clik here to view.

XSL to get text from Apple Pages documents

Pages is the name of Apple’s basic word processor program that comes with their iWork suite of applications. It’s not a bad program, but a number of months ago I needed to switch up to MS Word for the...

View Article


jQuery: Show password checkbox

I wrote version 1 of a jQuery plugin during the last couple of days. Read more about jquery.showPasswordCheckbox.js. The basic functionality is to provide a checkbox on web forms to reveal the password...

View Article


Image may be NSFW.
Clik here to view.

Newsweek’s Spring 2010 Website Redesign

Home page of Newsweek.com, May 31, 2010 I don’t know when it happened, exactly, but Newseek.com was recently redesigned. There is so much to say about it, and it is mostly good. I’ll start with the...

View Article

Image may be NSFW.
Clik here to view.

I got to help UXmatters with print styling

A few months ago I contacted UXmatters online magazine to let them know of a problem I had printing out articles with Firefox. The first page would print, but that was all. I could switch to Safari and...

View Article

Image may be NSFW.
Clik here to view.

Google Analytics for WordPress (version 4.09) trips HTML validation when...

When I write HTML, running code through the W3C Validator is part of my process. If the code doesn’t pass the validator, there’s a slim chance I’ll consider that code ready for anything. So after I...

View Article

The problem with the line break (BR) tag

We’ve got the <br /> tag all wrong. It’s time to make it right. We all know the <br /> tag is used to insert a line break in HTML. But what we’ve been missing is that we were too often...

View Article


Small-caps, web text, and CSS

There’s a trick to getting small-caps to work on the web, and it’s counter-intuitive. Let’s say you had an abbreviation, like CSS, that you wanted to put into small-caps, say with a little extra...

View Article

How I use utm_source, utm_medium, utm_campaign from Google Analytics

My friend Adam called me this evening to ask how I’ve used the Google Analytics tracking codes utm_source, utm_medium, and utm_campaign. He’s working on an app to help marketers generate HTML e-mails,...

View Article

Browsing all 15 articles
Browse latest View live




Latest Images