Search found 5423 matches

by counting_pine
Feb 14, 2019 13:41
Forum: Tips and Tricks
Topic: GDIPlus ASCII GIF Anim Player [Windows only]
Replies: 7
Views: 188

Re: GDIPlus ASCII GIF Anim Player [Windows only]

Thanks for changing it. I don't really like GIF web sites and the general randomness of their content, but something like https://i.gifer.com/17YK.gif might work well. (8-bit, chunky, with motion).
But the image you've changed to is already "very cool".
by counting_pine
Feb 14, 2019 11:45
Forum: Tips and Tricks
Topic: GDIPlus ASCII GIF Anim Player [Windows only]
Replies: 7
Views: 188

Re: GDIPlus ASCII GIF Anim Player [Windows only]

As always, a nice example. But it would be better if the example image here could be a bit more "safe for work".
by counting_pine
Feb 11, 2019 20:51
Forum: Tips and Tricks
Topic: Image Painting Demos [Windows only]
Replies: 22
Views: 600

Re: Image Painting Demos [Windows only]

Why don't you do it like a man , just for a change [...] MrSwiss, we've had a complaint about your posts in this thread, in particular the one quoted here. If you don't like the Windows dependency of the code, that's fine, but the derogatory and unconstructive comments are not welcome, and you've b...
by counting_pine
Feb 11, 2019 14:09
Forum: Windows
Topic: Huh-Yuh Lanuage
Replies: 2
Views: 115

Re: Huh-Yuh Lanuage

Can you explain what this code does?
by counting_pine
Feb 08, 2019 14:21
Forum: Beginners
Topic: Matrix to string
Replies: 15
Views: 201

Re: Matrix to string

Without a full testbed, the analysis of your problem is difficult. However, it is pretty clear that this part is very slow: For j = lbx to ubx-1 clips = clips + Str(Z(i,j)) + Chr(9) next j Allocate one long line, then copy the 512 tiny strings into that line and trim it as needed. P.S.: I gave it a...
by counting_pine
Feb 07, 2019 13:37
Forum: General
Topic: Max Upload Size
Replies: 7
Views: 206

Re: Max Upload Size

Once a project gets this sort of size, and you want to make the source public, it would generally be a good idea to store it in an online repository (e.g. Bitbucket, GitHub or GitLab), which have lots of advantages to pasting into a forum: - the code can be shared, and a link provided to the forum, ...
by counting_pine
Feb 06, 2019 14:00
Forum: Documentation
Topic: Windows bug for small screens / fullscreen
Replies: 23
Views: 483

Re: Documentation of PMAP function

I see now, just a documentation shortcoming.
The simplest solution is probably just to use ScreenRes, as suggested.
by counting_pine
Feb 06, 2019 13:54
Forum: Hardware Interfaces / Communication
Topic: How can I listen and serve information over a TCP port? [Windows]
Replies: 4
Views: 206

Re: How can I listen and serve information over a TCP port? [Windows]

Thanks for the suggestions! I've ported the example Microsoft code: ' https://docs.microsoft.com/en-us/windows/desktop/winsock/complete-server-code #define WIN32_LEAN_AND_MEAN #include "win/winsock2.bi" #include "win/ws2tcpip.bi" const DEFAULT_BUFLEN = 512 const DEFAULT_PORT = &q...
by counting_pine
Feb 06, 2019 13:34
Forum: Documentation
Topic: Windows bug for small screens / fullscreen
Replies: 23
Views: 483

Re: Documentation of PMAP function

So far, it seems like this is a problem with Windows refusing to make the window as small as the graphics area. Are you saying that on 32-bit it stretches the graphics to fill the window, while on 64-bit it is not stretched, but the remaining area is basically filled with nothing useful? I've tested...
by counting_pine
Feb 05, 2019 13:59
Forum: Documentation
Topic: Windows bug for small screens / fullscreen
Replies: 23
Views: 483

Re: Documentation of PMAP function

I have no idea how to view Github #113 - sorry. It's at https://github.com/freebasic/fbc/issues/113. Hmm, we have bbcode for bugs on SourceForge, but not for Github. Maybe that's worth adding.. Anyway, I don't think the above bug is related. The fixes should only affect the resulting image in the s...
by counting_pine
Feb 04, 2019 14:19
Forum: Hardware Interfaces / Communication
Topic: How can I listen and serve information over a TCP port? [Windows]
Replies: 4
Views: 206

How can I listen and serve information over a TCP port? [Windows]

How hard would it be to have an FB program that listens on a TCP port, and returns some status information to the client computer? Basically, doing something like the Check_MK Agent that listens on port 6556, and non-interactively dumps a text-based stream of information out to it when something con...
by counting_pine
Feb 03, 2019 20:31
Forum: General
Topic: RND breadth
Replies: 38
Views: 635

Re: RND breadth

The RND stuff is for my program Vari_Cph... I needed to generate a 64 bit random binary string... But it only generated upper values ,mostly "1's" I guess the problem you're having is that Rnd can't generate 64 bits of randomness in each number. It should be able to manage up to 53 bits p...
by counting_pine
Feb 03, 2019 17:59
Forum: Beginners
Topic: Compiling the runtime library
Replies: 3
Views: 131

Re: Compiling the runtime library

It sounds like maybe you've taken the ffi.h.in file, and renamed it? That file has to pass through the configure/make process to fill in some of the variables, in order to become a valid header file that works with your target. If you've got a working build environment, then you should be able to cd...
by counting_pine
Feb 02, 2019 20:23
Forum: General
Topic: RND breadth
Replies: 38
Views: 635

Re: Coders RND

Try this code: const N = 1e12 const q0 = 0, q1 = N/4, q2 = N/2, q3 = N*3/4, q4 = N dim as integer r1, r2, r3, r4 for i as integer = 1 to 10e6 select case int(rnd * N) case q0 to q1: r1 += 1 case q1 to q2: r2 += 1 case q2 to q3: r3 += 1 case q3 to q4: r4 += 1 end select next i print using "Numbe...
by counting_pine
Jan 31, 2019 12:19
Forum: Windows
Topic: Ok to use 'END' in a thread?
Replies: 4
Views: 162

Re: Ok to use 'END' in a thread?

You might view https://stackoverflow.com/a/36094799/446106 as a recommendation to use the C Runtime's _exit() to end a program from within a thread: #include "crt/stdlib.bi" ... _exit(1) But like FB's End() , it won't cleanly exit scopes or clean up variables. Allocated mem...

Go to advanced search