Thursday, August 02, 2012

Chrome 21 Fail

Web devs beware: the just-released Chrome 21 now blocks mixed content. If you're serving a https page that loads anything over http, that insecure load is now blocked silently (a warning message appears in the console but the user sees nothing).

I'm pretty sure this change was the culprit.

And I'm not seeing a setting that can modify this behavior either.

Wasted a couple hours today trying to figure out why all our pages were broken. Yes, yes, it would be nice if we could serve everything over https, but there are a few resources we rely on that we just can't.

Update: this only happens for javascript files, not images.

Tuesday, January 17, 2012

Confluence on OS X

Wasted the morning figuring out how to install Confluence on OS X and getting it to work as a daemon. In case I ever need it again:

  1. How to start/stop Confluence as a daemon. Not sure why it's not in the 4.x documentation.
  2. Exposing Confluence on port 80 - here's the short version in case it disappears:
    1. Create the following configuration file for Apache2 in /private/etc/apache2/other:
      <Proxy *>
      Order deny,allow
      Allow from all
      </Proxy>
      
      ProxyRequests      Off
      ProxyPreserveHost  On
      ProxyPass          /   http://localhost:8090/
      ProxyPassReverse   /   http://localhost:8090/
      
    2. Start (or restart) Apache. Go to System Preferences -> Sharing. Tick “Web Sharing”. Without the file above, all you'll see on http://localhost is a page saying "It works!"

This is working with Confluence 4.1.3 and on OS X 10.7.2.

I shudder to think of the amount of hair pulling I'd have went through if I'd tried to get this set up without Google (or equivalent).

Friday, September 30, 2011

Luke + Lucene 3.4.0

Ugh. It seems like every time Lucene gets updated lately something breaks. They've been making lots of API changes lately and if it's not a backward compatibility issue within Lucene itself, it's something else that depends on Lucene.

After rebuilding our indexes with Lucene 3.4.0 we discovered that we could no longer open them with Luke. All we'd get was a super helpful "unknown format version -3". This happens even when the index is built on 3.4.0 with an older Version flag.

And we're not the only ones: Issue 46 and Issue 47.

So... Yay for open source. Here's a working version of Luke for Lucene 3.4.0: lukeall-3.4.0.jar.

Here's a patch for the Luke 3.3.0 branch if you wish to build it yourself: lucene-3.4.0-support.patch. You'll need to replace all the lucene 3.3.0 libraries with matching ones from lucene 3.4.0.

On a side note, after using github it feels so... archaic to be using something else. It would have been so much simpler for me to share this if I could've just forked it.

Tuesday, November 02, 2010

Vote!

Vote!
Don't forget to vote today. Don't know where to go? Look here. Need to do some research? Try here.

Sunday, July 18, 2010

Walmart Photo Fail

I tried to print out some wedding pictures for my grandmother at Walmart today but they refused to give me the photos (they were already printed) because I didn't have a copyright release from the wedding photographer. Walmart apparently will not sell photos that look like they've been taken by a professional photographer unless you have a signed copyright release.

Seriously? It's a picture of my wife and I! How big of a problem is this? I guess I could have lied and said they were not taken by a professional -- which they would have accepted -- except that I'd answered truthfully before I'd known about this restriction.

What a colossal inconvenience.

Well, lesson learned - avoid Walmart for pictures.

Sunday, June 27, 2010

New Toy

This has been a good month for me. First a new cell phone, and now a shiny new GPS unit for my Nikon D90 just in time for our vacation. I picked up a Solmeta Geotagger N1 off their E-Bay store and they were nice enough to throw in an extra power adapter and charging cable.

It's pretty much drop dead simple to use, is light enough to be unnoticeable, and since it has a built in battery, doesn't really change my behavior as far as using the camera goes. Since the data gets embedded into the image's EXIF data, there's no post-processing involved either. My test shot got uploaded to Picasa just fine with GPS data intact.

Time to do some real world testing...

Friday, June 18, 2010

HTC Evo

C's been complaining that I hog her phone too much whenever we're out and about so I finally bit the bullet and upgraded my trusty old Samsung clamshell to the HTC Evo. I'd been tempted to upgrade a few times in the past (particularly when the Palm Pre came out), but it never made any financial sense. I finally managed to reconcile the cost when (a) Sprint introduced a cheap(er) plan, (b) we needed to add another line and (c) there was actually a viable Android phone for Sprint.

Reviews for the Evo are all over the board, but I'm mostly loving it. Battery life isn't great, but it's good enough for me. My only complaint is the camera (for either stills or video). They may claim 8MP, but it's total crap and unreliable for anything beyond candid shots.

