Search found 1773 matches

by badidea
Feb 19, 2020 19:19
Forum: General
Topic: strange graphic performance
Replies: 10
Views: 249

Re: strange graphic performance

In Linux, make sure you are online with your browser (google??) My linux laptop always seems to run at a 1 kHz interrupt clock (or whatever that is called). #include "string.bi" dim as long sleepTime(...) = {0, 1, 2, 5, 10, 20, 50, 100} dim as double t for iRun as integer = 0 to 9 'run se...
by badidea
Feb 18, 2020 23:06
Forum: Tips and Tricks
Topic: Simple tangent.
Replies: 16
Views: 466

Re: Simple tangent.

I just wasted half an evening on 48 lines of code: type polynomial_type dim as integer dummy static as double coefficient(0 to 3) declare constructor(a as double, b as double, c as double, d as double) declare static function value(x as double) as double end type dim as double polynomial_type.coeffi...
by badidea
Feb 18, 2020 20:09
Forum: Tips and Tricks
Topic: Simple tangent.
Replies: 16
Views: 466

Re: Simple tangent.

dodicat wrote:#include "crt.bi"
dim as any ptr p=@sin_
print gradient(p,3)

Why is the normal sin() function not allowed?
by badidea
Feb 17, 2020 23:42
Forum: Game Dev
Topic: Another freebasic miner
Replies: 25
Views: 1096

Re: Another freebasic miner

Some update to code:
* Health bar and fall damage
* Wiggling flowers
* Rudimentary pick axe action
See GitHub link in first post.

I switched back to command line git commands, just as easy for now. And added a ssh-key 'trust'.
by badidea
Feb 17, 2020 17:53
Forum: Tips and Tricks
Topic: Simple tangent.
Replies: 16
Views: 466

Re: Simple tangent.

I think that dodicat spent many days looking at the sea. So he must be a expert in analysing waveforms :-)
by badidea
Feb 16, 2020 20:24
Forum: Tips and Tricks
Topic: Flowing Image v0.2
Replies: 14
Views: 503

Re: Flowing Image v0.1

UEZ wrote:I added the Base64 version -> see 1st post. This should be UTF-8 safe but the code is now longer...

Yep, works without any trouble.
by badidea
Feb 16, 2020 18:12
Forum: Tips and Tricks
Topic: Flowing Image v0.2
Replies: 14
Views: 503

Re: Flowing Image v0.1

I see no option to download, so copied and pasted. I updated the code at https://controlc.com/ and changed the string within Base128Decode function to Chr() tokens. This should also work if the data lines are immune against UTF-8 format. That does not seem sufficient, also the data lines are interp...
by badidea
Feb 16, 2020 11:53
Forum: Tips and Tricks
Topic: Flowing Image v0.2
Replies: 14
Views: 503

Re: Flowing Image v0.1

Works on linux fbc32/64 bit. A warning on fbc64 bit:
flow_img.bas(56) warning 3(1): Passing different pointer types, at parameter 2 of UNCOMPRESS()
I had to force the encoding in the code editor to ISO-8859-1 instead of UTF-8 to prevent "Base128 decode error".
by badidea
Feb 16, 2020 10:43
Forum: Linux
Topic: Fedora 30 x64 Missing libtinfo.so.5
Replies: 5
Views: 427

Re: Fedora 30 x64 Missing libtinfo.so.5

And the second question from caseih? ldd hello_world where hello_world is the compiled version of hello_world.bas Output here (Ubuntu): ldd hello_world linux-vdso.so.1 (0x00007ffeea99e000) libgtk3-nocsd.so.0 => /usr/lib/x86_64-linux-gnu/libgtk3-nocsd.so.0 (0x00007f56d9ed2000) libtinfo.so.5 => /lib/x...
by badidea
Feb 14, 2020 18:08
Forum: Linux
Topic: File name issues (bug)??
Replies: 7
Views: 329

Re: File name issues (bug)??

This works fine here on Ubuntu Mate 18.04 64-bit, fbc 1.07.1 32-bit & fbc 1.07.1 64-bit: dim as string fileName = "-test-file-.1-2" dim as integer fileNum = freefile if open(fileName, for output, as fileNum) <> 0 then print "Error opening file for write: " & fileName else...
by badidea
Feb 13, 2020 19:37
Forum: General
Topic: Squares
Replies: 7633
Views: 457302

Re: Squares

To do all they could do , would require data compression , to hold all that info in a small 2 inch sphere.... plus the batteries , motors and lasers... If aliens can store 1 bit per molecule, they can store about 1E+24 bits in a 2 inch sphere. Or roughly 100 ZB (zettabyte). Should be enough for you...
by badidea
Feb 13, 2020 19:14
Forum: General
Topic: triangle world try
Replies: 12
Views: 503

Re: triangle world try

@badidea : ever bin at a hcc gadering ? Yes, once, about 25 years ago. It was a way for me to get a copy of PowerBasic 3.0 for free (not legal). Without that copy, you would probably be a C-programmer now. idea : use opengl and my own 3d engine to create the animations good or bad ? There is openb3...
by badidea
Feb 13, 2020 18:52
Forum: General
Topic: pointer, core dump error
Replies: 10
Views: 261

Re: pointer, core dump error

You are not the first with libtinfo.so.5 problems, so e.g.: viewtopic.php?f=5&t=27900&p=264779&hilit=libtinfo.so.5#p264779
by badidea
Feb 12, 2020 23:52
Forum: General
Topic: Squares
Replies: 7633
Views: 457302

Re: Squares

albert wrote:I got to figure out how the Space Aliens , compress data....

Why, maybe they have unlimited storage. Maybe to have invented time-travel, so they can just delete data and go back in time to retrieve it. The ultimate Wayback Machine.
by badidea
Feb 12, 2020 20:16
Forum: Community Discussion
Topic: UltraEdit
Replies: 2
Views: 208

Re: UltraEdit

Maybe this one? viewtopic.php?f=7&t=22601&p=198344&hilit=UltraEdit#p198344
4th (5th now) entry when doing a forum search for UltraEdit.

Go to advanced search