Category Archives: programming

[Salesforce.com] Regex too complicated

Working with the regular expressions in Salesforce.com is same as in the Java. But the regex have restrictions to its complexity. For example, this regex throws compilation error:

If you have to use multiple times the symbol * in your regex, the Salesforce.com evaluates your pattern as too complicated. Workaround The workaround is to… Read More »

Docker can’t connect to boot2docker (OSX)

When you are trying to connect docker to boot2docker on OSX, you probably got this error message:

Solution to fix this error: Go to the Virtual Box -> Preferences -> Network -> Host-only networks Delete the host only networks and create one new. Then open the command line run this commands: Warning: The boot2docker… Read More »

How to convert hexadecimal number to IP address in C++

When you need to convert hexadecimal number in C++ like 0DF52286 to standard IP address format like 13.245.34.134 you can use this code:

The method takes one argument which is the IP address in hexadecimal format.