Re: (Execution) Termination bit, Alternation bit.

2016-01-08 Thread Skybuck Flying
Should be easy to turn that somewhat pseudo code into python code ! :) If it is so easy, why won't you do it? Not sure why, I use SikuliX and it's kinda buggy and slow, and I also had little time, it's also pretty trivial and I doubt you guys will have a solution that will actually work, so

Re: (Execution) Termination bit, Alternation bit.

2016-01-02 Thread Skybuck Flying
"Chris Angelico" wrote in message news:mailman.64.1451433611.11925.python-l...@python.org... On Wed, Dec 30, 2015 at 8:43 AM, Skybuck Flying <skybuck2...@hotmail.com> wrote: Not at all, these assembler statements can be replaced with python statements and then you hav

Re: (Execution) Termination bit, Alternation bit.

2015-12-29 Thread Skybuck Flying
"Steven D'Aprano" wrote in message news:5682892c$0$1587$c3e8da3$54964...@news.astraweb.com... On Tue, 29 Dec 2015 10:25 pm, Skybuck Flying wrote: Great that means you will understand the example below: mov eax, 0 add eax, 10 mul eax, 4 There is an instruction sequen

Re: (Execution) Termination bit, Alternation bit.

2015-12-29 Thread Skybuck Flying
"Grant Edwards" wrote in message news:n59k40$e27$1...@reader1.panix.com... On 2015-12-21, Dennis Lee Bieber <wlfr...@ix.netcom.com> wrote: On Mon, 21 Dec 2015 13:40:21 +0100, "Skybuck Flying" <skybuck2...@hotmail.com> declaimed the following: The orig

Re: (Execution) Termination bit, Alternation bit.

2015-12-29 Thread Skybuck Flying
"Grant Edwards" wrote in message news:n59k40$e27$1...@reader1.panix.com... On 2015-12-21, Dennis Lee Bieber <wlfr...@ix.netcom.com> wrote: On Mon, 21 Dec 2015 13:40:21 +0100, "Skybuck Flying" <skybuck2...@hotmail.com> declaimed the following: The orig

Re: (Execution) Termination bit, Alternation bit.

2015-12-29 Thread Skybuck Flying
"Chris Angelico" wrote in message news:mailman.62.1450799815.2237.python-l...@python.org... On Wed, Dec 23, 2015 at 2:46 AM, Skybuck Flying <skybuck2...@hotmail.com> wrote: One idea which immediatly comes to mind to fix this problem is to offer a "PushTermin

Re: (Execution) Termination bit, Alternation bit.

