Posts
2012
VMware and NTFS storage for vmdk
I face the problem of having vmware disks files (vmdk) on ntfs partition (for sharing them between windows and linux installations).
When I run vmware with this configuration in linux I get an hight CPU usage by ntfs.mount process. Many blogs says that adding mainMem.useNamedFile=FALSE to virtual machine configuration file will fix this issue.
This probably worked only with older vmware versions.
Then I found this.
It says to change the location for snapshot and suspend files to a non ntfs partition. This just works!!
Sublime Text
I’ve created a new category on this blog: My Choices. Here I’ll talk about software, tech.. anything I use and I think It’s worth a try. I don’t want to give a full description or review but just few tips, pros and cons.
Let’s start with a text editor/IDE.
Sublime Text 2 #
I’m always looking for a good text editor that can help me working on simple text files but also on small projects (typically javascript or python). I loved vim (ok, vim is a religion, non an editor ;-) and I continue using it but when I want something of user-friendly it’s not really a good choice.
Automattic’s Worldwide WP 5k
So, here we are. Me and my wife went for the Automattic’s Worldwide WP 5k 2012 from lake Maggiore in northern Italy_!!_
Here is what we have seen at the end of the 5 kilometers (then we continued for a while, also because we have to came back home :-P )
And here is the GPS track!
Laveno Cerro #
San Clemente
Breve escursione a San Clemente.
Per variare un po’ il solito percorso decido di salire dalla cava di Caravate. Prima faccio però tappa alla chiesetta dei frati che è lungo la strada, appena prima dell’inizio del sentiero.
Appena lasciata la chiesetta mi avventuro nel bosco. Non ricordo bene la strada ma fortunatamente non ci sono diramazioni particolari. La salita è inizialmente facile ma poi abbastanza impegnativa, soprattutto per via del fondo ghiaioso con molti sassi smossi.
Scendendo alcune volte dalla sella riesco ad arrivare fino alla Balconata Picuz dalla quale si gode davvero di una bella vista!!
Silverlight datagrid RowDetails Scrollbar Issue
While developing a customer application in Silverlight 4, we find a bug in the standard datagrid control of the framework.
If you have a custom datagrid RowDetailsTemplate and this is opened and closed by a button click, you can see that, when opening the last visible row in your datagrid, the RowDetails remains hidden, or partially hidden because the grid does not scroll automatically down to fully reveal it.
The only work-around I’ve found to avoid this misbehavior is to add the RowDetailsVisibilityChanged event to the grid and do the following:
double _rowheight = 0;
private void MyGrid_RowDetailsVisibilityChanged(object sender, DataGridRowDetailsEventArgs e)
{
if (e.Row.DetailsVisibility == System.Windows.Visibility.Visible)
{
_rowheight = e.Row.ActualHeight;
e.Row.Height = e.DetailsElement.DesiredSize.Height + _rowheight;
MyGrid.Dispatcher.BeginInvoke(delegate
{
MyGrid.Focus();
MyGrid.UpdateLayout();
MyGrid.SelectedItem = e.Row.DataContext;
MyGrid.CurrentColumn = SettingGrid.Columns[0];
MyGrid.ScrollIntoView(MyGrid.SelectedItem, MyGrid.Columns[0]);
});
}
else
{
e.Row.Height = _rowheight;
MyGrid.Dispatcher.BeginInvoke(delegate
{
MyGrid.Focus();
MyGrid.UpdateLayout();
});
}
}
As you can see the trick is to expand the grid row so that its height is equals to the height of the row details. Doing so you can than call the method ScrollIntoView to reveal the whole row details. When the row details is closed, you have to restore the original row height.
Five stars madness
Today I was looking, like almost every day, to iTunes top 25 apps when I found a nice free app with a great 5 star score and more than ten thousands reviews. I decided it was worth a try and download it immediately.
When the download finished I started it and, in a few minutes, I found that it was not as good as expected, rather it had many limitations caused by the fact that it was the free app and not the paid one.
It really sounded very strange to me that so many people rated it 5 stars but suddenly I discovered the reason for such behavior: the app give you some free content as gift if you rate it 5 stars!! All became clear.