Re: [Pharo-users] spec column/ row layout

2015-02-14 Thread Peter Uhnák
Hi Sebastian, the problem is that the layout tries to always take all the available space. What I usually do is add an empty row at the bottom newRow: [ :row | ] to take all the excessive space. Peter On Sat, Feb 14, 2015 at 12:52 AM, Sebastian Heidbrink wrote: > What is wrong with this spec?

Re: [Pharo-users] spec column/ row layout

2015-02-14 Thread Peter Uhnák
> > > Another remark, why is > height: self inputTextHeight; > needed? > > Should not spec have a default automatic way to set it, deducing from > the row contents? Actually it would do the opposite. The content has no fixed height so if you don't specify the height it will actually exp

Re: [Pharo-users] spec column/ row layout

2015-02-14 Thread Peter Uhnák
However the more worrying thing I've just noticed is that the usernameField is taller than passwordField... that seems like a bug. Peter

Re: [Pharo-users] Learning Spec

2015-02-14 Thread Peter Uhnák
> > So Spec is the Blue stuff and the HP35 example is including the orange > part. > Just the light blue, no? I thought the dark blue (VIew) is Morpic. Peter

Re: [Pharo-users] spec column/ row layout

2015-02-14 Thread Peter Uhnák
On Sat, Feb 14, 2015 at 7:26 PM, Hilaire wrote: > Le 14/02/2015 10:42, Peter Uhnák a écrit : > > Actually it would do the opposite. The content has no fixed height so > > if you don't specify the height it will actually expand the content > > (the layout always uses

Re: [Pharo-users] Issues with code formatting

2015-02-17 Thread Peter Uhnák
Hi, what version are you using? I see it in the settings under Code Browsing > Pretty Printing. Peter On Tue, Feb 17, 2015 at 3:17 PM, sergio_101 wrote: > my pretty print is acting much differently than it used to. it seems to be > breaking every statement into a separate line. at some point,

Re: [Pharo-users] Issues with code formatting

2015-02-18 Thread Peter Uhnák
> > BTW two questions: > 1. are these only applied if you click "format" from a source pane's > context > menu or is there another way (e.g. automatically on method save)? > There is shortcut (ctrl+shift+f on linux, couple people mentioned it being broken on Mac). There was some discussion about i

[Pharo-users] moving to git and preserving monticello history

2015-02-18 Thread Peter Uhnák
Hi, we would like to switch our project over to git, however is it possible to preserve the history? I.e. to convert mcz (or wherever monticello stores it) to git commits, or do I have to start from scratch? Thanks, Peter

Re: [Pharo-users] moving to git and preserving monticello history

2015-02-20 Thread Peter Uhnák
Hi, thank you both, I've semi-successfully managed to convert it to git. However there were some problems I've encountered (mostly because I wanted more than was provided :)). So there are some changes that might be worth considering for integration. 1) it will NOT recreate a commit for each mcz

Re: [Pharo-users] Roassal question

2015-02-23 Thread Peter Uhnák
> > > that is exactly the problem i have , RTBox does not > understand #translateTo: or #translateBy: > a:=RTBox new . > a translateTo: 1@2.-->Error:MessageNotUnderstood > iow at which point exactly do i apply #translateTo: ? That's because RTBox is just a shape, and shape doesn't have position.

[Pharo-users] BaselineOf vs ConfigurationOf

2015-02-25 Thread Peter Uhnák
Hi, can anybody tell me the difference between BaselineOfX and ConfigurationOfX? The only thing I've gathered is that BaselineOf is used for Git projects, while ConfigurationOf for Monticello projects; but usage-wise they seem identical. Thanks, Peter

Re: [Pharo-users] BaselineOf vs ConfigurationOf

