26a.net Computing http://www.26a.net/ (Kevin Semande) 2006 - 2012, Kevin Semande Thu, 12 Jul 2018 03:44:31 +0000 JAWS 0.8.16 <![CDATA[ DRAFT Privacy and Email Usage Policy ]]> http://www.26a.net/index.php/blog/show/draft-privacy-and-email-aup.html klync@26a.net (Kevin Semande) http://www.26a.net/index.php/blog/show/draft-privacy-and-email-aup.html Tue, 10 Jul 2018 04:42:19 +0000 <![CDATA[ The Frankenstein ]]> 1 oz Melon liquer
1 1/4 Dillon's gin
1 oz Dolin's dry vermouth

measure over ice, stir and strain ]]>
http://www.26a.net/index.php/blog/show/the-frankenstein.html klync@26a.net (Kevin Semande) http://www.26a.net/index.php/blog/show/the-frankenstein.html Sun, 26 Oct 2014 05:48:31 +0000
<![CDATA[ pasado de moda ]]> http://www.26a.net/index.php/blog/show/-pasado-de-moda-1.html klync@26a.net (Kevin Semande) http://www.26a.net/index.php/blog/show/-pasado-de-moda-1.html Sun, 12 Oct 2014 05:31:55 +0000 <![CDATA[ Back Online ]]>
Email has just been restored and flipped back on for some tentative testing. If you had an account and cannot login, please contact me and I will get you up and running again.

SVN access is next on the list, and after that will be shell / sftp accounts. Thank you for your patience. ]]>
http://www.26a.net/index.php/blog/show/Back-Online.html klync@26a.net (Kevin Semande) http://www.26a.net/index.php/blog/show/Back-Online.html Mon, 04 Apr 2011 20:37:31 +0000
<![CDATA[ Search and Replace on all rows in a MySQL table using bash ]]> http://www.26a.net/index.php/blog/show/Search-and-Replace-on-all-rows-in-a-MySQL-table-using-bash.html klync@26a.net (Kevin Semande) http://www.26a.net/index.php/blog/show/Search-and-Replace-on-all-rows-in-a-MySQL-table-using-bash.html Sat, 21 Aug 2010 03:59:38 +0000 <![CDATA[ Enjoying My mp3 Jukebox ]]> I wrote down some thoughts about turning a spare computer into a jukebox to connect to my home stereo. Well, that dream has become a reality, although not exactly as I had originally envisioned it.

I'm currently listening to my Black Mountain mp3's through via a jukebox controlled over the home network. Thank you very much to the makers of Theory, a client for mpd. Theory is written in python using pylons, has a nifty AJAX-based interface, and optionally hooks into AWS to grab album art.

To make theory more useable, I installed a light web server (I chose nginx) in order to proxy theory over port 80. Of course pylons can't connect to port 80, since that would be a huge security risk for a number of reasons. I created a user account under which to run theory, and added a line to /etc/rc.local which starts theory when the machine boots. As it turns out, theory didn't like having the URL paths rewritten, so I couldn't use, e.g. "location /tunes"; I had to map the app to the docroot of the host, like so:


server {
listen jukebox;
server_name jukebox jukebox.lan jukebox.26a.net;
location / {
proxy_pass http://localhost:9099/;
root /var/www/nginx-default/;
index index.html;
}
}


Finally, I didn't want the machine to be on all the time (too noisy, wastes power, generates heat), and I didn't want to wait for the whole boot sequence every time I wanted to play some tunes, so I installed hibernate and the userspace software suspend package for debian. After configuring uswsusp, I modified /etc/acpi/powerbtn.sh - at the very end of the file, I commented out the call to "shutdown", and replaced it with a call to hibernate:


#/sbin/shutdown -h now "Power button pressed"

echo "Hibernate activated by power button"
/usr/sbin/hibernate



Headless and wireless, the beige box just sits on the stack with my other stereo components in the living room, while I control it via any machine on my LAN. Ta da! ]]>
http://www.26a.net/index.php/blog/show/Enjoying_My_mp3_Jukebox.html klync@26a.net (Kevin Semande) http://www.26a.net/index.php/blog/show/Enjoying_My_mp3_Jukebox.html Fri, 06 Aug 2010 10:31:49 +0000
<![CDATA[ Firefox Plugins ]]> Galeon project is heading into uncharted territory. I've been using Ffx a lot more lately, while I wait to see what comes out from the interesting experiment going on with the Galeon devs.

