Wednesday, January 3, 2018

What's your Spanish Level?

Did you know there is an international grading system for judging foreign language proficiency? There is! "CEFR" is the Common European Framework of Reference for Languages


Your CEFR level is mostly used when speaking with potential employers, but can also be used to predict and manage the time required to achieve your own language learning goals.

This article will show you how.

Best Way to Improve Your Vocabulary While Reading

You know reading foreign language books will help your vocabulary, but HOW exactly do you do that, in a fun way?



It is no secret I think the best way to improve your vocabulary in general is flashcards.

But...I will be the first to admit that creating flashcards is tedious.

I believe most people that commit to creating flashcards while reading will either stop creating the flash cards while they read, or just stop reading entirely.

There must be a better way, right? One that's fun, and also efficient? I believe there is, and it requires a little upfront investment but I feel like this trick is well worth the effort.

Best Way to Improve your Spanish Vocabulary

The average 4-year-old knows 5,000 words in their native language. By 8? 10,000 words. Most adults have a vocabulary between 20,000-35,000 words in their native language.



Amazing, huh? You can test your Spanish (or other language) vocabulary size to see where you are.

As an example, when I first took this test my vocabulary size was approximately 3,000 words, which explains why only understood half of what the average 5 year old said :-).

So what to do about this? How can I increase my vocabulary so I can hold a conversation with the average adult?


Friday, December 4, 2015

How to get a local SIM card in Chiang Mai, Thailand, c.2015

Very specific post, but this blog is all very specific tips and tricks anyway, so why not.
You find yourself in Chiang Mai, and even though you have T-Mobile's excellent roaming capabilities via their new Simple Choice plans (heartily recommend!), you want a local number so local folks can contact you more easily.


Tuesday, January 7, 2014

Red Hat Enterprise Linux Server in Amazon Web Services won't boot after yum update


Happy New Year, fellow people trying to make things work.

Hopefully everyone is mostly succeeding despite the fact the war on entropy cannot be won.

Interesting problem this morning, in a quest to live a more portable life I just moved all my services from a home network to Amazon Web Services. Great deal on the Free Tier there, perfect thing to evict all your local services and get them in the cloud.

Problem is, I did the normal thing you'd expect to work after bringing up the Amazon instances - a simple 'yum update'.

yum did it's thing, packages were updated, and things looked just fine. You can't be sure your changes are good until you reboot though, and here's where the trouble started.

After a yum update on the stock RHEL 6 AMI, your AWS instance will fail to boot. You go to grab the system log from the instance and you see this most unhappy nugget at the bottom:

VFS: Cannot open root device "LABEL=_/" or unknown-block(0,0)

That's not a good moment. You're not alone though. An example with links to more info:

https://forums.aws.amazon.com/thread.jspa?messageID=477611&threadID=132185

So, root cause is that Amazon Web Services has to use custom kernels in order to deal with their storage infrastructure. Hey, that's totally understandable - I'm not sure how they'd implement it if not that way, and I'm not paying anything anyway so I am certainly not complaining.

But I'm still not booting, and that's not good.

So here's how you pull your instance back to the land of the living, courtesy of Alex Bell:

http://amazonserver.blogspot.com/2013/01/recover-broken-amazon-ec2-instance.html

