You don’t look like your passport photo…

May 30th, 2011 by joey | No Comments | Filed in funny

Concrete Dog Anchor

May 30th, 2011 by joey | No Comments | Filed in DIY, Ingenuity

Our dogs love to be in our un-fenced front yard.  In the past, we had one of those auger dog leash anchors in the front yard.  But it’s a pain because you have to mow around it, and it just doesn’t look good.

So, I had wanted to put an anchor in our concrete to secure our trailer to, so I decided to try it for our dogs first.  I went to home depot and bought a recessed trailer tie down anchor (About $8).  I also went to the concrete section, and asked the expert what the absolute best adhesive they had for gluing metal to concrete was and bought a tube.  Then I went to harbor freight and purchased a cheap air hammer ($11?) that I needed to remove some tile in the bathroom for anyways.

I decided where I wanted to put the anchor.  I put it about 18″ in from the edge of the concrete because chipping away the concrete to put the anchor in is going to weaken it, and I wanted to put it closer in where the stress is less.  (Erosion and settling around the sides of a concrete slab cause stress that eventually leads to cracking).

I drew a rough area of what needed to be chisseled out, and set to work.  The air hammer makes quick work of the concrete as long as the chisel is sharp.  Unfortunately, harbor freight tools aren’t the highest quality, and the steel the chisel is made out of sucks (it is very soft)…  I sharpened it four times while working, and each time, the chisel had worn down to the equivilant edge of a popsickle stick…  The upside to soft metal is that it is VERY easy to sharpen, and this stuff was REALLY soft steel, so two passes on the bench grinder and it is sharp again.

After about 5 minutes I started test fitting the anchor, and working away at the areas where it didn’t quite fit.  Once it fit flush, I spent a few minutes carving out just a little more so there was room for the adhesive.

I filled the hole with adhesive, put the anchor in the hole, and pushed down.  It took about 2 daysfor the adhesive to fully cure, but now we have a recessed anchor in our driveway to clip the dogs to when we go outside.  And the adhesive holds VERY well and is not going anywhere.

I’ve had several comments from people who thought it was pretty cool.  So I thought I’d share it. Here is the finished product.  When the anchor is flipped down, it only sticks up about 1/4 of an inch above the driveway.

And, here is the cheap Harbor Freight air hammer if you’ve never seen one before (A very awesome tool, and a good present for anyone you know who has an air compressor, they may never use it, but it’s cool, and they will like it,  it makes an awesome sound too).

Exchange Between Control Tower and 747 Pilot

May 30th, 2011 by joey | No Comments | Filed in funny

Tower: ‘TWA 2341, for noise abatement turn right 45 Degrees.’
TWA 2341: ‘Center, we are at 35,000 feet. How much noise can we make up here?’
Tower: ‘Sir, have you ever heard the noise a 747 makes when it hits a 727?’

Man charged with DUI in Gas Powered Bar Stool accident…

May 30th, 2011 by joey | 3 Comments | Filed in funny

Yes, it’s true…

http://www.foxnews.com/story/0,2933,511786,00.html

I have done some research lately about what a motor vehicle is and isn’t in Arizona, and it’s very interesting.  Technically, anything with wheels and a motor / engine that you drive on the road can be a motor vehicle.  However, if it cannot go faster than 25mph, and has an engine size of less than 49cc’s, AND does NOT have 4 wheels, it can be considered a moped, and does not require registration.  But, anything over that, and it is a motor vehicle, registered or not, and is subject to all the same laws.  This bar stool is definitely a motor vehicle in Arizona if you drive it on the street.

For the Love of Cars

May 30th, 2011 by joey | No Comments | Filed in Life

So, it’s draft clearing time.  My blog has gathered some dust, and I decided to purge my blog’s drafts folder and tidy up and publish some of the articles I haven’t yet published…  Unfortunately, I have no idea what “For the Love of Cars” was supposed to be about… Most of my drafts have an opening paragraph or something, but this draft was completely blank other than the title…

