Re: [Pharo-users] PharoLauncher eventual slowdown

2016-03-05 Thread Peter Uhnák
r a lot (on windows) and I did not see any slow down. > But I don't use it for anything else then launching the images. > Do you notice the slow down by launching images or do you use the > PharoLauncher image for anything else? > > >> >> On Fri, Mar 4, 2016 at 6:4

[Pharo-users] adding credentials to a repo via a playground script

2016-03-05 Thread Peter Uhnák
Hi, is it possible to add credentials to an existing repo via a script? I've tried something like ~ |repo| repo := MCSmalltalkhubRepository allInstances detect: [ :each | each location includesSubstring: 'Pharo50Inbox' ]. repo user: 'peteruhnak'; password: '**' ~~

Re: [Pharo-users] adding credentials to a repo via a playgroundscript

2016-03-06 Thread Peter Uhnák
t; > where is your tool :). > > Stef > > Le 5/3/16 18:37, Sean P. DeNigris a écrit : > > Peter Uhnák wrote > >> repo > >> user: 'peteruhnak'; > >> password: '**' > >> ... has no effect. > > Hmm, I wonder if so

Re: [Pharo-users] PharoLauncher eventual slowdown

2016-03-06 Thread Peter Uhnák
On Sun, Mar 6, 2016 at 6:13 PM, stepharo wrote: > > > Le 5/3/16 10:57, Peter Uhnák a écrit : > > > Same here. > > 3 min to launch > > Stef, try to disable write access on a fresh install to the > PharoLauncher.changes and PharoLauncher.image &g

Re: [Pharo-users] [Moose-dev] Re: Call for action for Roassal

2016-03-07 Thread Peter Uhnák
Hi Johan, I've just commited RTAnchorConstraint to latest Roassal, see class-side example there. I've been using it for my class diagrams where it works quite well, however class diagrams are usually orthogonal-ish, which makes it a bit nicer. The Anchor will avoid intersecting it's own line, a

Re: [Pharo-users] adding credentials to a repo via a playground script

