Wednesday, May 03, 2006

We've Moved

Forgot to mention that I've moved over here:

http://www.alanwsmith.com/blog

Wednesday, October 12, 2005

Del.icio.us post

This is a great peice of code that del.icio.us provides. The have it setup to that you can use it as a bookmark in Firefox and it sets up to create your link for you.

javascript:location.href='http://del.icio.us/anotherequinox?v=3&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)

On the page, after you fill in your info, it kicks you back to the originating page. Very well done.

If you haven't played around with del.icio.us yet, you should.

Shell Formatting

I like a custom shell prompt when I'm working on a linux box. The one I use is:

PS1='[\e[0;32m\]\u@\h\[\e[m\]:\e[0;32m\]\w\[\e[m\]]\n$ '

(added to the local .bash_profile file.)

The "32m" string can be updated to change the color (assuming the terminal can handle color).

Tuesday, October 04, 2005

Address Book

I've been looking for an online address book to use to keep all my contact info. I just installed and am trying out this one:

http://sourceforge.net/projects/theaddressbook

So far, so good.

phpsuexec

The server I am now hosting alanwsmith.com on uses phpsuexec. This is a change of pace for me. I like it because it should offer more security but it takes a little getting used to.

One big difference is that you can't put
php_value
calls inside an .htaccess file to control a directory. Doing so causes a Internal Server Error (500).

The way around this is to create a "php.ini" file inside a directory and assign the variables from there. So far, I have only tried this with "include_path". One downside is that it doesn't recurse to children directories. Oh, well.

-- Tags: tagPhp

Saturday, October 01, 2005

Text in Photoshop Actions

If you are trying to do text inside a photoshop action, you probably want to go under the Preferences menu and set Type so that it uses pixels instead of points. Point do weird things depending on the size of the image.

-- Tags: tagPhotoshop

Friday, September 30, 2005

UltraEdit configuration

I use UltraEdit as my text editor. One might think that there's not much to a text editor. If you do a lot of code and are still using Notepad give UltraEdit a try. It's a great tool.

I have a few configuration options that I customize. I'll add them here as I think about it.

Key Mapping:
FileClose - Ctrl+W
EditWordWrap - Ctrl + Alt + W

-- Tags: tagSoftware

Wednesday, September 28, 2005

Tag Status

It looks like the tags will work. It's just that they update very slow. I don't know what interval the search engire rescans the blog, but it wasn't too quick the last time around. So, keep in mind that if you search for a tag (or use a link in the side navigation for the tags) you may not get everything.

Page with min-height in IE

Thanks to this article:
http://www.svendtofte.com/code/max_width_in_ie/

I've been trying to figure out a way to apply a minimum height to a page in IE as well as firefox using style sheets.

The expression hack is great. I haven't run it thru a full QA setup but for the two local browsers on my machine (which probably represent over 90% of browsers out there), the following works:

#theElement {
min-height: 510px;
height:expression("465px");
}

It appears that they operate a little differently for the spacing in the way I have them setup. This may or may not be the case all the time.


-- Tags: tagHTML tagCSS tagHacks

Always on scroll bar in firefox

If you have a web design where the content is centered a jaring shift can occur in firefox from one page to the next if the content one one page does not require and another page does. The additional of the scorll bar changes the overall width of the content window which alters where the center of the page is. So, it jumps.

One way to get around this it to setup a style that forces the scroll bar to be active regarless of the length of the content. Once way to do this with css is:

html {
height: 100.1%;
}


-- Tags: tagCSS tagHTML

Windows Hot Keys

I use Windows Explorer a lot to move around and look at files. A shortcut for this on a windows xp box is to navigate to whereever your "Windows Explore" shortcut icon is under your start menu and add a Shortcut key to it. You do this by right clicking on the icon and selecting properties. Then, click inside the "Shortcut key" field and select the hot-key combination (like, say "Ctrl + Alt + E") you want to use.

You can do this for any Shortcut as long as it's either on your desktop or in your start menu. Unfortunately, assigning a shortcut key for items in your Quick Launch bar don't work.

-- Tags: tagWindows

Odd, it was working

Okay, now the search sting for tags is not working... Not sure how that happened.... Maybe it'll correct itself.

-- Tags:

Monday, September 26, 2005

...and we have Tags

I ran a couple a search for the a tag a couple of times and got nothing, but just returned a hit. Looks like the theory was sound. It took about 30 min. in this case. Could be that I hit it at just the right or just the wrong time, but my guess is that within an hour or so the tags on new posts would be available.

Now, what to do with this you ask? One option would be to create URLs in the sidebard that call the tags. I'm going to setup a couple of those shortly and will add to them over time.

I haven't messed with the feeds to much yet, but it should also be pretty easy to setup a little script that gives you a list of all the tags you have. Probably won't be able to run this on blogspot itself, but we'll cross that bridge when we get there.

-- Tags: tagTags tagHacks

Tag Theory Test

From what I can tell blogger doesn't offer tagging of posts. This is something that I would like to have. My idea for a hack/workaround is to create my own keywords that shouldn't ever be real words. Then the search function provided at the top of the site (thru google) should allow effectively provide a list of all pages that have the pseudotag.

Of course, if you don't want the tags to show up, you could set them to the same font color as the background. Commenting them out might work too. Unknow at this time is whether or not the tags in comments would be picked up as well. I'm guessing probably. There will also likely be some delay before the virtual tags are picked up by the search engine.

So, here goes:

-- Tags: tagComputer tagBlogger tagHacks tagTags

Locking your Computer

I'm more paranoid than most. I don't like to leave my computer without 'locking' it. I can confirm that the following works on at least my computer running Windows XP Pro. Other Windows versions should work, but I make no promises. YMMV

To get your lock setup:
  • Right click on your desktop and select New -> Shortcut

  • I dialog box will open that asks you to type the location of the item to make the shortcut for. Copy and past the following into that dialog box:
    %windir%\System32\rundll32.exe user32.dll, LockWorkStation

  • Click next and you will be asked for a name for the new shortcut. Something like "Lock Desktop" will do.

  • Click finish and your newly created desktop locker will be sitting on your desktop for you. Just double click it whenever you want to lock your desktop.

This next part is optional. It let's you set a "Hot Key" so you don't have find and double click on the Lock Desktop icon each time you want to close it.
  • Right click on the Lock Desktop shortcut that you just created and choose "Properties".

  • Click inside the "Shortcut key:" text box and hold down the "Ctrl" and "Alt" keys then hit "L". The text in the box should change to "Ctrl + Alt + L".

  • Hit "OK" and you are done.
Now, you can just hit the "Ctrl + Alt + L" key combination to lock your desktop at any time.

To unlock your desktop just hit "Ctrl + Alt + Delete" and enter your password.

Update: adding tags
(tagWindows tagComputer tagHacks)