Pass parameter to Ajax call to use after response returns

Let’s say I have some data I want to pass along with an ajax call to use when the response comes in. You can pass round trip parameters in your jQuery ajax call by adding them to the options object like this

 url: '',
 dataType: "json",
 roundTripVariable: 'Weeeeee!',
 success: function(data, textStatus, jqXHR) {
 // will print 'Weeeeee!' to the console
 console.log( this.roundTripVariable );

Jira Filter – See my watched issues not assigned to me

To see issues in Jira that I am watching but are not assigned to me I created a new filter

issue in watchedIssues() AND assignee not in (currentUser())

Go to the filters view, select advanced, paste in the jql provided.



If you want to get fancy you could add another condition to show unresolved tickets like

issue in watchedIssues() AND assignee not in (currentUser()) AND resolution = Unresolved

Running the Java Keytool on Mac

Locate your java home directory by executing in Termal


This will return the full path to your java home directory on your Mac. Change into that directory and then you will be able to run the java keytool from there.

Here is a log of what I ran in Terminal on my Mac:

$ /usr/libexec/java_home
$ cd /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
$ keytool

keytool documentation

Fuel Efficiency For 2012 Prius HEV

Second tank on the car! Here are some of the numbers and calculations to go with the second tanks worth of driving. This time I filled up sooner than I did last time. It looks like I did a bit better this time with driving conservatively.

You can check out the raw numbers on my spreadsheet

Driving: 779 miles (298 gas + 480 electric)

Gallons of gas: 6.234

Kilowatt hours of electricity: 89

Tank miles per gallon: 47.8

Tank miles per kilowatt hour: 5.39

Total fuel cost: $24.6 = $15.89 gas + $8.71 electric
(6.234g * $2.549/g) + (89kwh * $0.097883/kWh)
Took an average of the 2 rates from our electric company ($.088594 per kWh [first 600 kWh] and $0.107172 [remaining kWh])

Fuel cost per mile: $0.053 gas & $0.018 electric

Combined fuel cost per mile: 3.16 cents

Fuel economy extrapolated out to 100k miles of similar driving: $3,157
($0.0315789473684/mile * 100,000 miles)