Re: [Pharo-dev] , for vector creation

2017-10-26 Thread Chris Cunningham
On Thu, Oct 26, 2017 at 7:09 AM, Sean P. DeNigris wrote: > Maybe we can follow the FS/PP pattern > and scope the message to only-vector-like-things via an initial message, so > just like `$f asParser, …`, have `1 {vector-appropriate-message}, …`? > > So, something like 1

Re: [Pharo-dev] ESUG Pharo GIT BOFs

2017-09-05 Thread Chris Cunningham
BOF - Birds of a Feather Basically, people with the same interests. On Tue, Sep 5, 2017 at 2:47 PM, Peter Uhnák wrote: > I don't see Esteban's talk in the conference schedule. > > Also, what is BOF shortcut for? > > P > > On Tue, Sep 5, 2017 at 9:18 AM, Stéphane Ducasse < >

Re: [Pharo-dev] New User and the Rectangle class.

2017-06-20 Thread Chris Cunningham
Hi Trey, I can't find the rational written down why Rectangle was changed (although it WAS written down). If I remember right, the rational was roughly "Rectangles represent areas of the screen. As such, they should be 'well formed'- positive width and height only". In any case, going back

Re: [Pharo-dev] memoized vs once

2017-01-27 Thread Chris Cunningham
On Fri, Jan 27, 2017 at 7:12 AM, Dimitris Chloupis wrote: > > > heh.. you see my pain! right now i have to deal with C++ >> and seeing all these >> const Type & foo const.. >> and cannot parse it.. >> :) >> >> > I think that C++ tries to avoid this confusion by not using

Re: [Pharo-dev] memoized vs once

