OK, now I've got myself really pissed at some "private label" manufacturer of a PCI eSATA card now.
So, get this: I get a reasonably priced eSATA card in order to hook up to my eSATA external drive in an enclosure. It has an NEC chipset, so I instinctively trust it, and it comes with 2 external USB ports, and one internal USB header. Of course, it also has the external SATA port on it. This came out of another machine, and the eSATA device it was hooked to had some intermittent troubles, followed by poor stability of Windows. So I'm just now getting around to testing the whole damn thing in Linux.
First of all, Linux did not recognize the SATA controller on it when I booted after installing it. `lshw` did not show anything except the Silicon Image 3112 controller on my A7N8X-E Deluxe (incdentally, Asus's flagship A7 mobo). It did however show some new (disabled) USB ports.
So, I hooked up the drive, in its eSATA enclosure, and watched /var/log/syslog . . . . .
So, with everything connected, I reboot. and yay! I have /dev/sdc and /dev/sdc1 now! So, seeing there's nothing on the (ntfs) partition I repartition and reformat the drive. I mount the device, and start putting some files on it, cause now I have 500 GB to play with (ehr ... to test with, heh) and my main multimedia partition is getting to the point where utorrent reports "disk full" quite often.
So, playing around, (grr, testing!) with file transfers, it just feels slow. So I cancel the `cp` and use `rsync --progress` (which BTW rsync is way overlooked for local copying). 6 MB/s is kinda unreasonably slow, way slower than it had been with the USB interface.
So of course I'm wondering ... Hey, wtf, why is the eSATA so much slower than USB2? The drive enclosure has both options, one for speed, right? and the other for compatibility. The disk inside is a SATA drive. So, I take a look at `lshw` again, and see only my onboard SATA controller, which is not used on that drive. I do see that the new usb hubs are not disabled. After verifying that USB is definitely faster (almost 20 MB/s) I hook the drive to the eSATA from the card, and check `lshw` again ... Why, now, what's this? I have a USB mass storage device? (FYI: `sudo lshw -html > check-hardware.html` then look at the file)
looking at `lsusb` I see that I also have a "usb-to-sata" device! OMG WTF!
( The gory details...Collapse )
- Current Mood: geeky
sed -n -e 's_.*href="\?\([^ "]\+\).*_\1_p' < source.htmlThe expression there will match any href URL. I suppose it's common enough for href not to be the first value in an anchor tag so that's why I left out the <a . Note also that the s/pattern/replace/command convention is so freakin awesome that you can replace the / char with any character you want. Here, it's s_pattern_replace_command.
This matches the urls in all of the following:
<a href="/path/to/file"> <a name="file_32" class="fancylink" href="/path/to/file"> <a href=http://old-example.net/non/quoted/path/to/file>One more way regex is even better than sliced bread.
- Current Mood: satisfied
Some of 2007's winners:
My personal favorite, of the ones I read, is from right next door in DAYTON, OH ...
PEACE: The Air Force Wright Laboratory, Dayton, Ohio, USA, for instigating research & development on a chemical weapon -- the so-called "gay bomb" -- that will make enemy soldiers become sexually irresistible to each other. REFERENCE: "Harassing, Annoying, and 'Bad Guy' Identifying Chemicals," Wright Laboratory, WL/FIVR, Wright Patterson Air Force Base, Ohio, June 1, 1994.
The poor emaciated thing probably is less than 4 mos. old, and has all the symptoms of canine parvovirus (CPV), which is a higher risk for breeds such as rottweilers, dobermans, and pit bulls. He wouldn't drink water. He refused to eat anything, even when hand-fed. He had a bowel movement that looked like reddish melted chocolate. By the iron smell of it alone the blood content was apparent.
The pound came and took him away last night, and they're going to test for CPV. If he does have it, they will treat him with due diligence before resorting to euthanasia. Either way, he's in very poor shape, and I hope he gets better.
It came to cross her mind that the dude dropping off the puppy might have been previously "responsible" for it. Any which way, he's in better hands now, and not out in the cold, pooping blood.
But I also think those of us near my age are lucky to have been born when we were. We've been able to benefit from the explosion of technological advances, to witness the arrival of instantaneous global communication, this very journal for example. I don't believe all this will be around forever, though I certainly hope it's got quite some time left.
I do believe that my generation as well as folks 10 to 20 years younger will be critically responsible for a completely new world -- and more importantly, responsible for the transition thereto. As James Howard Kunstler puts it, it will be a "World Made By Hand" -- a return to simplicity and local economy on the scale that few today can even imagine. As referenced in his 2006 "The Long Emergency," the only folks in developed nations likely to have a rather painless transition to that new world are the traditional Amish.
I once was in fear, even outright panic, just at the thought. Now I've come to accept what I believe the future will hold, mainly by viewing as transient much of life as we currently know it, and which I'd before seen as immutable, indispensable, and necessary.
Good writers block topic. I totally went another way with it - Haha. Well, I'm writing, so it works. Anyway, I was a wee young'n even at the end of the cold war, so I don't have nostalgia's requisite consciousness of it.
This being a new millenium and all, I find it most convenient to first convert the CDs into a smaller digital format that my mp3 player can handle. This way I can take my audiobook on trips, like the one I just made to Chicago. (And I will back-post to fill in details of that trip when I damn well feel like it.)
After several hours of trial and error I've come up with LAME parameters suitable both for my ears and for the real-estate on my mp3 player. Without further introduction, here is the secret:
lame --preset 60 -mm -q0
That's for lame (note: ABR 60kbps preset, force mono, highest possible quality (slowest) encoding). I also use ripit, which will handle the entire process from inserting the CD to yielding a directory full of mp3 files. For that, the command line is this:
ripit --nointeraction --playlist 0 -q off -b off --lameopt "--preset 60 -mm -q0" -t http -e -T '"track_$tracknum"' -o "path-to/output-dir" -D '"Disk 01"'
Notice the -T and -D options are double quoted, with single quotes around those. I think that's to allow the $string to be passed to the script.
I'm mostly putting this here for my own reference, cause I'll surely forget next time I want to do this kinda thing.
Oh, and of course it will very much help the quality to clean off the CD with a lint-free cloth. Always wipe gently, and in straight lines radially (from the center out, or from the outside toward the center). Never wipe in circles! Mild hand soap or very mild dish soap (lots of water per drop of soap) will not harm CDs and DVDs. Paper towels ARE TO BE AVOIDED! Get a microfiber cloth or a couple -- they're cheap now. I use mine for cleaning laptop and LCD displays, monitors, CDs, DVDs, and my car windows. I have had excellent results, and never a scratch that wasn't already there.
See also: lame(1) ripit(1)
Don't steal: delete the mp3 files when you return the CDs to the library.
- Current Mood: accomplished
Gotta run! Doug's here!
I'm also encouraged by the diverse nature of our citizenry plunging surprisingly headlong into mainstream politics. It signals something promising to me to have a young mixed race presidential nominee on one ticket, and a soon-to-be-grandmother with a pregnant teenage daughter as a running mate on the other.
This dog's happy to note that the times they are a-changing! Besides, whichever side wins, I believe we're going to be blessed with much more capable leadership than we have had for quite a while.
- Current Location:America, the Free
- Current Mood: hopeful
- Current Music:radioparadise.com