Search found 385 matches

by integer
Sep 20, 2017 9:52
Forum: Beginners
Topic: Integer concenation with macro
Replies: 7
Views: 957

Re: Integer concenation with macro

fxm wrote:To avoid unexpected precedence order of operators, put parentheses systematically inside macro body (even where this is not absolutely necessary) is a good habit.
...
Thank you.
That might explain some problems previously experienced with macros.
by integer
Sep 18, 2017 10:24
Forum: Beginners
Topic: Integer concenation with macro
Replies: 7
Views: 957

Re: Integer concenation with macro

Hello, How to concenate integer correctly with macro ? I must call it twice here because i can't add something after ","(error) #define concat(a,b,c) a##b##c dim as integer a=10,b=20,c=30,d d = a concat(*100+,,)b d = d concat(*100+,,)c ?d '102030 sleep Thanks. perhaps this: #define concat...
by integer
Aug 07, 2017 22:43
Forum: General
Topic: Advice on a decision I need to make
Replies: 19
Views: 1950

Re: Advice on a decision I need to make

... 1. Microsoft used to say, never rewrite from scratch. It's very costly and very time consuming. Always hack on what you've got until it gets in the shape you want it... and there aren't any right answers. As a real world example of the above: Fill a glass with black coffee. Place the glass of b...
by integer
Jul 04, 2017 17:11
Forum: Windows
Topic: A fast CPRNG
Replies: 80
Views: 9310

Re: A fast CPRNG

The FillBuffer Sub should get used four times during the InitializeCryptoBuffers Sub but it does not always happen. I doubt that is a bug in my code. I have seen a report, 17 Aug 2017, about Threadpool corrupting the stack. This needs further investigation but if Threadpool is an issue then goodbye...
by integer
Jun 04, 2017 12:22
Forum: Beginners
Topic: uInteger
Replies: 9
Views: 933

Re: uInteger

counting_pine wrote:I've updated the wiki now so that UInteger is described as equivalent to Unsigned Integer. (And similarly with other Unsigned types.)

Thank you!
by integer
Jun 03, 2017 1:15
Forum: Community Discussion
Topic: How should I teach Computer Programming?
Replies: 10
Views: 1452

Re: How should I teach Computer Programming?

... I was stunned yesterday upon realizing the sum of all numbers is a negative 1/12 ... That was a nice "proof". If you flip a coin, normally it will land heads or tails, but since we don't know what the last one will be we'll just call it both. So, on average, it will land on its edge. ...
by integer
May 22, 2017 20:58
Forum: Community Discussion
Topic: Currently inactive
Replies: 45
Views: 9503

Re: Currently inactive

dkl wrote:Hi everyone,
I'd like to let everyone know that I'm no longer actively working on the FreeBASIC Compiler project.
...
Nevertheless, I'm still around
...

Thank you for all you have provided.
by integer
May 18, 2017 12:46
Forum: Tips and Tricks
Topic: Improving readability of scanned documents
Replies: 2
Views: 587

Re: Improving readability of scanned documents

Aethelstan wrote:Here is a simple demo of a graphical filter, that you can use to improve contrast and reduce dirtiness of scanned documents.

Code: Select all

...


This is good.
I would prefer that the altered image have a different file name, instead of the replacing the original.
by integer
May 08, 2017 2:12
Forum: General
Topic: Adequate program "installation" (both for Linux and Windows)
Replies: 13
Views: 932

Re: Adequate program "installation" (both for Linux and Windows)

A few years ago, I installed google earth from google. My system started to become very slow. It invaded my OS with tons of useless google entries (registry and other) that were apparently placeholders for other google applications and feedback (not to say spying)... It was a pain to clean up all t...
by integer
Mar 27, 2017 21:28
Forum: Tips and Tricks
Topic: A possible trick for files with fixed length records
Replies: 8
Views: 1329

Re: A possible application for "input"

That is one AMAZING trick. I thought I was selecting & getting this: DIM AS STRING a,b,c,d,r DIM AS INTEGER z,y,x,w a = "OSCAR" b = "OSC AR" PRINT "a = ";a PRINT "b = ";b PRINT INPUT "You print b = ";c PRINT z = LEN(c) d = "" FOR x = 1 ...
by integer
Mar 22, 2017 20:26
Forum: Beginners
Topic: Please tell me why this is not working
Replies: 4
Views: 627

Re: Please tell me why this is not working

i thought this code should work fine but its not. i don't know what to declare "choice" and "answer" as. integer dose not work. please hep ... sub main dim choice print "1.add" print "2.subtract" print "What is your choice." ; if choice = 1 then add...
by integer
Mar 16, 2017 14:51
Forum: Tips and Tricks
Topic: How a serial works
Replies: 5
Views: 991

Re: How a serial works

This little code shows up how serials are working. #include "windows.bi" dim as bool application_unlocked ... DIM AS STRING SERIAL INPUT "ENTER YOUR SERIAL :";SERIAL ' ONE OF THEM IS DDCDE221AGH ... if application_unlocked then fullversion else demo end if ... Is this code deali...
by integer
Mar 16, 2017 14:35
Forum: Projects
Topic: Pi day
Replies: 6
Views: 1130

Re: Pi day

For Pi day i made this code. have fun declare function gcd(a as uinteger, b as uinteger) as uinteger dim as ulongInt prime1, count dim as ulongInt ii=1 dim as uinteger ints = &hFFFF screen 19 do if gcd(int(rnd*ints+1), int(rnd*ints+1)) = 1 then prime1 +=1 count += 1 if count mod 10000 = 0 then ...
by integer
Mar 16, 2017 14:24
Forum: General
Topic: In FB, how would you represent a 128 bit value?
Replies: 19
Views: 1542

Re: In FB, how would you represent a 128 bit value?

So I've been looking around on AES encryption, and I am still curious: how do programs generate and work with 128-bit values? I've seen an example in Java which uses strings as a holder for 128 bits of data, but am still confused as to how you would work with that data mathematically: i.e. doesn't ...
by integer
Mar 14, 2017 23:05
Forum: Beginners
Topic: Should'nt "step 0" be a skipping condition?
Replies: 7
Views: 651

Re: Should'nt "step 0" be a skipping condition?

Possibly we shouldn't treat the value of STEP 0 as having any well-defined result, since it's not obvious what to expect. ...[comment snipped]... Possibly a step value of 0 is one of those cases where the user should be warned, rather than accept the current behaviour as a de facto standard. YES! (...

Go to advanced search