Wednesday, June 20, 2012

Avis Car Rental Pricing -- WHAT?

So I went comparison shopping for a rental car. I want to rent in Madison, WI (MSN) and return to Milwaukee, WI (MKE) - Budget - $258 for SUV - Hertz - ~$500 for a mid-size - Avis - either $273 or $1455 depending if I pay now or when I pick it up. The 'Pay Now' option help seems to indicate that there are discounts applied. Image above is from when I used IE on a windows box after the WebChat help agent said it was a browser issue. ( all three browsers Chrome, FF, and IE show same results )
Chat started at 12:41 20 Jun 2012 
Jeff : Just looking at prices... why is the 'Pay Now' option ($1455.00 ) so much more than the Pay later option ( $273 ) ?? is that right --?
[You are now chatting with Mary.]
Mary : Hello Jeff, thank you for visiting Avis chat service. My name is Mary.
Jeff : hi.
Mary : What browser are you using?
Jeff : Chrome
Mary : I would recommend you to use Internet Explorer.
Jeff : I am on linux -- that is not an option
Jeff : I tried firefox --- it is presenting the same data
Mary :  This would be an error with the browser, I would suggest to clear the cookies cache and history. Close all the windows and try it again.
Jeff : Is the $273  a per day cost and the 1455 a full cost?
Jeff : This is the first time i've used the avis website - there would not have been any cookies or cache .   ( I am a Web Developer )
Mary : Jeff it is a browser issue.
Jeff : Could you just tell me how much it would cost for the lowest class car to rent at  Airport code -MSN  and  return to Airport code MKE  from  6/27 to 6/29?
Mary : Keep in mind all drivers must be at least 25 years of age with a valid drivers license and a major credit card with the same name. Your rental may be subject to a drivers license check at the counter. The estimated total including taxes, fees and unlimited mileage would be 341.55 USD.
Jeff : thank you --  if i decide to go with avis -- I will call in a reservation 
My Coworker Naz reminded me to use "shibboleet" next time.

Monday, July 25, 2011

Notch's Lottery Question

Notch ( the creator of Minecraft ) posted  an interesting lottery problem.

Lottery Question

Lottery Answer

I quickly wrote this java to help people understand the results.


package com.jsa;

import java.util.Iterator;
import java.util.Random;
import java.util.Vector;

public class test {

    final static int LOTTOSIZE = 1000000;
    final static int WINSTOP = 3;
   
    public static void main( String args[] ){
       
        Vector<Vector> wins = new Vector<Vector<Integer>>(WINSTOP);
        Vector<Integer> oneWin = new Vector<Integer>(LOTTOSIZE);
        wins.add(oneWin);
       
        Random random = new Random( System.currentTimeMillis());
       
        boolean foundXWins = false;
        int draws = 0;
        while ( ! foundXWins ){
           
            Integer winner = random.nextInt(LOTTOSIZE);
            draws++;
           
            boolean notFound = true;
            for (Iterator iterator = wins.iterator(); iterator.hasNext() && notFound ;) {
                Vector<Integer> vector = (Vector<Integer>) iterator.next();
               
                if ( vector.contains(winner) ){
                    notFound = false;
                    vector.remove(winner);
                    if ( iterator.hasNext() ){
                        vector = (Vector<Integer>) iterator.next();
                    } else {
                        vector = new Vector<Integer>(LOTTOSIZE);
                        wins.add(vector);
                        System.out.println( "Someone has just won " + wins.size() + " times, after only " + draws +" draws. " );
                    }
                    vector.add(winner);
                }
            }
            if ( notFound ){
                oneWin.add(winner);
            }
           
           
            if ( wins.size() == WINSTOP ){
                foundXWins = true;
                int nonWinners = LOTTOSIZE;
                for (int i = 0; i &tl; wins.size() ; i++ ){
                    nonWinners -= wins.get(i).size();
                }
                System.out.println( "Win Limit Reached: " + wins.size() + " wins.");
                System.out.println( "There are " + nonWinners + " who have not yet won once." );

            }
           
            if( draws %10000 == 0 || foundXWins ){
                StringBuilder sb = new StringBuilder();
                sb.append( draws );
                sb.append( "," );
                for (int i = 0; i &tl; wins.size() ; i++ ){
                    sb.append( wins.get(i).size() );
                    sb.append( "," );
                }
                System.out.println( sb );
            }
           
        }
       
        }
   
}

Output was:
Someone has just won 2 times, after only 177 draws. 
10000,9902,49,
Someone has just won 3 times, after only 18936 draws. 
Win Limit Reached: 3 wins.
There are 981230 who have not yet won once.
18936,18605,164,1,

So in this instance it only took 18,936 draws before one of the lottery members won 3 times, and the vast majority of lottery players 981,230 had not won at all!

After running the program several times it seems like a 3 time winner will show up somewhere between 10,000 and 25,000 draws. This is quite a small number compared to the 1 mil players, Showing that It is much more likely that somebody else will win 3 times before you win once.

Tuesday, June 21, 2011

Cabot Cheese = Good ; Coupons.com = Bad

Cabot Cheese is giving out samples at Wegmans this weekend!
http://www.cabotcheese.coop/roadshow/index.php
That's awesome,  they have good cheese. Trish and I have even visited the factory/creamery in VT.

I 'registered' on the promise of a coupon, and was redirected to coupons.com, Which stated that I had an Unsupported browser.
They really mean OS, as I was using Chrome on Linux. It seems they want to install some Coupon App/Program to do the printing.

My guess is they are trying to prevent duplication of the coupon, but come on, if it's printed at home, any home with a scanner, or anybody with access to a library with a photocopier, has the ability to make copies off the first print.

Coupon DRM ,  really,  come on..

Sunday, October 17, 2010

Spent most of the day outside.

Usually, that might mean one enjoyed themselves, but for me, today was all about work.

Raked Leaves
Cut the grass
Power Washed the drive way.

Then 6 hours of driveway crack filling.  Yes, 6 hours.   I used 4, 24lb buckets of Trowel fill. It was like frosting a really big cake, only not so tasty, and you have to be on your hands and knees the whole time.

Now, to wait a least week before spending another day sealing it.  Ug.

Sunday, June 20, 2010

A new friend in our parsley.

We have a very small garden, and this little guy 
has eaten about half our parsley.
The web says he is a Papilio polyxenes larva of a Black swallowtail