My guess is, that I was going to say something about how awesome cars are, and how in love I am with them, or write something illuminating about the billions of dollars that are wasted on disposable property…

I think I’ll do both!

Cars are cool.  I like them.  They provide many things, including amazing amounts of freedom.  Imagine life without cars.  How far away would it be practical for you to live from your job, your church, your school?  What about your friends?  How frequently could you visit friends that weren’t close by?  Yeah, pretty big change huh?

Unfortunately, most cars are treated as disposable.  It is purchased for about 1/8th to 1/4 the price of ones home, driven for a while (2 to 10 years depending upon your life style), and then goes to a junkyard.  All the effort that was spent in building that car, provided a benefit for a while, and then was thrown out.  It amazes me when I sit in an old car and imagine what it was like when it was brand new.  I look around it, and think to myself, “People paid thousands and thousands of dollars for THIS?”  Look what it has become?  I think this is a reflection of the shortsighted “I want it now!” attitude that comes standard in all people.  I am NOT saying it is bad to own nice things, I just think a lot of time and money is wasted on extravagant cars that aren’t going to last long.  A car is a tool, it will waste away until it is worthless.  Is it worth investing more than is necessary on?

My thoughts about teaching children

May 30th, 2011 by joey | No Comments | Filed in LDS, Life, Organization

I am no expert on the subject, but I have some experience with this and from them a few ideas.

First, I enjoy reading books written by smart people.  Even fiction, if the author is smart, you can gather his ideas and philosophies from the text.

Some of the author’s I have learned things from include Aaron Allston, Orson Scott Card, and Orson Pratt.

One of my absolute FAVORITE nuggets I gleened from one of Orson Scott Card’s books in the Ender Universe that has been a large support for my ideas about teaching children.  It is this: “The easiest way to get someone to do something is to make them want to do it.”

It seems so simple, but it is so much more effective than manipulating or forcing someone.

I learned to teach from a master Educator named Michael Shurtleff in Irmo South Carolina.  He teaches several “Institute of Religion” classes for college students attending the University of South Carolina (the other USC).  There were several things he did that I took great notice of.

  1. He greeted every single person that walked in the door personally.  Even though I attended his class regularly, sometime before or after every class, he would shake my hand with a big warm smile and say “How are you?  Glad you could be here”, or “Thanks for coming”, or “Good to see you.”  And he didn’t just say it, he meant it.  You could feel how much he cared for you.  And he didn’t do this just for me, he did it for everyone who attended his class.  Every class.
  2. He ALWAYS thanked someone for their contributions to his class.   If someone had a thought, or an idea, he ALWAYS expressed gratitude for your participation when you were done sharing, even if you were wrong, or off topic. With words like “Thanks for sharing that.”, “Thank You”, “Good Point”, “Excellent”.  Again, always sincere and meaningfull.
  3. His class room was a safe haven.  No one was ever rebuked in public.  No one was ever made fun of.  It was a complete emotional safety zone.  His classes were always so comfortable,  that the best sleep of my life has been on a couch during his lessons.
  4. He used lots of object lessons and stories (lots and lots of object lessons and stories).
  5. He only taught what he knew was true.  Unless, on extremely rare occasions, he prefaced it with,  “I don’t know if this is true or not, but I heard…”, or he would take a step to the left of the podium, and say “This is not official doctrine, but…”  etc…  And give us the opportunity to weigh it for ourselves.
  6. No Tests

Some of my own opinions about education are…

  1. Tests are a feedback mechanism for the teacher to gauge the effectiveness of their teaching, and not a measuring stick for the students, or a thing to fear to motivate students to study.  Unfortunately, due to larger and larger class sizes, teachers skilled and capable of doing this have classes too large to effectively teach each student.
  2. Teachers get paid too little.
  3. Because of standardized tests, teachers teach “to the test” and many students miss out on priceless learning experiences a teacher may have to offer but doesn’t because they need to make sure their kids can pass the tests.
  4. Gaming and other enjoyable activities are not leveraged enough in teaching.  Learning doesn’t have to be boring.

