Search found 1217 matches

by Thorium
Fri Feb 23, 2018 10:38 am
Forum: Tricks 'n' Tips
Topic: libcurl.pbi with UTF-8
Replies: 7
Views: 2310

Re: libcurl.pbi with UTF-8

And yes, converting *curlstring to Global fixes memory leak. But it will not be threadsafe. That wasn't a suggestion to fix it, i actually fixed it right away in the first post after you reported the memory leak. I was just thinking why it was written this way in the first place, because it's odd t...
by Thorium
Fri Feb 23, 2018 2:57 am
Forum: Tricks 'n' Tips
Topic: Discord.pbi (only webhooks)
Replies: 2
Views: 2074

Re: Discord.pbi (only webhooks)

Fixed memory leak in libcurl.pbi
by Thorium
Fri Feb 23, 2018 2:48 am
Forum: Tricks 'n' Tips
Topic: libcurl.pbi with UTF-8
Replies: 7
Views: 2310

Re: libcurl.pbi with UTF-8

Thx for mentioning the memory leak, it's true, i didnt see this, but again that code isnt written by me, just adjusted for UTF-8. ^^ I think *curlstring was originally a global variable because he checks if it has a value set and frees the memory, if yes. Probably, for some reason the author changed...
by Thorium
Fri Feb 23, 2018 2:24 am
Forum: Tricks 'n' Tips
Topic: libcurl.pbi with UTF-8
Replies: 7
Views: 2310

Re: libcurl.pbi with UTF-8

Hmm... this code is converting unicode string to utf8 and then utf8 back to unicode.... Doesn't make sense to me. If libcurl works with utf8 strings, you can use .p-utf8 to do conversion automatically, or you can use new UTF8() function to simplify code (replaces AllocateMemory() and PokeS() ). Als...
by Thorium
Fri Feb 23, 2018 2:15 am
Forum: Applications - Feedback and Discussion
Topic: ARK Tribe Log Relay
Replies: 9
Views: 4925

Re: ARK Tribe Log Relay

Update v0.08 fixed: Tribe log state could not be stored on shutdown, if server name had control characters. fixed: Control characters in JSON for Discord webhooks are now properly escaped instead of replaced with spaces. fixed: Failed to save tribe log state on auto update, if updated directly afte...
by Thorium
Thu Feb 22, 2018 3:01 pm
Forum: Tricks 'n' Tips
Topic: WebSocket Server
Replies: 34
Views: 18697

Re: WebSocket Server

1. My site is only HTTPS://www.example.com/chat.html 2. PB is running as ws:// How do you enable `WSS://` on the existing PB server? (without hacking nginx, stunnel, proxy server's, not depending on third party tools absolutely natively with PB) You can't enable it. WSS uses TLS which the server po...
by Thorium
Thu Feb 22, 2018 2:40 pm
Forum: Tricks 'n' Tips
Topic: Discord.pbi (only webhooks)
Replies: 2
Views: 2074

Discord.pbi (only webhooks)

If you don't know: Discord is a chat software/network, which is very popular right now, especially in the games and developer scene. You will find many games and companies having a official Discord server. One nice thing about it is, that you can fairly easily interface with it. There are two ways t...
by Thorium
Thu Feb 22, 2018 12:09 pm
Forum: Tricks 'n' Tips
Topic: libcurl.pbi with UTF-8
Replies: 7
Views: 2310

libcurl.pbi with UTF-8

I can't find the original post of libcurl.pbi, so i just make a new thread. libcurl.pbi discards all none ASCII characters by the way it converts the string for libcurl. Replace the procedure to enable UTF-8 encoding. Procedure.s str2curl(string.s) Protected *curlstring Protected PbCurlString.s *cur...
by Thorium
Thu Feb 22, 2018 11:55 am
Forum: General Discussion
Topic: Postgresql SSL Connection
Replies: 5
Views: 2013

Re: Postgresql SSL Connection

I guess for databases it's not a big issue because most people run the database only on the local host and do not let it communicate over the network. So all communication to and from the database never leaves the host machine. Methinks Thorium was being sarcastic? :? Not really. It's even mentione...
by Thorium
Tue Feb 20, 2018 6:19 pm
Forum: Applications - Feedback and Discussion
Topic: ARK Tribe Log Relay
Replies: 9
Views: 4925

Re: ARK Tribe Log Relay

Update v0.07 changed: keywords are no longer case insensitive added: missing folders are created on startup added: missing .ini entrys are created on startup added: Tribe log entries added while ATLR was off, will be read and relayed now. Fixes tribe log black out during auto update. added: regular...
by Thorium
Tue Feb 20, 2018 10:21 am
Forum: Applications - Feedback and Discussion
Topic: ARK Tribe Log Relay
Replies: 9
Views: 4925

Re: ARK Tribe Log Relay

Update v0.06 added: option to ignore modify date on tribe files, only use it if you encounter problems about tribe logs not being loaded added: auto correction of file name extension of tribe files, prevents selecting backup files added: option to post ATLR status to discord channel added: updater ...
by Thorium
Thu Feb 15, 2018 4:41 pm
Forum: General Discussion
Topic: PureBasic and the Future
Replies: 20
Views: 5786

Re: PureBasic and the Future

Actually the Amiga version of PureBasic was discontinued and open sourced as promised.
by Thorium
Thu Feb 15, 2018 4:38 pm
Forum: General Discussion
Topic: Postgresql SSL Connection
Replies: 5
Views: 2013

Re: Postgresql SSL Connection

I'm using PureBasic 5.44 and talking to a Postgresql database. I'm getting an error "no pg_hba.conf entry for host "172.1xx.xx.x", user "reports", database "portal", SSL off” If I modify the pg_HBA.conf file it will let me in. But this may be a violation of securi...
by Thorium
Tue Feb 13, 2018 11:34 am
Forum: Applications - Feedback and Discussion
Topic: ARK Tribe Log Relay
Replies: 9
Views: 4925

Re: ARK Tribe Log Relay

I made a video of how to set up ATLR on a server, because it was requested.

https://youtu.be/AZaFXsEJRv8
by Thorium
Fri Jan 26, 2018 1:33 pm
Forum: General Discussion
Topic: PureBasic / SpiderBasic maintenance
Replies: 9
Views: 2534

Re: PureBasic / SpiderBasic maintenance

Just a feeling here... I don't have enough experience (will I ever have it?) or computer scientists skills to state whether or not OOP is a bad idea, but I'm working with TypeScript every day, and I feel that something's wrong out there. I miss the control I had with PureBasic. Too many things goin...