You are currently browsing the archives for May, 2008.
So today I ran through our first transaction after getting some good advice from an integration specialist named Rob from Authorize.net.
At first he only gave us a test api login and transaction key to perform test transactions. With this account I wasn’t able to log into the the website and look at all the transactions and see that the details had been captured correctly. After asking for the ability to login and check transaction details, I got another test account from authorize.net.
With this account I had to:
1. go to “Account” and then create a new API login / Transaction Key
2. TURN OFF TEST MODE (not turning this off will not allow you to capture transactions)
3. Do another test transaction
4. win!
Posted 2 years, 3 months ago at 11:37 am. Add a comment
Peepcode has shown me that that in the ./script/console or where ever
if you do a c.save and get a false you can do a c.errors to see why!
Also RailCasts other useful tricks for script/console…
script/console –sandbox
-will roll back db changes so you don’t screw stuff up in console
y variable
-similar to p variable but prints it in yml, pretty
helper.field_for….
-helper represents the actionview so you can test your view codings
Posted 2 years, 3 months ago at 11:37 am. Add a comment
Reached a new level of stupidity today.
rake db:migrate version=25
it didn’t work…scratch head…3 episodes of Law and Order
rake db:migrate VERSION=25
fixed!
Posted 2 years, 3 months ago at 11:37 am. Add a comment
On page 148 of this title book it shows you how to use inject a most useful function.
I wanted to have some conditionals so i just decided to use the for loop instead, following blindly, I typed this:
sum =+ item.price * item.amount
Obviously, can see copying this piece of could would not work since =+ != +=. Bang head on wall.
Posted 2 years, 3 months ago at 11:37 am. Add a comment
Textmate is great. It really is.
anyway, Netbeans
Netbeans gives you the full power of an IDE over a standard text editor. With code completion, in code debugging and the ability to see all of your local variables visually.
Tried to install the debug gem directly, don’t want to make my “own” copy of gems of Ruby. I want to use my current copy which is just fine.
Make myself the owner of the systems gems (not my local gems) which was in /Library
*update*
I guess netbeans didn’t know where to look for the gems.
thanks to G. Hamilton here for finding a fix for this. I guess 6.1 is supposed to fix the leopard problems. the solution was to put this:
export GEM_PATH=/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8:/Library/Ruby/Gems/1.8
export GEM_HOME=/Library/Ruby/Gems/1.8
in here:
$HOME/.netbeans/6.0/etc/netbeans.conf
*side note*
Apparently changing the permissions on on the /usr/bin directory isn’t a good idea. Who would have thought? I thought I would be able to change it back because I live in the magical land of make believe along with barbie. Now all my sudo and su and other permissions are screwed up. I guess in ubuntu you can start the recovery console, instead…
popped in the OSX install disk and booted
ran disk utility
hit the fix permissions button, done!
Posted 2 years, 3 months ago at 11:37 am. Add a comment
Hosed ssh on my slicehost.com
1. installed openssl when it was ALREADY THERE
2. accidentally deleted libcrypt.a (on hardy) in an attempt to delete libcrypto.a
3. the make install installed openssl to /usr/local/lib and now ssh was looking there first instead of /usr/lib. It threw some error about not recognizing the version and ssh wouldn’t start
Great help from slicehost. They even sent me their own copy of libcrypt.a. I ended up doing a few sudo apt-get remove openssh-server. Don’t know if that did anything.
/etc/init.d/ssh start (or reload) with no problems after removing the files from /usr/local/lib
I’ll use apt-get from now on.
I think i understand how the openssl libs work now. If you do a `locate libcrypto.so` it shows you that it’s in /usr/lib. I think that whatever you put in /usr/local/lib overrides what’s in /usr/lib. For some reason the tclink build.sh was looking only in /usr/local/lib and so i put a symlink to the /usr/lib instead of trying to download and compile my own openssl libs.
Then I copied the tclink.so library in to /usr/lib/ruby/1.6/x86_64-linux so all the Ruby can use it.
Posted 2 years, 3 months ago at 11:37 am. Add a comment
Netbeans 6.0.1
Problem occurred during debugger start: Cannot connect to the debugged process in 10s.
From terminal:
gem install ruby-debug
gem install ruby-debug-base
gem install ruby-debug-ide
didn’t do anything. I did the same thing from within Netbeans and it worked. I think it’s looking at it’s own set of gems. Then it asked me to install Fastdebug, but it failed. At least I can debug now again.
Posted 2 years, 3 months ago at 11:37 am. Add a comment