I am not sure if I agree or not yet ( I think I do.) But I think Jason's
point is that the situation with Python is perhaps as undesirable as one
could imagine for an ecosystem, so trying to learn as much from that
situation as possible might be wise.
Specifically, reaching out to the Python main
aruch gave a talk at Codemash a shirt while ago that
> reminded me I should pin the versions of dependencies I'm installing with
> apk on the alpine versions. I'll do that after the conference.
>
> -Keegan
>
> On Jan 11, 2017 10:12 PM, "Gerald Wiltse" wrote:
>
>
If you have questions about Azul that you can't seem to figure out online,
the Azul Product Director is the organizer of my local JUG and I have a
dialog with him. I'd be happy to get him involved if you think it will
help. Just let me know.
Regards,
Jerry
Gerald R. Wiltse
jerrywil...@gmail.com
+1
Gerald R. Wiltse
jerrywil...@gmail.com
On Wed, Nov 23, 2016 at 12:28 PM, Winnebeck, Jason <
jason.winneb...@windstream.com> wrote:
> At first I was going to vote 0, because I feel like a = a ?: b is clear
> (and I compare it to a = a || b from JS). However, looking at the dev list,
> I defin
Some really neat and creative suggestions here suddenly. Still happy with
any name, but I do like "withThis" and "having", However, tap seems to be
gaining momentum and with good reasons, despite the common complaint of
"What the heck does tap mean". I agree it makes more sense after
explained.
Guy,
Please note that removeAll can have dramatic negative impact on your
application if run on a large scale. We recently found that it was the
cause of CPU spikes on most of our JVM's. We had to replace all uses of
"removeAll()" with "findAll()" or "retainAll()"
These do create new list which
ry.com/artifact/com.rubiconproject.oss/jchronic
>
> Cheers,
>
> -H
>
>
> On 5/9/16 4:29 PM, Gerald Wiltse wrote:
>
> Also, something else just occurred to me which might be relevant. Another
> option might be to create a JDE Calendar or JDE Date class which extends
n Mon, May 9, 2016 at 7:04 PM, Gerald Wiltse wrote:
> All,
>
> In summary, I would like any advice people can offer on how to approach
> the task below, using the Groovy ways of thinking.
>
> The topic at hand is a messy domain-specific problem working with dates in
> Oracle
All,
In summary, I would like any advice people can offer on how to approach the
task below, using the Groovy ways of thinking.
The topic at hand is a messy domain-specific problem working with dates in
Oracle's ERP software called JD Edwards. It's gory detail is documented
here:
http://stackove
Hello All,
I'm trying to deploy my first groovy extension methods to remove JVM. The
methods work great in my IDE, but not on a remote JVM which has loaded the
JAR.
I use gradle to build, i can see that the metadata and class are included
in the JAR, but I get the error:
No signature of method:
7;s not for free. Doing your own string parsing logic might
>> be more efficient.
>> Depends on how frequently you have to do that.
>> Le 20 avr. 2016 07:57, "Gerald Wiltse" a écrit :
>>
>>> Wow, i just wrote that exact code basically... and started respon
} catch (GroovyCastException e) {
this[tmpKey] = new GroovyShell().parse(v).run()
}
Gerald R. Wiltse
jerrywil...@gmail.com
On Wed, Apr 20, 2016 at 9:26 AM, Gerald Wiltse
wrote:
> The code will be executed about once every 10 seconds at a maximum, so
it means spinning the parser and
> compiler, so it's not for free. Doing your own string parsing logic might
> be more efficient.
> Depends on how frequently you have to do that.
> Le 20 avr. 2016 07:57, "Gerald Wiltse" a écrit :
>
>> Wow, i just wrote that exact code b
Scratch the part about the side effect... i forgot to remove that line
after adding the exception handling.
Gerald R. Wiltse
jerrywil...@gmail.com
On Wed, Apr 20, 2016 at 2:31 AM, Gerald Wiltse
wrote:
> For posterity, here's the working form of very short loop for accepting a
&g
ovyShell().parse("return $l").run() == ['str1', 'str2']
def s = "'mystring'"
assert new GroovyShell().parse("return $s").run() == "mystring"
def m = "['key1':'value1','key2':'value2'
Also, thank you so very much for the response!
Gerald R. Wiltse
jerrywil...@gmail.com
On Wed, Apr 20, 2016 at 1:57 AM, Gerald Wiltse
wrote:
> Wow, i just wrote that exact code basically... and started responding to
> your email, but there were various drawbacks to this approach as I
")
>def range = min.toInteger()..max.toInteger()
>
> On Wed, Apr 20, 2016 at 7:26 AM, Gerald Wiltse
> wrote:
>
>> I don't see how that works in my case, maybe i'm missing something.
>>
>> I will clarify:
>>
>> I define a variable in
this."$tmpKey" = Eval.x(v, "return x")
}
}
Gerald R. Wiltse
jerrywil...@gmail.com
On Wed, Apr 20, 2016 at 1:26 AM, Gerald Wiltse
wrote:
> I don't see how that works in my case, maybe i'm missing something.
>
> I will clarify:
e
wrote:
> Hi,
>
> You can just replace the bounds with variables.
>
> def a = 1
> def b = 10
> def r = a..b
>
> Isn't that what you're looking for?
>
> Guillaume
>
>
> Le mercredi 20 avril 2016, Gerald Wiltse a écrit :
>
>> I can fi
I can find no examples of different ways to create a range. There's a
plethora of examples on what you can do when you start by creating a range
like so: "1..10"
But, how does one create a range when the min and max values are stored in
variables? There's no range constructor. I see that it's
tse
jerrywil...@gmail.com
On Mon, Apr 18, 2016 at 10:01 PM, Gerald Wiltse
wrote:
> I have a bunch of classes in different packages called "Datasources" which
> are all very similar. They extend an abstract base class, they have quite a
> few dependencies and implement some t
I have a bunch of classes in different packages called "Datasources" which
are all very similar. They extend an abstract base class, they have quite a
few dependencies and implement some traits. They also use
@InheritConstructors annotation.
I am unable to load any of them using newInstance() :
collaborate, collect and
> curate all those news items!
> Resurrecting has been on my long todo list for a while!
>
> Guillaume
>
> On Tue, Apr 12, 2016 at 7:59 PM, Gerald Wiltse
> wrote:
>
>> Also, looking forward to a fresh post soon... will you have time to do
>> o
Also, looking forward to a fresh post soon... will you have time to do one?
http://glaforge.appspot.com/
Gerald R. Wiltse
jerrywil...@gmail.com
On Tue, Apr 12, 2016 at 12:58 PM, Gerald Wiltse
wrote:
> Yes you are right about the readLine(). I remember now that my problem
> was actuall
ethod!
>
> On Tue, Apr 12, 2016 at 6:39 PM, Guillaume Laforge
> wrote:
>
>> Ah good point.
>> Well, it's possible to break out of the eachLine call... by throwing an
>> exception, although it makes the code a little less elegant obviously.
>>
>> On
o
> iterate over all the lines.
> Last interesting nugget, there's also the class groovy.io.LineColumnReader
> potentially, if you're interested in keeping track of the position (column
> and line number) in the file.
>
> Guillaume
>
> On Tue, Apr 12, 2016 at 5:5
I'm trying to use a "ServerSocket" to receive HTTP messages from a client
which is POSTing them as chunked. I just want to capture the text content
being posted (plain text). Any input on how to do this better would be
welcomed.
Here is my existing and very not-elegant solution. When dealing wi
https://salt.bountysource.com/
I have no experience with this service, and have not researched it deeply,
but on the surface it seems like it might something relevant to the Groovy
Language. I discovered it just now and wanted to share it with this group.
Regards,
Jerry
Gerald R. Wiltse
jerryw
Thanks to you both for responding!
Gerald R. Wiltse
jerrywil...@gmail.com
On Thu, Mar 31, 2016 at 1:03 AM, Guillaume Laforge
wrote:
> Indeed no certifications that I'm aware of.
>
> Guillaume
>
>
> Le jeudi 31 mars 2016, Gerald Wiltse a écrit :
>
>> I did
I did not receive any response to this. Can anyone please confirm that
there are no known certifications for Groovy?
Gerald R. Wiltse
jerrywil...@gmail.com
On Fri, Mar 25, 2016 at 12:13 PM, Gerald Wiltse
wrote:
> Hello,
>
> Are there any known certification tracks one can pursue sp
Hello,
Are there any known certification tracks one can pursue specific to groovy
development?
Gerald R. Wiltse
jerrywil...@gmail.com
I'm working with some MBeans from an Oracle application. In summary, it
seems that JsonBuilder can process an mbean, but not a GroovyMBean. Is
this expected behavior? It might not even be worth doing, it was just a
surprise.
The following
println new JsonBuilder(mbean).toPr
Hello,
I'm gathering a number of GroovyMBeans from remote servers over JMX, and I
have them each modeled with a custom classes. I was hoping to be able to
simply cast the MBean as the other object type but get this error:
with class 'groovy.util.GroovyMBean' to class
'com.dev.core.JdeInstanceBe
. Wiltse
jerrywil...@gmail.com
On Fri, Mar 18, 2016 at 12:03 PM, Cédric Champeau wrote:
> I think what you are suggesting is close to this example in the docs:
> http://groovy-lang.org/objectorientation.html#_dynamic_methods_in_a_trait
>
> Am I right?
>
> 2016-03-18 16:51 GMT+0
Expando is a pretty cool object. And if we extend it, we get it's really
nice "behavior". Unfortunately, as extending = inheritance, thus extending
expando precludes us from extending our true parent classes. This is why
implementing interfaces and traits is often a better choice than
inheriting, e
I fixed the exception, had to swap the dis = and digest = lines around.
Now just looking for help making this more elegant and groovy.
Gerald R. Wiltse
jerrywil...@gmail.com
On Wed, Mar 9, 2016 at 12:37 PM, Gerald Wiltse
wrote:
> Ok, returning back to this, my test case did not want to s
before returning the data. DigestInputStream makes
> sense if you were, for example, passing that input stream to another method
> that wrote the content to a file then you wanted to get the digest after
> the file write was complete.
>
>
>
> Jason
>
>
>
> *From:* Gerald
I have a similar situation I am about to tackle, building an installer that
executes Groovy code. This will be going to clients and run on windows, so
it really has to be an EXE.
Anybody have good experience with JAR-to-EXE packers or something?
Gerald R. Wiltse
jerrywil...@gmail.com
On Tue, Ma
I'm a novice developer, working on developing my first wrapper library for
a REST API. I want it to be robust, flexible, and repeatable for future
REST API's. I am looking for examples of wrapper libraries for different
web api's written in pure Groovy (not Java). The more complicated the API,
th
s I created one myself:
> https://issues.apache.org/jira/browse/GROOVY-7780
>
> Cheers,
> Pascal
>
>
> Am 05.03.2016 um 16:37 schrieb Gerald Wiltse:
>
> You got it, thanks for all your hard work on the project!
>
> Gerald R. Wiltse
> jerrywil...@gmail.com
>
rowse/GROOVY/component/12326643/ to
> request a feature.
>
> Thanks,
> Pascal
>
>
> Am 04.03.2016 um 20:51 schrieb Gerald Wiltse:
>
> I just found this article which describes the problem perfectly and there
> are several good workarounds.
>
>
> http://stackoverfl
I just found this article which describes the problem perfectly and there
are several good workarounds.
http://stackoverflow.com/questions/14749817/exclude-null-values-using-jsonbuilder-in-groovy
Apparently, it's a native feature of Jackson, which makes me think it's
probably available in lots of
SHA1").digest(content.bytes).encodeHex()
>
>
>
> //If the content might be arbitrarily long:
>
> content = new ByteArrayInputStream("Here be dragons".bytes)
>
> def digest = MessageDigest.getInstance("SHA1")
>
> content.eachByte(4096) { b
le write was complete.
>
>
>
> Jason
>
>
>
> *From:* Gerald Wiltse [mailto:jerrywil...@gmail.com]
> *Sent:* Friday, March 04, 2016 10:08 AM
> *To:* users@groovy.apache.org
> *Subject:* Re: Groovy Hash Calculations
>
>
>
> I'm trying to verify the sha
gons".bytes)
>
> def digest = MessageDigest.getInstance("SHA1")
>
> content.eachByte(4096) { bytes, len ->
>
> digest.update(bytes, 0, len)
>
> }
>
> println digest.digest().encodeHex()
>
>
>
> Jason
>
>
>
> *From:* Gerald Wiltse [mailto:jerrywil.
Hello All,
I have this block, it's pretty compressed, just wondering if there is a
more groovy way to handle reading the buffer and computing the hash.
def messageDigest = MessageDigest.getInstance("SHA1")
def dis = new DigestInputStream(content, messageDigest)
byte[] buff
t publish to Bintray from Gradle, this will work
> for you if you use the original style maven publishing.
>
>
> If you want to do something else, feel free to take the code to a new
> project - it is licensed under Apache v2 anyway.
>
>
>
>
> On 01/03/2016 00:01,
master/gradle-plugin/src/main/groovy/org/ysb33r/gradle/bintray/BintrayAPI.groovy
>
>
> On 29/02/2016 23:13, Gerald Wiltse wrote:
>
> I don't suppose anyone has created a groovy wrapper "library" for bintray
> have they? Just hoping to get lucky. As I set out t
I don't suppose anyone has created a groovy wrapper "library" for bintray
have they? Just hoping to get lucky. As I set out to write my third such
a wrapper for a popular REST API in 2 months, i keep thinking "haven't 100
people already done this work?".
I checked, and Bintray hasn't done the sw
d from dinko is extremely
easy considering the problem. Thanks both of you.
Gerald R. Wiltse
jerrywil...@gmail.com
On Mon, Feb 29, 2016 at 8:17 AM, Jochen Theodorou wrote:
>
>
> On 29.02.2016 03:23, Gerald Wiltse wrote:
>
>> Is there a way for the Chameleon class to ever see th
s.properties.each{println it}
> }
> }
>
> def mylizard = new Chameleon().withTraits(ColorChanging, MyProps)
>
> mylizard.changeColor('blue')
>
> mylizard.printAllMyProperties()
> mylizard.properties.each{println it}
>
> Cheers,
> Di
Is there a way for the Chameleon class to ever see that it has a
"lastColor" property?
class Chameleon{
String color = "green"
void printAllMyProperties(){
this.properties.each{println it}
}
}
trait ColorChanging {
String lastColor
def changeColor = {newcolor ->
http://stackoverflow.com/questions/35628932/creating-mock-jmx-servers-and-beans-in-groovy
Hello,
I posted this issue on SO, and a Java developer gave me a partial answer in
Java.
Can anyone here show what a Groovy-version would look like?
I usually like to make an attempt and then post for feed
on my current project. I have never tried using
> jBrowserDriver though, maybe it's worth trying out:
> https://github.com/MachinePublishers/jBrowserDriver. Feels like it's
> worth trying to run Geb's suite using it -
> https://github.com/geb/issues/issues/426.
>
&
Marcin,
I've been using selenium and phantomjs/ghostdriver in Groovy to do headless
monitoring of a web application for a while now. We'll probably switch to
GEB, but our biggest issue is that PhantomJS keeps leaving hung processes
due to unknown conditions, and because we cannot retrieve the PID
Sascha
>
>
> Am 18.02.2016 um 18:26 schrieb Gerald Wiltse:
>
> I want to do a bunch of calculations and combinations around collections
> of GroovyMbeans. I want to add these "Functions/Formulas" as methods.
> Would it be wiser to add these to the ArrayList class,
I want to do a bunch of calculations and combinations around collections of
GroovyMbeans. I want to add these "Functions/Formulas" as methods. Would
it be wiser to add these to the ArrayList class, or to GroovyMbean class?
Regards,
Jerry
Gerald R. Wiltse
jerrywil...@gmail.com
}
>
> but for
>
> println binding.cow
>
> the generated code is
>
>public static java.lang.Object action(Foo $self) {
> return $self.println( $self .binding.cow)
>
> }
>
>
> On 10/02/2016 16:52, Gerald Wiltse wrote:
>
> This example re
This example returns the error inside the with closure:
"No such property: cow for class:Bar"
It seems .with() in a trait does not resolve the way it "normally" does.
trait Foo {
def action() {
println binding.cow
binding.with {
println cow
}
}
would also like to see them add Groovy as a language on
the dropdown.
Gerald R. Wiltse
jerrywil...@gmail.com
On Wed, Jan 13, 2016 at 11:52 AM, Gerald Wiltse
wrote:
> All,
>
> We are looking for someone who is familiar with all the latest and most
> powerful features of Groovy to hel
All,
We are looking for someone who is familiar with all the latest and most
powerful features of Groovy to help us re-write our existing codebase for
monitoring using these features. Does anyone on this list teach or do
freelance groovy development like this? We want to do the best "top-down
re
I'm sure this is old topic, but I can't find clear answer. IT's about
Date(), but i suppose it's true for anything "Java" which Groovy has
decorated.
Apparently, Java Date() is ancient, disliked, and now a bunch of the
fundamental Java Date() stuff is all "deprecated". Fortunately, Groovys
new Da
;
>> log.info 'hello'
>>
>> log.severe 'hello'
>>
>>
>>
>> sample run….
>>
>>
>>
>> -bash-4.1$ groovy -Djava.util.logging.config.file=logging.properties
>> test.groovy
>>
>> Jan 8, 2016 11:53:04 AM java.
?
>
>
> Sent from my iPad
>
> On 8 Jan 2016, at 20:25, Gerald Wiltse wrote:
>
> I understand, you are probably right.
>
> I will use this opportunity to point out what I feel is a significant
> problem in general for people in my situation (sometimes). I'm not
stion. @Log just uses normal logger, if you want more, you have to set a
> logger that can do the things you want... which is actually more a java
> question then
>
> Am 08.01.2016 um 19:47 schrieb Gerald Wiltse:
>
>> Ok, you guys got it :)
>>
>> Gerald R. Wiltse
I just got @Log to work in some test classes, then learned that @Log
annotations do not work in scripts. Is this true? If so, is there some
workaround that exists? I assume this is true for all @annotations and
scripts, so it seems pretty sad if there's no way to do it.
I'm basing that conclusio
chrieb Pascal Schumacher:
>
>> Hi Jerry,
>>
>> I think it is perfectly fine to send novice questions to the mailing
>> list. There were a lot of these on the old user list at codehaus.
>>
>> Cheers,
>> Pascal
>>
>> Am 8. Januar 2016 16:02:58 MEZ,
I don't feel right posting novice level questions to the user group because
it seems it should be more for language-level discussion.
At the same time, I'm stuck when I don't get any responses to
Groovy-related questions on StackOverflow:
http://stackoverflow.com/questions/34574498/groovy-log-to-
93-9110 (c)
888-248-7095 (p)
888-272-6046 (f)
On Wed, Dec 30, 2015 at 8:56 PM, Aristedes Maniatis wrote:
> On 31/12/2015 8:46am, Gerald Wiltse wrote:
> > We are going to use Groovy for more-than-trivial log-parsing and
> analytics. The groovy language native functionality seems fair
Summary:
We are going to use Groovy for more-than-trivial log-parsing and
analytics. The groovy language native functionality seems fairly-well
suited for this, but probably far from purpose-built Query Languages.
Questions:
Is it well-suited enough to simply teach a dev-ops team to write the rul
...@gmail.com
248-893-9110 (c)
888-248-7095 (p)
888-272-6046 (f)
On Sat, Dec 19, 2015 at 3:49 AM, Jochen Theodorou wrote:
> On 18.12.2015 20:12, Gerald Wiltse wrote:
> [...]
>
>> Problem, This appears to be possible using GroovyClassLoader() (and
>> several people have posted how-tos).
This is my first post to the list. If it's inappropriate for questions like
this, please let me know.
Goal: I want to define groovy classes in .groovy files as part of a
package, but without ever needing to compile them. Then, I want to define
groovy scripts in the same package, import the class d
72 matches
Mail list logo