Wednesday, September 5, 2012

Cabal Reset in Vista

So my Haskell development on my Windows laptop is spread out. So often times when I get back to working on something on it, I get dependency hell cause everything needs updating. The general solution is to just blow away my packages and start from fresh. So in case someone is wondering how this is done in Windows and also just as a bookmark for myself, this is what I did today. I removed the following two directories and did a ghc-pkg recache.

The recache was complaining about not having perms to the global package.cache under Program Files. After a bunch of trial and error, I think the problem wasn't that I didn't have edit rights to that file, but that I didn't have rights to its folder, C:\Program Files\Haskell Platform\2012.2.0.0\lib\package.conf.d. I guess it was trying to delete the file and create a new one or something.

Anyhow, delete these two dirs and do a recache and you should have a clean install. 

C:\Users\Aluink\AppData\Roaming\cabal
C:\Users\aluink\AppData\Roaming\ghc\i386-mingw32-7.4.1

This is Vista Home Basic...yeah, I know. I just don't have much need for this windows box, so it's not worth the $$ for me to upgrade to 7.

Thursday, March 1, 2012

Price Matching

I've recently been in the market to make a medium sized purchase. The item I plan on buying generally retails at $590. Most stores online and offline have this price except for one store, Academy of Sports. They have it for $480. Unsurprisingly, they are nearly out of stock across the country. I tried to have a few other stores that carry the item match their price, but they wouldn't match unless the other store actually had it in stock.

Now, from the matching store's perspective, this makes perfect sense. Why would they match a price that you, the customer, can't realize? However, if Academy had it in stock, why would I ever go through the trouble of price matching instead of just going to Academy and buying it straight up?

From the matching store's perspective, price matching makes perfect sense. If the store would lose a sale due to a competitors price, then they can at least get the sale at a lower price; something is better than nothing. So my question, what's the point of price matching from the customer's perspective? If I could buy it at Academy, I wouldn't bother with price matching at another store.