Search found 683 matches

by petan
Sep 01, 2016 16:55
Forum: General
Topic: remove the values duplicated in the array not efficient
Replies: 13
Views: 1143

Re: remove the values duplicated in the array not efficient

Mhm, and what do you expect exactly ?
What do you want to do in 'removeDuplicates()' exactly ?
How big is your array ?
Why not reducing it at array's first creation immediately ?

BTW, seems as second loop has wrong limit, if you want generate/test all pairs

Code: Select all

for j=i+1 to tos
by petan
Sep 01, 2016 12:23
Forum: General
Topic: Memory vs. Amount of Data
Replies: 9
Views: 971

Re: Memory vs. Amount of Data

Feel free to post some code. @fxm, I don't remember the command that shows the avaiable memory in stack, like say __mem__. Or have I been dreaming? I know only this method: http://www.freebasic.net/forum/viewtopic.php?p=161347#p161347 "Stack Overflow Problems on different platforms" - fou...
by petan
Aug 22, 2016 18:34
Forum: Documentation
Topic: If .. Then .. : (colons) ...
Replies: 7
Views: 1477

Re: If .. Then .. : (colons) ...

Nice, I didn' know this, thx. But, on the other hand, I see high risk/potential troubles, if in such compressed code would be ANY kind of mistake - typo/math-stat-logical error etc. Surely longer time for debugging. Surely longer time for upgrading such code after years. ("What is the job of th...
by petan
Aug 22, 2016 12:13
Forum: General
Topic: Multifilter of IFs on demand on-the-fly
Replies: 2
Views: 371

Re: Multifilter of IFs on demand on-the-fly

Thanks for quick response, St_W; I'll play with your OOP solution. Seems in final stage the multifilter code 'll needs also some kind of fuzzy logic to setup a decision's priorities for very complex testing expressions. My starting point of thought was to use old non-OOP code with macros & recur...
by petan
Aug 18, 2016 23:10
Forum: General
Topic: Multifilter of IFs on demand on-the-fly
Replies: 2
Views: 371

Multifilter of IFs on demand on-the-fly

Hmm, one lotty's prog leads me to the question.A bit AI, or database query.. Can I create/inject on-the-fly multi IF block (encapsulated) in running FB program ?, as pure FB code ? As only one code line it is IF (complexCondition) then ... where 'complexCondition' is/has (in every call) a different ...
by petan
Aug 18, 2016 22:27
Forum: Tips and Tricks
Topic: 'dirExists' function ;)
Replies: 7
Views: 1164

Re: 'dirExists' function ;)

Hi adele, thanks for sharing your code ! Another solution with booleans on FB 1.04+ version. Thats also answer why I made the code with any custom logics.I use FB 1.01 without booleans. And some people still use only FB 0.24+, so 'dirExists()' is very easy to implement/enhance in their old programs....
by petan
Aug 14, 2016 12:55
Forum: Tips and Tricks
Topic: 'dirExists' function ;)
Replies: 7
Views: 1164

Re: 'dirExists' function ;)

Hi, vdecampo Thanks for this really pretty good code ! Due my occupied time I did no tests with 'dir' command, also I am not familiar with it yet, so your code is very helpfull for me. Screenshot shows testing both functions https://db.tt/eNmF4wZf picture demonstrates using of inverted logic in that...
by petan
Aug 06, 2016 14:53
Forum: Tips and Tricks
Topic: 'dirExists' function ;)
Replies: 7
Views: 1164

'dirExists' function ;)

(Not sured if this was posted previously...by anyone) This function 'dirExists' is similar to built-in FB command 'fileExists'. Really helpfull in case of your own big dBs managing, etc. function dirExists(byval somePathToTest as string) as integer 'return values as written on wikiDoc 6.8.2016 '0 ->...
by petan
Jul 31, 2016 15:32
Forum: General
Topic: [offtopic] KENO bettors/betting/Linux FB software
Replies: 9
Views: 932

Re: [offtopic] KENO bettors/betting/Linux FB software

After testing a few days; I bought a month licence for a few bucks.App is very interesting & inspirative - multifilters. But NOT perfect, if you know what you want to see... E.g. for Keno game are opened 2-5 combo stats.Sorting matrix by decimal values is reasonably slower on my 4 GHz proci, and...
by petan
Jul 26, 2016 17:01
Forum: Linux
Topic: "FreeBASIC program in Linux text mode Error?
Replies: 95
Views: 8649

Re: "FreeBASIC program in Linux text mode Error?

@ St_W partially true, I don't know how looks boot config at Andy's machine, my Slax has "VGA=normal" and it's apps devel PC on flash, not distro test PC.Also I don't install/reinstall distros every week/month/year so I don't know if there are significant changes in boot sequences/methods....
by petan
Jul 26, 2016 12:58
Forum: Linux
Topic: "FreeBASIC program in Linux text mode Error?
Replies: 95
Views: 8649

Re: FreeBASIC program in Linux text mode Error?

BTW, could you change this topic title to "FreeBASIC program in Linux text mode Error?", as we see in graphics mode is all OK.
(edit title in your first post)
Thx.
by petan
Jul 26, 2016 8:36
Forum: Linux
Topic: "FreeBASIC program in Linux text mode Error?
Replies: 95
Views: 8649

Re: FreeBASIC program in Linux text mode Error?

Questions&answers http://unix.stackexchange.com/questions/tagged/framebuffer?sort=active&pageSize=50 http://moi.vonos.net/linux/framebuffer-drivers/ http://unix.stackexchange.com/questions/92817/what-happened-to-vga-ask-in-newer-kernels http://unix.stackexchange.com/questions/15738/kernel-mo...
by petan
Jul 25, 2016 8:08
Forum: Linux
Topic: "FreeBASIC program in Linux text mode Error?
Replies: 95
Views: 8649

Re: FreeBASIC program in Linux Error?

On Slax I am not able easily jump to text mode and back, nor install/test framebuffer driver, other things etc. Dmesg report about no VESA framebuffer, /dev/fb0 missing; switching to text mode needs login and then typing 'startx' for return; memory is permanently blocked up&up.Best result after ...
by petan
Jul 25, 2016 7:38
Forum: Community Discussion
Topic: FreeBASIC Wiki not working
Replies: 19
Views: 2807

Re: FreeBASIC Wiki not working

Right, it was down for a moment; maybe a few hours - not scanned.
by petan
Jul 23, 2016 23:24
Forum: Linux
Topic: "FreeBASIC program in Linux text mode Error?
Replies: 95
Views: 8649

Re: FreeBASIC program in Linux Error?

Good , and now try windowed code with GFX windowed flag and #include as I posted ;) We will see if colors and graphics commands works as needed. IIUC your boot was into the graphics, Xserver works, LXDE works.System OK. What is physical screen resolution of your IBM Thinkpad notebook ? 800x600? If y...

Go to advanced search