Re: [Pharo-users] Changing the Pharo 5 monticello changes browser to get rid of the class name that precedes the selector in the changes tree

2016-07-15 Thread Nicolai Hess
2016-07-14 0:55 GMT+02:00 PAUL DEBRUICKER :

> They are already grouped by class.  Having the class name there makes me
> have to side scroll to read the list more often (most of the time)  than
> I'd prefer (never-ish).  It seems like its just the labels that have been
> changed since Pharo 4.
>
> MCMethodDefinition>>#summary is  where the label is defined.  So in that
> class add
>
> selectorString
> ^selector printString
>
>
> And PSMCPatchOperationWrapper is where the label is set so
> change
>
> PSMCPatchOperationWrapper>>#asString to
>
> asString
> "Answer the method name."
>
> ^self item definition selectorString
>

can you please open a bug report.
I think the change usefull and easy. (I think
PSMCPatchOperationWrapper>>#asString could just call shortSummaryPrefix
instead)

asString
"Answer the method name."

^self item definition shortSummaryPrefix


>
>
> Paul
>


[Pharo-users] Shortcuts for navigation history in Pharo5

2016-07-15 Thread Davide Varvello via Pharo-users
--- Begin Message ---
Hi Guys,On Pharo4 there was 2 shortcuts to go through navigation history: Cmd+[ 
and Cmd+]Is there something similar in Pharo5? I can't find it.
TIADavide--- End Message ---


[Pharo-users] What is pharo-local ?

2016-07-15 Thread Alexandre Bergel
Hi!

Is this the one folder containing all the caches (e.g., package-cache)? Esteban 
mentioned this idea some times ago.

Alexandre
-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.






Re: [Pharo-users] What is pharo-local ?

2016-07-15 Thread Cyril Ferlicot Delbecque


On 15/07/2016 12:45, Alexandre Bergel wrote:
> Hi!
> 
> Is this the one folder containing all the caches (e.g., package-cache)? 
> Esteban mentioned this idea some times ago.
> 

Hi,

Yes, it is :)

> Alexandre
> 

-- 
Cyril Ferlicot

http://www.synectique.eu

165 Avenue Bretagne
Lille 59000 France



signature.asc
Description: OpenPGP digital signature


Re: [Pharo-users] What is pharo-local ?

2016-07-15 Thread Alexandre Bergel
Cool!

Alexandre


> On Jul 15, 2016, at 1:25 PM, Cyril Ferlicot Delbecque 
>  wrote:
> 
> 
> 
> On 15/07/2016 12:45, Alexandre Bergel wrote:
>> Hi!
>> 
>> Is this the one folder containing all the caches (e.g., package-cache)? 
>> Esteban mentioned this idea some times ago.
>> 
> 
> Hi,
> 
> Yes, it is :)
> 
>> Alexandre
>> 
> 
> -- 
> Cyril Ferlicot
> 
> http://www.synectique.eu
> 
> 165 Avenue Bretagne
> Lille 59000 France
> 

-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.






Re: [Pharo-users] [Pharo-dev] [ANN] file dialog replacement experiment

2016-07-15 Thread Sven Van Caekenberghe

