Posterous theme by Cory Watilo

PDF Splitting

One of the things that I find myself needing to do every couple years is split and recombine PDF files.  In this case, I'm playing in a Pathfinder game that starts this week.  I own PDFs of the rulebooks, and I wanted to do the following:

  1. Pull out the sections that I was using from across three books (class, race, skills, some spells, etc.)
  2. Reorder and combine these into a single, smaller PDF
  3. Load the combined PDF onto my tablet (allows quicker browsing, eliminates the need to switch between PDFs)

There are lots of ways to split and merge PDFs (according to the internet anyway), but as it turned out the PDFs that I had a "psuedo-DRM" that disallowed page splitting.  Thankfully I finally found a way around all that.

I ended up using The PDF Toolkit (pdftk), which seems like very nice software, except for one thing -- it still respects the OwnerPassword and whatever flag says I can't pull subsets of pages out.  However, I found a submitted patch (that wasn't accepted into my Debian distribution) here: https://bugs.launchpad.net/ubuntu/+source/pdftk/+bug/127389.

The actual patch file is located here: https://launchpadlibrarian.net/8541628/pdftk-1.12_user_pw.patch

And in case it gets moved/removed, here is the change:

 

diff -ur -x '*.o' -x '*.a' -x '*.class' -x tags -x '*.h' -x pdftk pdftk-1.12.orig/java_libs/com/lowagie/text/pdf/PdfReader.java pdftk-1.12/java_libs/com/lowagie/text/pdf/PdfReader.java
--- pdftk-1.12.orig/java_libs/com/lowagie/text/pdf/PdfReader.java        2004-10-23 02:22:44.000000000 +0200
+++ pdftk-1.12/java_libs/com/lowagie/text/pdf/PdfReader.java        2006-03-28 21:15:37.000000000 +0200
@@ -107,7 +107,7 @@
     protected char pdfVersion;
     protected PdfEncryption decrypt;
     protected byte password[] = null; //added by ujihara for decryption
-    protected boolean passwordIsOwner= false; // added by ssteward
+    protected boolean passwordIsOwner= true;
     protected ArrayList strings = new ArrayList();
     protected boolean sharedStreams = true;
     protected boolean consolidateNamedDestinations = false;

 

Thanks gsauthof, whoever you are!  I applied the patch, rebuilt pdftk from source (semi-confusing instructions, make sure you have gcj installed.  Also, it doesn't hurt to install pdftk from aptitude just to get the prereqs, and then uninstall only the pdftk package -- I don't know how to do this, so I uninstalled it, looked at all the other "unused" packages it uninstalled, and then manually installed them back again).

Grab a page or subset of pages

pdftk Pathfinder\ Roleplaying\ Game\ -\ Core\ Rulebook.pdf cat 25 output Half-Elves.pdf

pdftk Pathfinder\ Roleplaying\ Game\ -\ Advanced\ Players\ Guide.pdf cat 55-65 output summoner.pdf

Recombine the pages into a pdf

pdftk summoner.pdf Half-Elves.pdf cat output My-Summoner.pdf

You can actually do these in a single step with some fancy pdftk options, but this was more straightforward to me (and you can double check the extraction, since the page numbers are not necessarily clear in PDFs).

Victory!

Chrome Thoughts over Christmas

A couple of things that I noticed as I used the notebook over my Christmas vacation. I've gotten a lot more used to the keyboard, and (except for no home/end) I like it a lot. It feels good to type on. The trackpad is still annoying, but again, much less so. I've gotten better at scrolling with it, although I still have a lot of trouble. No scrolling through an article as you're reading it, it's either down arrow or spacebar. But on the plus side I've learned some new keyboard shortcuts for Google Reader :)

The battery life is very impressive. I'd estimate it at 7-8 hours -- I ran from Tuesday through Sunday with normal usage without having to plug it in. It's very convenient to leave lying around on a coffee table for whenever you need to use it, and with customized cloud-based storage for all your settings, having multiple users isn't an issue at all. Sarah has used it for blog reading, although I think she hates the trackpad even more than I do.

We had free WiFi on the flight home, and I took advantage of it this time (although only to send a "I'm on a plane" message :P). It seemed pretty decent. Fast downloads, although maybe higher latency. Hard to tell for web browsing. I didn't try it, but it would have been interesting to see a streaming video through Hulu or something.

Still haven't gotten the included 3G to work. My Verizon activation hiccuped halfway through and now I think I need to get on the phone with them and straighten it out... I've seen reports of similar things in the forums, but it doesn't sound too hard to get fixed.

Missed Opportunity

