Search found 1989 matches

by badidea
May 07, 2020 21:11
Forum: Beginners
Topic: Setting up Free BASIC for Linux [Solved]
Replies: 6
Views: 230

Re: Setting up Free BASIC for Linux

Mynaardt wrote:...

If you compile from the terminal (without Geany), does that work?
by badidea
May 06, 2020 20:07
Forum: Libraries
Topic: IUP GUI lib (Win/Lin) getting started
Replies: 13
Views: 439

Re: IUP GUI lib (Win/Lin) getting started

Don't hate me please but FLTK apps are ugly and not fit with the environment around them. IUP, being GTK+ based, fit nicely. FLTK also has too much widgets and they look weirded and alien. e.g: I know our dear and very familar normal Button, but I have no idea what is a Return Button and what is th...
by badidea
May 06, 2020 19:38
Forum: Libraries
Topic: IUP GUI lib (Win/Lin) getting started
Replies: 13
Views: 439

Re: IUP GUI lib (Win/Lin) getting started

I'm certain that you know, that curiosty killed the cat, in the end. ;-) I am not much of a cat-person, but more on-topic... Have you tried the linux version? I am having some difficulties here on Ubuntu 18.04 (kernel version 4.15.0-96-generic). First easy issue: #Include "iup/iup.bi" nee...
by badidea
May 06, 2020 18:24
Forum: Libraries
Topic: IUP GUI lib (Win/Lin) getting started
Replies: 13
Views: 439

Re: IUP GUI lib (Win/Lin) getting started

MrSwiss wrote:And the winner is: IUP

Just curious, on which criteria did FLTK fail the test for you?
(FLTK is the only GUI I have really used so far)
by badidea
May 06, 2020 9:47
Forum: Beginners
Topic: Is it possible to use RUN to run a Linux terminal command
Replies: 5
Views: 199

Re: Is it possible to use RUN to run a Linux terminal command

run "ls" You can try to redirect stdout and/or use pipes. Maybe something like this? #include "crt/stdio.bi" const MAX_LINE_SIZE = 100 Dim As ZString Ptr pBuffer = callocate(MAX_LINE_SIZE) Dim As FILE Ptr filePtr filePtr = popen("fping -t 100 1.1.1.1", "r") I...
by badidea
May 05, 2020 13:48
Forum: Libraries
Topic: Header for libjson-glib
Replies: 6
Views: 1063

Re: Header for libjson-glib

--- Example 3 - Deserialization (low level) --- NOT working yet. Confusing stuff like: FOO_TYPE_OBJECT, GObject, G_TYPE_OBJECT. See 2nd example on: https://wiki.gnome.org/Projects/JsonGlib #include "json-glib.bi" '#define FOO_TYPE_OBJECT (foo_object_get_type()) '* usual GObject boilerplate...
by badidea
May 05, 2020 13:46
Forum: Libraries
Topic: Header for libjson-glib
Replies: 6
Views: 1063

Re: Header for libjson-glib

--- Example 2 - Build and read a JSON tree --- Using the higher level API #include "json-glib.bi" 'JsonBuilder: a simple API for building JSON trees dim as JsonBuilder ptr pBuilder = json_builder_new() json_builder_begin_object(pBuilder) json_builder_set_member_name(pBuilder, "url&quo...
by badidea
May 05, 2020 13:45
Forum: Libraries
Topic: Header for libjson-glib
Replies: 6
Views: 1063

Re: Header for libjson-glib

7 years have passed. No replies. I wonder why, some possibilities: (a) The library so obvious and easy to use that no questions are needed (b) No one cares about JSON (c) It looks way too complex Case (c) seems most likely to me. I tried to figure out how to work with this. There are 2 APIs: low and...
by badidea
May 03, 2020 22:35
Forum: Community Discussion
Topic: invitation to an open source community discord server
Replies: 6
Views: 198

Re: invitation to an open source community discord server

I month or two back I joined Discord because of some other forum, and within two days it wouldn't continue without giving a telephone number for "security" reasons, and no way around it. Exit discord, back to IRC. Yes, I had the same problems. Maybe because I trash all cookies each day or...
by badidea
May 03, 2020 22:09
Forum: Community Discussion
Topic: Why did you choose FreeBASIC?
Replies: 37
Views: 1797

Re: Why did you choose FreeBASIC?

What about you? I started with qbasic, qb45, powerbasic and assembly in the ms-dos time with the text-based interfaces. Then I learned C as part of my study and tried more 'modern' tools for the windows platform. C++ builder, visual basic, php, perl, even labview (for work). About 10 13 years ago I...
by badidea
May 03, 2020 21:27
Forum: Projects
Topic: Voxl City Battle Tank Defense - OpenGL voxel engine - WIP
Replies: 3
Views: 189

Re: Voxl City Battle Tank Defense - OpenGL voxel engine - WIP

Looks good. You have been productive.
by badidea
May 03, 2020 17:44
Forum: Tips and Tricks
Topic: The Simplest debug and trace method Win+Lin 32/64 bit
Replies: 7
Views: 436

Re: The Simplest debug and trace method

A simple print is not always possible. For example in games where the whole screen is overwritten a few miliseconds later. And if page flipping is used, it is even more complicated. Sleep can also be a problem is such cases. And beep does not work linux.
by badidea
May 03, 2020 17:14
Forum: Community Discussion
Topic: invitation to an open source community discord server
Replies: 6
Views: 198

Re: invitation to an open source community discord server

hi all... i would like to invite anyone who is interested to join open source community which has a freebasic section... here is the invatetion https://discord.gg/9n4kyDr i hope it's okay to post this invitation here if not feel free to delete this post... ron77 There is also this one: FreeBasic Di...
by badidea
May 02, 2020 23:49
Forum: General
Topic: Tetris piece creation
Replies: 7
Views: 343

Re: Tetris piece creation

I had a shot at this kind of thing. (I wasn't going out anywhere) Choices 3 to 8 boxes. ... A lot faster, but not good. There are doubles (after rotation) and some missing. See the numbers for each polyomino set here: https://en.wikipedia.org/wiki/Polyomino For heptominoes it should be 196, or 108 ...
by badidea
May 02, 2020 10:04
Forum: General
Topic: Tetris piece creation
Replies: 7
Views: 343

Re: Tetris piece creation

Looks like you are on the right track using recursion. You should try using hashing in replace of your list search function. It would help a lot. Yes, there is al lot of room for speed improvement. Up to 8-square shapes (octominoes), a 64-bit integer can be used, without hashing. Also the testing g...

Go to advanced search