[Pharo-users] Managing Code - Creating a Library/Package from scratch?

2019-01-05 Thread Todd Blanchard via Pharo-users
--- Begin Message --- The bit I always struggle with on various Smalltalk environments is the right way to manage code. It keeps changing. Which is fine. But I've been away for a bit and I'm lost now. I want to create a new package that can be loadable and lives in a git repo. I guess

Re: [Pharo-users] Website is down

2019-01-23 Thread Todd Blanchard via Pharo-users
--- Begin Message --- Is it a static website or does it have code behind it? Could we use S3 at AWS? > On Jan 22, 2019, at 9:37 AM, Esteban Maringolo wrote: > > El mar., 22 ene. 2019 a las 14:03, Esteban Lorenzano > () escribió: >> >> There is a problem with INRIA servers :( >> They does not

[Pharo-users] GlorpSQLite not finding sqlite library on Mac

2018-12-16 Thread Todd Blanchard via Pharo-users
--- Begin Message --- I loaded up Glorp SQLite using Metacello new repository: 'github://pharo-rdbms/glorp-sqlite3'; baseline: 'GlorpSQLite'; load. This seems to be the only way to get SQLite support? There is no standalone UFFI library? Not that I have a problem

Re: [Pharo-users] GPS / Longitude / Latitude library

2018-12-04 Thread Todd Blanchard via Pharo-users
--- Begin Message --- I have long wanted to do a FFI interface to GDAL. I think Pharo would make a great GIS workbench. Possibly when 64bit UFFI stabilizes. > On Dec 4, 2018, at 1:21 AM, Alistair Grant wrote: > > Hi, > > Does anyone know of a library for processing GPS coordinates? > >

Re: [Pharo-users] OpenGL resources?

2018-12-07 Thread Todd Blanchard via Pharo-users
> Esteban > > Ps: no, I have no idea about OpenGL :P > > >> On 7 Dec 2018, at 15:45, Todd Blanchard via Pharo-users >> mailto:pharo-users@lists.pharo.org>> wrote: >> >> >> From: Todd Blanchard mailto:tblanch...@mac.com>> >> Subject:

[Pharo-users] OpenGL resources?

2018-12-07 Thread Todd Blanchard via Pharo-users
--- Begin Message --- Hi, I need to learn OpenGL for my job and was wondering if any of the OpenGL experts could comment on Pharo's OpenGL integration and its suitability for a learning environment. Are there any particular packages I should look at that are heavily OpenGL oriented that would

Re: [Pharo-users] Lambda World 2018 - What FP can learn from Smalltalk by Aditya Siram

2018-11-23 Thread Todd Blanchard via Pharo-users
--- Begin Message --- I saw it. I learned a lot about some things I didn't know about in Pharo. I had no idea how PetitParser worked. Now I'm intrigued. It was an interesting perspective because, while he wasn't pushing Smalltalk, he was pushing for other languages to pursue better

Re: [Pharo-users] My Keynote at the Salta Conference

2018-11-20 Thread Todd Blanchard via Pharo-users
--- Begin Message --- OK, I'll bite. What does "code the competition" mean exactly? I last used Smalltalk "in anger" pre-pharo with squeak. I live ST and am looking for a way back "in" but TBH the changes from Squeak are vast and I have too many ideas to work on and keep hitting walls. I'm

Re: [Pharo-users] My Keynote at the Salta Conference

2018-11-21 Thread Todd Blanchard via Pharo-users
--- Begin Message --- OK, sorry. I missed that. Now I've read it. And it requires a customized VM that can count bytecodes executed against a budget and terminate execution if the budget is exceeded. For the developer it requires an awareness of the relationship between bytecodes and source

Re: [Pharo-users] Slots doc

2019-02-03 Thread Todd Blanchard via Pharo-users
--- Begin Message --- Seems like an opportunity...I have no idea what the addition of slots does but I would like to learn. > On Feb 3, 2019, at 1:33 AM, ducasse wrote: > >> Hello, >> >> Where I can find documentation for slots? >> >> I am trying to access the pharo books site but it is

Re: [Pharo-users] Modeling HABTM

2019-06-10 Thread Todd Blanchard via Pharo-users
--- Begin Message --- I've done a couple cheap and cheerful ORMs in various languages. I always punt on doing the relationships because finishing the app is more urgent than writing a whole framework. I just add an instance method that executes the appropriate SQL to fetch the related

[Pharo-users] Could not resolve ConfigurationOfJSON

2019-09-15 Thread Todd Blanchard via Pharo-users
--- Begin Message --- Trying to check out Grafoscopio and I keep running into this error. Tried with Pharo 5 and 7. Any suggestions? --- End Message ---

Re: [Pharo-users] Glorp + P3 + SQLite

2019-11-21 Thread Todd Blanchard via Pharo-users
it with SQLite was never tested > > -- Pavel > > so 19. 10. 2019 v 10:27 odesílatel Todd Blanchard via Pharo-users > mailto:pharo-users@lists.pharo.org>> napsal: > I loaded GLORP+P3 without issue. > > Trying to load SQLite3 - it also wants to load GLORP which complains

Re: [Pharo-users] uFFI: Debugging "External module not found" Error

2019-12-03 Thread Todd Blanchard via Pharo-users
--- Begin Message --- This is the most annoying thing about UFFI - the library search seems to opaque and I don't understand how it works. So far I am finding best practice is to find the library yourself and then provide the exact file path you want. That way, you can actually prompt the

Re: [Pharo-users] [Pharo-dev] [ANN] Grouper

2019-12-09 Thread Todd Blanchard via Pharo-users
--- Begin Message --- This is cool. Rails has this kind of capability and I miss it elsewhere. > On Dec 9, 2019, at 6:08 AM, Julien Delplanque > wrote: > > Hello, > > I made a small library that reify grouping (that one does via #groupBy: > usually): Grouper

Re: [Pharo-users] how can I this refractor this so its more smalltalk

2019-12-17 Thread Todd Blanchard via Pharo-users
--- Begin Message --- Well my main run method looks like this: run | op | ram := self input. in := ReadStream on: ram. [ (op := in next) = 99 ] whileFalse: [ self processOpcode: op ]. ^self at: 0. ram is the array of integers. in is a ReadStream on them

Re: [Pharo-users] some sort of mentor help ?

2019-12-03 Thread Todd Blanchard via Pharo-users
--- Begin Message --- I looked at the site and I knocked out day 1. These are little programming puzzles you can do in a playground. Day 1's first puzzles is literally a 1 liner. The story telling obfuscates the problem and can make the problem seem harder than it is. You have to learn to

Re: [Pharo-users] Glorp + P3 + SQLite

2019-10-19 Thread Todd Blanchard via Pharo-users
--- Begin Message --- I should probably mention that I do not really have a great handle on how package configurations work these days. Coming back to Smalltalk after a long time away. Pointer to an explanation of how package configurations work would be great. --- End Message ---

Re: [Pharo-users] Glorp + P3 + SQLite

2019-10-22 Thread Todd Blanchard via Pharo-users
. Is the package loader not smart enough to understand what is already loaded and skip load attempts? Puzzling. > On Oct 19, 2019, at 11:23 PM, Pierce Ng wrote: > > On Sat, Oct 19, 2019 at 01:26:10AM -0700, Todd Blanchard via Pharo-users > wrote: >> I loaded GLORP+P3 without issue.

Re: [Pharo-users] [Pharo-dev] [Ann] Concurrent Programming in Pharo is available

2020-02-10 Thread Todd Blanchard via Pharo-users
--- Begin Message --- I have wanted a clean explanation of semaphores and process scheduling for a long time. Thanks for this. > On Feb 9, 2020, at 3:58 AM, Stéphane Ducasse > wrote: > > On http://books.pharo.org/booklet-ConcurrentProgramming/ >

Re: [Pharo-users] smalltalk conferences

2020-01-27 Thread Todd Blanchard via Pharo-users
--- Begin Message --- +1 SoCal checking in here. Would love that as Europe is usually beyond my reach for just a tech conf. > On Jan 27, 2020, at 5:33 PM, tbrunz wrote: > > We need to start one. Along with a North American version of ESUG. > > > > > -- > Sent from:

Re: [Pharo-users] smalltalk conferences

2020-01-27 Thread Todd Blanchard via Pharo-users
--- Begin Message --- San Diego here. > On Jan 27, 2020, at 5:37 PM, tbrunz wrote: > > I'm in Los Angeles. Plenty of places to hold conferences here! (San Diego & > San Francisco, too.) > > > > > -- > Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html > --- End

Re: [Pharo-users] About "it's not pharo but smalltalk"

2020-02-05 Thread Todd Blanchard via Pharo-users
--- Begin Message --- FWIW I am one of the mods of /r/smalltalk - happy to have material Sent from my iPhone > On Feb 5, 2020, at 13:12, horrido wrote: > > Reddit is a strange bird. I have found more resistance to Smalltalk there > than from any other source on the planet. Moreover, those

Re: [Pharo-users] sqlite garage

2020-01-30 Thread Todd Blanchard via Pharo-users
--- Begin Message --- Hi Jeff, If you haven't switched, the current SQLite repository that we would like to consider the "official" on is at https://github.com/pharo-rdbms/Pharo-SQLite3 Garage is being put on a weight loss program. > On Jan 29,

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

2020-01-19 Thread Todd Blanchard via Pharo-users
--- Begin Message --- I have some work around building class hierarchies from database schema - specifically a Rails style Active Record schema. It is a bit of a work in progress and is intended to be folded into Glorp but you can see where I am at

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

2020-01-22 Thread Todd Blanchard via Pharo-users
--- Begin Message --- That would be amazing! I'm a Mac/Unix guy so I don't have access to the other platforms (I suppose I could fire up an AWS Oracle). I can do mysql/mariadb, posgresql, and sqlite. I'm pretty close to pushing my ActiveRecord extensions. I just need to get many to many with

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

2020-01-20 Thread Todd Blanchard via Pharo-users
--- Begin Message --- The official is https://github.com/pharo-rdbms/glorp (The one I forked at pharo-db - a username I need to change as it is causing confusion). I've been mostly working with P3 and SQLite together. I've standardized the query results format for fetching field definitions so

Re: [Pharo-users] [ANN] Phoedown - Markdown to HTML

2020-01-02 Thread Todd Blanchard via Pharo-users
--- Begin Message --- +1 > On Jan 2, 2020, at 9:24 PM, Pierce Ng wrote: > > On Thu, Jan 02, 2020 at 12:56:55PM -0600, Sean P. DeNigris wrote: >> bugs seem to be >> more severe and difficult to diagnose, so we'll see how it goes as FFI use >> becomes more and more common... > > There's a saying

Re: [Pharo-users] can I divide a string into part of exactly n length

2020-04-27 Thread Todd Blanchard via Pharo-users
--- Begin Message --- This works | s1 s2 | s1 := 'abcdefghijk'. s2 := String streamContents: [:s || in len | in := ReadStream on: s1. len := 0. [in atEnd] whileFalse: [ s nextPut: in next. len := len + 1. (in atEnd not and: [ (len \\ 3) = 0]) ifTrue: [ s space ] ] ]

Re: [Pharo-users] Siren 9.0 Released

2020-05-19 Thread Todd Blanchard via Pharo-users
--- Begin Message --- It is interesting to see that Siren uses PortAudio. I was considering to recommend adopting it for Pharo in the other sound thread. It has been used in a lot of projects, but I am a little concerned it has not been recently updated. http://www.portaudio.com > On May 14,

Re: [Pharo-users] [ANN] What are reasons NOT to use Smalltalk?

2020-06-19 Thread Todd Blanchard via Pharo-users
--- Begin Message --- Same. My biggest hesitation is lack of cloud deployment support. At least for web apps. For desktop apps, I have been holding off building any UI because of the brik blok spec spec2 churn. > On Jun 19, 2020, at 10:02 AM, Richard Sargent > wrote: > > It wouldn't let

Re: [Pharo-users] [ANN] What are reasons NOT to use Smalltalk?

2020-06-19 Thread Todd Blanchard via Pharo-users
--- Begin Message --- HTML+CSS+JQuery has been stable for a long time. That's pretty much what I use (plus the odd jquery widget like date picker). Not keen on writing code I know will be obsolete next year was my primary point. > On Jun 19, 2020, at 12:14 PM, Aliaksei Syrel wrote: > >

Re: [Pharo-users] [ANN] What are reasons NOT to use Smalltalk?

2020-06-19 Thread Todd Blanchard via Pharo-users
--- Begin Message --- It isn't plug and play. For instance, I can pick PHP on an AWS elastic beanstalk menu, set up a couple shell scripts, and deploy PHP with 'eb deploy' out of my local git repo. Easy. It is possible to deploy the stuff but to build infrastructure and deployment scripts for

Re: [Pharo-users] GIS support for Pharo

2020-06-04 Thread Todd Blanchard via Pharo-users
--- Begin Message --- Hi Serge, I would love to participate in getting some GIS features into Pharo. I think it would be a fantastic platform for GIS. My personal orientation is doing marine navigation (have boat with sensors, want boat to be be smarter about navigation). My main interests

[Pharo-users] Re: Pharo-WebView

2021-12-17 Thread Todd Blanchard via Pharo-users
Seems cool but I can't figure out how to build it as a library on MacOS. > On Dec 16, 2021, at 10:02 AM, Tomaž Turk wrote: > > Dear all, > > Pharo-WebView package is now available on GitHub at > https://github.com/eftomi/Pharo-Webview > . > >

[Pharo-users] Re: Pharo9 GLORP + MySQL

2021-12-23 Thread Todd Blanchard via Pharo-users
Load the glorp target from the MySQL repository. > On Dec 22, 2021, at 1:33 PM, laszlo.szoln...@gmail.com wrote: > > Hi, I’m new to the Pharo users mailing list and to Pharo in general, too. > > My goal is to make a CRUD web application using Seaside, Magritte, GLORP and > MariaDB (MySQL-like

[Pharo-users] Re: Null Object Pattern

2022-03-15 Thread Todd Blanchard via Pharo-users
Why do you not just do something like [ “complicated code that might fail somewhere in here” ] on: Error do: [:error | nil] Use the on:do: exception handling to stay safe. Result := [anObject long chain of messages that might return a nilValue ] on: Error do: [:e |

[Pharo-users] Re: Null Object Pattern

2022-03-18 Thread Todd Blanchard via Pharo-users
> On Mar 18, 2022, at 11:39 AM, Esteban Maringolo wrote: > > You say that Smalltalk is not so hot for system developments because > it's extremely malleable? What are you measuring it against? Lots of things but to keep things simple lets go with Objective C since it is quite similar in

[Pharo-users] Re: Null Object Pattern

2022-03-18 Thread Todd Blanchard via Pharo-users
I feel like you’ve latched onto something that is genuinely a non problem and if you get your way we all suffer reduced performance and a guarantee that a nil test is universally the same thing. If you want an overridable nil test, write your own nil test like isNilish and make it mean what

[Pharo-users] Re: Null Object Pattern

2022-03-18 Thread Todd Blanchard via Pharo-users
What, exactly, is inconsistent about a key message isNil being allowed to be overridden? There is a VERY simple solution to your problem that does not involve disrupting the platform. But you'd rather change the platform. Part of the reason Smalltalk has not been the greatest platform to

[Pharo-users] Re: Wow - Chat GPT understands Smalltalk

2023-03-15 Thread Todd Blanchard via Pharo-users
ChatGPT has been trained on some outdated “freely available” books. I tried it with the first half of the first question of the Advent of Code 2022 and asked it to write Pharo Smalltalk. It produced some outdated stuff using messages that are no longer there. FWIW, isOdd was present in Pharo

[Pharo-users] Re: Porting from VW to Pharo

2023-04-11 Thread Todd Blanchard via Pharo-users
You mean we can't just ask ChatGPT to do it? /s > On Apr 11, 2023, at 8:52 AM, Steffen Märcker wrote: > > Dear Christian and Richard, > > thanks for your answers. I'll try to go through the process step by step and > come back with questions to the list if that's okay. > > First, after

[Pharo-users] Re: Troubleshooting ByteArray

2024-01-17 Thread Todd Blanchard via Pharo-users
I guess I’ll point you to the issue too. PDFStreamPrinter>printPDFDataStream: aPDFDataStream …… Line 13: (self compression) ifTrue: [ streamData := (self compressWithGZip: streamData) asByteArray ]. > On Jan 17, 2024, at 5:13 PM, Todd Blanchard via Pharo-users > wrote:

[Pharo-users] Re: Troubleshooting ByteArray

2024-01-17 Thread Todd Blanchard via Pharo-users
Try this: (PDFDocument new compression: false)add: (PDFPage new add: (PDFTextElement new text: 'Hello'; from: 10mm@10mm)); exportTo: 'test.pdf' asFileReference writeStream. Compression causes your string to be gzip’d which is a ByteArray and not a String of any kind. Unfortunately, the write

[Pharo-users] Re: Backing up data

2024-01-18 Thread Todd Blanchard via Pharo-users
You want to look at Fuel, a serialization library. Sent from my iPhone > On Jan 17, 2024, at 9:49 PM, sergio ruiz wrote: > > I have been in the relational database world for decades. One of the things > that is super simple is backing up and restoring data. > > Sometimes, it makes it makes