Archive for the ‘Digital Life’ Category

Readability

Sunday, October 9th, 2011

So I realize that I am a hypocrite. I love to preach the wonder of black text on a white background! Yet for the time my website has been with this new design, the text has been cyan on a transparent blue with a dark background. Yes, it looks kinda cool (I think so, anyway), but I realize that not everyone might be able to read it.

I was ironing my shirts (yes, domesticated programmer is domesticated) and it hit me: I’m a damn programmer with tons of experience in Javascript and CSS. I should solve this problem! It’s what I do!

So, a little CSS, a little Javascript and here you have it: E-Ink Mode

At the top of the website there is now a little button that turns the content portion of the site into (tada!) black text on a white opaque background with sans serif fonts for easy reading!

I’m too lazy to have it persist across pages, but it’s just a click to turn it on and a click to turn it off so it’s not something difficult. Plus, not enough people read this thing for it to be a problem. :P

Enjoy.

StackExchange

Sunday, September 25th, 2011

So I’ve become rather active on several of the StackExchange websites. It’s quite fun to puzzle over some of the questions people pose. Of course, there are some questions that are just retarded….or are blatant tries to get people to do one’s homework assignment.

So, yeah. Bam. Stuck my ‘flair’ on the side of my website.

Rumors of my death…

Thursday, June 9th, 2011

…have been greatly exaggerated.

As my last post stated, I am not dead (yet). I have been so busy with life in general that I have almost forgotten about my own website! I suppose I should be putting this thing to better use than letting it sit and collect spam comments and digital dust. I do have a lot of personal projects on my plate that have failed to launch or are in a state of non-progress. For the benefit of myself and the few people that run into this place, I’m going to list them here:

  • RPG GM Map system (In progress)
  • QOQ Model 02 + Backtrack Linux 5 built (In progress)
  • Port-o-rotary powered my TI MSP430 (On Hold)
  • Hacked Fonera AP (90%, futzing with auto mounting SD card)
  • Home Asterisk server (On Hold)

Those are the few things, tech-wise that I’m working on. My art stuff has kinda reached a wall, as work sucks the creativity out of me and random distractions steal my time away. Hopefully I’ll get some inspiration and let it take off. Until then, the tech-related projects provide a more tangible reward. I’ll try to keep tabs on what’s done and not done as we go (and probably post more often). I plan to do write-ups on the projects I have not totally forgotten what I did.

To great success and completed projects!

Superfish Menu Fix for Joomla 1.5

Friday, July 2nd, 2010

So after moving some menu items around on a website, a client calls up noting issues with the ordering of items in the menu. This site is not using the usual mainmenu module from Joomla, but another module called “Superfish Dropdown Menus“. Apparently this is a pretty common issue and only affects people that have moved or removed anything in their menu. So, after much head scratching and trying things out, I finally came up with a fix for the menu ordering issue:

First, add the following functions to the “superfish_modMainMenuHelper” class in the “helper.php” file:

function sortParent($x, $y){
  if($x->parent==$y->parent){
    return 0;
  }else if($x->parent < $y->parent){
    return -1;
  }else{
    return 1;
  }
}

function sortByOrdering($x, $y){
  if($x->ordering==$y->ordering){
     if($x->parent==$y->parent){
        return 0;
     }else if($x->parent < $y->parent){
       return -1;
     }else{
       return 1;
     }
   }else if($x->ordering < $y->ordering){
      if($x->parent==$y->parent){
         return 0;
      }else if($x->parent < $y->parent){
         return -1;
      }else{
        return 1;
      }
   }else{
      return 1;
   }
}

Next, just above the line “$user =& JFactory::getUser();” in the buildXML function, insert the following lines of code:

usort($rows, array("superfish_modMainMenuHelper", "sortParent"));
usort($rows, array("superfish_modMainMenuHelper", "sortByOrdering"));

This will sort the items by what their parent is and then sorts by the ordering, taking into account the ordering of the parent items. After that, the buildXML function will take care of putting the menu together.

A really strange issue and really frustrating fix.

I also make no warranty on the above fixes. I’ll answer questions, but don’t expect me to repair your site for you (backups are your friend).

To You “Hackers”

Tuesday, November 10th, 2009

Those of you that believe that you’re a hacker just because you downloaded a tool and used it to get into someone’s computer or website or knock your ‘enemy’ off / get your enemy banned from the internet/video game/website, please read the following:

http://www.catb.org/~esr/faqs/hacker-howto.html

For the rest of you creative god minds, carry on.

That is all.