It is currently Wed Aug 21, 2019 7:55 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 253 posts ]  Go to page Previous  1 ... 10, 11, 12, 13, 14, 15, 16, 17  Next
Author Message
 Post subject: Re: PureBasic 5.70 LTS beta 2 is out !
PostPosted: Thu Sep 27, 2018 12:50 pm 
Offline
Addict
Addict
User avatar

Joined: Tue Oct 09, 2007 2:15 am
Posts: 1078
KJ67 wrote:
the.weavster wrote:
the.weavster wrote:
If I Compile/Run a program then click the title bar of that program's main window and while keeping my mouse button down wiggle it from side to side the IDE crashes.
I was wrong, it's not crashing it's just minimizing, I can alt-tab back to it.

Sounds like built-in Win10 with mouse gestures maybe?


Since Windows 7 we can do such things ;)

_________________
PureBasic 5.70 LTS (Windows x86/x64) | Windows10 Pro x64 | Z370 Extreme4 | i7 8770k | 32GB RAM | iChill GeForce GTX 980 X4 Ultra | HAF XF Evo​​
English is not my native language... (I often use DeepL to translate my texts.)


Top
 Profile  
Reply with quote  
 Post subject: Re: PureBasic 5.70 LTS beta 2 is out !
PostPosted: Thu Sep 27, 2018 1:59 pm 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Fri Apr 25, 2003 4:34 pm
Posts: 899
Location: Canada
the.weavster wrote:
Fred wrote:
For UseMySQLDatabase(), the OpenDatabase() command must be used like that:
Code:
db = OpenDatabase(#PB_Any, "host=localhost port=3306 dbname=yourdb", User$, Pass$)

Could this be made to work on Linux by having libmariadb.so in the same folder as the executable? I'm thinking of a CGI on a Linux server where you don't have control over what the web host has installed, you can be pretty sure MySQL will be there but not libmariadb.so.


UseMySQLDatabase( [LibraryName$] ) ;<--- optional path to libmariadb library

_________________
Image Image


Top
 Profile  
Reply with quote  
 Post subject: Re: PureBasic 5.70 LTS beta 2 is out !
PostPosted: Thu Sep 27, 2018 2:54 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Fri Oct 06, 2006 3:57 pm
Posts: 526
Location: England
FRED : UseMySQLDatabase() is the single best thing since sliced bread :)

I noticed in the comments that this was sponsered by Paul, how much sponsership would it take for secure MySql interaction ??

cheers


Top
 Profile  
Reply with quote  
 Post subject: Re: PureBasic 5.70 LTS beta 2 is out !
PostPosted: Thu Sep 27, 2018 3:38 pm 
Offline
Enthusiast
Enthusiast

Joined: Sun Sep 05, 2004 6:27 am
Posts: 762
Location: England
DontTalkToMe wrote:
MrMat wrote:
but there are still a lot of scaling issues. For instance, the toolbar icons are too small


Indeed but you and everyone else should post all this in the bug forum, here this can be rightfully ignored or innocently missed.


I agree mate but it's already in the bug forum and this was a reply to Fred asking about the DPI issues a few posts above in this thread. So all bases are covered :-)

_________________
Mat


Top
 Profile  
Reply with quote  
 Post subject: Re: PureBasic 5.70 LTS beta 2 is out !
PostPosted: Thu Sep 27, 2018 3:43 pm 
Offline
Administrator
Administrator

