Mea Culpa: GitHub works well, my mistake made them look bad

Posted on jan 31

On Saturday, I mistakenly thought that GitHub had lost one of my commits. I was working with another developer across the country, and he had checked out some code I had pushed, but when I pulled the repo, I wasn't getting my previous changes.

What had happened is that the other developer, being as inexperienced with Git as I am, had gotten frustrated trying to get Git to accept his changes, and he had used a -f flag on one of his pushes to get Git to accept a checkin. This overrode my changes, and GitHub had nothing to do with it.

What makes me really sorry is I added insult to injury when I submitted the GitHub support thread to Hacker News, and it was the top story for a while, meaning that GitHub got a bunch of negative attention. I hope this blog post makes the front page too, so people know I was the idiot, not the good people over at GitHub, who patiently helped me trace my issue in the middle of the weekend.

I should have done more investigation on this instead of jumping to conclusions. When I visited GitHub to poke around, I noticed a "Something is Wrong" message on the repository, and I Googled the message, which led me to this support page that had popped up on GitHub. This seemed to confirm my suspicions that something was amiss with GitHub, as other people were reporting the same error message and issues with their repos. But if I had taken a closer look at the stream of commits, I would have noticed my commit had been overridden by friendly fire.

So, I just wanted to blog, to apologize, and say it was my fault for misreporting a bug. The GitHub guys helped me figure out what went wrong, and sure enough I was able to confirm it with the other developer I was working with. The "Something is Wrong" message that was showing on repositories turned out to be just a display error of some kind, which the GitHub developers immediately fixed in the middle of the weekend.

If anyone ever tells you GitHub isn't a great service, don't believe them. Everything about GitHub is top-notch, from the software to the people involved.

Categories: github

First Magic: The Gathering Tournament in a While

Posted on dec 14