2015-02-26 Thread Peter Uhnák
Thank you! If the BaselineOf is independent maybe we could repurpose Versioner - because even if tags and branches are handled by git, the load order and dependencies are still required and doing that by hand is too much work. :) Also maybe the docs (which I found just now… so shame on me for not

Re: [Pharo-users] What UI direction now (or in the near future)?

2015-02-26 Thread Peter Uhnák
> > Thanks (to all). So, the best way (for now) is the old friend Morphic. > Better way may be to stay at Spec level for all available components you need and for your special component write Morph which could be adapted back to Spec. After all Spec components still have Morphic under them, but you

[Pharo-users] Text styling

2015-02-27 Thread Peter Uhnák
Hi, I would like to have editor which would support different text styles and sizes (e.g. each line different font/size/style/color/...)... Rubric seems to be able to do it, Morphic is most likely also capable of that. In the mailing list I also saw TxText, however looking at it yesterday it doesn

[Pharo-users] slow pharo launcher

2015-02-27 Thread Peter Uhnák
For anyone that may be experiencing this... Yesterday when I got above around 20 images PharoLauncher suddenly started to load slowly (over 5s instead of 1-2s) and even when I deleted some it stayed slow, however downloading fresh Pharo 3 image and installing PharoLauncher it works nicely again ev

Re: [Pharo-users] slow pharo launcher

2015-02-27 Thread Peter Uhnák
Environment, then you can go to the PharoLauncher > repository to load the latest Configuration and see if that resolves the > problem. > > btw, I was going to suggest using Configuration Browser, but the version > seems a bit behind. > > cheers -ben > > On Sat, Feb 28,

[Pharo-users] Git refreshing

2015-03-01 Thread Peter Uhnák
Hi, I'm facing a problem with branches and refreshing the code. Currently I handle (except for commits) everything from commandline, but the problem is that when I switch branches I don't know how to easily refresh the code. What I am doing now is running loading Baseline again, but that feels odd

[Pharo-users] roassal pixel rendering

2015-03-02 Thread Peter Uhnák
Hi, I've been experiencing weird behavior with pixel rendering... basically one pixel lines will get blurred for some reason even though there is no half-pixel overlapping. Here is a test code (screenshots attached below). Without the labels the left box will be blurred while the right is better

Re: [Pharo-users] roassal pixel rendering

2015-03-03 Thread Peter Uhnák
't test that). My Linux laptop LCD has 96dpi, and external screen probably higher (I'll check in the evening). The Windows was another machine, also 96dpi. However I don't see how that could be DPI related considering with the "correct" size it is rendered correctly. Peter &

Re: [Pharo-users] roassal pixel rendering

2015-03-03 Thread Peter Uhnák
> > with cairo, coordinates are between pixels > > -> http://cairographics.org/FAQ/#sharp_lines > > Aha! Thank you. Now the question is how this could be solved. One of their suggestions is use even-integer width, but that from principle wouldn't be true, since it still overlaps by half-a-pixel (s

Re: [Pharo-users] Git refreshing

2015-03-03 Thread Peter Uhnák
On Sun, Mar 1, 2015 at 8:58 PM, Thierry Goubier wrote: > Hi Peter, > > Le 01/03/2015 17:00, Peter Uhnák a écrit : > >> Hi, >> >> I'm facing a problem with branches and refreshing the code. Currently I >> handle (except for commits) everything from comma

Re: [Pharo-users] Git refreshing

2015-03-03 Thread Peter Uhnák
> > Well, as you have noticed in Java, C or C++, switching branches does >> not call make automatically :) >> >> You can use git hooks for that. >> > > Ok. Then I would suggest you take the code source of CLANG, LLVM, > OpenOffice or of the Linux kernel, you add the git hooks to call make,

Re: [Pharo-users] Entering login credentials into SmalltalkHub

2015-03-06 Thread Peter Uhnák
Monticello Browser -> right click repo -> Edit repository info -> set username & password. Does this help? Peter On Fri, Mar 6, 2015 at 11:28 PM, Offray Vladimir Luna Cárdenas < off...@riseup.net> wrote: > Hi, > > I took a new image of moose and installed grafoscopio on it with Gofer. > This ima

[Pharo-users] Pharo References/Citations manager

2015-03-06 Thread Peter Uhnák
Hi, I've seen somewhere recently something that resembled citations manager, or maybe some DSL describing citations/references. Unfortunately I came across it accidentally while looking for something unrelated so I didn't bookmark it. Maybe it was related to Pillar? Anyone knows? Thanks, Peter

