CSS Inline Block with LI elements

Posted by mike on November 30, 2011

Just a really short post today with a very frustrating issue I have come across several times. When you use a list with LI elements in HTML and apply the inline-block display property to them, a 4 pixel margin is auto created on the right of each element.

To get around this, you need to eliminate the whitespace between the </li> and <li> tags in your code, so the markup would look like this:

  1. <ul>
  2. <li>
  3. <p>One</p>
  4. </li><li>
  5. <p>Two</p>
  6. </li>
  7. </ul>

Apparently it has to do with inline-block being whitespace sensitive with LI elements. All I know is it's a quirky thing to have to do, but it gets rid of those pesky "ghost" margins!

1 Comment Read full post »

MySQL UUID storage

Posted by mike on November 14, 2011

Before I begin today's article, I would just like to preface this and say that i am working on a series about how I set up my development environment. It is slightly complicated, but I am proud of it, and will post that series soon.

For today, I recently had to rebuild my development web server and did a mysql dump to backup all of my application databases. I did not know that doing a backup this way does not back up user defined functions (UDFs) and had to rebuild them from scratch. For my own sake, as well as to hopefully help others, I would like to go over the two UDFs I am using.

2 Comments Read full post »

Random Thoughts

Posted by mike on November 4, 2011

It's been a while and many things have been going on; though really it's just life getting in the way of me sitting down to write. I lost my job, mainly becuase of a stupid mistake. Things happen, I understand that. I have learned from the mistakes I have made in the past and I am read to move forward. 

2 Comments Read full post »

Surround Sound

Posted by mike on October 16, 2011

A while ago I purchased a set of Z506 Logitech speakers for my living room HTPC on sale. Until today, the rear speakers were just sitting on top of my entertainment center. I finally got off by butt and ran some 18 Guage speaker wire from one wall to the other (I have an open basement which made this quite easy) and now I can plug the rear speakers into the wall in the back of the room.

There was really no trick to extending the speakers, I did some research and seemed to find that 18 guage wire was the most common to extend RCA type speaker plugs. I then ran 2 lines of the wire and finished it off with some RCA keystone wall plugs on both walls. No ugly wires across the room, and surround sound to boot!

4 Comments Read full post »

Comment Changes

Posted by mike on October 13, 2011

I just wanted to do a quick post to notify visitors of changes to the comment system. I have been having issues with spam bots, so I had the option of either making everyone register for the site, or to moderate comments as they are posted. 

I chose the option of moderating the comments, so your comments may not show up on the site immediately, but I feel this is a better alternative than requiring everyone to register before they can post comments on my articles. If the spamming gets worse, I may have to look at other options, but for now - 1 day at a time. :)

0 Comments Read full post »

Ubuntu Natty - Evolution Mapi problems

Posted by mike on September 9, 2011

Recently I installed Ubuntu 11.04 (Natty Narwhal) on my work PC and set up evolution to work with our Exchange2010 server here. There were a few problems that I hope to chronicle here to aid others who wish to use Exchange and Evolution.

The exact issue I will be explaining shows up as GLib-GIO-ERROR **: Settings schema 'org.gtk.Settings.FileChooser' does not contain a key named 'last-folder-uri' when you run evolution from the terminal.

0 Comments Read full post »

Recently I was doing some work for a client that uses a host that gives no adminitrative access to mysql - no PHPMyAdmin or shell access! Once I got over how terrible this was, I threw together a quick script to interate through all tables in a database and drop them all, leaving the database intact.

0 Comments Read full post »

I have been working with the Zend Framework for a while now, and one tedious aspect I have encountered is  creating getters and setters for each property in a model class. According to the Quickstart, their stub for a model looks like this:

  1. class Application_Model_Guestbook
  2. {
  3. protected $_comment;
  4. protected $_created;
  5. protected $_email;
  6. protected $_id;
  7.  
  8. public function __set($name, $value);
  9. public function __get($name);
  10.  
  11. public function setComment($text);
  12. public function getComment();
  13.  
  14. public function setEmail($email);
  15. public function getEmail();
  16.  
  17. public function setCreated($ts);
  18. public function getCreated();
  19.  
  20. public function setId($id);
  21. public function getId();
  22. }

Now, I am not saying there is anything wrong with this stub model, but when you have to make many of them with lots of properties, it gets fairly tedious. I've come up with a shortcut that can reduce the time it takes to generate a working model with getters and setters that has helped me out a lot!

0 Comments Read full post »

Gunnar Optiks

Posted by mike on July 19, 2011

For my birthday this year, I decided to take some money and invest in a pair of Gunnar Optiks. If you are not familiar with these glasses, they are marketed for heavy computer users that suffer from eye strain. I researched these heavily for about two weeks before purchasing, and have finally used them for long enough to give my first impressions.

0 Comments Read full post »

Zend Framework Dojo View Exception

Posted by mike on June 21, 2011

I have recently started using Zend Dojo to build a CRM. I am the type of person that learns best by jumping in the deep end of the pool and trying to figure out how to stay afloat from there, so naturally I found some great semi-advanced tutorials and forums for Zend Dojo and dug in. Very early on, I starting getting this error in my layouts:

Uncaught exception 'Zend Dojo View Exception' with message 'Lock already exists for id "layout"'  

Needless to say, it was a bit cryptic..

0 Comments Read full post »