Firefox PHP.net Search Engine plugin

When I’m developing I often lookup things on PHP.net. So a little while back I decided to write a search engine plugin for Firefox that would give me the ability to search PHP.net from that search bar in the top right corner of Firefox.

I just finished updating it to work in Firefox 2. I thought I would share….

http://michaelnoga.com/labs/ff/

There are a few others but the PHP.net one is probably the most relevant one you my readers.

Posted by mnoga on February 5th, 2007 No Comments

Hidding email addresses from Spammers

Spam is already out of control and it’s virtually impossible not to get any spam. But there are ways to help prevent your address from being copied from your website. I use a little JavaScript.

Here is the function that I have in my utilities.js file;

  1. function showAddress(add) {
  2. address_to_replace=document.getElementById(add).firstChild;
  3. real_address=address_to_replace.nodeValue.replace("_at_", "@");
  4. address_to_replace.nodeValue=real_address;
  5. address_to_replace.parentNode.setAttribute("href", "mailto:"+real_address);
  6. }
  7. }
  8. window.onload = function() { howAddress('email1'); }

Then all you need to do is create your mailto link like this;

  1. <a id="email1">me_at_mydoamin.com</a>

Now when the page loads this JavaScript function will replace this text “_at_” in the element with an ID of “email1″ with an @ symbol.

This prevents bots and spiders from finding your email address.

Posted by mnoga on February 4th, 2007 No Comments

New Service and website to go with it!

I just finished a new website geared towards offering a new service. The website is called Bake it! offering Web Design Conversion.

What does that mean, well you give me your design and I will turn it into a Standards Compliant web page, it’s that simple.

Take a look, you can find it at http://www.Bakeit.ws

Posted by mnoga on February 4th, 2007 No Comments

MichaelNoga.com RSS Dashboard Widget

In playing around with Dashboard Widgets I decided to try and make on myself. I created a simple RSS reader that displays the articles I write on here. No big deal but it was interesting to do as a starter widget.

It’s still not quite finished but it works. Let me know if you have any suggestions and or comments to make it better.

Download here

Also, let me know if you have any ideas for a new Widget, I would like to make one that is actually useful (rather than promoting my own blog).

Technorati:

Posted by mnoga on January 17th, 2007 No Comments

IconBuffet Free Delivery trading

I signed up for an account with IconBuffet, it’s a great resource for high quality Icons and illustrations for use in Website, Applications and software.

They have a great feature called Free Delivery where once a month you will get a free set of Icons. But not everyone gets the same Icons. They do allow you to share them with up to five other people per set.

So I would like to start a trading session for Icons, I will list the ones I have and you can post a reply to this telling me what set you want an what set you can give me, now I would really appreciate getting a set in return but if you ask really nicely maybe I will send you the set you want for nothing in return.

Update:

I received a duplicate set of Icons so I am posting the link to claim the Blinksale set here.
This one is Taken

http://www.iconbuffet.com/deliveries/fb655751fc67f7ee

Here are a few more;

Yuletide Snow - http://www.iconbuffet.com/deliveries/131d7924653f3926

Alexandria Cosmonauts - http://www.iconbuffet.com/deliveries/7b3cd949951df60a

Dresden Auto - http://www.iconbuffet.com/deliveries/91e96a60dd6c62f6

I just want to see how long it will take someone to claim it. All I
ask is that you leave me a comment, nothing big just a simple thanks
will do.

Posted by mnoga on January 11th, 2007 3 Comments

Testing Cookies

I recently came a cross an issues that I needed to test in Safari (on a Mac obviously). I needed to see how a page looked with a cookie present. But I only had the page in a development environment and the page that created the cookie was in a production environment, for various reasons I was not able to hit the page that created the cookie in my development environment.

So, I had to find a way to manually create the cookie in Safari, a quick Google search for a Safari Web Developer tool bar or something that would allow me to manually create cookies yielded nothing useful. So I took a walk to get a cup of Joe and thought about it a bit. This is what I came up with….