So evidently our flight had free wireless?! On the way home I'll have the chromebook out of my bag and ready to give it a try. Not a lot more news, this thing is exceptionally convenient for browsing and email. Light and easy to pull out, quick startup and into the action, crazy battery life (I'm in hour 3 since charging, and we're at 70%. It's got an estimate, but it isn't updating right currently. I'll try to do another post about it tomorrow). It's definitely a nice go-to machine, but there's no way it'll fully replace my other laptop -- besides the gaming, there's just not enough power. I've seen a little bit of slowdown when trying to do a bunch of things at once (8+ tabs all opening and loading at the same time). But tab-handling is a complaint I have about Chrome in general -- the same thing happens to me on a real computer, although it might be at 20+ tabs instead. I wonder what sort of processor is in here, I should look at the specs sometime.

Chrome Notebook Capabilities

Short post tonight because I've haven't had a lot of time to play with it today. Important website support test:

  • Netflix: Not supported. It's in as an issue though, and Google says they're working on it. I wasn't expecting this to work since I think Netflix uses Silverlight for playback.
  • Hulu: Works. It looked a little choppy, but I don't know if that was network or cpu, I'll have to do some more testing to be sure.
  • Minecraft: No dice. It looks like there's no Java support at all (got a missing plugin error).

A Very Google Christmas

So it's Christmastime, and we've been getting a fair number of packages at the house. Usually I know (or suspect) what's in them -- even if I didn't order them, my family does most of our gift shopping via Amazon Wishlists, so I have a good idea of what's coming in. But I got a box in the mail that I wasn't expecting at all (no Amazon packaging), so I opened it up. And found this:

Media_httpfarm6static_hdjjg

This box looked amazing! And still, I had no idea what it could be. No details or labels on the outside of the box, except one that said it had a Lithium Ion battery inside. Nothing that I had ordered or added to my wishlist used batteries... but I couldn't open it until we did out gift-giving. We're going to be out of town for Christmas, so we opened the gifts that had come to the house tonight -- and it wasn't anything I could have anticipated.

Media_httpfarm6static_echwc

It's a Cr48! A week or two ago I ran across a link to the Chrome Notebook pilot program. I can't even remember where I saw it but I said "why not?" and applied. I never thought that I would actually get in! Plus, they never sent me any notice that I'd been accepted, or an email that they'd shipped me something, or any kind of warning whatsoever. So I'm writing this on a tiny little Chrome OS-powered notebook.

Media_httpfarm6static_czezl

First thoughts: very little documentation. This isn't a bad thing really, but I was hoping for a letter that said "Yes, you've been accepted to the pilot program. No, this isn't a cruel mistake." The documentation that was included is great though: simple, to the point, and humourous.

  1. Grab the included battery, insert it, and plug in to start the flow of electrons.
  2. Press the power button. Delicately.

Second thought: This thing is light. I'm terrible at estimating, but I want to say on the order of 3 pounds (w/battery). Maybe I'll weigh it tomorrow at work.

So far I've used it for: Pandora, Gmail, paying bills, Google Reader, and writing this blog post. All of the web stuff is done through the Chrome browser, so if you're used to that you know 90% of how things work. I poked around in the Chrome Web Store a little, but I haven't tried any "apps" that weren't just links to the corresponding website (like gmail and pandora are). Everything works great, except there were a couple of rendering issues with Pandora when it was starting up. It seems like an excellent interface for dealing with the web.

The Chrome sync stuff they added a bit ago works great here -- all my bookmarks, settings and extensions were automatically populated. And they're pushing it to the next logical step, basically the entire OS runs out of your Google account. In theory if your notebook is destroyed, you can just log into a new one with your account and pick up where you left off. If I knew anyone else with one I'd be interested to see that in action. It also makes me wonder if/how it works offline. But included with the notebook is a Verizon 3G 100MB/month plan. I'd assume this is just part of the Pilot, but they have options built in to purchase additional data or different plans, so something like it will be part of the final product.

What I don't like:

  • The trackpad. Historically I've hated trackpads, and this one is only slightly better. There must be something about the way I type where I'm constantly hitting the pad with my palms -- I'll be typing along (like this post), and suddenly the cursor will be a half dozen lines up, typing into the middle of a word. Clicking with the trackpad is very natural, and they have right click support that isn't intuitive but would be simple to re-train my brain for. The scrolling is a little wonky -- it's two-finger scroll, which I had trouble with on the few mac's I've used, and it seems like there needs to be a decent sized gap between your fingers for it to register. Maybe it's time for me to move into the future though (I loved my old Thinkpad nubbin (inappropriate link)). It's a little awkward, but the best way I've found to scroll is to put my lef index finger on the pad, and then drag up and down with my right index finger.
  • The keyboard is okay, but just different enough to confuse my fingers. I think it's the extra spacing between the keys or something, but my right hand regularly lands offset horizontally by one (; instead of ', , instead of ., that kind of thing). I also find myself missing home/end and delete a fair bit. The caps lock key has been replaced by a open-new-tab-and-google-search button, which is pretty awesome. No one likes caps lock anyway. The function keys have all been replaced by special purpose keys, most web-related (back, forward, reload, full screen, next window), and the normal laptop keys you'd expect (brightness, volume).
    Media_httpfarm6static_vdtbj

