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
+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
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
} 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 <jerrywil...@gmail.com>
wrote:
> The code will be executed about once every 1
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 <jerrywil...@gmail.com>
wrote:
> For posterity, here's the working form of very s
turn $l").run() == ['str1', 'str2']
def s = "'mystring'"
assert new GroovyShell().parse("return $s").run() == "mystring"
def m = "['key1':'value1','key2':'value2']"
assert new GroovyShell().parse("return $m").run() ==
['key1':'value1','key2'
o...@gmail.com>
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 <jerrywil...@gmail.com> a
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() :
llaborate, 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 <jerrywil...@gmail.com>
> wrote:
>
>> Also, looking forward to a fresh po
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 <jerrywil...@gmail.com>
wrote:
> Yes you are right about the readLine(). I remember no
achLine { String s -> ... } to
> 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
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
Thanks to you both for responding!
Gerald R. Wiltse
jerrywil...@gmail.com
On Thu, Mar 31, 2016 at 1:03 AM, Guillaume Laforge <glafo...@gmail.com>
wrote:
> Indeed no certifications that I'm aware of.
>
> Guillaume
>
>
> Le jeudi 31 mars 2016, Gerald Wiltse <jer
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
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
>
> 2016-03-18 16:51 GMT+01:00 Gerald Wiltse <jerrywil...@gmail.com>:
>
>> 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 e
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,
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,
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,
id not find any issue for this 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
> j
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 sha1 has
quot;.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...@gm
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[]
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
ko 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 <blackd...@gmx.org> wrote:
>
>
> On 29.02.2016 03:23, Gerald Wiltse wrote:
>
>> Is there a way for the Chameleon c
ct. 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
>
> On Tue, Feb 23,
>
> Regards,
> 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 Arr
t; }.rehydrate($self, $self, $self))
> }
>
> 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:
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
; Am 08.01.2016 um 16:37 schrieb 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
0, 2015 at 8:56 PM, Aristedes Maniatis <a...@ish.com.au> 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 fairly-well
> suited for this, but p
...@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 <blackd...@gmx.org> wrote:
> On 18.12.2015 20:12, Gerald Wiltse wrote:
> [...]
>
>> Problem, This appears to be possible using GroovyClassLoader() (and
>> several
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
34 matches
Mail list logo