Re: [Pharo-users] Pharo References/Citations manager

2015-03-07 Thread Peter Uhnák
> > RMoD/citezen > I don't think this is what I saw, but this is actually even better for my needs. Thanks! Peter

[Pharo-users] calling block from within itself

2015-03-07 Thread Peter Uhnák
Hi, I want to use a block from within itself... is there a better way than passing itself? Is there something like self/thisContext I can access? right now I can do === transformTree := [ :root :block | root children do: [ :each | each doSomething. block value: eac

[Pharo-users] Pillar multiline comment

2015-03-07 Thread Peter Uhnák
Is it possible to create multiline comments in Pillar? For example I want to add code that I used to create a visualization, but I want to show the user only the image (but want to keep the code so I can regenerate if needed). Thanks, Peter

[Pharo-users] pillar latex mode

2015-03-07 Thread Peter Uhnák
Is there something like a latex mode that would convert to html? For example in wiki I can write \int_a^b \! f(x)\,dx = F(b) - F(a). and in html it will convert to an image. Peter

Re: [Pharo-users] Fixed tool bar in pharo, similar to the one in Squeak

2015-03-07 Thread Peter Uhnák
> > I'm making some progress with DockingBarMorph, but I can't find how to > delete a particular bar and "World deleteDockingBars." deletes also the > windows taskbar. So there is a way to selective delete a docking bar or if > not to relaunch the only the windows taskbar at the bottom? > If you s

Re: [Pharo-users] Pillar multiline comment

2015-03-08 Thread Peter Uhnák
Sure I can make a shortcut but I don't like that if there is already something. So my question is why can't I do {{{comment: my multiline comment }}} We already have the syntax, and we already have conditional rendering; so comment is just something that doesn't end up in any of the output for

Re: [Pharo-users] calling block from within itself

2015-03-08 Thread Peter Uhnák
; Sven > > > On 07 Mar 2015, at 13:44, Peter Uhnák wrote: > > > > Hi, > > > > I want to use a block from within itself... is there a better way than > passing itself? > > Is there something like self/thisContext I can access? > > > > right now

Re: [Pharo-users] when iterating over a collection how to determine the current objects index

2015-03-10 Thread Peter Uhnák
On Tue, Mar 10, 2015 at 1:23 PM, Joachim Tuchel wrote: > #doWithIndex: ? > doWithIndex: elementAndIndexBlock "Use the new version with consistent naming" ^ self withIndexDo: elementAndIndexBlock

Re: [Pharo-users] when iterating over a collection how to determine the current objects index

2015-03-10 Thread Peter Uhnák
> > The Principle Of Least Surprise would imply that the variables appear in > the same order that they appear in the method name. Of course that doesn't > mean you don't get surprised sometimes. Are there any that don't follow > that rule? We should consider fixing them. It would be interesting

Re: [Pharo-users] when iterating over a collection how to determine the current objects index

2015-03-10 Thread Peter Uhnák
> > 1. Is there any way to query an object to finds its index value in the > original collection ... > say when all the objects from a collection are displayed and user clicks on > one item - I want to locate the object back in the collection. Knowing the > index for me would be most efficient. ==

Re: [Pharo-users] Why `aFileReference asString = aFileReference fullName` is false?

2015-03-10 Thread Peter Uhnák
> > /Users/sven/Desktop/foo.txt > file:///Users/sven/Desktop/foo.txt > > But what about native (OS platform) conventions ? > > I don't want to see Windows backslashes, but Windows user might disagree. > file:// is URI scheme and as per RFC ( http://tools.ietf.org/html/rfc1630 ) there is always for

[Pharo-users] Running startup scripts after the UI has finished

2015-03-10 Thread Peter Uhnák
Hi, is it possible to execute startup scripts after the UI has finished rendering / the image has loaded? I have install startup script that executes when I create the image, however since it starts executing very early the UI is frozen and I don't get any progress bar so I don't know what's happ

[Pharo-users] pillar source import

2015-03-13 Thread Peter Uhnák
Hi, is it currently possible to import file contents into pillar? For example I have a script stored in my-script.st and I would like to do something like [[[source=my-script.st ]]] or {import 'my-another-pillar-file.pillar'} or something like that. I can overcome this with some bash preprocess

[Pharo-users] Pillar html export clickable headers

2015-03-15 Thread Peter Uhnák
Hi, I have a small feature request for Pillar to be considered - clickable/linkable headers in html output. Often I want to link someone to specific chapter of a document. For example in Sphinx documentation http://sphinx-doc.org/tutorial.html#autodoc each section has an id and when you hover the

Re: [Pharo-users] Users of Versionner?

2015-03-18 Thread Peter Uhnák
I use(d) it to create groups and specify dependencies - much easier than writing the spec stuff by hand. However since I switched to git I would like to also use it for BaselineOf (which has pretty much the same structure as ConfigurationOf). Also the "versioning" part is not really needed for gi

Re: [Pharo-users] Running startup scripts after the UI has finished

2015-03-18 Thread Peter Uhnák
So I think the first one, or the two combined will give you the solution. > > cheers, > Esteban > > > On 10 Mar 2015, at 18:36, Peter Uhnák wrote: > > > > Hi, > > > > is it possible to execute startup scripts after the UI has finished > rendering / the

Re: [Pharo-users] when iterating over a collection how to determine the current objects index

2015-03-19 Thread Peter Uhnák
> > keysAndValuesDo: > +1 this is also what Dictionary use. Peter

Re: [Pharo-users] deprecation warning in code critic

2015-03-19 Thread Peter Uhnák
Thank you for the explanation, makes more sense now. :) Peter On Thu, Mar 19, 2015 at 7:46 AM, Marcus Denker wrote: > > > On 19 Mar 2015, at 00:01, Peter Uhnák wrote: > > > > Hi, > > > > is there a deprecation warning option in the code critic? > >

Re: [Pharo-users] Pillar html export clickable headers

2015-03-19 Thread Peter Uhnák
Thanks :) Peter On Thu, Mar 19, 2015 at 9:22 AM, Damien Cassou wrote: > > Peter Uhnák writes: > > > I have a small feature request for Pillar to be considered - > > clickable/linkable headers in html output. Often I want to link someone > to > > specific chapter