Everything else is just fantastic. It's fast, it runs Android, and it has a great big screen. It's big enough that I can type quickly and accurately, something I cannot do on the Nexus One.

More than anything else, it's just fun. It's been a long time since I've had the desire to do any programming that isn't work related, but the Evo and Android is certainly introducing that itch.

Thursday, June 17, 2010

Baby Brown 2

I was fortunate enough to be able to fly back to NJ last weekend to meet my newest nephew, Michael Brown. He's amazing and sooo tiny. I can't believe Andrew was once this small. Congrats Jeanne and Jim! I can't wait to introduce him to Andrew.

Friday, April 23, 2010

Temeraire

Just finished reading In His Majesty's Service by Naomi Novik, which collects the first three books in her Temeraire series, and I am thoroughly impressed.

When I thought of how to describe these books, the first thing that came to mind was Anne McCaffrey + Patrick O'Brian (and just a dash of Jane Austen in the first book). And I guess I wasn't the only one with this impression since the blurb on Amazon describes the series with McCaffrey and O'Brian as well.

If you've ever wondered what the world would have been like if dragons existed during Napoleonic era, then you've got to give these books a chance. Oh so well written, and utterly believable.

The good news for me is that books 4 and 5 are already out, and book 6 will be out in July. The bad news is that there are only 3 more books for me to read, and I'll be sad indeed to leave her world.

Tuesday, April 13, 2010

Palak Challenged

