my life

day to day

Disputing Credit Card Charges

May 9th, 2009

Recently, I learned how broken the dispute resolution process is with Bank of America. I asked them to send me the receipts for 5 recent charges from the same Mexican Food place across the street from me. I love Mexican food, but there’s no way I could have eaten 5 meals in a row from this place (esp when I wasn’t even working from home that week), so something was awry.

Herein lies the rub. If they send me the receipts (which include signatures), I can no longer dispute the charges because now I’m in possession of the sales receipts. Even if the signatures on the receipts clearly show an invalid signature, I have forgone the ability to issue a charge back. I asked the customer support if they could visually verify that the 5 signatures closely matched all my other signatures, but that was impossible. They didn’t have the ability to view the receipts.

I find this totally absurd. Granted, using a signature as a form authorization is incredibly fallible, the fact that it’s not even relevant when disputing a charge, raises the question why do we even need to sign the receipt at all? The back of my credit card is not signed, so that means that they would have been required to view a valid form of identification, which obviously wasn’t the case and is rarely ever the case. I suppose it’s all a moot point. BofA reversed the charges regardless, which was nice of them. I would have just preferred a more thorough process.

add to del.icio.us    add to technorati favs    email this

Automatic Canonical Link Tags in Symfony

February 18th, 2009

 

<link rel=”canonical”  href=”<?php echo url_for($sf_context->getRouting()->getCurrentInternalUri(true), true); ?>” />

 

More information about the new canonical link tags can be found http://ysearchblog.com/2009/02/12/fighting-duplication-adding-more-arrows-to-your-quiver/

add to del.icio.us    add to technorati favs    email this

SVN Commit Error: Can’t close activity db

December 3rd, 2008

Recently, I moved one of my SVN repositories onto a new server. Everything seemed fine until I tried to commit.

SVN complained:

svn commit . --message ‘….’ svn: Commit failed (details follow): svn: Can’t close activity db: Error string not specified yet

And the server logs show:

