Re: Maven coordinates going forward

2017-03-27 Thread Gerald Wiltse
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

Re: [VOTE] new operator ?=

2016-11-23 Thread Gerald Wiltse
+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

Re: Looping through a hashmap & removing elements

2016-06-06 Thread Gerald Wiltse
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

Re: Methods for Creating Ranges

2016-04-20 Thread Gerald Wiltse
} 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

Re: Methods for Creating Ranges

2016-04-20 Thread Gerald Wiltse
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

Re: Methods for Creating Ranges

2016-04-20 Thread Gerald Wiltse
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'

Re: Methods for Creating Ranges

2016-04-19 Thread Gerald Wiltse
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

Classloader Won't Load Some Classes

2016-04-18 Thread Gerald Wiltse
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() :

Re: ServerSocket , Chunked data , and BufferedReader

2016-04-12 Thread Gerald Wiltse
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

Re: ServerSocket , Chunked data , and BufferedReader

2016-04-12 Thread Gerald Wiltse
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

Re: ServerSocket , Chunked data , and BufferedReader

2016-04-12 Thread Gerald Wiltse
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

BountySource Salt For Groovy Project

2016-04-06 Thread Gerald Wiltse
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

Re: Groovy Certifications

2016-03-31 Thread Gerald 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

Groovy Certifications

2016-03-25 Thread Gerald Wiltse
Hello, Are there any known certification tracks one can pursue specific to groovy development? Gerald R. Wiltse jerrywil...@gmail.com

Groovy MBean to JsonBuilder

2016-03-21 Thread Gerald Wiltse
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

Casting GroovyMbean as custom class

2016-03-20 Thread Gerald Wiltse
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

Re: Expando as a Trait?

2016-03-19 Thread Gerald Wiltse
> > 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 as a Trait?

2016-03-19 Thread Gerald Wiltse
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,

Re: building a jar from groovy script with gradle

2016-03-08 Thread Gerald Wiltse
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,

Examples of Pure Groovy Libraries for REST Services

2016-03-07 Thread Gerald Wiltse
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,

Re: JSONBuilder Option to Only Include NonNull values

2016-03-06 Thread Gerald Wiltse
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

Re: Groovy Hash Calculations

2016-03-04 Thread Gerald Wiltse
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

Re: Groovy Hash Calculations

2016-03-04 Thread Gerald Wiltse
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

Groovy Hash Calculations

2016-03-04 Thread Gerald Wiltse
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[]

Groovy Wrapper for Bintray API

2016-02-29 Thread Gerald Wiltse
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

Re: Confirming getProperties() works differently (inside vs outside)

2016-02-29 Thread Gerald Wiltse
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

Re: [ANN] Geb 0.13.1 released

2016-02-25 Thread Gerald Wiltse
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,

Re: Groovy Extension Method - Collection or GroovyMbean

2016-02-18 Thread Gerald Wiltse
> > 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

Re: Behavior of .with() inside Trait

2016-02-11 Thread Gerald Wiltse
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:

Expert Groovy Consulting

2016-01-13 Thread Gerald Wiltse
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: Community Support for Novices

2016-01-08 Thread Gerald Wiltse
; 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

Re: Exciting Use Case for Groovy - Log Analytics

2015-12-30 Thread Gerald Wiltse
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

Re: Question about GroovyClassLoader, Imoprt, and ContentAssist

2015-12-30 Thread Gerald Wiltse
...@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

Question about GroovyClassLoader, Imoprt, and ContentAssist

2015-12-18 Thread Gerald Wiltse
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