I drafted for the first time in many years today. Went 2-1 and chose 4 packs of M11 for my prize, which I immediately cracked of course. I drafted green/blue in the new artifact set. Full decklist is as follows. Did I play a bunch of bad cards?

  • 9 island
  • 9 forest
  • 1 Lifesmith
  • 4 Carapace Forger (yay bears!)
  • 2 Neurok Invisimancer
  • 1 Sylvok Replica
  • 1 Cystbearer (should have cut this guy)
  • 1 Lumengrid Drake
  • 1 Tangle Angler
  • 1 Darkslick Drake
  • 2 Sky-Eel School
  • 1 Precursor Golem (really, really good with those Carapace Forgers)
  • Untamed Might
  • Disperse
  • Ratchet Bomb (this worked OK, wasn't amazing in this case)
  • Halt Order (never cast it, but some guy did it to me)
  • Bonds of Quicksilver (definitely needed this, but it was mediocre)
  • Volition Reins (stole lifelink/double strike enchantment, attacked for 30, and then he sideboarded out the enchantment!)

Also had:

  • Turn Aside (should have played this instead of Cystbearer)
  • Scrapdiver Serpent (brought him in vs r/w artifact)
  • Tel-Jihad Fallen (probably good if I have lots of infect?)
  • Neurok Replica
  • Wing Puncture
  • Thrummingbird
  • Flight Spellbomb
  • Copperhorn Scout

I had a really good time playing, though I found the set a bit slow. When the format is just the first set of a block, I think I like it when it's more on the side of broken.This is one of those sets where everyone puts out some mediocre creature, and then they wait to topdeck the broken stuff. I prefer the hack and slash of formats like Tempest-only or Invasion-only, where the games are brutal and the decks are interesting. Then, when the other two sets come out, it gets a little more balanced (but still pretty high-powered in the case of Tempest and Invasion block of course. Maybe I just need to play more though.

With my Ratchet Bomb and Copperline Gorge (I traded my new Royal Assassin, an 8/8 that won't let you die, and a foil for the land), I am on my way to building two T2 decks for mine and Dan's triumphant return. I have some catching up to do though... I think I missed like 40 sets since last time I played :)

Categories: magic, draft

Seattle Accountants Guide

Posted on feb 20
A friend of mine launched a site to help people find Seattle accountants. I know of a few of my friends live in that area, so maybe you will find this site to be useful come tax season, if you're not a Turbo-Taxer like me.
Categories: new website

Color Wheel - Extending the Flashlight Experiment

Posted on nov 05

If you read my blog post from yesterday, then you are familiar with my iPhone App Store experiment. I built a simple application (a Flashlight), and now I'm trying to improve sales by listening to users and evolving the app - nothing more, nothing less. It's a flashlight today, but tomorrow it could be anything.

During launch yesterday, A Flashlight! sold 13 copies, probably about half to friends and family who I coerced into buying it. While I haven't gotten any feedback from real users yet, I did get some ideas from the Hacker News discussion that ensued. A thread full of people commented that the app could be construed more as a rave toy than a flashlight, with its ability to flash any color at any speed, and they suggested I work on syncopating the flashing colors with sounds and other people using the app. So, if I don't get any more feedback on the matter, I guess that's what I will probably do.

Beyond the pure experiment of responding to users requests, after I spent a day on Flashlight, I also got interested in applications around images and color and how I could use the Color Wheel UI element I cooked up. So, I decided to create a separate application called ColorWheel! As it says in the app description on iTunes, ColorWheel lets you select colors and then it provides you with RGB and hex values. It also lets you grab colors from photos, type in hex/RGB, email colors, and adjust the opacity of the colors.

Here's a screenshot of the two apps side by side - as you can see, they are very similar.

So, now this experiment has two forks. On the Flashlight side, we'll see how response to user requests drives the development of the app and how that affects sales. On the ColorWheel side, we'll see if my random idea for evolving the Flashlight speeds things up and leads me to a market faster. For both A Flashlight! and ColorWheel!, I plan to just respond to user requests, but I think ColorWheel is a much more targeted app (for designers, programmers, etc.), so I wonder what the difference in their evolutions will be.

As the final step in this experiment, I'm also pushing an app that starts out just as a feedback box. It's ready to ship to the App Store now, but I'm just wondering what to call it. Blank Slate? Or maybe just TBD if I can get away with that.

Categories: ColorWheel, Flashlight

My Agile Experiment - A Flashlight on the iPhone

Posted on nov 04

A couple weeks ago, I spent eight hours in XCode, Photoshop, and iTunes Connect, and I submitted A Flashlight! to the iPhone App Store. As it stands, the app is very simple, yet it is also unique among flashlights. You can use a Color Wheel to select a color, and a slider to select strobe frequency. It also remembers your settings between uses. You can view it on iTunes here.

A Flashlight! is intended as an experiment in agile, user-oriented development. I just want to see if a) I can sell any flashlights and b) if I can improve sales by doing whatever users say to do. Today, this app is a flashlight, but I intend to do whatever users request and let this app morph into whatever it becomes. Maybe it will become some weird chimera, or maybe it will become a really tricked out flashlight, or maybe it will turn into an RPG or something.

I chose to start with a flashlight app because they are simple to build and seem to have a natural market on the iPhone - there are 100s of flashlight apps, and even one in the top 20 in the Utilities category. So, these factors make it easy for me to get my app out quick, and hopefully ensure some feedback from users on what I should build.

Either way, it will be fun to see where the natural current of the App Store takes A Flashlight!, and I'll write a few blog posts about it.

Categories: A Flashlight!, iPhone, agile

In Search of a Good Idea

Posted on oct 14

I'm a long-time reader and contributor to Hacker News - not the most prolific, but I lurk a lot. When I first moved to San Francisco about 3 years ago, my friends introduced me to Hacker News, Reddit, Seth Godin, and a lot of other influences that eventually drove me to leave my job and found a company.

Hacker News has been a tremendous resource for me. First, it was a source for inspiration, ideas, and philosophy. Later on, when we started building something, Hacker News became a sounding board for ideas, a way to get a critical review of products. And then even later, Hacker News helped us launch and market new software.