2015-12-22 Thread Skybuck Flying
"Richard Damon" wrote in message news:QXSdy.6634$qg6.5...@fx31.iad... On 12/21/15 7:40 AM, Skybuck Flying wrote: The original idea I posted is less about sending a signal to another processor. It is more about how to break out of an instruction sequence. Example of problem: [

Re: (Execution) Termination bit, Alternation bit.

2015-12-21 Thread Skybuck Flying
The original idea I posted is less about sending a signal to another processor. It is more about how to break out of an instruction sequence. Example of problem: Main: while Condition1 do begin while Condition2 do begin while Condition3 do begin Routine1

Re: (Execution) Termination bit, Alternation bit.

2015-12-20 Thread Skybuck Flying
"Richard Damon" wrote in message news:QHody.3724$bz5.3...@fx04.iad... On 12/19/15 9:03 PM, Skybuck Flying wrote: It could be usefull if the instruction pointer/return address that was pushed onto the stack when the interrupt handler was called can be modified by the interrupt

(Execution) Termination bit, Alternation bit.

2015-12-19 Thread Skybuck Flying
Hello, I'd like to see instruction execution enhanced with the following two ideas: 1. A termination bit, and a terminator pointer. 2. A alternation bit, and a alternate pointer. The purpose of these bits is as follows: Before a processor/core executes an instruction both bits are examined.

Re: Is Microsoft Windows secretly downloading childporn to your computer ?!

2015-12-01 Thread Skybuck Flying
It's not YOU doing it. Since you obviously don't understand that it's not worth reading anything else you wrote LOL. Bye, Skybuck. -- https://mail.python.org/mailman/listinfo/python-list

Re: Dummy Decoder Example (was Re: Parallel decoding lesson for you.)

2015-09-29 Thread Skybuck Flying
Writeln(E.ClassName, ': ', E.Message); end; ReadLn; end. // *** End of Delphi Program *** // *** Begin of C/C++ Program *** // ParallelDecodingCVersion.cpp : Defines the entry point for the console application. // // Full C version 0.01 created on 23 september 2015 by Skybuck Flying =

Re: Cyber Grand Challenge, prizes up to 2 million dollars ! (DARPA)

2015-09-23 Thread Skybuck Flying
Also very interesting read: http://blog.trailofbits.com/2015/07/15/how-we-fared-in-the-cyber-grand-challenge/ " How We Fared in the Cyber Grand Challenge July 15, 2015 by Artem Dinaburg 6 Comments The Cyber Grand Challenge qualifying event was held on June 3rd, at exactly noon Eastern time.

Cyber Grand Challenge, prizes up to 2 million dollars ! (DARPA)

2015-09-23 Thread Skybuck Flying
(Click on little icon on website top left for menu): Information about challenge: http://www.cybergrandchallenge.com/site/index.html#about https://cgc.darpa.mil/CGC_Rules_16_May_14_Version_2.pdf Perhaps this will be a yearly contest. There is a catch though, to collect the prizes: "The prize

Re: Cyber Grand Challenge, prizes up to 2 million dollars ! (DARPA)

2015-09-23 Thread Skybuck Flying
Also very interesting read: https://cgc.darpa.mil/CGC_FAQ.pdf Just the list of common programming mistakes is already pretty interesting ! ;) =D Bye, Skybuck. -- https://mail.python.org/mailman/listinfo/python-list

Re: Dummy Decoder Example (was Re: Parallel decoding lesson for you.)

2015-09-23 Thread Skybuck Flying
The example may be modified as much as needed. For now my solution needs a little reading pad to avoid costly mods or branches or whatever. I think this is a nice speedy solution, so code may be modified as follows: const MaxProcessorCount = 4; var // information stream, input Stream :

Re: Dummy Decoder Example (was Re: Parallel decoding lesson for you.)

2015-09-23 Thread Skybuck Flying
Here is the C version of the example in case your Delphi-to-C skills are not so great or you lazy lol =D: // ParallelDecodingCVersion.cpp : Defines the entry point for the console application. // #include "stdafx.h" // Begin of Dummy Decoder Example const int MaxProcessorCount = 4; int

Re: Dummy Decoder Example (was Re: Parallel decoding lesson for you.)

2015-09-23 Thread Skybuck Flying
Also here is test set 2 to test input values: // input test 2, c version a1 = 1; a2 = 0; a3 = 0; a4 = 1; b1 = 1; b2 = 1; b3 = 0; c1 = 1; d1 = 1; d2 = 1; d3 = 0; d4 = 0; d5 = 1; d6 = 0; Bye, Skybuck. -- https://mail.python.org/mailman/listinfo/python-list

Re: Dummy Decoder Example (was Re: Parallel decoding lesson for you.)

2015-09-21 Thread Skybuck Flying
Just to be clear on this, the code you have to write doesn't need to be truely parallel. It must be parallel in potential, so it should be able to execute independenlty from each other and out of order. Bye, Skybuck. -- https://mail.python.org/mailman/listinfo/python-list

Re: Dummy Decoder Example (was Re: Parallel decoding lesson for you.)

2015-09-20 Thread Skybuck Flying
Since more people might be interested in this I will re-post this a second time to include more newsgroups... those two threads will need to be followed if all responses are to be seen ;) Here is your dummy decoder example: Let's turn this into a somewhat of a contest and ofcourse also

Re: Dummy Decoder Example (was Re: Parallel decoding lesson for you.)

2015-09-20 Thread Skybuck Flying
Or point your newsgroup reader to newsgroup: comp.arch Then see thread/topic: "Parallel decoding lesson for you" by Skybuck. Bye, Skybuck. -- https://mail.python.org/mailman/listinfo/python-list

Re: Python handles globals badly.

2015-09-14 Thread Skybuck Flying
"Ned Batchelder" wrote in message news:180fe671-7bf9-4544-a3ad-d98a4a497...@googlegroups.com... On Sunday, September 13, 2015 at 8:11:13 AM UTC-4, Skybuck Flying wrote: I don't even understand how python interpreter works but I can understand it better than you guys do apperen

Re: Python handles globals badly.

