Month: October 2012
-
OpenSSL::PKey::RSAError Neither PUB key nor PRIV key:: nested asn1 error – Adaptive Payments Gem
Hey everyone, I’ve been mucking around with PayPal for a while and decided to try out the adaptive_payments gem by Tommy Chheng. Unfortunately I ran into the following error: OpenSSL::PKey::RSAError Neither PUB key nor PRIV key:: nested asn1 error It turns out that I’d simply skipped an important part of the readme file. The api_cert_file…
-
Additional Logging – Heroku
Hey everyone, I needed to do a fair bit of logging and came across a heroku guide that shows how to make things a little easier. Change logging level to debug: heroku config:add LOG_LEVEL=DEBUG View a live(ish) feed of errors: heroku logs –tail If you’re aware of any other useful bits please let me know!
-
Blocking Duplicate Payment – Paypal
Hey everyone, Just a quick post on how to block duplicate payments with PayPal. All you have to do is pass an invoice parameter and then select the ‘block multiple payments per invoice ID’ option in PayPal. I’ve attached an extract from PayPal’s documentation below: 1. Login at https://www.paypal.com 2. Click the ‘Profile’ subtab 3.…
-
Uploadify – Limit to One Upload Only
Hey everyone, Just a quick post detailing how to limit uploadify to a single file. Simply add the following settings to your uploadify initialisation: multi: false queueSizeLimit : 1 uploadLimit : 1 $(document).ready(function() { $(‘#file_upload’).uploadify({ ‘swf’ : ‘Html->url(‘/uploadify/uploadify.swf’);?>’, ‘uploader’ : ‘Html->url(‘/uploadify/uploadify.php’);?>’, ‘cancelImg’ : ‘Html->url(‘/webroot/uploadify/cancel.png’);?>’, ‘folder’ : ‘Html->url(‘/extraz/uploaded_by_all_users’);?>’, ‘auto’ : true, ‘buttonText’ : ‘Browse’, ‘multi’ :…
-
View Last Query Executed – Oracle
Hey all, Just a quick post on how to view recent queries run into an Oracle database: SELECT sql_text, sql_fulltext FROM v$sql ORDER BY last_load_time DESC Cheers
-
Git with KDiff3 – Windows
Hey all, Just a quick post showing the config I needed to use in order to get KDiff3 working with git. It took a while to get this working so hopefully it’ll be able to help someone else out. #Config file [user] email = test@test.com.au name = test [core] editor = “C:\Program Files\Sublime Text 2\sublime_text.exe”…