Archive for the ‘Bookmarks’ Category

New Design

Wednesday, May 2nd, 2007

I’m in the process of putting up a new design for this site. If you’re hitting the site right now - things may look a little funny while I get all everything worked out. Sorry for any inconvenience. Everything should be fine in the next hour or so.

So I think it’s all set up now. Feel free to leave a comment here if you notice anything really wonky.

Some notes about the new design -specifically the logo: I finally settled on a “real” logo. A butterfly of course. It’s been a theme that’s been consistent in almost all the designs for this site. Not sure how to explain why, but I wanted something to represent “goddess” - beauty, perfection, etc. without resorting to a pin up shot. In my mind, that’s how I see butterflies. To connect it to the code, the butterfly in the logo is made up of programming “pieces” - numbers for the antenna, curly brackets } { for the wings, a pipe | for the body. So that’s where that came from. I’m pretty happy with it. (hopefully, I’ll still be happy with it in a few months, I can be pretty fickle about my own designs) So much so that I even made a Cafepress Store with the logo. Not that I think anyone but me would really buy anything there - but you never know!

Live CSS editing in IE

Saturday, April 28th, 2007

I know there was some install you could do so you could do “live” css editing of a webpage within IE (much like the web developer extension for Firefox) I’ve since lost the link (feel free to post it in the comments if you have any idea what I’m talking about! LOL) but for some reason I could never get it to work. I gave up for a time, but last night I was working on something that, of course, worked just fine in Firefox, but IE was doing something completely different and I couldn’t figure out why. So I went looking again. What I found: CSS Vista. Lets you edit the css of webpages and see your changes live on the screen… AND what I really like about it is that it has two preview panes - one for firefox and one for IE - so you can see if what you’re doing is going to be changing something in one browser and not the other.

CSS Vista Screenshot

This isn’t terribly new - I guess the program has been out for awhile. I wish I had known about it sooner. Would have saved me a bunch of headaches!

Fun tools that will eat up the spare time you don’t have

Thursday, April 26th, 2007

Want that “web 2.0″ stripe-y background look? Slave no more in photoshop! Well, if nothing else, it’s a fun little tool. Stripe Generator.
[via TheWebDesignBlog]

This one isn’t news, I’ve already seen a number of blogs talking about it - but you can say you saw it here 20th! A Wordpress Theme Generator.
[via many but probably Weblog Tools Collection first]

Some day I may even hook up my del.icio.us feed to post here too. But then I’d probably want to separate the for-kids-links I have on there first. :P

Avoid hotlinking images with ImgRed

Saturday, April 7th, 2007

(Found via CreativeBits)
Instead of hotlinking images and stealing the original host’s bandwidth, you can use imgred.com to cache the image (you can even have it make a thumbnail) and use that link instead. While, for a blog post you would probably take the extra steps to download the file to your own server (providing this doesn’t break any copyrights), this definitely makes sense for when you’re posting on forums, etc.

To use imgred.com - just take the url of the image you want to link to and put “http://imgred.com/” before the URL. So instead of:<img src="http://myFriendsServer.com/theirImage.gif">Do this:<img src="http://imgred.com/http://myFriendsServer.com/theirImage.gif">

To create a thumbnail - just put “http://imgred.com/tn/” before the URL - like this:<img src="http://imgred.com/tn/http://myFriendsServer.com/theirImage.gif">
(although when I tested the thumbnail functionality just now - it seemed to be broken… I’m assuming that will be fixed soon)

Redesigning to be mobile-friendly

Sunday, April 1st, 2007

I was recently asked by one of our clients to evaluate how hard it would be to redesign their website to work on mobile browsers (phones, pda, blackberry’s). One of the first things I thought about was being able to test what I would be working on. I found a few things to do the job. One is an online tool made by Opera, another is a free download from Winwap Technologies.

This particular site I’m working with is an older table-based design (not done by me) - and I’m thinking that switching it over to be CSS-based and then modifying the CSS for mobile users would do the trick.

Also - here’s a good article on mobile web design from ALA.

Swirling text effect - photoshop

Thursday, March 29th, 2007

Found a very cool tutorial to make swirling text in photoshop. There’s more tutorials on that site too, like this one for smoke.

(found via Creativebits)

Genopal

Monday, March 26th, 2007

Here’s a new fun little colortool someone sent me a link to yesterday: Genopal. There are a bunch of pre-made “themes”, or you can play around with the controls to create a new one. Click on any of the colors in the theme will reveal what HEX value it is.

Simple Google Maps (for dummies)

Friday, March 23rd, 2007

I was recently asked to embed a map into a web site. Basically, the client wanted a map, with a marker, indicating where their business was, and an easy way for the user to get directions to where they were located.

The first thing you need to do is get a Google Map API key. Just a little warning - once you sign up for the API key - it will show up on the top of the page - and after you leave that page, I have yet to find where you can go to retrieve it again. So copy and paste that key in a safe place! LOL!

Here are a couple of resources that helped me out:
Of course there’s the Google Maps API documentation.
Also, this was a pretty good tutorial.

In order to place a marker on the map, you need to know the longitude and latitude of your location. Originally I found “Bud’s Blog, which linked to geocoder.us (US locations only) , but for some reason, it couldn’t find the address I wanted to mark. I also found this this site which will give you the longitude and latitude (and that one DID find the location). Another source is TerraServer. (US locations only) Here’s another one that seemed pretty good. Also, here’s another one that will let you click on the map to place a marker - and then if you click on the marker it will give you the lattitude and longitude. (This was particularly useful, because for some reason the address, Google, Mapquest, and Yahoo maps all don’t seem to know where the location of this particular client was). (Although you can also kind of do this with Yahoo maps by clicking on an area and then right click in the spot and selecting “drive to here” - on the left side it will give you the long./lat. location of the spot you clicked…)

You can also pull that information from the URL you get from Google Maps.
For example..
If you look up the Red Butte Gardens in Utah, (that place is GORGEOUS by the way!), and click the button to “link to this page”, it will give you this URL. If you break down the pieces of that URL, you will see that one part of it looks like this:
ll=40.771182,-111.809063 (not the “sll” value, the “ll” value) That is the longitude and latitude.

I should note that there is some variances/weirdnesses depending on the source you use. If I type in the address in Google Maps, the marker looks like it is where I want it, and if I grab that “ll” value longitude and latitude and use that value on my own map - it shows the marker quite a bit off the road. (Probably more accurate to where the main building is, after their long driveway, but I want to show the location of where their driveway entrance is.) TerraServer was more accurate in that regard.

UPDATE 6/9/07: Just got this link to Tech-recipes off Lifehacker: Once your location in in the center of the map, enter the following Javascript in the address bar. This will pop up a little “alert” type window with the coordinates:javascript:void(prompt('',gApplication.getMap().getCenter()));

(FYI - you can right click on an area of the map and select “center map here” from the little menu you get)

Moving along to creating the map…
When I first started working with the map, I was using one of the samples from “Buds Blog” - however, the sample you get when you first sign up for your API key includes some code that is necessary so that IE doesn’t choke. If you’ve already stripped that info out, and IE is choking, here is a post I found that will explain how to fix it.

Anyway, use the base-starter sample you get when you sign up for the API key and you’ll be fine. :)

