Re: [Pharo-users] Call for feedbacks: Enterprise Pharo ePub version

2016-05-30 Thread Esteban A. Maringolo
2016-05-30 20:58 GMT-03:00 Bernardo Ezequiel Contreras : > hi, > i try to open the file with fbreader on debian wheezy, and the file seems > to be empty or corrupted (i see some parts of it). > it is not clear what's going on, also it is the first time that i open this > class of file. i hope this

Re: [Pharo-users] Call for feedbacks: Enterprise Pharo ePub version

2016-05-30 Thread Bernardo Ezequiel Contreras
hi, i try to open the file with fbreader on debian wheezy, and the file seems to be empty or corrupted (i see some parts of it). it is not clear what's going on, also it is the first time that i open this class of file. i hope this helps. should i try a different epub reader? thanks On Mon, Ma

Re: [Pharo-users] Create PNG (from pdf?)

2016-05-30 Thread Franz Josef Konrad
In our editorial system we use ImageMagick for this task. I guess you have this option on your list. If not, have a look at . I only can state, ImageMagick is doing this job reliable at over 1000 clients. Regards, Franz Josef A

Re: [Pharo-users] Is lazy evaluation of infinite series possible?

2016-05-30 Thread Erisa
The fibonacciSequence example was really helpful. I made a new class PowerSeries, a subclass of Generator. Then I defined a binary operation + as follows: + aPowerSeries ^ PowerSeries on: [ :ps | | a b | [ a := self next. b := aPowerSeries next. ps yield: (a + b) ] rep

Re: [Pharo-users] Call for feedbacks: Enterprise Pharo ePub version

2016-05-30 Thread Esteban A. Maringolo
Hi Thibault, Thanks for working on this. I sent the epub to my Kindle (converted to mobi by Calibre). The content is well formatted and everything looks fine, even code snippets (although the font is too large, larger than the paragraph character). The only thing that is wrong is the table of co

Re: [Pharo-users] What should I name my nested packages?

2016-05-30 Thread Peter Uhnak
Hi, are you referring to tags? If you right-click a package, you see options such as "Add tag...", "Promote as package", "Demote to package with tag". Peter On Mon, May 30, 2016 at 02:10:38PM -0400, Evan Donahue wrote: > Hello, > > Just a quick question as I work on refactoring and cleaning

[Pharo-users] What should I name my nested packages?

2016-05-30 Thread Evan Donahue
Hello, Just a quick question as I work on refactoring and cleaning up a project I've been working on. I notice that packages like Fuel appear in nice, nested hierarchies in my code browser, with 'Core' nested under 'Fuel' even though 'Core's package name is actually Fuel-Core. I'm wondering what I

Re: [Pharo-users] [ANN] New Pharo Glorp version and Book chapter

2016-05-30 Thread Esteban A. Maringolo
2016-05-30 12:49 GMT-03:00 Guille Polito : > Cool! > > Do you know which are the changes that got harvested with the new port? I > mean, the issues fixed or the features added. An approximated changelog > would do... I don't know, I could collect them from the Cincom Repository, I just took a look

Re: [Pharo-users] Mongo-BSON OID LargePositiveInteger increase

2016-05-30 Thread Henrik Johansen
> On 30 May 2016, at 5:49 , Henrik Johansen > wrote: > > A few more comments below; I'm not seeing the things you describe when > testing in my image... > >>> >>> | id | >>> id := LargePositiveInteger. >>> 1 to: (16777215 + 50) do: [:each | >>> id := id digitAdd: 1]. >>> id. >>> >>> Giv

Re: [Pharo-users] [ANN] LibnotifyBinding: a binding to libnotify 0.7.6 for Pharo

2016-05-30 Thread Julien Delplanque
On 30/05/16 18:02, Esteban Lorenzano wrote: On 30 May 2016, at 16:50, Julien Delplanque wrote: Hello, I took the libnotify [0] binding for Squeak [1], adapted it to use the Pharo UFFI API and enhanced it. It is available here [2] and seems to work well (see attached image). It does not cov

Re: [Pharo-users] QCMagritte & Voyage

2016-05-30 Thread Stephan Eggermont
We mostly deployed QCMagritte on Gemstone, so have not done much work on persistency hooks. Please feel free to insert them at appropriate places. Stephan Verstuurd vanaf mijn iPhone

Re: [Pharo-users] Mongo-BSON OID LargePositiveInteger increase

2016-05-30 Thread Henrik Johansen
> On 30 May 2016, at 5:49 , Henrik Johansen > wrote: >>> >>> PS: The other part is that >>#newCounter doesn't seem to be ever executed. >>> On first load >>#initialize will call >>#reset and on >>#shutDown: calls >>> reset. So the code to "randomize" the initial counter doesn't seem to work.

Re: [Pharo-users] [ANN] LibnotifyBinding: a binding to libnotify 0.7.6 for Pharo

2016-05-30 Thread Esteban Lorenzano
> On 30 May 2016, at 16:50, Julien Delplanque wrote: > > Hello, > > I took the libnotify [0] binding for Squeak [1], adapted it to use the Pharo > UFFI API and > enhanced it. It is available here [2] and seems to work well (see attached > image). > > It does not cover all libnotify possibili

Re: [Pharo-users] [ANN] New Pharo Glorp version and Book chapter

2016-05-30 Thread Guille Polito
Cool! Do you know which are the changes that got harvested with the new port? I mean, the issues fixed or the features added. An approximated changelog would do... Original Message Thanks all. There were several people that helped me along this endeavor and I thank again th

Re: [Pharo-users] Mongo-BSON OID LargePositiveInteger increase

2016-05-30 Thread Henrik Johansen
A few more comments below; I'm not seeing the things you describe when testing in my image... >> >> | id | >> id := LargePositiveInteger. >> 1 to: (16777215 + 50) do: [:each | >> id := id digitAdd: 1]. >> id. >> >> Given the comment it should overflow and the value be 50? This is not what

Re: [Pharo-users] Call for feedbacks: Enterprise Pharo ePub version

2016-05-30 Thread Andy Burnett
On 30 May 2016 at 11:32, Damien Cassou wrote: > Andy Burnett writes: > > Works very nicely on my iPhone. It would be great to have all the books > in > > this format. > > you can encourage us doing so by making a donation to ESUG which > sponsors our books. > > Great idea! And, I have just done

Re: [Pharo-users] Call for feedbacks: Enterprise Pharo ePub version

2016-05-30 Thread Damien Cassou
Andy Burnett writes: > Works very nicely on my iPhone. It would be great to have all the books in > this format. you can encourage us doing so by making a donation to ESUG which sponsors our books. -- Damien Cassou http://damiencassou.seasidehosting.st "Success is the ability to go from one fa

Re: [Pharo-users] Call for feedbacks: Enterprise Pharo ePub version

2016-05-30 Thread Mark Bratcher
Thanks for thinking of the e-reader users! I have a Nook Color HD, and, unfortunately, when I tried to open the eBook, it would crash on any attempt to read past the second page (which is the ToC). So clickong on a ToC link, or attempting to turn to page 3 causes the reader to simply abort. If

Re: [Pharo-users] Mongo-BSON OID LargePositiveInteger increase

2016-05-30 Thread Henrik Johansen
Hi Holger, sorry, I'm not good at responding to unsorted email in a timely manner :/ The comment is inaccurate, the wraparound relates to how the number is used in OID >> #initialize, not the number itself. lp := LargePositiveInteger new: 3. lp at: 1 put: 255; at: 2 put: 255; at: 3 put: 255. lp

Re: [Pharo-users] [ANN] LibnotifyBinding: a binding to libnotify 0.7.6 for Pharo

2016-05-30 Thread Julien Delplanque
Good idea, I will have a look at this feature. :-) Julien On 30/05/16 17:07, Denis Kudriashov wrote: Nice. And it would be much nicer if Pharo allows to install it as new notifications backend (instead of morphic one). 2016-05-30 16:50 GMT+02:00 Julien Delplanque : Hello, I took the libno