[Wed Dec 03 22:53:20 2008] [error] [client 207.7.129.212] Could not create activity /svn/!svn/act/cc8c14b8-904b-4438-872d-e129baae67bb.  [500, #0] [Wed Dec 03 22:53:20 2008] [error] [client 207.7.129.212] could not close dbm files.  [500, #89026] [Wed Dec 03 22:53:20 2008] [error] [client 207.7.129.212] Can’t close activity db: Error string not specified yet  [500, #89026]

Turns out, DAV keeps some cache files around in your SVN ‘dav’ directory. Removing all the ‘activ*’ files solved my problem.

add to del.icio.us    add to technorati favs    email this

Compiz + Cairo Dock on Debian

November 18th, 2008

Sorry to say it, but X.org eye candy is about to eclipse Mac OSX. Check out this video to see what I mean:

To get this for yourself on Debian, these are the steps I had to take.

  1. apt-get install libcairo2 librsvg2-2 libglitz1 libglitz-glx1 compiz compiz-fusion-plugins-extra compiz-fusion-plugins-main compiz-gnome compiz-plugins
  2. Modify your X.org conf in /etc/X11/xorg.conf
  3. Add the following to the “Device” section:
    Option “AllowGLXWithComposite” “true” Option “XAANoOffscreenPixmaps” “true”  #NVidia cards only

    Add the following to the “Screen” section:
    Option “AddARGBGLXVisuals” “true”  # NVidia cards only

    Add the new section:
    Section “Extensions” Option  “Composite”      “Enable” EndSection
  4. Enable all the cool features of compiz:
    gconftool --set /apps/compiz/general/allscreens/options/active_plugin --type list --list-type string ‘[gconf,png,svg,decoration,wobbly,fade,minimize,cube,rotate,zoom,scale,move,place,switcher,screenshot,resize]‘
  5. echo “export WINDOW_MANAGER=/usr/bin/compiz” >> ~/.gnomerc
  6. Restart Xorg

If you’re having problems, you can try to download:

wget http://blogage.de/files/3855/download?compiz-check_0.4-1_all.deb

And run compiz-check to see if there are any issues with your setup/hardware.

To get the features of OSX’s Docker, you’re going to want to install Cairo-Docker. Cairo-Docker is actually even MORE incredible than the traditional Docker, allowing for plugins and customization to the Nth degree.

  1. Download Cairo at:
    https://developer.berlios.de/project/showfiles.php?group_id=8724
  2. Download the dock package that looks like: cairo-dock_v1.6.3.1_i686.deb
  3. Download the plugins package that looks like: cairo-dock-plug-ins_v1.6.3.1_i686.deb
  4. dpkg -i package.deb
  5. Simply run: cairo-dock

add to del.icio.us    add to technorati favs    email this

HOWTO Install Starling

November 10th, 2008

I was recently contacted by someone who got stuck setting up Starling and realized that the documentation is relatively sparse on setting up Starling. The process is easy once you know how Starling works on the inside, but not looking in.

To get started, I will assume you have ruby and ruby gems already installed. This will depend on your flavor of distribution, but should not be difficult and come standard on every modern version of Linux I’ve used.

run:

gem install starling

Create the Starling queue directory in /var/spool/starling

Start staring with these minimum set of arguments:

/usr/bin/starling -d -h $HOST -p $PORT \ -P /var/run/starling/starling.pid

Also, if you’ll be running Starling in a PHP environment, make sure your version doesn’t have the EOL bug described in my post: http://osterman.com/wordpress/2008/07/18/starling-protocol-bug-in-stats-response

Also, note that Starling creates a queue file for each key verbatim. So if a key is, ‘namespace/something’, then Starling will fail to do the set if the ‘namespace’ directory does not exist under the /var/spool/starling directory. You can also just not use ‘/’ in your keys.

Also, note that Starling does not automatically purge the queue files after it rotates them. You’ll want to cron a job to run periodically to delete them. We run this nightly to purge files not accessed in 4 days:

find /var/spool/starling/ -type f -atime +4 -delete
by creating a file in /etc/cron.daily/starling with those contents.

All that being said, we’re still very happy with it and process about a million jobs a day.

Please let me know in the comments if your still having problems!

add to del.icio.us    add to technorati favs    email this

VMWare Upgrades

September 25th, 2008

VMWare can be a real bore to upgrade when there are major kernel updates. Very often, the supplied modules with VMWare will not compile.

For example, I got this today:

CC [M]  /tmp/vmware-config0/vmmon-only/linux/driver.o /tmp/vmware-config0/vmmon-only/linux/driver.c:197: error: unknown field ‘nopage’ specified in initializer /tmp/vmware-config0/vmmon-only/linux/driver.c:198: warning: initialization from incompatible pointer type make[2]: *** [/tmp/vmware-config0/vmmon-only/linux/driver.o] Error 1

The solution is always to use the non-standard installer available at:
http://groups.google.com/group/vmkernelnewbies/files?pli=1

Download the latest vmware-any-any-update tarball, decompress it, and run the included runme.pl script inside. It works just like the vmware-install.pl script distributed with VMWare, but this version includes patches to make everything run without a hitch.

add to del.icio.us    add to technorati favs    email this

Starling Protocol Bug in STATS Response

July 18th, 2008

The memcache protocol requires that all lines in the server response end with CRLN (\r\n). The Starling server doesn’t strictly obey this for the STATS command. The fix is trivial and the author has been notified of the fix.

Edit lib/starling/handler.rb and add the following gsub right before .freeze in the STATS_RESPONSE:

%sEND\r\n”.gsub(/\r?\n/, “\r\n”).freeze

And the same for QUEUE_STATS_RESPONSE:
STAT queue_%s_expired_items %d\n”.gsub(/\r?\n/, “\r\n”).freeze

add to del.icio.us    add to technorati favs    email this

« Previous Entries