Re: [Pharo-users] Morphic or forking bug?

2017-06-06 Thread Sven Van Caekenberghe
structure in the main thread from another > process, then why did Hilaire's suggestion not solve the problem? > > It seems to me, then, either way, it's an issue of multithreading...whether > my way or Hilaire's way. > > > > Sven Van Caekenberghe-

Re: [Pharo-users] [Pharo-dev] [ANN] Pharo 6.0 released!

2017-06-06 Thread Sven Van Caekenberghe
> On 6 Jun 2017, at 18:18, Ben Coman wrote: > > > > On Tue, Jun 6, 2017 at 11:11 PM, Esteban Lorenzano > wrote: > Dear World, > > The time has come for Pharo 6.0! > > Woot! > cheers -ben Super. Thank you all.

Re: [Pharo-users] How to deploy headless app without changes and source files?

2017-06-07 Thread Sven Van Caekenberghe
Andreas, What if you subclassed ChangesLog, say with something called NoChangesLog and installed that as its DefaultInstance (as accessed by #default), with an #install class side message. Then override #logChange: and #logSnapshot:andQuit: to do nothing. No need to subscribe to system announc

Re: [Pharo-users] How to deploy headless app without changes and source files?

2017-06-07 Thread Sven Van Caekenberghe
You could also subclass PharoFilesOpener with NoPharoFilesOpener, override #sourcesFileOrNil and #changesFileOrNil to just return nil, and #install it as Default. And hope that the callers can deal with the nils. > On 7 Jun 2017, at 09:38, Sven Van Caekenberghe wrote: > > Andreas,

Re: [Pharo-users] How to deploy headless app without changes and source files?

2017-06-07 Thread Sven Van Caekenberghe
> On 7 Jun 2017, at 09:38, Sven Van Caekenberghe wrote: > > I think that could/would work (the code in System-Sources was refactored > quite well). I added an issue and a slice (in the Pharo 6 inbox): https://pharo.fogbugz.com/f/cases/20126/Running-Without-Changes-and-Sour

Re: [Pharo-users] ZnClient: how to emulate a curl command

2017-06-07 Thread Sven Van Caekenberghe
Hi Offray, > On 7 Jun 2017, at 17:21, Offray Vladimir Luna Cárdenas > wrote: > > Hi, > > I'm prototyping some integration between Fossil and Pharo for the > creation of dynamic distributed web sites [1]. Now I would like to send > some messages to store serialized STON domain objects as Fossil

Re: [Pharo-users] [Pharo-dev] Pharo6 server deployment and no home directory

2017-06-08 Thread Sven Van Caekenberghe
Why would $HOME not be set ? And if it is not set / seems like a reasonable default. > On 9 Jun 2017, at 06:06, Holger Freyther wrote: > > >> On 9. Jun 2017, at 11:09, Holger Freyther wrote: >> >> > > >> a.) Behave like unix and resolve $HOME to '' >> >> $ unset HOME >> $ echo $HOME/.con

Re: [Pharo-users] STON Question

2017-06-14 Thread Sven Van Caekenberghe
use this logic. > > Stef > > > > On Sun, Jun 4, 2017 at 11:49 PM, Sven Van Caekenberghe wrote: > Stef, > > STON is like FUEL, it can write any object to a stream and read it back. > Although you can customise how this is done, only one way of doing so is >

[Pharo-users] [ARTICLE] Quick write me a Redis client

2017-06-14 Thread Sven Van Caekenberghe
com/svenvc/SimpleRedisClient Sven -- Sven Van Caekenberghe Proudly supporting Pharo http://pharo.org http://association.pharo.org http://consortium.pharo.org

Re: [Pharo-users] STON Question

2017-06-14 Thread Sven Van Caekenberghe
serialization is not what you > expect) Maybe Steph can have a look at your approach. > Christophe > - Sven Van Caekenberghe a écrit : >> STON cannot be used to write partial, manual output because it needs to see >> the full object graph (like FUEL does). >> >&

Re: [Pharo-users] Zink geo location data reading

2017-06-14 Thread Sven Van Caekenberghe
Hi, > On 14 Jun 2017, at 17:23, bachitoph wrote: > > Hi, > I'm playing around with Zink reading the geo location of any IP-address. > Evaluating the code below in a playground works fine. But what is the best > way to read the entity data of the ZnResponse instance I get back. Have I to > parse

Re: [Pharo-users] [ARTICLE] Quick write me a Redis client

2017-06-14 Thread Sven Van Caekenberghe
he server are sent as an array of bulk strings > > 2) to interact with as much services and servers as possible > > Is better as > > to interact with as many services and servers as possible > > > Tim > > Sent from my iPhone > > On 14 Jun 2017, at

Re: [Pharo-users] Loading Dr. Geo in Pharo6

2017-06-16 Thread Sven Van Caekenberghe
Here is how you can maintain compatibility: self environment at: #SessionManager ifPresent: [ :manager | manager default registerNetworkClassNamed: self name ] ifAbsent: [ Smalltalk addToStartUpList: self; addToShutDownList: self ] I use it for Zinc. > On 16 Jun 2017, at 09:21, Esteban L

Re: [Pharo-users] UUIDGenerator

