August 9th, 2013, 04:15 AM
All you have to do is to use modulo operator. If you don't know what modulo operator is, see wiki http://en.wikipedia.org/wiki/Modulo_operation or simple example here:...
August 8th, 2013, 08:13 AM
Right, one worker + queuing messages = that's all what you need!
August 8th, 2013, 08:06 AM
Are you sure that class="MagicZoom" should be in a href tag? Maybe it should be in other place like: img, or other div...
August 8th, 2013, 07:58 AM
DataMiser is right. Incorrect subdir could be a problem issue. If it fails use absolute path, like below:
foreach (string file in Directory.GetFiles(@"c:\data\", "*.adf")) ;
August 8th, 2013, 07:49 AM
If you are trying to process image in the future try to use OpenCV library, http://opencv.org/.
It's easy and fun. Don't do it on your own.
August 8th, 2013, 07:37 AM
Take a look at boost::asio::streambuf site: http://www.boost.org/doc/libs/1_50_0/doc/html/boost_asio/reference/streambuf.html
Writing directly from an streambuf to a socket:
August 8th, 2013, 04:44 AM
almost, but notice, that you are using post incrementation here: while(*(ar+ret++));
so your function len("abc") returns 4. Instead of you could try this:
int len(const char ar)...
August 7th, 2013, 01:46 PM
I think you could study this article: http://www.antedes.com/blog/csharp/percentage-match-between-two-strings-levenshtein-distance