2015-09-13 Thread Skybuck Flying
" Namespaces don't "become writeable". The purpose of "global" is to tell the compiler that this name should be bound in the global namespace, not the local namespace. " How does it become writeable then ? Bye, Skybuck. -- https://mail.python.org/mailman/listinfo/python-list

Re: Python handles globals badly.

2015-09-13 Thread Skybuck Flying
"Steven D'Aprano" wrote in message news:55f566c8$0$1644$c3e8da3$54964...@news.astraweb.com... On Sun, 13 Sep 2015 10:04 pm, Skybuck Flying wrote: " Namespaces don't "become writeable". The purpose of "global" is to tell the compiler that this name shou

Re: Python handles globals badly.

2015-09-13 Thread Skybuck Flying
I may add to that: Just like most programmers don't truely understand what a compiler does ! HAHAHAHAHA. C programmers, Delphi programmers, Java programmers. What python's interpreter is doing same thing, probably completely irrelevant. Except when it comes to making changes to how python

Re: Python handles globals badly.

2015-09-13 Thread Skybuck Flying
"Emile van Sebille" wrote in message news:mailman.433.1442078406.8327.python-l...@python.org... On 9/11/2015 10:22 PM, Skybuck Flying wrote: I didn't learn anything from this posting, sorry ! ;) " I'm seeing a pattern here... " Only thing I might have learned

Re: Python handles globals badly.

2015-09-13 Thread Skybuck Flying
From what he wrote I can see he's not making much sense... Neither are you. Just lot's of nag and little python related stuff. Bye, Skybuck. -- https://mail.python.org/mailman/listinfo/python-list

Re: Python handles globals badly.

2015-09-11 Thread Skybuck Flying
"Random832" wrote in message news:mailman.242.1441758354.8327.python-l...@python.org... MRAB writes: If you're allowed to specify both bounds, why would you be forbidden from negative ones? " It makes it non-obvious what value should be returned from e.g. search

Re: Python handles globals badly.

2015-09-11 Thread Skybuck Flying
Hello, I'll add some arguments to the global discussion for you. First a look back at the origin of this "global" keyword, basically it's idea behind it, which is probably a flawed assumption. The origin/purpose of global as I now understand it is to give "write" access to globally declared

Re: Python handles globals badly.

2015-09-11 Thread Skybuck Flying
"Michael Torrie" wrote in message news:mailman.384.1442016089.8327.python-l...@python.org... On 09/11/2015 03:50 PM, Skybuck Flying wrote: Something which python does not seem to do currently ?! So that's weird. I will leave it at that for now. " Seems to me you ha

Re: Integers with leading zeroes

2015-07-19 Thread Skybuck Flying
Don't be noob ? ;) Always remove leading zeroes ? One case that comes to mind is ASCII art like code... where programmer may want to align numbers for clearity: 0014324 0234545 345 0534543 ^ That could be a problem but possibly solveable with spaces instead: 14324 234545 345 534543

Re: Parser needed.

2015-06-11 Thread Skybuck Flying
Well it did help a little bit. Somebody asked if there was already a parser for it. I answered yes in C#. So I took a closer look at it... and learned something from it. Maybe I would have done that anyway... or maybe not... Now we will never know... but I am happy that the parser is now ok,

Re: I don't like the OO part of python. In particular the self keyword everywhere.

2015-06-11 Thread Skybuck Flying
Another typo corrected... see (*) Skybuck Flying wrote in message news:2c87e$55796f2c$5419aafe$47...@news.ziggo.nl... Little typo corrected... it's a common typo I seem to make. with had to be without see ***. Skybuck Flying wrote in message news:... Hello, I don't like the object

Re: I don't like the OO part of python. In particular the self keyword everywhere.

2015-06-11 Thread Skybuck Flying
Little typo corrected... it's a common typo I seem to make. with had to be without see ***. Skybuck Flying wrote in message news:... Hello, I don't like the object orientated part of Python. The idea/prospect of having to write self everywhere... seems very horrorific and a huge time waster

I don't like the OO part of python. In particular the self keyword everywhere.

2015-06-11 Thread Skybuck Flying
Hello, I don't like the object orientated part of Python. The idea/prospect of having to write self everywhere... seems very horrorific and a huge time waster. (Perhaps the module thing of python might help in future not sure about that). What are your thoughts on the self

Re: I don't like the OO part of python. In particular the self keyword everywhere.