[Pharo-users] searching for protocols

2015-03-19 Thread Peter Uhnák
Hi, is it possible to find which class uses particular protocol? Typically I am not sure how to name a protocol so I would like to check out other classes. For example the system offers me to name protocol as "enum primitives" but I don't know who uses it and for what exactly. Thanks, Peter

Re: [Pharo-users] ZeroConf: Download Specific Update

2015-03-20 Thread Peter Uhnák
This? http://files.pharo.org/image/40/ Peter On Fri, Mar 20, 2015 at 1:17 PM, Sean P. DeNigris wrote: > Is there a way to get e.g. #40556 specifically? > > > > - > Cheers, > Sean > -- > View this message in context: > http://forum.world.st/ZeroConf-Download-Specific-Update-tp4813583.html >

[Pharo-users] adding local repos to configuration browser

2015-03-21 Thread Peter Uhnák
Hi, is it possible to hijack Configuration Browser and put there references to my own _local_ projects? Thanks, Peter

[Pharo-users] Git overriding repo load from different source

2015-03-21 Thread Peter Uhnák
Hi, I'm trying to load local package over git one... basically: Projects A and B. A depends on B. A loads B from its BaselineOfA, the reference points to github. Now I have also local copy of B git repository, and I would like to either a) Override the load of B with local B (so the packages wil

Re: [Pharo-users] Git overriding repo load from different source

2015-03-21 Thread Peter Uhnák
d) unload all B packages, remove B github repo, load B locally However currently I can only unload packages one at a time manually, instead of all related to a repo. Peter

Re: [Pharo-users] Git overriding repo load from different source

2015-03-21 Thread Peter Uhnák
e) having separate baseline method which does not load github packages and expects that they are already loaded But since baseline only uses single method I don't see how this could be done.

[Pharo-users] loading Glamour in Pharo 4

