this isn't a bloghttps://russellstinnett.com
...just writing some stuff downSat, 04 May 2019 19:50:47 +0000en-US
hourly
1 https://wordpress.org/?v=5.2.1121034125How to Rename Similar Files at the Command Prompt Using Sedhttps://russellstinnett.com/blog/2019/05/04/how-to-rename-similar-files-at-the-command-prompt-using-sed/
Sat, 04 May 2019 19:49:47 +0000http://russellstinnett.com/?p=1370Using a simple “script” at the command line, you can rename a bunch of similar filenames with ease. Say you’ve got something like: foo-001, foo-002 and foo-003, but you want them to be bar-001, bar-002 and bar-003. The script will look like : $ for i in `ls -1 foo*`; do mv $i `echo $i [...]

]]>Using a simple “script” at the command line, you can rename a bunch of similar filenames with ease. Say you’ve got something like: foo-001, foo-002 and foo-003, but you want them to be bar-001, bar-002 and bar-003. The script will look like : $ for i in `ls -1 foo*`; do mv $i `echo $i |sed -e 's/foo/bar/'`; done
You can test your code without making changes by removing the ‘mv’ command and just echoing the results to stdout like so :$ for i in `ls -1 foo*'; do echo $i |sed -e 's/foo/bar/'; done
With the latter command, you can examine the results to see if that’s actually what you want ‘mv’ to rename the files to.

]]>1370Powerline Symbols in Urxvt in Ubuntuhttps://russellstinnett.com/blog/2019/04/21/powerline-symbols-in-urxvt-in-ubuntu/
Sun, 21 Apr 2019 14:14:56 +0000http://russellstinnett.com/?p=1365The distro is actually Pop_OS, but I seem to remember having to do this in Debian as well. The GitHub Powerline page says that you can just install the fonts-powerline package through apt and angels will sing. I did not have any such luck. The way I finally got it to work was to actually [...]

]]>The distro is actually Pop_OS, but I seem to remember having to do this in Debian as well.

The GitHub Powerline page says that you can just install the fonts-powerline package through apt and angels will sing. I did not have any such luck. The way I finally got it to work was to actually clone Powerline from GitHub and use the included installer. This, of course, was after several evenings of trying to track down various settings and endless restarts. Just skip to the end and install them from GitHub. Then you’ll have the ‘…for Powerline’ fonts available to you and tmux and vim powerlines will look right in urxvt.

If you’re just using gnome-terminal, the aforementioned fonts-powerline package is all you need.

For Termite, you’ll have to install vte-ng, and you can use this guide to do both. NOTE: For the vte-ng dependencies, you’ll also need intltool. Initially, $ termite is returning termite: symbol lookup error: termite: undefined symbol: vte_terminal_set_cursor_position, but everything compiled and installed correctly. So that’s frustrating. Okay, so this got Termite to run, but then zsh is weird, colors aren’t working right and tmux won’t run. I’ll have to fuck with this some other time. For right now though, unusable in PopOS. It works fine on my Debian desktop.

Compiling and installing Polybar is as simple as this Reddit post. If you want to use any of the symbols in the bar and default config, you’ll need to install Siji Symbols. The install from Github is pretty straight forward.

Last but not least, installing Compton from the default repo is probably enough, but I want to cover building these elements from source even if most of the dependencies are from the default repos. So here we go. To install the dependencies do: $ sudo apt install libx11-dev libxcomposite-dev libxdamage-dev libxfixes-dev libxext-dev libxrender-dev libxrandr-dev libxinerama-dev pkg-config make x11proto-dev x11-utils libpcre3-dev libconfig-dev libdrm-dev libgl1-mesa-dev libdbus-1-dev asciidoc docbook-xml libxml2-utils libxslt1-dev xsltproc xmlto This will install a bunch of shit (about 700M worth in the end), but whatever. Storage and bandwidth is cheap now, right? Who remembers the rootboot image you could get that fit on a 1.44M 3 1/2″ floppy? I mean there was no GUI, but still.

So, i3 doesn’t work as expected, but I suspect that is because I recycled dotfiles from another system. And somehow I broke gnome-terminal. WTF. According to the Internet, something jacked with my locale settings? Weird. After installing everything, gnome-terminal would throw:Error constructing proxy for org.gnome.Terminal:/org/gnome/Terminal/Factory0: Error calling StartServiceByName for org.gnome.Terminal: Timeout was reached Almost everything I saw on the Internet pointed to a locale problem. I went through a half dozen “fixes” to know avail. Then, I saw something about a problem with vte. I had installed vte-ng for termite, which didn’t work properly for some reason, so I uninstalled it and rebooted. voila!

]]>1348Last Minute Training for 3Mhttps://russellstinnett.com/blog/2019/01/07/last-minute-training-for-3m/
Tue, 08 Jan 2019 01:03:40 +0000http://russellstinnett.com/?p=848I’m an idiot. The 3M Half Marathon is right around the corner and I have barely trained. That’s not entirely true, I just haven’t trained much in the last few weeks. I was doing a really good job about keeping up with it for the first 2 months or so, running 3 times a week, [...]

]]>I’m an idiot. The 3M Half Marathon is right around the corner and I have barely trained. That’s not entirely true, I just haven’t trained much in the last few weeks. I was doing a really good job about keeping up with it for the first 2 months or so, running 3 times a week, but even then I wasn’t doing any cross training. Now, with the race looming just 14 days away, I’m a little worried. I’m confident that I’ll be able to finish, but I think this will be a low point in my running. I’ll be able to say things in the future like, “Well at least it wasn’t as bad as the 2019 3M!”

Anyway, tonight I did 3.4 miles, 10:26 pace and almost all in Zone 5 (yikes!). Not great, but at least I did it. I came home and did 10 Step Overs on each leg, 2 pull ups and 2 dips. Pitiful, right? I will get better. Tomorrow will be strength training and calisthenics.

]]>848Back to Traininghttps://russellstinnett.com/blog/2018/12/31/back-to-training/
Mon, 31 Dec 2018 21:49:21 +0000http://russellstinnett.com/?p=789After taking several weeks off from training, I now have just 3 weeks to prepare for my upcoming half marathon. Dammit. I didn’t mean to take that long off and now I’m in terrible shape again! It’s just so easy to keep being lazy when the alternative is harder than chilling on the couch. Anyway, [...]

]]>After taking several weeks off from training, I now have just 3 weeks to prepare for my upcoming half marathon. Dammit. I didn’t mean to take that long off and now I’m in terrible shape again! It’s just so easy to keep being lazy when the alternative is harder than chilling on the couch.

Anyway, I got back out there today and ran just 2 miles. I kept a pretty good pace (9 min/mile average), but already my knee was bothering me. So I come home and do some Step Overs and 10 Cinder Block Pickups. Somehow, in this brief workout, I managed to totally fatigue something between my hamstring and groin. I don’t know what that muscle is, but it keeps threatening to crap up.

This sucks. I feel really unprepared and week. I guess I’ll just keep training, 6 days per week, and clean up my diet until race day (an hopefully after). I doubt I’ll even beat my previous best of 2 hours 10 minutes. No matter. I’ll do the best I can with what I’ve got and continue to improve. I’m planning to do several halfs and hopefully at least one full this year.

]]>789Mopidy + PulseAudio + ncmpcpphttps://russellstinnett.com/blog/2018/12/29/mopidy-pulseaudio-ncmpcpp/
Sun, 30 Dec 2018 05:21:02 +0000http://russellstinnett.com/?p=779Oof. This was a real trick and a little bit of guess work, but I finally got the visualization in ncmpcpp to work with mopidy and pulseaudio. First, I found the ArchLinux ncmpcpp config walkthrough. That seemed really straight foward… but it didn’t work for me. After some dicking around, I figured it’s probably because [...]

]]>Oof. This was a real trick and a little bit of guess work, but I finally got the visualization in ncmpcpp to work with mopidy and pulseaudio. First, I found the ArchLinux ncmpcpp config walkthrough. That seemed really straight foward… but it didn’t work for me. After some dicking around, I figured it’s probably because I use mopidy instead of straight mpd. Okay… so I found this post. That seemed like it almost worked, but just failed in a slightly different way (mostly the ‘second command’ just didn’t work). Finally, I found this post on existence trainer and ncmpcpp would act like it was playing and the visualization worked, but I couldn’t hear anything. Shit. So close. Well let’s see. It’s gotta be in this line under :

]]>779Changing Default Browser in Debianhttps://russellstinnett.com/blog/2018/12/29/changing-default-browser-in-debian/
Sun, 30 Dec 2018 01:24:39 +0000http://russellstinnett.com/?p=777Not too long ago I wrote a short article about my findings in switching my default x-scheme-handler to Chrome for opening links from mutt. I used gio, and somehow it turned out to be pretty straight forward. I recently decided to switch back to Firefox for my browser, but now following links and viewing html [...]

]]>Not too long ago I wrote a short article about my findings in switching my default x-scheme-handler to Chrome for opening links from mutt. I used gio, and somehow it turned out to be pretty straight forward. I recently decided to switch back to Firefox for my browser, but now following links and viewing html email in a browser would open Chrome even though I used gio to set firefox-esr as my x-scheme-handler. That doesn’t even really matter anyway because I want to use firefox and not firefox-esr, but gio wouldn’t see firefox.desktop that I created in ~/.local/share/applications. What a headache.

It turns out that gio was not the tool that I needed. Or at least I’m pretty sure it was the wrong tool. Anyway, through a combination of articles, I discovered that not only did I need to create the .desktop file, but I needed to ‘install’ it using ‘sudo update-alternatives –install /usr/bin/x-www-browser x-www-browser /usr/bin/firefox 200’ then setting the default using ‘sudo update-alternatives –config x-www-browser’. So now mutt would try to open the text/html from the list of attachments from hitting ‘v’ in the pager, but I got the error ‘file:///tmp/mutt.html not found’.

A little further digging revealed that I needed a line in my .mailcap for ‘text/html; /usr/bin/firefox %s; description=HTML Text; test=test -n “$DISPLAY”; nametemplate=%s.html’ which I got from /etc/mailcap and changed to be firefox instead of firefox-esr and added ‘set implicit_autoview=yes’ in muttrc.

Sheesh. It’s working now. I don’t know if this was the totally proper way to do this, but it works and didn’t seem to break anything else. Yet. We’ll see if something turns up later.

]]>777XFCE and Loop Select in Blenderhttps://russellstinnett.com/blog/2018/06/26/xfce-loop-select-blender/
Wed, 27 Jun 2018 04:52:13 +0000http://russellstinnett.com/?p=309Remember that time you were getting the hang of Blender, then you switched to XFCE and alt-mouse3 stopped working for Loop Select in Blender? Remember how annoying that was? Apparently alt-click is supposed to do stuff in XFCE even though it didn’t seem to really do anything in my case except mess up Blender. Well [...]

]]>Remember that time you were getting the hang of Blender, then you switched to XFCE and alt-mouse3 stopped working for Loop Select in Blender? Remember how annoying that was? Apparently alt-click is supposed to do stuff in XFCE even though it didn’t seem to really do anything in my case except mess up Blender. Well I finally figured out how to change this behavior in XFCE. In the main menu, Settings > Window Manager Tweaks > Accessibility, change the dropdown for “Key used to grab and move windows” to Super. Close the window and boom, Blender works again.

]]>309Vegan RXBar Recipehttps://russellstinnett.com/blog/2018/05/16/vegan-rxbar-recipe/
Wed, 16 May 2018 20:49:44 +0000http://russellstinnett.com/?p=274I’m working on a vegan RX Bar recipe based almost completely on the packaging. I looked up the average protein per egg white (the RX Bar has the equivalent of 3 egg whites) to determine how much pea protein and sprouted brown rice protein to replace it with so that each bar has about 10g [...]

]]>I’m working on a vegan RX Bar recipe based almost completely on the packaging. I looked up the average protein per egg white (the RX Bar has the equivalent of 3 egg whites) to determine how much pea protein and sprouted brown rice protein to replace it with so that each bar has about 10g of protein from this 1:1 protein mix. The recipe I’m working with makes 4 bars.

Set aside half of the almonds. Add everything else to the food processor fitted with the S-blade and process for about 90 seconds, stopping periodically to check consistency. You’ll see that initially you have a pretty dry, powdery mix. Keep processing. When it’s ready to be formed, it will appear sticky and will have formed tiny little balls. Add the remaining almonds and pulse to coarsely chop the almonds. Scrape into a large bowl and press into a ball. You should have about 10 ounces of dough. The RX Bars from the store are only 1.8 ounces, so this may need some adjustment since I’m shooting for 4 servings and 10 ounces divided into 4 servings make 2.5 ounce bars. Divide the dough evenly into 4 balls and form into bar shapes. I pressed mine into a mason jar ring which made them puck shaped, but that’s just fine.

NOTE: the dates that I used were huge. try using just 6 of the giant dates for 4 servings.

]]>274Art vs. Clientshttps://russellstinnett.com/blog/2018/04/12/art-vs-clients/
Thu, 12 Apr 2018 18:04:57 +0000http://russellstinnett.com/?p=288I’ve been working on a pair of custom tank bags for a motorcycle build for the Revival Handbuilt Motorcycle show in Austin, TX. I actually already completed the bags once and they looked great even though there were a couple small functional issues. But the client hated (she actually said hate) the natural leather that [...]

]]>I’ve been working on a pair of custom tank bags for a motorcycle build for the Revival Handbuilt Motorcycle show in Austin, TX. I actually already completed the bags once and they looked great even though there were a couple small functional issues. But the client hated (she actually said hate) the natural leather that I used for the straps. She told me she hated them. She also told me when I started the project that I would have artistic freedom. If you are an artist, craftsman and/or artisan, be very wary of those 2 words when it comes to custom work. You probably don’t have artistic freedom. I had to take the bags apart, make new straps to match the upholstery (dark brown) by gluing and stitching some of the upholstery leather to strap leather, remake the back of the bags and put them back together. Now they look like they came from Target. It makes me so mad to work on this project now.

Then it occurred to me. The typical client that hires an artist to do something that they can’t do, has no taste. They are only capable of mentally rendering the project in their limited view and understanding of whatever it is that they’ve hired you to do. Often, this is based on some cheap crap they saw somewhere or just their decidedly non-artistic design and they have no idea at all how something like that is constructed — which reminds me of the dreaded opening, “but can’t you just…” So all that we artists can do is grit our teeth and suffer through these tedious tasks to make the client happy so we can get paid.

So much for artistic freedom.

UPDATE: The client really liked the revised bags and they ended up looking much better than I thought they would with the new straps. Unfortunately, the magnets weren’t doing a very good job of holding the bags on the curved surface of the tank.