[Pharo-users] Re: Willow-Playground

2020-11-26 Thread eftomi
Nice that you settled it out. When Metacello finishes, it usually writes ...finished baseline into the Transcript. Best wishes, Tomaz -- Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html

Re: [Pharo-users] Spec2 Pharo8/9; icons

2020-05-27 Thread eftomi
Hi, > I remember also that there is a project to manage icon sets. I found the library - it's ImageForm (https://github.com/pablo1n7/ImageForm). If you use it, there's no need to use ThemeIcons>>#readPNGFrom:. The above code becomes: To make this example complete: Best wishes Tomaz

Re: [Pharo-users] Thinking aloud about project at hand

2020-05-02 Thread eftomi
> I'm thinking about implementing a software solution in Pharo (as one of the candidate environments), it's > a project that I'm dealing with professionally. The goal is to develop a > financial planning/simulation > application on the country level, which is at present developed as a set > of

Re: [Pharo-users] Generate class hierarchy from JSON Schema

2020-03-12 Thread eftomi
Esteban, if time permits, could you please describe what situations lead to crashes, and with which images? Thanks, Tomaz -- Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html

Re: [Pharo-users] Generate class hierarchy from JSON Schema

2020-01-20 Thread eftomi
Todd, this is great, I didn't know that you are working on ActiveRecord. BTW, I have some minor additions to SQLServerPlatform (support for National Language Character Set) and OraclePlatform (Decimal data type) - is there a central git repository for Glorp so that I could PR to? Thanks and best

Re: [Pharo-users] Date offset in Glorp and RDBMS

2019-12-29 Thread eftomi
Actually, the issue was with reading the variant Date and creating a DateAndTime object by directly setting the JulianDayNumber without respect to the timezone. I commited the necessary change to PharoCOM . -- Sent from:

Re: [Pharo-users] Date offset in Glorp and RDBMS

2019-12-29 Thread eftomi
Thanks for the clues! At first glance, I'd say that the testing could be changed into #equals since the majority of date related tests are not focused into timezones - for instance, one of these tests is GlorpObjectMappedToImaginaryTableTest>>#testReadBackEntireExample which sends #assertEqual: to

[Pharo-users] Date offset in Glorp and RDBMS

2019-12-29 Thread eftomi
Dear all, Going through the remaining red tests in PharoADO + Glorp, I have a sort of a conceptual challenge. Some of the Glorp tests are checking the equality of dates written to and then returned from the database. Pharo regards the dates as not equal if their time offsets are different despite

Re: [Pharo-users] PharoADO

2019-10-21 Thread eftomi
> A question: is PharoCOM and PharoWin32 usable in Pharo 32 bits and 64 bits on Windows or is it a 32 bit thing? I haven't tried it yet. Here's a discussion about that: http://forum.world.st/Microsoft-COM-td5002594.html Best wishes Tomaz -- Sent from:

Re: [Pharo-users] PharoADO

2019-10-20 Thread eftomi
It was not so bad as it looked - all tests under Glorp-Tests-Tests are now green for Oracle and SQL Server. There are some reds under Database and DatabaseTypes, but they seem manageable to resolve. I hope I can publish a first reliable release soon :-) Best wishes, Tomaz -- Sent from:

Re: [Pharo-users] PharoADO

2019-10-20 Thread eftomi
Hi, I'm going systematically through all Glorp tests with PharoADO on SQL Server and Oracle. The majority is green, but here's the current list of reds, FYI: GlorpCacheTest GlorpTimedExpiryCacheTest GlorpTimedStrongCacheTest GlorpDictionaryMappingErrorTest GlorpDictionaryMappingTest

Re: [Pharo-users] NVARCHAR and Glorp

2019-10-17 Thread eftomi
become just an "ordinary" extension to Glorp's SQLServerPlatform. These changes are now available at https://github.com/eftomi/pharo-ado. Best wishes, Tomaz -- Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html

[Pharo-users] PharoADO

2019-10-15 Thread eftomi
Dear all, A working prototype of PharoADO is now available at https://github.com/eftomi/pharo-ado. I'd be glad if you can find the time to test it and report your observations to this list or on the GitHub. PRs are welcome and much needed :-) Firstly, I would like to focus on various database