2017-06-17 Thread Sven Van Caekenberghe
> On 17 Jun 2017, at 14:51, horrido wrote: > > Is there even one shred of documentation anywhere that shows how to use > UUIDGenerator? A thorough Google search reveals nothing! All I find are > reference materials. I'd like to see just one working code sample, no matter > how simple. Apart fro

Re: [Pharo-users] UUIDGenerator

2017-06-17 Thread Sven Van Caekenberghe
Why not just UUIDGenerator default next hex asUppercase. Or even UUID new hex asUppercase. ? Since you are using #generateBytes:forVersion: (which is an internal method BTW), you must be working in an older Pharo image (older than 6). We replaced the UUIDGenerator class, the class commen

Re: [Pharo-users] UUIDGenerator

2017-06-17 Thread Sven Van Caekenberghe
way. > > Thanks. You are working in an older version, with less documentation. > Sven Van Caekenberghe-2 wrote >> Why not just >> >> UUIDGenerator default next hex asUppercase. >> >> Or even >> >> UUID new hex asUppercase. >> >&

Re: [Pharo-users] Finding files in Pharo

2017-06-18 Thread Sven Van Caekenberghe
Hernán, We obviously don't have as many options as find, but this should get you started: Check the category 'enumerating' in AbstractFileReference, with methods like #childrenMatching: and #allChildrenMatching: Once you have a reference, you can use other meta data, see the 'accessing' prot

Re: [Pharo-users] Teapot session

2017-06-18 Thread Sven Van Caekenberghe
If you are talking about ZnServerSessions, the ones returned from ZnRequest>>#session, then the answer is that they are eligible for expiration and cleanup after 1 hour (see ZnServerSession>>#isValid). Cleanup happens inZnSingleThreadedServer>>#periodTasks. Right now, the expiration time is a f

Re: [Pharo-users] Teapot session

2017-06-19 Thread Sven Van Caekenberghe
, but I can't figure out how to do it. Suggestion? req session removeAttribute: #user > Sven Van Caekenberghe-2 wrote >> If you are talking about ZnServerSessions, the ones returned from >> ZnRequest>>#session, then the answer is that they are eligible for >>

Re: [Pharo-users] Teapot session

2017-06-19 Thread Sven Van Caekenberghe
otected) links s/he clicks are invalid. > Sven Van Caekenberghe-2 wrote >>> On 19 Jun 2017, at 15:40, horrido < > >> horrido.hobbies@ > >> > wrote: >>> >>> I've added an attribute to the session called #user... >>> >>>

Re: [Pharo-users] Regression with PNGReaderWriter in P6

2017-06-20 Thread Sven Van Caekenberghe
It is not, Ben has to redo his slice. > On 20 Jun 2017, at 18:29, Stephane Ducasse wrote: > > Did you check if the file is in the inbox repo? > > Stef > > On Tue, Jun 20, 2017 at 2:21 PM, Hilaire wrote: >> Almost there... >> >> Le 20/06/2017 à 05:05, Ben Coman a écrit : >>> @Hilaire, could y

Re: [Pharo-users] [ANN] Pharo 6.0 released!

2017-06-21 Thread Sven Van Caekenberghe
> On 21 Jun 2017, at 16:49, Eno wrote: > > Hi, community. > > congrats. > > I applied my project on smalltalkHub ( TkIDE) immediately to Pharo 6. > > It went well while installing the packages on both windows and osx > platforms. > > But serious conditions occurred while running my program o

Re: [Pharo-users] [ANN] success story: surgery appointments digitalised

2017-06-22 Thread Sven Van Caekenberghe
> On 22 Jun 2017, at 14:40, Norbert Hartl wrote: > > I'm sorry I forgot to post this much earlier. Anyway…. > > We are proud to add another success story to the pharo portfolio > > http://zweidenker.de/en/project/operationstermine-digitalisiert > > It is an operation planning tool for an eye

Re: [Pharo-users] How to use HTTPS (SSL) with Zinc

2017-06-23 Thread Sven Van Caekenberghe
Hi, > On 23 Jun 2017, at 20:41, horrido wrote: > > Okay, so I have my nice little Teapot app, but I'd like to run it as HTTPS. > As far as I can understand, to do this I must go through Zinc. However, the > docs on the web seem rather out of date. For example, I do not have > ZnZincServerAdapter

Re: [Pharo-users] How to use HTTPS (SSL) with Zinc

2017-06-23 Thread Sven Van Caekenberghe
--- Country Name (2 letter code) [AU]:BE State or Province Name (full name) [Some-State]: Locality Name (eg, city) []:Hasselt Organization Name (eg, company) [Internet Widgits Pty Ltd]:STfx.eu Organizational Unit Name (eg, section) []: Common Name (e.g. server FQDN or YOUR name) []:Sven Van Caekenb

Re: [Pharo-users] How to use HTTPS (SSL) with Zinc

2017-06-24 Thread Sven Van Caekenberghe
> On 24 Jun 2017, at 09:26, Attila Magyar wrote: > > Teapot uses ZnServer defaultServerClass by default, but you can configure > Teapot to use other kind of ZnServers like this. > > > > This is available only in the latest development version. That's very nice. Thanks for the reply, Attila.

Re: [Pharo-users] How to use HTTPS (SSL) with Zinc

