How to debug RED code? [closed] - debugging

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
What is the preferred way to debug the RED prog lang code? Is there a RED debugger?

There's no debugger AFAIK, but there are functions that can help you with debugging. Take a look at these two articles, they should help you:
https://github.com/red/red/wiki/Debugging
https://github.com/red/red/wiki/How-to-Debug:-A-use-case-by-#DocKimbel
Basically you should use inbuilt functions like probe, ??, dump4, stack/dump or print-symbol.
You can also turn various debugging info with system/preprocessor/debug?: on, system/view/debug?: on and system/reactivity/debug?: on.

Related

Is there a way to programmatically avoid EA trading under major FOREX news? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
May I know is there a way to programmatically detect major FOREX news and avoid trading in those time frame?
You need Forexfactory news indicator, "FFCal", that reads data from the website and returns true/false depending on time in minutes before/after major/mid/minor news events. you can download it on fxfactory website, use is rather simple
int result = (int)iCustom(Symbol(),0,"FFCal", (parameters),0,0);
Oh sure, sir, it is!
Let me share an example of such a fully automated / scripted approach:

What's the difference between methods and messages in Ruby? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
What are the "under the hood" differences? What are the practical differences?
Is there any difference from a users perspective?
I know you could use def to define a method, but could you define a message?
When you send a message to an object, the object will (usually) respond by executing a method with the same name as that message.
You cannot define messages. You just send them.

AVISaveOptions without AVIStream [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am coding a program which exports AVI files into directories, is it possible to get an AVISaveOptions dialog without having access to an avistream? The AVICOMPRESSOPTIONS already has all the data, doesn't it? I am not able to create a stream using AVICreateStream because I do not know its parameter and the documentation does not explain them.
AVISaveOptions API passes call to ICCompressorChoose and the API looks up ICM codec from the stream you provide as an argument. This is why streams are required input. You need ICCompressorChoose instead if you don't have [yet] a stream.

What is the difference between Ntxxx and ZWxxx? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I tried to find the usage of NtqueryDirectoryFile() function.
http://msdn.microsoft.com/en-us/library/windows/hardware/ff556633%28v=vs.85%29.aspx
I refered the above link for this. But, They mentioned about Zwxxx (). I couldn't understand Ntxx and ZWxxx. Can anyone explain about this.
Basically Zw functions are equivalent of Nt functions except they don't do security checks, so are used inside kernel mode only, to avoid the performance penalty.
You can only call Nt functions from user mode, through ntdll.dll. As Michael pointed out Zw functions are just mnemonics to Nt counterparts in user mode.
#Adriano provided a nice link: http://msdn.microsoft.com/en-us/library/windows/hardware/ff565438(v=vs.85).aspx

The best way to learn Ajax [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
My question is simple, which is the most logical way to learn to handle the concepts of ajax, and that time should be spent on each phase of this new model.
Simplest thing of learning something, is doing something.
First of all, you need to understand the fundametals.. what is AJAX, what was before AJAX and what exact issues does it solve.
After you might consider to learn jQuery AJAX API (http://api.jquery.com/category/ajax/) for client side and PHP (or any other language, that is easy to start) as server. And do some small tasks - as one of AJAX kata, it could be implementation of 'Google word suggest'.
Given you have some web development experience, I suggest the following book - it is really excellent in my opinion:
http://www.amazon.com/Ajax-Definitive-Anthony-Holdener-III/dp/0596528388/ref=pd_sim_b_3

Resources