Re: [Pharo-users] NVARCHAR and Glorp

2019-10-14 Thread eftomi
Thanks, Sven. I found the "ultimate" place where strings are being prepared for INSERT INTO clause - this happens in String>>#glorpPrintSQLOn:. Not so easy to parametrize at a first glance. Maybe with WideString>>#glorpPrintSQLOn: but I'm not sure how other platforms would be happy. I decided to

[Pharo-users] NVARCHAR and Glorp

2019-10-11 Thread eftomi
Dear all, I'm working on ADO database driver for Glorp by using Pablo's PharoCOM. The structure of the driver is similar to Sven's P3DatabaseDriver and P3Client (thanks, Sven for very clear architecture :-) ) and the work is progressing quite nicely. I can connect to SQL Server, PostgreSQL and

Re: [Pharo-users] Number to VT_DECIMAL

2019-10-09 Thread eftomi
Thanks for the explanation and solution - it works flawlessly and efficient :-) -- Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html

[Pharo-users] Number to VT_DECIMAL

2019-10-08 Thread eftomi
Hi, I'm preparing a method to write a given Pharo's numerical value into an external variant of type VT_DECIMAL. The purpose of this type is to retain accuracy, it uses 12 bytes for "mantissa" and two bytes for a sign and a scale (i. e. the position of decimal point). What would be the best

Re: [Pharo-users] Iceberg: relative file path to repository

2019-10-06 Thread eftomi
as relative: File @ pharo-local\iceberg\myRepo and not as absolute: File @ C:\Users\eftomi\PHARO\images\Pharo 8.0 - Glorp\pharo-local\iceberg\myRepo Iceberg is OK with it, as it seems. Best wishes, Tomaz -- Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html

[Pharo-users] Iceberg: relative file path to repository

2019-10-06 Thread eftomi
Hi, is it possible to use relative file paths to local repositories in Iceberg? I'm using three Windows computers and each has its own definition of %USERPROFILE% where all my documents including Pharo images reside. When my work is being synchronized among these computers, Iceberg remembers the

Re: [Pharo-users] Workflows and possible usages

2019-09-30 Thread eftomi
Please see also http://www.workflowpatterns.com/. Historically, BPMN by itself was regarded difficult to automate. BPEL as a workflow language (Oracle SOA, Microsoft BizTalk server) can be interpreted easily by machine, but it is not so easy to learn by the people who have to model the process.

Re: [Pharo-users] Workflows and possible usages

2019-09-29 Thread eftomi
> Anyone have any thoughts or directions to explore? The main assumption about workflows is that they are easily understood by non-developers, and that non-developers can be involved in the development, within business environments. However, the workflows per-se were not accepted well. For

Re: [Pharo-users] Microsoft COM

2019-09-27 Thread eftomi
Hi Pablo, Before doing Invoke() in COMDispatchInstance>>#dispatch, the array of parameters for a COM method call is currently prepared under the assumption that the parameter types reported by COM for a particular method should be used directly, i. e. if a COM method reports VT_BSTR as its

Re: [Pharo-users] Microsoft COM

2019-09-26 Thread eftomi
Hi, > Do you have any use case in mind to start working on? As a professor at business school I have various use cases, like developing business web applications where you cannot do anything without DB access (e. g. Oracle, SQL Server), where COM & ADO could be used. Besides, I could present to

Re: [Pharo-users] Microsoft COM

2019-09-25 Thread eftomi
Hi, I finally got some time to check Pablo's PharoCOM package closely. At first I had problems with simple things, like making Word visible with properyNamed:put: (it's frustrating when you see the app on the processes list but you cannot control it :-)) but then I found the reason - it was a

Re: [Pharo-users] Pumping FFI documentation [WAS] FFI beginner question

2019-09-24 Thread eftomi
Hi Guille, Thanks for your efforts, we really appreciate it! I was intrigued by Stephan and tried to prepare something for the book, like a subtitle/small chapter "Exotic types", but then I noticed that you already put some additional content to the book on GitHub since the pdf at pharo.org was

Re: [Pharo-users] uFFI ExternalAddress challenges

