Search found 652 matches

by swhite
Wed Nov 03, 2021 5:18 pm
Forum: Bugs - Documentation
Topic: Base64Encoder()
Replies: 2
Views: 1538

Re: Base64Encoder()

Hi

I discovered this when I tried to use basic authentication with a web site and it kept failing until I used StringByteLength() or MemorySize()-1

Simon
by swhite
Tue Nov 02, 2021 7:15 pm
Forum: Bugs - Documentation
Topic: Base64Encoder()
Replies: 2
Views: 1538

Base64Encoder()

Hi Is there a bug in the documentation regarding the Base64Encoder() example? If you try the example code as I have done below you can see that using MemorySize() includes the trailing Null$ whereas the StringByteLength() does not. The StringByteLength() version is correct but the documentation uses...
by swhite
Tue Nov 02, 2021 4:16 pm
Forum: Feature Requests and Wishlists
Topic: Declare War on Node.js, Golang, Deno, and more
Replies: 15
Views: 3196

Re: Declare War on Node.js, Golang, Deno, and more

Hi This is the freeware version of gWan for Purebasic. This allows you to create scripts in Purebasic and gWan will compile and run the scripts. I am using the last ASCII version of PB so that it is slightly faster because it does not need to convert the strings to UTF-8 used by gWan. However, you c...
by swhite
Wed Oct 27, 2021 6:48 pm
Forum: Linux
Topic: CloseNetworkConnection()
Replies: 9
Views: 2563

CloseNetworkConnection()

Hi I notice that after using the CloseNetworkConnection() function I am unable to reopen the port unless I wait 1-2 minutes, otherwise OpenNetworkConnection() fails even if the connection is for a local port on the same PC. So I am wondering why this should be the case. Does CloseNetworkConnection()...
by swhite
Tue Oct 19, 2021 2:56 pm
Forum: Feature Requests and Wishlists
Topic: Declare War on Node.js, Golang, Deno, and more
Replies: 15
Views: 3196

Re: Declare War on Node.js, Golang, Deno, and more

I am busy at the moment on a project that uses gWan but once I am done I will make it available with instructions. Simon Hi I have a PB Linux interface for the gWan application server if anyone is interested. http://gwan.ch Simon I maybe interested for a future project, can you share it? :wink:
by swhite
Mon Oct 18, 2021 6:16 pm
Forum: Feature Requests and Wishlists
Topic: Declare War on Node.js, Golang, Deno, and more
Replies: 15
Views: 3196

Re: Declare War on Node.js, Golang, Deno, and more

Hi

I have a PB Linux interface for the gWan application server if anyone is interested.

http://gwan.ch

Simon
by swhite
Sat Oct 16, 2021 8:56 pm
Forum: Bugs - Linux
Topic: Port 465 SSL eMail fails in Linux Shared Object
Replies: 3
Views: 2497

Re: Port 465 SSL eMail fails in Linux Shared Object

Hi

Yes when I use a file with the ".so" extension (i.e. a Linux shared object) the SSL version fails. The non-SSL version works fine.

Simon
by swhite
Sat Oct 16, 2021 4:36 pm
Forum: Bugs - Linux
Topic: Port 465 SSL eMail fails in Linux Shared Object
Replies: 3
Views: 2497

Port 465 SSL eMail fails in Linux Shared Object

Hi

I built a form to test email on Linux. Everything works perfectly on port 587 without SSL and on port 465 with SSL. However the same code only works with port 587 and no SSL in a Linux shared object. Port 465 and SSL always fails when run in a Linux shared object.

Simon
by swhite
Sat Oct 16, 2021 1:40 pm
Forum: Linux
Topic: Linux Reboot/Shutdown using PB app
Replies: 6
Views: 2342

Re: Linux Reboot/Shutdown using PB app

Thanks for these useful examples. I will give them a try.

Simon
by swhite
Fri Oct 15, 2021 3:05 pm
Forum: Linux
Topic: Linux Reboot/Shutdown using PB app
Replies: 6
Views: 2342

Re: Linux Reboot/Shutdown using PB app

Hi

How exactly do you use sudo with RunProgram given that sudo needs a password?

Thanks,
Simon
by swhite
Thu Oct 14, 2021 7:21 pm
Forum: Linux
Topic: Linux Reboot/Shutdown using PB app
Replies: 6
Views: 2342

Linux Reboot/Shutdown using PB app

Hi I would like to be able to have my Purebasic application reboot or shutdown a Linux PC. A number of the commands to accomplish this require root privileges. However RunProgram does not have the ability to specify a user and password. Does anyone have a suggestion about how this might be accomplis...
by swhite
Fri Sep 24, 2021 2:21 pm
Forum: General Discussion
Topic: How to speed up ReceiveNetworkData()
Replies: 5
Views: 1363

Solved: How to speed up ReceiveNetworkData()

Hi Yes I use the NetWorkClient/NetworkServerEvent. The problem was the timer measuring the performance on this particular microservice was initialized in the wrong place and so the results were including more than just the ReceiveNetworkData. Once I investigated further and corrected this issue it m...
by swhite
Thu Sep 23, 2021 5:05 pm
Forum: General Discussion
Topic: How to speed up ReceiveNetworkData()
Replies: 5
Views: 1363

Re: How to speed up ReceiveNetworkData()

Hi

I have done more testing and the ReceiveNetworkData is working . The actual issue is the waiting for data to be available. So I need to find what is holding up the data because the send side indicates it sent the data but the receiver is still waiting. So more investigating is required.

Simon
by swhite
Thu Sep 23, 2021 3:18 pm
Forum: General Discussion
Topic: How to speed up ReceiveNetworkData()
Replies: 5
Views: 1363

How to speed up ReceiveNetworkData()

Hi I created several micro services in PB Linux that all run on the same PC so no network is involved. They communicate via sending strings back and forth over TCP connections. I noticed that most of the services receive and send responses almost immediately. I did notice there were times when delay...
by swhite
Mon Sep 20, 2021 4:39 pm
Forum: General Discussion
Topic: SQLite Query returned as JSON array
Replies: 7
Views: 1882

Re: SQLite Query returned as JSON array

Hi This version allows me to use PB native JSON escaping strings. It is actually faster than using all the JSON functions to create the array. lcJSBuf.s = "" lndBHnd.i = OpenDatabase(#PB_Any,myDatabase,"","",#PB_Database_SQLite) If lndBHnd If DatabaseQuery(lndBHnd,"...