2016-03-07 Thread Peter Uhnák
> > MCRepositoryGroup default removeRepository: > (MCSmalltalkhubRepository > owner: 'Pharo' > project: 'Pharo50Inbox'). > MCRepositoryGroup default addRepository: > (MCSmalltalkhubRepository > owner: 'Pharo' > project: 'Pharo50Inbox' > user: 'peteruhnak' >

[Pharo-users] GTSpotter fuzzy search

2016-03-09 Thread Peter Uhnák
Would be possible to have fuzzy-search? Or rather Pascal-based search? RTAE -> *RTA*bstract*E*xample BCF -> *B*l*C*onfigurable*F*ormatter etc.

Re: [Pharo-users] [Moose-dev] Re: Re: Call for action for Roassal

2016-03-09 Thread Peter Uhnák
On Wed, Mar 9, 2016 at 10:02 PM, Johan Fabry wrote: > Heh, also a funny feature of your anchor constraints: they do not play > well with layouts and animations. Try the code below (adapted from the > example to use the layout and animation of LRP ) and you will see that the > circles keep spinnin

Re: [Pharo-users] Call for action for Roassal

2016-03-09 Thread Peter Uhnák
On Thu, Mar 10, 2016 at 12:36 AM, Martin Bähr wrote: > hi, > > i just remembered two things: > > i'd like to see rounded corners on nodes. > We've added this quite some time ago, unless you have something else in mind. ~~ |v e| v := RTView new. e := RTRounded

Re: [Pharo-users] [ARTICLE] Tiny, yet so beautiful

2016-03-10 Thread Peter Uhnák
"Nice article. But asBit has existed in @SqueakSmalltalk since at least 2004. Why not say so?" https://twitter.com/bertfreudenberg/status/707922868273856512 And indeed, in Pharo I see it added on 27.3. and 28.12.2012 (why almost a year difference?) And in Squeak I see it added 1.7.2004 (although

Re: [Pharo-users] Roassal2 on Ubuntu 64

2016-03-10 Thread Peter Uhnák
On Thu, Mar 10, 2016 at 3:01 PM, Alexandre Bergel wrote: > Evan, let us know how it goes! This is important to understand what’s > going on > Well this is well-known thing. Pharo is 32bit only, so all libraries have to be also. But maybe it could be mentioned just-in-case somewhere on the websi

Re: [Pharo-users] Roassal2 on Ubuntu 64

2016-03-10 Thread Peter Uhnák
interface with the Nix package manager[2], so > when something is not there, Pharo could offer automatic installation. > > [1] > http://askubuntu.com/questions/107230/what-happened-to-the-ia32-libs-package > [2] http://nixos.org/nix/ > > Cheers, > > Offray > > > On 10/

Re: [Pharo-users] [Moose-dev] Re: [Pharo-dev] RTAnchorConstraint

2016-03-10 Thread Peter Uhnák
> To which problem? The problem is that RTSpringLayoutStepping always uses all the elements in the view and ignores what you set to the layout. This is a problem, because it will try to also layout the anchor, but that will trigger the anchor to fix itself… and we get endless spinning. On Thu, M

Re: [Pharo-users] Roassal2 on Ubuntu 64

2016-03-10 Thread Peter Uhnák
> Ok. Just to check. Are you advocating that leaving out cairo as a dependency of the main pharo app for new pharo users is a 'feature'? Until Bloc it is a feature, but if it is installed via package manager then it should imho also install cairo because that's not that hard there. The problem is

Re: [Pharo-users] Roassal2 on Ubuntu 64

2016-03-12 Thread Peter Uhnák
I knew the 32bit cairo was mentioned somewhere http://smalltalkhub.com/#!/~ObjectProfile/Roassal2 at the very end But it most certainly should be mentioned on more places. Peter On Thu, Mar 10, 2016 at 5:48 PM, Sven Van Caekenberghe wrote: > > > On 10 Mar 2016, at 17:08, Evan Donahue wrote: >

Re: [Pharo-users] Roassal2 on Ubuntu 64

2016-03-13 Thread Peter Uhnák
> > $ sudo apt-get install libcairo2:i386 > This is sufficient for both Ubuntu and Debian (and probably their forks, such as Mint). Peter

[Pharo-users] Changing version of a dependency of a dependency

2016-03-14 Thread Peter Uhnák
How do I change the loaded version of a dependency other dependency is loading? Imagine the following scenario: I have ProjectXXX that depends on ProjectYYY, and projectYYY depends on ProjectZZZ. Now normally all the dependencies are directed to the master branch. Now what I would like to do i

Re: [Pharo-users] Use Shell Command from Pharo

2016-03-19 Thread Peter Uhnák
You need to be a bit more descriptive of what "doesn't work" mean, otherwise we can't help you. :) Have you seen this? http://pharo.gemtalksystems.com/book/PharoTools/OSProcess/ Also there's a new lib for OS http://forum.world.st/ANN-OSSubprocess-v0-2-0-release-td4872820.html ( https://github.com

Re: [Pharo-users] Use Shell Command from Pharo

2016-03-19 Thread Peter Uhnák
On Sat, Mar 19, 2016 at 9:16 AM, john pfersich wrote: > continued... > (this is on Mac OSX, but it should be the same on any *nix). > I don't actually see the reason why it should assume root folder if you don't specify a path… that's stupid on many levels (I blame mac). On Linux you get home, a

[Pharo-users] Generating custom classes based on attributes from XML Document

2016-03-19 Thread Peter Uhnák
I have a XML like this and I would like to generate UmlClass and UmlAssociation classes for this. I could use XMLPluggableElementFactory, however that only allows me to specify the target class only on the element's name, such as doc := (XMLDOMParser on: someXML) nodeFactory: (XML

[Pharo-users] patterns for representing enumerations/constants

2016-03-23 Thread Peter Uhnák
Hi, as this probably doesn't have one solution I am interested in your approach, if you have any. The problem is that often you want to create instances (or just return constants) in some particular domain, e.g. Color red. Color blue. Unfortunately this doesn't scale, because putting unary meth

Re: [Pharo-users] patterns for representing enumerations/constants

2016-03-23 Thread Peter Uhnák
Plus this may typically interact with some serialization/materialization which would use the base format ('red', 'organization', 'kind'), so if there's any change to the name another mapping format would be required. On Wed, Mar 23, 2016 at 5:41 PM, Peter Uhnák

Re: [Pharo-users] patterns for representing enumerations/constants

2016-03-23 Thread Peter Uhnák
> > Why / how ? > As explained in the first example. Try adding #organization or #package methods to the class-side.

Re: [Pharo-users] patterns for representing enumerations/constants

2016-03-23 Thread Peter Uhnák
> > I would do something like: > > Color named: #red. > Color named: #blue. > > That idea crossed my mind (it would be good for serialization from some external data), but how would you as user/programmer know what to put in there? The idea of enums is that you have a predetermined set of predeterm

Re: [Pharo-users] [Spec] CheckBoxModel>>enabled: does not work?

2016-03-28 Thread Peter Uhnák
Indeed, it is broken https://pharo.fogbugz.com/f/cases/17754/CheckBoxModel-RadioButtonModel-ignore-disable I don't know how this is done in morphic, but you could probably hack it via buttonModel whenBuiltDo: [ :w | w widget someMorphicMessageSend ] (or something like that) On Sat, Mar 26, 2016

Re: [Pharo-users] is there a better way to browse the mail archives than

2016-03-28 Thread Peter Uhnák
This http://forum.world.st/Pharo-f1294836.html ? On Sun, Mar 27, 2016 at 8:00 PM, Torsten Bergmann wrote: > >is there a better way to browse the mail archives > > > http://lists.pharo.org => select the list and click on "Archives" > >

Re: [Pharo-users] Running Pharo 5 on Ubuntu 16.04

2016-03-28 Thread Peter Uhnák
> > I get: > bash: ./pharo: No such file or directory This is an error if you try to run 32bit on 64bit (or if the file is missing — just to make things confusing ;)). Look here at the "Other" section http://pharo.org/gnu-linux-installation sudo dpkg --add-architecture i386 sudo apt-get updat