Hopefully I'm not being greedy, but now I want something else. I want business advice, and maybe even a CEO. After dreaming and scheming for 18 months, and working full time on this company for 10, my two co-founders and I have finally gotten to what we all know as "ramen-profitable." In the next of paragraphs I'm going to lay out the history and stance of our business, TrailBehind, in hopes that someone out there has good ideas on what we should do next. If you have advice to impart, please read on, and give us some commentary on HN. If you have really good ideas, don't need much money, and are interested in leading our company's business strategy, please contact me at andrew@gaiagps.com.

TrailBehind, Inc. - History

My girlfriend and I first dreamt up TrailBehind hiking through the woods about two years ago. I don't know if computing or hiking is our favorite thing, but it's close either way. We started the company intent on making a great hiking website - we weren't quite sure what that meant, but we knew it was tough to find good information on the web, and we didn't really like any of the community sites out there either.

The result of this was www.trailbehind.com - a mixture of a hiking search engine and social site to help people "find great places to hike." TrailBehind.com is a moderate success - it gets about 300-400 visits a day and helps us market our new products, but we haven't worked on it in months. It was enough to win us a $25,000 fbFund grant and secure about $35,000 in other angel funding to get us started, but the internet is a tough market, especially for a niche media product with nothing to sell. So, eventually we turned to the iPhone platform in search of revenues.

