KevinSmithDesigns
From the blog: Pull Attachments from Incoming Mail with Perl
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 [...]
From the blog: Receiving and Sending Text Messages With PHP and IMAP
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 [...]
From the blog: A design in the works
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 [...]
From the blog: An Update on the House
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 [...]
From the blog: Push RSS feed to your Twitter feed
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
I'm upgrading wordpress so things might be hairy for a few hours..
Just upgraded from wordpress 2.3 to 2.5 -- the admin area has a few changes. The biggest change is the style and placement of everything. I like it and will adjust quickly but I really wish I could move my category selection box to the side nav again...I hate having it at the bottom. Other than that, I'm pleased...I really like the new autoupdate feature for plugins (is this new or have I overlooked it for this long?)...
I started on this last night around 10pm and had the basic code finished around midnight. It's fairly simple (and yes, another Twitter application): a user goes to www.SecretTweet.com and types in a secret. Their secret "tweet" is then published to @secrettweet. It's kind of like postsectret but for Twitter. I might add some features to it in the future...it all depends on the popularity.
I want to keep this as free as possibly from my other online activities; therefor, I have created a tumblr account that will host all of my twitter updates, all of my photoblog updates, all of my del.icio.us bookmarks, all of my youtube videos (rare), and all of the posts to this blog in one single place. It's very simple and rather unorganized....it gets the job done, though.
Note: This piece of code wasn't entirely created by me. Also, I don't claim to be knowledgeable in javascript...I'm just sharing.
function expandCollapse() {
for (var i=0; i<expandCollapse. »
arguments.length; i++) {
var element = document.getElementById »
(expandCollapse.arguments[i]);
element.style.display = (element.style. »
display == "none") ? "block" : "none";
}
}
Which will allow you to expand and collapse a div in css. I needed this for a new addition to VisitMatewan.com that I'm working on. Handy....