Search found 2849 matches

by Tourist Trap
Mar 29, 2020 18:32
Forum: General
Topic: Best approach to fit n rectangles into a screen
Replies: 15
Views: 526

Re: Best approach to fit n rectangles into a screen

During the coding of Corona Infection Simulation I split the screen into 256 rectangle to have a better collision detection performance which seems to work properly. But during the change of the n rectangles I saw that to solve it properly is not a easy task. What is the best approach to fit n as e...
by Tourist Trap
Mar 29, 2020 0:39
Forum: General
Topic: Corona virus simulator
Replies: 44
Views: 1913

Re: Corona virus simulator

badidea wrote:After exactly 350 seconds it return to initial state.

I can't say what exactly we are supposed to see. Impressive anyway :)
by Tourist Trap
Mar 28, 2020 17:08
Forum: Windows
Topic: win7 vs 8
Replies: 10
Views: 776

Re: win7 vs 8

I use ShellFolderFixUI as a startup program to remember how I want each folder to show. Works great. Thank you very much. Unfortunately here is what I obtain when googling it : https://www.file.net/process/shellfolderfixui.exe.html If ShellFolderFixUI.exe is located in a subfolder of the user's &qu...
by Tourist Trap
Mar 28, 2020 17:03
Forum: Community Discussion
Topic: Multiplatform coroutines in C and also in FreeBasic
Replies: 6
Views: 481

Re: Multiplatform coroutines in C and also in FreeBasic

Just for those who may want to test this, more precision: The thing may have to be compiled this way in a batch file: @echo on "C:\Program Files (x86)\FreeBasic\Freebasic7\FreeBASIC-1.07.1-win64/fbc" libco.o test.bas test.exe pause No need of any include here. Just put every declaration at...
by Tourist Trap
Mar 28, 2020 15:33
Forum: Windows
Topic: How can I force my program use this or this core?
Replies: 6
Views: 557

Re: How can I force my program use this or this core?

j'aime bien ce genre de chose :-) Alors je me permets poser une autre question ;) For doing by program use SetProcessAffinityMask(ProcInfo.hProcess, dword(cpuset)) I'll have to test this one first, but I have in fact more questions in the same domain. Sometimes we have a child process that gets stu...
by Tourist Trap
Mar 28, 2020 15:14
Forum: Windows
Topic: How can I force my program use this or this core?
Replies: 6
Views: 557

Re: How can I force my program use this or this core?

Hi TT, Found that : the first trick is via task manager https://www.howtogeek.com/121775/how-to-force-windows-applications-to-use-a-specific-cpu/ The second one via line command c:\windows\system32\cmd.exe /C start /affinity 1 notepad.exe Maybe it could possible programatically. Thanks a lot for th...
by Tourist Trap
Mar 28, 2020 14:52
Forum: Windows
Topic: How can I force my program use this or this core?
Replies: 6
Views: 557

How can I force my program use this or this core?

Hello,

I have 8 logical processors, but my programs seem to love running only on the first. Is there a way to force an executable on Windows, execute on the processor we tell it to? If so, how does it work?

Thanks.
by Tourist Trap
Mar 28, 2020 14:44
Forum: Windows
Topic: win7 vs 8
Replies: 10
Views: 776

Re: win7 vs 8

@TouristTrap: how so? It does work as expected for me. When you press Win+E, an explorer window is opened at the position of the last one you closed, and starts to stack from there. I recall Win7 having the same behavior, whereas I don't recall it opening a specific folder in a specific desktop pos...
by Tourist Trap
Mar 28, 2020 12:32
Forum: Windows
Topic: win7 vs 8
Replies: 10
Views: 776

Re: win7 vs 8

Suck or not suck, I'd rather be using Win10 and know that I am at least getting a reasonably assurance that Microsoft is trying to keep it up to date with security fixes. The worst thing of all for me about win10, is that it doesn't save the last position of the explorer window attached to a direct...
by Tourist Trap
Mar 28, 2020 11:33
Forum: General
Topic: Corona virus simulator
Replies: 44
Views: 1913

Re: Corona virus simulator

dodicat wrote:I had implemented a line segment distance via cross products and all the vector operators +,-,*(a scaler), e.t.c. it worked OK also it worked for 3D.

Very nice.
I guess the immunized ones under heavy fences are the citizen of the crown of britain :)
by Tourist Trap
Mar 28, 2020 11:27
Forum: Community Discussion
Topic: Freebasic is not smooth in graphics
Replies: 17
Views: 1172

Re: Freebasic is not smooth in graphics

Has anyone made an FB class that does something similar? Could be a fun exercise for someone who wants to learn this stuff to make such a class. Hi, D.J.Peters tends to post stuff like that: 'https://www.freebasic.net/forum/viewtopic.php?f=7&t=22838&p=200294&hilit=matri%2A#p200294 '#def...
by Tourist Trap
Mar 19, 2020 11:47
Forum: Community Discussion
Topic: Very different result
Replies: 22
Views: 1036

Re: Very different result

To clearly distinguish the assignment operator (used for setting) from the equality operator (used for testing), some prefer to use the symbol "=>" for the first and the symbol '=' for the second. The opposite ("=>" for equality operator) is not allowed by FreeBASIC. Yes. As for...
by Tourist Trap
Mar 19, 2020 8:13
Forum: Community Discussion
Topic: [offtopic solved] Problem with my HTML5 JS template ?
Replies: 4
Views: 422

Re: [offtopic]Problem with my HTML5 JS template ?

badidea wrote:I don't know, where (what program) do you press F12?
Maybe "function main() { } " ? (wild guess)

Probably in the browser to show the console.
by Tourist Trap
Mar 01, 2020 20:55
Forum: Beginners
Topic: Type of union field = [union] with some usage of TYPEOF ?
Replies: 3
Views: 208

Re: Type of union field = [union] with some usage of TYPEOF ?

That code gives two errors here as welll: test.bas(2) error 163: Fields with constructors cannot be part of UNION's or nested TYPE's in 'as OBJECT o' test.bas(5) error 7: Expected ')', found '.' in '#print typeOf(UNO.o) ''print...
by Tourist Trap
Mar 01, 2020 19:22
Forum: Beginners
Topic: Type of union field = [union] with some usage of TYPEOF ?
Replies: 3
Views: 208

Type of union field = [union] with some usage of TYPEOF ?

Hi, Maybe a silly question, but I find that: union UNO as OBJECT o end union #print typeOf(UNO.o) ''prints UNO, rather than OBJECT So as said in the commented part, I would be expecting to be returned the object type (of o) rather that the parent type. Is there a reason for this that I obviously miss?

Go to advanced search