The thing you need to change (assuming you followed Alex's instructions to mount the EBS volume) is /mnt/boot/grub/grub.conf - specifically deleting the first kernel stanza and leaving only the entry for the Amazon-specific "ec2-starter" etc kernel there so your instance will boot.

Finally, to stop this from ever happening again what you need to do is fire up ye ol' 'vi /etc/yum.conf' and add an 'exclude=kernel*' as the last line in the block of header lines so the kernel is never updated again automatically.

Anyone else seen this? Any other "hey I'm an AWS n00b" problems I should look for next?

Hope this helps someone.

Cheers!

Thursday, September 19, 2013

How to make your Android home screen useful (iphone -> android transition 4)

Common preamble: I'm looking to break my Apple iDevice addiction so I can get off the expensive hardware treadmill. So I'm transitioning to Android. I have a MacBookPro running 10.8.x as my main device. I'm currently on an iPhone 3GS after I sadly lost a pristine iPhone 5 in the woods, and my wonderful mother donated her used Samsung Galaxy S3 when she upgraded, so here we go.

One thing Apple does well is allow you to unlock the phone and get into the app you need with 2 taps maximum, when configured well. You've got your most used apps on the bottom available on all screens, then you can make folders to collect most-used apps of a similar type on your main screen, and you're just about guaranteed to be 2 taps from getting something done.

Android by default appeared to me to be a big pretty wasteland when I first turned it on. You can't fit too much on any screen and things are spread all over the place. You have to tap a ton to do anything. What gives? Apparently this is another part of the "just works" vs "you can configure everything" iphone vs android philosophy. And I don't mind that, I guess I'm just surprised that the defaults are so awful so much of the time, and this is an area I think the iphone gets right.

So how to fix it so you're back to 1-tap mostly, and 2-tap max for your apps? You need a "Launcher".

I read a bunch of reviews and settled on NovaLauncher. It does exactly what I need and isn't too difficult to configure.

I went hog-wild at first and configured something like 7 virtual screens etc, before I realized I was having to think a lot about where things were, at which point I went the other way and have just two screens now - one that is as efficient and dense as I can make it, and the other for "everything else".

I configured it for a grid of 5x8 icons (I'm on a relatively roomy galaxy S3 remember) along with a dock. I have dragged my most used single apps to the dock (mail, go sms pro, etc) so they are all there, then for the other icon spots I've added any of the apps I use to the launcher, then dragged them into 4-icon groupings by plopping them on to each other. I added a 1-row google search widget at the top so I can find anything quickly in a pinch, then a 2-row weather widget (which is pretty ridiculously inefficient but I like weather), and I still have access to 104 different apps with 2-taps maximum, and I can see all the icons so I don't have to think about it.

Not bad.

I know my app usage patterns change over time so I put apps I'm trying out, or infrequently use, or that are being kicked out in favor of new apps on the other "everything else" screen, and keep the main screen efficient. That's worked for me on the iphone for a few years so I can't see why it wouldn't work here.

You guys have better ways of organizing a screen for maximum getting-things-done-ness and I'm missing the boat on something? Clue me in if so. Cheers!

Android Mail - using email on Android can be awesome (iphone -> android transition 3)

Common preamble: I'm looking to break my Apple iDevice addiction so I can get off the expensive hardware treadmill. So I'm transitioning to Android. I have a MacBookPro running 10.8.x as my main device. I'm currently on an iPhone 3GS after I sadly lost a pristine iPhone 5 in the woods, and my wonderful mother donated her used Samsung Galaxy S3 when she upgraded, so here we go.

As mentioned in passing in the second post in this series I have a lot of email accounts, and over time they've all ended up hosted by google.

You'd think the default Android email app would be great then, or the gmail app would be good on Android, but for a couple reasons I believe they suck. The main reason is that they don't provide a unified inbox for all your accounts on a single screen. I had no idea this was a thing, having gotten used to the built-in iphone mail app, but apparently it is. And the default clients just don't get it. I'm not going to get one new mail in each of 5 clients and spend a lot of time thumbing into and out of the various inboxes - that's my main use case and it's horribly inefficient. Unified inbox is non-negotiable.

Search around the internets and you see lots of reference to K-9, but apparently that app has gone rogue with offshoots from old forks, a new "Kaiten" version, and updates to the K-9 app itself which apparently suck. So I stayed clear, but it may work for you.

The one I finally went with was MailDroid. Configured it up pretty easily (or as easily as it can be when you have all 5 of your google accounts configured for 2-factor authentication and you have to generate application-specific passwords, which you do so your account isn't easily attacked, right?), et voila, pretty configurable control over how each account works (using server folders where desired, how many mails to load etc) and a unified inbox.

MailDroid gets bonus points for allowing me to shrink fonts for real to get more info on the screen, for allowing me to indulge my college-days hacker self with a reverse video theme, and for allowing me to easily set a global signature and global connection settings.

Have you discovered a client better than MailDroid? Any tips or tricks if you are using MailDroid?

Tuesday, September 17, 2013

Android Contacts - importing them from iCloud (iphone -> android transition 2)

Common preamble: I'm looking to break my Apple iDevice addiction so I can get off the expensive hardware treadmill. So I'm transitioning to Android. I have a MacBookPro running 10.8.x as my main device. I'm currently on an iPhone 3GS after I sadly lost a pristine iPhone 5 in the woods, and my wonderful mother donated her used Samsung Galaxy S3 when she upgraded, so here we go.

Once I figured out the most basic thing outlined in the first android transition post, namely how to make it so I plug the phone in and it doesn't suck, then how to transfer files, I'm ready to get my data on there. Let's start with contacts

I'm going to assume you have about 4 different google apps accounts set up, because you're a smooth operator too, so you're fine with google storing your contacts. But right now they're all in icloud, because when you have a mac and an iphone, that's just what you do, right?

What you need to do is figure out a way to get the Contacts app on your mac to have a connection to both your google contacts storage area, and the icloud.

That's not an obvious thing to do, but you can add a "CardDAV" provider to Contacts, pointing at your google account following these instructions here: http://android.appstorm.net/how-to/synchronization/keep-android-and-ios-in-sync-part1-data-email-contacts-and-calendar/

Then by selecting all the cards in your "All iCloud" area and dropping them on to the "All Google" area, you'll force Contacts to essentially freak out, work super hard, but transmit them all to google successfully whereupon they will slowly trickle over on to your android phone in a background sync.

This worked with me with 960 cards (each one of them a dear friend).

Anyone know any better ways, or does this work for ya'll too?

Android File Transfer Fun (iphone -> android transition 1)

Common preamble: I'm looking to break my Apple iDevice addiction so I can get off the expensive hardware treadmill. So I'm transitioning to Android. I have a MacBookPro running 10.8.x as my main device. I'm currently on an iPhone 3GS after I sadly lost a pristine iPhone 5 in the woods, and my wonderful mother donated her used Samsung Galaxy S3 when she upgraded, so here we go.

First issue: Connecting the phone to your computer sucks out of the box.

Android File Transfer is all sorts of bouncing in the doc and annoying. The phone itself is pretty adamant that you need to download some sort of "Kies" syncing program.

For both of these, my take is, don't do it.

Android File Transfer is pretty annoying but useful in a pinch. So you can use it when needed but have it STFU when not needed by following these lovely instructions from Nicole Reid - https://cooltrainer.org/2012/12/21/taming-android-file-transfer-on-mac-os-x/

Kies appears to just all around suck and I should have known that because it was what the manufacturer wants you to use, and those always suck don't they? Uninstalling it is a pain apparently but the internet comes to the rescue again. I used the instructions for the Terminal at the bottom of the page, just like you will, naturally.

AirDroid seems to be a reasonable app going forward (and also satisfies the "Find My iPhone" use case) but what other things do you guys use for Android file transfer / backup to get your files on and off the machine?

And is there anything like CameraSync from iOS-land exist for Android so my priceless data (photos, videos) are backed up reliably by default, but not just too google?

Monday, July 25, 2011

Tomato on a WRT54G limited to 25 or so Mbps with QoS - use a faster router for higher speeds

This is a very specific post, if you couldn't already tell by the title - just a tidbit for anyone else curious and trying to make all the junk surrounding them in the world work for them instead of frustrate them.

If you have an internet connection of 25Mbps or less down, and you are using the wonderful tomato firmware on the works-pretty-good linksys/cisco WRT54G, you've been having a great time, things work wonderfully and they will continue to work wonderfully.

However, if you like me use Comcast high-speed internet and your area gets the infrastructure upgrade from DOCSIS 2 to DOCSIS 3 you'll find that you have 50Mbps of bandwidth available, and you might opt for that plan.

At that point you'll realize that tomato running QoS on a WRT54G can't keep up with more than 25Mbps so you won't get all the speed you want.

Never fear though, the works-pretty-well and slightly-newer WRT310N can handle it, and the almost-as-pretty but just-as-functional DD-WRT firmware does the job nicely if you follow the instructions well.

And just for another random tidbit from my life of trying to make things work today, if for any reason you attempt to use a Thule Rapid rail / aero cross bar with their Prologue bike rack, you'll need four more grade 8 1/4" washers per bike rack to get the bolts secure on the aero bar, but the instructions aren't aware of that and they don't give you the extra washers. Great rack, bad instructions, bad testing, Thule. Shame!

Cheers

Sunday, June 26, 2011

Open links from external applications in a new window in Google Chrome on Mac OS X

I love tabbed browsing. I switched to Firefox way back in the day partially because Firefox allowed tabbed browsing. I recently switched to Google Chrome, which also has tabbed browsing.

I also love virtual desktops. I switched to Linux on the desktop way back in the day partially because it supported virtual desktops. I currently use Mac OS X which has "Spaces", so I continue to have virtual desktops.

However, when you combine the two, you potentially have a problem. If you have a web browser open, but it is not on your current virtual desktop, and you click on a link in a different application (a newsreader, perhaps), do you want that external link to open in a new tab in an existing browser window on a different space, or do you want it to open a new browser window on your current space, and open the link in a new tab on that new window?

Turns out lots of people prefer the second option - they want a new window on their current space with the link opened in it. Now, adults may disagree, and Firefox as well as Safari have a preference setting which allows you to change the behavior to either of those options. Everyone's happy.

Except Google Chrome users. Chrome always opens external links in the most recently used browser window, where ever it is.

This causes some people to be upset, example: http://www.google.com/support/forum/p/Chrome/thread?tid=1eb2eb870ba29e97&hl=en


I was also upset. I am a programmer though, and I can make the computer do what I want normally. So I made it do what I want.

1) Download this AppleScript bundle, and unpack it in ~/Library/Scripts/
2) Double-click it (to register it with Launch Services)
3) Open Safari and go to the General tab in the Preferences, and set your app as the default browser.
4) Share and enjoy