2015-03-23 Thread Peter Uhnák
After loading Glamour dev in Pharo 40 ~~~ Gofer new smalltalkhubUser: 'Moose' project: 'Glamour'; package: 'ConfigurationOfGlamour'; load. (Smalltalk at: #ConfigurationOfGlamour) perform: #loadDevelopment ~~~ when I try opening Playgr

Re: [Pharo-users] loading Glamour in Pharo 4

2015-03-23 Thread Peter Uhnák
Also I am interested only in presenter for Roassal, is there separate configuration for that? On Mon, Mar 23, 2015 at 6:47 PM, Peter Uhnák wrote: > After loading Glamour dev in Pharo 40 > ~~~ > Gofer new > smalltalkhubUser: 'Moose' project:

Re: [Pharo-users] Settings browser

2015-03-24 Thread Peter Uhnák
Hi, take a look at WidgetExamples class>>exampleBasicControls one of the inputs is a morph drop list. Peter On Tue, Mar 24, 2015 at 6:02 PM, Hilaire wrote: > Hello, > > From the settings browser, I want a drop list populated with morph of my > choice; for example coloured rectangle morphs: I w

Re: [Pharo-users] Starting with Pharo Issue Tracker

2015-03-24 Thread Peter Uhnák
Hi, here's a guide http://pharo.org/contribute-propose-fix Peter On Tue, Mar 24, 2015 at 7:26 PM, Jigyasa Grover wrote: > Hi ! > I am clueless and would like to start off by solving a bug. > Any suggestions ? Where do I start from ? > Thanks and Regards > Jigyasa Grover >

Re: [Pharo-users] XClipboard

2015-03-24 Thread Peter Uhnák
Hi, this is brutal indeed; have you tried the previously mentioned workaround with setting the encoding: http://forum.world.st/Pharo-and-X11-primary-selection-aka-middle-mouse-button-paste-tp4800635p4800679.html Interestingly enough I posted an answer to the original (your) thread but somehow it

Re: [Pharo-users] Git overriding repo load from different source

2015-03-24 Thread Peter Uhnák
> > I'm not sure how to answer all those cases Those were just options that came to my mind how to solve it - practically just one is needed. > (did I remember a conversation during PharoDays?). > We spoke only very briefly about something else since I didn't use Git at the time yet. > Can you

Re: [Pharo-users] Git overriding repo load from different source

2015-03-24 Thread Peter Uhnák
On Sun, Mar 22, 2015 at 11:19 PM, Dale Henrichs < dale.henri...@gemtalksystems.com> wrote: > I keep an eye out for posts with Metacello in the subject line so I missed > this one ... > I'll keep that in mind next time. > If so then the trick is to use the Metacello `lock` ... Do the following >

Re: [Pharo-users] XClipboard

2015-03-24 Thread Peter Uhnák
on. > > You're saving me from a lot of Chromium->Sublime Text, Sublime > Text->Pharo :) > > Thank you once again! > > Julien > > On 24/03/15 21:30, Peter Uhnák wrote: > > Hi, > > > > this is brutal indeed; have you tried the previously mentioned wo

Re: [Pharo-users] Spec TextModel

2015-03-27 Thread Peter Uhnák
Hi, try this TextModel new isCodeCompletionAllowed: false; menuHolder: []; openWithSpec The second line disabled code completion, and the third disables right-click menu. Disabling shortcuts may be a little more complex. From wha

Re: [Pharo-users] Spec TextModel

2015-03-27 Thread Peter Uhnák
> > Either TextModel should have configuration methods #beForCode and > #beForText or there should be TextModel and a CodeModel (sub)class. > > And from what you say, the plain variant is not even provided in Spec. I agree, please open issue for it. Peter

[Pharo-users] what to use for simple parsing

2015-03-27 Thread Peter Uhnák
Hi, I would like to parse text like - id(param1, param2, ... paramX) id -> id id ->> id - id is alphanumeric string, param is any string optionally enclosed in quotes (so both quoted and unquoted string is needed) I saw that there are many tools for parsing but since I have no experience

Re: [Pharo-users] Pharo 4.0 / Roassal2

2015-03-30 Thread Peter Uhnák
Hi, try also adding this ~~ Gofer new smalltalkhubUser: 'Moose' project: 'GToolkit'; package: 'GT-InspectorExtensions-CoreRoassal'; load. Gofer new smalltalkhubUser: 'Moose' project: 'Glamour'; package: 'Glamour-Tools'; package: 'Glamour-Roassal2-Presentatio

Re: [Pharo-users] Uncommon keyboard shortcuts on Windows

2015-03-30 Thread Peter Uhnák
Hi, there is currently ongoing discussion about shortcuts since there is a bit Ctrl vs Alt chaos in both Linux and Windows. Note for example that in many cases (undo, copy, paste, ...) you can use both ctrl and alt. Unfortunately there are many different tools (Nautilus, TextEditor, Rubic, Playgro

[Pharo-users] quick poll - which OS do you use for Pharo?

2015-03-30 Thread Peter Uhnák
Hi, I've made a quick poll because I'm interested in the distribution of Pharo users among OSes. It's a single anonymous question, so it shouldn't take more than five seconds to complete :) http://strawpoll.me/4001583 Thanks :) Peter

[Pharo-users] DynaCASE

2015-03-31 Thread Peter Uhnák
Hi Serge, I didn't want to hijack the original thread (more than I've already done), so I made a new one instead. Looks really impressive Peter ! > I put some pictures on my twitter account: > https://twitter.com/SergeStinckwich/status/582799867409526784 Thanks! I'll guess I will have to start u

