Search found 2948 matches

by Tourist Trap
Nov 22, 2020 11:53
Forum: Beginners
Topic: [SOLVED] turning working KNN code into a static library
Replies: 96
Views: 4441

Re: [HELP] converting KNN code from python to FB

could you transfer the libLINREG library repository ownership back Hi ron, no problem you should have it back home and safe right now. Tell me if it didn't work anyway. About the code you posted above. It doesn't work, it seems to be stuck after I answer the 1st question. It seems not related to th...
by Tourist Trap
Nov 20, 2020 18:21
Forum: General
Topic: Antivirus hurt by functions pasting text on clipboard - sometimes
Replies: 12
Views: 466

Re: Antivirus hurt by functions pasting text on clipboard - sometimes

perhaps at the time of the execution of the crashing part of code ( 'SetClipboardData(CF_TEXT,Chars)' ). Why would it be a crashing part? Do you mean the code is broken? It's possible but then why not the KristoherWindsor's one? Does it handle the process more properly? Does Kaspers...
by Tourist Trap
Nov 20, 2020 18:17
Forum: Beginners
Topic: [SOLVED] turning working KNN code into a static library
Replies: 96
Views: 4441

Re: [HELP] converting KNN code from python to FB

Hi, so thanks to some clipboard functions provided by dodicat, I made this little grabber to list quickly the functions from the python code: #include "windows.bi" Function Get_clipboard() As Const String If IsClipboardFormatAvailable(CF_TEXT) = 0 Then Return "Error" If OpenClipb...
by Tourist Trap
Nov 19, 2020 19:34
Forum: General
Topic: Antivirus hurt by functions pasting text on clipboard - sometimes
Replies: 12
Views: 466

Re: Antivirus hurt by functions pasting text on clipboard - sometimes

Hi TT This one is better for Win 10. I think the last code was for XP, it was a while back. That works perfectly. I can even omit CRT.BI by the way here. You are probably right that there must be something related to XP, for which the old code was designed. But KristopherWindsor's version looks alm...
by Tourist Trap
Nov 19, 2020 19:02
Forum: General
Topic: Antivirus hurt by functions pasting text on clipboard - sometimes
Replies: 12
Views: 466

Antivirus hurt by functions pasting text on clipboard - sometimes

Hello, Does someone see why Kaspersky on Win10 gets angered with this (dodi's one) version : #include once "windows.bi" Sub SaveToClipBoard(Byref Text As String) 'https://www.freebasic.net/forum/viewtopic.php?p=210732#p210732 Var Num=GlobalAlloc(0,Len(Text)+1) Var Chars=GlobalLock(Num) Cha...
by Tourist Trap
Nov 19, 2020 17:57
Forum: Beginners
Topic: [SOLVED] turning working KNN code into a static library
Replies: 96
Views: 4441

Re: [HELP] converting KNN code from python to FB

If it is just nearest neighbours to a chosen point in a 2D space array, then it is not difficult. Very well done :) As far as I understand it's meant to do some prediction. If I understand what they say your NN algorithm will first divide the whole array in meaningful clusters (those who gather mor...
by Tourist Trap
Nov 19, 2020 17:24
Forum: Beginners
Topic: [SOLVED] turning working KNN code into a static library
Replies: 96
Views: 4441

Re: [HELP] converting KNN code from python to FB

you mentioned "linked-lists" can you give an example of such data structure? Hi ron, You'll find many examples written in FB in the forum. If you go to this post : https://www.freebasic.net/forum/viewtopic.php?p=222924#p222924 and type F3 to search the page with "linked list", y...
by Tourist Trap
Nov 19, 2020 15:40
Forum: Beginners
Topic: [SOLVED] turning working KNN code into a static library
Replies: 96
Views: 4441

Re: [HELP] converting code from python to FB

hello again everyone :) i would like to try and make another ML library for freeBASIC this time K'S NEAREST NEIGHBOUR (KNN)... Hi ron, how are u today. I will definitely take a deep look at the python code. I see that it's from scratch (not much dependencies involved) so it can teach a lot of funda...
by Tourist Trap
Nov 18, 2020 14:06
Forum: Community Discussion
Topic: Are there official graphics for downloading?
Replies: 5
Views: 434

Re: Are there official graphics for downloading?

I can't open this SVG file with Paint.net and other several image editors. https://raw.githubusercontent.com/freebasic/fbc/master/contrib/fblogo.svg I also hope that graphic experts will make a SVG file of the horse logo with the word "freeBASIC".(The one at the top left corner of this of...
by Tourist Trap
Nov 16, 2020 17:35
Forum: Beginners
Topic: [SOLVED] turning working KNN code into a static library
Replies: 96
Views: 4441

Re: [SOLVED] converting code from python to FB

i agree with what you say and apologies for my cynical replay to tourist trap... i Stan corrected and apologies if anyone was offended or felt disrespected... it's just made me angry the misunderstanding ("school project"). I also apology, since I didn't read the text surrounding the proj...
by Tourist Trap
Nov 16, 2020 8:15
Forum: Beginners
Topic: [SOLVED] turning working KNN code into a static library
Replies: 96
Views: 4441

Re: [SOLVED] converting code from python to FB

the dataset file "dataset.csv" 108,392.5 19,46.2 13,15.7 124,422.2 40,119.4 57,170.9 ... p,s, - if you wish to continue following this project please visit this post https://www.freebasic.net/forum/viewtopic.php?f=8&t=28907 any help will be greatly appreciated ron77 Hi ron, Well done....
by Tourist Trap
Nov 14, 2020 17:06
Forum: Tips and Tricks
Topic: Simply mouse class
Replies: 10
Views: 594

Re: Simply mouse class

Here's a simply mouse class , recognizes Left & Rigth button being pressed, held or released; double click of the left button, mouse wheel and dragging. No external libraries, only fbgfx. Hi Pitto, Nice job. Anyway I see that somehow you prevent the mouse coordinates to be recorded when outside...
by Tourist Trap
Nov 12, 2020 13:51
Forum: Windows
Topic: Solved: GtkImage tutorial example
Replies: 3
Views: 221

Re: GtkImage tutorial example

Hello, I've no gtk, and unfortunately no time here to install anything for testing your try. Probably somebody will do in a few time. Anyway reading your code I came accross a typo: WITH *meld print "Error (GTK-Builder):" print *.message I'm pretty sure that you meant "PRINT .message&...
by Tourist Trap
Nov 12, 2020 13:45
Forum: Projects
Topic: FB debugger : 2.96 32/64 BIT ..... (2020/02/17)
Replies: 649
Views: 174159

Re: FB debugger : 2.96 32/64 BIT ..... (2020/02/17)

Version 2.96 (2020/02/17) changed - No more blinking windows when loading debugging data at start of debuggee Data from objdump is retrieved using internal functions no pipe/line input to allow the parameter CREATE_NO_WINDOW for createprocess. Link? Hi SARG, The link here works : http://users.freeb...

Go to advanced search