Their example had one line for setting the point and setting the point at the center, but I needed to separate it into two statements. (As well, I needed to change the long. and lat. coordinates for my location.

So this:
map.setCenter(new GLatLng(37.4419, -122.1419), 13);
Became this:
var gardenPoint = new GLatLng(40.7628,-111.8246);
map.setCenter(gardenPoint, 15)

This sets a point and puts it in the center of the map. The “15″ is the “zoom” level. (The higher the number the closer the zoom). Another trick with this is that if you play around with a map directly on Google Maps - do the “Link to this page” thing - look at the URL, and look for the value of “z”… that is the number of what your zoom is.

map.addControl(new GLargeMapControl());
map.addControl(new GMapTypeControl());
This adds the typical controls to the map. If you would prefer smaller controls, use this:map.addControl(new GSmallMapControl());
map.addControl(new GMapTypeControl());

var gardenMarker = new GMarker(gardenPoint);
map.addOverlay(gardenMarker);
This creates a new marker at that point, and puts it on the map. (FYI “gardenPoint” and “gardenMarker” are just variable names I made. You can actually make then anything you want.)

var gardenHtml = '<b>Red Butte Botanical Garden</b>,<br /><a href="http://www.redbuttegarden.org/">They have beautiful flowers</a><br />300 Wakara Way<br />Salt Lake City, Utah 84108<br /><br /><a href="http://maps.google.com/maps?f=d&hl=en&daddr=300+Wakara+Way,+Salt+Lake+City,+UT+84108">Get Directions to here</a>';
That makes one of those little “bubbles” and you can pretty much put anything you want to in there. I even put a link to Google maps to get directions with this address as the ending destination.

gardenMarker.openInfoWindowHtml(gardenHtml);This connects that buttle to the marker and makes it so that it’s open when the map loads.

Here’s the complete example.

I know that’s pretty basic - but should I ever need to do that again, I wanted to save all the links and information I needed to create the same map. :)

CSS “TOC” style?

Thursday, March 8th, 2007

I’m just curious… is there a fancy way to do something like this in CSS:

Introduction …………… Page 1
Information ……………. Page 2
More Info ……………… Page 3

… where the “Page” text lines up and the “…..” just fills in until it reaches the “Page” text… kind of like you’d see in a table of contents in a book? (Ideally the “….” wouldn’t even be text in the markup. It would just be a background fill or something…) Is that even possible?

Update: Jenna got me on the right track…. (Thank you!) :D

Make each line part of a list item. Apply the background image to <li> style. Wrap each part with another tag. Float one right, the other left, and give them both a solid color background the same as the rest of the page (so that it covers the dot, so it won’t show through under the text). I also wanted the right column to line up, so I gave it a width, and told the text to align-left. Here’s the example.

Show Hide Javascript

Tuesday, March 6th, 2007

It seems like a lifetime ago I first saw that javascript that does the neat “show/hide” trick. Recently I did a search to see what the latest version of that script was and there must have been a dozen different varieties. I think I liked this one the best which is a million times simpler than ones I’ve previously posted on this site. (I haven’t really looked at those scripts in a long time, but for some reason this week alone I’ve needed to use it on two separate projects.) That one does a toggle:

function toggle_visibility(id) {
var e = document.getElementById(id);
if(e.style.display == 'none')
e.style.display = 'block';
else
e.style.display = 'none';
}

I actually split it so that I could do a separate show/hide:

function show(menuName) {
var el = document.getElementById(menuName);
el.style.display = 'block';
}

function hide(menuName) {
var el = document.getElementById(menuName);
el.style.display = 'none';
}