Skip to content

Instantly share code, notes, and snippets.

@jneill
jneill / analysis.md
Last active July 20, 2022 20:34
Pentaho "Current Week" filter shows previous week

Selecting "Current Week" as a filter actually shows the previous week. For example, today is 2015-01-27 which is in 2015-W05 but Pentaho shows 2015-W04.

image

"Previous Week" and "Next Week" are similarly off-by-one (showing 2015-W03 and 2015-W05 respectively)

The Today, Yesterday and Tomorrow filters work fine.

image

@jneill
jneill / keybase.md
Last active August 29, 2015 13:58
keybase.md

Keybase proof

I hereby claim:

  • I am jneill on github.
  • I am jordanneill (https://keybase.io/jordanneill) on keybase.
  • I have a public key whose fingerprint is 5128 8932 DD90 D18D 8EB1 8389 3DB4 929B 2142 39E7

To claim this, I am signing this object:

{
"vers": 0.01,
"config": {
"rate": "perhr",
"valueColumns": [
"linux"
],
"currencies": [
"USD"
],
@jneill
jneill / gist:6938471
Created October 11, 2013 17:11
String#hashCode()
String::hashCode = ->
res = 0
for i in [0...@length]
res = (31 * res + @charCodeAt(i)) << 0
return res