All of that is just a preface for the curious to the main point of this posting: Below I'm listing the Ffx extensions I find indespensible. Link love for the devs, and a list in one place so that I can sync up my desktop at home, laptop, and various work machines with the same set of tools I've grown to expect from my browser. Without further adieu:
]]>
http://www.26a.net/index.php/blog/show/Firefox_Plugins.html klync@26a.net (Kevin Semande) http://www.26a.net/index.php/blog/show/Firefox_Plugins.html Tue, 24 Oct 2006 12:49:32 +0000
<![CDATA[ Tracking Changes to Important Files with Subversion ]]>

Introduction


In Unix, the /etc folder contains most if not all of the system's configuration files. /home usually contains folders for all the system's users. I once read an article from a self-admitted obsessive-compulsive sysadmin who kept his home folder under revision control using a program called subversion. I thought this was a nifty idea, but of course, I didn't quite find the article to be a one-stop how-to on the subject. I'll spare you the long story of everything I did to get this working; here's what I did right:

Getting Set Up


I set up my new computer and installed the base operating system. Don't be jealous... it's an old, second-hand laptop which is now running Gentoo Linux. Subversion was one of the first pieces of software I installed once the system was up and running. I decided that, at least for now, I don't need to set up a fancy daemon to act as a subversion server, so I just created the repository as root with the plan to check-in all my changes using the file:/// protocol to access the repository, since I'll always be committing the changes locally. Logged into my machine as the root user, I got down to it:
mkdir /var/svn/repos
svnadmin create /var/svn/repos/backups

Dealing with Special Files


I quickly realized that file ownership, permissions, and special files such as devices would be an issue, so I downloaded a little script called asvn which is a wrapper script to subversion, to keep track of these properties that don't normally get recorded in a repository. I had to edit the script, which I put in /usr/local/bin, and change the path of my svn program which the script expects to be in /usr/local/bin, but which gentoo installed in /usr/bin. Then I was ready to go.

Ready for Takeoff


I imported my two very special folders into subversion, but then I realized that, though this added them to the repository, it didn't make the original folders into working copies for me. There is actually a 'best practices' way of doing this, described in the Subversion FAQ.
svn mkdir file:///var/svn/repos/backups/etc
cd /etc
svn co file:///var/svn/repos/backups/etc .
asvn add *
asvn ci
I repeated the process for /home, and now my folders are all set up. I should be able to easily tell which files have been added or changed, revert back to an older configuration if I happen to screw anything up, and add in new files to be tracked. Once it's working smoothly, I'd like to automate some of it, so that my configuration is always saved when I shut down the computer.

Day to Day Stuff


It was a good thing I did all this when the system was shiny, new and clean. But, I quickly noticed a number of files in my home folder that I wouldn't want to have under revision control or in my repository at all. I wasn't too worried about sensitive data being on there, for a number of reasons. Most importantly, nothing will be stored in my repository until I add it to subversion in my working copy. But, as it turns out, I do have to take things into consideration, such as my web browser's cache. Well, subversion has a way to let you ignore these things, by setting a property on a file or folder. First, I created a text file with the list of patterns to ignore:
*~
*history
*.bak
*private
*[Cc]ache*
.ssh
Next, I set the "svn:ignore" property on my home folder to the contents of that file:
asvn propset svn:ignore -F svn-ignore-patterns.txt /home
]]>
http://www.26a.net/index.php/blog/show/Revision_Control_for_home_and_etc_folders.html klync@26a.net (Kevin Semande) http://www.26a.net/index.php/blog/show/Revision_Control_for_home_and_etc_folders.html Wed, 17 May 2006 20:52:31 +0000
<![CDATA[ New Site, New System ]]> Jaws. I can see a lot of potential, and I think I'm just going to let my dev site drift off into its own experimental zone. My tinkering with Jaws can be watched live at http://alpha1.26a.net. One thing that might be different over there is that that space contains my thoughts on the jaws software. Yes, I categorized this under "fun". ]]> http://www.26a.net/index.php/blog/show/New_Site_New_System.html klync@26a.net (Kevin Semande) http://www.26a.net/index.php/blog/show/New_Site_New_System.html Tue, 02 May 2006 01:55:29 +0000 <![CDATA[ FP ]]> http://www.26a.net/index.php/blog/show/FP.html klync@26a.net (Kevin Semande) http://www.26a.net/index.php/blog/show/FP.html Tue, 25 Apr 2006 15:50:41 +0000