If you are looking for the epic motorcycle journey blog that I've written, please see the Miles By Motorcycle site I put together. 
  • Subscribe to this RSS Feed
  • 647
    Removing Extra Whitespace Between List Item Entries in IE
    03/06/2009 2:29PM

    Using a CSS styled unordered list you can create a fairly sophisticated navigational bar with rollover states.

    In IE6 and IE7 without some special consideration, you end up with spurious white space rendered between the list item.

    Click here for and HTML example of the problem (you'll need to be using IE 6 or IE 7).

    Click here for an example of the fix
    and a detailed explanation of how to do it.

  • Finding Next and Prev entries from an SQL Result set given only a single reference number.
    03/02/2009 6:48PM

    For ages I've been doing handstands dealing with the next and previous problem in SQL result sets. This is used, for instance, in the Member Photos section. 

    Today I've been working to try to improve linking to the shared photos area. As of this writing, I still use the long encrypted links which embed values that make it easier for me to generate the next and previous link.

    For ages, I've had this sense that there had to be an easier way.

    And of course there is a MUCH better way than I've been doing it. Once I saw the solution, I found myself thinking "now why didn't I think that of that, it's so obvious".

    So let's say you have a photo_id value which is the unique key of your list of photos. You want to know what the photo_id of the next and previous photos in the list is.

    You can solve this problem with a very simple LEFT JOIN:

    SELECT photos.photo_id, next.photo_id AS next_id, prev.photo_id AS prev_id
    FROM photos
    LEFT JOIN photos AS next ON next.photo_id > photos.photo_id
    LEFT JOIN photos AS prev ON prev.photo_id < photos.photo_id
    WHERE photos.photo_id = <photo_id to display here>
    ORDER BY photos.photo_id ASC, prev_id DESC LIMIT 1

  • CSS: Removing Extra Space In a Submit Button Under IE 6 and IE 7
    02/28/2009 5:53PM
    When you create an input button that has a long string set as it's value attribute, IE 6 and IE 7 render additional, spurious whitespace or padding to the left and the right of the text in the button.  This is solved by adding the following conditional CSS style for the input button in question (assuming we have an input button with the class "submit_button"):

            padding: 0;
            margin: 0;
            width: auto;
            max-width: auto;
            overflow: visible
  • The YML.COM Roadmap
    02/28/2009 2:43PM

    YML.COM is built on top of a business website management platform that I've created called formVistatm. YML.COM has been running that software for years now. Over the last 12 months I've put together the largest new release to date.

    formVista is used commercially in two ways:

    1. as the platform upon which DTLink Software CollabInvest.net service is run.
    2. as the platform upon which Nuts & Bolts Interactive, Inc, run by my good friend Ryan, builds and hosts business websites for it's customers.

    Until recently, I had not planned to do anything "for real" with YML.COM. I had intended for it to just be a test site for formVistatm. However, not too long ago at a German language group meeting I attended, one of the organizers mentioned "do it yourself" social and group sites that are starting to pop up around the net. After talking to him for a while, I decided that I would add the capability for members to create their own social mini-sites under YML.COM.

    What you see on the site right now will be the kinds of things you'll be able to do with your own mini-sites.

    The features I'm planning out right now are:

    1. members will be able to create their own mini-sites under YML.COM. (e.g. ryan.yml.com) which they will then manage.
    2. Mini-site managers will be able to invite other YML.COM members to join their mini-sites.
    3. Managers will be able to ban members from their mini-sites.
    4. Managers will be able to promote members to be co-admins of a mini-site.
    5. Managers will be able to create a number of different kinds of pages on their mini-sites:
      1. free flow content pages
      2. blogs
      3. photo albums
      4. calendars
      5. events
      6. discussion forums
      7. and more as time goes on.
    6. Managers will have some kind of control over the appearance of the mini-sites. I haven't fleshed this out completely yet, but at a minimum, managers will have some template options to choose from and will be able to set colors and upload background images.
    7. Managers will be able to send announcements to the members of their mini site.
    8. Mini-site members will have the same abilities you see on the main site here, namely:
      1. members will have a profile on the mini-site which may be distinct from the profile on the main site. If a member does not fill out a profile on the mini-site the main profile will be used.
      2. members will, depending on how the manager has set up the mini-site, be able to invite other members.
    9. Mini-sites will initially be ad supported using google adsense in a fashion similar to what you see on the main site. If there is demand for it I may offer a fee-based version that removes the ads and/or let's managers place their own ads. If the site gets large enough, I believe there may be a way through google for me to share revenue with mini-site owners. That'll have to be explored at a later date.

    As such, what you see on the site right now is just a test run of the basic building blocks I will need to build the mini-site concept. We'll be running the same codebase and feature set on our CollabInvest.net service as well as it should play very nicely with the investing crowd when combined with our desktop stock tracking software.

    I also imagine we may run a similar service through Nuts & Bolts Interactive, Inc targeted at businesses.

    As for time frames, my thought is to do it differently than I have in the past. I plan to roll out individual features and start getting feedback on them instead of doing what I did with the current release which was to suffer in silence building a monstronsity.

    If you have any thoughts on the kind of things you'd like to see in a do-it-yourself mini-social-site system, please post comments to this blog article.

  • VMWare Workstation 6.5: Fix for arrow and delete keys not working
    02/28/2009 2:36PM

    Under VMWare Workstation 6.5 I noticed that the arrow and delete keys no longer worked.  After a bit of searching around I found the following:

    Edit your "/etc/vmware/config" file and add:

    xkeymap.keycode.108 = 0x138 # Alt_R

    xkeymap.keycode.106 = 0x135 # KP_Divide

    xkeymap.keycode.104 = 0x11c # KP_Enter

    xkeymap.keycode.111 = 0x148 # Up

    xkeymap.keycode.116 = 0x150 # Down

    xkeymap.keycode.113 = 0x14b # Left

    xkeymap.keycode.114 = 0x14d # Right

    xkeymap.keycode.105 = 0x11d # Control_R

    xkeymap.keycode.118 = 0x152 # Insert

    xkeymap.keycode.119 = 0x153 # Delete

    xkeymap.keycode.110 = 0x147 # Home

    xkeymap.keycode.115 = 0x14f # End

    xkeymap.keycode.112 = 0x149 # Prior

    xkeymap.keycode.117 = 0x151 # Next

    xkeymap.keycode.78 = 0x46 # Scroll_Lock

    xkeymap.keycode.127 = 0x100 # Pause

    xkeymap.keycode.133 = 0x15b # Meta_L

    xkeymap.keycode.134 = 0x15c # Meta_R

    xkeymap.keycode.135 = 0x15d # Menu