Re: [Pharo-users] [Pharo-dev] Spotter Survey

2016-03-29 Thread Peter Uhnák
> > I often search for classes and methods, and I think most people only do > this. What are "more than 10" kind of searches? GTSpotter>>spotter*For: (and I use 9-ish of them atm, although classes & methods are still the primary use case) But the discoverability is not great. On Tue, Mar 29, 2

[Pharo-users] STON UUID in the key

2016-04-02 Thread Peter Uhnák
Why does this fail? STON fromString: ( STON toStringPretty: (Dictionary with: UUID new -> nil) ) I would assume that if it can be serialized, then it should be also parsable. Having scalars for

Re: [Pharo-users] STON UUID in the key

2016-04-02 Thread Peter Uhnák
xMapKeys: true. > > reader on: (STON toStringPretty: (Object new-> Morph new -> nil)) > readStream. > > > > reader next. > > > > > > Best regards, > > Henrik > > > > *From:* Pharo-users [mailto:pharo-users-boun...@lists.pharo.org] *On > Behalf Of

Re: [Pharo-users] Detecting a class is abstract

2016-04-04 Thread Peter Uhnák
1. To tell whether a class is abstract: isAbstract := [ :aClass | (aClass whichSelectorsReferTo: #subclassResponsibility) isNotEmpty or: [ (aClass respondsTo: #isAbstract) and: [ aClass isAbstract ] ] ] Just be aware that some classes are "abstract", but you can actually instantiate them, because

[Pharo-users] STON materialization corrupts a dictionary if the keys are references

2016-04-05 Thread Peter Uhnák
Hi, I ran into a problem with STON that seems to corrupt on materialization. Consider the following script: ~~ c := OrderedCollection with: UUID new. d := Dictionary with: c first -> nil. o := { c . d }. s := STON toStringPretty: o. o2 := STON reader allowCo

Re: [Pharo-users] [Pharo-dev] STON materialization corrupts a dictionary if the keys are references

2016-04-05 Thread Peter Uhnák
you example into a unit test. > > Sven > > > On 05 Apr 2016, at 11:14, Peter Uhnák wrote: > > > > Hi, > > > > I ran into a problem with STON that seems to corrupt on materialization. > > > > Consider the following script: > > > > ~

Re: [Pharo-users] [Pharo-dev] STON materialization corrupts a dictionary if the keys are references

2016-04-05 Thread Peter Uhnák
> > Like I said, it is a hashing issue, sometimes it will be correct by > accident. > > I hope you did not have to much trouble with this bug, I guess it must > have been hard to chase. > The hardest thing often is to suspect the system or external libraries, but it wasn't that bad. Is it urgent

Re: [Pharo-users] Conditional external dependencies in a Metacello BaselineOf?

2016-04-13 Thread Peter Uhnák
Yes, I've been using this approach for some time. https://github.com/peteruhnak/pharo-scripts/blob/master/config/5.0/dynacaseSettings.st On Wed, Apr 13, 2016 at 2:24 AM, Damien Pollet < damien.pollet+ph...@gmail.com> wrote: > Oh, nice! > > Just to be sure, because 2:15am is not the best time t

Re: [Pharo-users] Trapping the Pharo window close event

2016-04-14 Thread Peter Uhnák
The closing is intercepted in PasteUpMorph>>windowEvent: from where this is called WorldState>>quitSession | save | save := self confirm: 'Save changes before quitting?' translated orCancel: [ ^ self ]. save ifTrue: [Smalltalk snapshot: true andQuit: true] ifFalse: [Smalltalk snapshot: false andQ

Re: [Pharo-users] Trapping the Pharo window close event

2016-04-15 Thread Peter Uhnák
> > I did not really get it. Now I have the impression that changing the > method definition shows that Pharo does not > offer the correct possibility. > Am I correct? > I disagree. Closing the window should not decide on it's own whether the session should be saved. Asking the user is the right t

Re: [Pharo-users] Trapping the Pharo window close event

2016-04-16 Thread Peter Uhnák
What's Doplin's approach? Also adding a configuration option for this situation is rather trivial. On Sat, Apr 16, 2016 at 9:42 AM, kmo wrote: > As a developer you need to be able to control the program shut down. That > is > a given. > > I think I was expecting something like the Dolphin appro

Re: [Pharo-users] Trapping the Pharo window close event

2016-04-16 Thread Peter Uhnák
Ah, right, that certainly sounds interesting. :) Pharo is yours, so you can add it. :) We already have a SystemAnnouncer so maybe it would be quite easy to add… it might be a nice exercise to get a bit more familiar with the system. Peter On Sat, Apr 16, 2016 at 11:01 AM, kmo wrote: > The Dolp

[Pharo-users] RBRefactoring docs

2016-04-16 Thread Peter Uhnák
Hi, is there any documentation for RBRefactoring? Since there are not even class comments the only thing I found is judging from tests. Thanks, Peter

[Pharo-users] GTDebugger shortcuts usability

2016-04-16 Thread Peter Uhnák
Hi, I'm getting fed-up with GTDebugger shortcuts since they are completely random. Can we have them more meaningful and/or somehow visible? For now I ended up overriding the labels so I can at least see them... but doing this is also stupid, because I still have to look at them since I cannot re

[Pharo-users] Merging refactoring changes

2016-04-16 Thread Peter Uhnák
Is it possible to merge changesets? For example when I am creating a new class and adding a new instance variable, I would like to see it as one change set, not two. Similarly if I am overriding a method twice, it would be good to see only what actually gets applied. For example ~~~

[Pharo-users] RBAddClassRefactoring ensuring existence

2016-04-16 Thread Peter Uhnák
Hi, is it possible to "ensure" that class exists with RBAddClassRefactoring? Right now RBAddClassRefactoring will throw up if the class already exists. I would like it to create the class if it doesn't exist and just do nothing if it already exists. Is it possible? (if not I will just work arou

Re: [Pharo-users] [Pharo-dev] GTDebugger shortcuts usability

2016-04-16 Thread Peter Uhnák
l+shift+n and underline n (point 2) If points 1 & 2 are implemented, then the letter is not as important, although first letter is always preferable. Peter > Cheers, > Doru > > > > On Apr 16, 2016, at 8:37 PM, Peter Uhnák wrote: > > > > Hi, > > > > I&

Re: [Pharo-users] Any hope for Smalltalk on Raspberry Pi?

2016-04-17 Thread Peter Uhnák
This seems relevant: https://medium.com/concerning-pharo/pharo-pi-9eef257b6a21#.ay5v86peq https://www.youtube.com/watch?v=sfxFqQIuawg Peter On Sun, Apr 17, 2016 at 9:52 AM, stepharo wrote: > First hello and welcome to Pharo. > > Second can you be clear about what you want to achieve? > > > I h

Re: [Pharo-users] [Pharo-dev] GTDebugger shortcuts usability

2016-04-17 Thread Peter Uhnák
epOverDebugAction compile: 'defaultLabel ^ ''Over'' asText addAttribute: TextEmphasis underlined from: 1 to: 1'. StepThroughDebugAction compile: 'defaultLabel ^ ''Through'' asText addAttribute: TextEmphasis underlined from: 1 to: 1'. ] runOn

