Nov
03
2009
0

Yahoo Maps Driving Directions for Webmasters

Easy as it seems, it escaped me for almost 30 minutes. Embedding a driving directions form on a website is generally quite simple. You just need to imitate the form that Google or Yahoo uses themselves to get the data.

Yahoo is actually quite simple. All you have to do is post the form to http://maps.yahoo.com/# with these two form fields: q1 and q2. I generally have q2 be a hidden field that has the destination address.

Share and Enjoy:
  • del.icio.us
  • digg
  • Furl
  • NewsVine
  • RawSugar
  • Reddit
  • Spurl
  • YahooMyWeb
Written by Tom in: Uncategorized |
Sep
04
2009
0

Javascript and CSS Drop Downs over Flash?

JQueryTools FlashEmbed

I long thought it impossible to have a drop down fall over a flash movie as you would often want in a header of a website.

However, I just saw a website where they accomplished this. After investigating, I found a JQuery library that allows you to do this.

It involves a new way of embedding flash into pages. With just a div tag and a few lines of javascript you can easily embed flash AND have the opportunity to display drop downs over them.

Here’s the link showing it in action:
http://flowplayer.org/tools/demos/flashembed/wmode.html

If you know of any other ways, please pipe up and let us know.

Here’s another link for a great CSS drop down menu:
http://htmldog.com/articles/suckerfish/dropdowns/

Update
It turns out that it’s not the awesomeness of jquery tools that allows you to do this. It’s simply a parameter wmode=transparent that allows it. Jquery tools does look really cool, however.

Another good link for CSS menus is http://purecssmenu.com/ It is an online CSS menu generator.

Share and Enjoy:
  • del.icio.us
  • digg
  • Furl
  • NewsVine
  • RawSugar
  • Reddit
  • Spurl
  • YahooMyWeb
Written by Tom in: CSS,Javascript | Tags: , , ,
Aug
07
2009
0

Installing Printers in OS9

This may not help a ton of people, but it vexes me about once a year whenever I have to reinstall a printer for someone at my company that has to use OS9 Classic mode.

These steps are for installing a HP Laserjet 1320, but I imagine it would be a similar step for other HP printers.

Sorry for not taking screen shots, or explaining more thoroughly. I’m no longer at the computer I was working this on, so it’s from memory here.

1. Run the install program. Make sure that it installs the printer drivers for OS9. It normally does this by default. For the 1320, this is the program located here.

2. Now comes the tricky part. You need to use Desktop Printer Utility to install it, NOT the Chooser. Search for “Desktop Printer Utility” in the search bar. You’ll most likely find several items matching that description. In my case, I found 7 different files all with the same name. You want the one that is 600kb. It will most likely have a more recent date than the others. The other version is about 1000kb. Double click on it. (if you have the wrong version, it just won’t open up.)

3. It opens up with a create printer dialog. Select USB if you’re installing a USB printer.

4. Select the PPD file to use. Click Change to the right of the first box and find the one that matches your printer. The install program from step 1 should have installed this.

5. Make sure your printer is plugged in and turned on. In the next box (USB Printer Selection), click change and select the printer (it should show up if it’s plugged in).

6. Click OK. You’ll be prompted to name the printer. I named mine HP Laserjet 1320, but it’s whatever you want to use to identify the printer in the future.

You’re done! Hopefully it worked and you can now print from OS9. I make no guarantees that this will work for you situation, I’ve been angered many times by this situation and this is just the latest way I’ve figured out how to fix it.

Best of luck!

Share and Enjoy:
  • del.icio.us
  • digg
  • Furl
  • NewsVine
  • RawSugar
  • Reddit
  • Spurl
  • YahooMyWeb
Written by Tom in: Uncategorized | Tags: , ,
Aug
05
2009
0

CSS: Default Padding/Margin for a p element

Resetting your css styles is a good thing to do to ensure that your site is rendered the same on all browsers.

Unfortunately, this often wipes out the default p tag padding and margin. The following style will restore a p to it’s normal margin (it doesn’t have a padding).

Each browser styles the p tag differently, thus this restores it to what it would look like in Firefox, creating a uniform look. Exactly what we’re going for.
p{
margin: 1em 0px;
}

Source

Here’s a link on how to use CSS Style Resets correctly:
Resetting Yoru Styles with CSS Reset

Share and Enjoy:
  • del.icio.us
  • digg
  • Furl
  • NewsVine
  • RawSugar
  • Reddit
  • Spurl
  • YahooMyWeb
Written by Tom in: CSS | Tags:
Jul
30
2009
0

Automatically Log Off Disconnected RDP Users

It’s tempting and easy to just close Remote Desktop Sessions rather than log off. Unfortunately, this can cause problems where only one or two sessions are allowed to be open at a time.

If you’re Windows license only allows 1 open connection, it can be easy to leave your own session connected and then bar entry again in the future.

Cameron over at Sumo Consulting posted the steps to automatically log off RDP users when they close their windows rather than properly logging them off.

I set mine to log them off 10 minutes after they close the window.