2019-09-21 Thread eftomi
Hi, as a wrap-up for this forum thread, I found an elegant way to take a result as C wchar_t* from an FFI call on Windows, based on the idea of ExternalData>>#fromCString. If anybody needs it: https://github.com/eftomi/pharo-uFFI-readWin32WideString. Best wishes, Tomaz -- Sent from

[Pharo-users] FFIExternalType hooks; naming convention

2019-09-21 Thread eftomi
HI, I have a couple of questions regarding FFI: - If you want to create a new FFIExternalType subclass, which are the necessary hooks that should be implemented - like #externalType, #externalTypeSize … on the class side and #basicHandle:at:, #basicHandle:at:put:, #stackValueParameterClass, etc.

Re: [Pharo-users] uFFI ExternalAddress challenges

2019-09-18 Thread eftomi
Hi, after some more investigation the easiest way to get Win32WideString from external module is to pass it as a parameter, like in: ^self ffiCall: #( void myFunction ( Win32WideString aWin32WideString ) ) and the external module can access it directly to do r/w. There are other possibilities

Re: [Pharo-users] uFFI ExternalAddress challenges

2019-09-17 Thread eftomi
It seems that there's nothing wrong with the primitive, but with Win32Variant creation in ExternalStructure class>>fromHandle:, specifically with basicNew and Win32Variant class as receiver. In what circumstances the debugger/inspector shows 'error printing' message (on the result of basicNew)?

Re: [Pharo-users] uFFI ExternalAddress challenges

2019-09-16 Thread eftomi
A rudimentary disphelper library "approach" is working OK, I succeeded to create a connection to SQL Server through ADODB, too, which is rather cool, since I've been looking for this functionality for too long. I re-checked Pablo's pharo-com package and it is rather comprehensive - it

Re: [Pharo-users] Autocompletion

2019-06-16 Thread eftomi
I found the cause - I created the #buttonBad accessing methods with code (re)factoring (generate accessors), and in this case the accessors are made in this fashion: CustomerSatisfaction >> buttonBad: *anObject *buttonBad := *anObject *It's better to use CustomerSatisfaction >>

Re: [Pharo-users] Running test

2019-02-05 Thread eftomi
It works fine on Win 10 Pro (Version 10.0.17134 Build 17134). Tomaz -- Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html

Re: [Pharo-users] Pharo MOOC 7.0 image

2019-02-04 Thread eftomi
OK, I successfully loaded Seaside, Bootstrap and Magritte into Pharo 7.0.1 (32 and 64 bit) on Win10. If anybody needs the 'how-to', here's what I did: - Install stable version of Magritte3 from Catalog Browser (marked as Pharo 7.0 compatible) - Install stable version of Bootstrap from Catalog

[Pharo-users] Pharo MOOC 7.0 image

2019-02-03 Thread eftomi
Did someone compile a 7.0 MOOC image yet? Seaside is easy to load, however I got stuck with various packages of Bootstrap / Magritte. When I try to load these either through Metacello, Catalog Browser and through Iceberg there's no success. Catalog Browser usually gives an error message in the

Re: [Pharo-users] Learn Pharo - Not Working

2019-02-03 Thread eftomi
Just clicking onto ProfStef Go. works for me on both, too. Win 10, Pharo-7.0.1+build.146, VM: 201901051900 https://github.com/OpenSmalltalk/opensmalltalk-vm.git Date: Sat Jan 5 20:00:11 2019 CommitHash: 7a3c6b6 Plugins: 201901051900 -- Sent from:

Re: [Pharo-users] What's wrong?

2019-01-28 Thread eftomi
OK, I solved the problem with a complete wipe out of Pharo from the system and fresh install. Pharo stored the run-time information in a separate image folder even if I launched the vm and image without PharoLauncher, directly from the console. Fresh install approach solved the other problem, too

[Pharo-users] What's wrong?

2019-01-27 Thread eftomi
ories "ombu-sessions", "play-cache" to store its run-time information. I'm using PharoLauncher version: 1.5.1. The situation is the same if I do this with a fresh 7.0.1 image. System reporter shows: Image - C:\Users\eftomi.MISKOTI\EFTOMI\PHARO\images\Pharo 7.0 - 32bit\

Re: [Pharo-users] [VIDEO TUTORIAL] How to use external code editors to code in Pharo

