Search found 710 matches

by grindstone
Jul 19, 2015 8:24
Forum: Tips and Tricks
Topic: a very very basic contour finder :)
Replies: 19
Views: 3030

Re: a very very basic contour finder :)

I took the best (I hope) of all the snippets that have been posted to this subject (especially the outline creation by "blob shifting" I find simply ingenious) and merged them to a contour scanner that can handle shapes with multiple outlines: Dim As UInteger w,h,x,y,count Dim As String sh...
by grindstone
Jul 18, 2015 11:17
Forum: General
Topic: About sharing data between running executables
Replies: 24
Views: 2235

Re: About sharing data between running executables

I can't confirm that. Whren I let the receiver crash by inserting ? text[100000000] at the end of the code, the file is deleted by the transmitter as soon as the receiver has terminated, even though it's not been closed. And when I let the transmitter crash, the receiver can be ended with no problems.
by grindstone
Jul 18, 2015 11:01
Forum: Projects
Topic: template recognition of any drawn stroke
Replies: 10
Views: 1092

Re: template recognition of any drawn stroke

The weakness is still there that the stroke has to be drawn the same way each time. If you draw a square for example and start at the top/left corner and move right you cannot later draw an identical square by starting at another place or start at the same place but move in the opposite direction. ...
by grindstone
Jul 18, 2015 10:14
Forum: General
Topic: About sharing data between running executables
Replies: 24
Views: 2235

Re: About sharing data between running executables

Here's a little "quick and dirty" example. If you want, you can call the 'Close #ff' - statement "synchronisation", because afterwards the additional content of the file is accessable by the receiver: Print "TRANSMITTER" Dim As String sf = ExePath + "\sharefile.txt...
by grindstone
Jul 18, 2015 8:22
Forum: General
Topic: About sharing data between running executables
Replies: 24
Views: 2235

Re: About sharing data between running executables

But my point was more that filebased is hard to do right Not at all. You only have to open a file for writing in the emitting process and write the data to it, and open that same file in the receiving process for reading and read it periodically. That's all. No library, no care for timing, the only...
by grindstone
Jul 17, 2015 9:23
Forum: General
Topic: About sharing data between running executables
Replies: 24
Views: 2235

Re: About sharing data between running executables

@marcov: You're surely right, but the question was: what's the easiest to code? (quick and dirty). The file method may be not very elegant, but it's amazing capable if you know how to do it.
by grindstone
Jul 17, 2015 8:55
Forum: General
Topic: How Can I remove empty string In dynamic Array
Replies: 22
Views: 1313

Re: How Can I remove empty string In dynamic Array

Hello! Anyone to beat this performance? ReDim As String Buffer(0 To 1000000) Dim As Integer i,j Dim As Double tr ''Write some buffer with holes Randomize Timer For i As Integer=0 To UBound(Buffer) If Rnd >.5 Then Buffer(i)="" Else Buffer(i)="item" & i End If Next i 'print buf...
by grindstone
Jul 17, 2015 7:46
Forum: General
Topic: About sharing data between running executables
Replies: 24
Views: 2235

Re: About sharing data between running executables

Tourist Trap wrote:left aside any other criterias, which is the easiest at a pure coding point of view?
Obviously disk files!
by grindstone
Jul 15, 2015 8:10
Forum: General
Topic: About sharing data between running executables
Replies: 24
Views: 2235

Re: About sharing data between running executables

You also could use a pipe: http://www.freebasic-portal.de/code-beispiele/kleine-helferlein/bipipe-bi-fuer-win-linux-299.html Put the code into a .bi and include it to your programme. And if you don't mind that the desciption, comments and variable names are in german, you can take a look at this exa...
by grindstone
Jul 15, 2015 7:49
Forum: Projects
Topic: Recognition of hand drawn digits
Replies: 9
Views: 1283

Re: Recognition of hand drawn digits

Do you repair T.V.'s as well as setting them up? Yes, I do, although it's become less common during the last years. By the way grindstone, my own Mother is now 89 (and also German) Please give her my regards. Yes there seems to be no interest in providing an intuitive interface for modern equipment...
by grindstone
Jul 14, 2015 11:37
Forum: Projects
Topic: Recognition of hand drawn digits
Replies: 9
Views: 1283

Re: Recognition of hand drawn digits

@BasicCoder2: I totally agree. Seems that we are related souls (at least concerning to math :-) ). In my opinion the strength of this non-mathematical kind of sight is the capability to think outside the box. As a television technician I often have to grapple with the quirks of firmware programmers:...
by grindstone
Jul 14, 2015 8:50
Forum: Projects
Topic: Recognition of hand drawn digits
Replies: 9
Views: 1283

Re: Recognition of hand drawn digits

BasicCoder2 wrote:My introduction was via a hobby in electronics and automation where math is something I am forced to deal with on a needs basis.
That's exactly my own attitude (back in school I HATED maths). You see, you're not allone :)

Regards
grindstone
by grindstone
Jul 12, 2015 11:31
Forum: General
Topic: Search binary bytes in the Big arrays
Replies: 18
Views: 1310

Re: Search binary bytes in the Big arrays

If you use a dynamic array, the programme gets a strange behaviour: With the 'Clear' - statement it works, also with the restored pointer. But when the dummyString is set empty by >dummyString = ""<, the programme crashes the next time you access the array. ReDim Shared As UByte ub(&h6...
by grindstone
Jul 11, 2015 11:45
Forum: General
Topic: Search binary bytes in the Big arrays
Replies: 18
Views: 1310

Re: Search binary bytes in the Big arrays

Yes but unless you reset the descriptor back to zero pointer and zero length, when the string goes out of scope, the fB runtime will free the memory associated with your array, which almost certainly isn't what you want. Especially when FB will also try to free the array when it goes out of scope. ...
by grindstone
Jul 11, 2015 8:35
Forum: General
Topic: Search binary bytes in the Big arrays
Replies: 18
Views: 1310

Re: Search binary bytes in the Big arrays

I took me ages to discover why grindstone's second offering was so fast, the array has been shortened by an f. I confess myself guilty. At the moment I have not enough memory (only 2GB) to run the programme with its original array size, so I deleted one f. Alas, I forgot to reinsert it before posti...

Go to advanced search