Re: [Pharo-users] [ANN] Hubcap - a SmalltalkHub API and browser for Pharo

2014-11-20 Thread Sven Van Caekenberghe
Yes, very nice.

> On 21 Nov 2014, at 08:35, Hilaire  wrote:
> 
> Le 21/11/2014 08:32, Torsten Bergmann a écrit :
>> as I wanted to browse the SmalltalkHub contents directly from within Pharo 
>> image
>> I wrote a simple browser:
> 
> 
> Cool!
> 
> Thanks
> 
> -- 
> Dr. Geo - http://drgeo.eu
> iStoa - http://istoa.drgeo.eu
> 
> 




Re: [Pharo-users] Maps from Wikipedia loaded on Roassal's RTMetricMap

2014-11-20 Thread Hernán Morales Durand
2014-11-18 10:30 GMT-03:00 Offray Vladimir Luna Cárdenas 
:

> Hi,
>
> This Thursday and Saturday we will have a small workshop on data
> storytelling and I would like to present Pharo/Roassal to the people there
> as a tool for creating and sharing visualizations.
>
> My idea is to use Playgrounds to make agile visualization and then share
> them using cloud sharing at stfx and etherpads.
> The maps I would like to make are similar to the ones that have colored
> countries [1][2], but using internal country geopolitical divisions. For
> the case of Colombia I would like to use the ones of [3], specifically
> something like [4] and use the same syntax of RTMetricMap inside the
> country.
>
> [1] http://bit.ly/1yiedrE
> [2] http://bit.ly/1xTAQV0
> [3] https://commons.wikimedia.org/wiki/User:Shadowxfox/Maps#Colombia
> [4] https://commons.wikimedia.org/wiki/File:Colombia_
> departamentos_otros.svg
>
> So my question is:
>
> - There is any way to upload this SGV maps and treat them as the maps
> already in RTMetricMap, telling the names of the internal geopolitical
> divisions inside a Country and how to color them according to a value and
> make them zoomable?
>
> - Where can I start to look to support this feature?
>
>
SVG is basically XML, so you can parse it like this:

| xmlTree |
xmlTree := (XMLDOMParser parseFileNamed: 'Argentina.svg') firstNode.
xmlTree

The coordinates of a map are in the SVG path description, and you can add
them separately. For example if you download this file
http://commons.wikimedia.org/wiki/File:USA_Counties_with_FIPS_and_names.svg
and take the node with "Ulster, NY" you can render it this way:

| view svg |
view := RTView new.
svg := (RTSVGPath new
path: 'M 501.96598,97.8 L 502.15198,100.009 L 502.68298,101.739 L
502.88598,102.153 L 503.20498,104.028 L 502.29498,104.366 L
501.61098,104.502 L 501.02498,104.483 L 500.32998,104.231 L
499.33398,104.921 L 498.91498,104.299 L 497.86898,103.844 L
496.94598,103.415 L 497.13498,102.933 L 497.50398,102.086 L
497.69798,101.505 L 495.56698,100.824 L 494.24598,100.423 L
496.85998,97.791 L 498.36098,98.174 L 499.08798,98.084 L 500.56998,97.894 L
500.65098,96.89 L 501.06998,96.754 L 501.99798,97.146 L 501.96598,97.8';
fillColor: (Color r: 0.612 g: 0.488 b: 0.3 alpha: 1.0);
scale: 5) element.
view add: svg.
view open

There should be an easier way like using an SVG importer for Roassal, but
that's all I have for now.

Cheers,

Hernán


Re: [Pharo-users] Pharo Consultants Page Updated

2014-11-20 Thread Hernán Morales Durand
Thank you.

Hernán

2014-11-20 5:55 GMT-03:00 Sven Van Caekenberghe :

> Hi,
>
> The Pharo Consultants page has been updated, it now contains 17 entries.
>
>   http://consultants.pharo.org
>
> Sven
>
>


Re: [Pharo-users] Kiviat support in Roassal

2014-11-20 Thread Usman Bhatti
Thank you. I'll have a look asap :)

On Thu, Nov 20, 2014 at 1:48 PM, Alexandre Bergel 
wrote:

> Hi!
>
> Pierre just finished a first version of Kiviat in Roassal. Here are some
> example:
>
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> b := RTKiviatBuilder new.
>
> b objects: RTAbstractCircleLayout withAllSubclasses.
>
> n := RTMultiLinearColorForIdentity new objects: (b objects).
> b shape circle color: [ :value | n rtValue: value named]; size: 10.
>
> b addMetric: #numberOfLinesOfCode.
> b addMetric: #numberOfMethods.
> b addMetric: #numberOfVariables.
>
> b activatePolygons.
>
> b build.
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>
> It would be great to have feedback on this!
>
> Cheers,
> Alexandre
>
> --
> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> Alexandre Bergel  http://www.bergel.eu
> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>
>
>
>


Re: [Pharo-users] RTMultiCompositeShape + Bitmap

2014-11-20 Thread Alexandre Bergel
Hi Rosario!

Well spotted! Please, update Trachel to enjoy the bug fix

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



> On Nov 20, 2014, at 10:39 AM, rosariosm  wrote:
> 
> Hello,
> 
> When i try to add a vertical/horizontal layout to a RTMultiCompositeShape
> that has a Bitmap shape, it cant render the layout because a RTBitmal dont
> understand #extent.
> 
> For example:
> 
>   | element label bitmap composite view |
> 
>   label := RTLabel new text: 'hello'.
>   bitmap := RTBitmap new form: (Form dotOfSize: 10).
>   composite := (RTMultiCompositeShape with: label with: bitmap) vertical.
> 
>   element := RTElement new addShape: composite.
>   view := RTView new
>   add: element;
>   open
> 
> Thanks! 
> Rosario
> 
> 
> 
> 
> --
> View this message in context: 
> http://forum.world.st/RTMultiCompositeShape-Bitmap-tp4791277.html
> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
> 



Re: [Pharo-users] [Moose-dev] Kiviat support in Roassal

2014-11-20 Thread Johan Fabry

That looks really cool!

On Nov 20, 2014, at 9:48 AM, Alexandre Bergel  wrote:

> Hi!
> 
> Pierre just finished a first version of Kiviat in Roassal. Here are some 
> example:
> 
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> b := RTKiviatBuilder new.
> 
> b objects: RTAbstractCircleLayout withAllSubclasses.
> 
> n := RTMultiLinearColorForIdentity new objects: (b objects).
> b shape circle color: [ :value | n rtValue: value named]; size: 10.
> 
> b addMetric: #numberOfLinesOfCode.
> b addMetric: #numberOfMethods.
> b addMetric: #numberOfVariables.
> 
> b activatePolygons.
> 
> b build.
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> 
> 
> It would be great to have feedback on this!
> 
> Cheers,
> Alexandre
> 
> -- 
> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> Alexandre Bergel  http://www.bergel.eu
> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
> 
> 
> 
> ___
> Moose-dev mailing list
> moose-...@iam.unibe.ch
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev



---> Save our in-boxes! http://emailcharter.org <---

Johan Fabry   -   http://pleiad.cl/~jfabry
PLEIAD lab  -  Computer Science Department (DCC)  -  University of Chile



Re: [Pharo-users] Pharo Consultants Page Updated

2014-11-20 Thread Tudor Girba
Thanks!

Doru

On Thu, Nov 20, 2014 at 1:09 PM, Norbert Hartl  wrote:

> Thanks!
>
> Norbert
>
>
>
> > Am 20.11.2014 um 09:55 schrieb Sven Van Caekenberghe :
> >
> > Hi,
> >
> > The Pharo Consultants page has been updated, it now contains 17 entries.
> >
> >  http://consultants.pharo.org
> >
> > Sven
> >
>
>


-- 
www.tudorgirba.com

"Every thing has its own flow"


[Pharo-users] RTMultiCompositeShape + Bitmap

2014-11-20 Thread rosariosm
Hello,

When i try to add a vertical/horizontal layout to a RTMultiCompositeShape
that has a Bitmap shape, it cant render the layout because a RTBitmal dont
understand #extent.

For example:

| element label bitmap composite view |

label := RTLabel new text: 'hello'.
bitmap := RTBitmap new form: (Form dotOfSize: 10).
composite := (RTMultiCompositeShape with: label with: bitmap) vertical.

element := RTElement new addShape: composite.
view := RTView new
add: element;
open

Thanks! 
Rosario




--
View this message in context: 
http://forum.world.st/RTMultiCompositeShape-Bitmap-tp4791277.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.