Re: [Pharo-users] Gitfiletree unstable on Windows

2015-03-31 Thread Peter Uhnák
> > Metacello new > baseline: 'FileTree'; > repository: 'github://dalehenrich/filetree:pharo4.0_dev/repository'; > load: 'Git' " > I thought that you needed to have GitFileTree loaded to have github:// and Git support. Is that false? Does that mean that github:// (bitbucket://) doesn't use gi

Re: [Pharo-users] what to use for simple parsing

2015-03-31 Thread Peter Uhnák
ky. So at least to me PetitParser feels like a more practical regex library than Regex itself. Peter On Tue, Mar 31, 2015 at 5:08 PM, Damien Cassou wrote: > > Peter Uhnák writes: > > > Hi, > > > > I would like to parse text like > > - > > id(param

[Pharo-users] OrderedCollection remove:

2015-04-01 Thread Peter Uhnák
Hi, I've just run into quite a nasty surprise col := #(1 2 3 4 5) asOrderedCollection. col do: [ :each | col remove: each. ]. col it throws "NotFound: nil not found in OrderedCollection" I tested it also in Pharo3 and there it just silently removed first, third an

Re: [Pharo-users] OrderedCollection remove:

2015-04-02 Thread Peter Uhnák
On Thu, Apr 2, 2015 at 8:30 AM, Joachim Tuchel wrote: > In general, removing from a Collection while iterating through it leads to > undefined results. The same is true for adding. > That is a question of approach; apart from mentioned #copy I could also do something like

Re: [Pharo-users] Non-evaluating and / or

2015-04-03 Thread Peter Uhnák
Hi, that's because you need to pass a block, since you want to postpone to execution. i.e. false and: [Transcript open]. (otherwise the binary operation Transcript open will take precedence over keyword false and:) You can always look at the implementation of those things — I always learn somethin

Re: [Pharo-users] [Pharo-dev] Pharo sprint on Friday, 3rd April

2015-04-03 Thread Peter Uhnák
On Fri, Apr 3, 2015 at 1:07 PM, Jigyasa Grover wrote: > Hey Marcus > Anything up there for the beginners ? > I often find it interesting to try to tackle more complex issues even though I know I will not be able to fix it - because I always learn a lot about the system from it. Peter

Re: [Pharo-users] DynaCASE

2015-04-03 Thread Peter Uhnák
> > With Alex and a student visiting my lab at the moment, we are working > on BPMN visualisation. > We would certainly be interested in that. Unfortunately it was completely out of me scope to implement BPMN this semester time-wise, that's why we settled for BORM and partially DEMO. Peter

[Pharo-users] Loading specific commits from ConfigurationOf

2015-04-03 Thread Peter Uhnák
Hi, is it possible to depend on a specific commit instead of preconfigured? For example I would like to load Roassal2, where one of the packages is Trachel, and I want to load 'Trachel-AlexandreBergel.265'. Currently I have in my ConfigurationOfMyProject ~ project: 'Roassal2'

[Pharo-users] how to properly create icons

2015-04-04 Thread Peter Uhnák
Hi, I've been using using ThemeIcons>>createIconMethodsFromFile: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 pro

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 wrote: > > On 04 Apr 2015, at 09:14, Peter Uhnák wrote: > > Hi, > > I've been using using ThemeIcons>>createIconMethodsFromFile:directory: > method to create my own icons, however there ar

[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
ensure: [ self versionSpec loader: originalLoader ] ] in > MetacelloMCVersion>>fetchRequiredFromArray: in Block: [ ... > MetacelloPharo30Platform(MetacelloPlatform)>>do:displaying: > MetacelloMCVersion>>fetchRequiredFromArray: > [ > | fetchLoader | > fetchLoader := s

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] IconFactory - utility for creating icons in Pharo

2015-04-04 Thread Peter Uhnák
Also if it really sees only the first file, try dir allFiles select: [ :each | each extension = 'png' ], because that would mean FileSystem is failing or something. Peter On Sat, Apr 4, 2015 at 2:41 PM, Peter Uhnák wrote: > createIconsFromDirectory seems to see only the fir

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] 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 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 up? Peter

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: [ :e

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

2015-04-04 Thread Peter Uhnák
rge-cpc.png"" > > looks like it does not like that i use "-" inside the file name. In the > folder the name of the file is not Norse_large-cpc.png but > Norse-large-cpc.png > > "-" has some special meaning here ? > > On Sat, Apr 4, 2015 at 4:12

[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] Object-oriented state-frozen logging

2015-04-05 Thread Peter Uhnák
help: > > > https://medium.com/concerning-pharo/lampsort-revisited-visualised-6652055ef858 > > All in all, it is not too much effort to generate log event objects, and > they can used in many different ways. Using Announcement makes this quite > practical. > > HTH, >

[Pharo-users] String operations

2015-04-06 Thread Peter Uhnák
Hi, am I really blind, or is there no way to do something like 'BormParticipant' removePrefix: 'Borm' "-> 'Participant'" or 'BormParticipant' copyFrom: 5 "-> 'Participant'" "OrderedCollection knows this" I can do copyFrom:to:, but that requires asking the size of the string, which is (in my eyes)

[Pharo-users] pillar internal link

2015-04-07 Thread Peter Uhnák
Hi, how does one add an internal link? I have chapter 'Framework' (and file 'Framework/Framework.pillar') and 'Palette' (and file 'Palette/Palette.pillar') Can I in Framework.pillar write something like *Palette/Palette* to create a link? Currently it fails at *** Warning: PRReferenceNotFound: C

Re: [Pharo-users] pillar internal link

2015-04-07 Thread Peter Uhnák
Ok, keep me posted. Thanks, Peter On Tue, Apr 7, 2015 at 5:03 PM, Cyril Ferlicot wrote: > Hi ! > Inter-File link are on the TODO list of pillar. Currently you can't. > I'm working on Pillar now, if i add inter-file link i'll say it to you ! > > On 7 April 201

[Pharo-users] Metacello GIT methodProperties.json

2015-04-07 Thread Peter Uhnák
Hi, are "methodProperties.json" files needed? Every time someone makes even small changes it is accompanied by ten times more json file changes which is a mess. So is it needed with git? Cannot the information be retrieved from git commits? Thanks, Peter

Re: [Pharo-users] Spec with dynamic tabs

2015-04-07 Thread Peter Uhnák
Can you add an issue for Pharo 5 so it doesn't get lost? Currently a lot of effort is focused on Pharo 4 release (this week-ish), so nobody might have time to look at this now. Peter On Thu, Apr 2, 2015 at 5:16 PM, Hartmut wrote: > Hi to all, > > I'm working with Spec and appreciate the modular

Re: [Pharo-users] String operations

2015-04-07 Thread Peter Uhnák
> 'BormParticipant' allButFirst: 4 ('BormParticipant' splitOn: 'Borm') last Thank you both, this will work. :) In the Moose configuration, there is a CollectionExtensions that allows you > to do this: > 'BormParticipant' removePrefix: 'Borm' "-> 'Participant'". > 'BormParticipant' removeSuffix:

Re: [Pharo-users] Metacello GIT methodProperties.json

2015-04-07 Thread Peter Uhnák
Yeah, I do use the MergeDriver and it saved me a lot of headache, but when I see things like this https://github.com/dynacase/dynacase/commit/90141d63bfdd433e51a768c2191e035b76c5da83 where one five lines long method generated 14 file changes with 180 additions and 172 deletions... it makes the lo

Re: [Pharo-users] Metacello GIT methodProperties.json

2015-04-07 Thread Peter Uhnák
y not > want. > > Thierry > > As I ranted in another post ... changing the disk format is the easy >> part ... building and maintaining tools for the 4-5 different Smalltalk >> dialects is a different matter ... >> >> Dale >> >> [1] https://github.co

Re: [Pharo-users] pillar internal link

2015-04-09 Thread Peter Uhnák
> > ${inputFile:myFile.pillar}$ > on your file to include your myFile.pillar. > Cool! I can stop using my Ruby-based preprocessing soon :). (Especially when the variant with the scripts will be added.) > How do you feel about also having a GitHub repo for the Pillar project? > That way, we could

