public class ParamRuleI co? Działa.
{
public string Name;
public SemanticDesc SemanticDesc;
public ParamRule(string name, SemanticDesc semanticDesc)
{
Name = name;
SemanticDesc = semanticDesc;
}
}
wtorek, 1 grudnia 2009
Test Wiritera i VSPaste
Online RegEx and JSON tools
Here's an online regular expressions editor: RegExr
And here's an online JSON formatter: JSON Formatter
And here's an online JSON formatter: JSON Formatter
niedziela, 22 listopada 2009
Perl, Ruby, Python Cookbook
There are cookbooks for almost any language here: PLEAC - Cookbooks
For example:
Ruby Cookbook
Python Cookbook
Perl Cookbook
C++ Cookbook
The Python Tutorial - often more helpful than library reference et. al. (i.e. Chapter 7: Input and Output).
For example:
Ruby Cookbook
Python Cookbook
Perl Cookbook
C++ Cookbook
The Python Tutorial - often more helpful than library reference et. al. (i.e. Chapter 7: Input and Output).
sobota, 21 listopada 2009
Mozilla plugins refresh and stuff
To verify that Mozilla is aware of new .xpt files, you can look in the generated file, xpti.dat, where type libraries are listed. If you need to, you can call navigator.plugins.refresh() to find new XPT files and plug-in software.
Plug-in developers might find it useful for debugging purposes to turn off the exception catching mechanism currently implemented in Mozilla on Windows. To turn off Windows exception handling, add the following line into your prefs.js file: user_pref("plugin.dont_try_safe_calls", true);
Plug-in developers might find it useful for debugging purposes to turn off the exception catching mechanism currently implemented in Mozilla on Windows. To turn off Windows exception handling, add the following line into your prefs.js file: user_pref("plugin.dont_try_safe_calls", true);
wtorek, 17 listopada 2009
Mozilla Source Code Directory Structure
Dirctory structure: Mozilla Source Code Directory Structure
Another: Source code directories overview
Interesting:
browser - Firefox
xulrunner - xulrunner
widget - a cross-platform API, with implementations on each platform, for dealing with operating system/environment widgets, i.e., code related to creation and handling of windows, popups, and other native widgets and to converting the system's messages related to painting and events into the messages used by other parts of Mozilla (e.g. view/ and content/, the latter of which converts many of the messages to yet another API, the DOM event API).
gfx - contains interfaces that abstract the capabilities of platform specific graphics toolkits, along with implementations on various platforms. These interfaces provide methods for things like drawing images, text, and basic shapes. It also contains basic data structures such as points and rectangles used here and in other parts of Mozilla.
It is also the home of the new graphics architecture based on cairo (via a C++ wrapper called thebes). See NewGFXAPIs and GFXEvolution.
Not so interesting:
view - view manager. Contains cross-platform code used for painting, scrolling, event handling, z-ordering, and opacity. Soon to become obsolete, gradually.
docshell - Implementation of the docshell, the main object managing things related to a document window. Each frame has its own docshell. Contains methods for loading URIs, managing URI content listeners, etc. It is the outermost layer of the embedding API used to embed a Gecko browser into an application.
webshell - Mostly obsolete, and being merged into docshell/.
IRC: irc.mozilla.org, channel #developers
Another: Source code directories overview
Interesting:
browser - Firefox
xulrunner - xulrunner
widget - a cross-platform API, with implementations on each platform, for dealing with operating system/environment widgets, i.e., code related to creation and handling of windows, popups, and other native widgets and to converting the system's messages related to painting and events into the messages used by other parts of Mozilla (e.g. view/ and content/, the latter of which converts many of the messages to yet another API, the DOM event API).
gfx - contains interfaces that abstract the capabilities of platform specific graphics toolkits, along with implementations on various platforms. These interfaces provide methods for things like drawing images, text, and basic shapes. It also contains basic data structures such as points and rectangles used here and in other parts of Mozilla.
It is also the home of the new graphics architecture based on cairo (via a C++ wrapper called thebes). See NewGFXAPIs and GFXEvolution.
Not so interesting:
view - view manager. Contains cross-platform code used for painting, scrolling, event handling, z-ordering, and opacity. Soon to become obsolete, gradually.
docshell - Implementation of the docshell, the main object managing things related to a document window. Each frame has its own docshell. Contains methods for loading URIs, managing URI content listeners, etc. It is the outermost layer of the embedding API used to embed a Gecko browser into an application.
webshell - Mostly obsolete, and being merged into docshell/.
IRC: irc.mozilla.org, channel #developers
poniedziałek, 16 listopada 2009
How to: Set Breakpoints on a Memory Allocation Number
When you get this:Just set _crtBreakAlloc to the allocation number (130 in the example). There are three possibilities:To enable memory leak detection use this:_CRTDBG_MAP_ALLOC makes dumps more readable. With it:Without it:MSDN Article: How to: Set Breakpoints on a Memory Allocation Number
MSDN Article: Memory Leak Detection Enabling
MSDN Article: Memory Leak Detection Enabling
niedziela, 15 listopada 2009
Syntax highlighter test
Syntax highlighter test: Worked!
This is an example of my GreaseMonkey script BloggerHighlightAid.user.js in connection with SyntaxHighlighter. My script interprets every <blockquote/> element in the post as a C++ listing - very handy. For it to work properly one must enable “Show HTML literally”and "Convert newlines to <br />" in post options.
This is an example of my GreaseMonkey script BloggerHighlightAid.user.js in connection with SyntaxHighlighter. My script interprets every <blockquote/> element in the post as a C++ listing - very handy. For it to work properly one must enable “Show HTML literally”and "Convert newlines to <br />" in post options.
Subskrybuj:
Posty (Atom)