Reed Write 1.4.0 Released

Reed Write, a content types and taxonomy type plugin for WordPress is out with version 1.4.0.

In this version I fixed the field editor where you selected Choices, or Query type of data for drop downs, and check boxes; thanks to Schulte, Manoela. I also added an image download tab to the Select Image Field Type; thanks to a donation from Manoela.

Get the newest version on the WordPress.org plugin site or read some documentation.

If you’d like something new added to the plugin let me know.

JavaScript Tweet Parsing

Really short post here but a valuable one; a simple JavaScript tweet parser. It parses links, user names, and hash tags.

function parse_tweet(text) {
	var text = text || '';
	text = text.replace(/[A-Za-z]+:\/\/[A-Za-z0-9-_]+\.[A-Za-z0-9-_:%&~\?\/.=]+/g, function(url) {
		return url.link(url);
	});
	text = text.replace(/[@]+[A-Za-z0-9-_]+/g, function(u) {
		var username = u.replace("@","")
		return u.link("http://twitter.com/"+username);
	});
	text = text.replace(/[#]+[A-Za-z0-9-_]+/g, function(t) {
		var tag = t.replace("#","%23")
		return t.link("http://search.twitter.com/search?q="+tag);
	});
	return text.replace(/<a/g, ' <a target="_blank"');
}

See, I told you it was short.

 

VBgov.com – Launched

Mount Trashmore

This week the City of Virginia Beach launched its newly redesigned and rebuilt website VBgov.com. I am extremely proud of the work I have put into this site. I am responsible for the visual design, server side and client side development, as well as the many custom applications through out the site.

The site was built on SharePoint 2010 but in reality we use it pretty much only as a database backend. Every webpart is custom built from scratch. While I have learned a lot about SharePoint 2010, I much prefer working with other Content Management Services. My feelings about the software aside the project was a huge undertaking and am very happy to be in maintenance and upgrade mode. Look for some great features to be added in the future.

The above image is of Mount Trashmore in Virginia Beach. My family loves this park. It’s a pretty awesome place. As the name would hint at, the park is built on a mountain filled with trash. Amazing right?

Localhost doesn’t have to be Localhost

For  a while I browsed all my web projects as a folder off of localhost. When I would browse my development site for Scott Reed Design the url would be http://localhost/srd. A while ago after a little Googling I found that I can have true “domain” names for all my projects on my local development machine. Now working on my development Scott Reed Design site the url is http://srd.

My development platform is Apache on Windows XP but the following instructions will work for either Windows or Mac running Apache.

Step 1

Alter the hosts file by creating a “domain” and pointing it at your computer.

127.0.0.1 scottreeddesign

The IP address above represents a machine’s local IP.

Step 2

Alter the configuration file (httpd.conf)  for the Apache HTTP Server by adding a virtual host record at the very end of the file.

<VirtualHost 127.0.0.1>
DocumentRoot"C:\wamp\www\scottreeddesign"
ServerName scottreeddesign
ErrorLog logs/scottreeddesign_error.log
</VirtualHost>

The above record tells where the site files are, what the server name is and where to save error logs.

That’s it. Simple as can be. Let me know if this makes your development easier. Thanks!

Site Relaunch

It has been a while since I did a site reboot. I needed to redesign the site for a while. I was working on my new plugin Reed Write and wasn’t updating WordPress because of it. Now the new site is up and running using the new Reed Write plugin.

I have added a few projects, including some sites that have been around for a while. I finished Rally Point Tactical’s ecommerce site in the spring of 2010 but never added it. I added a few open source projects, the aforementioned WordPress plugin Reed Write and a jQuery plugin jCookies. I recently guest blogged about it on http://tympanus.net/codrops.

I plan on keeping the content much more updated. So look for much more great informative content on the future.