2015-06-11 Thread Skybuck Flying
Then again... I also believe the highest goal for a programming language is natural spoken language. If self.somefield equals 10 then... Does have some understandable ring to it. However... time constraints also have to be kept in mind. In another words if the code looks like begin of

Re: Parser needed.

2015-06-09 Thread Skybuck Flying
Euhm... My parser is already done... since today Loving it too Wrote it myself... based on the c# code technique explained somewhere in this thread too Bye, Skybuck. -- https://mail.python.org/mailman/listinfo/python-list

Re: Parser needed.

2015-06-08 Thread Skybuck Flying
Oh I think I forgot to mention... parser is now getting close to 1 second... with tokenizer and such. But I think this is still within acceptable performance level for now. Bye, Skybuck. -- https://mail.python.org/mailman/listinfo/python-list

Re: Parser needed.

2015-06-08 Thread Skybuck Flying
I made it way too difficult on myself with that stupid dictionary bs... What I really wanted was to know if the ref was already in the reflist. Turns out python has a really nice simple operation for that: if not (Ref in EntityRef): EntityRef.append(Ref) DONE ! =D No need for

Re: Parser needed.

2015-06-04 Thread Skybuck Flying
get was tried but now new error somewhere else: [error] TypeError ( list indices must be integers ) [error] --- Traceback --- error source first line: module ( function ) statement 133: main ( ProcessUpdateEntityDead ) DemoEntityDead[DemoEntityIndex] = Dead Apperently the returned index from

Re: Parser needed.

2015-06-04 Thread Skybuck Flying
Well... I must say I am impressed: Python parsers the file/info I want in just: Seconds: 0.013389648 For +/- 20.000 lines of input data/text. This makes it very usuable cool ! Now I try the bigger file: +/- 285.000 lines of input data/text: Seconds: 0.092351501 Very impressive !

Re: Parser needed.

2015-06-04 Thread Skybuck Flying
Ok problem found. The data contains: EntityRef EntityRef So perhaps I screwed it up or perhaps the data is a bit bad. I ll check on my web drive: http://www.skybuck.org/Games/StartrekOnline/Parser/SpaceFleetAlertEnemyExample.demo Firefox doesn't find it... so apperently I fucked up data a

Re: Parser needed.

2015-06-04 Thread Skybuck Flying
Very nice code almost done. Now I am trying to do the code correctly and fast, thus using a dictionary, but I run into a little problem: The dictionary is declared as: DemoEntityRefIndex = {} Pairs are added as: DemoEntityRefIndex[Ref] = DemoEntityIndex And now I try to retrieve the demo

Re: Parser needed.

2015-06-04 Thread Skybuck Flying
I feel my conclusion is a bit hasty... but using dictionaries is not easy that for sure. Apperently the problem is DemoEntityInde is none ? But why would it be none ? Hmmm strange... maybe some refs are not in there... hmmm... Yeah could be... I cutted some stuff out... so I better check

Re: Parser needed.

2015-06-04 Thread Skybuck Flying
Something strange happens with: 36044817 near the update section... for some reason it doesn't copy it properly... Hmm... Maybe a bug in output or an additional new line or maybe something wrong... Hmm.. Bye, Skybuck. -- https://mail.python.org/mailman/listinfo/python-list

Re: Parser needed.

2015-06-04 Thread Skybuck Flying
Yes these string processing techniques will work very nicely and very fast: cut and pasted an example but should work... now I developed it a bit further, bye ,bye. BotDemoFolder = C:\\Games\\Startrek Online\\Startrek Online\\Cryptic Studios\\Star Trek Online\\Live\\demos BotDemoFile =

Re: Parser needed.

2015-06-04 Thread Skybuck Flying
Yeah... my first nice parser for this kind of stuff... Python is really nice for this stuff... Piece a cake.. now I just need to stuff it in some dictionary and I am done or so ;) Though a dictionary might be hard to traverse in sequence... A list is probably enough... assuming no duplicate

Re: Parser needed.

2015-06-02 Thread Skybuck Flying
MRAB wrote in message news:mailman.71.1433263397.13271.python-l...@python.org... On 2015-06-02 05:45, Skybuck Flying wrote: Example for python: MyString = Hello World print MyString.rfind(World) if MyString.rfind(World): print yes else: print no Pretty cool. .rfind returns the index

Re: Parser needed.