> On 14 Jul 2016, at 23:49, Peter Uhnák  wrote:
> 
> Hi Sven,
> 
> What I am missing in the UI is some indication of the path that leads to the 
> current selected file. Right now, I am wondering where exactly I am, I feel a 
> bit lost (this is of course from the technical standpoint of a path in a 
> tree). This could be done with a popup, a trail, a pop-over.
> 
> I've added this couple of days ago (as I was missing this too), I just forgot 
> to push the update to github (one downside compared to smalltalkhub :)).
> 
> The only problem is that the image directory name is usually really long (the 
> longest I have is 110 characters as it includes the build's name), so it 
> doesn't exactly fit in.
> There is some shortening happening based on the window's width but it's not 
> perfect.

I had another look. Yes, this is cool. 

If you truncate, you could put the full, non truncated path in a pop over, that 
would be a cheap way to solve that problem, no ? In any case, in my testing 
there was enough space.

Maybe also add a trailing / to indicate that it represents the directory and 
not the selection ?



Also when I tested it, using

 FDOpenFileDialog new openModal.

the path is initially blank, it only fills when I start clicking.

BTW, could it be that FDMorphicUIManager becomes default automatically ?

And related to github filetree, what is the proper way to get a new version 
once you loaded the code ?

> What I like is what zenity does (clickable path)… but it automatically widens 
> the window
> 
> 
> ​
> Peter
>  
> 
> We should have some more discussions about this, it could make a great 
> addition to Pharo.
> 
> Sven
> 
> > On 11 Jun 2016, at 02:45, Peter Uhnák  wrote:
> >
> > 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 by dragging folders from file-pane to bookmark-pane
> > * toggle hidden files (right-click on file listing)
> > * preset file name
> > * filtering files by extensions or patterns and toggling between filters
> > * synchronous and asynchronous mode
> >
> >
> > 
> > ​
> > You can use it independently of Pharo's native dialogs
> >
> > FDOpenFileDialog new
> >   extensionFilters:
> >   {'STON files' -> #(ston).
> >   'All files' -> #()};
> >   defaultFolder: FileLocator imageDirectory asFileReference;
> >   openModal
> >
> > Or if you feel brave, I have an extended UIManager that will use this…, and 
> > then you can use regular manager commands
> >
> > UIManager default chooseFileMatching: #('*.ston')
> >
> > but you can always go back
> >
> > FDMorphicUIManager new beDefault. "use new dialogs"
> > MorphicUIManager new beDefault. "use old dialogs"
> >
> > and of course the installation itself (I'll add it to catalog soon after I 
> > find a way to autogenerate configurations from git tags)
> >
> > Metacello new
> > baseline: 'FileDialog';
> > repository: 'github://peteruhnak/file-dialog/repository';
> > load.
> >
> > More info and docs on GitHub https://github.com/peteruhnak/file-dialog
> >
> > Any comments/feedback/bug reports is appreciated.
> >
> > Peter
> 
> 
> 



[Pharo-users] Fwd: [vwnc] Publishing an app to apple store : the full script !

2016-07-15 Thread Alexandre Bergel
Hello!

Here is a procedure to submit a VisualWorks application on AppStore.
Maybe it can be adapted for Pharo?

Cheers,
Alexandre


> Begin forwarded message:
> 
> From: Annick Fron 
> Subject: [vwnc] Publishing an app to apple store : the full script !
> Date: July 15, 2016 at 3:30:20 PM GMT+2
> To: vwnc NC 
> Cc: Annick Fron 
> Reply-To: Annick Fron 
> 
> Hi,
> 
> 
>   Besides Maarten’s package to publish on applestore, here is a more 
> condensed procedure describing the process.
> 
> Summary of needed actions to publish an application to applestore 
> 
> 
> Note : You can use the nano editor to edit system files using « nano" my file 
> to ensure you stick to pure text format
> 
> - 1) Enroll as a developer on developer.apple.com 
> 
> - 2) Generate certificates : Developer id; 3rd party application installer
> - 3) Download certificates together with middle certificates from Apple (to 
> complete the CA chain)
> - 4) Check availability of certificates in keychain utility, and avoid 
> certificates duplicated in session and system tabs
> - 5) Generate one or more application ids in apple developer web site (in the 
> following the app id will be com.fencingfox.saintgeorges)
> 
> - 6) Copy visual.app in a directory and rename it
> - 7) Thin visual and its Frameworks components to architecture i386
> 
> cd myapp.app/Contents
> cd MacOS
> lipo visual -thin i386 -output visual
> cd ../Frameworks
> lipo libcairo.2.dylib -thin i386 -output libcairo.2.dylib
> lipo libpixman-1.0.dylib -thin i386 -output libpixman-1.0.dylib
> lipo libpng15.0.dylib -thin i386 -output libpng15.0.dylib
> 
> Check it
> lipo - info visual
> 
> - 8) Edit myapp.app/Contents/Info.plist . To do that download Xcode, create a 
> workspace, import the file myapp.app.
> Modify Bundle identifier with one of the application ids you have crated on 
> Apple Developers’ site, define application category, bundle version without 
> any letter
> 
> 
> - 9) Edit localizations subdirectories  under 
> Contents/Resources/English.lproj (resp. French.lproj), etc. Modify the 
> MainMenu.nib under Xcode.
> 
> - 10) Modify the icons MainIcons.icns in Contents/Resources using various 
> tools. In case of problems you may use the following trick :
> ICON_OLD=icon.icns
> ICON_NEW=icon_new.icns
> iconutil -c iconset -o "${ICON_OLD%.icns}.iconset" "$ICON_OLD"
> iconutil -c icns -o "$ICON_NEW" "${ICON_OLD%.icns}.iconset"
> 
> -11) Copy your image.im to myapp.app/Contents/Resources/resource.im
> 
> - 12) Ensure everything is readable by all :
> chmod -R a+r myapp.app
> - 13) Ensure dylibs and visual have executable rights for all (chmod 555 
> visual).
> 
> 
> - 14) Optional step : sign the components located in 
> myapp.app/Contents/Frameworks with your developer Id certificate
> 
> codesign -s "Developer ID Application: Annick Fron (XX)" -v 
> ./SaintGeorges.app/Contents/Frameworks/libcairo.2.dylib
> codesign -s "Developer ID Application: Annick Fron (XX)" -v 
> ./SaintGeorges.app/Contents/Frameworks/libpixman-1.0.dylib
> codesign -s "Developer ID Application: Annick Fron (XX)" -v 
> ./SaintGeorges.app/Contents/Frameworks/libpng15.0.dylib
> 
> - 15) Sign the app
> 
> codesign --entitlements ./sg.entitlements -s "Developer ID Application: 
> Annick Fron (XX)" -v ./SaintGeorges.app
> 
> with for instance the following entitlements file (allows for networking)
> sg.entitlements
> 
>  "http://www.apple.com/DTDs/PropertyList-1.0.dtd 
> ">
> 
> 
>   com.apple.security.app-sandbox
>   
>   com.apple.security.device.usb
>   
>   com.apple.security.files.user-selected.read-write
>   
>   com.apple.security.network.client
>   
>   com.apple.security.network.server
>   
>   com.apple.security.print
>   
> 
> 
> 
> - 16) Create an installer
> Create a component list :
> 
> pkgbuild --analyze --root ./SaintGeorges.app SaintGeorgesComponents.plist
> 
> Then use it
> pkgbuild --root ./SaintGeorges.app --component-plist 
> SaintGeorgesComponents.plist --identifier "com.fencingfox.saintgeorges" 
> --install-location "/" ./SaintGeorges.pkg
> 
> You can also use Packages
> http://s.sudre.free.fr/Software/Packages/about.html 
> 
> http://thegreyblog.blogspot.fr/2014/06/os-x-creating-