It is this last point, that gaming and other enjoyable activities are not leveraged enough in teaching that I believe is one of the keys to transforming teaching today.  If learning isn’t fun, kids won’t want to do it.  I have found in my own life, that when I want to do something, I will go to great lengths to do it.  I will overcome obstacles and do whatever is needed to accomplish it, unless I decide that the effort isn’t worth it.  I have seen examples of this in many other’s lives, and believe it to be near universal to all people.  Thus, if we can make children WANT to learn, they will learn.  If we force them to learn, they may learn something, but probably not as much.

There is a school that is testing this theory.  The “Quest to Learn School” in New York: http://q2l.org/

Thanks for taking the time to see what I have to say.

Joey

Towing a trailer with a Prius!

May 30th, 2011 by joey | No Comments | Filed in Life

I’ve been putting off writing this blog post for a long, long time, because I think most of my friends are tired of hearing about our “Super Prius”.  But, I wanted to get my experience towing with a Prius out there for other Prius owners to read.  So, here it is….

My wife and I own a Prius “classic”.  It is the original Prius, 2002 was the last year they made them.  To make a long introduction short, we were moving cross country, wanted to save money, so we bought a 2″ receiver hitch for our car.  (The thing that you slide a ball into so that you can tow a trailer).  Many on the internet said they had done it, there were MANY nay sayers.  But, we did it anyways, that was 3 years ago, and it worked great!  The hitch costs like $250?  And installed with only a ratchet in about 10 minutes.  Since then we’ve used the 2″ receiver hitch on our Prius to haul: a 3/4 ton load of building debris to the dump, tow a Kia off of an on ramp and into a parking lot, move my truck with a tow bar off of a car carrier, carry 5 bicycles to a mountain bike outing, and take 300lbs of Ikea Furniture home on a platform that attaches to the hitch, along with at least monthly use doing miscellaneous other things.

And it has performed spectacular.  Now, before you go off and try to tow a 3/4 ton load of debris with your Honda Civic, you should know…  There is an art to properly loading a trailer,  the secret is in properly selecting the amount of tongue weight, and then driving carefully…  Towing a heavy trailer with a small car can be very dangerous if you aren’t careful.  The problem with the Prius is that it is a Uni Body car, there isn’t a SOLID frame to attach the hitch to like there is on an SUV of a truck.  Thus, it cannot take much tongue weight.  I try to keep it down to under a hundred pounds, the 300lbs ikea furniture on the platform was really pushing it.  So, when you load the trailer, you want to put as much weight over the axle as possible, and make sure that you evenly distribute the load that won’t fit on the axle so that the tongue stays light.  Now, here is the drawback to no tongue weight…    Tongue weight becomes rear wheel weight on the towing vehicle.  And so, the more tongue weight you have, the more traction you get.  To a certain point.  If you get too much tongue weight, or the hitch is  a long distance behind the rear wheels, the tongue weight actually removes weight from the front wheels, causing a dangerous situation.  So you balance it.  Not too much, not to little.  And, unless your trailer has it’s own brakes, you give yourself extra room to stop, and you slow down significantly in wet weather.

Anyways,  if you are wondering if you can tow something with your Prius, my advice (which I absolve myself from all liability should you do it) is to go for it!  The engineers at Toyota did a fantastic job designing the 1st generation Prius, and it is up to the task.

 

DIY Spot Welder

May 4th, 2011 by joey | 2 Comments | Filed in DIY, Fun, Ingenuity

Ok, so go ahead, make fun of me…  But I’ve wanted a spot welder for a long time…  Seriously, since I was, oh, say 15 or so?  They are just COOL!

I tried to make one about 4 years ago, but the cables I bought weren’t big enough so they would melt before the metal I was trying to spot weld would.

But!  While I was cleaning up our shop yesterday, I came across the parts from my previous attempt and the desire to complete the project was renewed within me!