A fair bit of credit for making this work goes to Pepjin de Vos - http://pepijndevos.nl/2010/05/open-external-links-in-running-browser/ - I repurposed his idea/script to implement my workaround here.

Sunday, May 15, 2011

GTD - automating addition of new email info to an existing Toodledo

This will probably be the last post about migrating from Things to toodledo, as I've got all my most frequently-used workflows automated at this point

The last thing I needed to do after migrating all my data and automating task intake from Mail was automating the addition of new information from Mail to an existing Toodledo task.

The specific use case is that I've already got a task tracked in Toodledo and there is email traffic concerning it - some with important information I'd like to easily reference - but the task isn't done yet. How do you make that information easily referenced? The most useful way in my opinion is to save a link to that message along with some metadata about it, in the note of the Toodledo task.

To do that quickly, I wrote a little Applescript that fishes out the date, the sender, and the message id, and puts that information on the clipboard with the message id embedded in a clickable link. Now you just have to go to the task in toodledo and hit the paste key, and you're all set.

As with my new task creation script, I use Mail Act-On to bind execution of this script to a hot-key and simultaneously chuck the message into an archiving folder - keeping me from mousing as much and keeping my inbox clean.

Here's the script - Copy Message Link.scpt - hopefully you find it useful

Cheers!
-Mike