2015-06-01 Thread Skybuck Flying
This will probably help: http://stackoverflow.com/questions/14676265/how-to-read-text-file-into-a-list-or-array-with-python text_file = open(filename.dat, r) lines = text_file.readlines() print lines print len(lines) text_file.close() Usually I like to consult officals docs though...Bye,

Re: Parser needed.

2015-06-01 Thread Skybuck Flying
Some further information about the demo file: It seems to be split up into creation sections and update sections. The update sections contain the positions. The update sections also contain a reference number to the created entities. (There is one empty creation section but that's because I

Re: Parser needed.

2015-06-01 Thread Skybuck Flying
Readlines is indeed documented as reading EOF: http://www.tutorialspoint.com/python/file_methods.htm Bye, skybuck. Skybuck Flying wrote in message news:37cda$556d009d$5419aafe$38...@news.ziggo.nl... This will probably help: http://stackoverflow.com/questions/14676265/how-to-read-text

Re: Parser needed.

2015-06-01 Thread Skybuck Flying
Since the file is probably ascii... not sure... I might come away with: file.read([size]) Reads at most size bytes from the file (less if the read hits EOF before obtaining size bytes). The doc does not mention is size is optionally... I will try and leave it out, see what happens,

Re: Parser needed.

2015-06-01 Thread Skybuck Flying
Test program shows, python/sikulix can handle about 3m chars per second so I must continue with a parser attempt. # test char processing speed. # test if sikulix 1.1, python, jython/whatever is a piece of shit when it comes to parsing dealing with characters, unicode processing bottleneck

Re: Parser needed.

2015-06-01 Thread Skybuck Flying
Perhaps the list.append operation is the cause of the slowdown, or perhaps my algo is flawed. No idea yet with slowdown of parser code so far. Instead of trying to debug everything going to add some time outputs to the whole thing to get to bottom of this ;) Ok another sikuli failure... I

Re: Parser needed.

2015-06-01 Thread Skybuck Flying
Hmm this parser uses an interesting technique: if line.Contains(activePlayerRef): self._activePlayerRef = Convert.ToInt64(line.Substring(line.LastIndexOf(activePlayerRef) + 16)) I'll see if python can do this as well... ;) Bye, Skybuck. --

Re: Parser needed.

2015-06-01 Thread Skybuck Flying
Michael Torrie wrote in message news:mailman.31.1433207544.13271.python-l...@python.org... On 06/01/2015 06:29 PM, Skybuck Flying wrote: The parser should be able to parse a textfile of somewhere between 20.000 lines to 50.000 lines in about 1 to 2 seconds. My environment is SikuliX 1.1 I

Re: Parser needed.

2015-06-01 Thread Skybuck Flying
Yes this will work: DemoChars = FileObject.read() I think this is a cleaner solution. EOL can be ignored and focusses on { } and stuff like that... when extracting information EOL could be used as well. Bye, Skybuck. -- https://mail.python.org/mailman/listinfo/python-list

Re: Parser needed.

2015-06-01 Thread Skybuck Flying
Test program shows, python/sikulix can handle about 3m chars per second so I must continue with a parser attempt. Apperently there is some bottleneck/slowdown in posted code... I may have to slow down a bit take more time... and perhaps use global vars or so... instead of parameters. Maybe

Re: Parser needed.

2015-06-01 Thread Skybuck Flying
I will try and help for as far as possible, maybe I will end up writing it myself in the process. The first problem seems to be, how to read a textfile into python all at once... and then perhaps process them per line. Bye, Skybuck. -- https://mail.python.org/mailman/listinfo/python-list

Re: Parser needed.

2015-06-01 Thread Skybuck Flying
Joel Goldstick wrote in message news:mailman.34.1433209315.13271.python-l...@python.org... On Mon, Jun 1, 2015 at 9:31 PM, Skybuck Flying skybuck2...@hotmail.com wrote: Yes this will work: DemoChars = FileObject.read() I think this is a cleaner solution. EOL can be ignored and focusses

Re: Parser needed.

2015-06-01 Thread Skybuck Flying
I am trying to rush it a bit but things are starting to go to hell. SikuliX needs to be restarted continously to deal with bugs. Plus Eclipse breakpoints cannot be set. So both IDEs totally suck for any complex code development. Plus I can already tell this is going to be insanely slow in

Re: Parser needed.