Our first iPhone product, TrailBehind, launched last May and earned us a few thousand dollars. TrailBehind basically took TrailBehind.com and brought it to the iPhone, selling for .99 a piece. It was built by our first hire (Feb '09), and a person I consider to be one of TrailBehind's co-founders even if he came to the party a few months in - my friend from college Tim Bowen.

Finally making some money was a great morale boost for us, but it still wasn't enough to keep the lights on. With that in mind, we took another look at the Navigation market on the iPhone and concluded that we needed to address a broader market - not just hikers and climbers and bikers, not just people who spend a lot of time in the woods. We needed a product that people in the city would use - people who run, people who drive, and people just walking around. And so, Gaia GPS was born.

With Gaia GPS, we wanted to build on the unique search capabilities and map overlay capabilities from TrailBehind.com, and incorporate features we knew there were a broad demand for - specifically GPS recording, offline mapping, and related functionality. And that's where we are today. Gaia GPS launched almost a month ago, and it's now one of the top 20 apps in Navigation. We now have loads of feedback from users, we are pushing steady releases, and sales and our ranking are climbing. Besides Gaia GPS, we also have our original TrailBehind app, and also Gaia Maps and Gaia Places - which are individual features of Gaia GPS as standalone, less expensive apps.

Today and Tomorrow

Besides just pushing releases and trying to generate some press, we are anticipating more incremental growth in our sales. We now have (in review by Apple) an international version of the app, which is quite a large percentage of the market for GPS apps. We also have in review the "Lite" version of Gaia GPS, which seems to be a proven strategy for selling more apps. So, as far as survival goes, I think we're there. We still have about $15k from our investors in the bank, and we're cash flow positive, so that number is now slowly growing. The three of us live a very affordable life, sharing a cabin in Truckee, grocery bills, and keeping expenses to a minimum.

What I am sort of at a loss for now is how to make an order of magnitude improvement in the business. We intend to keep working on Gaia GPS and climbing in the Navigation category, but this app alone will never be worth more than a couple million a year, and it won't be worth more than a couple hundred thousand next year. I yearn for more.

Pretty quick here, we need to figure out what else we can do. We've been working a lot recently - once you launch a product, there is a lot more to do than just code, between talking with users, marketing, keeping your books, and all the day-to-day administrative trivia of owning a business. But, soon we'll add a few more features to Gaia GPS, iron out bugs users report, and get that product down into a steady release cycle that doesn't tax our resources completely.

I've been thinking a lot about what that next project should be. The major candidates are as follows:

  • Gaia Quest - Develop a game built on top of Gaia GPS, based on exploration and map-making. I have drawn up a rough sketch of what this game would look like.

  • Military Applications - Build a military oriented version of Gaia GPS. Seek grant funds to from DARPA and similar. I have started to discuss this with a DoD contractor and a VC contact from one of my board members, and this seems like a real possibility, but a big divergence for us.

  • Work on Search - Use the runway provided by our iPhone revenues to re-focus on our efforts to build a geographic search engine. This capability is perhaps the most unique thing about all of our products - aggregation and presentation of geo-data. However, it was sidelined because we needed to make money, and we had no clear route to monetize this.

  • Other Mobile platforms - Build Gaia GPS for new platforms, such as Palm, Android, or Blackberry. Seek marketing incentives from these platforms to migrate the software, otherwise this is probably not a reasonable path for us right now.

So, I guess I'm just unsure what to do. As is the common Silicon Valley attitude, I have come to believe that ideas are mostly worthless, and execution is king. But while we have managed to execute a few products and make a few dollars, I'm grasping for a good idea. I wonder what to do next. I wonder how much to focus on incremental progress for Gaia GPS. I wonder if we should be aiming to go from making $70,000/year to $200,000/year. Do I shoot for a goal I know I can reach, or is it time to double down and shoot for the stars? Maybe you have a better idea than me.

Please Help

If you go on Hacker News and you are a business guy with a great idea but no software development expertise, you will get asked poignant questions and probably laughed out of the forum if you come looking for hackers to help you execute. Hackers believe that that it all boils down to the software. This is only partially true. All of you idea men quietly lurking in the shadows of HN, this blog post is for you.

Today, my company has plenty of hackers. We all program, led by Anna, who is a truly gifted (and pedigreed) hacker. But we lack vision I think. Today, I need advice, strategy, and ideas. I have discussed this heavily with my board and co-founders, but I'm still not sure what to do.

Before I came to the Valley, I thought of myself as an idea-man, but today I think I know myself a bit better. I'm pretty good at accomplishing a goal, but I'm not so sure I'm great at deciding what goal to focus on. I have a business degree, but I'm not sure I have the requisite flare for marketing. Give me a feature to build, a bug to fix, or even a reporter to call and land a story, I can do that. But if you ask me what's the next thing TrailBehind should be working on, I fear my ideas aren't correct. Maybe once I started to lose respect for the strength of the "idea," I lost the ability to have good ones. Recently, I'm thinking that what I need and have undervalued is a good idea.

So, I guess that's the end of my rambling. I'm hoping that someone out there can set us on the right track. If you want to know more, if I left out some important details, please ask away on the HN comment thread, and I'll try and fill in the blanks. If you have ideas or commentary on the state or direction of our business, please post those.

Also, if you think you might be able to steer this ship to grander adventures, drop me an email at andrew@gaiagps.com. There's a lot of stock to go around, but not much money. Maybe you can change that.

Categories: trailbehind, gaia gps, business advice

Gaia GPS: Great MyTopo Maps

Posted on sep 30

One of the best features of the iPhone app I have been working on is the MyTopo maps we include. Gaia GPS is the only app to provide these iPhone topo maps, and they are beyond compare.

You can get lower resolution topo maps via other apps, and even the high-res USGS maps from the Topo Maps application, but none of these maps have the same detail that MyTopo provides.

Gaia is also cool because it lets you do iPhone offline maps, for when you don't have an internet connection.

Categories: Gaia GPS

Fixing the App Store with Measure of Credibility

Posted on sep 27

iPhone apps live and die by the reviews they get, and it's an extremely competitive market, filled with people lusting after stacks of cash.

To be an iPhone programmer these days, you better have some friends, or some "marketing" dollars. If you don't, you might succeed, but you are going to be at a marked advantage to both the teams that know lots of people with iPhones, and the companies with dollars to hire PR firms to juice their rankings.

Having PR firms, friends, and family boost your ratings is absolutely pervasive in the App Store, and not just in the high-value games category. However, I think there's actually a pretty easy way to fix a lot of this, or at least make it harder to cheat.

If you are a savvy iPhone App buyer, then before you trust a review, you know to click on the reviewer's name and see what else they have reviewed. You know that you have to be particularly mistrustful of five-star reviews, and that if you click a name and that's the only review the person ever left, it's probably not sincere.

So, if Apple has any interest in getting trustworthy information to App buyers, then they could simply list the number of reviews a person has submitted next to their name. Instead of a review "by andrewljohnson" they ought to have the reviews show "by andrewljohnson (2)."

Some might argue that Apple already helps establish credibility by letting users rate whether they found a review to be useful, but this system only contributes to the problem. As it turns out, if you have 30 people willing to write reviews for you, you also have 30 people willing to downvote the bad reviews, and upvote the cooked reviews, so this system ends up reinforcing the fraud.

I do believe in the end that the good apps end up on top - most fraud strategies end up being unsustainable. However, they do lead to some dollars ending up in the bad guys' pockets, drained from the bank accounts of the less capitalized companies, where a few dollars matter the most. Most importantly though, a lot of consumers get duped into buying crappy products, even if the rankings come out right in the end.

So Apple, how about some parentheses and a number?

Categories: iphone

PSA for Mac Users: Download Quicksilver

Posted on sep 24

Do you like opening applications really fast, with as few keystrokes as possible? How about smart-autocompletion, the ability to toggle between apps with the same keystrokes as you use to open them? Zero use of the mouse?

Well, it's time for you to stop doing whatever it is that you do, and download Quicksilver. Let me just say that I have nothing to do with the company that makes Quicksilver - absolutely nothing. It's just a great piece of software.

In my set-up, Quicksilver is scheduled to start on start-up, and that's all I use to open applications. My hotkey to bring up QuickSilver is ctrl-space (similar to apple-space to open Spotlight). So, to open iTunes, all I type is ctrl-space, and then the letter I, and then enter. Since iTunes is my most used application starting with the letter I, it doesn't need much typing at all. Similarly, Aquamacs and Firefox are also just one letter away from being opened.

Quicksilver is great too because you can use it to show files and programs that are already opened. Gone are the days of expose, the dock, and tabbing through your apps. If you want to bring up iTunes again, just Quicksilver is the same way you did to open it. This is not just programs either. You can use Quicksilver to open documents and movies of course, triggering their default applications.

I suppose some people really love to use the mouse and expose, but for me, there's no question that the best way to open anything on the Mac is Quicksilver.

Categories: quicksilver, productivity

Gaia GPS

Posted on sep 24
If you read this blog, then you probably already know about Gaia GPS. But, just in case you don't, here's a link. I think it's the best GPS iPhone app :)
Categories: iPhone, GPS

Customizing UINavigationControlBar - Controls and Images

Posted on aug 08

I've been working on an iPhone app recently, and I decided I wanted to be able to add custom controls (and imagery) to the standard UINavigationController Navigation Bar.... you know, that blue bar up top.

For example, on a couple of screens, the app has a Search Field and a Button, and on another screen, there are some Radio Buttons to switch between tables.

Since you aren't really supposed to subclass or muck around with UINavigationController, I put together this simple class which acts like a UINavigationController, and lets you add custom imagery and controls.

I can't be the first person to want something like this. I'm sure someone will come looking for this via Google someday. Hopefully it will work as intended :)

