For a new project I've been working on, I needed to pull the image attachments from all incoming mail, store them separately. I couldn't find any snippets online for this so I had to create my own. Here's what I came up with. As always, it's a bit rough but is a [...]
I've had a lot of requests to turn some of my Twitter apps into mobile services. Most companies, like Twitter itself, use Short Codes (like 40404) to accept and send txt/sms messages. Short codes are very expensive (the cheapest solution I found started at $500 per month for a randomized short code of [...]
Just to keep my blog semi updated (seems I'm just letting this place collect dust), here's what I'm working on for today.
This design won't be used. I liked where it was going, the client didn't. Figured I'd share it before I toss it.
Also, I'm working on something new for this blog. It [...]
After a week or so of very hard work, we decided trying to clean everything up and restore the house was a futile attempt. Everything we really wanted to save/couldn't afford to replace immediately was cleaned up, boxed, and stored at my brother's house. After a couple weeks of cleaning and boxing, the [...]
A friend needed to push/send items from an RSS feed to his Twitter account.
Here's the code in a nice .zip file. Very simple and rough, but it gets the job done nicely. Feel free to add to/modify.
http://kevinsmithdesigns.com/blog/wp-content/uploads/KSDtwitter.zip
For an example, visit SecretTweet.com and click in the textbox up top--the only textbox on the whole page. The captcha, tags field, language field, and submit button all are hidden until needed by the user.
Rather than type a long explanation of what exactly this is and what it does, it's best to just show you:
If you still don't understand what this does, here's a short explanation: Onfocus of form field, default value is automatically cleared and, if no value is entered, return the default value (onblur).Why use this? Personally, I feels it's a waste of space to label form fields (perfect example on the NY Times Login Page) ...it also looks pretty cluttered.Enough jibjab, here's how I do it (there are other ways, of course...but this one seems to work easiest and the best):
<input class="input"name="fieldname" value="Click in me then click away"onfocus="if(this.value == 'Click in me then click away') {this.value = '';}"onblur="if (this.value == '') {this.value = 'Click in me then click away';}">