2015-06-01 Thread Skybuck Flying
Together with this it's might be of some use: http://codeconverter.sharpdevelop.net/SnippetConverter.aspx It converts C# to Python pretty fast. I'll give it a try to see if it can work. Bye, Skybuck. -- https://mail.python.org/mailman/listinfo/python-list

Re: Parser needed.

2015-06-01 Thread Skybuck Flying
From examining the demo file it seems each bracketted data sections if pre-header/pre-fixed with it's name. So it's somewhat similar to a C structure: structure { } Bye, Skybuck. -- https://mail.python.org/mailman/listinfo/python-list

Re: Parser needed.

2015-06-01 Thread Skybuck Flying
This can help with parsing the C like bracketted data: http://stackoverflow.com/questions/1651487/python-parsing-bracketed-blocks algo: For each string in the array: Find the first '{'. If there is none, leave that string alone. Init a counter to 0. For each character in the string:

Re: Parser needed.

2015-06-01 Thread Skybuck Flying
On 06/01/2015 07:19 PM, Skybuck Flying wrote: How hard would it be to encode that into pyparser ? Check out the docs and you probably will get an idea. The only real way to find out is to try it. Is this file from a certain program? If so, it's possible someone has already written a python

Re: Parser needed.

2015-06-01 Thread Skybuck Flying
Actually that's not true... messages not that interesting. This C# parser does not parse what I want which is: updates and positions. Thus I rejected this parser some days ago. But it's technique could be handy. Bye, Skybuck. -- https://mail.python.org/mailman/listinfo/python-list

Re: Parser needed.

2015-06-01 Thread Skybuck Flying
Except for the first bracket... it has no structure name. Perhaps the demo filename could be used as structure name or just be left empty. Bye, Skybuck. Skybuck Flying wrote in message news:aef84$556d00e7$5419aafe$39...@news.ziggo.nl... From examining the demo file it seems each

Re: Parser needed.

2015-06-01 Thread Skybuck Flying
I really like this python help file, it has served me well so far: http://www.tutorialspoint.com/python/python_functions.htm It's unusually better than the rest on the net ;) It matches nicely Sikuli's python's capabilities. Bye, Skybuck :) --

Re: Parser needed.

2015-06-01 Thread Skybuck Flying
So far this is what I got... I like to name things for what they are so FileObject I like better than something abstract/weird like text file, my code: BotDemoFolder = C:\\Games\\Startrek Online\\Startrek Online\\Cryptic Studios\\Star Trek Online\\Live\\demos BotDemoFile =

Re: Parser needed.

2015-06-01 Thread Skybuck Flying
Here is a parser for sto demo files written in C# maybe it can be of some use, check trunk folders: http://sourceforge.net/p/stodemolauncher/code/HEAD/tree/ Bye, Skybuck. -- https://mail.python.org/mailman/listinfo/python-list

Re: Parser needed.

2015-06-01 Thread Skybuck Flying
If some of this code could be made to work it could be of some use: ParserEngine is the least important... MessageParser is interesting. class AbstractSectionsParser(AbstractParser): # Provides a method to return a list of sections def GetResult(self): # Returns the list with the found

Parser needed.

2015-06-01 Thread Skybuck Flying
Hello, I need some kind of parser and some kind of way to access the data contained in a file like the one below: (text file): http://www.skybuck.org/Games/StartrekOnline/Parser/SpaceFleetAlertEnemyExample.demo I am interested in learning the entity numbers: EntityRef number and their

Re: Parser needed.

2015-06-01 Thread Skybuck Flying
Ok, so far so good, a little start has been made. Text file is read into lines... I am not so sure if this is a good idea... Maybe it's easier if the entire file is one gigant array of characters instead of fragmented lines. However I don't know yet exactly how to read as one gigant array of

Re: Parser needed.

2015-06-01 Thread Skybuck Flying
I tried running this in SikuliX 1.1 from pyparsing import Word, alphas greet = Word( alphas ) + , + Word( alphas ) + ! greeting = greet.parseString( Hello, World! ) print greeting Doesn't seem to run pyparser module missing. Another reason why not to use it, unfortunately. Not sure if it's

Re: Parser needed.

2015-06-01 Thread Skybuck Flying
Example for python: MyString = Hello World print MyString.rfind(World) if MyString.rfind(World): print yes else: print no Pretty cool. Bye, Skybuck. -- https://mail.python.org/mailman/listinfo/python-list

Re: Parser needed.