Re: [Pharo-users] Load a project from GitHub with command line

2016-04-17 Thread Peter Uhnák
> > 'gitfiletree:// > github.com/dalehenrich/filetree:pharo5.0/repository/?where=/home/username/project/filetree' > (is that a correct url syntax?) Isn't this overloading the url a bit? Why not: Metacello new baseline: 'FT'; repository: 'gitfiletree:// github.com/dalehenri

Re: [Pharo-users] RBAddClassRefactoring ensuring existence

2016-04-17 Thread Peter Uhnák
> > The ugly way: > > [ refactoring execute ] on: RBRefactoringError do:[:ex | ex resume]. > I thought about this, but there are many things that could go wrong (there are about ten preconditions), and I am certainly not interested in breaking my system by accident. However after fighting a lot w

Re: [Pharo-users] problem with Cairo library

2016-04-19 Thread Peter Uhnák
Yes, check that you have 32bit (apt-get install libcairo2:i386) and that it's on one of those locations: '/usr/lib/i386-linux-gnu/libcairo.so.2' '/usr/lib32/libcairo.so.2' '/usr/lib/libcairo.so.2' On Tue, Apr 19, 2016 at 7:36 AM, Stephan Eggermont wrote: > On 19-04-16 06:59, mathias arnaud nkeu

Re: [Pharo-users] ensureCreateFile