And here is the result….

It works great!  A few improvements are needed though…  Less surface area on the contacts, it needs a controlled way to start and stop the current so that it can have “pinch” time.  (Time where the metal is being pressed together, but the current is off), and It needs to be re-configured so that you can spot weld tight spaces.

Or, I could just buy one…

Here is a quick video that shows the parts of the welder in more detail.

And if you want to see a real spot welder, in a skilled body shop technicians hands, watch this…

A Mutex class for PHP

April 22nd, 2011 by joey | No Comments | Filed in Technology

I write a lot of php code for clients, and I have a recurring problem…  Say you have a script that emails people.  There are several competing concerns.

 

1)  You want to be 100% to never ever send two emails to the same person. (This is a very big no no)

2)  You want it to “just work” all the time.  So it needs to be able to recover from things like server restarts, crashes, time limits, and php memory limits, as well as other unknown things.

So  what do you do?  I try to write every automatic script like this so that it is completly re-runnable.  It does tasks one at a time, and marks them as complete.  Preferably even marks them as in-progress and complete so that if there is a bug and one task is causing it to crash, it will skip over the “in progress” task that is crashing and move on. (After sending you an email saying there is an “in progress” task and there shouldn’t be.)

So that takes care of #2 but what about #1?  What happens if your cron job is set to run every 5 minutes, and something takes longer than 5 minutes, so you have two instances of the script running at the same time???  It is possible (and quite easy) to accidentally have both scripts performing the same task (and perhaps sending two emails, or creating bad data…).

Enter the MUTEX.  There are lots of ways to establish mutexs in php.  PHP has a library, you can use mysql’s GET_LOCK, you can use memcache, whatever.  But, the easiest and simplest way is to use file locking.  Why?  Because it is environment agnostic.  You don’t need a connection to a mysql server, you don’t need the php lock library to be installed, all need is some php code.

I have written this code several times…  So I finally decided to make a class that does the job and make it open source.  It is really really really simple, but I couldn’t find a good abstracted example online.

Get it here: http://code.google.com/p/mutex-for-php/

Joey

My Standard Free / OpenSource Software Load

April 15th, 2011 by joey | 4 Comments | Filed in Life, Technology

 

So, Tuesday I wake up and find ACK!!  My computer won’t boot!!!  And I am behind on a project for a client (two projects for clients actually) and I need my computer NOW!  I do some quick troubleshooting, can’t fix it, was going to buy a new computer anyways so set out and bought a computer.

So, I get my new computer home from Fry’s Electronics and set it all up…  Now it’s time to get all the software on it that I use. Regularly.  I do this often enough (every year or so) that I figured I should write it down for someone else to use as well.  So here we go…

 

 

  • Office / Productivity Softare
    • Firefox (No computer should be without it!)
    • Firefox Plugins
      • Adblock Plus
      • Tab Kit
      • XMarks
      • Screengrab
    • Free AVG Antivirus
    • OpenOffice
    • CutePDF (Lets you make pdf’s out of anything you can print)
    • FoxIt Reader Pro (Light weight PDF Reader)
    • Paint.NET
    • Gimp
    • Skype
    • Object Dock
    • 7Zip
    • iTunes
    • Dropbox
    • Picasa
  • Development Tools
    • Latest JDK
    • phpstorm
    • putty
    • WinSCP (AWESOME SCP and FTP Client)
    • Notepad++
    • Development Firefox Plugins
      • HttpFox (Like a sniffer for Firefox Requests, lets you view what REALLY was sent to the server, even for https requests).
      • Easy XDebug
      • Firebug
      • HostAdmin (Allows you to enable / disable hosts file entries, very very handy)
    • msysGit – Awesome git tool for windows
    • Tortoise SVN
    • Console2
    • Java Email Server by Eric Dougherty with catchall email address setup for all emails to example.com
    • Mozilla Thunderbird
    • While not installable, I get my template uniserver directory setup to create new php products in a hurry.

 

Those essential tools get my up and running…