Computer Magic
Software Design Just For You
 
 

Knowledge Rules!

December 12th, 2005

I finally got some updates done to the main web site (http://www.cmagic.biz). Mostly I added a few products (http://www.cmagic.biz/products.php) for sale. Keeping busy is good, but some times you get so busy that you don’t have time to do simple things like make your products available for sale.

I am happy to place my WebSpy utility online and make it available for a very small fee. This utility was invaluable when I was learning the HTTP protocol years ago. When I first got into web programming, I had a few holes in my knowledge. I understood how to make a form, and how to use the cookie cutter approach to retrieve submitted information, but I didn’t understand the interaction between the browser and the server and how that information got from one location to the other. As some one who can’t stand to not know what is going on under the hood (its a sickness, I know..) I decided to write my own HTTP server.

As some one who came from a background of application design (non web content) I had already written a few network protocols myself and understood many of the common ways to transfer information from one point to another. The HTTP protocol was surprisingly simple. The hardest part of writing the application was viewing the requests and responses in transit. Since you don’t actually see the HTTP headers when viewing a page in a web browser, it was difficult to tell if my code was working correctly. Hence, WebSpy was born. A simple socket based application that allows you to connect or receive connections from or to anywhere. Once the connection is made, you can send or view the raw data. This allowed me to make HTTP requests directly to the HTTP server, and to view the information sent via a real browser session by pointing my forms viewed in a web browser to the WebSpy application.

Later, I thought it would be a good idea to load test my web sites to see how many requests they could handle on the given hardware. This feature found its way into the WebSpy utility also. And, just because I like to do things myself, I later added the port scanning capabilities to the product. What is next? Who knows, you tell me 🙂
The real point of this discussion is that if you really want to know what is going on, you need to investigate things. I wanted to go a step further and learn exactly how things worked from top to bottom. This resulted in the birth of two products. Should you go out and create your own WebSpy and HTTP server? If you have the time, desire, or know how, go for it, but if you don’t, then don’t ignore the benefit of knowing how the protocol, who’s existence has provided you with a job and food on your table, works inside and out. Take these words to heart, even if you don’t buy my product, look a little deeper, gain a better understanding for the environment you work in, it will pay off in the long run.

Ray Pulsipher

Owner

Computer Magic And Software Design

Publish Via Email?!

December 9th, 2005

Now here is a cool new feature. The WordPress software that I am using for my WebBlog supports submitting articles via Email. This is a first attempt, so if you aren’t reading this, it didn’t work. (revision: this is actually my 12th attempt… some debugging ensued on the mail import script, see below).

I am one of those guys that likes to get my hands dirty and do things the hard way.. as long as I can do it efficiently. I don’t use Front Page (shudder) to create web content, I open up a text editor on steroids and work with the HTML directly. It doesn’t mean that I won’t use a GUI tool if an acceptable one is available and appropriate for the situation (VStudio, DreamWeaver), but I need to be able to get down into the code and manipulate things via a programming language which generally doesn’t mix well with automated tools (except in VStudio!). I am the first one to use VB though for most applications as the RAD (Rapid Application Development) interface lets me draw the GUI with a mouse and cuts down your design time for the interface significantly.

Having said all this, when publishing a Blog, the last thing you want to do is fight with HTML. You simply want to write your meaningless article and be done. Using a setup like WordPress is just more efficient than creating static pages for each article (think about linking and archiving also!).

Adding the feature to let me send articles via email is another example of efficiency. By using Outlook, I don’t even have to log into the Blog software and I can take advantage of things like spell checking in Outlook. Over the next few years, you will see new advances in Information Management that will enhance your efficiency in new ways. Instead of trying to add new features in Word (most of which you don’t use now) you will see that it will be more interoperable with other technologies (did you know that MS Office documents can now use XML as its file format?). The idea is to eliminate some of the complexity of moving information around. Wouldn’t it be nice if you didn’t have to worry about things like zipping files and email attachments being rejected when you send a document? The industry is finally moving in a direction where users can be productive on a computer without having to be a certified tech.

Now, on to some certified tech stuff…. For those who want their own blog, the email processing script in WordPress has a few disadvantages. Because of the nature of the web, you have to go to a url to get it to process your emails. The best thing to do is setup a CRON job on your server to do this for you. Once the script runs though, it leaves some nasty formatting issues. It is actually not the scripts fault, but given the state of email clients, it should deal with things appropriately. Got to love open source! Check out the original software at http://wordpress.org.

A little background. When writing your email, you need to set your email client to create text only message. Any HTML messages sent to this tool will come out all messed up. I am sure it could be modified to accept this, but I am too busy to do it today, so I won’t. The next issue is that many/most email clients limit the size of your lines in your email messages. This is a holdover from the dark ages of computing, but is a very real issue. Your client doesn’t just wrap your writing for display, it actually puts real line feeds in your message before sending them out. Because of this, you end up with nasty line breaks in places where they don’t belong.

The solution? My modifications to the wp-mail.php file process the line feeds and tries to figure out which are your line feeds, and which are artificial line feeds injected by the email client. You can download my changes at https://www.cmagic.biz/wordpress/wp-mail.zip. Unzip this file and place it in your wordpress directory (yes to overwrite). It does a pretty good job.

Lastly, this also fixes an error you will get if you use the ‘ character in your article anywhere. I looked on the wordpress site for a place to submit the changes to the original author, but could not easily find a place/email and I am too lazy to register on yet another site. If he wants to include these changes into the main code branch, great, but I am too lazy to do the leg work today.

Don’t think that this is a poor product just because there is a bug or two. I have been impressed by its ability to offer such versatility and power while retaining the ease of use you would expect from a content management system. Way to go guys!

Ray Pulsipher

Owner

Computer Magic And Software Design

Random ramblings…

December 8th, 2005

The other day I finally gave the new Visual Studio .NET 2005 edition a try. All I can say is, why did I wait so long? For those long time Visual Studio users out there, it is a real treat to have many of the things we used to have to do manually manifest themselves in the form of additional controls or code snippets. MS has done a good job of making developers more efficient.

Want a real example? Try integrating a web browser into your application in a previous version of VS. You have to manually add the appropriate DLL’s as a COM object. Once you have done so, the auto complete features slow down noticably due to the querying of information through the extra layer. In 2k5, many new controls (such as a web browser control) streamlines the process and allows you to just get your work done. Isn’t that what we really want?

The other day I saw an XBox 360 working in conjunction with a computer running windows media center edition. Not bad. The ability to stream information via a lan or wireless network to the XBox allows you to locate you computer in the other room. It was pretty slick. Don’t know that I would go buy one myself, but you can’t ignore the possibilities. It will be interesting to see what Apple has up its sleave. The rumors point to a knockout product that I am sure will integrate with its iTunes/iMovie service. Can you say content on demand? This has been “coming” for more than a decade now. I am thinking that with the current video deals in place, that Apple could be positioned to deliver. I hope so, it would be great for their stock.

Ray Pulsipher

Owner

Computer Magic And Software Design


Home | My Blog | Products | Edumed | About Us | Portfolio | Services | Location | Contact Us | Embedded Python | College Courses | Quick Scan | Web Spy | EZ Auction | Web Hosting
This page has been viewed 871110 times.

Copyright © 2005 Computer Magic And Software Design
(360) 417-6844
computermagic@hotmail.com
computer magic