2016-04-21 Thread Peter Uhnák
At least in unix creating files and folders are different operations (mkdir/touch, rm/rmdir). And even though it may seem convenient I would argue that it will create unintentional issues — if you have incorrect folder it will silently create errornous structure on the disk instead of throwing err

Re: [Pharo-users] ensureCreateFile

2016-04-21 Thread Peter Uhnák
because it's like this ensureCreateFolder : create the folder structure if necessary ensureCreateFile : create the file if necessary I really don't see any gain from changing existing behavior and introducing potential problems. If I ask for file to be created, I don't expect that the system will

[Pharo-users] meaning of #workingDirectory in in-memory file system

2016-04-21 Thread Peter Uhnák
fs := FileSystem memory. fs workingDirectory "memory:///". What is the conceptual meaning of #workingDirectory here? Shouldn't it just throw an error for memory FileStore as it makes no sense? I.e. I didn't launch any image from memory. Peter

[Pharo-users] remove unused variables

2016-04-21 Thread Peter Uhnák
The editor used to inform when there was an unused local variable and offered to remove it. Is it possible to get this behavior back, or is it a feature regression with the "new" (this changed some time ago) editor? Thanks, Peter

Re: [Pharo-users] restoring a deleted method

2016-04-24 Thread Peter Uhnák
I don't know about Change Sorter because I've never used it, but you should still be able to find & recover the method through "Recover lost changes"/Changes Browser tool. Or grep the *.changes file. Peter On Sun, Apr 24, 2016 at 2:40 PM, Siemen Baader wrote: > Hi, > > according to Pharo By Ex

[Pharo-users] build for BuildingUIWithSpec

2016-04-25 Thread Peter Uhnák
Is there a build job for BuildingUIWithSpec? Peter

Re: [Pharo-users] ensureCreateFile

2016-04-26 Thread Peter Uhnák
> > > AbstractFileReference > createFile > "Create if necessary a file for the receiver. If the parent does not > exist return an exception" > self parent ensureCreateDirectory. > self writeStream close. > > ensureCreateFile > "Create if necessary a file for the receiver. If the parent does not > e

[Pharo-users] Change Playground title based on the name of the first pane

2016-04-28 Thread Peter Uhnák
Hi, would it be possible to change the Playground title when the first page changed? I know I can change the title through the top right corner, but just a double click might be more useful. Plus there could be some automatic naming pattern, because it would be nice to still see that it is playg

Re: [Pharo-users] GTPlayground/Inspector stacked vertically

2016-04-29 Thread Peter Uhnák
On Fri, Apr 29, 2016 at 1:49 PM, Johan Fabry wrote: > > For this specific case you may want to use the SpecEasel which is an > example of the of the Roassal2Spec package. You can change the layout of > the boxes there by changing the defaultSpec method at class side (but some > minimal Spec knowl

[Pharo-users] Pharo 3 / Pharo3 Dark Theme names

2016-04-30 Thread Peter Uhnák
Hi, is there some reason why the theme is called "Pharo 3" and "Pharo3 Dark"… I mean we are about to start Pharo 6 so maybe it should just be "Pharo Dark" and "Pharo Light" (or "Pharo" or "Pharo Default" or whatever) Peter

Re: [Pharo-users] Best way to clear the Transcript?

2016-05-01 Thread Peter Uhnák
What version of Pharo? `Transcript clear.` does exactly that. :) On Mon, May 2, 2016 at 8:49 AM, p...@highoctane.be wrote: > I am looking for a way to clear the Transcript. > > There is no direct command like Transcript clear available. > > I do not want to reopen a new one, just be able to cle

Re: [Pharo-users] What other languages can do something similar?

2016-05-02 Thread Peter Uhnák
> > I can execute foreverTrue in a Playground and when nothing returns in an > appropriate amount of time. I can stop the execution Assuming the UI is responsive enough to receive the stop command… which (at least in my experience) is more often false than true. In principle any environment that

Re: [Pharo-users] Failing to create a project on SmalltalkHub

2016-05-02 Thread Peter Uhnák
> > > Also, they say it's possible to use Git but they don't describe the > setup. > This is indeed possible, but it may not be the simplest. Even though apart from the initial setup it behaves pretty much as normal smalltalkhub/anyothermonticellorepo, if a problem occurs it may not be the most ob

Re: [Pharo-users] Documentation about Pharo Launcher?

2016-05-03 Thread Peter Uhnák
On Tue, May 3, 2016 at 4:55 PM, Johan Fabry wrote: > > Maybe a silly question, but why don’t you make a 1-file download like the > default options provided for Pharo 4.0 on http://pharo.org/download For > example, on MacOS it gives you an .app file that you just double-click. > How does that pla

Re: [Pharo-users] Documentation about Pharo Launcher?

