Search found 2894 matches

by Tourist Trap
Sep 16, 2020 12:56
Forum: General
Topic: Data Compression
Replies: 55
Views: 1257

Re: Data Compression

Random digits (0 to 9) are compressible by substitutions. Hi dodi, What do you mean here? For instance let's take a serie of a huge amount of digits, a, b, c and so on, that we know to be random. Write it this way (as a number between 0 and 1) : X = 0.abc.... Is it possible that 1 - X that does a c...
by Tourist Trap
Sep 16, 2020 7:45
Forum: General
Topic: Data Compression
Replies: 55
Views: 1257

Re: Data Compression

Reading instead of writing There are much interesting readings to suggest around this kind of topics. Just a random example: To take another example, the number π, 3.14159..., also has only a little algorithmic information content, because a relatively short algorithm can be programmed into a compu...
by Tourist Trap
Sep 15, 2020 8:59
Forum: General
Topic: A split function implementation code [like VB]
Replies: 11
Views: 275

Re: A split function implementation code [like VB]

The code doesn't run here even If I include crt.bi. What is RtlMoveMemory for example? It is ok with "windows.bi", but it's strlen that I can not make work here. I guessed it just a len ? But I didn't try any further more for now. strncmp is also undefined. Can't figure out what it is a r...
by Tourist Trap
Sep 15, 2020 8:47
Forum: General
Topic: A split function implementation code [like VB]
Replies: 11
Views: 275

Re: A split function implementation code [like VB]

The code is authorized by default in the public domain, and the author is xLeaves (xywhsoft), which can be used wherever you need it. Thanks. I often come here to grab this kind of functions that I was never able to write myself efficiently. I don't know if you have the fastest implementation over ...
by Tourist Trap
Sep 14, 2020 8:24
Forum: Game Dev
Topic: Simplicity
Replies: 7
Views: 572

Re: Simplicity

3622 wrote:My best score is 31 moves. I hope this can be bettered.

How damn, 205 moves before I could see the smiling face. Good game anyway :)
by Tourist Trap
Sep 14, 2020 7:59
Forum: Community Discussion
Topic: Free Book: Physically Based Rendering From Theory To Implementation
Replies: 2
Views: 344

Re: Free Book: Physically Based Rendering From Theory To Implementation

Thanks. Really nice reference. Sadly no downloadable pdf version, but it's definitely a very good book.
by Tourist Trap
Jun 28, 2020 16:25
Forum: Beginners
Topic: help using fbsound-1.1 for playing multiple wav files
Replies: 8
Views: 518

Re: help using fbsound-1.1 for playing multiple wav files

Have to add this, I simply copied my version from examples provided by D.J.Peters with the lib. Why not doing the same in order to avoid any issues?
by Tourist Trap
Jun 28, 2020 16:20
Forum: General
Topic: How would you find the shortest distance in a set of points?
Replies: 23
Views: 1003

Re: How would you find the shortest distance in a set of points?

- avoid the square roots, they are very slow - check to what extent you can use the simple sum dx+dy as a proxy, e.g. to identify the best 10 matches - with these 10 matches, use the exact method I see, first try another distance formula than the pythagorean stuff if I follow you well. Of course if...
by Tourist Trap
Jun 28, 2020 15:13
Forum: Beginners
Topic: help using fbsound-1.1 for playing multiple wav files
Replies: 8
Views: 518

Re: help using fbsound-1.1 for playing multiple wav files

I used that times ago and it worked: #include "inc/fbsound_dynamic.bi" function FbSound_Init() as boolean dim as string data_path data_path = exepath() & "/dta/" dim as boolean ok ' ok=fbs_Init() if ok=false then ? "error: fbs_Init() !" ? FBS_Get_PlugError() beep sl...
by Tourist Trap
Jun 28, 2020 15:06
Forum: General
Topic: How would you find the shortest distance in a set of points?
Replies: 23
Views: 1003

How would you find the shortest distance in a set of points?

Hello, so as said in the tittle, how would you find the shortest distance in a set of points, in a fast way. So far here is my try: type POINT2D as single x as single y end type dim as POINT2D xy(1 to 1000) 'set up 1000 points randomize TIMER() for index as integer = lBound(XY) to uBound(XY) xy(inde...
by Tourist Trap
Jun 28, 2020 0:25
Forum: General
Topic: Squares
Replies: 8041
Views: 507479

Re: Squares

The map of the rearrangement has to be as small as possible.. Bubble sorting a random string is a no-brainer , but the map of the process is too large.... I have to find a way to rearrange the values , so with the map added , it will still compress.. Hi Albert, interesting thought. Anyway my feelin...
by Tourist Trap
Jun 22, 2020 19:26
Forum: General
Topic: program crashes after many ide's in development :(
Replies: 11
Views: 632

Re: program crashes after many ide's in development :(

Hi ron77, Yes when you reach the critical mass, the code starts being hard to manage, and will require more than just coding locally right things. I mean you'll have to think about more structural things at a more global scale. The choice of an IDE can sometimes definitely matter. One of the thing t...
by Tourist Trap
Jun 21, 2020 18:09
Forum: General
Topic: Parse DIR listing for folder name and size
Replies: 10
Views: 598

Re: Parse DIR listing for folder name and size

I am having a hell of a time trying to parse a directory listing to get just the folder name, and folder size. Hello, as far as I remember this is not that trivial to get those kind of metrics (directory tend to have a lot of subdirectories in there). Even powershell which is the job can be slow on...
by Tourist Trap
Jun 20, 2020 15:28
Forum: General
Topic: simple stack-based eval
Replies: 11
Views: 612

Re: simple stack-based eval

Nice. You need to implement Exit() or something like that to be complete :)
by Tourist Trap
Jun 20, 2020 15:24
Forum: Beginners
Topic: Is FreeBasic A Decent Alternative To VisualBasic 6?
Replies: 12
Views: 722

Re: Is FreeBasic A Decent Alternative To VisualBasic 6?

Hello all. I used Visual Basic 6.0 for a few years until about 2016. Now I need a decent alternative that isn't dying (*cough* VB.Net). Is FreeBasic a good choice, or should I use a different language? Hi BadLarry, I would say yes you can use Freebasic as an alternative where you will be abe to use...

Go to advanced search