2015-06-01 Thread Skybuck Flying
Apperently print speed has some exponential time issue in SikuliX kinda weird. But at least processing is high... however, debug console/print is only thing I got to diagnose problems... Could get time-wise nasty... hmmm... Perhaps I should make a small little parser in Delphi and port it

Re: Parser needed.

2015-06-01 Thread Skybuck Flying
Link looks a bit odd, home index link: Nice python documentation/tutorial/help: http://www.tutorialspoint.com/python/index.htm Bye, Skybuck. -- https://mail.python.org/mailman/listinfo/python-list

Re: Parser needed.

2015-06-01 Thread Skybuck Flying
Nice char based code: BotDemoFolder = C:\\Games\\Startrek Online\\Startrek Online\\Cryptic Studios\\Star Trek Online\\Live\\demos BotDemoFile = SpaceFleetAlert.demo import time def ParseDemoLines( ParaLines ): print Parsing + str( len(ParaLines) ) + lines. for LineIndex in range(0,

Re: Logic problem: need better logic for desired thruth table. (thruth table to logic/boolean operations generator sought/needed)

2015-05-28 Thread Skybuck Flying
/generator ?! Anybody know one that is suited for boolean logic/software programming/programming languages/boolean operations ? Bye, Skybuck. Original posting: Skybuck Flying wrote in message news:3794b$55678d83$5419aafe$56...@news.ziggo.nl... Hello, I was just coding and ran

Re: Logic problem: need better logic for desired thruth table. (thruth table to logic/boolean operations generator sought/needed)

2015-05-28 Thread Skybuck Flying
However I can already see I am not happy with this video solution. I have 3 true outputs, and only 1 false output. That would require a lot of logic. I guess I can turn it around and negate the whole thing... and focus on the false output. Bye, Skybuck. --

Re: Logic problem: need better logic for desired thruth table. (thruth table to logic/boolean operations generator sought/needed)

2015-05-28 Thread Skybuck Flying
Ok, problem solved for now, it seems: I used video tutorial method and inverted it for the false case ;) But anyway... I would not only need a thruth table to logic/boolean operations converter but also a boolean operations optimizer ;) # loop has to run if: # while DesiredResult==True: #

Logic problem: need better logic for desired thruth table.

2015-05-28 Thread Skybuck Flying
Hello, I was just coding and ran into a little logic problem which is as follows: There are two booleans/variables which can be either false or true. The desired thrutle table is: A = input B = input C = output A B C: --- F F T F T F T F T T T T Surpisingly enough I don't think there is

Re: Logic problem: need better logic for desired thruth table. (thruth table to logic/boolean operations generator sought/needed)

2015-05-28 Thread Skybuck Flying
This is a start lol: https://www.youtube.com/watch?v=lKqTSBKmWA4 I wonder if it can be simplied... I'll give it a try. Basically it comes down to creating a logic expression for each true result in the desired output and or-ing with each other. The variables leading to the true result in

Re: Logic problem: need better logic for desired thruth table.

2015-05-28 Thread Skybuck Flying
Denis McMahon wrote in message news:mk884e$gth$1...@dont-email.me... On Thu, 28 May 2015 14:58:19 -0700, sohcahtoa82 wrote: On Thursday, May 28, 2015 at 2:50:18 PM UTC-7, Skybuck Flying wrote: Hello, # Desired truth table for BotWaitForCooldown and CooldownDetected

Re: Logic problem: need better logic for desired thruth table.

2015-05-28 Thread Skybuck Flying
wrote in message news:mailman.152.1432869623.5151.python-l...@python.org... On Thu, May 28, 2015, at 17:50, Skybuck Flying wrote: Surpisingly enough I don't think there is a casual/common operator for this thruth table. AND does not apply. OR does not apply. XOR does not apply. All sixteen

Re: Logic problem: need better logic for desired thruth table. (thruth table to logic/boolean operations generator sought/needed)

2015-05-28 Thread Skybuck Flying
I am not so sure anymore about my conclusion, I will investigate this further tomorrow. It seems safe to conclude that at least the following operators have their own thruth tables: = = = These are the comparision operators. Assume True is greater than False allows them to be used

Re: Logic problem: need better logic for desired thruth table. (thruth table to logic/boolean operations generator sought/needed)

2015-05-28 Thread Skybuck Flying
be used without requiring branching... so I think my conclusion might be correct. Bye, Skybuck. Skybuck Flying wrote in message news:7b1ef$556792ab$5419aafe$58...@news.ziggo.nl... Ok, problem solved for now, it seems: I used video tutorial method and inverted it for the false case