Re: [Pharo-users] Shortcuts for navigation history in Pharo5

2016-07-15 Thread Davide Varvello via Pharo-users
--- Begin Message ---
Nobody?
Davide


Pharo Smalltalk Users mailing list wrote
> Hi Guys,On Pharo4 there was 2 shortcuts to go through navigation history:
> Cmd+[ and Cmd+]Is there something similar in Pharo5? I can't find it.
> TIADavide





--
View this message in context: 
http://forum.world.st/Shortcuts-for-navigation-history-in-Pharo5-tp4906689p4906715.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.

--- End Message ---


Re: [Pharo-users] Shortcuts for navigation history in Pharo5

2016-07-15 Thread Nicolai Hess
2016-07-15 19:21 GMT+02:00 Davide Varvello via Pharo-users <
pharo-users@lists.pharo.org>:

>
>
> -- Weitergeleitete Nachricht --
> From: Davide Varvello 
> To: pharo-users@lists.pharo.org
> Cc:
> Date: Fri, 15 Jul 2016 09:37:45 -0700 (PDT)
> Subject: Re: Shortcuts for navigation history in Pharo5
> Nobody?
> Davide
>

They just changed to

$[ meta shift
$] meta shift

Maybe this shortcuts don't work (for example, on windows with german
keyboard layout, you can not type [ + ctrl or alt)

