1971 Chevelle Updates

To get my car running here’s what I have done to it thus far.

  • New Diff – New Moser 12 bolt, Tru Trac, 3.42 gears.
  • New Rear Suspension - New Hotchkis control arms, stabilizer springs and shocks)
  • Front Suspension - Powder coated stock control arms, new Hotchkis springs and stablizer and new shocks.
  • Brakes – New lines, power booster and master cylinder new drums in rear and new disc and spindles in front.
  • Body Pan – Sanded & Painted with rustoleum and put new sound absorbing padding in with original carpet just cleaned.
  • Starter Wiring – This was rigged up with a pushbutton switch vs. the ignition, had to correctly wire it to get working.
  • Alternator & Regulator & Wiring – This was again rigged up, the regulator failed, so the gen light was on all the time, I ended up replacing the alternator with a PowerMaster 47294, 140AMP. It has an internal regulator and the wiring was redone with 10 gauge and 8 gauge.
  • Wiper Motor – I purchased a switch but this did not work, so I had to rig up something.
  • Seat Belts – Probably the biggest pain, I purchased some RetroBelt, but the mounts don’t work well and the belt is marginal. This will need to get replaced.
  • Throttle Bracket & Cable – The cable was too long and the cable only pulled to about 1/2 throttle. I purchased a new bracket and cable from Amazon.
  • K&N Air Filter & Top – The old ones are black, need some new ones.

iPhone 5 Calendar Alerts

I’ve found out the different things you need to get your calendar alerts to work with Google Calendar.

  1. Go to Google Settings and Turn on Alerts
  2. Make sure the alert type is pop-up.
  3. Make sure it’s set to 5 minutes, then make sure your iPhone is also set to 5 minutes.
  4. Make sure you have a sound selected on your iPhone

That’s it. Happy alerting…

Google Maps, Not Showing, Grey Box?

I was working today on a bug with google maps not showing. It turns out it was because I had a css with overflow:hidden.

In order to fix this you’ll need to set the overflow:visible on any css elements for your #{MAP_ID} and subsequent <div> tags.

div#map,div#map div{ overflow:visible;}

A Simple MySQL Trigger Example

I was searching for this a few days back and I was struck at how Google had all these terrible explanations at the top of the results. Here’s a simple way to create and understand triggers in mysql.

  `emails` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)

CREATE TABLE IF NOT EXISTS `emails_triggers` (
  `emails` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)

INSERT ON emails
 INSERT INTO `emails_triggers` (email) values (NEW.email);

insert into emails values('test@test.com');
select * from emails_trigger;

Just a note: the DELIMITER keyword is used via a tool like PhpMyAdmin or the MySQL Client. I could not get this keyword to be recognized by my SQL editor and had problems until I just pasted it via PhpMyAdmin.

The JavaScript Module Pattern

One thing that really bothers me is often how obtuse programmers explain relatively simple things. Take for example the JavaScript Module Pattern.

<script type="text/javascript">
    var module = (function () {
        var foo = 0;
        return {
            bar:function () {
                foo = foo + 1;


This is really just two things:

  1. An anonymous function which allows for immediate execution.
  2. Returning a function, which behave like “public variables/methods”, keeping the other functions/properties inside the module which behave like “private variables/methods”

That’s it, no need to explain this with 5 pages of explanation about encapsulation, etc.


Business is a Game.

Business is a game with many players. You have customers, partners, workers, and yourself. All of these players have different payoffs. Some it’s an emotion (customer), or cash (worker/partner) or profit (yourself). It does not really matter what business you are in, it’s really played by the same rules, maximize cash/profit, minimize work.

Some times the rules of the game are known, but most of the time they are not. People will tell you they are working for something called A but they are really just working for B but they can’t tell you that. Customers are also telling you they want something, but most of the time they just want more of something like money or time, or less of something like stress.

For those of you reading a business book on how to make your millions. Keep in mind the author can’t tell you everything that worked for them because some stuff might not fit the theme of the book, or wouldn’t help the sale of the book. They also might leave out something so you can buy the next book from them. (I’ve yet to find one detailing how they got 100+ 5 star reviews on day of launch.)

For those of you working a job in a corporation be careful, you might think you are working for the company to do better, but it might just be that’s not the important game, it’s watching out for your peers trying to get your job or your promotion.

For those of you out there that are freelancing, your customers might not really know what they want either. They might tell you they want X but they really don’t know and also they don’t want to sound stupid so they will tell you they want X, but they really might just need Y or something close to Z.

For those in software, you might be learning a new methodology like Agile. Agile is just a game designed to get you to work more efficient and communicate better.

Advice: Before starting any game, sketch out the players, rewards/payoffs for each, and your best guess at the rules. Also, checkout game theory 101.

Cheers To The Un-Science!

I wrote this article 5 years ago, about the unscientific age we live in. We also love to correlate things and assume they are causal.

As I read some business books over the holidays it seems these items are also very selected correlated items. About how if you do A, B and C you will succeed in business. While many of these books leave out vital back-stabs or other non-flattering vital causal clues to the authors success. They don’t mention those of course because the book would not sell as well.

I was also reading about a new study on Warming of Antartica, and am reminded again about how this only works because people don’t understand science. I see the story and say, well, it looks like that hypothesis was wrong. I wouldn’t use a wrong hypothesis to support the same theory, but then again I’m not trying to sell newspapers or visits to a website.

The most popular story over the past few days was the End of The World. Which never happened, of course. At some point though something will happen and it will be “proven correct” because there’s always so many people claiming to know the future, and by chance one person will be correct.

But despite all the un-science out there in the world, the best un-science is the time I’m spending with my wife & daughter.

Updated Site

scottpreston.comI’ve decided to refresh the theme of my blog. You may notice it’s simple, and minimalist in style. You won’t find it changing too much in the coming weeks, except for a few more pages or widgets on the sidebar, and maybe a header image or two.

Correlation vs. Causation

What’s the difference between being linked and being caused? If I tell you that every time I dropped a water balloon on the ground it broke. You could say gravity caused the water balloon to break. But what if I didn’t tell you were always filling the balloons to their maximum capacity and they were dropped on rough, almost sharp concrete, would you make that same conclusion that gravity caused water balloons to break?

What if they were half full and landed on grass and none broke? Would you conclude that gravity does not cause water balloon breakage?

It seems today the public DEMANDs an explanation for everything, if A, then B. But in just about every case it’s never that simple.

The real explanation of why a water balloon breaks is when the pressure of the water inside the balloon exceeds the tensile strength of the rubber. Sharp objects exert more force per unit square meter than other items such as grass or perfectly flat surfaces. However this is too complicated for journalist catering to a public with poor and getting worse science understanding and desire to create sensation and get attention.

To truly know something is causal  (A implies B) is hard and takes time.

Don’t confuse correlation with causation. While these examples sound funny, you can read about them every day, especially with medical studies and social sciences.

100 Monkeys & Predicting The Future

The Story: You’ve got a 100 monkeys flipping coins. Eventually after 10 tries there’s a single monkey left that managed to flip it 10 times in a row heads…

Same Story: All 100 monkeys have a theory that use that use to predict coin flips. All but 1 monkey was successful 10 times and is 100% accurate.

Same Story: I can predict the future of the middle east, the economy or the weather because I’ve done so in the past with my theories.

If you look at this you realize how susceptible we all are to people that promise us they can predict the future. I suspect that science combined with clever statistics or even complicated mathematics is now the new bones, tarot cards, or crystal balls.

Isn’t it funny how we haven’t changed all that much?