Search found 2574 matches

by badidea
Mar 26, 2023 22:52
Forum: Community Discussion
Topic: webui, off topic, but may be used by fb
Replies: 1
Views: 1109

Re: webui, off topic, but may be used by fb

Thanks for sharing. I am watching the CppCon 2019 presentation (in the link) right now. All these mentioned (new) web technologies (HTML 5, WebSocket, WebKit, WebAssembly, Electron, ...) are largely unfamiliar to me, but probably good to have a better grasp of it.
by badidea
Mar 14, 2023 23:38
Forum: Beginners
Topic: return self exe name
Replies: 8
Views: 1294

Re: return self exe name

With command ?

Code: Select all

Print "program launched via: " & Command(0)
by badidea
Mar 08, 2023 23:28
Forum: Game Dev
Topic: Speed
Replies: 34
Views: 11740

Re: Speed

ITomi wrote: Mar 08, 2023 13:28

Code: Select all

waiting=timer+.025
do while timer<waiting
loop
Be aware that that piece of code will keep 1 CPU-core very busy while waiting.
by badidea
Feb 16, 2023 23:48
Forum: Libraries & Headers
Topic: FreeBASIC bindings for Rust regex
Replies: 11
Views: 4933

Re: FreeBASIC bindings for Rust regex

Nice, I followed your steps and the Freebasic code compiles and runs as well here.
by badidea
Feb 06, 2023 23:47
Forum: Libraries & Headers
Topic: FreeBASIC bindings for Rust regex
Replies: 11
Views: 4933

Re: FreeBASIC bindings for Rust regex

By adding crate-type = ["staticlib"] or crate-type = ["cdylib"] in the [lib] section in the cargo.toml file, you can build a libregex.a or libregex.so in target/debug/ or target/release/ But how to use this with freebasic, I do not know. Also, I think that the library complex to ...
by badidea
Feb 01, 2023 0:20
Forum: Libraries & Headers
Topic: FreeBASIC bindings for Rust regex
Replies: 11
Views: 4933

Re: FreeBASIC bindings for Rust regex

Oh, I just read that you don't want a rlib, see:
https://stackoverflow.com/questions/405 ... -with-diff
by badidea
Jan 31, 2023 23:53
Forum: Libraries & Headers
Topic: FreeBASIC bindings for Rust regex
Replies: 11
Views: 4933

Re: FreeBASIC bindings for Rust regex

Hi Roland, I downloaded regex-master.zip and unzipped it. I had the rust compiler already installed some time ago. And I play a bit with it before. Then I ran from the terminal: cargo build , which creates libregex.rlib in target/debug/ You can also run cargo build --release , which creates a libreg...
by badidea
Dec 28, 2022 1:58
Forum: General
Topic: Christmas Star Challange
Replies: 5
Views: 968

Re: Christmas Star Challange

I probably failed the challenge. Was fun to make anyway. #define dbl double #define RGBA_R( c ) ( CULng( c ) Shr 16 And 255 ) #define RGBA_G( c ) ( CULng( c ) Shr 8 And 255 ) #define RGBA_B( c ) ( CULng( c ) And 255 ) #define RGBA_A( c ) ( CULng( c ) Shr 24 ) #define max(a, b) (iif((a) > (b), (a), (...
by badidea
Dec 17, 2022 12:40
Forum: Beginners
Topic: Geany execute problem
Replies: 11
Views: 1751

Re: Geany execute problem

Member badidea is an experienced Geany + Linux user. A bit busy with other things these day. I did not read the whole topic (just noticed my user name). If the issue has not been solved yet, check out these topics on Geany: - Geany to compile FB source code on Windows? - Using Geany in Linux - Scre...
by badidea
Sep 13, 2022 22:14
Forum: Sources, Examples, Tips and Tricks
Topic: Programming Languages Benchmark
Replies: 71
Views: 12726

Re: Programming Languages Benchmark

Python is not horrible, it is just very slow and uses lots of memory. But for many tasks, that is not a problem. You can probably find fast matrix stuff in the numpy library.
by badidea
Aug 23, 2022 22:19
Forum: Community Discussion
Topic: Facebook owns freebasic.com
Replies: 6
Views: 1932

Re: Facebook owns freebasic.com

JohnK_RQ wrote:Does that mean all subdomains are owned by Facebook meta?
freebasic.com <> freebasic.net
JohnK_RQ wrote:I am in charge of rapidq.phatcode.net, but that the website keeps going is a mystery to me.
freebasic.net and phatcode.net are on the same server
by badidea
Aug 23, 2022 21:51
Forum: Community Discussion
Topic: [offtopic] do you know craiyon AI model drawing images ?
Replies: 10
Views: 822

Re: [offtopic] do you know craiyon AI model drawing images ?

Looks ok for me :lol: (only fun) Joshy http://shiny3d.de/public/images/badidea.jpg Well, that looks more realistic than my results so far :-) But I do like this one: https://nr100.home.xs4all.nl/badidea/craiyon_space_and_time.jpg Or even better: https://nr100.home.xs4all.nl/badidea/craiyon_time_and...
by badidea
Aug 22, 2022 21:41
Forum: Sources, Examples, Tips and Tricks
Topic: Single Dimension Rotation
Replies: 7
Views: 1041

Re: Single Dimension Rotation

If anyone can improve it, please do and share it here. Well, here is the proof for rotating a vector around any angle: https://matthew-brett.github.io/teaching/rotation_2d.html But if you have an image, you do not want to rotate around the origin, but around the center. So first translate by half i...