Skip to content

Instantly share code, notes, and snippets.

View lucamolteni's full-sized avatar
🏠
Working from home

Luca Molteni lucamolteni

🏠
Working from home
View GitHub Profile
[INFO] Scanning for projects...
[INFO]
[INFO] -------------< org.kie.server:kie-server-integ-tests-dmn >--------------
[INFO] Building KIE :: Execution Server :: Tests :: DMN Integration Tests 7.18.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-enforcer-plugin:3.0.0-M1:enforce (enforce-plugin-versions) @ kie-server-integ-tests-dmn ---
[INFO]
[INFO] --- maven-enforcer-plugin:3.0.0-M1:enforce (ban-blacklisted-dependencies) @ kie-server-integ-tests-dmn ---
[INFO]
[INFO] Scanning for projects...
[INFO]
[INFO] -------------< org.kie.server:kie-server-integ-tests-dmn >--------------
[INFO] Building KIE :: Execution Server :: Tests :: DMN Integration Tests 7.18.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-enforcer-plugin:3.0.0-M1:enforce (enforce-plugin-versions) @ kie-server-integ-tests-dmn ---
[INFO]
[INFO] --- maven-enforcer-plugin:3.0.0-M1:enforce (ban-blacklisted-dependencies) @ kie-server-integ-tests-dmn ---
[INFO]
ge0ffrey> volothamp: bascially Matchers got deprecated and Matchers.anyInt() moved to Mockito.anyInt()
10:28:07 → jlocker and dfiungo joined
10:28:50 <ge0ffrey> volothamp: jiri already fixed a similar problem on optaplanner and I already merged it, despite the PR not being green due to appformer. This way, when appformer is green and it gets to optaplanner, it should be immediatly green too
10:29:00 <ge0ffrey> locally this way optaplanner builds again (*)
10:29:04 <volothamp> ok perfect thank you ge0ffrey
10:29:21 <ge0ffrey> (*) if you build drools from source etc too, because now that jenkins is broken, those snapshots aren't updated, which is a big pita
10:29:24 ↔ dfiungo_ popped in ↔ dfiungo nipped out
10:32:10 <volothamp> yeah I've just discovered that
10:32:23 <volothamp> fortunately I have a project that's not related to drools to fix :)
private String rewriteConsequenceBlock(String consequence) {
int modifyPos = StringUtils.indexOfOutOfQuotes(consequence, "modify");
if (modifyPos < 0) {
return consequence;
}
int lastCopiedEnd = 0;
StringBuilder sb = new StringBuilder();
sb.append(consequence.substring(lastCopiedEnd, modifyPos));
lastCopiedEnd = modifyPos + 1;
private String rewriteConsequenceBlock(String consequence) {
int modifyPos = StringUtils.indexOfOutOfQuotes(consequence, "modify");
if (modifyPos < 0) {
return consequence;
}
int lastCopiedEnd = 0;
StringBuilder sb = new StringBuilder();
sb.append(consequence.substring(lastCopiedEnd, modifyPos));
lastCopiedEnd = modifyPos + 1;
00:33:35 <roger600> etirelli, ping
00:41:03 <etirelli> roger600: pong
00:43:14 <roger600> etirelli, hey, conan just told me about some issues on DMN caused by some commit
00:43:23 <roger600> etirelli, jst to double checkj
00:43:30 <roger600> etirelli, it's all under control by manstis now, right?
00:43:38 <roger600> etirelli, you need some other action from me?
00:43:42 <etirelli> roger600: yes, I think he was missing your reviews on the PRs
00:43:46 <roger600> etirelli, (and sorry for the inconveniences)
00:43:49 <roger600> etirelli, done :)
module Main where
import Data.List.Zipper
import Prelude(IO, (==), mod, print)
main :: IO ()
main = print (filter' (\x -> x `mod` 2 == 0) zipper)
myList = [1..100]
.observe method
16:49 <volothamp> *nanoseconds
16:50 <•bbrazil> yes
16:50 <•bbrazil> if you're using the provided timing utilites, it'll already have nanosecond resolution
16:51 <volothamp> bbrazil: I saw yesterday the client truncates to seconds in `SimpleTimer.elapsedSecondsFromNanos(start, SimpleTimer.defaultTimeProvider.nanoTime())`
16:52 <volothamp> which is does indeed `(endNanos - startNanos) / Collector.NANOSECONDS_PER_SECOND` am I missing something
16:52 <•bbrazil> that's not truncating
16:53 ⇐ dmone quit ([email protected]) Quit: Leaving
16:53 <volothamp> Arent’ we losing precision?
Great news start by this: https://github.com/bitemyapp/learnhaskell
This is probably the best book so far (written by the same author) http://haskellbook.com/
This is a great reference for edge cases: http://dev.stephendiehl.com/hask/
Don't worry about not being good at math, it's not really needed that much and it's more like a meme/joke Let me know what comes out