Friday, May 13, 2011

GTD - intake automation with Toodledo and Mail.app

I'm still in the process of converting my task workflows from Things to Toodledo, for reasons mentioned previously

One of the most important things for me is to have an automated workflow for task intake from email people send me to my task management application.

For Mail.app (my email application) I use Mail Act-On so that I can have a keyboard shortcut run an Applescript. For Toodledo I use Applescript to create a new email message to my Toodledo email address for new task creation, and I prepulate the email with the original subject, and an email body that contains information about who the email was from, when it turned up, and then a URL that will open the email in Mail.app if clicked.

I leave the message open so I can edit the Subject line (adding toodledo email syntax about when it is due and what folder to put it in etc) then I send it away and move the message out of my Mail.app inbox into a "to-process" folder where things are archived

The end result is a new toodledo task with a note that contains a link that will open the message. Fabulous.

Here's the script

Friday, May 6, 2011

GTD - migrating from Things to Toodledo - exporting Things data

I'm migrating from Things to Toodledo for task-tracking, in order to satisfy a couple of new (to me) use cases that I can't handle with Things, but that it appears Toodledo will allow me to handle.

I have more than 3500 completed tasks in Things though, and I treasure my ability to search through the completed tasks to turn up info used for new tasks. It isn't acceptable to me to lose that data in the transition, but I don't want to have multiple task apps, so I want to migrate all of my data from Things to Toodledo.