You can change them back in
NautilusUI class >> buildHistoryShortcutsOn:


>
>
> Pharo Smalltalk Users mailing list wrote
> > Hi Guys,On Pharo4 there was 2 shortcuts to go through navigation history:
> > Cmd+[ and Cmd+]Is there something similar in Pharo5? I can't find it.
> > TIADavide
>
>
>
>
>
> --
> View this message in context:
> http://forum.world.st/Shortcuts-for-navigation-history-in-Pharo5-tp4906689p4906715.html
> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
>
>
>


Re: [Pharo-users] iCal Chronos for Pharo 5 => OSProcess

2016-07-15 Thread Paul DeBruicker
Hi Cédrick,

I uploaded a new version of the iCal-Core package and iCal-Tests package
that should fix most of the issues shown below.  I didn't realize I wiped
out the #resetAlarms method and also some others with overrides.  



Hope this gets you on your way


Paul



--
View this message in context: 
http://forum.world.st/iCal-Chronos-for-Pharo-5-OSProcess-tp4906567p4906748.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.



[Pharo-users] Dynamic visualzation and analysis of tweets

2016-07-15 Thread Arturo Zambrano
Hi All,
 please check this>

https://youtu.be/VL14jTDvRaY

this is Agustin Meriles's work for his master thesis.  We want to share
this with the community and a big *thank you* for your support... specially
the Roassal team.

Now the hard time of writing the text comes for Agustin :)

Cheers,

Arturo


Re: [Pharo-users] Dynamic visualzation and analysis of tweets

2016-07-15 Thread Offray Vladimir Luna Cárdenas

Arturo and Agustín,

Seems interesting. Congrats on finishing the thesis and I'll be waiting 
for the final text or articles once you have ended the writing.


I hope to share son some advances on Twitter and Data Visualization 
powered by Rossal + GT + Pharo.


Cheers,

Offray


On 15/07/16 16:59, Arturo Zambrano wrote:

Hi All,
 please check this>

https://youtu.be/VL14jTDvRaY

this is Agustin Meriles's work for his master thesis.  We want to 
share this with the community and a big *thank you* for your 
support... specially the Roassal team.


Now the hard time of writing the text comes for Agustin :)

Cheers,

Arturo






Re: [Pharo-users] Dynamic visualzation and analysis of tweets

2016-07-15 Thread Arturo Zambrano
Thanks! the code is in SH, of course it needs to be polished before an
official release, this is just a report on the advance.


On Fri, Jul 15, 2016 at 8:17 PM, Offray Vladimir Luna Cárdenas <
offray.l...@mutabit.com> wrote:

> Arturo and Agustín,
>
> Seems interesting. Congrats on finishing the thesis and I'll be waiting
> for the final text or articles once you have ended the writing.
>
> I hope to share son some advances on Twitter and Data Visualization
> powered by Rossal + GT + Pharo.
>
> Cheers,
>
> Offray
>
>
>
> On 15/07/16 16:59, Arturo Zambrano wrote:
>
>> Hi All,
>>  please check this>
>>
>> https://youtu.be/VL14jTDvRaY
>>
>> this is Agustin Meriles's work for his master thesis.  We want to share
>> this with the community and a big *thank you* for your support... specially
>> the Roassal team.
>>
>> Now the hard time of writing the text comes for Agustin :)
>>
>> Cheers,
>>
>> Arturo
>>
>>
>
>