2019-01-26 Thread eftomi
Good observations! Shortcuts in general are shown under System > Keymap browser. You can move from pane to pane with left and right arrows, this can be set under Pharo Settings (ctrl-o-s). From methods pane you can even go to the code editing pane (for the selected method) by pressing right arrow.

Re: [Pharo-users] [VIDEO TUTORIAL] How to use external code editors to code in Pharo

2019-01-26 Thread eftomi
> you can use it with the keyboard. > Using it, you do not require the mouse. > And, in addition, you do not need to remember complicated shortcuts: > Calypso and the tools of Pharo will > never be covered with shortcuts… > there are too many options. > So yes, it is not a replacement of the

Re: [Pharo-users] [VIDEO TUTORIAL] How to use external code editors to code in Pharo

2019-01-26 Thread eftomi
> cmd+h, then search for what you want (jump panels, execute commands, everything you can do in calypso you can find it there). Thanks. But Spotter can hardly be a replacement for the keyboard. Spotter is a marvel by itself, however please try to survive developing in Pharo for a minute without

[Pharo-users] PrimitiveFailed: primitive #createDirectory: in WindowsStore failed

2019-01-26 Thread eftomi
I'm getting the "PrimitiveFailed: primitive #createDirectory: in WindowsStore failed" error when I launch Pharo 7.0 32-bit image in Windows 10, if the image is copied from another computer. Namely, I share my working directory (including Pharo images) among three computers. When I create new

Re: [Pharo-users] [VIDEO TUTORIAL] How to use external code editors to code in Pharo

2019-01-25 Thread eftomi
Well, who am I to judge, but developers nowadays use tools which engage "muscle memory" to jump from one functionality of the editor to the other and developer brains are used to work on the problem at hand. All this to the extent that the mouse cannot be grasped with muscle memory alone and then

Re: [Pharo-users] [VIDEO TUTORIAL] How to use external code editors to code in Pharo

2019-01-25 Thread eftomi
That's what I'm talking about! I doesn't have to be heavy resources, just a directed evolution What's the proverb? - The laziness is the greatest inventor Can you suggest any starting points to discover these background concepts for a novice like me? -- Sent from:

Re: [Pharo-users] [VIDEO TUTORIAL] How to use external code editors to code in Pharo

2019-01-25 Thread eftomi
Dear all, I'm a Pharo novice, in the middle of a self paced Pharo MOOC, with years of experence going from Turbo C on DOS over Visual Studio and Eclipse to Visual Studio Code in last years. Besides, I'm a professor and a researcher of IT adoption, so here's my two cents contributing to this very

Re: [Pharo-users] SQL Server

2018-12-23 Thread eftomi
PS: I managed to connect to SQL Server with ODBC package (loaded from Project Catalog) in Pharo 6.0, however I have problems with character encodings. Loading the ODBC package into Pharo 6.1 doesn't succeed, in ends with the following in Transcript: Loading 1.3 of ConfigurationOfODBC... … … ...

Re: [Pharo-users] SQL Server

2018-12-23 Thread eftomi
Hi, are there any news regarding SQL Server access from Pharo..? -- Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html

Re: [Pharo-users] NeoCSV

2018-12-17 Thread eftomi
Thanks, Sven! I'm trying to load NeoCSV in Pharo 5.0 from GitHub, but I get Could not resolve: BaselineOfNeoCSV [BaselineOfNeoCSV] in C:\users … However, it loaded nicely in Pharo 6.1 32-bit. Both are on the same location (branch) on the disk. Is there any suggestion what to do (how to debug

Re: [Pharo-users] Latest Pharo and Aida/Web

2018-12-04 Thread eftomi
Thanks, Benoît, it helped! However, when I visit the home page another halt happens in AIDASite>>answerTo: with exception "Error: Guest user missing?", so the digging continues … Tomaz -- Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html

[Pharo-users] Latest Pharo and Aida/Web

2018-12-03 Thread eftomi
Hi, I'm trying to run Aida/Web on Pharo 5.0, 6.1 and 7.0 with no luck. After package inclusion with Catalog Browser, the initialisation with SwazooAida demoStart wasn't working, since Timestamp was not present. After I "faked" it with DateAndTime, the web server is running, but if I visit the