Joined: Fri May 17, 2002 4:39 pm
Posts: 13611
Location: France
Paul wrote:
the.weavster wrote:
Fred wrote:
For UseMySQLDatabase(), the OpenDatabase() command must be used like that:
Code:
db = OpenDatabase(#PB_Any, "host=localhost port=3306 dbname=yourdb", User$, Pass$)

Could this be made to work on Linux by having libmariadb.so in the same folder as the executable? I'm thinking of a CGI on a Linux server where you don't have control over what the web host has installed, you can be pretty sure MySQL will be there but not libmariadb.so.


UseMySQLDatabase( [LibraryName$] ) ;<--- optional path to libmariadb library


If your linux comes with libmysql.so, you can use it, or you can ship the libmariadb.so with your exe.


Top
 Profile  
Reply with quote  
 Post subject: Re: PureBasic 5.70 LTS beta 2 is out !
PostPosted: Thu Sep 27, 2018 4:07 pm 
Offline
Addict
Addict
User avatar

Joined: Thu Jul 03, 2003 6:53 pm
Posts: 1276
Location: England
Fred wrote:
Paul wrote:
UseMySQLDatabase( [LibraryName$] ) ;<--- optional path to libmariadb library
If your linux comes with libmysql.so, you can use it, or you can ship the libmariadb.so with your exe.

Very cool :D


Top
 Profile  
Reply with quote  
 Post subject: Re: PureBasic 5.70 LTS beta 2 is out !
PostPosted: Thu Sep 27, 2018 11:18 pm 
Offline
PureBasic Team
PureBasic Team
User avatar

Joined: Fri Apr 25, 2003 6:14 pm
Posts: 1700
Location: Germany (Saxony, Deutscheinsiedel)
I haven't used any of the new and very impressive functions of the PB5.70 version... but I can confirm, that with Beta2 the Autocomplete popup problem is solved and my big project still runs fine. So thank you :D

_________________
Bye,
...André
(PureBasicTeam::Docs & Support - PureArea.net | Order:: PureBasic | PureVisionXP)


Top
 Profile  
Reply with quote  
 Post subject: Re: PureBasic 5.70 LTS beta 2 is out !
PostPosted: Fri Sep 28, 2018 11:38 am 
Offline
Addict
Addict
User avatar

Joined: Fri May 12, 2006 6:51 pm
Posts: 1842
Location: Germany
Missing Contant #PB_Database_MySQL for OpenDatabase()

I found libmariadb.dylib for MacOS and copie this file into my program folder.
But UseMySQLDatabase failt...

How to do on MacOS?

_________________
My Projects ThreadToGUI / OOP-BaseClass / OOP-BaseClassDispatch / Event-Designer
PB v3.30 / v5.70 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace


Top
 Profile  
Reply with quote  
 Post subject: Re: PureBasic 5.70 LTS beta 2 is out !
PostPosted: Mon Oct 01, 2018 10:38 am 
Offline
Addict
Addict

Joined: Wed Nov 12, 2008 5:01 pm
Posts: 1049
Location: Russia
Fred wrote:
User_Russian wrote:
All parameters are string. How to transfer a binary file using POST request?
You need to use HTTPRequestMemory().
If it is necessary to transfer a large file (many gigabytes) to the server (POST request), this function will not work for this because won’t load so much memory?
Need a method to send the data separated into several parts.
This is true for the ReceiveHTTPMemory function.

_________________
Library XP_Menu_Lib - office menu; HID_Lib - USB Library
Torrent client - pbTorrent (source code); Create driver in PureBasic.


Top
 Profile  
Reply with quote  
 Post subject: Re: PureBasic 5.70 LTS beta 2 is out !
PostPosted: Tue Oct 02, 2018 3:21 pm 
Offline
Enthusiast
Enthusiast

Joined: Sat Feb 08, 2014 3:26 pm
Posts: 628
Location: France
About HTTPRequest() and HTTPRequestMemory()

:idea: Wouldn't it be better to name constant #PB_HTTP_StatusCode instead of #PB_HTTP_ErrorCode?
:arrow: The reason: there is always a return message in HTTP dialog, but this message is not necessarily an error message 8)

cf: https://en.wikipedia.org/wiki/List_of_HTTP_status_codes

All HTTP response status codes are separated into five classes (or categories). The first digit of the status code defines the class of response. The last two digits do not have any class or categorization role. There are five values for the first digit:

1xx (Informational): The request was received, continuing process
2xx (Successful): The request was successfully received, understood, and accepted
3xx (Redirection): Further action needs to be taken in order to complete the request
4xx (Client Error): The request contains bad syntax or cannot be fulfilled
5xx (Server Error): The server failed to fulfill an apparently valid request