Here are his instructions:

  1. On the server, go to "Start > Programs > Administrative Tools > teminal Services Configuration"
  2. Select "Connections", then right click on RDP-Tcp and select Properties
  3. Select the Sessions tab and Check the "Override user settings" checkbox.
  4. Choose the criteria under which you’d like to start killing off sessions.
Share and Enjoy:
  • del.icio.us
  • digg
  • Furl
  • NewsVine
  • RawSugar
  • Reddit
  • Spurl
  • YahooMyWeb
Written by Tom in: Uncategorized | Tags: ,
Jul
20
2009
0

Awesome Comic on XKCD today

Author of the Windows Copy Dialog Visits Some Friends

Share and Enjoy:
  • del.icio.us
  • digg
  • Furl
  • NewsVine
  • RawSugar
  • Reddit
  • Spurl
  • YahooMyWeb
Written by Tom in: Uncategorized |
Jul
07
2009
4

IE5 and IE6 CSS Hacks

Wow! That was annoying. As most know, IE5 and IE6 both tend to misinterpret standard CSS forcing us to resort to hacks designed to make them comply and display correctly.

I just recently found two very useful resources when it comes to making div tags float and pad correctly:

First explains and gives a fix for the odd fact that IE5 and IE6 will double the left margin of an element that has a float:left in it.

The fix is awesomely simple. You just set display:inline;.

http://www.positioniseverything.net/explorer/doubled-margin.html

The other explains gives a fix for the fact that IE5 and IE6 treat padding differently. Per CSS specifications, padding should add to the overall width. So, if you have a 100px div tag with 20px padding on all sides, it should be 140px wide.

The previous versions of IE keep the width exactly and simply pad inward rather than outward. All fine and dandy, except all other browsers don’t.

This is a bit more complicated, here’s the overall hack:
div.content {
width:400px;
voice-family: "\"}\"";
voice-family:inherit;
width:300px;
}
/* CSS1 UAs should see and use 2nd width */

html>body .content { width:300px }

http://tantek.com/CSS/Examples/boxmodelhack.html

Share and Enjoy:
  • del.icio.us
  • digg
  • Furl
  • NewsVine
  • RawSugar
  • Reddit
  • Spurl
  • YahooMyWeb
Written by Tom in: CSS | Tags:
Apr
21
2009
0

MSSQL: Joining another server in a select statment

I’ve often wondered if I could have a select statement that retrieved data from two databases at a time. I just got a SQL Server tip in the mail this morning that walks you through the steps. It’s awesome! Does everything and more. The keyword is OPENROWSET.

Here’s the link:
http://searchsqlserver.techtarget.com/tip/0,289483,sid87_gci1353663_mem1,00.html

Example from above article:
SELECT e1.EmployeeID, e2.FirstName, e2.LastName, e1.JobTitle
FROM OPENROWSET(
'SQLNCLI',
'Server=SqlSrv1;Trusted_Connection=yes;',
'SELECT EmployeeID, FirstName, LastName, JobTitle
FROM AdventureWorks.HumanResources.vEmployee'
) AS e1
INNER JOIN OPENROWSET(
'Microsoft.Jet.OLEDB.4.0',
'C:\Data\Employees.mdb'; 'admin';' ',
'SELECT EmployeeID, FirstName, LastName, JobTitle
FROM Employees'
) AS e2
ON e1.EmployeeID = e2.EmployeeID
ORDER BY e2.LastName, e2.FirstName

Here’s the MSDN link on OPENROWSET.
http://msdn.microsoft.com/en-us/library/ms190312.aspx

Share and Enjoy:
  • del.icio.us
  • digg
  • Furl
  • NewsVine
  • RawSugar
  • Reddit
  • Spurl
  • YahooMyWeb
Written by Tom in: SQL Server | Tags:
Mar
17
2009
0

Installing PHP on IIS

I just recently needed to install PHP on my development machine, which has Vista Home Premium on it. I downloaded the installer version of PHP5 from the website and ran it. It killed my IIS process and didn’t hook up to PHP extensions. Every 5 minutes, I’d get a IIS process stopped working message.

After searching the net for a good tutorial on how to install PHP on Vista, I found the following from an engineer at Microsoft. It worked like a charm:

http://blogs.iis.net/bills/archive/2006/09/19/How-to-install-PHP-on-IIS7-_2800_RC1_2900_.aspx

You’ll need to download the zip version of php, not the installer, here:
http://www.php.net/downloads.php

Share and Enjoy:
  • del.icio.us
  • digg
  • Furl
  • NewsVine
  • RawSugar
  • Reddit
  • Spurl
  • YahooMyWeb
Written by Tom in: Uncategorized |
Feb
25
2009
0

Invalid access to memory location. PHP Windows

Just finished debugging a persistent error with a PHP5 install on Windows 2003. Kept saying:
“Invalid access to memory location.”

Finally figured out that it means that there is a file or folder referenced in the php.ini that doesn’t exist. To fix, simply search “c:\” and find the uncommented line with the wrong path.

Share and Enjoy:
  • del.icio.us
  • digg
  • Furl
  • NewsVine
  • RawSugar
  • Reddit
  • Spurl
  • YahooMyWeb
Written by Tom in: Uncategorized |

Powered by WordPress | Aeros Theme | TheBuckmaker.com WordPress Themes