Re: [Pharo-users] how to properly create icons

2015-04-04 Thread Esteban Lorenzano
On 04 Apr 2015, at 09:14, Peter Uhnák i.uh...@gmail.com wrote: Hi, I've been using using ThemeIconscreateIconMethodsFromFile:directory: method to create my own icons, however there are some reported problems https://pharo.fogbugz.com/f/cases/15277/some-icons-from-ThemeIcons-are-broken

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

2015-04-04 Thread kilon alios
Tried your install instructions but give me an error[1] about being unable to resolve IconFactory , tries to look inside my package-cache of my image (pharo 4 - 40591 -MACOSX 10). Interesting tool, out of coincidence I am also working with icons but in my cases its SVG icons using Bloc . [1]

[Pharo-users] videos of 4 min showing a cool pharo XP

2015-04-04 Thread stepharo
I would like that we all brainstorm about videos of 4 min showing a cool pharo XP I think about - haltif implementation - on the fly changing somehting - chipmunks - earth shadder - picasa scripting. …. - rotating cubes I think that doing some teasers in the GT vein

Re: [Pharo-users] how to properly create icons

2015-04-04 Thread Peter Uhnák
Thanks Esteban! Peter On Sat, Apr 4, 2015 at 9:29 AM, Esteban Lorenzano esteba...@gmail.com wrote: On 04 Apr 2015, at 09:14, Peter Uhnák i.uh...@gmail.com wrote: Hi, I've been using using ThemeIconscreateIconMethodsFromFile:directory: method to create my own icons, however there are some

[Pharo-users] how to properly create icons

2015-04-04 Thread Peter Uhnák
Hi, I've been using using ThemeIconscreateIconMethodsFromFile:directory: method to create my own icons, however there are some reported problems https://pharo.fogbugz.com/f/cases/15277/some-icons-from-ThemeIcons-are-broken with the code it generates. My questions are: 1) what exactly is the

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

2015-04-04 Thread Peter Uhnák
Hi, since I've been making new icons lately for my project I was frustrated with constantly copying code and methods around... so I've made a small utility for it http://smalltalkhub.com/#!/~peteruhnak/IconFactory ​ on top of creating the icons it can add extra stuff like GTInspector support.

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

2015-04-04 Thread Peter Uhnák
That's strange : try this please Gofer new smalltalkhubUser: 'peteruhnak' project: 'IconFactory'; package: 'IconFactory'; load. In the meantime I'll be fixing the configuration... but it should be ok. :/ Peter On Sat, Apr 4, 2015 at 2:00 PM, kilon alios kilon.al...@gmail.com wrote:

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

2015-04-04 Thread Peter Uhnák
createIconsFromDirectory seems to see only the first png, maybe because its too large how large? createIconFromFile gives me a MNU it accepts a FileReference, not a string; I should put guard there. Peter

Re: [Pharo-users] Devnology presentation slides

2015-04-04 Thread Offray Vladimir Luna Cárdenas
Thanks Stephan and Diego, Added to my zotero subcollection on Smalltalk/Pharo: https://www.zotero.org/groups/diseo_y_creacion_phd_msc_universidad_de_caldas/items/collectionKey/IVQ5BUUC/itemKey/272G6IG3/itemPage/7 Cheers, Offray El 03/04/15 a las 16:35, Stephan Eggermont escribió: On

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

2015-04-04 Thread Peter Uhnák
Aha, of course. The program makes assumptions about the file name and since it is naming the method like the file it fails, because you can't have - in method name. I could change it so it removes all non-alphanumeric characters from the name. Peter On Sat, Apr 4, 2015 at 3:52 PM, kilon alios

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

2015-04-04 Thread kilon alios
yes thats better , install works, first step works too. createIconsFromDirectory seems to see only the first png, maybe because its too large. createIconFromFile gives me a MNU: ByteString base [1]. Why those methods are not on the class side ? [1]ByteString(Object)doesNotUnderstand: #base

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