2016-05-03 Thread Peter Uhnák
> prepackaged version of Moose 6 for Windows, Linux y Mac Moose is just Pharo image + changes; you can use the same Moose image on all platforms. And moose is just installed on top of Pharo 5 image (it's just a bunch of commands executed on top of Pharo 5 image https://ci.inria.fr/moose/job/moose-

Re: [Pharo-users] Metaprogramming facilities

2016-05-03 Thread Peter Uhnák
1) write them by hand annoying typing required 2) use Class refactorings (right click on class -> refactoring -> class refactoring -> generate accessors; or ctrl+h+a) this will ask you to choose for all attributes… good initially, but really stupid if you are providing e.g. just getters (because

Re: [Pharo-users] Metaprogramming facilities

2016-05-03 Thread Peter Uhnák
> > More importantly the autogenerated code is a bit stupid > > TBPost >> title: anObject > title := anObject > > this is stupid, so even for generated one I select the argument, press > ctrl+t (or right click + suggestions) and select 'rename' ... and rename it > into something meaningful like

Re: [Pharo-users] Securely downloading Pharo

2016-05-03 Thread Peter Uhnák
I guess you could download it from the Jenkins job https://ci.inria.fr/pharo/job/Pharo-5.0-Update-Step-5-Publish/lastSuccessfulBuild/artifact/ although the job itself downloads over http from files.pharo.org… but Jenkins should be fine enough if you are worried about MitM between you and Pharo. F

[Pharo-users] [Post] adding custom method icons

2016-05-04 Thread Peter Uhnák
Hi, if you wondered how you can add your own method icon/action to Nautilus, well wonder no more. :) ​ http://peteruhnak.com/blog/2016/05/04/custom-method-icons/ Peter

Re: [Pharo-users] Web browsing automation

2016-05-04 Thread Peter Uhnák
As far as I know: Pharo has event recorder that helps automate within image… however the bigger problem here is interaction with the environment, which is a big problem cross-platform. This is all assuming that you _must_ click on it and you can't just retrieve-html/parse/extract/download/repeat

Re: [Pharo-users] blue ink - format on accept?

2016-05-13 Thread Peter Uhnák
Only "format as you read" is available at the moment. (Which formats the methods without changing the source code, good for reading.) But it shouldn't be that hard to implement… in AbstractTool>>compileANewMethodInClass:categorized:from:notifyng: or NautilusUI>>compileAMethodFromCategory:withSourc

Re: [Pharo-users] On Class and Method comments

2016-05-16 Thread Peter Uhnák
As a note, maybe try to avoid inline comments unless formatter is fixed, because autoformatting _will_ misplace them. (Not to mention that imho inline comments in Smalltalk are a result of a bad design… if you need an inline comment, maybe turn that into actual code). In any case, there are no gui

Re: [Pharo-users] On Class and Method comments

2016-05-17 Thread Peter Uhnák
e also comment position, because I used to write inline comments), but I think it was lost during migration to BlueInk. But I'll have a look. On Tue, May 17, 2016 at 5:32 PM, Jimmie Houchin wrote: > On 05/17/2016 01:40 AM, Peter Uhnák wrote: > > As a note, maybe try to avoid inline

Re: [Pharo-users] Spec layout

2016-05-17 Thread Peter Uhnák
I don't have time right now to give you a proper example… however if you have layout on the instance side, then you need to call the build method explicitly with the proper layout… well, that's what I do at least https://github.com/dynacase/dynacase/blob/master/repository/DynaCASE-Spec.package/DC

[Pharo-users] Disabling welcome window

2016-05-17 Thread Peter Uhnák
Is there a clean way how to close or not open the Pharo 5.0 welcome window? Short of going through the stack and closing it (courtesy of Cyril) (SystemWindow allInstances select: [ :w | w labelString includesSubstring: 'Welcome' ]) do: #delete Thanks, Peter

Re: [Pharo-users] Spec layout

2016-05-18 Thread Peter Uhnák
Yes but someone must call rebuildWidget… I will try to take a look at this today and give a better/more comprehensive example. Peter On Wed, May 18, 2016 at 1:01 PM, stepharo wrote: > I do not get it. > > I still think that the solution of peter is the one to implement > > rebuildWidget > s

[Pharo-users] Scrollable Spec Model