Even after griping a bit about the keyboard, I was easily able to write this entire post. The track pad is probably better than most laptop's, but I just really dislike them in general. The keyboard is responsive and comfortable to use, and I think I'll be fine with it after I learn the new spacing.

I'm taking it with me on vacation and I'll use it as my primary computer (except for gaming :P) and try to keep a "regular" blogging schedule about it.

Oh yeah, hardware. It's... a computer. Integrated webcam, VGA, USB, and headphone ports. Looks like a SD-type card slot. The link up at the top about the model probably has more information :P.

Intelligence Test

I like finding those intelligence tests they have available online, and this is probably the most challenging one I've done. The results were too complicated to put this in a simple Google Reader share. All-in-all I don't think I did that well, maybe that Mensa top 2% is way off :P. Except for Visuospatial Processing, I rock at that.

Article is here, and the test is here. I'll show my score for each section, the mean, and then what percentage of the population did that well.


1/12 -- Visuospatial Working Memory Strategy
10.0/7.5 (Top 5.6%). This was remembering what number was in the boxes, and clicking them in order.
2/12 -- Verbal Reasoning
17.0/14.0 (Top 31.6%). True or False statements about circles and squares.
3/12 -- Focused Attention
47.0/25.0 (Top 8.0%). Stroop Effect: recognizing the word vs. the ink color.
4/12 -- Deductive Reasoning
11.0/9.9 (Top 40.2%). Find odd-one-out based on abstract rules.
5/12 -- Working Memory
7.0/5.7 (Top 16.9%). Remember the order that squares light up (Simon-style)
6/12 -- Mental Rotation
120.0/85.0 (Top 20.0%). Recognize patterns rotated.
7/12 -- Visual Attention
142.0/122.0 (Top 29.2%). Compare complex displays for matching/mismatching.
8/12 -- Verbal Working Memory
10.0/6.9 (Top 5.7%). Remember a sequence of numbers
9/12 -- Planning
31.0/22.0 (Top 23.7%). Re-order the balls on sticks (similar to Towers of Hanoi)
10/12 -- Paired Associates
5.0/5.0 (Top 50%). Remember what pictures were in which boxes (man I was terrible at this!)
11/12 -- Visuospatial Processing
108.0/47.0 (Top 1.2%). Compare a shape to a set of overlapping shapes.
12/12 -- Spatial Working Memory
9.0/6.7 (Top 22.8%). Find the yellow circles hidden in boxes.

The Nature of Role Playing Games

There's a great quote down at the bottom of today's Penny Arcade post:

D&D in my opinion is not a game about rules, it’s a game about decisions.

This is something I'm coming to realize more and more, especially at this year's GenCon. The games that I enjoyed most (Call of Cthulhu, Unknown Armies, Spirit of the Century) have been very different from those that were less interesting or seemed to drag (Shadowrun, Alpha Omega, to a lesser extent CthulhuTech. Godlike is a bit of an outlier, a game that was fairly crunchy, but still was a ton of fun. I attribute it to the GM's (Allan Goodall I think) detailed knowledge of the era and his ability to combine interesting, actual events with a gritty super-hero theme.) I do love RPG systems, and seeing how the various mechanics facilitate or hinder different aspects of the game (combat, social interaction, skills, etc.), but there's something to be said for boiling it down to the simplest aspects possible.

As far as I can tell, looking through some of the books I've purchased, the former games were run with a much lighter set of rules than is actually published. The core ideas of each system were pulled out, usually into one or two mechanics, and the rest of the focus was on playing your character, interaction with the other PCs, and story building. This (and last year's GenCon) is a much different gaming experience than I was used to, and it's amazing when it works out. I think GenCon attendees are not the usual gamers -- simply by being there they've show more commitment, and maybe a little less sanity :P -- so I don't know how well it would translate to any specific group, but if you have a group of people who are willing to buy in to the story and the characters, and aren't necessarily in love with detailed rules and positioning and movement, it's a big reward.

Anyway, going back to the Penny Arcade quote, the focus should always be the characters and their decisions, not the systems that should really only be in the background to help you.