Re: [Pharo-users] IconFactory - utility for creating icons in Pharo

2015-04-05 Thread kilon alios
yes exactly On Mon, Apr 6, 2015 at 1:18 AM, Ben Coman wrote: > > > On Mon, Apr 6, 2015 at 2:16 AM, kilon alios wrote: > >> >> "Maybe we are not talking about the same thing ?" >> >> We do I just brought an alternative. My initial question is why this data >> is not stored inside a Collection an

Re: [Pharo-users] Data scrapping in pharo: converting text with dates in Spanish

2015-04-05 Thread Paul DeBruicker
copyFrom:14 to: 17 copies 4 characters. You're testing a 4 character long string against a 3 character long string. That's why the test fails. Either change it to copyFrom: 15 to:17 or add a trimBoth send to month temp var. You may have an easier time not using temp variables in the worksp

Re: [Pharo-users] Data scrapping in pharo: Extracting tweets contents

2015-04-05 Thread Paul DeBruicker
Is this what you want? | source anUrl tweet | anUrl := 'https://twitter.com/offrayLC'. source := Soup fromString: (ZnEasy get: anUrl ) contents asString. tweet := (source findAllTagsByClass: 'ProfileTweet-text'). tweet collect:[:ea | ea text]. Offray wrote > Hi, > > I'm making a data scr

[Pharo-users] Data scrapping in pharo: Extracting tweets contents

2015-04-05 Thread Offray Vladimir Luna Cárdenas
Hi, I'm making a data scrapper from twitter. I know that twitter API is there, but I would like to make the scrapped data available to anyone, even if the person has not signed an API agreement. Also I think that this kind of external data is important for making agile visualization less self

Re: [Pharo-users] Object-oriented state-frozen logging

2015-04-05 Thread Peter Uhnák
Hi Sven, thanks for the answers; especially the article was very informative. I didn't even think of using Announcements, but seeing it in action is really cool! Peter On Sun, Apr 5, 2015 at 8:30 PM, Sven Van Caekenberghe wrote: > Hi Peter, > > I would call this object logging, plain and simpl

Re: [Pharo-users] IconFactory - utility for creating icons in Pharo

2015-04-05 Thread Ben Coman
On Mon, Apr 6, 2015 at 2:16 AM, kilon alios wrote: > > "Maybe we are not talking about the same thing ?" > > We do I just brought an alternative. My initial question is why this data > is not stored inside a Collection and instead individual methods are > preferred. > > But now that I thought it

Re: [Pharo-users] IconFactory - utility for creating icons in Pharo

2015-04-05 Thread kilon alios
"SVG is human readable (XML based), no ?" yeap , XML format , nothing special. Athens has an importer for them. "If they are not too large, it might even be quite useful to store them as strings in the image, although I do agree this is not scalable in the end. (But Seaside uses this mechanism to

Re: [Pharo-users] IconFactory - utility for creating icons in Pharo

2015-04-05 Thread Sven Van Caekenberghe
> On 05 Apr 2015, at 20:16, kilon alios wrote: > > Thank you for trying to help me understand :) You're welcome. > It was important for me to understand this because I want to import a lot of > SVG data into the image and I was not sure if I should use just SVG files or > instead use method

Re: [Pharo-users] Object-oriented state-frozen logging

2015-04-05 Thread Sven Van Caekenberghe
Hi Peter, I would call this object logging, plain and simple. Some of us, myself included, believe this is the way forward. You could have a look at how Zinc does logging (ZnLogEvent): https://www.youtube.com/watch?v=rIBbeMdFCys https://www.youtube.com/watch?v=gaUxPNq6_7c This article might

Re: [Pharo-users] IconFactory - utility for creating icons in Pharo

2015-04-05 Thread kilon alios
"Maybe we are not talking about the same thing ?" We do I just brought an alternative. My initial question is why this data is not stored inside a Collection and instead individual methods are preferred. But now that I thought it through I understand in practice would not make much difference. An

[Pharo-users] Object-oriented state-frozen logging

2015-04-05 Thread Peter Uhnák
Hi, this may be a bit tall order and I am not sure if possible, however I would like to know the state of objects at certain points. Currently what I would do is something like self log: 'anObject someProperty:'; logCr: anObject someProperty. however this is not very practical. So I would like

Re: [Pharo-users] IconFactory - utility for creating icons in Pharo

2015-04-05 Thread Sven Van Caekenberghe
Maybe we are not talking about the same thing ? You question the fact that the resource is stored as source code in the image instead of in a file ? If so, then the reason to keep them in image has to do with resource management, an image is self contained. I was talking about managing resourc

Re: [Pharo-users] Data scrapping in pharo: converting text with dates in Spanish

2015-04-05 Thread Offray Vladimir Luna Cárdenas
Thanks Ben and Sven, I will take a look to both of your suggestions. Cheers, Offray El 05/04/15 a las 12:28, Ben Coman escribió: On Mon, Apr 6, 2015 at 12:18 AM, Offray Vladimir Luna Cárdenas mailto:off...@riseup.net>> wrote: Hi all, I'm making a small data scrapper[1] in pharo

Re: [Pharo-users] Data scrapping in pharo: converting text with dates in Spanish

