Error 

Archive for July, 2006

Command Prompt getting you down?

Posted July 27, 2006 at 11:07pm in Computers

It did for me, that was until tonight. I loved eterm in Enlightenment and I was never able to find anything that felt a nice, but then I stumbled upon Console. As you will see in the bottom right of the screen shot below, there are a lot of nice features that come with this little program.

Console Screen Shot

- Active and Inactive window transparency levers
- Tabbed windows, so no directory changes
- Customizing the display and location it snaps to
- and many many more
- XML config file with GUI configuration tool

No point in elaborating on this program too much. If you ever have to use the command prompt for anything the tabbed windows is probably going to be enough reason to try it, but the “Always on top” probably won’t cause any complaints either. I highly recommend picking up this program, its free and making it a lot easier to get things done.

Email problems with Wordpress Plugins

Posted July 25, 2006 at 09:07pm in Computers, Programming, Wordpress

Moving everything to Wordpress has been different I guess you would say. I have had to edit many plugins to get this thing to work correctly and recently I had to edit even more to get some simple functionality. I am in no way knocking Wordpress, it is just that most plugins are originally developed for the developer and eventually get released to the public. This makes the occurance of bugs a little more common. There are a couple scripts which shall remain nameless that caused problems with my current setup. The reason was that IIS6 seems to have trouble with email addresses that have < and > in them.

Example Header

From: Peter Manis <notgonna@tellyou.com>

So you have to remove the name and the < and > to get it to work. However this seems strange to me because I remember formatting my email in asp that way. It has been so long since I wrote any asp that it could just be the way asp works that makes that format work. I did not test whether it was IIS WWW or IIS SMTP that caused this problem. When I have the opportunity to test this I will post an update.

So to those of you who have seen an error in your PHP logs that said

“SMTP server response: 501 5.5.4 Invalid Address in….”

then by removing the above from the scripts it will fix the problem. My recommendation is to make a copy of the line and make it a comment until I have an opportunity to find out whether it was W3 on IIS or SMTP.

I have users!

Posted July 22, 2006 at 08:07pm in Site News

When I moved to wordpress I was hoping that I would be able to share enough information to create a user base and hopefully help someone somewhere with something they are trying to do. In other words, make a name for myself no matter how small it is. Today I noticed that I have users!!. Someone I have never met created an account on my site. For people reading this that have 100’s of users commenting to their blogs it isn’t a very big deal, but think back to when you first got everything running smooth and you had your first user. I’m sure there was some excitement there, because while it may have only taken two seconds to create that account, they have added yet another account to their list of many. I guess that means more to me because I have hundreds of accounts and I know I am selective now about creating new ones.

Gates works on removing viruses

Posted July 20, 2006 at 11:07am in Site News

Just not the ones you thought I was talking about.

$287 million was donated by the Gates foundation to develop HIV/AIDS cure.

Maybe people can be mad at him for various reasons, hell you can even be a little upset about him being filthy rich. But you can’t be mad at him for making the donations he makes, especially when most people wouldn’t be that generous. Everyone with money needs a tax write-off, but there are a lot of people who are filthy rich and don’t do enough with it.

Build a Custom Search Engine Plugin

Posted July 20, 2006 at 06:07am in Computers, Programming

Everyday I find myself returning to various websites repeatedly to find a simple fix or two words I cant remember to put in code. To fix this I have started using custom Firefox search plugins, which I have also made availabe for this site. It is extremely simple to make and it will save you from waiting for their page to load and then navigating to their search page.

To start us off open your favorite text editor and enter the following in your comment header.

# Mozilla/Netscape 6+ plugin for DIGITAL39.com
# by Peter Manis<contact.39@gmail.com>
#
# Created: July 2, 2006
# Last updated: July 20, 2006
#

This is always the first line in your engine and simply states it is a search engine.

<search

The next step is to enter the version. Mozilla says this is the version of Netscape it was supposed to be tested with.

version="7.1"

Next, add your plugin name and description

name="DIGITAL39 Search"
description="Search DIGITAL39.com for Information"

This next line tells Firefox what page we send the information to. This is defined with the “action” attribute of the form tag found on the page you use to search the site you are building this for. In my case it “/index.php” so I would enter

action="http://www.digital39.com/index.php"

or simply

action="http://www.digital39.com/"

Now we enter in the location of the search form, which again is “/index.php” in my case

searchForm="http://www.digital39.com/index.php"

It will be nice when we can use the POST method, but for now GET is only supported

method="GET"

and close it up with

>

On the next line we want to let webmasters know that Mozilla search is being used to search the site.

<input name="sourceid" value="Mozilla-search">

The next line is very important, it specifies the user input. To get this value look at the query string appended to your search page. The words you entered should follow some sort of identifier. For my site it is “index.php?s=words” This simply says that I searched for “words” So referencing my site ’s’ is what we would enter in, for google it is a ‘q’ it will vary from site to site.

<input name="query" user>

The INTERPRET tag tells the engine how to handle the results. Refer to quickstart for more information.

<interpret
browserResultType="result"
resultListStart="<!-- RESULT LIST START -->"
resultListEnd="<!-- RESULT LIST END -->"
resultItemStart="<!-- RESULT ITEM START -->"
resultItemEnd="<!-- RESULT ITEM END -->"
>

The last section of our search engine defines the update parameters.

<browser
update="http://static.digital39.com/search/search39.src"
updateIcon="http://static.digital39.com/search/search39.gif"
updateCheckDays="7"
>

This tells our browser to check www.digital39.com every 7 days for an updated version of the search engine and use the updateIcon for the engine icon. To finish it up save the file with a .src extension.

To install these search engines you have two choices, you can install them off the server like on my site or you can install them manually. To have them install from your site add the following code to your website. Change the location of the files from digital39.com to the location of your choice.

<script type="text/javascript">
<!--
function errorMsg()
{
  alert("Netscape 6 or Mozilla is for sherlock plugins");
}
function addEngine(name,ext,cat,type)
{
  if ((typeof window.sidebar == "object") && (typeof
  window.sidebar.addSearchEngine == "function"))
  {
    //cat="Web";
    //cat=prompt("Category to Install Engine","Web")
    window.sidebar.addSearchEngine(
      "http://static.digital39.com/search/"+name+".src",
      "http://static.digital39.com/search/"+name+"."+ext,
      name,
      cat );
  }
  else
  {
    errorMsg();
  }
}
//-->
</script>

and then put this link somewhere, of course you will need to edit this accordingly

<a href="javascript:addEngine('search39','gif','Web',0)">Firefox Search Engine</a>

If you prefer to install the search engines manually, here are some standard locations for Firefox. I can only be sure of Windows because I never use a Mac, and I don’t really use Linux for browsing. Just simply copy the .src file to that directory along with the icon.

Linux
/usr/lib/Firefox/searchplugins

Windows
C:\Program Files\Mozilla Firefox\searchplugins

Mac
/Mozilla/searchplugins/

You have now created your very own Firefox search engine. I have listed some resources below. Here is the source from my search engine

[1] Huge Respository of Search Engines
[2] Search Engine Generator
[3] Documentation