2015-04-04 Thread Peter Uhnák
On Sat, Apr 4, 2015 at 2:46 PM, kilon alios kilon.al...@gmail.com wrote: actually i was wrong its not that large, only 34kbs , I have also attached it if you want to take a look at it. This works just fine for me; does it show any error for you? Or did it just create one file and then gave

Re: [Pharo-users] [ANN] New service: The Pharo catalog

2015-04-04 Thread stepharo
read the page. there is an explanation. Le 4/4/15 14:47, Alexandre Bergel a écrit : Hi!! This an excellent idea. How to provide a description for my project? Alexandre Le 1 avr. 2015 à 07:13, Esteban Lorenzano esteba...@gmail.com mailto:esteba...@gmail.com a écrit : Hi, Last week I

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

2015-04-04 Thread Sven Van Caekenberghe
Because composition/decomposition is good (among others for re-use), because with separate entries you can browse them more easily, because we don't like long methods, ... You get the idea ;-) On 04 Apr 2015, at 16:45, kilon alios kilon.al...@gmail.com wrote: once more I really dont like

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

2015-04-04 Thread Peter Uhnák
Or it seems cheap enough to just send #asFileReference to give the user a bit of flexibility Yep, I've changed that. Interesting that google is showing me, that you've replied 8 minutes before I even posted it. :)

Re: [Pharo-users] [ANN] New service: The Pharo catalog

2015-04-04 Thread Alexandre Bergel
Hi!! This an excellent idea. How to provide a description for my project? Alexandre Le 1 avr. 2015 à 07:13, Esteban Lorenzano esteba...@gmail.com a écrit : Hi, Last week I made a super small project to consolidate all projects published in all metarepos. Is very simple, in the

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