2016-05-18 Thread Peter Uhnák
Hi, anyone has any experience with scrollable (arbitrary) Spec Model? e.g. I have a long list of buttons and fixed outer container window… ​ As far as I can see scrolling is only available on morphic side, so I am not sure how to augment it… (Although we should probably allow scrolling on Spec

Re: [Pharo-users] Why is split: implemented in the separator rather than the string?

2016-05-19 Thread Peter Uhnák
On Thu, May 19, 2016 at 8:48 PM, Andy Burnett < andy.burn...@knowinnovation.com> wrote: > I keep getting this wrong, which makes me wonder why we send split: to the > separator rather than the thing to be split. Is there a benefit to doing > > $- split: '1969-07-20' > Because you are telling the

Re: [Pharo-users] Spec layout

2016-05-19 Thread Peter Uhnák
@etudiant.univ-lille1.fr> wrote: > Ok, I wait your answer. > Thanks for your help. > Marion, > > > Le 18/05/2016 12:04, Peter Uhnák a écrit : > >> Yes but someone must call rebuildWidget… I will try to take a look at this >> today and give a better/more comprehensi

Re: [Pharo-users] [Pharo-dev] Scrollable Spec Model

2016-05-19 Thread Peter Uhnák
t; c systemIcon; label: c name; action:[ UIManager default alert: c comment > title: c name]]); > displayBlock: [ :x | x buildWithSpec ]; > openWithSpec > > > > 2016-05-18 17:55 GMT+02:00 Peter Uhnák : > >> Hi, >> >> anyone has any experience with scr

Re: [Pharo-users] OT - an opinion on node.js

2016-05-23 Thread Peter Uhnák
How is this related to Pharo in any way? Why is on the pharo mailing list? The video is intentionally inflammatory and I don't really see a reason why we would need to either start a flame war (if there are node.js devs reading it), or an echo chamber (so we all just put ourselves on the back hour

Re: [Pharo-users] Having a more robust PharoLauncher in low-bandwidth conditions

2016-05-25 Thread Peter Uhnák
> something like wget or curl there's also zeroconf as the alternative, or directly downloading the zip http://files.pharo.org/image/ Also Stef made a flash stick with Pharo, videos, etc. exactly for places like this (with bad or no internet). But of course PharoLauncher shouldn't crash. Alterna

Re: [Pharo-users] One comment to new Pharo5 debugger

2016-05-25 Thread Peter Uhnák
Hi, yes, this question was raised before, but there are some disagreements over how it should be, so it may take some time http://forum.world.st/GTDebugger-shortcuts-usability-td4890316.html You can also use a startup script to reassign them, such as this one. https://github.com/peteruhnak/pharo-

Re: [Pharo-users] Problem with Mongo on Pharo5 ("collection already exists")

2016-05-26 Thread Peter Uhnák
Hi, > To manage on github there are some blog around I wrote a guide for moving from SmalltalkHub to Github http://peteruhnak.com/blog/2016/03/02/moving-project-from-smalltalkhub-to-github/ And Uko wrote about versioning http://blog.yuriy.tymch.uk/2015/07/pharo-and-github-versioning-revision-2.ht

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

2016-05-29 Thread Peter Uhnák
> All this is so that my .5 would not conflict with someone else .5 How is this a problem? Because it will be "Me.5" and "You.5", so there can't be any conflict. Peter On Sun, May 29, 2016 at 10:37 AM, Sven Van Caekenberghe wrote: > > > On 29 May 2016, at 10:28, Holger Freyther wrote: > > > >

Re: [Pharo-users] question on message passing.