Things supports certain things Toodledo doesn't, so the first thing you have to do is alter your Things data so it's in a style Toodledo can accept, and that may be imported well.

First thing is that Toodledo doesn't really support Projects. It supports "Goals" but to tell you the truth, migrating that data isn't easy, and I didn't attempt it. I simply made my Projects into Areas on Things, and moved the tasks in Things to those Contexts.

Toodledo also doesn't support delegation the same way Things does. In order to migrate your delegates, the best way I could think of to map it was to have a "Delegated" Context, and then take the Things delegate's name and tag the thing with it. That way you can search for specific delegates on Toodledo post-migration, and you'll know something is delegated, at least.

On Toodledo, you'll need to create Folders for each Area from Things, along with the "Logged" and "Delegated" contexts.

The second thing is that Toodledo doesn't allow you to import completed tasks. This is troublesome for me because I want that history. I settled on putting all my completed tasks in a "Logged" context so at least I could get them in Toodledo, then mark them all completed later.

Finally, Things URL format in notes needs massaging in order to generate clickable links on the toodledo site, and I implemented some logic to do so.

That's about it - if you run this Applescript from within Things, once for the "Next", "Someday" and "Logbook" lists, uploading to the toodledo site each time, you'll have all your data in there.

Then you just need to mark the things in the "Logged" Context as completed, and you've finished your migration. I used TaskSurfer to do that since the interface was so fast for completion-marking.

Cheers

GTD - migrating from Things to Toodledo - why?

As mentioned previously, I'm not a strict GTD follower, but I'm not far from it and I am an obsessive task-list-maker. It's the only way I reliably get things done.

I've been using Things from Cultured Code for a long time - long enough to have created and completed 3617 tasks, actually - and it has worked fantastically for me. I love the interface, and it works well.

However, it does not have cloud sync working yet (though I understand it is in beta), and even with cloud sync it doesn't handle delegation or 3rd-party information sharing well. That was never a problem for me before, but I recently has a new use case turn up as a requirement for me and my task list: I needed to provide visibility into my tasks to 3rd parties.

To me, that means that 3rd parties should be able to look at my task list at any time, with no extra effort on my part. Requiring effort on either my part or the 3rd parties part would be too inefficient for something as constantly used and updated as my task list. Further, it should be possible to swap tasks back and forth with people if I want, with a minimum of effort. Things simply can't handle that.

Some features that Things has which I must maintain are full-featured offline functionality, a feature that eliminates most issue-tracking software like JIRA. I must be able to automate task intake from Mail.app to the task list as I had before. Finally, I must be able to access and modify my task list on my phone, in sync with the list on my desktop.