Re: [Pharo-users] Call for feedbacks: Enterprise Pharo ePub version

2016-05-30 Thread Andy Burnett
> > > Hi, > > I created an ePub version of the book Enterprise Pharo for electronic > readers. > It would be great if you could test it and give me feedbacks on everything > that shocks you. > > You can downlod the file here< > http://files.pharo.org/books-ressources/entreprise-pharo/>. > > Thanks,

Re: [Pharo-users] [ANN] LibnotifyBinding: a binding to libnotify 0.7.6 for Pharo

2016-05-30 Thread Denis Kudriashov
Nice. And it would be much nicer if Pharo allows to install it as new notifications backend (instead of morphic one). 2016-05-30 16:50 GMT+02:00 Julien Delplanque : > Hello, > > I took the libnotify [0] binding for Squeak [1], adapted it to use the > Pharo UFFI API and > enhanced it. It is avail

[Pharo-users] [ANN] OSSubprocess Bugfix release

2016-05-30 Thread Mariano Martinez Peck
Dear all, I have just released a new bugfix release v0.2.3 for OSSubprocess as you can see in [1]. I recommend everyone to move to this release. Cheers, [1] https://github.com/marianopeck/OSSubprocess/releases/tag/v0.2.3 -- Mariano http://marianopeck.wordpress.com

[Pharo-users] [ANN] LibnotifyBinding: a binding to libnotify 0.7.6 for Pharo

2016-05-30 Thread Julien Delplanque
Hello, I took the libnotify [0] binding for Squeak [1], adapted it to use the Pharo UFFI API and enhanced it. It is available here [2] and seems to work well (see attached image). It does not cover all libnotify possibilities (see the README on github) but it is already usable to display not

[Pharo-users] Call for feedbacks: Enterprise Pharo ePub version

