Click date twice, then click the eyeballs icon (‘click to sort by read’) twice.
Posting this here because I forgot and it was really annoying.
Click date twice, then click the eyeballs icon (‘click to sort by read’) twice.
Posting this here because I forgot and it was really annoying.
Munin is a great piece of software that we use at my company to track overall trends in disk usage, CPU and other system purposes. Now, we don’t have a ton of servers, so I’m not sure how munin scales for many machines, but it has been invaluable in troubleshooting problems and giving us historic context.
One thing we’ve started to do is to incorporate business specific metrics into munin. This is good because it ties the technical operations more tightly to the business, making us aware when there are issues.
Anything you can run a sql query or do a wget for, you can graph in munin. (Here’s something I wrote about writing munin plugins a year ago.)
I don’t think that munin is acceptable as a general purpose dashboard. I’d probably look at Google Analytics if I was web drivingdriven (updated Feb 25 2012), and at statsmix if I needed to integrate a bunch of disparate services. But for bringing additional business awareness to a technical team, writing a few custom munin plugins that will graph key business metrics can be very useful.
Everyone should use an earpiece. My SO is reading “Disconnect: the truth about cell phone radiation, what the industry has done to hide it, and how to protect your family” and it’s some scary stuff.
I’ve struggled with setting up my earpiece enough times that I want to document what I did just now. There are a lot of instructions on the internet, but they all seem incomplete, or aimed at a different phone. Here’s the Jabra manual (PDF), even though it isn’t much help.
So, here are my step by step instructions on how to connect my AT&T Palm Centro with my Jabra VBT2050 earpiece.
Hope this helps!
Every so often, I just need to stop and say thanks.
Thanks for my family and parents, providing all kinds of education when they raised me.
Thanks to my wife, for being patient and loving, even when I’m not my best.
Thanks to my past and current clients, colleagues and employers, for giving me amazing opportunities, challenging me and trusting me.
Thanks to the vast number of people who contribute to making the internet a fantastic place (this is a software blog, after all). Whether you create content or build plumbing, the internet is richer for your contribution (even the guy behind lolcats, but especially stuff like this and this).
Every so often, I get wrapped up in some small drama, but nothing knocks me back on my heels and makes me say ‘Damn, I’m lucky’ like making a gratitude list, even one like this which is incomplete.
Say thanks–it feels good!
Not this one! But recently, as part of an effort to simplify my life, I’ve shuttered a couple of blogs I had been running for a while. Here’s my list of best practices to do so:
Do you have any tips for shutting down a blog in a graceful manner? Here’s an interesting post on the topic, but written from the perspective of a more professional blogger.
Third party cookies are most often used by ad serving companies, because they are set by an image or other resource that can be pulled from a different domain, they are one way of tracking behavior across websites.
A short example: If I visit site A (www.foo.com) and site B (www.bar.com) and they both pull an image from site C (www.baz.com), it can set cookies for the site C domain (.baz.com), with a value of siteA or siteB. Then when I visit site C, it ‘knows’ that I’ve been to sites A and B.
This can be sinister (see the wikipedia link above for privacy concerns). However, if you have multiple web properties, then you may want to tie user behavior together across properties. Third party tools like Google Analytics offer one way to do this, but if you want custom application behavior, then third party cookies are probably the way to go.
Firefox (at least my version of firefox, without any add ons or options changes) treats third party cookies much the same as first party cookies; that is, they just work. However, IE requires a bit more hoop jumping, as they check the p3p compact policy. A compact policy is basically a header you set which looks like this: P3P: CP="CAO PSA CONi OTR OUR DEM ONL". I looked around for an easy explanation of what the various values are and how to set them in a coherent manner, but didn’t run into anything very useful. However, I finally stumbled on this tutorial, which points you to this IBM software, which you can use to create a compact policy. The tutorial also walks you how to use that software, which is not entirely intuitive.
As far as I can tell, IE doesn’t actually check for the existence of the corresponding policy file, nor does it care if the site does what the p3p header says it does, but it does require a valid compact policy.
After you’ve added that header, IE (versions 6-8) will accept your third party cookies.
[tags]third party cookies, compact policy, howto[/tags]
If you are writing a typical GWT application, which is monolithic and controls the entire viewport of the browser, you probably don’t want to read this post. Go on, read something else interesting–you probably have emails or tweets or something better to do with your time.
OK, now we just have the people left who are using GWT to build widgets; that is small encapsulated pieces of functionality that integrate into an existing web based application (case #2 outlined here). If you’re doing this, and you use the “span to enable” gwt mini pattern, you want to upgrade to GWT 2.0 simply to get the new code splitting functionality. If you don’t want to read that previous link, the synopsis is that code splitting lets you define a number of pieces of distinct code, using GWT.runAsync. Then, that code won’t be downloaded until it is reached.
Previous to this feature, if you had a number of widgets, you ended up with a large chunk of code to download on every page (this is an issue with GWT that the monolithic applications simply don’t have to deal with). Some of that code will be run. Some will not, but you’re still paying for download and parsing of that code. You had some unsavory options to deal with this–let all the code be downloaded, or manually split up code into separate modules that you managed (either by hand or with deferred binding). The second solution led to smaller downloads, but meant a lot more management–if you wanted to add a widget to a page, you not only had to add the enabling span, you had to recompile the entire GWT module–and much longer compilation when you deployed your entire web application. However, if your widgets were static, this path might have been an option.
My client used the former solution (entire code download on every page), and was very excited about the code splitting, since that essentially automates the second choice above. In the space of about one half hour, I was able to reduce the initial download size of the GWT javascript by 10%, and there’s scope for much more, since the code is pretty naturally split up into separate chunks for each widget.
It’s not perfect, however. The two concerns I’ve had so far:
GWT.runAsync from an event handler, like onClick, you will not have a valid event on the first call (when the module is loaded) but will on all subsequent calls. This is easy to fix, but was a bit mystifying to me. Basically, if you have code like this:onClick(ClickEvent event) {
if (event.getSource() instanceof Image) {
// do something with image
}
}
you need to replace it with:
onClick(ClickEvent event) {
if (event.getSource() instanceof Image) {
// save event.getSource into an instance variable
GWT.runAsync(new RunAsyncCallback() {
// do something with image in instance variable
}
}
}
I'm sure there are other complications I'll find once I do more code splitting. (Here's an interesting post about code splitting in large applications, and simplifying the API of code that is split (plus, you get to see the word cromulent in context).) But, for now, code splitting and GWT widget development seem like a match made in heaven.
[tags]gwt,code splitting[/tags]
I was using the excellent displaytag library recently, and had written a table decorator to append some information about each row for a GWT widget to read and use. The table ended up looking like this:
<table>
<tr>
<td>data</td>
…
</tr>
<script type=”text/javascript”>var …</script><span id=’uniqid’ style=’display:none’>gwt config data</span>
<tr>
<td>data</td>
…
</tr>
<script type=”text/javascript”>var …</script><span id=’uniqid’ style=’display:none’>gwt config data</span>
…
</table>
This worked fine in Firefox and Safari, but IE (versions 6, 7 and 8 ) were displaying whitespace above the table. I couldn’t figure out why, until I commented out the table and the whitespace went away. Then I re-enabled the table, and commented out the finishRow method; the whitespace was still gone.
The answer, of course, is that IE doesn’t like stuff outside of the <tr> tags. Once I wrapped the span tag in <tr><td> tags, the whitespace went away for all browsers:
<table>
<tr>
<td>data</td>
…
</tr>
<tr><td><script type=”text/javascript”>var …</script><span id=’uniqid’ style=’display:none’>gwt config data</span></td></tr>
<tr>
<td>data</td>
…
</tr>
<tr><td><script type=”text/javascript”>var …</script><span id=’uniqid’ style=’display:none’>gwt config data</span></td></tr>
…
</table>
[tags]ie html quirks[/tags]
I have a client who uses a Google Mini (a search appliance created by Google) as a key part of their business. The appliance worked fine, gave great search results, and was happily humming along until very recently. At some point over the last couple of months, the number of 504 errors visible to the users using the mini increased drastically.
At one point, no matter what term you searched on, you would see this error message:
Error: Unknown XML result type. View page source to see the offending XML. 504
When I took a look at this to try to troubleshoot, the results were very arbitrary--some search terms would show this message, some would not. However, when a search term did show the error message, it would do so consistently, at least for 5-10 minutes. Perhaps that had to do with caching?
The benefit of the mini is that you get great google like search results. The detriment is that it is a black box--you don't even get a login to the box, etc. And when your support contract runs out, you're left with very few options.
So, we troubleshot with one hand tied behind our back. We:
Finally, the client suggested resetting the index, as it was conceivable that the mini index had been somehow corrupted. This was an option for the client because their documents are re-crawled every day. If that wasn't the case, it would have been a harder decision.
Resetting the index solved the problem. Some numbers:
FYI, this post is applicable to the Google Mini version 4.6.4--I'm not sure how more current versions of software work/break.
[tags]google mini,black box troubleshooting,504 error[/tags]
Updated March 21: crossed out ‘conferences’ because I don’t do a good job of listing those.
Boulder, Colorado, has a great tech scene, that I’ve been a peripheral member of for a while now. I thought I’d share a few of the places I go to network. And by “network”, I mean learn about cool new technologies, get a feel for the state of the scene (are companies hiring? Firing? What technologies are in high demand?) and chat with interesting people. All of the events below focus on software, except where noted.
NB: I have not found work through any of these events. But if I needed work, these communities are the second place I’d look. (The first place would be my personal network.)
Boulder Denver New Tech Meetup
User groups: Boulder Java Users Group, Boulder Linux Users Group, Rocky Mountain Adobe Users Group, Denver/Boulder Drupal Users Group, Denver Java Users Group others updated 11/12 8:51: added Denver JUG
Meetups (of which BDNT, covered above, is one)
Ignite
Except for Ignite, everything above is free or donation-based. The paid conferences around Colorado that I know about, I’ll cover in a future post.
What am I missing? I know the list is skewed towards Boulder–I haven’t really been to conferences more than an hours drive from Boulder.
Do you use these events as a chance to network? Catch up with friends? Learn about new technologies, processes and companies?