Re: [Pharo-users] [Moose-dev] Kiviat support in Roassal

2014-11-20 Thread Alexandre Bergel
Yes!

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



> On Nov 20, 2014, at 9:49 AM, Tudor Girba  wrote:
> 
> Great news!
> 
> Is this already committed in Roassal?
> 
> Doru
> 
> On Thu, Nov 20, 2014 at 1:48 PM, Alexandre Bergel  > wrote:
> Hi!
> 
> Pierre just finished a first version of Kiviat in Roassal. Here are some 
> example:
> 
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> b := RTKiviatBuilder new.
> 
> b objects: RTAbstractCircleLayout withAllSubclasses.
> 
> n := RTMultiLinearColorForIdentity new objects: (b objects).
> b shape circle color: [ :value | n rtValue: value named]; size: 10.
> 
> b addMetric: #numberOfLinesOfCode.
> b addMetric: #numberOfMethods.
> b addMetric: #numberOfVariables.
> 
> b activatePolygons.
> 
> b build.
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> 
> 
> It would be great to have feedback on this!
> 
> Cheers,
> Alexandre
> 
> -- 
> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> Alexandre Bergel  http://www.bergel.eu 
> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
> 
> 
> 
> 
> 
> 
> -- 
> www.tudorgirba.com 
> 
> "Every thing has its own flow"
> ___
> Moose-dev mailing list
> moose-...@iam.unibe.ch
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev



Re: [Pharo-users] Kiviat support in Roassal

2014-11-20 Thread Tudor Girba
Great news!

Is this already committed in Roassal?

Doru

On Thu, Nov 20, 2014 at 1:48 PM, Alexandre Bergel 
wrote:

> Hi!
>
> Pierre just finished a first version of Kiviat in Roassal. Here are some
> example:
>
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> b := RTKiviatBuilder new.
>
> b objects: RTAbstractCircleLayout withAllSubclasses.
>
> n := RTMultiLinearColorForIdentity new objects: (b objects).
> b shape circle color: [ :value | n rtValue: value named]; size: 10.
>
> b addMetric: #numberOfLinesOfCode.
> b addMetric: #numberOfMethods.
> b addMetric: #numberOfVariables.
>
> b activatePolygons.
>
> b build.
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>
> It would be great to have feedback on this!
>
> Cheers,
> Alexandre
>
> --
> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> Alexandre Bergel  http://www.bergel.eu
> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>
>
>
>


-- 
www.tudorgirba.com

"Every thing has its own flow"


[Pharo-users] Kiviat support in Roassal

2014-11-20 Thread Alexandre Bergel
Hi!

Pierre just finished a first version of Kiviat in Roassal. Here are some 
example:

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
b := RTKiviatBuilder new.

b objects: RTAbstractCircleLayout withAllSubclasses.

n := RTMultiLinearColorForIdentity new objects: (b objects).
b shape circle color: [ :value | n rtValue: value named]; size: 10.

b addMetric: #numberOfLinesOfCode.
b addMetric: #numberOfMethods.
b addMetric: #numberOfVariables.

b activatePolygons.

b build.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


It would be great to have feedback on this!

Cheers,
Alexandre

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





Re: [Pharo-users] Citizen example for manipulating a bibtex file

2014-11-20 Thread Damien Pollet
Basically, there is a parser, a set of objects modeling the structure
of a bibtex database, and the "phrases", which are a sort of template
system, or reverse parser, that can format bibliography data into
other forms.

I've never been really happy with this template system. In bibtex, the
equivalent is basically a handwritten imperative program…

On 18 November 2014 13:06, Offray Vladimir Luna Cárdenas
 wrote:
> Damien,
>
> I will. For the moment I'm using citezen as is and I don't understand its
> internals. Anyway in its current state is very useful for Zotero
> bibliographic integration via BibTeX.
>
> I'll keep you posted on my experiments on Zotero integration in using Pharo
> for open/citizen/garage science & research writing.
>
> Cheers,
>
> Offray
>
> El 18/11/14 a las #4, Damien Pollet escribió:
>
>> Please nag me if you want to contribute to Citezen. I haven't touched
>> the code a long while, but I should…
>>
>> On 18 November 2014 02:50, Offray Vladimir Luna Cárdenas
>>  wrote:
>>>
>>> Hi Sven,
>>>
>>> Sorry for my late response. The constructive comments on the list and
>>> yours
>>> in particular are very valuable to my. I was finishing some details, so
>>> only
>>> until now I have the time to implement your suggestions. The new code for
>>> custom keys on bibtex files from pharo is published at [1] (by the grace
>>> of
>>> Doru's easy publishing of playgrounds on your stfx server)
>>>
>>> [1] http://ws.stfx.eu/3CEKQQQ3NL2E
>>>
>>> By the way the article I'm writing is about a tool for open, citizen,
>>> garage
>>> research and science developed in Pharo. It is published at [2] and was
>>> stored nicely using STON[3] and is superb. To test the tool, the article
>>> was
>>> wrote on it.
>>>
>>> [2]
>>>
>>> http://mutabit.com/deltas/repos.fossil/grafoscopio/doc/tip/Docs/Es/Articulos/Libertadores/bootstrapping-objeto-investigacion.pdf
>>>
>>> [3]
>>>
>>> http://mutabit.com/deltas/repos.fossil/grafoscopio/doc/tip/Docs/Es/Articulos/Libertadores/bootstrapping-objeto-investigacion.ston
>>>
>>> [4]
>>>
>>> http://mutabit.com/deltas/repos.fossil/grafoscopio/doc/tip/Docs/Es/Articulos/Libertadores/bootstrapping-objeto-investigacion.markdown
>>>
>>> The only thing I would add to STON would be an option to support line
>>> breaks
>>> so long character sequences can be broken to make the format DVCS
>>> friendly
>>> (git, fossil, etc) and support collaboration and changes tracking. At
>>> this
>>> moment, because of the long lines in STON, the files are treated as
>>> binaries
>>> by fossil :-/.
>>>
>>> Thanks for STON and your lessons,
>>>
>>> Offray
>>>
>>> El 22/10/14 a las #4, Sven Van Caekenberghe escribió:
>>>

> On 22 Oct 2014, at 18:42, Offray Vladimir Luna Cárdenas
>  wrote:
>
> Hi,
>
> Thanks again. I have a small script, using Citezen which does the
> trick.
> I can explore and modify the BibTeX File from the playground with this:
>
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> | bibFile bibliography bibStream bibOutputer |
> bibFile := ((FileLocator documents / 'U/Libertadores/Grafoscopio')
> children
>  detect: [:each | each basename endsWith: 'bib' ]).
> bibliography := CZBibParser parse: bibFile contents.
> bibStream := '' writeStream.
> 1 to: (bibliography size) do: [:index |
> (((bibliography entries at: index) fields at: 2) key =
> 'shorttitle')
> ifTrue: [
>   (bibliography entries at: index)
>  key: ((bibliography entries at: index) fields at: 2)
> value].
> bibOutputer := CZBibtexOutputer new.
> bibStream nextPutAll:
>(bibOutputer entryToBibtexString:
>  (bibliography entries at: index)); cr.].
> bibliography.
> bibFile writeStreamDo: [:stream |
> stream nextPutAll: bibStream contents withUnixLineEndings
> ].
> bibStream contents.
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-



 Some constructive comments about your code (smaller is always better,
 especially for interactive snippets):

 - you can change the #detect: to [ :each | each extension = #bib ]
 - you can iterate directly over the entries with #do: as in bibliography
 entries do: [ :each | .. ] which saves you the #at: index
 - there are handy unary shortcuts for accessing elements, like #first,
 #second and so on (up to #ninth) which also save you parenthesis
 - you can also construct strings using the idiom String streamContents:
 [
 :bibStream | .. ]

 Sorry, these jumped to me when I saw your code, I hope you don't mind
 ;-)

> I will put some functionality inspired by this on my prototype this
> weekend.
>
> Cheers,
>
> Offray
>
> On 10/21/2014 01:20 AM, stepharo wrote:
>>
>>
>> Check in the tools there is a bib writer.
>>
>> Stef
>>
>> On 21/10/14 03:33, Of

Re: [Pharo-users] Pharo and ODBC

2014-11-20 Thread olivier auverlot
Thanks for your help.

The ODBC source must be declared with C:\WINDOWS\SysWow64\odbcad32.exe and
use 32 bits mode.



2014-11-20 9:56 GMT+01:00 S Krish :

