marnen: (Default)
2014-04-03 12:40 pm
Entry tags:

Video editing on Linux

I have a concert video that I'd like to do a little editing on and post to YouTube. I had thought I remembered that even comparatively recently, the state of video editing on Linux was awful, but the article at http://www.techdrivein.com/2013/09/top-5-video-editors-for-ubuntu-linux.html showed me that apparently I was wrong. I'm looking for something simple, comparable to iMovie, not Final Cut. I'm going to try Flowblade becase the comments seem to indicate that it's the least buggy, but does anyone have any other advice?
marnen: (Default)
2014-03-21 01:35 pm
Entry tags:

Get my Rails development environment set up on Elementary OS

I'm getting my Rails dev environment set up on Elementary OS. That means SublimeText, RVM, PostgreSQL, Git, and Zsh.


These are some quick thoughts about the installation.


SublimeText downloads a usable binary, but there's no automated way to get it into the application launcher menu (which I believe needs creation of a .desktop file). Fortunately, a Web search turned up both some .desktop files for SublimeText and something even more convenient: a PPA that automates the whole process.


RVM and Zsh also installed easily. I also installed GNOME Terminal (because it's more configurable without resorting to editing config files) and App Grid (because Software Center is slow and crashes).


I tried to install PostgreSQL 9.3, but kept getting postgresql-common version conflicts. After a lot of time wasted in Web searching, I finally wound up forcing compatible versions by doing sudo apt-get install postgresql-client-common=154.pgdg12.4+1 postgresql-common=154.pgdg12.4+1 postgresql-9.3. Why did apt-get have to be so boneheaded? Why couldn't it determine that version 154 was available in the sources it had?


PGAdmin installed well, and I was able to use it to connect after configuring the Postgres superuser to have a password (why isn't Postgres installed like this out of the box?).


I also installed gitg, which looks like a nice replacement for GitX on Mac OS, though I'd prefer that the branches were in a sidebar, not a menu.


Ruby gems mostly installed as expected. I had to install the libxml2-dev and libxslt1-dev packages to get Nokogiri to build, and Curb (unsurprisingly) required libcurl4-openssl-dev. The pg gem, of course, required libpq-dev so it could talk to Postgres, and RMagick required libmagickwand-dev.


At this point, VM performance was getting kind of bad, so I raised the RAM to 1.5 GB. Hopefully that will help.


When I tried to run Rake on one of my Rails projects, I found that it needed a JavaScript runtime. Information I found on the Web led to me installing the nodejs package, which did the trick (and also means I can play around with Node development, which I've been wanting to do).

marnen: (Default)
2014-03-19 06:17 pm
Entry tags:

Tweaks!

There are a couple of things I'd like to change about the look of Elementary OS. In particular, while I like Droid Sans, I think it's too narrow to look good as the title bar font on Mac-inspired windows (compare to the Mac default of Lucida Grande, a much wider font). So I'm gonna install Elementary Tweaks and play around!
marnen: (Default)
2014-03-19 03:01 pm
Entry tags:

Chrome and fonts

One of the first things I did after setting up the Elementary OS VM was to install Google Chrome, my favorite Web browser. As I would have expected from Google, installation was a snap: the Download link on the website downloaded a .deb package file, which opened in Software Center and automatically started installing like any other self-respecting Ubuntu/Debian package, creating an icon in the Applications menu when it was done.

Neither of the supplied themes looked that good, though, so I went looking for others. I eventually found the eGTK Chrome/ium Theme, which is designed for Elementary OS and looks pretty good.

But there was still the problem of fonts. Elementary OS Luna, like every other Linux distribution I've seen, comes with a strange selection of fonts, and many Web pages look terrible as a result (Liberation Sans and Mono are especially ugly). As a first step, I thought I'd see about installing the Microsoft Core Fonts for the Web.

As a zeroth step, though, I realized that I wasn't sure what fonts I had. Luna doesn't appear to come with a GUI font management utility, so I installed Fontmatrix from the Software Center. I was pleasantly surprised to find out that I had more fonts installed with the OS than I thought, including some nice script and display fonts.

Anyway, the Core Fonts are available as the ttf-mscorefonts-installer package, and so I tried to install them through Software Center. The package hung about 2/3 of the way through, though, and Software Center became unresponsive. When I right-clicked on the Dock icon for Software Center, I got asked if I wanted to force-quit it, so I did.

When I relaunched Software Center, it took longer than usual to be ready for input (I assume it was recovering from an inconsistent state), but then surprised me by saying that the package had actually been installed. Turns out that package is only the installer for the Core Fonts, and it doesn't create an icon in the Applications menu, so I attempted to run it from the command line. But there was no executable in my path called ttf-mscorefonts-installer.

I removed and reinstalled the package. This time it appeared to work, but Fontmatrix didn't show the fonts. From some of the reviews, I believe that the package requires acceptance of a license agreement, but I can't find a way to do that in Software Center (so why did it say that the package installed?).

I tried removing and reinstalling from the command line (after editing the sudoers file to let me run sudo) and that worked. I was going to take a before-and-after pair of screenshots, but here I ran into an interesting problem.

You see, Luna has a lot of useful keyboard shortcuts, but they're not all that well documented. I finally found out that PrtSc will take a screensshot on Luna, but I'm using a Mac keyboard without a PrtSc key. I searched through the forums and asked on IRC to find out if there was another way. It looks like someone suggested Cmd-P as an alternate key, but I don't think this was ever actualy implemented.

However, it looks like the Keyboard pane in System Settings will do the trick. I remapped all the screenshot keys to various combinations involving Cmd-P: Elementary keybindings

And so now I can make screenshots before Before Core Fonts and after After Core Fonts installing the Core Fonts. Looks much better, no?

marnen: (Default)
2014-03-19 02:28 am
Entry tags:

Elementary OS VM installation

Liveblogging my installation of Elementary OS. (Well, almost live: I'm editing as I go, but not posting till the process is complete.)

Note: Download times shouldn't be taken as gospel. I'm using the public Wi-Fi at King Sauna, and who knows how fast that is? Also, the act of blogging slows everything down a bit.

12:21 a.m.
Start downloading VirtualBox so I can create a VM.
12:24
Download done.
12:26
VirtualBox installed.
12:27
Click "New" in VirtualBox to create a guest image.
12:29
I picked Linux, but then it asked me what type? The logical choices seemed to be either Ubuntu (which Elementary is built on) or "Other Linux". No useful info on the Web, so I'll go with Ubuntu and see what happens. Also going with the recommended settings for RAM (512 MB) and virtual HD (8 GB, VDI format, dynamically allocated).
12:32
VM created. That was painless. Now, do I have to start it to install the OS from an ISO image? I'll check on this while downloading the ISO image.
12:34
Downloading what they describe as the 64-bit build of Luna. Uh oh, the file has "amd64" in its name. Will it work on my Intel Mac, or will I have to get the i386 build instead?
12:36
OK, apparently I can install an ISO image before starting the VM. I think I knew this at one point, but had forgotten it. :P
12:41
Insert newly downloaded ISO image into VM's virtual CD-ROM drive; start VM.
12:44
01 Booted
VM booted with no problem. Now to run the Luna installer.
12:50
Installed as follows:
  • 02 Install 1
    Checked the options to install updates and possibly proprietary Flash and MP3 players (neither was checked by default).
  • Allowed the installer to erase the entire virtual HD and partition it the way it wanted.
12:56
03 Crashed
WTF? The installer crashed.
1:03
A quick Web search suggests that this is not an unheard-of bug in the Ubuntu installer, but I haven't seen a solution yet. When I clicked to dismiss the crash messages, eventually I wound up in a live desktop session so I could diagnose the problem…
1:06
Performance in the live desktop session is so abysmal as to be unusable (I suspect that this is an artifact of VM performance, not of Elementary itself). Gonna reboot the VM and retry.
1:08
VM rebooted. This time, I'm going to run a live desktop session first, so I can make sure that things are working OK.
1:09
Looks good. Performance is incredibly snappy, and I was able to open Midori (the included browser, WebKit based) and load Web pages. Great. Retrying installation. If that doesn't work, I'll give the VM more RAM.
1:11
Hmm. As soon as I ran the installer app, performance went all to hell. Maybe there's a VirtualBox issue.
1:13
Same crash. Doubling VM RAM to 1 GB.
1:17
I guess that was the problem. Installer is now working.
1:19
Nice. There's even a "detect keyboard layout" tool that has you press some keys and answer questions about your keycap labels. (Of course, I have a boring US English keyboard…)
1:23
04 Installation progressThat's kind of annoying. I clicked the disclosure triangle during installation, but it doesn't look like the terminal-like window that shows up is actually expandable to the point where I can see what's going on.
1:26
Installation complete. I still have to add VirtualBox Guest Additions so I can make the Documents folder on my Mac visible to the VM.
1:28
On reboot, I had to virtually eject the virtual installation CD before Elementary would finish booting. :) Once that happened, boot and login proceeded flawlessly.
1:30
Shutting down VM so I can install Guest Additions.
1:31
Hmm, maybe I didn't have to shut down. So how do I install the additions?
1:32
The OS alerted me that I needed to update language support modules. Nice.
1:35
Following the instructions to install Guest Additions.
1:36
apt-get returned a surprising error: dpkg: error: dpkg status database is locked by another process. Retrying…
1:38
Worked on retry.
1:40
05 File managerNice file manager! Looks like the Finder and saves me from having to mess with mount points. But why isn't it in the Dock by default?
1:43
I had to run the Guest Additions installer with sudo. Not too hard to figure out, but I wish the instructions had said so.
1:44
Guest Additions installed.
1:53
Got my shared folder automatically mounting.
2:00
I need to add myself to the vboxsf group so I can read the shared folder. I'd like to do this without the command line, but there's no group manager in the System Settings application.
2:02
Ah, I found the User Accounts pane. I'm just not used to the way scrolling works here yet.
2:03
User Accounts doesn't do anything with group membership. Grrr.
2:05
I could do this from the command line, but it's a good excuse to look for other tools in Software Center. I like the Apple App Store-type interface, and I found an application called KUser that looked promising, but the reviews suggest it isn't worth it.
2:09
sudo usermod -a -G vboxsf marnen
2:11
But I still can't read that directory unless I'm root, even though I'm in the right group and permissions are rwxrwx---. Why not?
2:12
Apparently group membership is read at login. In 2014, why do we still have operating systems that work this way?
2:14
Logging out and in did the trick. Now, can I make a symlink to it in the file manager the way I can in the Finder with Cmd-Opt-drag?
2:23
Gah! Why is Files so poorly documented? And there's no OS help center the way even KDE had years ago?
2:25
Giving up and making the link from the command line.

OK, that's enough for basic OS and VM installation. Elementary looks good, but documentation is a little sketchy. At the same time, this is more usable and more attractive than any Linux I've so far worked with. We'll see how it performs over the next month.

At some point I should boot my Mac from an Elementary live CD to make sure it can see my Wi-Fi device…

marnen: (Default)
2014-03-19 12:13 am
Entry tags:

Can I get rid of proprietary software yet?

I've long since stopped using virtually all commercial software on my computer; there's so much good open-source stuff out there that I don't really feel like I need to spend money for software anymore (if anyone wants a list of what I use, let me know and I'll put one together). What isn't open-source is at least free as in beer (e.g. SublimeText and Chrome). But I still use Mac OS X. Why? Well, because it's very good. It gives me a full BSD Unix environment, with a GUI on top that was designed by people who actually care about making usable GUIs. I've never that much liked any of the Linux GUIs I've tried.

But I don't like some of the changes Apple is making in Mavericks, notably the fact that I understand contacts will only sync from my iPhone if I use iCloud (please correct me if I'm wrong about this). I already use and love Google Drive; I don't need an iCloud account too, do I?

So in looking around to see about current open-source GUIs, I came across Pear OS, which looks like a wonderful Mac-like desktop environment for Linux. Unfortunately, it was taken away recently (how can an open-source project be taken away, anyway?!?), but there's also Elementary OS Luna, which looks great.

In order to test this out, my plan is to install Elementary OS in a guest VM on my Mac. Then I'll see how much I can do without switching out of the VM, and how much I like the user experience. If I like it, I'll probably reformat my Mac hard drive to boot Elementary OS, with Mac OS X in a VM.

I'll try to work with Elementary OS for a month or so at least, and I'll attempt to blog about my experiences here (though I'm notoriously bad at keeping blogs up to date…). Watch this space!

marnen: (Default)
2009-08-07 02:27 am
Entry tags:

Polyamory is wrong

For those who haven't heard yet: polyamory is wrong. See http://community.livejournal.com/polyamory/2835694.html for why (and the shirt...)
marnen: (Default)
2009-08-04 03:06 am
Entry tags:

(no subject)

Once again, God/the universe/whatever has reminded me that you get what you want (or what you think you want) when you're not really looking for it.

Squee.
marnen: (Default)
2009-05-12 04:27 pm
Entry tags:

Ouch, my eyes just exploded

I'm in the process of redesigning my website, and while trolling the Web for good design tips, I found a link to http://www.miauk.com/ as a bad example. Go there. Really. It has to be seen to be believed. Sheesh.
marnen: (Default)
2009-03-26 12:41 pm
Entry tags:

Bow woes

Last night, during morris dance rehearsal, I noticed some hairs starting to get loose on my bow. Examination revealed that the hair was starting to slip out of the tip end. (The violinists among you will know how unusual this is -- normally hairs break rather than slipping out while intact.) I was hoping the bow would last the evening, but the little wooden block that holds the hair in completely popped out as I was playing.

I was starting to wonder why this happened, since I've gone to the same luthier (Deborah Segel in Troy) for all my rehairings since moving to Albany, and she's always done excellent work for me in the past. Then it hit me. While on tour in England with The Flying Romanos last August, I had to get my bow rehaired at a violin shop in London. They seemed to know what they were doing...but I guess they didn't.

So today I am making an unscheduled trip to Deborah's shop, knowing now she can accomplish what a high-end London luthier could not. Who says the Capital District is lacking?

marnen: (Default)
2008-11-21 08:41 pm
Entry tags:

I love CSS!

From a Web application I'm developing:

BeforeAfter
[Before][After]

And most of the changes were just style attributes. Did I mention I love CSS?

EDIT: I neglected to mention that the icons are from the excellent (and free) Silk set, by Mark James. Thanks for making such great icons, Mark!

marnen: (Default)
2008-08-05 05:02 pm
Entry tags:

Rails IDE: jEdit wins?

I just switched in the last couple of days from Eclipse to jEdit for Rails development, following the tips here. I knew jEdit was a nice editor on Linux (about on par with TextWrangler on Mac OS), but never seriously considered putting it on my Mac -- or considering it an IDE -- till I read that article.

As much as I like Eclipse for other languages, I am coming to the conclusion that it's overkill for Ruby, and that the Aptana team has not really followed through on RadRails' early promise. jEdit has Ruby code completion and Haml syntax coloring modules that work now, not whenever the bugs get around to getting fixed. jEdit's UI isn't quite as nice as Eclipse's, but it's a lot less bloated and more responsive.

(And before you ask, I really don't understand all the fuss among Rails developers about TextMate at €39, when TextWrangler is free and seems to be no worse, and jEdit and -- yes -- Eclipse are free and apparently better. Would someone care to enlighten me on why it's worth the €39?)

marnen: (Default)
2008-08-04 12:38 pm
Entry tags:

More recruiter cluelessness

More stupid recruiter tricks today. This one comes from Working with Rails, which has a job board that's generally excellent, but that doesn't mean that it doesn't have its share of silly posts. If you have a Working with Rails account, you can see the post at the link above. If not, here's the whole thing, complete with spelling and markup errors.

RUBY ON RAILS DEVELOPERS

Type: Permanent

Resource Management Solutions (RMS) are, in short an IT recruitment company; specialising in niche technology areas such as SAP, Oracle, CRM, Remedy, BMC.

But we also maintain a focus around specific Industry’s within IT, for instance Telecommunications, New Media and Web Development/Design (Front and Back end) and then we focus in on specific technologies within these areas; such as Ruby on Rails, Flash, Java, C#, XHTML, Web 3.0, PHP, CSS, Drupal and MySql etc..

Our main aim is to be specific and to maintain a niche, by concentrating our focus around these Technologies.
I have chosen to focus my core business around the New Media, Marketing and Web Development space.
As you are obviously aware this is a cutting edge market, with new, exciting and emerging technologies.

I am currently working with a hand-full of Web Development companies who are looking for Ruby on Rails developers on a permanent basis, some are in the City, others outside.

I would like RUBY ON RAILS developers of all levels to contact me, from junior to senior in experience, but recent experience must be Ruby focused. Solid undesrstanding on my SQL and standards based JavaScript & CSS.

I would like to expose your CV to these Companies by placing your CV in an Online portal; a Talent Bank which only the recruitment manager and myself have access to.

As you will be area this market is very tight and this is a way of companies being aware of who is on the market; it saves them having to trawl through numerous job boards and gives you the best shot of having your CV seen by the right people.

The idea is that we have an Online database where we submit CV’s for them to browse and as and when they need anyone they would contact us.

Please email me with an up to date copy of your CV. I will then be in contact with you.

cwinn-morgan AT rmsportal DOT com
01256 885986

My translation: I work for an IT recruiting firm. I barely have any idea of what I'm doing, but I thought it would be cool to focus on new media and Web 3.0 [sic!] because it's full of buzzwords. We're trying to get some Web development companies to actually return our phone calls. We'd like to put your résumé in a private database that no one is ever going to look at, unless lightning strikes and one of those Web shops calls us back and wants to do business with us and pays us a fee for our private job board instead of using their existing Monster account and actually takes the time to browse our database (because we're certainly not going to go out of our way to tell them about any great people we have available) and isn't turned off by my inability to spell or carry a clue in a bucket.

Did I miss anything? Would people like to see a line-by-line exegesis of where I got that interpretation? Am I totally off base here?

marnen: (Default)
2008-06-04 12:34 am
Entry tags:

Yum, bibimbab

I (well, [livejournal.com profile] collwen and I) made bibimbab tonight, partly to use up some of the kimchi that's been sitting unopened in the fridge for several weeks. I used this recipe, slightly tweaked into a vegetarian form; it came out beautifully, and I highly recommend it (I can still smell a nice scent from the kitchen as I write this in the bedroom a few hours later). Some notes:

  • Apparently there's some sort of weird food shortage going on due to weather in the south and west. So neither the supermarket nor the co-op had beansprouts, and I couldn't get the mint that [livejournal.com profile] collwen had asked me to pick up. Rats. On the plus side, however, that meant that a big helping of kimchi took the place of the beansprouts on the rice -- not a bad thing.
  • I found presliced baby bella mushrooms at the supermarket, and used them in place of beef, without modifying the marinade at all (except that we didn't have quite enough scallions). Then I accidentally dumped the marinade into the skillet when stir-frying the mushrooms, rather than taking them out of the marinade. I'm glad I did: the marinade turned into a delicious sauce, surprisingly teriyaki-like. Yum.
  • Bibimbab is traditionally served with a spicy sauce involving kochu chang (spicy soybean paste). I'm sure the Korean grocery has it, but that was out of the way for me, and none of the other stores had it (no real surprise). So I improvised. I picked up some very dark miso (brown rice miso, specifically), and -- not really expecting it to taste quite "right" -- mixed it with sriracha, a little sugar, and enough water to thin it to the proper consistency. Wow! If I hadn't known it wasn't the proper kochu chang sauce, I would not have guessed: it tasted just like the real thing. And given the small amount used, it's surprisingly essential to the overall flavor of the dish. I'm glad I didn't just leave it out.
  • The recipe doesn't say this anywhere, but kim is simply the Korean term for nori. If you're like me, you probably have some in the house.
marnen: (Default)
2008-06-03 03:22 pm
Entry tags:

Pictures taken last night in my Scion

Here are a couple of pictures taken last night (well, OK, early this morning) in my 2006 Scion xB:

[odometer reading 99999]
[odometer reading 100000]

I bought the car new on 12 September 2005. You do the math. :)

marnen: (Default)
2008-03-28 02:26 pm
Entry tags:

A tip for Rails and RSpec

This probably won't be of interest to anyone who isn't a Ruby on Rails developer, but since it seems that the thing to do in the Rails community is share tips in blog posts, I thought I might as well jump on the bandwagon.

content_for is a great method to use in Rails views, but I found it hard to test in RSpec -- I couldn't mock the right object to test for the method call, and I couldn't figure out how to get the content variable out of the response. Then I stumbled on RSpec patch 12701, which was incorporated into RSpec releases some time ago (it's in 1.1.3, certainly, and I don't know how far back it goes). It seems that while response can be tested for the main body of the response, anything defined with content_for is available as if it were a hash element. So if your view looks like:

<% content_for :sidebar do %>
  <p>Here's my sidebar text.</p>
<% end %>

<p>And here's my main content.</p>
then you can write a spec that looks something like
describe "my view" do
  before(:each) do
    render 'myview'
  end

  it "should populate the body content" do
    response.should have_tag("p", /main content/)
  end

  it "should populate the sidebar" do
    response[:sidebar].should have_tag("p", /sidebar/)
  end
end
I just went through an hour or two of pain before stumbling on this, so I thought I'd save everyone else some trouble.

marnen: (Default)
2008-01-24 08:46 pm

Shameless link-whoring

And now for the latest stupid Web trick -- MyMiniCity. Kind of like SimCity, as far as I can tell, but with two key differences:

  • It runs in your Web browser
  • Your population grows depending on the number of people who visit your city on the Web

I've created a city called Ookamizaki (狼崎, Wolf's Point) in the virtual country of Japan. Check it out at http://ookamizaki.myminicity.com and increase my population!

marnen: (Default)
2008-01-23 12:17 am
Entry tags:

Studio Car Crash

Many of you may know about this, but I just found out about the Chicago ABC-TV studio car crash. Go watch the video and laugh yourselves silly.
marnen: (Default)
2008-01-06 09:57 pm
Entry tags:
marnen: (Default)
2007-12-04 08:20 pm

(no subject)

NameLee's Market
Address1170 Central Avenue, Albany, NY
Minimum purchase posted$10
Reported toMasterCard