std::to_string fixed in Visual Studio 2012
Among many other fixes coming in the new version of Visual Studio, is a fix to std::to_string (introduced in Visual Studio 2010) providing the full range of numerical types. Currently using the function with any numerical type other than long long or long double or unsigned long long yields compiler error C2668 – ambiguous call to overloaded function.
Whilst annoying, there’s a trivial workaround for Visual Studio 2010 to still use this handy function without resorting to boost::lexical_cast by static_casting to one of the three currently provided overloads. As of VS 2012, such massaging of types is no longer required. 🙂
Minor Vista Bug
Has anyone else noticed this strange GUI bug? When you goto the Notification Area property page you are met with the following screen.
Now if you opt to not show the network icon, this happens:
For some reason, the power icon is also removed even if it is checked. If you actually apply this, only the network icon is actually removed, its just strange Microsoft have not found and fixed this yet given it is a trivial GUI issue.
Ubuntu 7.10 – Partial Fix – Getting Splash screens working
Merry Christmas and Happy New Year! 🙂
Continuing with my posts about Gutsy Gibbon (Ubuntu 7.10) I thought I would describe how I fixed another of the problems I previously blogged about : corrupt splash screens.
For some reason, the default resolution of the splash screens in Gutsy Gibbon is set to 1280×1024. Anyone running a system not capable of supporting this will be met with a blank screen and a protracted load time. This is a known issue but luckily there is a simple fix.
The resolution is found in /etc/usplash.conf file and as per default is set to:
xres=1280
yres=1024
Change it to the following.
xres=1024
yres=786
Then, run the following command to rebuild the required boot binaries.
sudo update-initramfs -u -k `uname -r`
This has fixed the problem on my laptop (Fujitsu Siemens Amilo a1650 with x200 m ATi gpu and 1280×800 screen.) This simple tweak has fixed the problem for people with a variety of hardware – check the official bug entry for more information.