Last night Bandit, one of BB's pugs, died. He'd had a surgery earlier in the day to remove bladder stones. The procedure went well and we brought him home. He was resting quietly and at some point passed.
As dogs go, pugs are particularly affectionate and companionable. Bandit was no exception. Indeed, of the many dogs I've known he was one of the most engaging. Bandit was likely the runt of the litter. His tong habitually hung out the right side of his mouth and he was unable to move it to the left. When our house burned down, Bandit was seared and lost the fur on several spots. Still he was always a happy camper, full of himself, and glad of everything. He will be missed.
Anyone who has dogs knows, of course, that they will almost certainly outlive their pets. Still when you loose a pet it is a great sadness.
Friday, April 27, 2012
Wednesday, April 25, 2012
Laptop v. wireless mouse
Technology is determinant but often still rather unexpected and just plain strange. Case in point my Sony Vaio VGN-FW370J laptop and Logitech 305 wireless mouse. I rather like the laptop and the mouse. When I bought the mouse I plugged in the USB xmit/rcv and presto all was well. Indeed, things worked so well that I bought a second Logitech mouse for the TV computer! Many months later the laptop mouse quit working! Bummer! Other USB devices worked OK, but not the mouse.
What to do? A bit of investigation, not enough as it turned out, suggested it was the USB xmit/rcv so I bought a replacement. No joy! Still surprisingly other USB devices seemed to work. Tried the Logitech USB mouse from the TV computer that I knew worked fine. No joy. So I did a bit of web searching and found this post.
So I unplugged the laptop and removed the battery, waited a bit, replaced the battery, rebooted, reconnected the Logitech 305 wireless mouse and presto, all is now well.
Clearly technology can be unexpected and just plain strange.
Friday, April 6, 2012
WAV to MP3 for Sandisk Clip+
BB was able to listen to the audio CD riped from WAV to MP3 successfully. However, the process of ripping is a bit involved
- copy the WAV to disk & rename with author, title, disk, and track
- convert to MP3 with lame
- set MP3 tags with easytag
So I've improved the python script to do all these things. Here's the current version:
# audiobookcopy.py
# copy multiple CDs in an audio book
# cd appears to automount at ls .gvfs/cdda\ mount\ on\ sr0/
#
# Output file name format that should work well with various players
# Author/Title/CD??-Track??
#
# for info on ripping see http://www.chuckegg.com/quickly-convert-audiobook-cds-to-mp3-files-audio-book-mp3/
# for info on easytag see http://easytag.sourceforge.net/EasyTAG_Documentation.html#ch_1_2_4
import sys
import os
import shutil
from subprocess import call
dir = "/home/rbell01824/.gvfs/cdda mount on sr0"
def ensure_dir(f):
if not os.path.exists(f):
os.makedirs(f)
def cacd( author, title, fnbase, cd ):
print "Processing CD ", cd
files = os.listdir( dir )
ifn = 1
for fn in files:
src = dir+"/"+fn
dstdir = author+'/'+title
fn, fx = os.path.splitext( src )
#print "Source:", src
#print "Dest Dir:", dstdir
#print "FN:", fn
#print "FX:", fx
if fx == '.wav' or fx == '.mp3':
# lame -h -b 192 --tt title --ta artist --tl album --tn track --tg genre source destination.mp3
idtitle = fnbase+'-%02d'%cd+'-%02d'%ifn
dst = author+'/'+title+'/'+fnbase+'-%02d'%cd+'-%02d.mp3'%ifn
#print "Dest:", dst
cmd = 'lame -h -b 192 --tg Audiobook --tt "%s"' % idtitle
cmd = cmd + ' --ta "%s"' % author
cmd = cmd + ' --tl "%s"' % title
cmd = cmd + ' --tn "%d%02d"' % (cd, ifn)
cmd = cmd + ' "%s" "%s"' % (src, dst)
print "lame: %s"%cmd
return_code = call( cmd, shell=True)
else:
dst = author+'/'+title+'/'+fnbase+'-%02d'%cd+'-%02d'%ifn+'.%s'%fx
print "Dest:", dst
shutil.copy2( src, dst )
ifn += 1
return
def abc():
if (len(sys.argv) < 3 ):
print "audiobookcopy author title base_file_name start_CD"
exit(1)
print sys.argv[1:]
author = sys.argv[1]
title = sys.argv[2]
fnbase = sys.argv[3]
ensure_dir( author )
ensure_dir( author+'/'+title )
cd = int(sys.argv[4])
print "start with disk "+str(cd)
while cd <= 200:
kbi = raw_input( "Mount CD "+str(cd)+" Press enter:\a" )
cacd( author, title, fnbase, cd )
cd += 1
if __name__ == '__main__':
try:
__file__
except:
sys.argv = [sys.argv[0], 3]
abc()
Along the way I reorganized the directory structure to / but left the individual files as < code> .
I also found a utility app with a GUI interface, Audio CD Extractor. It doesn't do as nice a job of naming but otherwise seems OK.
Tuesday, April 3, 2012
Sandisk Clip+ Fun and Games
BB has been listening to audio books on CD from the library while exercising. Dealing with the CDs is a bit of a pain while exercising so I've been ripping them to an SD card so she can listen to them using a small player.
She had been using an old Pandigital Android tablet. It works but is a bit over large. BB wanted a smaller player that could be clipped to her cloths as she exercises. After a bit of research she bought a Sandisk Clip+.
I copied a book on CDs to a micro SD card and checked to see that it would play. Everything looked OK but when BB played it the Clip+ died after a few minutes. I was a bit surprised since the device was only a day old, but OK, electronics do bread, bit of bad luck, etc. I exchanged the original device for a new one. BB tried again with identical results! A second broken device seemed rather unlikely so I decided to look into the problem.
A bit of google search found that the device can be reset by holding the power button down for 20 seconds. Doing so restored the Clip. Unfortunately when I played the book, the Clip+ froze and appeared dead after 5 minutes and 30 seconds. Another reset, another test play and another freeze!
I loaded a different book, this time a set of MP3 files (the original book was WAV files). The MP3 book played without issue. So it looks like WAV support on the Clip+ is a bit dodgy.
It's not much of a chore to convert WAV files to MP3s. I used this small script that I got from the net.
It took a bit to convert all the files in the book. I reloaded the book now as a set of MP3s on the Clip+ and it now plays OK.
There was a bit more cleanup to do since the Clip+ uses MP3 tags to organize the files it plays. Enter easytag. I used it to set the MP3 tags based on the file name (fortunately it contained the autor, title, CD, and track as part of the name). Easytag has a facility to batch set the MP3 tags. I set tags as follows:
With that done the book is nicely compatible with the Clip+.
To make things a bit easier going forward I modified the python ap I used to rip the CDs to use a better name convention.
With those changes made it should be easy to load books on the Clip+. After a bit more use I'll probably update the python ap to convert to MP3 if necessary and to set tags as part of the process so it's not necessary to use multiple tools.
She had been using an old Pandigital Android tablet. It works but is a bit over large. BB wanted a smaller player that could be clipped to her cloths as she exercises. After a bit of research she bought a Sandisk Clip+.
I copied a book on CDs to a micro SD card and checked to see that it would play. Everything looked OK but when BB played it the Clip+ died after a few minutes. I was a bit surprised since the device was only a day old, but OK, electronics do bread, bit of bad luck, etc. I exchanged the original device for a new one. BB tried again with identical results! A second broken device seemed rather unlikely so I decided to look into the problem.
A bit of google search found that the device can be reset by holding the power button down for 20 seconds. Doing so restored the Clip. Unfortunately when I played the book, the Clip+ froze and appeared dead after 5 minutes and 30 seconds. Another reset, another test play and another freeze!
I loaded a different book, this time a set of MP3 files (the original book was WAV files). The MP3 book played without issue. So it looks like WAV support on the Clip+ is a bit dodgy.
It's not much of a chore to convert WAV files to MP3s. I used this small script that I got from the net.
#!/bin/sh
# name of this script: wav2mp3.sh
# wav to mp3
for i in *.wav; do
if [ -e "$i" ]; then
file=`basename "$i" .wav`
lame -h -b 192 "$i" "$file.mp3"
fi
done
It took a bit to convert all the files in the book. I reloaded the book now as a set of MP3s on the Clip+ and it now plays OK.
There was a bit more cleanup to do since the Clip+ uses MP3 tags to organize the files it plays. Enter easytag. I used it to set the MP3 tags based on the file name (fortunately it contained the autor, title, CD, and track as part of the name). Easytag has a facility to batch set the MP3 tags. I set tags as follows:
- Album to book title
- Artist to book author
- Title to CD##Track##
- CD to CD
- Track to track
With that done the book is nicely compatible with the Clip+.
To make things a bit easier going forward I modified the python ap I used to rip the CDs to use a better name convention.
# audiobookcopy.py
# copy multiple CDs in an audio book
# cd appears to automount at ls .gvfs/cdda\ mount\ on\ sr0/
#
# Output file name format that should work well with various players
# Author/Title/CD??-Track??
#
# for info on ripping see http://www.chuckegg.com/quickly-convert-audiobook-cds-to-mp3-files-audio-book-mp3/
# for info on easytag see http://easytag.sourceforge.net/EasyTAG_Documentation.html#ch_1_2_4
import sys
import os
import shutil
dir = "/home/rbell01824/.gvfs/cdda mount on sr0"
def ensure_dir(f):
if not os.path.exists(f):
os.makedirs(f)
def cacd( author, title, cd ):
print "Processing CD ", cd
files = os.listdir( dir )
ifn = 1
for fn in files:
src = dir+"/"+fn
dst = author+'/'+title+'/'+'%02d'%cd+'-%02d.wav'%ifn
print "Copy ", fn, " to ", dst
shutil.copy2( src, dst )
ifn += 1
return
def abc():
if (len(sys.argv) < 3 ):
print "audiobookcopy author title start_CD"
print 'audiobookcopy RJB "life Notes" 1'
exit(1)
print sys.argv[1:]
author = sys.argv[1]
title = sys.argv[2]
ensure_dir( author )
ensure_dir( author+'/'+title )
cd = int(sys.argv[3])
print "start with disk "+str(cd)
while cd <= 200:
kbi = raw_input( "Mount CD "+str(cd)+" Press enter:\a" )
cacd( author, title, cd )
cd += 1
if __name__ == '__main__':
try:
__file__
except:
sys.argv = [sys.argv[0], 3]
abc()
With those changes made it should be easy to load books on the Clip+. After a bit more use I'll probably update the python ap to convert to MP3 if necessary and to set tags as part of the process so it's not necessary to use multiple tools.
Monday, March 19, 2012
Another Summer Day
We've had almost no winter this year and today it's 76 and clear. In short it's a nice summer day while we're still a day on the winter side of the equinox.
Over the last several warm days I've been cleaning up some of the damage from the heavy snows we had. I've cut most of it into firewood for our neighbors. Here is some of it.
There are a couple of more piles like that. All in all about 3/4 cord. We hauled it across the street today but I've still got to deal with several very large brush piles.
Since it looks like spring is going to be early this year, I've started seeds indoors.
In a couple of weeks I'll move these out doors.
BB came home early today so we went for our first bike ride of the year. Only 3.5 miles but it's a start.
Over the last several warm days I've been cleaning up some of the damage from the heavy snows we had. I've cut most of it into firewood for our neighbors. Here is some of it.
There are a couple of more piles like that. All in all about 3/4 cord. We hauled it across the street today but I've still got to deal with several very large brush piles.
Since it looks like spring is going to be early this year, I've started seeds indoors.
In a couple of weeks I'll move these out doors.
BB came home early today so we went for our first bike ride of the year. Only 3.5 miles but it's a start.
Friday, March 2, 2012
Titan Tales 201203
We had some heavy wet snow. It's beautiful but brought down some large trees in the yard. It's also great fun if you're a dog. Then, of course, it's time for a rest.
Tuesday, February 28, 2012
Herb garden
The grocer was selling some herb plants so BB & I bought some oregano and thyme with a view to having an indoor herb garden. Here's what we have so far:
Bottom planter with some thyme and oregano. We'll see how it does. Upper tray is some failed thyme. |
Titan Tales
Titan is a great addition to our family. Here are some recent photos.
Titan likes attention, never mind if pub Bandit is in the way! Some times he's a bit jealous. Fortunately, the pugs don't seem to mind. |
All dogs like couches but Titan seems to take relaxing to a whole new level. |
Fire Comcast TV - 2TB disk added
I've been using a 1TB USB disk to store recorded video. It would unmount from time to time for no apparent reason. I replaced it with a 2TB internal drive. No more unmounts.
While everything worked OK, deletes took rather a long time. A bit of investigation revealed with the large disk have 4KB sectors and that there is an issue with logical-physical sector alignment. There's more here http://www.ibm.com/developerworks/linux/library/l-4kb-sector-disks/. So I used parted to repartition and properly align as follows:
With the new 2 TB disk there are no space issues (1 TB was occasionally a bit tight).
Between OTA recordings from MythTV, XBMC internet content, Net Flicks and ROKU we have better content choices than with cable TV. Project is a great success.
While everything worked OK, deletes took rather a long time. A bit of investigation revealed with the large disk have 4KB sectors and that there is an issue with logical-physical sector alignment. There's more here http://www.ibm.com/developerworks/linux/library/l-4kb-sector-disks/. So I used parted to repartition and properly align as follows:
# parted /dev/sdX # Set units to sectors (in this case 512B): (parted) unit s (parted) rm Partition number? 1 (parted) print Model: ATA WDC WD15EARS-00Z (scsi) Disk /dev/sdb: 2930277168s Sector size (logical/physical): 512B/512B Partition Table: gpt Number Start End Size File system Name Flags (parted) mkpart Partition name? []? File system type? [ext2]? Start? 64 End? -1 Warning: You requested a partition from 64s to 2930277167s. The closest location we can manage is 64s to 2930277134s. Is this still acceptable to you? Yes/No? Yes (parted) print Model: ATA WDC WD15EARS-00Z (scsi) Disk /dev/sdb: 2930277168s Sector size (logical/physical): 512B/512B Partition Table: gpt Number Start End Size File system Name Flags 1 64s 2930277134s 2930277071s (parted) quit Information: You may need to update /etc/fstab.All is now VERY well with much improved performance.
With the new 2 TB disk there are no space issues (1 TB was occasionally a bit tight).
Between OTA recordings from MythTV, XBMC internet content, Net Flicks and ROKU we have better content choices than with cable TV. Project is a great success.
Max, Helicopter & Titan
HB & Max were by in January for a visit. Great fun. Max got a chance to try the RC helicopter and managed to fly it a bit.
We ended up breaking it after many crashed, both Max and me. I ordered parts to repair it and it now flys again. We'll have to take it out to him.
Max also had a grand time with Titan though I think Titan may have been a bit unsure about how to play.
Max flying RC helicopter Jan 2012 |
Max also had a grand time with Titan though I think Titan may have been a bit unsure about how to play.
Max & Titan Jan 2012 |
Sunday, December 18, 2011
Fire Comcast - Minor improvements
We've been having some issues with the recorded TV shows. Most are stored on a 1TB WD Passport USB 3/2 drive. We've been having issues with the drive gratuitously dismounting during playback. I bought a USB 3 card on the chance that the issue was power since the drive gets its power over the USB connect and there was some web traffic that the WD Passport is something of a power hog. The first card I bought drew power from the bus and didn't work. It wouldn't mount the drive. I ordered a different card with an external power connector and it's works well. So far it's worked well and we've had no dismounts so it looks like power was the issue. The USB 3 interface is clearly faster though for playback of recorded video it doesn't really matter as the USB 2 was plenty fast enough.
We continue to have issues with wind causing pixilation of OTA TV. I may work on the antenna some more. The next step would be an external antenna. There are a couple of possible locations I'll try.
We continue to have issues with wind causing pixilation of OTA TV. I may work on the antenna some more. The next step would be an external antenna. There are a couple of possible locations I'll try.
Titan tales
Well we've had Titan, an Aussie, for about a month now. Great dog! He's settled in well and adopted the couch as his place. Nights he's sleeping in the bedroom, as do the pugs. The only issue is he sleeps on my side of the bed and is virtually invisible at night. I've not stepped on him yet but it's a close thing.
We've done a bit more training principally behaviors and hand signals. It's going well as he's smart and very eager to please. I found a child's plastic bowling pin in the yard after one of the recent wind storms, cleaned it up, and we've been using it to play fetch. It's one of Titan's favorite games and toys.
The only issue is shedding. I groom him at least once a day. He seems to like it well enough and I typically take a couple of handfuls of hair out of his coat. That helps but even so we have to dust mop and vac every day. For all of that, he's still great company.
Here are some photos.
We've done a bit more training principally behaviors and hand signals. It's going well as he's smart and very eager to please. I found a child's plastic bowling pin in the yard after one of the recent wind storms, cleaned it up, and we've been using it to play fetch. It's one of Titan's favorite games and toys.
The only issue is shedding. I groom him at least once a day. He seems to like it well enough and I typically take a couple of handfuls of hair out of his coat. That helps but even so we have to dust mop and vac every day. For all of that, he's still great company.
Here are some photos.
Sunday, December 11, 2011
Petition - A Petition to Support the Saving American Democracy Amendment : Bernie Sanders - U.S. Senator for Vermont
Petition - A Petition to Support the Saving American Democracy Amendment : Bernie Sanders - U.S. Senator for Vermont
Money is destructive of democracy. There are now several petitions to amend the constitution to overturn Citizens United v. FEC. It's worth your time to look into the issue.
Friday, December 2, 2011
Titan update
We've had Titan for a week and a half. He's great! We've been out a couple of times a day to exercise and play. We've been working on various skills and hand signals. He's a quick learner, particularly when there are treats involved. I've contacted a local Aussie trainer to see what help she might be.
We were by the vet to have him checked. All is well. I've contacted Tufts to have his eyes checked by a specialist. When playing there is no sign of compromised vision so we're hopeful.
The dogs have the run of the upstairs den and kitchen. Titan has decided that the couch is good. Indeed he's turning into something of a couch potato dog when we're not out and about. When we are he's very high energy so I've been running him twice a day.
We were by the vet to have him checked. All is well. I've contacted Tufts to have his eyes checked by a specialist. When playing there is no sign of compromised vision so we're hopeful.
The dogs have the run of the upstairs den and kitchen. Titan has decided that the couch is good. Indeed he's turning into something of a couch potato dog when we're not out and about. When we are he's very high energy so I've been running him twice a day.
Sunday, November 27, 2011
Thanksgiving with Wassermans and friends
Real Thanksgiving we spent with Rob & Lee, Mark & Miriam and friends. Here are a couple of photos courtesy of Mark. As always a good time was had with plenty of food and friendship.
Saturday, November 26, 2011
Pre Thanksgiving in Charlotte & we adopt Titan
BB & I went down to visit family in Charlotte and have a pre Thanksgiving Thanksgiving. Had a great time.
While there we stayed at E lake cottage. It's just charming. I took a few photos.
The other big news is that J let us adopt Titan, one of her Aussies. Great dog. Here are some photos.
While there we stayed at E lake cottage. It's just charming. I took a few photos.
The other big news is that J let us adopt Titan, one of her Aussies. Great dog. Here are some photos.
Friday, November 25, 2011
Synergy
One of the issues I've been unhappy about with the TV is that I needed to have a separate keyboard for the computer TV. A bit of searching found Synergy. It provides a facility to remote the keyboard and mouse for a machine. For my purposes it's just what's wanted so that I can control the TV computer from my laptop. Now if disk prices would just come down I'd be done with the Fire Comcast TV project.
Comcast fired!
Verizon was by yesterday and installed fiber. The Internet is definitely faster, although not dramatically so. I did have to reconfigure some of the house network. The router I'd been using to run DHCP had a reservation feature that allowed me to assign static IPs. I needed these to support some of applications I run across the local net. The Verizon provided router, a generally much more advanced device, doesn't have an explicit static reserved IP feature. It does seem to create the same effect by always using the same IP for a given MAC address. The net was that I had to do a bit of reconfiguration of some software that for whatever reason needed a real IP instead of a host name.
With everything running again properly, I called Comcast to terminate the remaining service. There was some entirely needless fuss and bother over verifying my identity. It seems that calling from the registered phone number, identifying the account holder, and verifying the address isn't enough. We finally got past that and Comcast service is now terminated.
We are still having a bit of issue with the USB disk drive I'm using to hold downloaded media. From time to time it gratuitously dismounts. That's a bit frustrating when watching something. I'd like to replace it with a 2TB internal drive but sadly drive prices have skyrocketed with the flooding in Asia. I'll put up with the dismounts until prices return to a sane level then replace it.
Bottom line now, though, is that I no longer pay for TV, have cut my Internet bill by 1/3, and my phone bill to 1/8 of what it was. Well worth the couple of hundred I spent on equipment!
With everything running again properly, I called Comcast to terminate the remaining service. There was some entirely needless fuss and bother over verifying my identity. It seems that calling from the registered phone number, identifying the account holder, and verifying the address isn't enough. We finally got past that and Comcast service is now terminated.
We are still having a bit of issue with the USB disk drive I'm using to hold downloaded media. From time to time it gratuitously dismounts. That's a bit frustrating when watching something. I'd like to replace it with a 2TB internal drive but sadly drive prices have skyrocketed with the flooding in Asia. I'll put up with the dismounts until prices return to a sane level then replace it.
Bottom line now, though, is that I no longer pay for TV, have cut my Internet bill by 1/3, and my phone bill to 1/8 of what it was. Well worth the couple of hundred I spent on equipment!
Monday, November 7, 2011
Fall bike ride with BB
On this lovely warm fall day BB and I took a 10 mile bike ride. We went to Wayside Inn by way of Rt 20. We'll probably not use that route again as Rt 20 is busy and noisy even on Sundays. Wayside was, as always, nice but we decided not to stop as neither of us were tired or thirsty. The fall colors were very good even after last weeks heavy snow. There is still a fair number of downed trees and debris on roads and sidewalks. Even so, the ride was outstanding. Here are some photos:
Thursday, November 3, 2011
BB and I went for a short bike ride today. The plan was to bike over to Wayside Inn and stop for a mulled cider. We got to the inn OK but, sadly, no cider and thus no mulled cider. We stopped at the mill and I took some photos. Here's the story:
Subscribe to:
Posts (Atom)