tag:blogger.com,1999:blog-74106972893382488372008-07-16T16:30:27.729-07:00benkruger.comBen Krugerhttp://www.blogger.com/profile/08886407117471010351noreply@blogger.comBlogger32125tag:blogger.com,1999:blog-7410697289338248837.post-42062527608962603512008-02-28T05:34:00.000-08:002008-02-28T05:42:48.794-08:00Blocks and Procs, Blocks are anonymous Procs!Block and Procs can be very confusing! What is the difference between the two? How do you call the code? When do you use a block or a proc?<br /><br />As it turns out, blocks are anonymous procs and you can use them almost interchangeably. <br /><br />In the below code both yield and call work. There is a subtle difference though. You can not send the call message to the object if you don't explicitly state that the method accepts a block. Personally, I like to send the message call to the anonymous proc object myself since it makes the method signature clearer, you know there is a block being passed in. Another point of confusion is that if you want to actually pass in your proc you need to use the ampersand.<br /><br /><code><br />def foo(&block)<br />yield<br />block.call<br />end<br /><br />proc = Proc.new {puts "proc"}<br />foo(&proc)<br /><br />foo{ puts "block" }<br /><br />ben@jefferson ~ $ ruby test.rb<br />proc<br />proc<br />block<br />block<br /></code>Ben Krugerhttp://www.blogger.com/profile/08886407117471010351noreply@blogger.comtag:blogger.com,1999:blog-7410697289338248837.post-65103981882275387042007-07-05T07:01:00.000-07:002007-07-05T07:03:00.152-07:00Natural PatternsI read a good <a title="RSS" target="_blank" href="http://en.wikipedia.org/wiki/RSS_%28file_format%29">RSS</a> about the <a title="Presenter Pattern" target="_blank" href="http://blog.jayfields.com/2007/03/rails-presenter-pattern.html">Presenter Pattern</a> today by <a title="Jay Fields" target="_blank" href="http://blog.jayfields.com/">Jay Fields</a>. I have Jay on my <a title="Reader" target="_blank" href="http://www.google.com/reader/">Reader</a>.<br /><br />I have used this pattern in the Java world, the old world... Actually, you have to or else you lose focus quick.<br /><br />I think this can help us all out. In Jay's example he is using the pattern more for saving data and doesn't emphasize enough about how this pattern will pull a ton of logic out of the partials and expose this logic for deeper testing! This is really the strength of the pattern.<br /><br />I am a huge fan of patterns but I can never remember what patterns are called. Earlier in my career this lead me to steer away from them and focus more on natural patterns. Natural patterns are something I often refer to as Patterns that are just organically grown in your own code base. This is how I think patterns as a whole get extracted out and become formal patterns. However, this can lead to <a title="anti-patterns" target="_blank" href="http://en.wikipedia.org/wiki/Anti-pattern">anti-patterns</a>, so you have to be careful. <br /><br />Back in the "Old World", I used to have one object, my presenter, encapsulate an entire JSP page. At the time of course, this was just a natural pattern that I came up with, who knew it was a presenter! Anyway, this allowed me to pull logic specific to this JSP into the presenter and out of the Servlet, JSP, DAL (Data Access Layer) and wherever. I was also able to inject things I needed for deeper testing.<br /><br />In the New World, <a title="RoR" target="_blank" href="http://www.rubyonrails.org/">RoR</a> of course, the presenter is equally as important even though we already have this build in structure and testing. I don't think the pattern needs to apply globally here though, just where needed when your controller and view starts getting nasty.Ben Krugerhttp://www.blogger.com/profile/08886407117471010351noreply@blogger.comtag:blogger.com,1999:blog-7410697289338248837.post-74845900770903894252007-03-31T19:11:00.000-07:002007-03-31T19:12:36.124-07:00Ahh Paris<br> My Paris e-mail.<br> <br> My wife and I rented a flat in Paris for 3 full weeks back in 04. It was a great vacation but that is a digression. This was my standard Paris e-mail that I would send out to anyone I knew that was going to Paris, the city of light!<br><br> <br> There are three places that you absolutely have to go to eat in Paris.<br> If you don't go to all of these places than I just don't think we<br> could be friends anymore! You need to buy the "petit plan de Paris<br> par arrondissement". This is a must have so you wont get lost taking<br> the metro! It will be your most precious map! The best place by far<br> is Le Petit Trouquet! You will definitley need a reservation and want<br> the window seat. It is very intimate and the chef is to die for!<br> <br> Le Petit Troquet<br> 28 rue de l'Exposition, 7th<br> tel: 01.47.05.80.39<br> <br> Angelina's Tea Salon has the best damn hot chocolate! You might kill<br> your spouse for seconds! I recommend getting a pot of it.<br> <br> Angelina's Tea Salon<br> 226 rue de Rivoli. 1st<br> tel: 01.42.60.82.00<br> <br> Le grand epicerie paris is actually a grocery store that you can get<br> great food to eat in. You wont even believe such a place exists.<br> Also this is right next to a huge cool ass Paris mall and park.<br> "insert wifes name" would love the stuff in the stores there.<br> <br> La Grand Epicerie paris http://www.lebonmarche.fr/anglais/indexbis.htm<br> <br> Now for things to do! Don't wast your time with the lame shit like<br> the Eifell tower. What you want to do is climb to the top of the Arc<br> De Triumph, you can have a blast on top watching the tourists try to<br> cross the circle also, climb to the top of the DOME of Sacre Coeur.<br> The dome is by far the best view in all of Paris. Next, strolling<br> down the champs d'elysee is a must. There are lots of shops,<br> restaurants and people. This will take you to the Arc.<br> <br> If you are thinking about a museum you'll want to goto Museum D'orsay!<br> Also eat in the cafe there. Not the restaurant but the cafe. We<br> went to almost every notable museum and this was by far the best. One<br> last thing which was actually our favorite was the segway tour of<br> Paris. This was just amazing and so much fun.<br> <br> http://www.citysegwaytours.com/paris/<br> <br> <br> Dont forget to stop at a local bakery and get a bagett or pan de chocolat.Ben Krugerhttp://www.blogger.com/profile/08886407117471010351noreply@blogger.comtag:blogger.com,1999:blog-7410697289338248837.post-48810169659964147862007-03-13T05:59:00.000-07:002007-03-13T06:00:40.267-07:00My Nerd Score<a href="http://www.nerdtests.com/ft_nq.php?im"><img src="http://www.nerdtests.com/images/ft/nq.php?val=5744" alt="I am nerdier than 81% of all people. Are you nerdier? Click here to find out!"></a>Ben Krugerhttp://www.blogger.com/profile/08886407117471010351noreply@blogger.comtag:blogger.com,1999:blog-7410697289338248837.post-34486861328091741322007-03-12T11:49:00.000-07:002007-03-16T14:35:44.450-07:00It's All TextI love this add-on. I have been thinking about looking for something that would allow me to edit a text area in a proper editor. I ran across <a title="this" target="blank_" href="http://macromates.com/blog/archives/2007/02/26/edit-in-textmate-from-firefox/">this</a> and you can get the add-on for firefox <a href="https://addons.mozilla.org/firefox/4125/" target="blank_" title="here">here</a>. Of course it doesn't work with every editor like <a title="IDEA" target="blank_" href="http://www.jetbrains.com/">IDEA</a>Ben Krugerhttp://www.blogger.com/profile/08886407117471010351noreply@blogger.comtag:blogger.com,1999:blog-7410697289338248837.post-57663170258526904132007-02-17T06:57:00.000-08:002007-02-18T15:52:20.826-08:00Ben's Software ManifestoI know we have all read the <a title="Manifesto for Agile Software Development" target="blank_" href="http://agilemanifesto.org/">Manifesto for Agile Software Development</a> and <a title="The Programmers Bill of Rights" target="blank_" href="http://www.codinghorror.com/blog/archives/000666.html">The Programmers Bill of Rights</a> but I have my own.<br /><br />MY SOFTWARE MANIFESTO<br /><ul><li>Always think you can do better, You can!</li><li>Always leave a file in better shape then when you entered it.</li><li>Write and test your code together at the same time.</li><li>Write code so that the code does one thing and one thing only.</li><li>Write self documenting code.</li><li>Remove dead code!</li><li>Compile, test, and check in your code often. At least once a day.</li><li>Use patterns to guide you.</li><li>Reuse code!</li><li>Use your hammer where appropriate<br /></li><li>Refactor, Refactor, Refactor.</li><li>Adopt a coding standard, it doesn't matter who's it is.<br /></li><li>Don't be lazy.</li><li>KISS</li><li>Meet with your Project Manager and Manager daily to keep the ship right.</li><li>Meet with your peers frequently to openly discuss code, algorithms, patterns, and methodologies both in and out of the office (umm Beer).</li><li>Most Important, Don't get attached to your code and don't be afraid of someone else's.</li><li>Embrace new technology.<br /></li></ul>Ben Krugerhttp://www.blogger.com/profile/08886407117471010351noreply@blogger.comtag:blogger.com,1999:blog-7410697289338248837.post-56541988709567266982007-02-11T07:20:00.000-08:002007-02-11T07:21:00.909-08:00TV CommercialsI watch <a href="http://www.bravotv.com/Top_Chef_2/index.shtml" target="blank_" title="Top Chef">Top Chef</a>, mainly because my wife does, but I got sucked in... Anyway, we always record shows on our <a title="PVRs" target="blank_" href="http://www.opentv.com/">PVRs</a> or <a title="DVRs" target="blank_" href="http://www.opentv.com/">DVRs</a> or <a title="Tivo" target="blank_" href="http://www.tivo.com/">Tivo</a> if you have been branded. I have been impressed by their marketing blitz during their show. Since we fast forward through commercials we are basically not marketed too except by Bravo with some of their newer programming such as <a href="http://www.bravotv.com/Top_Chef_2/index.shtml" target="blank_" title="Top Chef">Top Chef</a>. They are always in the "<a title="Kenmore Pro Kitchen" target="blank_" href="http://www.sears.com/sr/javasr/search.do?BV_SessionID=@@@@0046876327.1171206864@@@@&BV_EngineID=cchdaddkdkhdeficefecemldffidfmm.0&vertical=SEARS&amp;keyword=kenmore&sid=ISx20050411x0000134&displayTarget=searchresults">Kenmore Pro Kitchen</a>". During the shows they had the "<a title="Kraft" target="blank_" href="http://www.sears.com/sr/javasr/search.do?BV_SessionID=@@@@0046876327.1171206864@@@@&BV_EngineID=cchdaddkdkhdeficefecemldffidfmm.0&vertical=SEARS&amp;keyword=kenmore&sid=ISx20050411x0000134&displayTarget=searchresults">Kraft</a>" food condiment challenge and the "<a title="Nestle" target="blank_" href="http://www.sears.com/sr/javasr/search.do?BV_SessionID=@@@@0046876327.1171206864@@@@&BV_EngineID=cchdaddkdkhdeficefecemldffidfmm.0&vertical=SEARS&amp;keyword=kenmore&sid=ISx20050411x0000134&displayTarget=searchresults">Nestle</a>" baking challenge. Then of course their was the "<a title="Hilton Resort" target="blank_" href="http://www.hilton.com/">Hilton Resort</a>" in the finale. Anyway you get the point.<br /><br />I have also noticed this on their other shows such as <a title="Project Runway" target="blank_" href="http://www.bravotv.com/Project_Runway/">Project Runway</a> and <a title="Top Design" target="blank_" href="http://www.bravotv.com/Top_Design">Top Design</a>. So since we never watch commercials due to our <a title="PVRs" target="blank_" href="http://www.opentv.com/">PVRs</a> we are now being directly marketed too. Those advertisers will find a way to reach us somehow! I haven't noticed this on other networks to the same extent yet. Perhaps <a title="PVRs" target="blank_" href="http://www.opentv.com/">PVRs</a> haven't reached a critical mass. Anyway, I am see this type of marketing as the future and the commercial as a thing of the past especially with products like <a title="Apple TV" target="blank_" href="http://www.apple.com/appletv/">Apple TV</a> out.Ben Krugerhttp://www.blogger.com/profile/08886407117471010351noreply@blogger.comtag:blogger.com,1999:blog-7410697289338248837.post-87155202518334799052007-01-27T17:14:00.000-08:002007-01-27T17:20:03.014-08:00Pet Peeves<ol><li>Not <a title="Washing your hands" target="blank_" href="http://www.washyourhands.tv/">Washing your hands</a> after you do your business! Make sure you watch the videos at <a title="Washing your hands" target="blank_" href="http://www.washyourhands.tv/">http://www.washyourhands.tv</a></li></ol>Ben Krugerhttp://www.blogger.com/profile/08886407117471010351noreply@blogger.comtag:blogger.com,1999:blog-7410697289338248837.post-51691834063687669752007-01-16T02:18:00.000-08:002007-01-16T02:20:22.755-08:00Google, you are on the list!I use a pretty big set of Google products but my favorites are G-Mail, Reader, Calendar, Groups, and Docs & Spreadsheets. What I can't understand is why these aren't integrated better!<br /><br />Lets get right to the rant, or rather list. Yes that is correct, Google you are on the list.<br /><br /><span style="font-weight: bold;font-size:180%;" >Google</span><br /><ul><li>When I am logged into Google, I shouldn't have to log in to Google Analytics or any other Google Service. Come on Google, lets get the Single Sign On (SSO) working already!</li><li>Why is the breadcrumb only in G-Mail?</li><li>If I have read the New Features page of a product, then make the link go away.</li></ul><span style="font-size:180%;"><span style="font-weight: bold;">G-Mail</span></span><br /><ul><li>If I am already forwarding my email to a different account, I don't need to see a message on how<span style="background-color: rgb(255, 255, 102);"><span style="background-color: rgb(255, 255, 255);"> to forward my email.</span><br /></span></li><li>If I already have G-mail on my personalized Google homepage then I don't need to be asked if I would like to do that.</li><li>In G-Mail, how about making my little bread crumb what I actually use most often and not what you think I use. I rarely goto photos but I goto Reader, Blogger and Google Analytics a lot.</li></ul><span style="font-weight: bold;font-size:180%;" >Docs & Spreadsheets<br /></span><ul><li>Why can't we upload PDF's?</li><li>Where is my G-Mail bread crumb?</li><li>Where is the chat between the collaborators?<br /></li></ul><span style="font-size:180%;"><span style="font-weight: bold;">Google Groups</span></span><br /><ul><li>Why is there a cap on what you can upload?</li><li>Why isn't there a Google Page Site for the Group?</li><li>Why can't we use the Docs & Spreadsheets for our group easier?</li><li>Why isn't G-Mail the message editor? I'd like to spell check and use a rich editor.</li><li>Where is my G-Mail bread crumb?</li><li>Where is the group calendar?<br /></li></ul>I feel as if Google has a lot of super smart chickens running around with their heads cut off. If they had complete integration between all of their services... ah, now that would be Nirvana.Ben Krugerhttp://www.blogger.com/profile/08886407117471010351noreply@blogger.comtag:blogger.com,1999:blog-7410697289338248837.post-71504730827442130922007-01-15T06:05:00.000-08:002007-01-15T06:06:52.075-08:00Fancy BathroomsOne of the criteria I use to determine whether or not I'll go somewhere to eat is if the establishments bathrooms are fancy! This trend started a few years ago back at the <a title="ZIPR" target="blank_" href="http://www.ziprealty.com/">ZIPR</a> when <a title="Baystreet" target="blank_" href="http://www.baystreetemeryville.com/">Baystreet</a> first opened up and a gaggle of us went to lunch at <a title="PF Changs" target="blank_" href="http://http//www.pfchangs.com/">PF Changs</a> . I immediately fell in love with their offering. Here is my list to date.<br /><ol><li><a title="PF Changs" target="blank_" href="http://www.pfchangs.com/">PF Changs</a> </li><li><a title="BJ's Brewery" target="blank_" href="http://www.bjsbrewhouse.com/">BJ's Brewery</a></li><li><a title="Ruth Chris" target="blank_" href="http://www.ruthchris.com/">Ruth Chris</a> </li></ol>Ben Krugerhttp://www.blogger.com/profile/08886407117471010351noreply@blogger.comtag:blogger.com,1999:blog-7410697289338248837.post-81764138248290102672007-01-10T07:25:00.000-08:002007-01-10T07:27:32.591-08:00I Heart iPhoneYears and years ago I used to download music from <a href="http://www.napster.com" target="blank_" title="Napster">Napster</a> , this was of course before it was "illegal". MP3's were the wave of the future. Who needed to buy Cd's anymore, certainly not me but perhaps my friend Val :) This of course lead to several things one of which was buying this $330 Sony MP3 player. It is so old now I can't even remember the name. However it did not have any moving parts, was smaller than a cigarette lighter and could hold a whole downloaded album. Loading the music was cumbersome and painful to say the least with USB 1.0 and Sony's horrid UI. This lead to me not using the product after a few months. I was still using Cd's. <br/> <br/> Not to much longer lots of vendors started releasing lots of Hard Drive MP3 players aka <span style="FONT-WEIGHT:bold">BRICKS</span>. I still remember my buddy, we'll call him Kevin strapping one of these bricks to his arm when he worked out. Of course Mr. Gun-show has like 22" biceps but still come on! <br/> <br/> Finally the iPod came out and it was a tada like moment. We were all saved by Apple. I still have and use my first generation iPod. I used it in my car during my commute, during my workouts and whenever else I wanted to listen to music. Of course around this time we had finally finished digitizing our media library and my measly 15G ipod could hold everything but is still worked wonderfully so why upgrade. BTW, I accumulated most of the music by purchasing it from iTunes. Why go through the trouble of stealing music when it is so easy to download!? I never had a problem paying for stuff.<br/> <br/> Time has moved on, I no longer have to commute and the use of my iPod has dwindled quite a bit. However I still do use it and would carry it everywhere with me. Now you can imagine the first generation iPod in my pocket with my wallet, keys, and cell phone! No I wasn't happy to see you it was just all of this crap in my pants! To top things off, my new car had a blue-tooth phone in it. Man did I want to use the handsfree blue-tooth phone in the car. This prompted me to go out and purchase the <a href="http://www.amazon.com/gp/tagging/items-tagged-with/slver%20l7/ref=tag_tdp_pl/105-6983675-2291656" target="blank_" title="sLver">sLver</a> . I do love that phone since I was able get rid of a lot of the happy to see you stuff in my pants! However the phone sucks. While it does serve my needs, I mean it does have blue-tooth, iTunes, and the phone :) it is an antiquated and boring device. Just try to surf on it or use any of its other features.<br/> <br/> Anyway, here comes <a href="http://www.apple.com/iphone/" target="blank_" title="iPhone">iPhone</a>. Apples demo says it all. The only hold back is the price. However, the price will fall and fall rapidly. I don't really see a need for an iPod anymore. This is where I see it's advantage. What Apple has done is create an iPod killer and not just a cell phone killer. So while all of the naysayers are saying the price is high, which it is today or in June rather, whenever anyone needs a new phone or iPod it is definitely time to consider the <a href="http://www.apple.com/iphone/" target="blank_" title="iPhone">iPhone</a>. Just wait until the storage is around 100G and the price is $299.Ben Krugerhttp://www.blogger.com/profile/08886407117471010351noreply@blogger.comtag:blogger.com,1999:blog-7410697289338248837.post-78768176562747760932007-01-06T17:27:00.000-08:002007-01-07T07:23:31.578-08:00Why I moved to BloggerAfter several unsatisfing emails with the wordpress support about <a href="http://www.google.com/analytics/" target="_blank">Google Analytics</a> I have been forced over to <a href="http://www2.blogger.com/" target="_blank">blogspot</a>. I didn't want to go, really I didn't want to leave but I was left with no choice. Being a Software Engineer, I wanted my <strong>Google Anaytics</strong> Damit! While <a href="http://www.wordpress.com/" target="_blank">wordpress.com</a> has offered some very nice things like their themes, recent comments, dashboard and pages, I was able to achieve all of the same with blogspot. Blogspot isn't quite as easy to use but it is far more powerful.<br /><br />Farewell and Adieu wordpress.com!<br /><br />My Blogspot blog is <a href="http://www.benkruger.com/" target="_blank">benkruger.com</a><br /><code>http://www.benkruger.com</code><br /><br />Please update your RSS reader for <a href="http://www.benkruger.com/feeds/posts/default" target="_blank">posts</a> <code>http://www.benkruger.com/feeds/posts/default</code><br /><br />Please update your RSS reader for <a href="http://www.benkruger.com/feeds/comments/default" target="_blank">comments</a> <code>http://www.benkruger.com/feeds/comments/default</code>Ben Krugerhttp://www.blogger.com/profile/08886407117471010351noreply@blogger.comtag:blogger.com,1999:blog-7410697289338248837.post-56792502372846857592007-01-06T17:05:00.000-08:002007-01-06T17:05:46.536-08:00Why Pat Riley is worst than Tom Brady<p> I used to have this long standing hatrid for that "<a href="http://www.urbandictionary.com/define.php?term=punk+ass+bitch" target="_blank">punk ass bitch</a>" <a href="http://sports.yahoo.com/nfl/players/5228" target="_blank">Tom Brady</a>. He stole the starting job from <a href="http://sports.yahoo.com/nfl/players/2359" target="_blank">Drew Bledsoe</a> years ago, then went on, no thanks to that "<a href="http://en.wikipedia.org/wiki/Tuck_rule" target="_blank">tuck rule</a>", eventually winning the super bowl. In the last year, my hatred has weened. This is primarly do to the fact that "<a href="http://en.wikipedia.org/wiki/The_Man" target="_blank">the man</a>" keeps taking away his <a href="http://en.wikipedia.org/wiki/Asset" target="_blank">assets</a> and he keeps playing phenomimally! </p> <p> Anyway, here comes a good guy, lets call him <a href="http://en.wikipedia.org/wiki/Stan_Van_Gundy" target="_blank">Stan Van Gundy</a> and <a href="http://en.wikipedia.org/wiki/Pat_Riley" target="_blank">Pat Riley</a> recognizes that the <a href="http://sports.yahoo.com/nba/teams/mia" target="_blank">Miami Heat</a> have an awsome team. So he pries the <a href="http://sports.yahoo.com/nba/teams/mia" target="_blank">Miami Heat</a> away from his <a href="http://en.wikipedia.org/wiki/Charlton_Heston" target="_blank">cold dead hands</a> and then goes on to win the Championship. Now that the team is struggling, he is walking away. What a loser and not that I have ever respected him but now I lothe him. He is he worst type of sportsman! Plus doesn't he look <a href="http://www.urbandictionary.com/define.php?term=seedy" target="_blank">seedy</a>? </p>Ben Krugerhttp://www.blogger.com/profile/08886407117471010351noreply@blogger.comtag:blogger.com,1999:blog-7410697289338248837.post-19642921172690074482007-01-06T17:01:00.000-08:002007-01-06T17:02:02.700-08:00Sharper Image ruined my Christmas<p> My wife, <a href="http://www.laurendo.com/" target="_blank">Lauren</a> and I never buy each other Christmas presents. We have been together 10 years now and pretty much have the things we want. Anyway, I had been paying special attention to detail this year because I felt the time was right for a Christmas surprise! I thought of a very thoughtful gift. I went online and found the right one at The Sharper Image. Of course The Sharper Image is a pathetic company that doesn't have a very good e-commerece website so I thought it would be best to buy from them through <a href="http://www.amazon.com/" target="_blank">amazon.com</a>. Things went very smooth as they always do from <a href="http://www.amzaon.com/" target="_blank">amazon.com</a>. I sent the package to my work since my wife is still working from home after the birth of my pride and joy <a href="http://www.mirabelly.com/" target="_blank">Mirabelle</a>. </p> <p> A week later when I came home from work my wife exclaimed, "I know what you bought me for Christmas". I was like, what are you talking about... She went on to show me a letter we got from The Sharper Image. The lame bastards sent a letter to my house just to say that I shipped the package to a different address. Now I have been buying items online since 98 and I have never had a letter like this sent to my house. </p> <p> So I wrapped her present and put it under the tree and she opened it on Christmas day. She of course liked the present but it was much much larger IRL and from the pictures online. She wanted a smaller one. I proceeded to read the return policy and call a local store. I certainly didn't want to bother with returning it via the mail. That would have taken 6 to 8 weeks and the hassle and worry, who needs that! Luckily the local store said they would be able to refund my credit card. </p> <p> We trecked all the way into San Francisco to one of The Sharper Images. When we got to the counter, luckily we had the <b>ass</b>istant manager, he was very friendly and I explained the story. Of course when I went to give him the receipt, or what was the receipt things got complicated. The receipt that they sent me was nothing more than a packing list with an order number and item number on it. Anyway he went into his pathetic little DOS type interface computer and came back to me and basically called me a bold faced liar. He said I paid for this with a gift certificate and could only get store credit. I explained to him again how I purchased the item. He went back to his pathetic little DOS type interface computer and came back and said, wait, I see you paid for it with a voucher through Sky Mall. I actually laughed at this and told him I didn't. I paid for it with my AMEX. Long story short, they were unable to give me a refund. </p> <p> Later I called The Sharper Images corporate office and complained. The customer service woman was extremely nice and after she talked with a couple people she basically said that there policy with amzon.com was weird and there was nothing that she could do. </p> <p> Bottom line, The Sharper Image ruined my Christmas surprise for my wife and I certainly wont do business with them again and I warn anyone else of the same! </p>Ben Krugerhttp://www.blogger.com/profile/08886407117471010351noreply@blogger.comtag:blogger.com,1999:blog-7410697289338248837.post-9206358302057940232007-01-06T16:57:00.000-08:002007-01-06T16:58:30.138-08:00Little Bunny Foo FooSo I came home from work a few weeks ago and walked in on my <a href="http://www.laurendo.com/" target="_blank">wife</a> singing <a href="http://en.wikisource.org/wiki/Little_Bunny_Foo_Foo" target="_blank" title="Little Bunny Foo Foo">Little Bunny Foo Foo</a>, to <a href="http://www.mirabelly.com/" target="_blank" title="Bells">Bells</a>. I was immediately enthralled. First off, my wife is very cute and I just assumed she came up with this amazing rhyme on her own, she does things like that! Turns out she didn't and this rhyme has been around for decades if not centuries. I felt robbed of my childhood at that very moment. How could I not have known about <strong>Little Bunny Foo Foo</strong>! What else did I miss out on. Turns out there is a lot. These are just the ones my wife knew that I didn't. They are excellent!<br /><ol> <li><a href="http://www.kididdles.com/lyrics/l007.html" target="_blank">Little Bunny Foo Foo</a></li> <li><a href="http://www.bussongs.com/songs/head_shoulders_knees_and_toes.php" target="_blank">Head Should Knees and Toe</a></li> <li><a href="http://www.songsforteaching.com/learningstation/tonychestnut.htm" target="_blank">Tony Chestnut</a></li> </ol>Ben Krugerhttp://www.blogger.com/profile/08886407117471010351noreply@blogger.comtag:blogger.com,1999:blog-7410697289338248837.post-35248126651120749022007-01-06T16:54:00.000-08:002007-01-06T16:55:44.512-08:00The Santa Racket<p> It started out so simple, my wife, <a href="http://www.laurendo.com/">Lauren Do</a> and I wanted to take our <a href="http://www.mirabelly.com/">baby girl</a> to see Santa. While she is only nine months, we wanted to get her used to asking Santa for a special toy for Christmas. We also wanted a few pictures for her baby book and to feed her blog! As it turns out you can't see Santa without paying! To make matters worse, most places, even if you pay, you <b>can not</b> take your own pictures. </p> <p> When did the <a href="http://sfgate.com/cgi-bin/article.cgi?file=/c/a/2006/12/16/MNGM8N0UVS1.DTL" title="Santa Racket">Santa Racket</a> begin? The whole thing just makes me so angry. I remember a time when <b>Santa</b> would show up at a Mall and the children could all go sit on his lap and tell him what they wanted for Christmas. Now, it will cost you at least $14</p> <p> <i>It's a crying shame</i> </p>Ben Krugerhttp://www.blogger.com/profile/08886407117471010351noreply@blogger.comtag:blogger.com,1999:blog-7410697289338248837.post-34958271414340451082007-01-06T16:51:00.000-08:002007-01-06T16:52:10.130-08:00It's a Shame<p>This morning during my morning exercise routine I witnessed a middle aged lady picking my neighbors lovely sun flowers. I immediately ran after her and told her that I saw her take the sun flower and to give it back to me. She of course denied it but I exclaimed, "I saw you". She reluctantly handed it over. Then I noticed the callo-lilly's she had also picked. While I did not witness her take these, I did point them out. I told her that next time I see her stealing flowers I'll call the cops on her. I then said, have you no shame?</p> <p><i>It is a <b>shame</b> that we don't live in a shame based society</i>! How can people think it is okay to steal other peoples property! I find it simply outrageous.</p>Ben Krugerhttp://www.blogger.com/profile/08886407117471010351noreply@blogger.comtag:blogger.com,1999:blog-7410697289338248837.post-22192415105430168122007-01-06T16:48:00.000-08:002007-01-06T16:48:37.151-08:00Easy to say but hard to do<p> One of the blogs on my <a href="http://www.google.com/reader/view/">google reader</a> is <a href="http://www.codinghorror.com/">Coding Horror</a>. I often find this guy amusing and interesting, both in a postive mannor. </p> <p> Today he was off on an interesting rant, <a href="http://www.codinghorror.com/blog/archives/000710.html">Does Writing Code Matter?</a> and I have a few thoughts on the subject. First and foremost it does! A codeslinger enjoys his ways and has not only a swagger but a look in their eyes. So, again, first and formost, it matters. </p> <p> However, Jeff went on to make a very good point, one we all already know in the back of our heads. He says <b>"Become a better writer. Become a better speaker. Improve your personal skills. Participate in the community. ... That's how you distinguish yourself from your peers. And that's ultimately how you become a better software developer, too."</b>. While I completley agree with this statement it is not that easy. The vast majority of developers are poor at this skill set and either don't want or can not obtain it. So while it is a lovely idea, it isn't practical and has nothing to do with writing code. </p>Ben Krugerhttp://www.blogger.com/profile/08886407117471010351noreply@blogger.comtag:blogger.com,1999:blog-7410697289338248837.post-21063786265754459282007-01-06T16:31:00.000-08:002007-01-06T16:32:26.502-08:00If I can do it shouldn't the Database be able to?<p> Back at the <a href="http://www.ziprealty.com/">ZIPR</a> I used to get teased about things like BJava (Ben's Java) and BOracle (Ben's Oracle) since I would often find annoying and limiting aspects of a Technology and then I would go on and on about what a POS they were. </p> <p> Now I work a lot with MS SQL Server, which I enjoy working with much more than my old friend Oracle. So this is no way a reflection on one POS Database or another POS Database. </p> <p> Anyway, if I can tune a query, shouldn't the Database be able to do it for me? Why is the optimizer more often then not wrong? Why do I need to use join hints and join types? Why will it even allow me to add a redundant index? I'd really like to see some improvements in these areas. I feel so limited in what we can do with DSQL with a POS optimizer. Imagine a world where you write a query and the Database figures out how to make it run fast. I don't care if it re-writes the query for me. Why should I have to worry about join order and indexing? Can't the database figure out I need an index and what columns should participate in that index? Java has done a fairly good job with their <a href="http://java.sun.com/javase/technologies/hotspot/index.jsp" title="Hot Spot Technology">Hot Spot Technology</a>. </p> <p> It is time for the Databases to shape up since there is no way they are going to slim down in todays world of unsurpassed data. </p>Ben Krugerhttp://www.blogger.com/profile/08886407117471010351noreply@blogger.comtag:blogger.com,1999:blog-7410697289338248837.post-70445723888110586992007-01-06T16:29:00.000-08:002007-01-06T16:29:51.668-08:00Fantasy Football (pickem)Doesn't <a href="http://fantasysports.yahoo.com/fantasycentral/nfl">FF</a> just make a leisurley day of football more enjoyable? There is something to be said about rooting for not only teams but individual players. It is sad however that the black out rules often pre-empt the best games on TV. I was not able to see the Dallas vs. Philadelphia game today due to the Niner vs. Raider game with the same time slot and that game was hardly worth watching. I am doing quite well in all of my leagues! I have an algorithm that I follow for <a href="http://football.fantasysports.yahoo.com/pickem">Yahoo Pickem</a>.<br /><br /><ol> <li>Always pick a team coming off of a bye week.</li> <li>Never pick against New England.</li> <li>Never pick Arizona, they are the new Cincinatti. <strong>No matter how much you are tempted</strong></li> <li>Make your picks after the Sunday Night Game while everything is fresh on your mind. This saves you a lot of time during the week thinking about it.</li> <li>Don't adjust your picks during the week unless a significant injury occures to a key starter.</li> <li>Never join more than one pickem league, this can lead to your down fall if one of your leagues is doing poorly.</li> <li>Always go with your gut!</li> </ol><br />I'll be riding to a first place win this year if I can follow my own algorithm.Ben Krugerhttp://www.blogger.com/profile/08886407117471010351noreply@blogger.comtag:blogger.com,1999:blog-7410697289338248837.post-44941712860445564732007-01-06T16:23:00.000-08:002007-01-06T16:26:30.783-08:00Getting your leg up with Rounders<p> I am tired of playing <b>Texas Hold'em</b>. Seems like that is the only type of poker anyone wants to play anymore. I used to enjoy getting my leg up with with the Rounders but not so much anymore. It used to be about drinking, talking about computers and finances, oh and the occational smack, but with Hold'em everyone is so much more serious. I am calling for a ban on Hold'em! </p> <br> <p> Lets bring back the <a href="http://www.midnightbeach.com/jon/poker/">fun games</a> like Legs, 727, Baseball, Del-Solar, even 5 card draw and not forget why we got together in the first place. </p> <br> <p> Who is with me? </p>Ben Krugerhttp://www.blogger.com/profile/08886407117471010351noreply@blogger.comtag:blogger.com,1999:blog-7410697289338248837.post-52949138527609915332007-01-06T16:21:00.000-08:002007-01-06T16:22:09.504-08:00A codeslinger in the making!Today my daughter is well on her way to becoming a <a href="http://www.mirabelly.com/2006/09/22/belly-needs-her-own-keyboard/">codeslinger</a>Ben Krugerhttp://www.blogger.com/profile/08886407117471010351noreply@blogger.comtag:blogger.com,1999:blog-7410697289338248837.post-83272007349635853972007-01-06T16:16:00.000-08:002007-01-06T16:19:46.873-08:00Donations Welcome for The BMW Performance Driving School! Yes I have a 2006 330i with the <strong>sports package</strong> (<em>bloged one of these days...</em>) <br><img src="http://benkruger.wordpress.com/files/2006/09/bmw1.jpg" alt="bmw1.jpg"> <br><img src="http://benkruger.wordpress.com/files/2006/09/bmw2.jpg" alt="bmw2.jpg"> <br><br>But I want to drive the M5 and M3, So please donate so I can go experience <a href="http://news.bmwusa.com/servlet/website/PersonalizedForm?ItPEVTTZ%3Cp%3E%3Cp%3E_TC_wLkMhktHgJLELtHpsEILgrkNnLkFntHpsDJht"> The BMW Performance Driving School</a>Ben Krugerhttp://www.blogger.com/profile/08886407117471010351noreply@blogger.comtag:blogger.com,1999:blog-7410697289338248837.post-80222432384625080362007-01-06T16:14:00.000-08:002007-01-06T16:15:11.679-08:00Frackin Clustered Index SeekThe key to tuning your query is to have all of the columns you want returned in your composite index. This is a pain in your ass especially as the number of columns grows. However, when you are dealing with data sets in the gizmillions (Yes a reference to my fat kitty cat gizmo) then you have no choice because the last thing you want to see is a <strong>Frackin clustered index seek</strong>. What you want to see is a comely <strong>Index Seek</strong>.Ben Krugerhttp://www.blogger.com/profile/08886407117471010351noreply@blogger.comtag:blogger.com,1999:blog-7410697289338248837.post-33138345760006215042007-01-06T15:31:00.000-08:002007-01-06T15:32:15.865-08:00Youtube<p> I never did like <a href="http://www.youtube.com/">youtube</a> and I think Mark Cuban is correct and says it well on his <a href="http://www.blogmaverick.com/2006/09/17/the-coming-dramatic-decline-of-youtube">blog.</a> </p>Ben Krugerhttp://www.blogger.com/profile/08886407117471010351noreply@blogger.com