>
> Plausible Pharo 32 bit / 64 bit conflict..?
>
> http://msdn.microsoft.com/en-us/library/ms712362%28v=vs.85%29.aspx
>
> "If you use the 64-bit odbcad32.exe to configure or remove a DSN that
> connects to a 32-bit driver, for example, Driver do Microsoft Access
> (*.mdb), you will receive the following error message:"
>
> On Thu, Nov 20, 2014 at 1:35 PM, olivier auverlot <
> olivier.auver...@gmail.com> wrote:
>
>> Hi,
>>
>> I try to use the ODBC framework presents in the configurations list and
>> named "ODBC (TorstenBergmann.5)"
>>
>> I want connect Pharo to a Postgresql server and I installed the latest
>> version of the ODBC driver. The datasource is configured as system
>> datasource. The connection test is ok. My computer uses Windows 7 64 bits.
>>
>> In Pharo, I try to connect with the following code:
>>
>> connection := ODBCConnection dsn: 'mysource' user: 'myuser' password:
>> 'mypassword'.
>> connection close.
>>
>> The connection fails and I get an error message: "The data source (DSN)
>> has a specified architecture incompatibility between the driver and the
>> application".
>>
>> Someone have an idea about this problem ? Someone works with the ODBC
>> solution ?
>>
>> Best regards
>> Olivier
>>
>
>


Re: [Pharo-users] Pharo Consultants Page Updated

2014-11-20 Thread Norbert Hartl
Thanks!

Norbert



> Am 20.11.2014 um 09:55 schrieb Sven Van Caekenberghe :
> 
> Hi,
> 
> The Pharo Consultants page has been updated, it now contains 17 entries.
> 
>  http://consultants.pharo.org
> 
> Sven
> 



Re: [Pharo-users] Pharo and ODBC

2014-11-20 Thread S Krish
Plausible Pharo 32 bit / 64 bit conflict..?

http://msdn.microsoft.com/en-us/library/ms712362%28v=vs.85%29.aspx

"If you use the 64-bit odbcad32.exe to configure or remove a DSN that
connects to a 32-bit driver, for example, Driver do Microsoft Access (*.mdb),
you will receive the following error message:"

On Thu, Nov 20, 2014 at 1:35 PM, olivier auverlot <
olivier.auver...@gmail.com> wrote:

> Hi,
>
> I try to use the ODBC framework presents in the configurations list and
> named "ODBC (TorstenBergmann.5)"
>
> I want connect Pharo to a Postgresql server and I installed the latest
> version of the ODBC driver. The datasource is configured as system
> datasource. The connection test is ok. My computer uses Windows 7 64 bits.
>
> In Pharo, I try to connect with the following code:
>
> connection := ODBCConnection dsn: 'mysource' user: 'myuser' password:
> 'mypassword'.
> connection close.
>
> The connection fails and I get an error message: "The data source (DSN)
> has a specified architecture incompatibility between the driver and the
> application".
>
> Someone have an idea about this problem ? Someone works with the ODBC
> solution ?
>
> Best regards
> Olivier
>


Re: [Pharo-users] Pharo and ODBC

2014-11-20 Thread Markus Fritsche
Hello Olivier,

did you create the DSN using
C:\WINDOWS\SysWow64\odbcad32.exe
?

The 32 Bit ODBC Adminstration Console is located in SysWow64, if you
just start the ODBC Adminstration Console from the system admin tools,
you will get the 64 Bit version, which is located in C:\WINDOWS\system32 :)




[Pharo-users] Pharo Consultants Page Updated

2014-11-20 Thread Sven Van Caekenberghe
Hi,

The Pharo Consultants page has been updated, it now contains 17 entries.

  http://consultants.pharo.org

Sven



[Pharo-users] Pharo and ODBC

2014-11-20 Thread olivier auverlot
Hi,

I try to use the ODBC framework presents in the configurations list and
named "ODBC (TorstenBergmann.5)"

I want connect Pharo to a Postgresql server and I installed the latest
version of the ODBC driver. The datasource is configured as system
datasource. The connection test is ok. My computer uses Windows 7 64 bits.

In Pharo, I try to connect with the following code:

connection := ODBCConnection dsn: 'mysource' user: 'myuser' password:
'mypassword'.
connection close.

The connection fails and I get an error message: "The data source (DSN) has
a specified architecture incompatibility between the driver and the
application".

Someone have an idea about this problem ? Someone works with the ODBC
solution ?

Best regards
Olivier