2015-04-05 Thread Ben Coman
On Mon, Apr 6, 2015 at 12:18 AM, Offray Vladimir Luna Cárdenas < off...@riseup.net> wrote: > Hi all, > > I'm making a small data scrapper[1] in pharo to feed some visualizations. > The data I'm scrapping contains strings with dates in Spanish like '16:21 - > 15 de jun. de 2011' and I would like to

Re: [Pharo-users] Data scrapping in pharo: converting text with dates in Spanish

2015-04-05 Thread Sven Van Caekenberghe
You could have a look at the ZTimestamp package (you can load it using the Configuration Browser, the repository is http://www.smalltalkhub.com/#!/~SvenVanCaekenberghe/Neo). It has a class ZTimestampFormat which currently formats & parses dates/times/timestamps in 4 languages "by example". You

[Pharo-users] Data scrapping in pharo: converting text with dates in Spanish

2015-04-05 Thread Offray Vladimir Luna Cárdenas
Hi all, I'm making a small data scrapper[1] in pharo to feed some visualizations. The data I'm scrapping contains strings with dates in Spanish like '16:21 - 15 de jun. de 2011' and I would like to convert them to proper dates in Smalltalk. So I started prototyping an Small script at [2], but

Re: [Pharo-users] NBSQLite3 on Pharo 4?

2015-04-05 Thread Bernat Romagosa
Ok, I just figured for some reason it doesn't work when I'm using Pharo via PharoLauncher... I just got the latest pharo4 for Linux, image + vm, and NBSQLite3 worked out of the box. Hope it helps somebody else! 2015-04-05 16:01 GMT+02:00 Bernat Romagosa : > Hi Pierce! > > I was just trying to o

Re: [Pharo-users] NBSQLite3 on Pharo 4?

2015-04-05 Thread Bernat Romagosa
Hi Pierce! I was just trying to open a connection as follows: NBSQLite3Connection openOn: 'test.db' The top of the stack says Error: Could not find accessor for variable named "symbolName" in NativeBoost>>#bootstrapLoadSymbol:ofLength:fromModule:into: Are you using Linux as well? 2015-04-05 15

Re: [Pharo-users] NBSQLite3 on Pharo 4?

2015-04-05 Thread Pierce Ng
On Sun, Apr 05, 2015 at 03:08:56PM +0200, Bernat Romagosa wrote: > I've been trying out some simple persistence options on Pharo 4 and I can't > seem to get NBSQLite3 to work. > Is it compatible with Pharo 4? As I've just written a blog post on Glorp-NBSQLite3 on Pharo 4 this long weekend, the ans

[Pharo-users] NBSQLite3 on Pharo 4?

2015-04-05 Thread Bernat Romagosa
I've been trying out some simple persistence options on Pharo 4 and I can't seem to get NBSQLite3 to work. I have the 32 bits lib present and where it should be, and this is the error I'm getting when opening a new connection: NBFFICallout>>loaderForArgNamed: NBFFICallout>>loaderForArgNamed:indir

Re: [Pharo-users] How to silently generate and remove code

2015-04-05 Thread Ben Coman
On Sun, Apr 5, 2015 at 12:01 AM, stepharo wrote: > > > Le 30/3/15 09:10, Marcus Denker a écrit : > > On 29 Mar 2015, at 10:32, stepharo wrote: >>> >>> Before that I would like that the compiler outputs classes definition in >>> an environment (that can be the default one) but that can be the on

Re: [Pharo-users] Association postcopy (Pharo 3)

2015-04-05 Thread Sven Van Caekenberghe
> On 05 Apr 2015, at 12:06, Hartmut wrote: > > Hi, > > the Dictionary>>postCopy comment reads: > "Must copy the associations, or later store will affect both the original and > the copy You interpret the comment incorrectly: it talks about the association itself, not the value that it holds.

[Pharo-users] Association postcopy (Pharo 3)

2015-04-05 Thread Hartmut
Hi, the Dictionary>>postCopy comment reads: "Must copy the associations, or later store will affect both the original and the copy However Association(Object)>>copy will neither copy 'key' (thats what I expect) nor 'value' (that makes the copy fail). I checked an older version of Squeak and V

Re: [Pharo-users] PUnQLite NB error

2015-04-05 Thread Bernat Romagosa
Ok, forget that! It seems the configuration downloads the unqlite.so library into the wrong path... just moving it to the image folder did the trick. 2015-04-05 11:26 GMT+02:00 Bernat Romagosa : > Hi list, > > I'm trying to get Masashi's PUnQLite package to work in Pharo 4 under > Ubuntu, and her

[Pharo-users] PUnQLite NB error

2015-04-05 Thread Bernat Romagosa
Hi list, I'm trying to get Masashi's PUnQLite package to work in Pharo 4 under Ubuntu, and here's what happens when I try to run the example code: |db| db := PqDatabase open: 'comments.db'. db disableAutoCommit. db transact: [ Object subclasses do: [:cls | | key | key := cls asString. db

Re: [Pharo-users] How to silently generate and remove code

2015-04-05 Thread Thierry Goubier
Le 04/04/2015 18:02, stepharo a écrit : Thierry this means that generating ring objects would help you? Maybe. Or maybe unifying Ring with what RB already does with its models (RBClass, etc...), and ensuring that Opal can work with those (at least do the bindings part, count the literals, et