Search found 129 matches

by Muttonhead
Jun 21, 2020 18:03
Forum: General
Topic: notepad++ comment line bug :(
Replies: 2
Views: 216

Re: notepad++ comment line bug :(

I built the highlighter myself as a "user defined language". the block comment via menu works. It doesn't always work perfectly, but I'm happy with it: Save this as "userDefineLang.xml" in the "userDefineLangs" folder and restart notepad: <NotepadPlus> <UserLang name=&q...
by Muttonhead
Jun 20, 2020 10:44
Forum: General
Topic: Squares
Replies: 8041
Views: 507960

Re: Squares

*cough*...very early in the morning staring sleepily at the bathroom floor tiles...
https://1drv.ms/u/s!AsTPhVzcfzRriKZsb10 ... Q?e=tCxPQc
https://1drv.ms/u/s!AsTPhVzcfzRriKZtcVQ ... A?e=PF7436
Hmmm....
by Muttonhead
Jun 06, 2020 21:16
Forum: General
Topic: Optimum sum of a set of numbers
Replies: 18
Views: 788

Re: Optimum sum of a set of numbers

as far as I can tell, this problem is known as the "bin packing problem". The "best fit decreasing" approach often gives good results, but not in every case. 1.sort all sizes (or values) in descending order. 2. open a container with the appropriate fixed size 3. put the value in ...
by Muttonhead
May 06, 2020 16:18
Forum: Projects
Topic: sGUI
Replies: 238
Views: 42386

Re: sGUI

thanks for testing. Also CPU cores usage is too high - more then 87-95% in all demos,.... no good news. In general the CPU load is a bit higher, the GUI is now rebuilt in every frame. But I can't reproduce this high CPU load here. I only have 3% here (win10). To the "WinDemo_WINDOWMESSAGE.bas&q...
by Muttonhead
May 05, 2020 17:26
Forum: Projects
Topic: sGUI
Replies: 238
Views: 42386

Re: sGUI

(Asked previous year - solution is keyword 'window') unfortunately completely incompatible to the previous version, but already more than an attempt. the complete functionality of the "old" sGUI has not yet been reproduced. https://1drv.ms/u/s!AsTPhVzcfzRriKUMvhQX3t9xR8Marw?e=JVKyi9 Mutton
by Muttonhead
Apr 13, 2020 16:19
Forum: General
Topic: puzle [1980] : change for a euro
Replies: 3
Views: 338

Re: puzle [1980] : change for a euro

oops, I guess that didn't quite work out
Mutton
by Muttonhead
Mar 29, 2020 22:20
Forum: General
Topic: Best approach to fit n rectangles into a screen
Replies: 15
Views: 722

Re: Best approach to fit n rectangles into a screen

screen 19,32 dim as single xbox,ybox,xtile,ytile dim as integer numtiles,afactor,bfactor,diff,ndiff,Q numtiles=39 xbox=640 ybox=480 afactor=1 bfactor=numtiles Q=2 do do if (bfactor mod Q) then exit do diff=abs(afactor-bfactor) ndiff=abs(afactor*Q - bfactor/Q) if ndiff>=diff then exit do afactor *=Q...
by Muttonhead
Mar 29, 2020 21:57
Forum: General
Topic: Best approach to fit n rectangles into a screen
Replies: 15
Views: 722

Re: Best approach to fit n rectangles into a screen

remember, 13,11,17..... are prime numbers. in these cases are stripes only possible.
Mutton
by Muttonhead
Mar 29, 2020 20:40
Forum: General
Topic: Best approach to fit n rectangles into a screen
Replies: 15
Views: 722

Re: Best approach to fit n rectangles into a screen

screen 19,32 dim as single xbox,ybox,xtile,ytile dim as integer numtiles,afactor,bfactor,diff,ndiff numtiles=52 xbox=320 ybox=240 afactor=numtiles bfactor=1 do if (afactor mod 2) then exit do diff=abs(afactor-bfactor) ndiff=abs(afactor/2 - bfactor*2) if ndiff>=diff then exit do afactor /=2 bfactor ...
by Muttonhead
Feb 26, 2020 21:36
Forum: Projects
Topic: sGUI
Replies: 238
Views: 42386

Re: sGUI

... ok, it just surprised me when the last time someone has read the source code so intensively, which, admittedly, is not very readable! i apologize for my suppositions and assumptions :) austria you said, then it would be easier for me to give help or tips in native language via pm. Anyway, additi...
by Muttonhead
Feb 26, 2020 21:04
Forum: Projects
Topic: sGUI
Replies: 238
Views: 42386

Re: sGUI

hello ppf, although i think that you and petan are one and the same person - which is generally no problem at all - what did i actually want to say at the moment i'm more concerned about world health than sGUI. Maybe it is panic-mongering or it is played down a bit, but... who knows... someone in th...
by Muttonhead
Jan 22, 2020 19:01
Forum: General
Topic: Squares
Replies: 8041
Views: 507960

Re: Squares

Is there any chance of knowing what this is about?
I don't want this to sound rude or presumptuous.
I once tried to follow this in "fast forward" and, admittedly, I did not quite succeed.
So, Albert, can you tell me in summary, whats your goal?
Sincerely, Mutton.
by Muttonhead
Apr 20, 2019 16:43
Forum: Projects
Topic: sGUI
Replies: 238
Views: 42386

Re: sGUI

interesting. but the examples in version 0.8.60 no longer work...

is still a piece of work, but the differences between the two versions are not as big as it is impossible.
Mutton
by Muttonhead
Apr 19, 2019 20:50
Forum: Projects
Topic: sGUI
Replies: 238
Views: 42386

Re: sGUI

https://1drv.ms/u/s!AsTPhVzcfzRrh_I9h5SYXlLPJHzt5Q

...after a very long time... something new again. There will be a kind of window system in the successor. At the moment only this one exists. I'm amazed what you can do with a single thread.

Mutton

Go to advanced search