2016-05-30 Thread Thibault ARLOING
Hi, I created an ePub version of the book Enterprise Pharo for electronic readers. It would be great if you could test it and give me feedbacks on everything that shocks you. You can downlod the file here. Thanks, Thibault

Re: [Pharo-users] [ANN] New Pharo Glorp version and Book chapter

2016-05-30 Thread Esteban A. Maringolo
Thanks all. There were several people that helped me along this endeavor and I thank again the Pharo Consortium for pushing this. 2016-05-30 5:04 GMT-03:00 Denis Kudriashov : > Good job, Esteban. > Now we need good Garage drivers for databases which not lock image. Does > anyone plan to work on Or

Re: [Pharo-users] Is lazy evaluation of infinite series possible?

2016-05-30 Thread Hilaire
Did you take a look at Nicolai suggestion regarding the Generator class. There is a fibonacci example in its test case. fibo := GeneratorTest new fibonacciSequence then to access the sequence term: fibo next. Hilaire -- Dr. Geo http://drgeo.eu

Re: [Pharo-users] Saving to local git and "Loading all file names from http://...pharo5/inbox"

2016-05-30 Thread Peter Uhnak
I don't see anything actionable in this thread. What can we do to move this forward? Is it only up to Dale to change the behavior? Can we have some workaround? E.g. syncing in the background at regular intervals so when I want to commit I am not blocked by it? Because it doesn't always check the

[Pharo-users] Create PNG (from pdf?)

2016-05-30 Thread Sabine Manaa
Hi, in my online application, I create pdf reports with artefact. Works great. Now, I want to show small previews of those reports with real data. I want them to be images (png). I am searching for ideas how to solve this. I have a list of advantages/disadvantages of various ways but no final

Re: [Pharo-users] Unified FFI: pointer of String as function parameter

2016-05-30 Thread Julien Delplanque
On 30/05/16 11:44, Esteban Lorenzano wrote: On 30 May 2016, at 11:39, Julien Delplanque wrote: I just did it, it works directly except for 2 little mistakes (for people who are interested): The class method to override in StringValueHolder is #typeDecl and not #typeDesc. To get the actual

Re: [Pharo-users] Unified FFI: pointer of String as function parameter

2016-05-30 Thread Esteban Lorenzano
> On 30 May 2016, at 11:39, Julien Delplanque wrote: > > I just did it, it works directly except for 2 little mistakes (for people who > are interested): > > The class method to override in StringValueHolder is #typeDecl and not > #typeDesc. > > To get the actual String from the StringValueH

Re: [Pharo-users] Unified FFI: pointer of String as function parameter

2016-05-30 Thread Julien Delplanque
I just did it, it works directly except for 2 little mistakes (for people who are interested): The class method to override in StringValueHolder is #typeDecl and not #typeDesc. To get the actual String from the StringValueHolder, no need to call #readString on the result of #value, it causes

Re: [Pharo-users] Unified FFI: pointer of String as function parameter

2016-05-30 Thread Julien Delplanque
Thanks for the fast answer. :-) On 30/05/16 11:14, Esteban Lorenzano wrote: this is not the easiest part of FFI :) this is the simplest way: str := ExternalAddress new. “This will point to NULL” self callToMyFunction: str. pharoString := (str pointerAt: 1) readString. callToMyFunction: str

Re: [Pharo-users] Unified FFI: pointer of String as function parameter

2016-05-30 Thread Esteban Lorenzano
this is not the easiest part of FFI :) this is the simplest way: str := ExternalAddress new. “This will point to NULL” self callToMyFunction: str. pharoString := (str pointerAt: 1) readString. callToMyFunction: str self ffiCall: #( void function ( char ** str ) ) now, another way is

[Pharo-users] Unified FFI: pointer of String as function parameter

2016-05-30 Thread Julien Delplanque
Hello everyone, I have a C function to call from Pharo that looks like this: int my_function(char ** parameter); This function fill the pointer on the String given as parameter. How can I use this from pharo Unified FFI? I mean, how to get a pharo String filled by this function? Thanks in a

[Pharo-users] Mongo-BSON OID LargePositiveInteger increase

2016-05-30 Thread Holger Freyther
Hi, I tried to reach the author for several weeks but he doesn't seem to respond so I am trying to reach a wider audience to either confirm my suspicion or to be corrected. In http://smalltalkhub.com/#!/~MongoTalkTeam/mongotalk/diff/Mongo-BSON-HenrikSperreJohansen.43 the following change is d

Re: [Pharo-users] [ANN] New Pharo Glorp version and Book chapter

2016-05-30 Thread Sven Van Caekenberghe
Great work and well done, Esteban, much appreciated. Thank you ! > On 29 May 2016, at 20:27, Esteban A. Maringolo wrote: > > Hello all, > > During the first part of the year, and sponsored by the Pharo > Consortium, I started a new port of Glorp, the Object-Relational > mapper, based on the lat