Just Another Dave

ninjITsu and Alchemy
  • thematrix
    • storage
    • neo.thematrix
    • architect.thematrix
    • sati.thematrix
    • oracle.thematrix
    • mouse.thematrix
  • Automotive
    • sway
    • gia
      • Possible Mod List
      • Mods Perpetrated
        • Hatch Lighting
        • Alientech Window Controller
        • Rear Fog-Light
  • electronics
    • Sunrise Alarm Clock
    • greenhouse automation
    • Aquarium Controller
  • hax
    • debian GNU/Linux
RSS

Categories

  • 2005 Golf TDI
  • AAR
  • Big Blue Room
  • Electronics
  • Finer Things
  • Fuel Economy
  • Geek
  • Hackspace
  • Hardware
  • Health
  • HTPC
  • Life
  • Linux
  • Mobile
  • Music
  • Netbook
  • Random Thoughts
  • Ranty
  • Site
  • Streaming
  • Uncategorized
  • Windows
  • Work


Random picture

  • Recent pics

More Whoreing

Join EFF Today

On TMPFS on the Acer Aspire One

Mar09
by dave on March 9, 2009 at 8:56 pm
Posted In: Linux, Netbook

I’ve found FireFox3 to be rather slow on mouse and a bit of reading shows that it’s primarily due to how disk i/o heavy FF3 is. SQLite backed this and that, it’s more than the poor little SSD can take. However with 1.5gb of ram there is a solution. TMPFS!

I’ve mounted a ram-backed TMPFS and run Firefox, Thunderbird, Liferea and Pidgin out of there. It’s made a huge difference. I started with the instructions from here, and have since modified the setup over the last week.

Step by step, this is what it would take to recreate what I’ve done. As your regular, browsing user:
$ mkdir ~/.tmpfs

Then as root add the following to /etc/fstab, modifying it for your username, uid, and gid:
my-tmpfs /home/$USERNAME/.tmpfs tmpfs size=200M,noauto,user,exec,uid=1000,gid=100 0 0

With that done I modified the shell script to read as follows:
#!/bin/bash
# Change this to match your correct profile

cd "${HOME}/.tmpfs_backup"
if test -z "$(mount | grep -F "${HOME}/.tmpfs" )"
then
mount "${HOME}/.tmpfs"
fi

if test -f "${HOME}/.tmpfs/.unpacked"
then
rsync --exclude='Cache' --exclude='.unpacked' --exclude='lock' -r "${HOME}/.tmpfs/" .
else
cd "${HOME}/.tmpfs"
cp -r ${HOME}/.tmpfs_backup/* . && touch .unpacked
fi

I named it tmpfs_rsync and put it in ~/bin. That’s right, no more tar for this guy. I found that after adding Thunderbird, Liferea and Pidgin into the mix, I was creating a sufficiently large enough tarball that performance would drop through the floor every 5 minutes as it backed up the tmpfs. Speaking of every 5 minutes, the respective crontab line for my user:
*/5 * * * * ~/bin/tmpfs_rsync

Make the script executable, and execute it once to mount the tmpfs and create the .unpacked lock-file of sorts:
$ chmod u+x ~/bin/tmpfs_rsync
$ ~/bin/tmpfs_rsync

With that done, all that’s left is to copy what you want to the tmpfs, then symlink it back in place. In the case of Liferea:
$ mv .liferea_1.4 ~/.tmpfs/liferea
$ ln -s ~/.tmpfs/liferea_1.4 .liferea_1.4

I repeated the above for Firefox, Thunderbird, and Pidgin and bob was my uncle. Make sure tmpfs_rsync executes once before shutdown and everything is backed up.

1 Comment

My god, it’s full of

Mar09
by dave on March 9, 2009 at 8:34 pm
Posted In: Health, Life

useless shit.

My days, that is. It seems I can lose entire mornings, afternoons, evenings, weekends to activities I really should know better than even starting. The problem is the guilty satisfaction I get from incessantly reloading fark and reading the comments. It’s a nasty habit I picked up on slashdot (though it’s usually worth it there) and it’s why I left digg. I now incessantly refresh fark and read the comments there as well. Usually it pays off but without the moderation system of slashdot you have to sift through a lot of chaff on fark. I lose an incredible amount of time to that sit, time that would be better spent doing a great many other things. Like sleeping. Or cooking. Or fixing my body. Or fixing my mind. Any of the outstanding projects I have could benefit from an influx of time.

The problem is this behavior I want to stop is so rewarding. Horrific puns, rare insight, even the trolls have something to offer. I feel like Henry when he walks into a library or bookstore full of books he hasn’t yet read. Unread threads mock me, they taunt me. Who knows what lulz are contained within. It’s so rewarding I keep coming back, day after day, week after week. I wouldn’t begrudge myself if I just stopped in on caturday, really I wouldn’t. But I can never stop at just caturday.

I guess I’d have thank the farkers for being so good at what they do. They never fail, they never disappoint.

I disappoint myself though. I get home and I lose myself to fark. I enjoy it, I learn, I get angry. It’s glorious, but then my night disappears, dinner hasn’t been made, dishes haven’t been done. I’ve neglected my blogs another day, another week, another month.

Though I obviously need to work on my ability to moderate my time in this regard, I’ve noticed two things.

1) This is worse in the winter, when the days are shorter and I’m less and less inclined to go outside. If it’s nice out I’ve no problem putting fark away. Even if I stay inside I have more energy, more initiative.

2) This is a downward spiral, I get less done so I get discouraged so I don’t bother to force myself to get up and do something so I don’t get anything done.