2015-04-04 Thread Peter Uhnák
create file ? i thought the class only creates methods yeah, I mean method anyway, the method is created , but it does not proceed to next png. Shouldn create a method for each png it finds in the directory ? yes it should, it operates on a collection, so if dir allFiles select: [ :each |

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

2015-04-04 Thread kilon alios
I found the problem Norse_largeThe '-' prefix works only for literal numbers (use #negated instead) - -cpcIconContents Private - Method generated with the content of the file File @ /Users/kilon/Downloads/Norse_large-cpc.png looks like it does not like that i use - inside the file name. In

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

2015-04-04 Thread kilon alios
once more I really dont like idea of methods returning single values. This also one of the reasons why Spec annoys me. Why not have Collection / Dictionary that stores all these strings ? Having 100 methods for 100 icons seems really ugly . Instead one collection with 100 entries and a single

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

2015-04-04 Thread kilon alios
No really I dont get the idea, composition decomposition is the bread and butter of collection types in any language. Unless pharo has a weakness in this area that I am not aware of, in python I had never such problem. actually its a foremost reason to use them in the first place. Browsing is a

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

2015-04-04 Thread stepharo
Thierry this means that generating ring objects would help you? I guess so. stef Le 30/3/15 16:25, Thierry Goubier a écrit : A use case: the ability to test and debug the code generation part of SmaCC. SmaCC, when compiling a parser, generates dozens of classes and hundreds of methods,

Re: [Pharo-users] Glorp with PostgresV2 on Pharo 4

2015-04-04 Thread Pierce Ng
On Fri, Apr 03, 2015 at 07:20:40AM +0200, Sven Van Caekenberghe wrote: Yes, we have to fix that, but you also set it manually, no real need to patch the code: Ok, wasn't sure what the encoding strategy should be. I'll patch GlorpDatabaseLoginResource then. Pierce

Re: [Pharo-users] Tabs in Playground ?

2015-04-04 Thread Pierce Ng
On Sat, Apr 04, 2015 at 09:12:11PM +0200, Cyril Ferlicot wrote: I just wanted to know because with the little Untitle tab it looks lile we can open tabs in it. That was just for information. Up through Pharo 3 I have been using Script Manager. Haven't tried in Pharo 4 so not sure whether any

Re: [Pharo-users] Converting a string containing dots to integer

2015-04-04 Thread Cyril Ferlicot
If it's for the thousand you can use that: (myStringNumber copyWithoutAll: '.') asNumber To find this kind of methods you can use the finder (world - Tools). You select example and you search for things like : '1.234'.'.'.'1234' and that will give you: '1.234' copyWithoutAll: '.' first -

Re: [Pharo-users] Converting a string containing dots to integer

2015-04-04 Thread Offray Vladimir Luna Cárdenas
Thanks a lot it works like a charm! Cheers, Offray El 04/04/15 a las 19:13, Cyril Ferlicot escribió: If it's for the thousand you can use that: (myStringNumber copyWithoutAll: '.') asNumber To find this kind of methods you can use the finder (world - Tools). You select example and you

[Pharo-users] NeoCSV and big files

2015-04-04 Thread Serge Stinckwich
Dear all, We are currently setup a small ROASSAL team to participate to #Datathon Data for Development: http://simplon.co/datathon-data-for-development-rdv-les-7-et-8-avril-a-montreuil/ We are looking to ways to be able to load big CSV table in a Pharo image. Apparently the size of some CSV files

Re: [Pharo-users] NeoCSV and big files

2015-04-04 Thread Norbert Hartl
Am 04.04.2015 um 19:23 schrieb Serge Stinckwich serge.stinckw...@gmail.com: Dear all, We are currently setup a small ROASSAL team to participate to #Datathon Data for Development: http://simplon.co/datathon-data-for-development-rdv-les-7-et-8-avril-a-montreuil/ We are looking to ways to

Re: [Pharo-users] NeoCSV and big files

2015-04-04 Thread Alexandre Bergel
Thanks Sven for your support! Alexandre On Apr 4, 2015, at 3:02 PM, Sven Van Caekenberghe s...@stfx.eu wrote: There are also #select: and #select:thenDo: convenience methods. NeoCSV is properly streaming, it should not introduce memory consumption problems itself. But note that you

[Pharo-users] How do I get the list of projects on SmalltalkHub?

2015-04-04 Thread stepharo
Where can we find this information as a newbie? Stef

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

2015-04-04 Thread stepharo
Le 30/3/15 09:10, Marcus Denker a écrit : On 29 Mar 2015, at 10:32, stepharo steph...@free.fr 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 one I want and specified from the outside of the

Re: [Pharo-users] Tabs in Playground ?

2015-04-04 Thread Cyril Ferlicot
Thank you ! I just wanted to know because with the little Untitle tab it looks lile we can open tabs in it. That was just for information. On 3 April 2015 at 16:51, Alexandre Bergel alexandre.ber...@me.com wrote: Hi Cyril, Maybe it is sufficient for you to work with an inspector. For

Re: [Pharo-users] NeoCSV and big files

2015-04-04 Thread Sven Van Caekenberghe
There are also #select: and #select:thenDo: convenience methods. NeoCSV is properly streaming, it should not introduce memory consumption problems itself. But note that you cannot load more than about 1Gb of permanent data in the current VM. One known performance limitation is in handling

[Pharo-users] Converting a string containing dots to integer

2015-04-04 Thread Offray Vladimir Luna Cárdenas
Hi all, I'm parsing some text which contains numbers like 8.324 and I would like to convert it to integer. The problem is that asNumber and asInteger don't make the trick because of the dot (.), which is there to indicate thousands, not decimal values. Which is the proper message to send?

Re: [Pharo-users] Converting a string containing dots to integer

2015-04-04 Thread Benoit St-Jean via Pharo-users
---BeginMessage--- Do you have more details? Such as, do you have values  with more than one dot ?  (e.g. 1.436.782)Do you have values with no dot? - Benoit St-Jean Yahoo! Messenger: bstjean Twitter: @BenLeChialeux Pinterest: benoitstjean IRC: lamneth Blogue:

Re: [Pharo-users] Converting a string containing dots to integer

2015-04-04 Thread Benoit St-Jean via Pharo-users
---BeginMessage--- This might do the trick: (Number readFrom: ('8.524.757' copyReplaceAll: '.' with: '')) asIntegeror even nicer (and simpler) ('8.524.757' reject: [:char | char == $.]) asInteger  - Benoit St-Jean Yahoo! Messenger: bstjean Twitter: @BenLeChialeux Pinterest: