Writing

  • CXF logging via interceptors

    In case you need to see what you’re passing to a web service via CXF, add the following in you web client XML (i.e. cucumber.xml): <property name=”inInterceptors”> <util:list> <bean class=”org.apache.cxf.interceptor.LoggingInInterceptor”/> </util:list> </property> <property name=”outInterceptors”> <util:list> <bean class=”org.apache.cxf.interceptor.LoggingOutInterceptor”/> </util:list> </property>

  • Homebrew: When it fails “brew update”

    I was getting this when I ran “brew update” after a long time: antonperez-mbpro:~ anton.perez$ brew update Checking out files: 100% (2942/2942), done. Error: undefined method `to_sym’ for nil:NilClass Please report this bug: https://github.com/mxcl/homebrew/wiki/troubleshooting /usr/local/Library/Homebrew/cmd/update.rb:112:in `report’ /usr/local/Library/Homebrew/cmd/update.rb:110:in `each_line’ /usr/local/Library/Homebrew/cmd/update.rb:110:in `report’ /usr/local/Library/Homebrew/cmd/update.rb:26:in `update’ /usr/local/Library/brew.rb:87:in `send’ /usr/local/Library/brew.rb:87 All I did was run it again and it worked.…

  • Oracle: How to select less or greater than with dates

    Coming from a Microsoft/SQL Server world but now into Open Source/Oracle, I didn’t know what the syntax was, so here’s how: select * from table where column < to_date(‘6/21/2014 21:50:0′,’mm/dd/yyyy HH24:MI:SS’); select * from table where column > to_date(‘6/21/2014 21:50:0′,’mm/dd/yyyy HH24:MI:SS’); Hope this helps someone out there.  Cheers!

  • Bypass Google Chrome’s “Cannot connect to the real” error

    ,

    In case you encounter the error below in Chrome, but you’re sure or okay with proceeding to the site, just type “proceed” while on the page and it should take you there. Cannot connect to the real <site>… Something is currently interfering with your secure connection to vcs.websys.tmcs. Try to reload this page in a…

  • Update rsync on OS X 10.9.3

    , ,

    Just in case you’d like to update rsync on your Mac — for example, to do iPhoto incremental back ups — you can do the following: Download the latest and greatest from http://rsync.samba.org/ftp/rsync/ Run the following command in a terminal window: ./configure && make && sudo make install That’s it! Hope this helps.

  • OS X: Corrupted locate database fix

    In case your locate database gets corrupted, run the following in the terminal: sudo /usr/libexec/locate.updatedb It’ll take a while, but you should be running after the rebuild.