Here's the repository on GitHub.

Categories: Programming, iPhone, Cocoa

Hack Your Microwave with Your Mind

Posted on jul 04

I often find myself standing in front of the microwave, deciding how long to cook something. Today was no exception, as I peered at the admittedly filthy contraption thinking about how long to heat some black beans. Ever since I read that people are good at second-guessing themselves, that's what I do.

First, I pick a reasonable time. Then I re-estimate the time. Then when it's time to type in the numbers of 10 seconds, I modify my guess. And when it's time to guess the one's digit, I do that too.

So, today I decide I needed to cook the beans for about a minute, then I re-guess it should be 1 minute 40 seconds. So, I typed in the one, then I re-guessed the 10s digit and the ones digit and ended up cooking them for 1:27.

The beans came out just right, and I really didn't spend much time on my estimate. I've found that if I make a series of quick estimations like this based on subconscious analysis, the food comes out just right.

So, either second-guessing yourself is good, or I'm just a bit OCD.

Categories: life hacking

Adding a Third Monitor with DisplayLink USB to DVI

Posted on jun 18

My genius girlfriend and co-founder Anna figured out how I could run another monitor off of my Macbook.

Typically, a Macbook Pro can support two 24" monitors through a splitter, or one 30" monitor because 30s use dual DVI. However, you can also buy a USB to DVI converter from DisplayLink, and run a 30", a 20-24", and the laptop screen itself concurrently. Here's a picture of my setup:

