Category Archives: Coding

Using GeckoFX instead of .NET WebBrowser Control

GeckoFX is a .NET control, that works similarly to “System.Windows.Forms.WebBrowser” Control, while being cross platform, and offering much more control, it is in my opinion, a great replacement for the “System.Windows.Forms.WebBrowser”.

GeckoFX is based on the same engine as Firefox, the Mozilla Gecko.

This is an example on how to use it in Visual Studio.

This is a great replacement for Forms.WebBrowser control.

Continue reading Using GeckoFX instead of .NET WebBrowser Control

PHP StartsWith and EndsWith functions with optional case senstive

It seems that the default PHP library doesn’t have an implementation for functions that tests for the existence of a sub string at the start or end of a larger string, so here they are:

Those functions accept an optional 3rd argument to choose whether to match the string with case sensitive or case insensitive comparison.

By default, the matching will be case sensitive.

Continue reading PHP StartsWith and EndsWith functions with optional case senstive

GDB step into all lines to get full application flow

While debugging one application that I was working with, I needed to have full application flow, I want to get a list of all functions calls, and I couldn’t find an automated way to do that within GDB itself, or within any other IDE like eclipse or netbeans or codeblocks. Continue reading GDB step into all lines to get full application flow