logo
Currently Browsing: Linux
Nov
20

SSHfs on OS X via Samba

SSHfs on OS X via Samba Why, you ask? Because sshfs on OSX’s version of sshfs is wonky. My solution is to use an intermediate linux server which does the sshfs mount, then serves that to os x over a samba share. Another benefit to this is that you only need one samba share to mount all your sshfs connections, since the linux server will be taking care of those. Also if you had a windows computer you wanted to use this...
Sep
22

Redundant web & database servers on a budget using Virtual Private Servers

Background First let me just say that I have been struggling with this problem for quite some time now. The problem is to provide redundancy for a website so that the website continues to run even if there is a problem with one of the servers it’s running on. In a typical simple server setup, there is a single machine running the web and mysql servers. The machine can be either a dedicated server,...
Aug
18

Another raid5 scare, and how to recover an apparently trashed array

This morning after waking up to lots of thunder and lightning, I got a text message saying my raid5 array had failed. Only this time, 2 of the 3 drives were missing. Since both of those drives were actually mounted via a vblade share (on a different physical machine), I assumed that the other server had freaked out during a power surge. I quickly rebooted the machine to bring back the vblade shares, but...
May
19

Google Treasure Hunt – Question 2

I just stumbled across Google’s Treasure Hunt. They’re always doing neat things, so I checked it out. It’s a series of four problem-solving puzzles released one week at a time. I found out about it after the first question was already over, so I jumped in starting with the second question. Question 2: File sum and multiplication problem In this problem you are given a zip folder with...
May
26

How to keep a MySQL connection alive

Ok, so I wasted about 3 hours on this, and have only sort of found a solution. I have a PHP script which is going to be running 24/7 checking a message queue and then interacting with a database when a message is received. It was mostly working, until it sat there for a day and I tried to use it the next day. The PHP script had quit, with the error “MySQL server has gone away.” I figured...

« Previous Entries Next Entries »

logo
Powered by WordPress | Designed by Elegant Themes