Re: Feature Request: Reposition Execution

2015-05-14 Thread Skybuck Flying
Steven D'Aprano wrote in message news:5553145b$0$9$c3e8...@news.astraweb.com... On Wednesday 13 May 2015 17:27, Christian Gollwitzer wrote: A clean way to exit your script could be to raise an exception. It should propagate to the toplevel and halt your script. However it is not

Re: Feature Request: Reposition Execution

2015-05-12 Thread Skybuck Flying
Dave Angel wrote in message news:mailman.354.1431345441.12865.python-l...@python.org... On 05/11/2015 07:46 AM, Skybuck Flying wrote: Hello, Sometimes it can be handy to interrupt/reset/reposition a running script. For example something externally goes badly wrong. os.kill

Feature Request: Reposition Execution

2015-05-11 Thread Skybuck Flying
Hello, Sometimes it can be handy to interrupt/reset/reposition a running script. For example something externally goes badly wrong. The script is unaware of this. Current solution would require to have an Abort boolean everywhere. The abort boolean could then be set to True to indicate all

KB 2670838 - The EVIL UPDATE

2015-03-12 Thread Skybuck Flying
KB 2670838 - The EVIL UPDATE This Windows 7 update wasted a lot of my time today. I could not find my own postings in the past... maybe I was unsure in the past... I am still unsure today.. but much more sure than previously. When installing IE11 I suspect this patch also gets installed. This

Direct3D/DirectX interception ?

2015-01-05 Thread Skybuck Flying
Hello, On the topic of Direct3D/DirectX interception ? Is this possible with Python ? If so how to do it ? Can you give example and/or links ? Bye, Skybuck. -- https://mail.python.org/mailman/listinfo/python-list

Re: Why my ; continuator idea is better for debugging too.

2014-12-23 Thread Skybuck Flying
A:=B:=C:=D:=0; With the continuator idea this coding would look as follows: Good single line code: A:=B:=C:=D:=0 Bad multi line code: A:= B:= C:= D:= 0 ^This would not be allowed and lead to error messages. Good multi line code: A:=; B:=; C:=; D:=; 0 ^ This would lead to a good compile.

Why my ; continuator idea is better for debugging too.

2014-12-21 Thread Skybuck Flying
Hello, In the past I wrote about pascal's ; mistake. ; should be used as a continuator. I just made a programming mistake which solidifies/merits my idea: The programming mistake was this: vBattlefieldLosingWarrior := // modified warrior and brain vSimulatorWinningWarrior :=

Re: Python handles globals badly.

2014-12-03 Thread Skybuck Flying
Mark Lawrence wrote in message news:mailman.16534.1417610132.18130.python-l...@python.org... On 03/12/2014 02:27, Skybuck Flying wrote: Excuse is: bad programming style. I don't need snot telling me how to program after 20 years of programming experience. This is so far the only thing

Python handles globals badly.

2014-12-02 Thread Skybuck Flying
Excuse is: bad programming style. I don't need snot telling me how to program after 20 years of programming experience. This is so far the only thing pissing me off in python. Now I have to declare global in front of these variables every where I want to use em:

Re: Python handles globals badly.

2014-12-02 Thread Skybuck Flying
Meanwhile... I modified my code, and added these globals in front of it. It didn't take too long to do. But it did add something like 300 unnecessary lines of code, which is what kinda annoys me. I'd like to keep my code compact. Anyway I double checked to make sure other routines had

Re: Python handles globals badly.

2014-12-02 Thread Skybuck Flying
Some issues I'd like to address to you: 1. Structured programming requires more programming time. 2. Structured programming implies structure which might be less flexible. 3. Python objects require self keyword to be used everywhere, and other akwardness wich leads to more

Recording instruction/data flow for a python script/program.

2014-04-02 Thread Skybuck Flying
Hello, Is there a way for a python script's execution to be capture in an instruction/data flow log ? Since python is an interpreter this should be easy to do ? Such a feature would then allow the script to be played back in some kind of log player for a script or something ? And compare

Python to be replaced by the new language called Cookie !

2014-04-01 Thread Skybuck Flying
April Fools =D Bye, Skybuck =D -- https://mail.python.org/mailman/listinfo/python-list

  1   2   >