November 26th, 2007
“Unexpected Error 0×8ffe2740 Occurred” – this message appeared today on my PC when I was trying to start IIS. A while of “googling” revealed that this is rather normal behavior of the server
According to http://support.microsoft.com/kb/816944 this error occurs when some other application uses port 80 (default for a web server).
Instead of expressive error message they create KB article with explanations
November 17th, 2007
Few days ago I found very interesting piece of code in polish usenet. The code is correct and it works fine but it looks like... yes, like vomit. C++ programmers, can I have a request? Please, do not move features from other languages that we can live without, to the C++.
C++:
-
void increment(int &i)
-
{
-
++i;
-
}
-
-
static void test1()
-
{
-
boost::function<void (int &)> add1=::increment;
-
std::vector<std::vector<int>> vec(10, std::vector<int>(10, 2010));
-
std::for_each(vec.begin(), vec.end(), boost::lambda::bind(boost::lambda::ll::for_each(),
-
boost::lambda::bind(boost::mem_fn((std::vector<int>::iterator(std::vector<int>::*)())
-
&std::vector<int>::begin), boost::lambda::_1),
-
boost::lambda::bind(boost::mem_fn((std::vector<int>::iterator(std::vector<int>::*)())
-
&std::vector<int>::end), boost::lambda::_1),
-
add1));
-
std::for_each(vec.begin(), vec.end(), boost::lambda::bind(boost::lambda::ll::copy(),
-
boost::lambda::bind(boost::mem_fn((std::vector<int>::iterator(std::vector<int>::*)())
-
&std::vector<int>::begin), boost::lambda::_1),
-
boost::lambda::bind(boost::mem_fn((std::vector<int>::iterator(std::vector<int>::*)())
-
&std::vector<int>::end), boost::lambda::_1),
-
std::ostream_iterator<int>(std::cout, " ")));
-
std::cin.get();
-
}