Re: [Pharo-users] Shortcuts for navigation history in Pharo5

2016-07-15 Thread Davide Varvello via Pharo-users
--- Begin Message ---
Thanks Nicolai, it works. On mac is Cmd+Shift+[ or Cmd+Shift+]

I don't know why it is not included in the "Shortcuts description" or in the
"Keymap Browser"

Cheers
Davide


Nicolai Hess-3-2 wrote
> 2016-07-15 19:21 GMT+02:00 Davide Varvello via Pharo-users <

> pharo-users@.pharo

>>:
> 
>>
>>
>> -- Weitergeleitete Nachricht --
>> From: Davide Varvello <

> varvello@

> >
>> To: 

> pharo-users@.pharo

>> Cc:
>> Date: Fri, 15 Jul 2016 09:37:45 -0700 (PDT)
>> Subject: Re: Shortcuts for navigation history in Pharo5
>> Nobody?
>> Davide
>>
> 
> They just changed to
> 
> $[ meta shift
> $] meta shift
> 
> Maybe this shortcuts don't work (for example, on windows with german
> keyboard layout, you can not type [ + ctrl or alt)
> 
> You can change them back in
> NautilusUI class >> buildHistoryShortcutsOn:
> 
> 
>>
>>
>> Pharo Smalltalk Users mailing list wrote
>> > Hi Guys,On Pharo4 there was 2 shortcuts to go through navigation
>> history:
>> > Cmd+[ and Cmd+]Is there something similar in Pharo5? I can't find it.
>> > TIADavide
>>
>>
>>
>>
>>
>> --
>> View this message in context:
>> http://forum.world.st/Shortcuts-for-navigation-history-in-Pharo5-tp4906689p4906715.html
>> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
>>
>>
>>





--
View this message in context: 
http://forum.world.st/Shortcuts-for-navigation-history-in-Pharo5-tp4906689p4906761.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.

--- End Message ---


[Pharo-users] SQLite and sure last_insert_rowid

2016-07-15 Thread Hilaire
Hi guys,

In a multi-thread context use of Sqlite, I try to find out how one will
fetch securely the automatically last row index of a Primary key.

The problem seems to be that between the insert of rows in a table and
the moment you request the last row id, you may have another insert from
another thread in the same database.

In the code bellow, I put the insert and last_insert_rowid() call in a
transaction. The returned rowid value is the right one as expected, and
now I am wondering if enclosing in a transaction is enought to make the
last_insert_rowid() safe.


Any trips how you handle this situation?

Thanks

Hilaire


The organisation table is defined as:
CREATE TABLE organisation (
idOrg   INTEGER PRIMARY KEY,
nameVARCHAR(30),
address TEXT,
zipcode INTEGER,
cityVARCHAR(30),
phone   VARCHAR(15),
email   VARCHAR(20) );'


The code is as follow:


| row res s id |
database execute: 'INSERT INTO organisation (name) values (''Pharo
consortium'')'.
res := database beginTransaction.
self assert: res = 0.
s := database prepare: 'INSERT INTO organisation (name, address,
zipcode, city, phone, email) values (?, ?, ?, ?, ?, ?)'.
s at: 1 putString: 'Dupont & co'.
s at: 2 putString: '12, rue du pont'.
s at: 3 putInteger: 75000.
s at: 4 putString: 'Paris'.
s at: 5 putString: '0105060708'.
s at: 6 putString: 'cont...@dupont.fr'.
s step.
s finalize.
row := database execute: 'SELECT last_insert_rowid()'.
res := database commitTransaction.
id := row next at: 'last_insert_rowid()'.
row close.
self assert: res = 0.
self assert: id = 2.

-- 
Dr. Geo
http://drgeo.eu




Re: [Pharo-users] Shortcuts for navigation history in Pharo5

2016-07-15 Thread stepharo

Hi Davide

add them to the description and send us a fix.

Stef