2016-06-07 Thread Peter Uhnák
You can just do (PipeableOSProcess command: 'mpc status') output lines first (also +1 for mpd :)) On Tue, Jun 7, 2016 at 8:27 PM, sergio ruiz wrote: > I have a feeling this is wrong, but I am not sure how to make it work > cleanly.. > > This: > > |s| > > s := (((PipeableOSProcess command: '/us

Re: [Pharo-users] Spec Drag n Drop and broken ListModel family

2016-06-09 Thread Peter Uhnák
Hi, 1) this is caused by this line in "listIntConfiguration" dragTransformationBlock: [ :item | item asInteger ]; you are dragging a symbol c, but "#c asInteger = nil" 2) dragging the number converts it into a StringMorph which obviously isn't in the original collection. This is quite [explet

Re: [Pharo-users] synchronized return from asynchronous message block

2016-06-10 Thread Peter Uhnák
On Tue, Jun 7, 2016 at 8:55 AM, Nicolai Hess wrote: > > > 2016-06-07 8:21 GMT+02:00 Peter Uhnak : > >> Hi, >> >> is it possible to return "synchronously" even if I have an asynchronous >> message? >> >> For example: >> >> SomeObject>>someMethod >> ^ UIManager default chooseFrom: #(a b c)

Re: [Pharo-users] blue ink - format on accept?

2016-06-10 Thread Peter Uhnák
On Fri, Jun 10, 2016 at 5:23 PM, Paul DeBruicker wrote: > And on the BlueInk side what would you do? > What do you mean? You need to change the behavior in the tools, not in BlueInk. Peter

Re: [Pharo-users] default nautilus plugins

2016-06-10 Thread Peter Uhnák
You can configure plugins in Nautilus > Top Right Corner > click on the "v" > Nautilus Plugin Manager. Peter On Fri, Jun 10, 2016 at 6:14 PM, PAUL DEBRUICKER wrote: > Hi - > > Is there a place to specify which plugins should be activated by default > in Nautilus in Pharo 5? > > Thanks > > Paul

Re: [Pharo-users] remove the line at the bottom of the code pane in Nautilus in Pharo 5?

2016-06-10 Thread Peter Uhnák
TL;DR: AbstractNautilusUI>>buildNewCodeSourceAreaRubric comment out "withSourceCodeAnnotation;" howto (less than a minute to do): 1. open finder (world > tools > finder) 2. punch in 'Format as you read' and search "source" 3. take a deep breath or two while its searching 4. open found class 4.1

[Pharo-users] [ANN] file dialog replacement experiment

2016-06-10 Thread Peter Uhnák
Hi, last week I stitched together a simple file dialog replacement and today I managed to somewhat finish it. There is still a lot to be desired, but right now it supports things that were the most pain for me: * list of most common places (home, root, image directory, temp) * custom bookmarks b

Re: [Pharo-users] Pharo 5 accented chars bug/regression

2016-06-12 Thread Peter Uhnák
> > I thought stackoverflow.com might be a good place for that. I was > wrong. Having had my stackoverflow.com post attacked by aggressive > incompetent anonymous down voters who were interested in down voting but > possess no sense of humor or knowledge of Pharo or Smalltalk I think > I understand

[Pharo-users] Deadline today for ESUG2016 call for talk proposals

2016-06-15 Thread Peter Uhnák
Hi, today is deadline for submitting tutorial/talk/teaching pearl proposals for ESUG2016. As far as I can tell this was never announced on the Pharo mailing list (only several IWST16 CFP), so some people have missed it. http://www.esug.org/wiki/pier/Conferences/2016/Call-for-Presentations -

Re: [Pharo-users] Symbolic links in Pharo

2016-06-20 Thread Peter Uhnák
You can use FFI; just create an object with a method… MyObject>>system: command "Perform OS system() call." ^ self ffiCall: #(int system #(char * command)) module: LibC And then you can do something like MyObject new system: 'ln -s /tmp/source /tmp/target' On Mon, Jun 20, 2016 at 5:57 PM, Thi

Re: [Pharo-users] Using OSSubProcess to invoke Java

2016-06-20 Thread Peter Uhnák
#runAndWaitOnExitDo: takes a cull-ed three-arg block with the process, stdout, and stderr; that way you can process stdout and stderr independently. Try this OSSUnixSubprocess new command: '/usr/bin/java'; arguments: #('-version'); redirectStderr; runAndWaitOnExitDo: [ :process :out :err | err

Re: [Pharo-users] Symbolic links in Pharo

2016-06-21 Thread Peter Uhnák
> So cool. > For a command taking some time to execute, can it be make non-blocking > for the image? > > For example when using it from a Seaside server where you need to > execute such a command but you do not want to bock all the Seaside > sessions. > > Thanks > >

Re: [Pharo-users] Styling a Pharo UI application

2016-06-25 Thread Peter Uhnák
On Sat, Jun 25, 2016 at 2:12 PM, Johan Fabry wrote: > > > On Jun 24, 2016, at 19:00, Yuriy Tymchuk wrote: > > > […] > > I know that we don’t have designers to inverted something cool, but what > GT teem did is they took Google material design guidelines and implemented > widgets in Pharo, so if

Re: [Pharo-users] accepting method without creating variable and code generation

2016-06-28 Thread Peter Uhnák
Yeah I guess that's not such a bad idea, to have a TemplateClass that would contain just the template methods, so I don't need to worry about conflicting instance variables. Peter On Tue, Jun 28, 2016 at 2:08 PM, Ben Coman wrote: > On Tue, Jun 28, 2016 at 5:55 PM, Peter Uhnak wrote: > > Hi, >

[Pharo-users] can pharo change encoding of a file?

2016-07-05 Thread Peter Uhnák
Hi, is there a way to reencode a file from within Pharo? e.g. I have a file in CP1250 encoding and I want to change it to UTF-8. In linux I would do something like "recode cp1250..utf8 file.txt". But can Pharo do that natively, or do I need to defer to the system with FFI/OSSubprocess? Thanks,

Re: [Pharo-users] can pharo change encoding of a file?

2016-07-05 Thread Peter Uhnák
ng, basic file IO binary. > > > On 05 Jul 2016, at 12:21, Guillermo Polito > wrote: > > > > You can, check the ZnCharacterReadStream and ZnCharacterWriteStream > classes. You can configure them with an encoding and voilá. > > > > Guille > > > > On T

<    1   2   3   4   5   6   7   8   >