2017-06-24 Thread Sven Van Caekenberghe
> On 24 Jun 2017, at 10:03, Attila Magyar wrote: > > Sven Van Caekenberghe-2 wrote >> (In regular mail, I don't see you code snippet, I copy it here). > > > Hmm, maybe because of the raw text tags. Is this visible? > > Transcript >show: 'Hell

[Pharo-users] Using Iceberg to edit regular text files ?

2017-06-27 Thread Sven Van Caekenberghe
Is it possible to use Iceberg to edit regular text files directly in Pharo ? Specifically I would like to be able to edit README.md and similar files. Especially when using a all-in-one, the repo on file becomes quite hidden, and the whole idea is to hide the command line anyway, so it feels as

Re: [Pharo-users] ZnConstants missing 511 in default Pharo 6.0 32 image?

2017-06-27 Thread Sven Van Caekenberghe
> On 27 Jun 2017, at 16:02, Juraj Kubelka wrote: > > Hi, > > I remember that Sven did some changes related to the constants in about month > or two months ago. But, I do not think that it was integrated to the Pharo 6 > release. Yeah, we forgot to put that in, it (the changed #initialize) is

Re: [Pharo-users] ZnConstants missing 511 in default Pharo 6.0 32 image?

2017-06-27 Thread Sven Van Caekenberghe
Hi Tim, > On 27 Jun 2017, at 15:50, Tim Mackinnon wrote: > > Hi - I have been slowly working my way through some of the pharo components > and tutorials and when trying out ZnEasy with a password protected api, I got > a talkback when I mistyped a password. > It looks like ZnConstants in a f

Re: [Pharo-users] Using Iceberg to edit regular text files ?

2017-06-27 Thread Sven Van Caekenberghe
> On 27 Jun 2017, at 16:05, Esteban Lorenzano wrote: > > Hi, > >> On 27 Jun 2017, at 15:55, Sven Van Caekenberghe wrote: >> >> Is it possible to use Iceberg to edit regular text files directly in Pharo ? >> >> Specifically I would like to b

Re: [Pharo-users] ZnConstants missing 511 in default Pharo 6.0 32 image?

2017-06-27 Thread Sven Van Caekenberghe
d, the #initialize did not change, hence it was not run. That is why I currently add a comment like "Forced source code change for automatic initialization: 20170510" where I change the date when needed. > Tim > >> On 27 Jun 2017, at 15:02, Sven Van Caekenberghe wrote: >>

Re: [Pharo-users] Are we able to run pharo images in a read only environment?

2017-06-27 Thread Sven Van Caekenberghe
> On 27 Jun 2017, at 21:00, Esteban A. Maringolo wrote: > > Interesting experiment. > > It would be good to know how fast does the image boot and start > execution in the context of a service billed at the sub second scale. Sadly I have the impression we lost some speed: ~/pharo64$ ./pharo Ph

Re: [Pharo-users] Are we able to run pharo images in a read only environment?

2017-06-27 Thread Sven Van Caekenberghe
> On 27 Jun 2017, at 18:05, Tim Mackinnon wrote: > > Hi - I am trying to run a pharo image in lambda (as an experiment) - however > I get an error from Pharo about not being able to write to the changes file? > > As I am just evaluating some code - I’m not really coding, so don’t need a > cha

Re: [Pharo-users] Are we able to run pharo images in a read only environment?

2017-06-28 Thread Sven Van Caekenberghe
> On 28 Jun 2017, at 13:52, JeremieRegnault > wrote: > > Tim Mackinnon wrote >> FYI: I managed to get it to work - I still get the message about trying to >> save the changes file and it not being possible - however my error was not >> specifying —no-default-preferences and also around correc

Re: [Pharo-users] ZdcPluginMissing: SSL/TLS plugin initailization failed (VM plugin missing ? OS libraries missing ?)

2017-06-28 Thread Sven Van Caekenberghe
> On 29 Jun 2017, at 06:20, Offray Vladimir Luna Cárdenas > wrote: > > Hi, > > I'm trying to deploy a small web app in Teapot, following the Enterprise > Pharo documentation and so, using Pharo 4 in the server. Installation > went fine, but when I try to actually use the app and I get this err

Re: [Pharo-users] Question about writeStream

2017-06-29 Thread Sven Van Caekenberghe
> On 29 Jun 2017, at 16:07, Jérémie Regnault > wrote: > > Hi, > > I am writing tests with streams, and I noticed that a stream opened on a > string doesn't close, but FileStreams do close. Is it normal ? How do you mean that ? That FileStreams close automatically ? That is indeed the case,

Re: [Pharo-users] Pharo6 playground saving semantics and .changes?

2017-06-29 Thread Sven Van Caekenberghe
One of the more hidden Playground features are named Pages. Double-click the page tab title and give it a name, it will then be saved automagically in pharo-local/play-stash (and auto saves on changes from then on). I use that all the time. > On 29 Jun 2017, at 16:45, Tim Mackinnon wrote: > >

Re: [Pharo-users] Pharo on the SqueakJS virtual machine

2017-06-29 Thread Sven Van Caekenberghe
> On 29 Jun 2017, at 19:14, Pavel Krivanek wrote: > > WOW!!! +10 > Thank you all very much for this effort. > > -- Pavel > > > > 2017-06-29 18:56 GMT+02:00 Craig Latta : > > Well, that didn't take as long as I thought. :) Probably due to > progress Bert made since we looked at it at

Re: [Pharo-users] Are we able to run pharo images in a read only environment?

2017-06-30 Thread Sven Van Caekenberghe
> On 27 Jun 2017, at 21:15, Sven Van Caekenberghe wrote: > > >> On 27 Jun 2017, at 21:00, Esteban A. Maringolo wrote: >> >> Interesting experiment. >> >> It would be good to know how fast does the image boot and start >> execution in the contex

Re: [Pharo-users] FUEL documentation

2017-06-30 Thread Sven Van Caekenberghe
> On 30 Jun 2017, at 22:40, Juraj Kubelka wrote: > > (sorry, I have accidentally pressed send button) > > Hi, > > Is there any documentation about FUEL? I would like to understand in more > detail what data are serialized, if I can somehow alter it (filter it) > explicitly, and how can I han

Re: [Pharo-users] Validate password with PBKDF2

2017-07-01 Thread Sven Van Caekenberghe
Erik, > On 1 Jul 2017, at 09:41, Erik Stel wrote: > > Hi Francis, > > You write: > > Pharo Smalltalk Users mailing list wrote >> FIY >> >> UUID new asByteArray >> >> does not give a ByteArray because UUID is a subclass of ByteArray and >> asByteArray returns self > > (Entering teacher mode)

Re: [Pharo-users] Running a headless server

2017-07-04 Thread Sven Van Caekenberghe
> On 4 Jul 2017, at 07:26, sergio ruiz wrote: > > Hi, all.. Did you read https://ci.inria.fr/pharo-contribution/job/EnterprisePharoBook/lastSuccessfulBuild/artifact/book-result/DeploymentWeb/DeployForProduction.html ? TL;DR use the config handler to load/update code and save your image st

Re: [Pharo-users] Are we able to run pharo images in a read only environment?

2017-07-05 Thread Sven Van Caekenberghe
t me for debugging purposes, he is the expert, I don't know if there are both 32 and 64 bit versions (or even if there is much difference, if any). > Tim > >> On 30 Jun 2017, at 14:43, Sven Van Caekenberghe wrote: >> >>> >>> On 27 Jun 2017, at 21:15, Sven

Re: [Pharo-users] Are we able to run pharo images in a read only environment?

2017-07-05 Thread Sven Van Caekenberghe
> On 5 Jul 2017, at 19:03, Henrik Sperre Johansen > wrote: > > Sven Van Caekenberghe-2 wrote >>> On 27 Jun 2017, at 21:15, Sven Van Caekenberghe < > >> sven@ > >> > wrote: >>> >>> >>>> On 27 Jun 2017, at 21:00, Est

Re: [Pharo-users] Where did the XMLDOMParse go?

2017-07-05 Thread Sven Van Caekenberghe
Hi Twan, > On 6 Jul 2017, at 05:10, Twan van der Schoot wrote: > > Hi All, > > > Question: Is there any Pharo "endorsed" XML support for Pharo v6.0 and if > so, where can I find it? > > I'm new to Pharo and I'm currently cutting my teeth into v6.0 attempting to > program the XML-Browser ex

Re: [Pharo-users] Using the Debugger to write code

2017-07-11 Thread Sven Van Caekenberghe
> On 12 Jul 2017, at 08:42, Marcus Denker wrote: > > >> On 12 Jul 2017, at 08:35, K K Subbu wrote: >> >> On Wednesday 12 July 2017 08:33 AM, horrido wrote: >>> But for the life of me, I can't figure out how to create new classes for my >>> application from within the Debugger. Must I create n

Re: [Pharo-users] Using the Debugger to write code

2017-07-11 Thread Sven Van Caekenberghe
Yes, but these are all inside the method editor. I wanted to start with (Motivation fromString: 'foo') sayIt. in a playground/workspace. But with just a DNU it works. > On 12 Jul 2017, at 08:49, p...@highoctane.be wrote: > > What is not working? Check this: > > > > Hit Define new class and

[Pharo-users] [FUN] Get ready to celebrate

2017-07-13 Thread Sven Van Caekenberghe
https://en.wikipedia.org/wiki/Unix_time "Right now" DateAndTime now asUnixTime. "Coming up" DateAndTime fromUnixTime: 15. "How long till then ?" (DateAndTime fromUnixTime: 15) - DateAndTime now. ;-) Sven

Re: [Pharo-users] Understanding DateTime and Locale and formatting times in a locale?

2017-07-15 Thread Sven Van Caekenberghe
Hi Tim, Great that you found this out. You can also use the 'by-example formatter/parser'. ZTimestampFormat verbose timezone: (ZTimezone id: 'America/Halifax'); format: ZTimestamp now. => 'Saturday, 15-July-2017 04:04:12 AM (-03:00)' (ZTimestampFormat fromString: 'Sat,

Re: [Pharo-users] Encoding and conversion problem

2017-07-18 Thread Sven Van Caekenberghe
> On 18 Jul 2017, at 15:42, Cyril Ferlicot wrote: > > Hi, > > I did a refactoring in Moose in order to use the encoding detector > that Sven did some weeks ago while reading a file. > > With the latest stable version of ZincHTTPComponent, I can get the > encoding like this: > > fileReference

Re: [Pharo-users] Encoding and conversion problem

2017-07-18 Thread Sven Van Caekenberghe
> On 18 Jul 2017, at 16:10, Cyril Ferlicot wrote: > > On Tue, Jul 18, 2017 at 3:54 PM, Sven Van Caekenberghe wrote: >> >> These are all aliases [ see: https://en.wikipedia.org/wiki/ISO/IEC_8859-1 ]. >> >> So you could add it, yes >> >> But why us

Re: [Pharo-users] [Pharo-dev] [Ann] Keccak hashing algorithm

2017-07-18 Thread Sven Van Caekenberghe
Great work. I love libraries like these. I am a bit confused though, in your #updateString: you seem to be implementing UTF-8 encoding, something we already have. Normally, hashing algorithms are defined on bytes and result in bytes (yours returns a plain Array, which is also strange). It seem

Re: [Pharo-users] Creating the smallest server runtime footprint

2017-07-19 Thread Sven Van Caekenberghe
> On 19 Jul 2017, at 14:55, Esteban A. Maringolo wrote: > > I don't know how "mainstream" solutions perform on AWS Lambda or EC2, > but this seems really fast to me. 50 ms is great, assuming it bills by > every 100ms, you still have room to perform your computation. Yes, it seems incredibly fas

Re: [Pharo-users] object serialization, STON & PharoJS

2017-07-20 Thread Sven Van Caekenberghe
> On 16 Jul 2017, at 21:00, Siemen Baader wrote: > > Hi all, > > I’m trying to transpile the STON class to JavaScript with PharoJS to use it > in a client side web application. The goal is it to retrieve object(graphs) > from the server and deserialize them in the frontend via xhr. > > But

Re: [Pharo-users] object serialization, STON & PharoJS

2017-07-20 Thread Sven Van Caekenberghe
> On 20 Jul 2017, at 12:08, Diego Lont wrote: > > Hi, > > What I remember of STON is that it simply puts out the entire tree. So it > might include things you don’t want (like thisContext), and also does not > handle loops well. But that is from memory, I might be wrong there. Hmm, I think y

Re: [Pharo-users] Zinc newbie question: How to get file metadata from Dropbox

2017-07-20 Thread Sven Van Caekenberghe
> On 20 Jul 2017, at 19:57, Johannes Brauer wrote: > > Hi! > > To download a file from Dropbox is easy: > > ZnClient new > https; host: 'content.dropboxapi.com'; > addPath: '2'; addPath: 'files'; addPath: 'download'; > headerAt: 'Authorization' put: > 'Bearer '; > headerAt: 'Dropbox-API

Re: [Pharo-users] NeoCSV change proposal

2017-07-22 Thread Sven Van Caekenberghe
Peter, > On 22 Jul 2017, at 14:12, Peter Uhnak wrote: > > Hi, > > this is a continuation of an older thread about quoting fields only when > necessary. ( > http://forum.world.st/NeoCSVWriter-automatic-quotes-td4924781.html ) > > I've attached fileouts of NeoCSV packages with the addition (I

Re: [Pharo-users] NeoCSV change proposal

2017-07-22 Thread Sven Van Caekenberghe
Hi Peter, > On 22 Jul 2017, at 14:12, Peter Uhnak wrote: > > Hi, > > this is a continuation of an older thread about quoting fields only when > necessary. ( > http://forum.world.st/NeoCSVWriter-automatic-quotes-td4924781.html ) > > I've attached fileouts of NeoCSV packages with the addition

Re: [Pharo-users] NeoCSV change proposal

2017-07-22 Thread Sven Van Caekenberghe
ains dangerous characters and only then adding the quotes. I guess this makes most sense in the context of generating a CSV file for humans to edit. > @Svn Once the change is integrated could you add a little paragraph to > the chapter? > > Stef > > On Sat, Jul 22, 2017 at

Re: [Pharo-users] NeoCSV change proposal

2017-07-22 Thread Sven Van Caekenberghe
ond'" > > [ ByteString findFirstInString: s10 inCharacterSet: ',"', String crlf > startingAt: 1 ] bench. "'1,187,324 per second'" > [ ByteString findFirstInString: s100 inCharacterSet: ',"', String crlf > startingAt: 1

Re: [Pharo-users] NeoCSV change proposal

2017-07-23 Thread Sven Van Caekenberghe
00,046 per second'" >>> [ {'"'. ','. String cr. String lf } anySatisfy: [ :each | s100 >>> includesSubstring: each ] ] bench. "'495,482 per second'" >>> >>> [ s10 includesAny: { $,. $". Character cr. Char

Re: [Pharo-users] [Pharo-dev] [ANN] Pharo 6.1 (summer) released!

2017-07-24 Thread Sven Van Caekenberghe
Thank you, sounds like a really cool move. > On 24 Jul 2017, at 13:56, Esteban Lorenzano wrote: > > Hi, > > We are releasing Pharo 6.1. > Usually, between each major version we just apply bugfixes changing the build > number and not announcing new versions but this time is different since th

[Pharo-users] Issue with the --headless option on Windows 10

2017-07-25 Thread Sven Van Caekenberghe
Hi, User Herby Vojčík seems to have an issue with the --headless option on Windows 10 https://pharo.fogbugz.com/f/cases/20271/ZnServer-managedServers-disappear-when-headless-mode-used I cannot reproduce his problem. Maybe there are Windows users out there who can have a look and help him ? Th

Re: [Pharo-users] Issue with the --headless option on Windows 10

2017-07-26 Thread Sven Van Caekenberghe
> On 25 Jul 2017, at 19:46, Cyril Ferlicot D. wrote: > > Le 25/07/2017 à 19:37, Sven Van Caekenberghe a écrit : >> Hi, >> >> User Herby Vojčík seems to have an issue with the --headless option on >> Windows 10 >> >> https://pharo.fogbugz.com/f/

Re: [Pharo-users] NeoCSV on Irregular Files

2017-07-26 Thread Sven Van Caekenberghe
I agree. If the file is non-homegeneous it is not longer CSV by definition. Holding on to the original stream and creating new readers for each section is one option, an other one could be to add a #reset method. The big question is how to known when one section begins/ends. NeoCSVReader holds

Re: [Pharo-users] NeoJSON "conditional" parsing/mapping

2017-07-26 Thread Sven Van Caekenberghe
Esteban, I had a quick look at the spec you mentioned. I am a bit puzzled though. Result can be anything, so how are you going to map that to specific classes (and why) ? That would require serious prior knowledge and even then, not every situation can be mapped easily to a class. You speak ab

Re: [Pharo-users] Zinc: Are start and stop meant to be idempotent?

2017-07-27 Thread Sven Van Caekenberghe
Herby, In Zn #bleedingEdge === Name: Zinc-HTTP-SvenVanCaekenberghe.464 Author: SvenVanCaekenberghe Time: 27 July 2017, 1:10:32.048978 pm UUID: 63589259-ac11-0d00-9153-678c0082c0ce Ancestors: Zinc-HTTP-SvenVanCaekenberghe.460 Make ZnSingleThreadedServer>>#start idempotent (since it called #stop a

Re: [Pharo-users] Critical issues for Dr. Geo on P6

2017-07-28 Thread Sven Van Caekenberghe
> On 28 Jul 2017, at 15:13, p...@highoctane.be wrote: > > Changing too many things at once is indeed annoying. > > Now, I am ready to live with that but at one point, I think that we will have > to move to something like I see done in other fast evolving ecosystems. > > In Hadoop for example,

Re: [Pharo-users] STON question

2017-07-30 Thread Sven Van Caekenberghe
First question is, why do anything at all ? STON toStringPretty: Then loading is as simple as STON fromString: '...' Next step is to customise how STON output is generated (but again, why ?). You do that by writing both an #stonOn: and a #fromSton: method (look for implementors for examp

Re: [Pharo-users] Zinc Crash / semaphores

2017-07-31 Thread Sven Van Caekenberghe
Do you make any external (REST/network) calls yourself while handling your requests ? Do you do any kind of caching yourself ? > On 31 Jul 2017, at 12:40, p...@highoctane.be wrote: > > I have this crash log on a server. > > https://gist.github.com/philippeback/9527b74c081629c2b05466353c4326b3

Re: [Pharo-users] How to find where pharo is killing processor power?

2017-08-16 Thread Sven Van Caekenberghe
Are you using VNC ? > On 16 Aug 2017, at 21:03, sergio ruiz wrote: > > > hey all.. my current pharo implementation is running super serious processor > power, but it shouldn’t be doing much. > > > > how would I go about tracking this inside the pharo image? > > Thanks! > > > > peace

Re: [Pharo-users] ZnConstants class>>#httpStatusCodes and cloudflare

2017-08-18 Thread Sven Van Caekenberghe
Hi Holger, It is probably not a good idea to be too strict here. I committed the following to #bleedingEdge === Name: Zinc-HTTP-SvenVanCaekenberghe.465 Author: SvenVanCaekenberghe Time: 18 August 2017, 2:11:25.092807 pm UUID: da9ed1c3-6713-0d00-bd88-7a0d0e6057cd Ancestors: Zinc-HTTP-SvenVanCaeke

Re: [Pharo-users] [Github Repo] I just pushed template to quickly start Pharo / Teapot

2017-08-18 Thread Sven Van Caekenberghe
The inspector extension are really cool ! > On 15 Aug 2017, at 01:27, Torsten Bergmann wrote: > > Hi sergio, > > why not use my existing "Tealight" project which is (similar to Teapot) also > available from Pharo catalog. > It is still lightweight as it is just a few extensions to Teapot. > >

Re: [Pharo-users] Object>>#name deprecated in Pharo 6 -- what do I need to do?

2017-08-24 Thread Sven Van Caekenberghe
It says so "on the tin" i.e. in the exception itself "Implement your own domain representation of an object, or use #asString or #printString instead." ;-) > On 24 Aug 2017, at 14:49, H. Hirzel wrote: > > Hello > > In the last days there was a discussion that > > Object>>#name > > >

Re: [Pharo-users] Zn classes documentation in Pharo 6? ZnClient and ZnServer tutorials?

2017-08-25 Thread Sven Van Caekenberghe
Hannes, Zinc HTTP Components started in 2010 and has been part of Pharo since version 1.3. Like Pharo it evolves (no longer on a fundamental level, but certainly on features and details). Over the years lots of documentation has been written, not all of it is still maintained. I would say the

Re: [Pharo-users] Tutorial: Building and deploying your first web app with Pharo (Zinc HTTP Components)

2017-08-25 Thread Sven Van Caekenberghe
> On 25 Aug 2017, at 11:35, H. Hirzel wrote: > > Hello > > There is a tutorial >Building and deploying your first web app with Pharo > > at >zn.stfx.eu/zn/index.html > > It is for Pharo 2 and 3. > > Does it still work in Pharo 6? Yes, but this document is more recent: https://ci.

Re: [Pharo-users] Standalone HTML Model

2017-09-08 Thread Sven Van Caekenberghe
There is ZnHtmlOutputStream, not really a DSL, but it might help. > On 9 Sep 2017, at 00:15, Sean P. DeNigris wrote: > > I'd like to create HTML via a DSL, like Seaside's canvas builder, but without > loading a whole web framework. Any ideas? > > > > - > Cheers, > Sean > -- > Sent from: h

Re: [Pharo-users] STON: Skip Inst Var

2017-09-09 Thread Sven Van Caekenberghe
> On 9 Sep 2017, at 05:44, Sean P. DeNigris wrote: > > I was migrating some data from Pharo 4 to Pharo 6.1 and fell over the fact > that FileSystem has a #workingDirectory instVar in the source, but not in > the target. I ended up monkey patching STON until the objects were loaded > and then rev

Re: [Pharo-users] STON: Skip Inst Var

2017-09-09 Thread Sven Van Caekenberghe
> On 9 Sep 2017, at 16:11, Sean P. DeNigris wrote: > > Sven Van Caekenberghe-2 wrote >> You would have to change the way the offending object get handled. > > Any suggestions on how to do that? Is there a particularly good place to > hook in? Implement FileSystem cla

Re: [Pharo-users] STON: Skip Inst Var

2017-09-09 Thread Sven Van Caekenberghe
> On 9 Sep 2017, at 18:00, Sean P. DeNigris wrote: > > Sven Van Caekenberghe-2 wrote >> Implement... > > Thanks! I added this to the wiki so we don't lose track of it: > https://github.com/svenvc/ston/wiki/Cookbook Cool, thanks.

Re: [Pharo-users] About neoCSV

2017-09-12 Thread Sven Van Caekenberghe
I am not sure I understand 100% what you want, but consider this example: (NeoCSVReader on: 'foo bar baz 1 2 3 11 22 33' readStream) separator: $ ; namedColumnsConfiguration; upToEnd. => an Array(a Dictionary(#bar->'2' #baz->'3' #foo->'1' ) a Dictionary(#bar->'22' #baz->'

Re: [Pharo-users] help needed regarding conversion of hex to binary

2017-09-12 Thread Sven Van Caekenberghe
ByteArray readHexFrom: #[ 0 1 2 3 4 5 6 7 8 9 10 ] hex. > On 12 Sep 2017, at 14:47, Ben Coman wrote: > > > > On Tue, Sep 12, 2017 at 2:55 AM, Casimiro de Almeida Barreto > wrote: > Is there a (easy and ready) way to convert hexa to binary. I mean, convert > data that was transformed > >

Re: [Pharo-users] About neoCSV

2017-09-12 Thread Sven Van Caekenberghe
ead all the doc and is it there? > Because yes this is exactly what I was looking for. > > On Tue, Sep 12, 2017 at 9:14 AM, Sven Van Caekenberghe wrote: >> I am not sure I understand 100% what you want, but consider this example: >> >> (NeoCSVReader on: &#x

Re: [Pharo-users] How to convert avoiding parser

2017-09-13 Thread Sven Van Caekenberghe
> On 13 Sep 2017, at 19:44, Casimiro de Almeida Barreto > wrote: > > Hello, > > Perhaps someone can help me with this problem: I'm saving a key pair in a > mariadb/mysql table as follows: > > str := 'INSERT INTO chaves_de_encriptacao (numero_funcional, > chave_privada, chave_publica) '.

Re: [Pharo-users] ZnHtmlOutputStream Attributes

2017-09-20 Thread Sven Van Caekenberghe
> On 20 Sep 2017, at 20:36, Sean P. DeNigris wrote: > > Any reason to pass as a flat collection of pairs rather than a collection of > associations or a dictionary? IMHO the former is less intention revealing > and potentially confusing… I probably did it because it was the least amount of typi

Re: [Pharo-users] Pharo 7 license question

2017-09-20 Thread Sven Van Caekenberghe
> On 20 Sep 2017, at 21:10, Jose San Leandro wrote: > > Nothing to add to the particular question, but I'm writing to express how > much I disagree when you use adjectives such as "viral" or nouns such as > "infection" to describe GPL. > > I'm a FSF supporter for a long time, and while I'm us

Re: [Pharo-users] NeoJSON and polymorphism

2017-09-24 Thread Sven Van Caekenberghe
Hi Juraj, This would be a simpler form of the type/class tags that are often used in JSON encoding. Since there are many ways to do this, there cannot be one solution. NeoJSON mapping was not designed to cover these cases. Nor is JSON meant to do this. STON is one (rather elegant if I may say s

Re: [Pharo-users] Is a non-break space whitespace?

2017-09-25 Thread Sven Van Caekenberghe
> On 25 Sep 2017, at 09:53, Richard Sargent > wrote: > > Ben Coman wrote >> On Sun, Sep 24, 2017 at 7:53 PM, PBKResearch < > >> peter@.co > >> > >> wrote: >> >>> Hello All >>> >>> >>> >>> I have a little puzzle to disturb your Sunday lunch, maybe. I have been >>> scraping text data from w

Re: [Pharo-users] NeoJSON and polymorphism

2017-09-26 Thread Sven Van Caekenberghe
> On 25 Sep 2017, at 17:14, Juraj Kubelka wrote: > > Hi Sven, > > thank you! > > In the NeoJSON repository, you likely want to merge > Neo-JSON-Core-SvenVanCaekenberghe.43 and 44. And the same for the test cases. I did, thanks ! >> On Sep 24, 2017, at 06:05

Re: [Pharo-users] Need help with NeoJSON reader definition

2017-09-26 Thread Sven Van Caekenberghe
Hi Joachim, Have a look at this new example: === Name: Neo-JSON-Tests-SvenVanCaekenberghe.43 Author: SvenVanCaekenberghe Time: 26 September 2017, 2:14:01.71055 pm UUID: f40af758-7816-0d00-89cd-641e08d6220e Ancestors: Neo-JSON-Tests-SvenVanCaekenberghe.42 Add #testVirtualTransferObject as another

Re: [Pharo-users] About encoding

2017-09-26 Thread Sven Van Caekenberghe
> On 26 Sep 2017, at 17:25, Stephane Ducasse wrote: > > Hi sven > > the web site I was using remove the file for my book. > So I copied the file on github. > When I open the file with texmate it tells that the encoding is western-latin1 > but when I try to load it as follow I get an UTF-8 illeg

Re: [Pharo-users] About encoding

2017-09-26 Thread Sven Van Caekenberghe
You can convert it in Pharo, of course: (FileLocator desktop / 'mots.txt') writeStreamDo: [ :out | out << (ZnCharacterEncoder latin1 decodeBytes: (ZnClient new beBinary; get: 'https://raw.githubusercontent.com/SquareBracketAssociates/LearningOOPWithPharo/master/resources/

Re: [Pharo-users] About encoding

2017-09-26 Thread Sven Van Caekenberghe
> On 26 Sep 2017, at 18:09, Stephane Ducasse wrote: > > Here is a script that should work to convert from latin1 to utf-8. > Thanks to your book and trial and error. > > | str wstr | > str := ('listeDeMotsFrancaisFrGut.txt' asFileReference readStreamDo: [ :in | > (ZnCharacterReadStream on: in

Re: [Pharo-users] Force headless mode

2017-09-26 Thread Sven Van Caekenberghe
> On 26 Sep 2017, at 18:06, Cyril Ferlicot wrote: > > On Tue, Sep 26, 2017 at 5:59 PM, Esteban Lorenzano > wrote: >> >> >> it is not. >> specially on windows. >> >> vm handles the creation of host window and you will always have one. >> >> now… if you wait one week, I will have ready the (

Re: [Pharo-users] Reading a text file line by line

2017-10-02 Thread Sven Van Caekenberghe
Hi, > On 2 Oct 2017, at 13:07, Dirk Olmes wrote: > > Hi, > > I'm trying to get started with Pharo doing something really simple - at > least that's what I thought ... I'm trying to read a text file line by line. > > If I use File named: '/tmp/linex.txt' readStream nextLine I'll get a > debugg

Re: [Pharo-users] Reading a text file line by line

2017-10-02 Thread Sven Van Caekenberghe
ns. > On 2 Oct 2017, at 15:17, Stephane Ducasse wrote: > > Sven I do not see the binary stream. Is it ZnCharacterReadStream? > > Stef > > On Mon, Oct 2, 2017 at 1:22 PM, Sven Van Caekenberghe wrote: >> Hi, >> >>> On 2 Oct 2017, at 13:07, Dirk Olmes wr

Re: [Pharo-users] Pharo 7 license question

2017-10-02 Thread Sven Van Caekenberghe
> On 2 Oct 2017, at 19:45, Jimmie Houchin wrote: > > Back on topic. > > To my understanding, if I should port anything GPL licensed that I needed > from some language to a C library and licensed it GPL. Then I called my new > GPL C library via UFFI. I should have no problems at all. Is that

Re: [Pharo-users] Pharo 7 license question

2017-10-02 Thread Sven Van Caekenberghe
Jimmie, Since you started this thread, I have to ask. You say you are an advocate of open source software. OK. But are you just on the consumer side or also on the producer side ? In other words, have you written/published/supported any non-trivial open source software ? Are you an academic o

Re: [Pharo-users] Reading a text file line by line

2017-10-03 Thread Sven Van Caekenberghe
that guille did that for File. > > Stef > > On Mon, Oct 2, 2017 at 3:20 PM, Sven Van Caekenberghe wrote: > > If you do > > > > (File named: '/tmp/lines.txt') readStream[Do:] > > > > you seem to get a binary stream (this is the new implementa

  1   2   3   4   5   6   7   8   9   10   >