Month: July 2013

  • Australian Tax File Number Generator (TFN)

    Updated Tool Available There’s now an easier to access version of this tool available at the following link: Australian Tax File Number (TFN) Generator Along with a few other widgets that have been added more recently: Australian Tax File Number (TFN) Validator Australian Company Number (ACN) Generator Australian Company Number (ACN) Validator New Zealand IRD…

  • Recording AJAX Requests with Google Analytics

    Hey everyone, I’ve just finished setting this up on an AJAX-heavy site I’m working on. It’s all pretty easy to setup, copy the following code and use it to replace your standard analytics code: This: (function(i,s,o,g,r,a,m){i[‘GoogleAnalyticsObject’]=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,’script’,’//www.google-analytics.com/analytics.js’,’ga’); ga(‘create’, ‘UA-xxxxxxxx-x’, ‘xxxx.com’); ga(‘send’, ‘pageview’); Becomes this: var _gaq = _gaq || []; _gaq.push([‘_setAccount’, ‘UA-XXXXXXXX-X’]);…

  • How to Customise ShareThis Settings – ShareThis

    Hey everyone, I’ve just added ShareThis to a website I’m currently working on. It’s basically a generator for all your typical social network plugins (Facebook Like, Twitter Share, Google+ etc). The main advantage I’ve found with using it is the detailed analytics. While I haven’t had any major issues, there were a few customisations I…

  • Missing Partial (JSON Response) – Ruby on Rails

    Hey everyone, I’ve just added pagination (Kaminari) to make an infinite scroll list a little easier to use. Unfortunately, I ran into the following error – had me stumped for a while: Missing partial /contents/content_list_item with {:locale=>[:en], :formats=>[:json], :handlers=>[:erb, :builder, :coffee]}. Searched in: * “/home/chris/funny/app/views” * “/home/chris/.rvm/gems/ruby-1.9.3-p327/gems/kaminari-0.14.1/app/views” The solution was fairly simple, but adding a…

  • Stop a Link from Going Anywhere – CSS/JavaScript

    Hey everyone, Another quick one – how to stop a link from doing anything. I’ve just come across a need to use a link that acts as a button. A slight UI issue with this is that clicking a hyperlink will with an href value of ‘#’ will push scroll to the top of the…

  • Disable Word-Wrap – Sublime Text

    Hey everyone, This one is pretty obvious, but just in case anyone is having trouble finding it: – View > Word Wrap If you want to alter the default settings, the following seems to work: Preferences Settings – User Add the following and then save: { “word_wrap”: “false” } Once unchecked any overflow simply results…

  • ORA-28000: the account is locked – PeopleSoft

    Hey everyone, Just a small PeopleSoft issue I ran into while running an SQR: (SQR 5528) ORACLE OCISessionBegin(RDBMS) error 28000 in cursor 0: ORA-28000: the account is locked (SQR 4701) Cannot logon to the database. SQR for PeopleSoft: Program Aborting. For some reason the sysadm account had been locked, thankfully there’s a fairly easy fix:…

Create a website or blog at WordPress.com