[Pharo-users] builder pattern

2015-04-09 Thread Peter Uhnák
Is there some common / best way for coding builders? Two ways that I see are: a) using a block - I've seen this in menus and some other, however in my case I need to add an extra parameter as label "variant with two params" aForm addDropList: 'Type' with: [ :dropList | dropList items: #(input #o

Re: [Pharo-users] Roasal: Putting a white background instead of a transparent one in word clouds

2015-04-13 Thread Peter Uhnák
I think there is a bug in the exporter, because the canvas has a color (which is white and _not_ transparent). Normally you can set the color of the of the canvas (view canvas color: Color purple), but the default exporter (I assume you are exporting it via GT-inspector) is ignoring it. There is ho

[Pharo-users] DoubleLinkedList vs LinkedList vs Collection

2015-04-14 Thread Peter Uhnák
I was surprised to learn that DoubleLinkedList is descendant of Object, while LinkedList is descendant of SequencableCollection. Is there a particular reason behind this? Are they really so conceptually different that DLL is not even considered a collection? Thanks, Peter

Re: [Pharo-users] DoubleLinkedList vs LinkedList vs Collection

2015-04-14 Thread Peter Uhnák
> > DoubleLinkedList was added to help the implementation of [LRU|TTL]Cache. > It was kept small and independent. Does that mean that I probably shouldn't touch it? Because when I wanted to use DDL I ran into a problem that once I add something to the list, I can no longer access the Links. Linked

Re: [Pharo-users] DoubleLinkedList vs LinkedList vs Collection

2015-04-14 Thread Peter Uhnák
Also linksDo: method is missing. On Tue, Apr 14, 2015 at 4:46 PM, Peter Uhnák wrote: > DoubleLinkedList was added to help the implementation of [LRU|TTL]Cache. >> It was kept small and independent. > > Does that mean that I probably shouldn't touch it? Because when I wante

Re: [Pharo-users] DoubleLinkedList vs LinkedList vs Collection

2015-04-14 Thread Peter Uhnák
I guess the "System-Caching" package which I noticed just now is a bit telling. :) I'll make an issue. Peter On Tue, Apr 14, 2015 at 5:02 PM, Sven Van Caekenberghe wrote: > > > On 14 Apr 2015, at 16:46, Peter Uhnák wrote: > > > > DoubleLinkedList was adde

[Pharo-users] State of Slots

2015-04-17 Thread Peter Uhnák
Hi, what is the current state of slots? I found a message by Marcus that it's not ready but that was December; has anything changed? Is there some tutorial/examples? Are there known problems? Thanks, Peter

<    1   2   3   4   5   6   7   8   >