Cooked a couple Indian dishes for dinner tonight: a lamb stew/curry and palak paneer. The lamb dish was a first attempt, and with the pressure cooker to boot (a wedding gift that's sat unused for the past three years). C and I both thought that it turned out very well, and given that there's virtually nothing to it other than throwing prepped ingredients into the pot, it will probably be entering my standard repertoire.

And just so I have a record of it somewhere, here's the recipe:

  1. Mix well in bowl:
    • 1 lb. of meat (I used boned shoulder of lamb) in 1" cubes,
    • 1 small onion, peeled and finely chopped
    • 1" piece of ginger, peeled and finely chopped
    • 1 medium-sized tomato, peeled and finely chopped
    • 1-2 fresh, hot green chiles, cut into fine rings (do not remove seeds) 1 teaspoon chili powder
    • 1/4 teaspoon ground tumeric
    • 2 teaspoons garam masala
    • 1 teaspoon ground cumin
    • 1/4 cup plain yogurt
    • 1 tablespoon tomato paste
    • 1/4 teaspoon salt or to taste
  2. Heat 3 tablespoons of vegetable oil in pressure cooker and saute 4 finely chopped cloves of garlic till medium brown.
  3. Add seasoned meat and stir a few times
  4. Cover pressure cooker and cook lamb for 15 minutes at full pressure.
  5. Reduce pressure quickly. Uncover and cook over high heat, stirring gently until the sauce is thick.
  6. Sprinkle with black pepper and stir again.
  7. Eat.

The other dish, unfortunately, was not as successful. This was my third attempt at palak paneer and the best so far, but still no where close to what you'd get at a restaurant. I tried following a friend's recipe this time, but it was fairly obvious as I got close to the end that it just wasn't going to be right. I'm also not familiar enough with the ingredients to figure out how to fix it and get the desired result.

If anyone has a foolproof method of making good palak paneer, I'd love to learn.

Friday, April 09, 2010

Customer Service

Every now and then I get so shocked by a company's customer service that I have to blog about it.

During our remodel, I went with a couple dual flush toilets from Caroma. One of them started leaking recently and continuously released a small but steady stream of water into the bowl after flushing.

Since the flushing mechanism isn't something I can just pick up at Home Depot, I gave them a call to see what my options were. I was dreading an exorbitant fee for a replacement part, but instead, they just asked me for my address and said they'd mail me one right away.

Now that's going above and beyond anything I could have hoped for.

Thanks Caroma.

Friday, March 26, 2010

Pet Peeve

I'm not a big fan of having to create an account on a website in order to use it. I can understand why they ask people to register, but I don't have to like it.

So when I do finally succumb and create an account, I do expect a certain level of... proficiency. And to achieve this goal, they just have to manage one simple thing: DON'T SEND ME MY PASSWORD IN AN EMAIL. This is such a flagrant disregard for basic security that it's likely to make me blacklist the site altogether.

In this day and age, with identity theft such a common event, the lazy developer responsible for this atrocity should be run out of town. If you've implemented such a system and don't know why this is a bad idea, shame on you.

If you don't want to put the effort into designing something more secure, just take advantage of one of the single sign-on authentication schemes like OpenID or Facebook Connect.

Wednesday, March 17, 2010

Zap

After thinking about it for the past few years, I finally bit the bullet and had lasik performed on me yesterday at the Stanford Eye Laser Center.

Short version: 40 minutes of staring at a blinking red light, 4 hours of itchy/burning tears once the anesthetics wore off, a night's rest, and I currently have 20/20 in my right eye and 20/15 in my left. It'll take a few weeks for my vision to stabilize, so this may not be my final visual acuity numbers. I'm also seeing a bit of a halo around lights, which I hope will improve as my eyes recover from the surgery.

Poor Andrew... There won't be any eyeglasses for him to pull off anymore.

Sunday, March 07, 2010

Kindle Double Whammy

I usually buy my books used (pre-loved? pre-read?), but every now and then I don't have the luxury and am forced to buy it new. That's pretty much what happened last week for when we got tired of waiting for a copy of Healthy Sleep Habits, Happy Child to be available at the library.

What's prompting me to blog about this is that I have a Kindle. If I want both the hard copy and a digital copy for my Kindle, I have to pay for the book twice, and there's no way I'm doing that. With a CD, I can just buy the CD and rip it, and I'd be able to listen to it on whatever system I want. With a book, I don't have that option. I'd be willing to pay $1-2 more for the digital copy, but I don't see that being a choice any time in the near future.

As much as I like the Kindle, I don't see myself only buying digital copies of books. Especially since it would be in a proprietary format so I wouldn't even be able to read it on anything other than a Kindle. What happens if I break it? The idea of having to shell out hundreds for a replacement Kindle before I can read those books again just makes me cringe.

I hope that as the number of people using e-readers increases, these issues will be worked out. I'm hoping the publishers are willing to work out some sort of deal for those who'd like a hard copy and a digital copy of the same work. But I'm not holding my breath...

Saturday, February 27, 2010

Year 3 In Review

Our third wedding anniversary has come and gone, and it's time to once again look back and reflect. Unlike the past couple years, we didn't do anything special to celebrate. A lot of factors came into play to produce this outcome, but I'd like to think that it was Andrew that did it, and really, he's sort of a daily celebration in and of itself, so it all works out in the end.

Much of the past year has revolved around preparing for, and then learning to live with Andrew's arrival. Before September, it'd been one of the calmer years in my recent history. After September... Well, sufficed to say that it's been a banner year for new experiences and discovering just how much sleep I really need a night.

Looking forward, I can only imagine how much more life will change once Andrew becomes mobile. Personally, I'm hoping he puts it off for a while, but I'm not too sure he's going to listen to me.

Wednesday, January 06, 2010

Pop!

Since I had the entire family over for Christmas, I decided to get off my butt and work on a photography project that's been noodling around the back of my mind for a while. Once I got everything set up , it was fairly easy to run everyone through it.

I'm sure I can improve on the lighting, but I was in a rush because I'd procrastinated till a few hours before the east coast contingent had to leave to catch their flight home.

Monday, January 04, 2010

Happy New Year!

Better late than never, right? Happy New Year everyone!

Friday, December 18, 2009

Northstar

Spent the day snowboarding at Northstar at Tahoe, and it was insanely awesome. The snow was great for this time of the year, and the day was just perfect -- clear, sunny and warm.

Andrew's been helping me get in shape for snowboarding too, since he likes being rocked up and down as opposed to sideways. Which translates to lots and lots of lunges and squats.

Tomorrow is C.'s turn to hit the slopes while I stay home with Andrew.

Sunday, November 22, 2009

Gender Bias

We took Andrew to Wendy's birthday dinner at Buca di Beppo in Palo Alto where he was pretty well behaved. All was going well until we had to change his diaper... and discovered that only the women's bathroom had a changing table.

Wendy's birthday celebrations continued with ice skating at the Winter Lodge where Andrew had to have his diaper changed again... and again only the women's bathroom had a changing table.

Seriously? Are women still the only ones expected to change diapers in this day and age? Or are these venues just behind the times? I know I've seen changing tables in the men's room before. I just didn't realize how much of a rarity that is.

What do we want? Gender equality. Changing tables in the men's room! When do we want it? Now!

Monday, November 02, 2009

Boo!

I carved my first pumpkin this Halloween! I have Andrew to thank for motivating me to finally give it a shot this year, but I don't think he was terribly impressed.