SMB+SSH: Ubuntu server and OSX client
The title above is pretty close to the Google search query I used in vain to find a recipe for tunneling an OSX Samba client to an Ubuntu 14.04 server. Hopefully this post will save someone the hours I spent trying to set this up. In the end, like so many Unix projects, the answer turned out…
- steve·
- June 13, 2014 1:04 am·
- database ·
- postgresql ·
- programming ·
Optimizing a Result Set Pager
It’s ubiquitous on data driven web sites: the result set pager. We’ve all used them whether we built them from scratch or used one provided by the framework. Pagers are by nature performance suckers because we’re asking the database to re-run the same query for each “page”, slicing off just one set of contiguous rows…
- steve·
- January 4, 2014 11:15 am·
- apple ·
- osx ·
- programming ·
- tech ·
Remote SSH Filesystems on OSX
Developers, particularly web developers, have a need to work on external computers, often not within their local networks. Over the years I’ve employed everything from FTP to SFTP/SCP to Samba to NFS to VPNs to cranky Novell networks. All have their downsides, particularly with regard to security. I have a MacPro and originally ran NFS to connect to machines on my LAN. But as…
- steve·
- October 29, 2013 2:33 pm·
Did your wallpaper suddenly turn grey?
This can occasionally happen when OSX recovers from a deep sleep, particularly on dual-monitor systems where there already issues with the cabling. The fix: Open up Terminal and type the following: sudo killall Dock That should restore the wallpaper for both terminals. I ran into another problem with my Viewsonic secondary monitor related to recovering…
- steve·
- January 22, 2013 2:43 pm·
- database ·
- postgresql ·
- programming ·
- tech ·
Database Meets Revision Control
Any developer who has worked with HIPAA compliancy knows that the law is murky at best and the fed doesn’t publish a programmers’ guide to make your life any easier. However, one of the cardinal rules is the requirement to keep track of who sees HIPAA data, who modifies it and when this was done. …
- steve·
- December 11, 2011 2:45 pm·
- database ·
- programming ·
- tech ·
Finding duplicate records in a database: the SQL HAVING clause
One issue I run across occasionally is a table with duplicate entries such as two entries for the same company in an accounts payable system. This can create embarrassing problems with billing if ACME Inc #1 is 90 days overdue because someone posted a payment, and now a credit, to ACME Inc #2. I ran…
- steve·
- October 1, 2011 2:47 pm·