Search found 9 matches

by ak2766
Tuesday 16th April 2024 5:49am
Forum: Lounge
Topic: ChatGPT: something to play with over Christmas
Replies: 11
Views: 18628

Re: ChatGPT: something to play with over Christmas

cogier wrote: Friday 3rd March 2023 3:14pm I now have access to the Bing AI. Here is my first question and the answer. The code works without modification!
I bet we are all wondering what the question was...
by ak2766
Tuesday 16th April 2024 5:48am
Forum: Lounge
Topic: ChatGPT: something to play with over Christmas
Replies: 11
Views: 18628

Re: ChatGPT: something to play with over Christmas

stevedee wrote: Friday 23rd December 2022 7:23pm I assume that if anyone asks the exact question that I asked at the start of this chat, they should get a code example with these problems corrected if the AI bot is really learning from experience.
Interestingly, ChatGPT doesn't learn from past interactions with others:
Selection_02616.png
Selection_02616.png (77.51 KiB) Viewed 227 times
by ak2766
Friday 1st December 2023 10:38am
Forum: Project showcase
Topic: Eight-Queen Puzzle Simulator on GAMBAS
Replies: 1
Views: 5294

Eight-Queen Puzzle Simulator on GAMBAS

I taught myself GAMBAS over a weekend (previous VB 6 fan here and most likely showing my age - :oops: ). Having never heard of the eight-queen puzzle, I was intrigued by the recursive method I spotted in the book Programming in Lua which is replicated on StackOverflow - https://stackoverflow.com/que...
by ak2766
Friday 1st December 2023 10:20am
Forum: Project showcase
Topic: Bed Leveller (3D Printer Assistant)
Replies: 34
Views: 31596

Re: Bed Leveller (3D Printer Assistant)

Re: bed warping; if the bed is not substantially flat, the only option is to 'map' the surface and to correct the g-code Z values to compensate. I guess this could be done manually, but the best approach is with something like a BLTouch sensor mounted on the extruder. (I've got one, still in its bo...
by ak2766
Tuesday 21st November 2023 9:23am
Forum: Beginners
Topic: Debugging: Stop program if variable = value ?
Replies: 9
Views: 19677

Re: Debugging: Stop program if variable = value ?

What you are looking for is called a conditional breakpoint. I see it's in the TODO list in the Gitlab repo page:
https://gitlab.com/gambas/gambas/-/blob ... 7f29b/TODO - line 36 as off right now.

Hopefully that'll be implemented soon(ish).
by ak2766
Monday 4th April 2022 9:57am
Forum: Beginners
Topic: Shell command cannot have 2 or more pipes.
Replies: 1
Views: 1578

Re: Shell command cannot have 2 or more pipes.

Problem resolved. I'm on Ubuntu 20.04 and on this version, the version of Gambas in the repos is v3.14.3. After upgrading to v3.17.0, I see there's no such limitation. I did however have ugly font issues that was resolved on comment #3 from this really old post . I'm starting to like Gambas a lot. C...
by ak2766
Monday 4th April 2022 12:54am
Forum: Beginners
Topic: Shell command cannot have 2 or more pipes.
Replies: 1
Views: 1578

Shell command cannot have 2 or more pipes.

I'm still learning the Gambas ropes so bear with me. In trying to calculate a HMAC for my application, I tried the following: smsHMAC = Shell "echo -n 'timestamp\nnonce\nPOST\n/v2/sms\napi.smsglobal.com\n443\n\n' | openssl dgst -sha256 -hmac $(head -1 ~/.smsglobal) -binary | base64" But I ...
by ak2766
Monday 4th April 2022 12:26am
Forum: Beginners
Topic: Anchoring a label to the right so autoresize expands to the left.
Replies: 2
Views: 1727

Re: Anchoring a label to the right so autoresize expands to the left.

cogier wrote: Sunday 3rd April 2022 11:59am Hi and welcome to the forum.

Forum tip: - Use the 'gb' button for your code, the code will look better
...
Thanks for the tip and detailed explanation on my problem, cogier, really appreciated.
by ak2766
Sunday 3rd April 2022 7:45am
Forum: Beginners
Topic: Anchoring a label to the right so autoresize expands to the left.
Replies: 2
Views: 1727

Anchoring a label to the right so autoresize expands to the left.

I'm very new to Gambas but not to programming. I'm creating an SMS application that has a large text area for entering an SMS message. Beneath that, I have 2 counters (as labels): 1) keeps count of characters typed, and 2) keeps count of SMS Count (being that an SMS is limited to 160 characters by S...