For all these reasons, I've decided to migrate to Toodledo - it appears to satisfy all these requirements, with the possible exception of good Mail.app -> Toodledo integration, but I'm aware of a couple ways to do it already just not quite as good as I like yet. At present it appears I'll use Toodledo's web site for 3rd party access, their iPhone app for phone access, and TaskSurfer for a desktop client. I'll continue to use Mail Act-On for Mail.app integration and I will either use Toodledo's email interface for task queueing from Mail.app, or I'll figure out how to drive TaskSurfer via Applescript.

The next couple posts will detail the scripts I've written in order to implement the migration from Things to Toodledo so that I don't lose my existing data from completed Things tasks as well as Things in progress.

GTD - intake automation with Things and Mail.app

I'm not a strict Getting Things Done / GTD follower, but I do try to keep my inbox from becoming my todo list. It's easy to slide into that habit, but the inbox can't tell you anything about deadlines or priorities, so I really like to have a task management program outside my mail program, where I can line up tasks based on something besides when someone sent me mail.

I use Things from Cultured Code in order to manage my tasks, and I use Mail.app as an email client. I get mail rapidly enough that the simple act of creating a task in Things in response to a mail takes a significant amount of time each day - a great target for automation.

My first goal was simply to have a keyboard shortcut that would pop up a quick entry task creation dialog for Things in response to an email, while in Mail.app. That's easily done, but while we're automating why not make things significantly better? My definition of "better" here is to create the Things task with the email subject used as the task name, then the task notes prepopulated with a hyperlink to the email, made in a way that is stable no matter where the email is saved. Finally, I want the email automatically moved to an archive folder in Mail.app so my inbox is decluttered. The final bit of glue is the Mail.app plugin "Mail Act-On" which lets you create rules triggered by keyboard shortcuts.

I have a Mail Act-On rule set up in response to Ctrl-T that runs the Applescript I use to automate things, then moves the message to a folder.

All pretty easily done, and something I use all the time. So much in fact that I'm sharing it here - use and enjoy: NewThingsToDo2.scpt



Cheers

Saturday, September 11, 2010

Monitoring TimeMachine backups with Nagios

An automated backup strategy is the key to avoiding tears when your hard drive inevitably fails.