In this rig, the 20" monitor actually runs on the CPU, not the GPU on the graphics card. When I am resizing windows on the 20" screen, it can react a bit sluggishly, but it works perfectly for my purposes since I just keep non-programming browser windows over there.

Categories: programming, monitor size

Plain English Terms of Service

Posted on may 31

Terms of Use

You must agree to all that is written on this page to use any of the data and services provided on www.trailbehind.com ("TrailBehind.com"). The company that owns this website ("TrailBehind, Inc.") may change these terms at any time, for any reason. These terms were first written on May 29, 2009. They were last changed on May 29, 2009. A complete change log is included at the bottom of the page.

These terms are written in a plain English style, so you can understand them. If you think these terms are unclear or ambiguous, please email your concern to legal@trailbehind.com.

A) DISCLAIMER - YOU CAN'T RELY ON TRAILBEHIND

  1. TRAILBEHIND.COM DATA IS INACCURATE - All of the map data on TrailBehind.com should be considered inaccurate. It should not be relied upon for navigational purposes under any circumstances. The data is gathered from a variety of sources, and subjected to unproven algorithms to combine into waypoints and trails, and it cannot be relied upon. If you are going to make any sort of trip outside, you should acquire accurate maps, a compass, and other directional aids as needed. This website is created by computer programmers who have very little background in geography or navigation.
  2. TRAILBEHIND.COM REPORTS ARE INACCURATE - All reports contained on TrailBehind or linked on TrailBehind should be considered inaccurate. TrailBehind aggregates reports from many websites and data sources, and any text you use to plan a trip should not be considered authoritative. You should be very careful to gather information from many sources before planning any sort of trip like the ones described on TrailBehind.
  3. TRAILBEHIND.COM IS UNRELIABLE - TrailBehind.com will likely break if you use it. The more you use TrailBehind.com, the more it will break. There is absolutely no warranty of any kind provided. The site may go down for long periods of time, and may disappear one night, never to reappear. Your data may get lost, and if you build software using Trailbehind.com, it may stop working one day.
  4. TRAILBEHIND.COM IS INSECURE - Trailbehind.com is not secure. If someone wishes to hack TrailBehind.com, it will be hacked. There is some effort made to make TrailBehind.com secure, but it is not secure. Because of this, TrailBehind.com doesn't ask you for any personal or financial information at any time, and you shouldn't store sensitive information on TrailBehind.com either.

B) SOME RIGHTS RESERVED

  1. RESTRICTIONS ON SITE AND DATA USE - TrailBehind, Inc. does not place any particular restrictions on the use of TrailBehind.com. You can use TrailBehind.com's web pages, data downloads, or make use of the underlying URLs that return information from TrailBehind.com for research or building other software, commercially or otherwise. However, TrailBehind must only be used in accordance with applicable laws. Moreover, data should always be presented in such a way as to link to and properly attribute sources, and should abide by the terms use of the underlying websites and content owners. If you plan to create a commercial website based on TrailBehind, you are advised to contact TrailBehind at legal@trailbehind.com, and also seek independent counsel.
  2. ALL CODE IS COPYRIGHTED - All of the code on TrailBehind.com, which is not a software library developed by a third party, is copyrighted by TrailBehind.com. All rigths are reserved. You can't use Trailbehind.com code for anything without written consent. Please contact legal@trailbehind.com if you wish to use TrailBehind.com's source code.
  3. TRAILBEHIND, INC. CAN END YOUR USAGE FOR ANY REASON - In general, Trailbehind, Inc. encourages creative and independent use of TrailBehind.com; however, TrailBehind, Inc. may end your use of the site for any reason, at any time. TrailBehind, Inc. may arbitraily delete content you add to the site, and may terminate your use of TrailBehind.com through legal, technological, or other means. If you are planning to build a business or software using TrailBehind.com, you are advised to contact legal@trailbehind.com.