2017-01-26 Thread Chris Cunningham
On Thu, Jan 26, 2017 at 2:02 PM, stepharong wrote: > On Thu, 26 Jan 2017 20:38:49 +0100, Torsten Bergmann > wrote: > > ... > > >> Instead it is sent to an object that afterwards is a constant within a >> method >> (so it will not be evaluated later at runtime

Re: [Pharo-dev] [ANN] Regular tech hangouts every month

2016-09-14 Thread Chris Cunningham
On Wed, Sep 14, 2016 at 7:43 AM, Peter Uhnak wrote: > On Wed, Sep 14, 2016 at 02:50:47PM +0200, Esteban Lorenzano wrote: > > > - I will handle those meetings every last Tuesday of every month at 16h > UTC (So people from America-The-Continent can join… Yes, is a continent, >

Re: [Pharo-dev] pragma syntax

2016-07-26 Thread Chris Cunningham
I would hope there are exceptions - at least $. and $; . Otherwise mass chaos would ensue. Search for the method #initializeTypeTable. That should steer you towards what can be in a binary method (everything not specifically called out as something besides #xBinary). -cbc On Tue, Jul 26, 2016

Re: [Pharo-dev] IMPORTANT: Proposal to create a github team for Voyage and MongoTalk

2016-06-10 Thread Chris Cunningham
Redis: MCHttpRepository location: 'http://www.squeaksource.com/Redis' user: '' password: '' Works nicely, too (for the little bit that I've used it). -cbc On Fri, Jun 10, 2016 at 8:18 AM, Todd Blanchard wrote: > 'NoSQL' covers a lot of ground. > > I don't suppose anyone

Re: [Pharo-dev] feedback from yet another student presentation

2016-03-10 Thread Chris Cunningham
On Thu, Mar 10, 2016 at 1:14 PM, Alexandre Bergel wrote: > > - it was realy hard to register a project on smalltalkhub just after > we created an account. > > This already happened to me during the open-devs. > > So this is a really big show stopper for the mooc.

Re: [Pharo-dev] Code Combat

2016-02-29 Thread Chris Cunningham
On Mon, Feb 29, 2016 at 9:11 AM, Ben Coman wrote: > I was talking to my kids' primary school about teaching them > programming, and one of the systems they are planning to use is Code > Combat. It "teaches" programming by posing puzzles in an arcade > adventure game

Re: [Pharo-dev] Best way to access icons?

2016-02-04 Thread Chris Cunningham
On Thu, Feb 4, 2016 at 7:19 AM, Aliaksei Syrel wrote: > Hi > > For ages to access an icon we used: > >> Smalltalk ui icons protocolPrivateIcon > > > Smalltalk ui icons returns an instance of ThemeIcons. > After refactoring (case https://pharo.fogbugz.com/f/cases/16651 >

Re: [Pharo-dev] Kafka protocol

2016-01-04 Thread Chris Cunningham
I wrote a low-level interface for this a while back: http://www.smalltalkhub.com/#!/~cbc/KAFKAClient (it does skip zookeeper, though). And I've used it for reading from Kafka, but have not verified writing to it - and didn't finish that part (didn't need it). I did need additional ByteArray

Re: [Pharo-dev] Can I access symbolic constants from NB FFI?

2015-12-22 Thread Chris Cunningham
I was going to point out SharedPool and defining it as a poolDictionary in the class definition, but you already know that, right? Is what you are pointing out is that once you have all of that setup, that NB doesn't allow you to use it by argument (but only by value)? The former I might help; the

Re: [Pharo-dev] #sum:, #detectSum:, #sumNumbers:

2015-12-03 Thread Chris Cunningham
On Thu, Dec 3, 2015 at 4:51 PM, Ben Coman <b...@openinworld.com> wrote: > On Fri, Dec 4, 2015 at 3:26 AM, Chris Cunningham > <cunningham...@gmail.com> wrote: > > > > > > On Thu, Dec 3, 2015 at 5:48 AM, Ben Coman <b...@openinworld.com> wrote: > >>

Re: [Pharo-dev] #sum:, #detectSum:, #sumNumbers:

2015-12-03 Thread Chris Cunningham
On Thu, Dec 3, 2015 at 5:48 AM, Ben Coman wrote: > > > * Points are summable " { 2@2 . 3@3 } " --> 5@5. But then " 2@2 + > 1 " --> 3@3 , so " {} sum " returning 0 would seem to not > cause any error in this case. > > > cheers -ben but points aren't

Re: [Pharo-dev] Finding the reason of merge

2015-10-26 Thread Chris Cunningham
you could try Merging instead of loading, and then look at the difference between the newly merged in-image package and version 74. Or, you could open the Monticello browser, highlight the package (which you've already done),and click on Changes to see what you've changed since version 73. Or,

Re: [Pharo-dev] Need a decision on subString: vs substring:

2015-09-04 Thread Chris Cunningham
On Fri, Sep 4, 2015 at 6:18 AM, Christophe Demarey < christophe.dema...@inria.fr> wrote: > > I agree with that. > To be compatible with these goals, I think my proposition just needs to be > updated a bit. > I'm still in favor of rules to transform ANSI code to Pharo code. The > point is that we

Re: [Pharo-dev] DateTime api

2015-08-18 Thread Chris Cunningham
To, #asNanoSeconds converts the time into the umber of nanosecond that the time represents. #nanoSeconds (and the others) create a duration that is to be added to the time or DateAndTime. The two do not end with the same things 0 and shouldin't. The first tells you how many they represent; the

Re: [Pharo-dev] Pratt Parsers for PetitParser

2015-06-10 Thread Chris Cunningham
Inteteresting On Wed, Jun 10, 2015 at 9:36 AM, Camille camille.ter...@gmail.com wrote: Hello Pharoers and Moosers, I did a Pratt parser extension for PetitParser. snip @PP Devs: I had trouble with the PPContext furthestFailure that is taken into account instead of the failures I

Re: [Pharo-dev] Pratt Parsers for PetitParser

2015-06-10 Thread Chris Cunningham
That sounds very reasonable to me. -cbc On Wed, Jun 10, 2015 at 10:45 AM, Camille camille.ter...@gmail.com wrote: On 10 Jun 2015, at 19:11, Chris Cunningham cunningham...@gmail.com wrote: Inteteresting On Wed, Jun 10, 2015 at 9:36 AM, Camille camille.ter...@gmail.com wrote: Hello

Re: [Pharo-dev] Detecting the context/producer of code change announcements

2015-06-10 Thread Chris Cunningham
On Wed, Jun 10, 2015 at 11:29 AM, Max Leske maxle...@gmail.com wrote: On 10 Jun 2015, at 17:13, Martin Dias tinchod...@gmail.com wrote: Hi everybody, snip The other thing would be to clean up the announcer situation… Maybe the announcers should be hierarchical, not the announcements.

Re: [Pharo-dev] Null Coalesce Operator?

2015-05-20 Thread Chris Cunningham
On Wed, May 20, 2015 at 12:55 PM, Aliaksei Syrel alex.sy...@gmail.com wrote: Check for the nil value should be banned in my opinion. There are well-known techniques to not have to use it (e.g., Null-object pattern). Absolutely agree! :) My only fear is that it could encourage the use of

Re: [Pharo-dev] GanttChartMorph openOn: aCollectionOfActivities ?

2015-05-08 Thread Chris Cunningham
On Fri, May 8, 2015 at 1:33 PM, Alexandre Bergel alexandre.ber...@me.com wrote: Hi Hannes! Here is a first shoot paired-programmed with Juraj using Roassal: Neat! I think I can use this.. question: snip b axisX numberOfLabels: 5. b -=-=-=-=-=-=-=-=-=-=-=-= so, numberOfLabels

Re: [Pharo-dev] PharoV30.sources in Pharo 4.0 download

2015-04-01 Thread Chris Cunningham
Is there a plan to condense changes and build a new sources file for the 4.0 release? Just curious -cbc On Wed, Apr 1, 2015 at 1:18 PM, Max Leske maxle...@gmail.com wrote: On 01 Apr 2015, at 22:12, Dmitri Zagidulin dmi...@zagidulin.net wrote: I noticed that the Pharo 4.0 full distribution

Re: [Pharo-dev] SmalltalkHub Watch this project is not working for me

2015-03-27 Thread Chris Cunningham
On your smalltalkhub home page, it should add that project to the section 'watched projects'. And it should add you to the list of folks who are watching the project (listed in the watchers tab on the project). But, yeah, I've been unable to decide if is does anything else. At least it gives me

Re: [Pharo-dev] can a Float be not finite and not equals to Float class#infinity ?

2015-02-03 Thread Chris Cunningham
is implemented: ^(self - self) = 0.0 and not just: ^self isInfinite not which includes the negativeInfinity… Esteban On 03 Feb 2015, at 16:46, Chris Cunningham cunningham...@gmail.com wrote: There is Float infinity and Float negativeInfinity - two infinite classes. Can I assume your

Re: [Pharo-dev] can a Float be not finite and not equals to Float class#infinity ?

2015-02-03 Thread Chris Cunningham
There is Float infinity and Float negativeInfinity - two infinite classes. Can I assume your first test really wanted to be: aFloat isFinite = false ? cbc On Tue, Feb 3, 2015 at 7:38 AM, Esteban Lorenzano esteba...@gmail.com wrote: Hi, that… I wonder if aFloat isFinite = true and

Re: [Pharo-dev] Duration year

2014-12-02 Thread Chris Cunningham
GenericYear does this. The generic Year will take '2/29/2000' asDate + 1 year = 28 February 2001 In other words, we want it at the same time next year; more importantly the same month and close to what we have now. Also: '3/1/2001' asDate - 1 year = 1 March 2000 Still, same month - we want

Re: [Pharo-dev] Duration year

2014-12-01 Thread Chris Cunningham
Hi. I was working on a GenericYear that was intended to be used for DateAndTime calculus - to be able to add and subtract an arbitrary number of years. The class by itself would not know the days - it is an arbitrary (generic) Year. It would only know the number of days when it is added (or

Re: [Pharo-dev] How production ready is Pharo on SQLServer?

2014-09-12 Thread Chris Cunningham
DBXTalk is probably right. If it doesn't work, the old ODBC package will work - I have tried that later one (not against SQLServer, but it's just ODBC, so will work). -cbc On Fri, Sep 12, 2014 at 12:37 PM, Esteban A. Maringolo emaring...@gmail.com wrote: 2014-09-11 17:48 GMT-03:00 Sebastian

Re: [Pharo-dev] Videos ESUG2014

2014-08-25 Thread Chris Cunningham
-vBhaKVZf0al-ISMMPvRw https://www.youtube.com/watch?v=V4CVp77yhUolist=UUO-vBhaKVZf0al-ISMMPvRw https://www.youtube.com/watch?v=AUZQemqQphglist=UUO-vBhaKVZf0al-ISMMPvRw 2014-08-25 22:13 GMT+02:00 Chris Cunningham cunningham...@gmail.com: Naive response, but no, I don't see them on YouTube

Re: [Pharo-dev] Fogbugz login to issue

2014-08-04 Thread Chris Cunningham
Interesting. I tried going the other way (on the same issue) and looking at the read only view from Penelope. Once there, I have no idea where to go. Maybe find the package Rectangle is part of and try digging down there? Hmm, nope. Either wrong guess, or now that 2489 is closed, it isn't on

Re: [Pharo-dev] Athens and StrikeFont ( again )

2014-06-20 Thread Chris Cunningham
On Fri, Jun 20, 2014 at 7:32 AM, Tudor Girba tu...@tudorgirba.com wrote: I do not understand. I think we are talking about two different things. Alex and I are talking about wrong rendering of FT fonts in Athens. A problem that looks similar to what we had before. Our issue has nothing to do

Re: [Pharo-dev] Implementing cull:cull: in symbol

2014-06-19 Thread Chris Cunningham
A stretch for rational behind cull: We are 'culling' the excess variables passed to the block (roughly equivalent to killing animals when there are too many of them). On Thu, Jun 19, 2014 at 7:31 AM, Esteban Lorenzano esteba...@gmail.com wrote:

Re: [Pharo-dev] 32 bits and 64 bits VM

2014-05-16 Thread Chris Cunningham
Right. Running an image natively in 64 bits doesn't mean you have to have a 64 bit image as well. http://timmydosmalltalk.wordpress.com/2014/03/13/howto-build-a-64-native-standardvm-running-32-bit-image-on-slackware-linux-14-1-with-32-bit-compat-libs/ (not my work at all - just sharing). -cbc

Re: [Pharo-dev] [Moose-dev] Roassal visualizing a corner of the Universe

2014-05-08 Thread Chris Cunningham
So, Hannes may have been referring to optimizing the slow parts of the process in Native Boost directly instead of using an external library (if not, may I suggest it?). It is possible that just a few tweaks using Assembler in the process would get the speed up to an acceptable level, which would

Re: [Pharo-dev] font folder on win7

2014-04-04 Thread Chris Cunningham
It is located in \Windows\Fonts (and window is case-agnostic, so \windows\fonts works as well) -cbc On Fri, Apr 4, 2014 at 9:48 AM, Pharo4Stef pharo4s...@free.fr wrote: Hi guys I'm trying to understand why people get problems with fonts on windows. The logic in the font manager is

Re: [Pharo-dev] ws vs st extensions

2014-02-28 Thread Chris Cunningham
On Fri, Feb 28, 2014 at 6:07 AM, Esteban A. Maringolo emaring...@gmail.comwrote: I have a naive question... Why if the BasicCodeLoader handler looks for .st files does the Workpace offer .ws as the default extension? Well, the workspace doesn't just use chuck format - in fact, you rarely put

Re: [Pharo-dev] poolDictionaries removal breaks my projects

2014-02-03 Thread Chris Cunningham
On Sat, Feb 1, 2014 at 6:00 AM, Johan Fabry jfa...@dcc.uchile.cl wrote: On Feb 1, 2014, at 9:32 AM, Sebastian Sastre sebast...@flowingconcept.com wrote: snip lots of stuff It's a half-ass non-solution Do you really love cleaning that up? This half-assed non-solution is the same

Re: [Pharo-dev] poolDictionaries removal breaks my projects

2014-01-31 Thread Chris Cunningham
On Thu, Jan 30, 2014 at 11:42 PM, Torsten Bergmann asta...@gmx.de wrote: Please make it a setting - so one can see the creation message with poolDictionaries in Nautilus as before in the browser and is able to fill out the template. When using NB one requires them. Well, since it seems

Re: [Pharo-dev] Seaside extensions and lowercase package names in Pharo

2014-01-31 Thread Chris Cunningham
On Fri, Jan 31, 2014 at 3:57 AM, Torsten Bergmann asta...@gmx.de wrote: Now that Pharo uses real packages beside categories I see some lowercase ghost packages in Monticello Browser list after loading Seaside. To reproduce just load Seaside using config browser and check in Monticello

[Pharo-dev] [Moose-dev] #deepCollect:

2013-12-13 Thread Chris Cunningham
Hi. I was reading with interest the blog post on Traversal-enabled objects ( http://www.humane-assessment.com/blog/traversal-enabled-pharo-objects ) when I noticed the method #deepCollect: referenced. Interestingly, I have a method called #deepCollect: that is use (wtih related methods like

Re: [Pharo-dev] Json case: Mapping objects to dictionaries

2013-12-05 Thread Chris Cunningham
I've used the SCouchDB interface - which include mapping object to dictionaries (well, JSONObjects) and mapping back from them. http://www.squeaksource.com/SCouchDB.html Of course, it is tied to CouchDB, but shouldn't be to hard to pry the mapping part out (once you find it). On Thu, Dec 5, 2013

Re: [Pharo-dev] flatCollect:

2013-11-04 Thread Chris Cunningham
On Sat, Nov 2, 2013 at 3:52 AM, Tudor Girba tu...@tudorgirba.com wrote: Indeed, it would be more elegant, but streamContents: is only defined in SequeanceableCollection, so it is not generic enough. So, then use the generic one where it is defined (Collection), and a more specific one that

Re: [Pharo-dev] flatCollect:

2013-11-04 Thread Chris Cunningham
for which non-sequenceable collections would the #flatCollect: code work ? I was thinking that maybe #streamContents: could be put higher up ? If that would not be possible, why not ? And how would the #flatCollect: code then work ? On 04 Nov 2013, at 17:36, Chris Cunningham cunningham...@gmail.com

Re: [Pharo-dev] Formatting dates

2013-10-30 Thread Chris Cunningham
Or: Date today printFormat: #(3 2 1 0 1 1 2) On Wed, Oct 30, 2013 at 2:13 PM, Frank Shearar frank.shea...@gmail.comwrote: On 30 October 2013 20:55, blake dsblakewat...@gmail.com wrote: Heya, guys-- Converting a Ruby program to Pharo, and one of the things this program does is write a

Re: [Pharo-dev] [Moose-dev] [ann] system attraction view

2013-10-16 Thread Chris Cunningham
That does sound interesting. So the new (student-based) force algorithm would allow for a 'everything is equal' default, or set a certain class of things as more important than others. Or maybe a hierarchy of things a more important (so, classes most important, then packages, then whatever is

Re: [Pharo-dev] Problem with strings, quotes and scape them

2013-07-24 Thread Chris Cunningham
Doesn't just #printString do this? It escapes single strings into doubles - should do what you want if it is definitely a string. -Chris On Wed, Jul 24, 2013 at 8:34 AM, Mariano Martinez Peck marianop...@gmail.com wrote: Hi guys. I am a bit lost here and maybe someone can give me a hand. I

Re: [Pharo-dev] Barcodes

2013-06-18 Thread Chris Cunningham
You should be able to create a form, paint it white, draw on it with a barcode TTF font, export that form to JPEG, and then use that JPEG into Artefact. Not really straight-forward, but it should work. *Note: I've found that writing JPEG's in Pharo, it assumes that the background is BLACK if it

Re: [Pharo-dev] Debugger: why generated accessors #shouldBeImplemented?

2013-06-06 Thread Chris Cunningham
Thank you. On Thu, Jun 6, 2013 at 9:58 AM, Clément Bera bera.clem...@gmail.com wrote: I added you with this mail : cunningham...@gmail.com Go on it and click 'forgot my password' with your email. It should work. If it does not then I will ask Camillo to add you. 2013/6/6 Chris Cunningham