With Apple machines, this is typically handled at the desktop level with an external drive and TimeMachine. (Incidentally I'm partial to the OtherWorldComputing on-the-go's myself since they don't need a power adapter...)

The problem with TimeMachine and local backups, in an enterprise context, is that it's hard to tell whether people are actually backing things up or not. What if the TimeMachine drive has failed for some reason? You will keep right on living, without realizing your user (or perhaps you) aren't actually successfully backing things up.

This is exactly the sort of problem that monitoring systems are supposed to solve, and my personal choice for monitoring is still nagios (though I hear good things about OpenNMS). You don't have to use a monitoring system perhaps - you could just have the script send you mail similar to my previous MacPorts check, but I like nagios because it maintains a history of previous events and has a flexible communication infrastructure.

But how to monitor the local TimeMachine backup status of a laptop with a centralized monitoring server like nagios?

The strategy I chose is to have a script on the local machine run daily (via an /etc/periodic/ entry) that scans for successful backups, fishes out the most recent success timestamp, and uses ssh to make an entry on my nagios server in a file. Then the I wrote a quick nagios plugin that inspect a timestamp in a file and measure whether it is acceptably recent or not.

If this is interesting to you - grab both of those little scripts from the link above and enjoy.

If you have a totally different strategy for monitoring local backup status, I'd be curious to hear it - please add a comment.

Cheers

Sunday, August 22, 2010

Script to automatically check for outdated ports on Mac OS X

I use the fabulous MacPorts system to get some of the software I need for my Mac laptop.

I am also interested in keeping this software up to date, for a variety of reasons, but just to know that I'm getting the latest security patches alone has me interested in regular updates.

I hate checking for outdated ports manually over and over again though, aren't computers supposed to do that?

So I wrote a script that will periodically check if I have outdated ports, and if there are any it will send me an email with a list of the outdated ones.

You can fetch the script port-checkupdate from my website - there are some comments in the script, and it's really tiny so it should be easy to work with.

You will likely also want the mailtest self-contained mailer my friend Marek Gilbert knocked together as well - the script expects to use it

Cheers

Sunday, July 18, 2010

Mac OS X laptop and TimeMachine whole disk encryption with successful restore

At some point, if you work with sensitive information, you realize it's time to get serious about protecting the data from theft.

I'll assume you already have firewalls in place, surf the web safely and keep your software up to date. That should help reduce the risk the data is accessed while you are using your computer, but since MacBookPro laptops are portable and valuable, and TimeMachine backup drives are also portable and valuable, there is the real risk that they are physically stolen, putting your sensitive data at risk.

The solution to this is multi-part - first you need to make sure that your machine asks you for a password when it resumes from sleep or wakes up from a screensaver, and that it goes to sleep or to the screensaver quickly when unattended. This makes sure that someone can't just open the lid or move the mouse and get your data.

Now they are going to try to reboot, the second part is to make sure that you don't have auto-login enabled, so they'll have to enter a password to login after rebooting.

You are mostly safe at this point, but did you know that Mac OS X install DVDs have a feature which let you reset the root password on a laptop, if you boot from the DVD? They do. It is quite useful really - I've needed to use it - but it means that the password protection isn't worth much at this level, a thief that wants your data can easily access it.

The last part of the solution handles this problem, by using encryption to make sure your data is inaccessible even if someone has physical access to your machine. The goal is to have your whole disk encrypted, with a pre-boot password required to decrypt it and get the OS running. I use PGP Whole Disk Encryption ("PGP WDE") for this purpose - it is commercial software but doesn't cost too much compared to exposing the sensitive data, and it is easy to use.

Assuming you have installed PGP WDE and have your laptop hard drive encrypted at this point, you are mostly secure, but what about your TimeMachine backups? That little external drive next to your computer still holds all your sensitive data, but it is not encrypted - you have moved the problem around but not solved it completely yet.

The next step then is to use PGP WDE on the TimeMachine drive, so it is encrypted as well. Now your data is fully protected, but you have a new problem - if your laptop dies for some reason and you need to restore from your TimeMachine drive, you can't - the Mac OS X install DVD you would use for the restore can't access the TimeMachine drive to restore from it, because it is encrypted!

Luckily, this is a solved problem. In a nutshell, what you want to do is to re-partition your TimeMachine drive and put an OS X install on it that you can use as a rescue, and you want a copy of the Mac OS X install DVD on that rescue install. Use TimeMachine to backup to a second partition on the TimeMachine drive, and now following these excellent instructions you have a tested and working self-contained encrypted backup of your laptop with all the tools you need to restore your computer if you have problems.

Cheers

Tuesday, September 29, 2009

Graphing JMeter results from the command line

I'm currently knee-deep in some performance testing, and I wanted to have fully automated JMeter runs, with attendant fully-automated graphing of the results.

There's lots of results to graph from the systems, but the JMeter log itself is a great source of data.

Only problem is, the best-looking script didn't seem to want to produce the two most important graphs I wanted to see! (aggregate throughput and aggregate users)

The script is here:

http://wiki.apache.org/jakarta-jmeter/LogAnalysis?action=AttachFile&do=get&target=jmetergraph.pl

From:
http://wiki.apache.org/jakarta-jmeter/LogAnalysis


All it needed was a small patch though, et voila, I've got the aggregate charts.

Maybe this will save others (http://markmail.org/message/yntlaygfepnpine7) the time?



[mhardy@tkdevvm(192.168.146.130) util]$ diff jmetergraph.pl ~/mike/Desktop/jmetergraph.pl
313,314d312
< $glabels{'entire'} = \%entire;
<