Categories: Terms of Service

A Wonderful House Near Joshua Tree

Posted on may 28

I recently had a chance to stay at the Moonway Lodge, and it may very well be the best vacation rental near Joshua Tree. This was my first trip to JT but not my first vacation rental, and I can't remember a house that I more thoroughly enjoyed.

The building we rented had two nearly identical bungalows side-by-side, with a courtyard and pool fenced in between them. The place advertises it sleeps 6-8, but I think you can pack a few more in there, particularly if the weather is nice.

There were five of us on this trip, and two of us opted two sleep in the beds outside by the pool, two took the big beds in the bungalows, and one took the aptly named Heaven, which is a cool and breezy room upstairs, between the bungalows.

You can tell that the Moonway Lodge is a place the owners themselves enjoy and understand. Too many vacation rentals try to wow you with nice upholstery and modern appliances, but the Moonway Lodge actually had the things I wanted. Speakers to hook up iPods, that broadcast throughout the bungalows and courtyard. A pool that reaches 9 ft., which is a real gem in the desert. A vast expanse of desert to wander into. Wifi. And even a Wii!

If you have a few days, I heartily recommend a trip to the Moonway Lodge, and you can stop and see Joshua Tree while you are there. It's just a few minutes away.

Categories: Joshua Tree, Housing Rental

Can't Index Strings in Javascript

Posted on may 15
I just found out the hard way that in Internet Explorer, you can't index a string like an array. The following works OK in Firefox, but it fails in IE: stringVar[foo] That will be undefined in IE.
Categories: programming, javascript, IE Sux

Refreshing Firefox From, And Other Thoughts On, Emacs

Posted on may 10

When I'm working on Javascript or Django templates, I often want to test a change in the browser (usually Firefox), which entails refreshing.

As it turns out, it's a pretty simple matter to do what I want, using just a couple of lines in my .emacs file, and a plug-in a piece for emacs and Firefox. This fine fellow lays out the steps on his blog. However, just to clarify his instructions a bit and spare you from a pitfall that hung me up for a couple of minutes, take note.

After you install MozRepl integration in emacs, it won't start up until you open a javascript file. If you don't start MozRepl or open a javascript file before you try to ctrl-x p, or you will get this error:

"Symbol's function definition is void: comint-send-string"

Maybe I should need to test less often, but until then, this tool is going to be very handy. Here are some other improvements I'd like to make to my emacs:

  • figure out how to store the state of tabs/buffers when I close emacs
  • get lines numbers to show up on the left
  • autocomplete file opening, Quicksilver style, without needing to enter directories and tabs
  • aquamacs spawns tabs for auto complete and such... I wish those would automatically close
  • get javascript to color properly in HTML templates
  • also, django template coloring would be a nice bonus
Categories: programming, emacs

First Post on a New Blog

Posted on may 09

Well, I have had quite a few blogs over the years, but I hope things can come to a rest here on andrewljohnson.com.

I had planned to launch this thing today, but I realized that I forgot to accept the transfer of the domain from the guy I bought it from! I hope he is honest, because I'm not sure if there is too much I can do if he decides to keep it now.

I should be more careful after I give someone $200 for a domain.

Categories: andrewljohnson

About Me

I am one of the founders of TrailBehind.com. I help develop the website and our iPhone app Gaia GPS.

I live in a cabin in Truckee, where I work on my website, hike, ski, and otherwise enjoy the mountains.

I am interested in Python, Django, GIS, go, poker, and backpacking.

Recent Posts

Personal Links

Things I Read

Business Associates