Run some JavaScript in the address bar!!! Now others may have done this already, I’m not claiming I came up with the idea but it was the first time I thought of doing it. So this is what I wrote (the values have been changed to protect the innocent).

  1. javascript:document.cookie="user=me;expires=December 29 2007 00:00:00; path=/;domain=michaelnoga.com";

Simple copy that whole line and past it into your address bar and hit enter. Now you have a cookie called user with a value of me. Wahoo!!!! This works in Firefox as well as Safari, I have not tested in IE since I don’t have a Windows box near me right now.

Safari does nothing after you hit enter to run the code but the cookie is created, Firefox will show a page with the cookie info.

You can test it by using this code in the address bar;

  1. javascript:alert(document.cookie);

Look through the list you will see the cookie you just created, most likely at the end of the list if you did not go surfing after you created it.

Posted by mnoga on December 22nd, 2006 No Comments

Backgrounds all around (CSS)

The background property is used to set an image as a background of something, such as the whole page or a div or even a table cell. This is best don using CSS.

Example:

  1. BODY { background: white url(mainBG.gif); }

The background-repeat property specifies how a background image is repeated.

The repeat-x value repeats the image horizontally

The repeat-y value repeats the image vertically.

Example:

  1. BODY { background: white url(mainBG..gif);
  2. background-repeat: repeat-x }

This code will create a background image for the body of your html document that is repeated horizontally across the screen.

Posted by mnoga on December 6th, 2006 No Comments

Making snowflakes for a good cause

Popular front has agreed to donate to The Salvation Army based on how many Snow Flakes are created. They are giving up to $25,000 to be split among the four territories.

So lets make sure the Salvation Army gets the full $25,000!!!!

Here is a link to the snowflake I made if you would like to post a message to it.

And click the banner below to make your own!!!

Need a Snow Day?

Posted by mnoga on November 28th, 2006 No Comments

Common Phrases used by Programmers

This one was just to funny not to say something about. If your a seasoned programmer then you should know at least some of these phrases.

Take a look at Under The Sun by My Dogs

Posted by mnoga on November 28th, 2006 1 Comment

Basic HTML - a brief explanation

To start out with there are 2 main sections of an HTML document (aka - a web page). The HEAD and the BODY. Using these two section you have a standard skeleton for your HTML document. Here is an example below;

  1. <html>
  2.        <head>
  3.            <title> </title>
  4.           HEAD Content Here
  5.        </head>
  6.        <body>
  7.            BODY Content Here
  8.        </body>
  9.     </html>

Now, lets take a close look at each part of the HTML document.

For starters, the whole document should be wrapped inside of the <HTML> </HTML> tags. You will notice that the is one at the beginning as well as the the end, the only difference between them is the / in the end one. This / is used to close a tag. All HTML tags should be closed, either by using a close tag such as the </html> or for some tags that do not have a close to them you close it with in it’s self. You will learn over time which way to close each tag.

Examples;

Tags with closing tags;

  1. <html> </html>
  2. <p> </p>
  3. <table> </table>

Tags that do not have a close tag (you close these with in it’s self);

  1. <br />
  2. <meta />
  3. <hr />

Ok, now lets look at the HEAD section.

Anything you put in the HEAD section will not show up in the browser. This is where you put your <style> tags for using CSS, and your <script> tags when working with JavaScript, and all your <meta> tags. I will try to get into what each of these are in other posts.

This is also where you set the title of your web page using the <title> tag. This is one of those tags that has a close tag with it (<title>Your Title</title>). What you enter in the title tags is what shows up in the browsers title bar. Like if you look up at the tile bar right now, you will see “MichaelNoga.com << Blog Archive << Basic HTML - a brief explanation. Normally you would want to keep this title short and relevant to the info on that web page. It will help with search engines as well.

And now, the BODY section.

The BODY is where all your content goes, everything you want visitors to see goes right here. What you’re reading right now is content between the BODY tags. I will get into more detail about how to format your content and what other HTML tags you can use to make it look good.

As always, let me know if you have any questions for would like to request a topic for me to cover.

Posted by mnoga on November 13th, 2006 No Comments