I know I’m a creature of habit. I’ve found I’ve always had the best success in changing my ways, in breaking out of ruts when I get back from an extended road trip for work. It just so happens I’m in the middle of one right now so it would be the best time to make the push. Get to bed on a regular schedule, get up earlier, get to the gym before work, better plan my meals. Read more, write more, think more, consume less.

As always, we’ll see what happens when I get back, but I have hope.

1 Comment

Regression by Self Image

Mar07
by dave on March 7, 2009 at 11:52 pm
Posted In: Random Thoughts

I feel younger today than I did two years ago. It seems my self image is tightly intertwined with some notion of an expected linear life progression. A large step back has made me feel younger, less experienced and less ready to face the world.

I look at my contemporaries and feel dwarfed by their accomplishments. I feel ill suited to be compared to them. I feel there have been points in my life where I have had a more meaningful existence, a more focused purpose, and spent more time working towards that. This is not to say that I oppose where I am, just noting the difference.

1 Comment

Apparently I don’t fuck around

Feb25
by dave on February 25, 2009 at 2:26 pm
Posted In: Geek, Linux

Yesterday I ended up migrating what was left of my colocated machines onto a single VM. Had about 5 minutes notice before I decided to pull the trigger and with that in mind I have to say it went fairly well. I’d already updated DNS settings for my domains in anticipation of a change as well as dist-upgrading my main hosting VM and updated the hosting panel to the latest stable release.

With all that done, starting with a fresh install of Debian Lenny it took a couple hours after work to migrate most things over. I bollocksed up the first installation of ISPConfig, not entirely sure how and ran into a database issue. Being that this was a migration though I figured the easiest thing to do was to nuke it and reinstall the hosting panel. Did that, re-imported the databases and away we went. Had a bit of a mail issue for a few hours, nothing major though.

I spent a bit of time this morning modifying the hosting system to put mail tagged as spam in a Junk folder under each users’ IMAP root and we’re back up and running as we were yesterday with relatively little downtime. Exceedingly little considering it wasn’t a planned move. So for anyone I host that was wondering what the story was yesterday, that’s it. We migrated and upgraded. Now to arrange a time to go collect my hardware and sell it off.

└ Tags: Downtime, ISPConfig, Migration, Virtualization
1 Comment

There are a dozen aborted posts under drafts

Feb19
by dave on February 19, 2009 at 12:43 pm
Posted In: Geek, Netbook, Random Thoughts

All of which I want to finish, none of which probably will be. I think Ze is right, if you have a neat idea just throw it out there now. To hell with trying to release it when it’s ready just punt it out the door and see what happens.

There’s stuff in there I would liked to have written about at the time, and I could do some small posts about them but I don’t know that it’s all that engaging to do so. So fuck that noise.

I saw Richard Fucking Stallman, a few weeks back, give a talk on how Copyright harms society. Nothing unexpected, I got to ask a question and he interrupted me as I pretty much expected he would.

A few days later I bought an Acer Aspire One. Upgraded it to 1.5gb of ram and soldered in a bluetooth adapter. Wiped whatever the hell distro they put on there and installed Debian Sid. Happy times.

The Soekris is coming along, it’s doing all routing at home quite handily and I’m working on asterisk. Once that’s done I think it’s time to ditch the personal cellphone. I’m tired of giving rogers money. The number will be ported to the VOIP account and people who don’t get the new mobile contact number immediately will have to accept voicemail and email as contact options for me.

Further to that, I think it’s time to ditch the equipment at the colo. Nothing I do right now justifies a half-rack of equipment, I could do everything I do currently in a rented VM, so that’s the plan.

It certainly does sound like I’m trying to cut expenses, and that’s because that’s exactly what I’m trying to do. I had a plan for this year, I think it’s about time I made it happen.

Other news, the Golf was broken into this week. They got away with a flashlight and a couple of car chargers. Fuck them and everyone who questions my carrying the tactimurse.

Time to stay angry.

 Comment 
  • Page 4 of 26
  • « First
  • «
  • 2
  • 3
  • 4
  • 5
  • 6
  • »
  • Last »

Twitter Updates

  • @KieranStrange Which one? 1 hour ago
  • 45% done with Altered Carbon, by Richard K. Morgan http://t.co/jJc0NuCeuI 2 hours ago
  • You're right Mona, the tablet does look better on the floor. And with a separated bezel. #goddamnitmona 5 days ago
  • Come on Come on Come on Come on Come on Come on Come on Come on Come on Come on 1 week ago
  • RT @TheOnion: Sasha Obama Suspicious After Doing A Little Digging Around On Benghazi http://t.co/4kKPLIB8ap 1 week ago

Dave's bookshelf: currently-reading

Griftopia: A Story of Bankers, Politicians, and the Most Audacious Power Grab in American History
Griftopia: A Story of Bankers, Politicians, and the Most Audacious Power Grab in American History
by Matt Taibbi
500 Days: Decisions and Deceptions in the Shadow of 9/11
500 Days: Decisions and Deceptions in the Shadow of 9/11
by Kurt Eichenwald
Burning Chrome
Burning Chrome
by William Gibson
The Original Illustrated Sherlock Holmes: 37 Short Stories Plus a Complete Novel
The Original Illustrated Sherlock Holmes: 37 Short Stories Plus a Complete Novel
by Arthur Conan Doyle
Drink: A Cultural History of Alcohol
Drink: A Cultural History of Alcohol
by Iain Gately

goodreads.com

©2006-2013 Just Another Dave | Powered by WordPress with Easel | Subscribe: RSS | Back to Top ↑