This makes more sense (IMHO) to name it #PB_HTTP_StatusCode and since the function is not yet documented, it should be possible ?

:?: :wink:

_________________
English is not my native language, I use an online translator


Top
 Profile  
Reply with quote  
 Post subject: Re: PureBasic 5.70 LTS beta 2 is out !
PostPosted: Wed Oct 03, 2018 2:32 pm 
Online
Addict
Addict
User avatar

Joined: Wed Jun 11, 2003 9:33 pm
Posts: 4573
Location: Spa, relaxing and thinking, and learning...
Thanks.

:)

_________________
http://www.zeitgeistmovie.com

While world=business:world+mafia:Wend


Top
 Profile  
Reply with quote  
 Post subject: Re: PureBasic 5.70 LTS beta 2 is out !
PostPosted: Sun Oct 07, 2018 10:25 am 
Offline
User
User
User avatar

Joined: Fri Jan 17, 2014 8:55 pm
Posts: 43
Location: UK
Marc56us wrote:
About HTTPRequest() and HTTPRequestMemory()

:idea: Wouldn't it be better to name constant #PB_HTTP_StatusCode instead of #PB_HTTP_ErrorCode?


+1 It's a status code, not necessarily an error code. It would be odd to check for Error Code = 200 OK!

I have not had a chance to test this latest release yet, not will I for a few days at least, but I must say the addition of easy REST and (finally, yay!) MySQL integration are great additions.

My one issue is that macOS does not appear to be supported with regards the mariadb lib - is this the case or is there a version for Mac available? (basing this on comments above)

Anyway, as ever, thanks to the PB team and also to the sponsors for getting these feature included. :)


Last edited by SparrowhawkMMU on Sun Oct 07, 2018 2:02 pm, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: PureBasic 5.70 LTS beta 2 is out !
PostPosted: Sun Oct 07, 2018 1:52 pm 
Offline
Addict
Addict

Joined: Mon Feb 16, 2015 2:49 pm
Posts: 1893
Andre wrote:
I haven't used any of the new and very impressive functions of the PB5.70 version... but I can confirm, that with Beta2 the Autocomplete popup problem is solved and my big project still runs fine. So thank you :D

Just wanted to say: my situation is now exactly the same as Andre's. Downloaded 5.70 and it's all working great. :)


Top
 Profile  
Reply with quote  
 Post subject: Re: PureBasic 5.70 LTS beta 2 is out !
PostPosted: Sun Oct 21, 2018 1:31 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Fri Jul 19, 2013 7:36 am
Posts: 193
Location: Novosibirsk
In 2018, the news will be?
If not, we can wait.
But I really want certainty.

_________________
Dawn will come inevitably.
-----------------------------
366_pairs_of_wings, Angel, Guardian, for_a_good_mood, for_every_days


Top
 Profile  
Reply with quote  
 Post subject: Re: PureBasic 5.70 LTS beta 2 is out !
PostPosted: Mon Oct 22, 2018 10:01 am 
Offline
Administrator
Administrator

Joined: Fri May 17, 2002 4:39 pm
Posts: 13611
Location: France
SparrowhawkMMU wrote:
Marc56us wrote:
About HTTPRequest() and HTTPRequestMemory()

:idea: Wouldn't it be better to name constant #PB_HTTP_StatusCode instead of #PB_HTTP_ErrorCode?


+1 It's a status code, not necessarily an error code. It would be odd to check for Error Code = 200 OK!

I have not had a chance to test this latest release yet, not will I for a few days at least, but I must say the addition of easy REST and (finally, yay!) MySQL integration are great additions.

My one issue is that macOS does not appear to be supported with regards the mariadb lib - is this the case or is there a version for Mac available? (basing this on comments above)

Anyway, as ever, thanks to the PB team and also to the sponsors for getting these feature included. :)


I will change the constant from Error to Status. What do you mean by not supported on OS X ? I tried it here and it worked, could you tell me how you tested it ?


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 253 posts ]  Go to page Previous  1 ... 10, 11, 12, 13, 14, 15, 16, 17  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: Psychophanta and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye