Whatsapp VOIP feature
Source:Open Clip Art Using Under Public Domain Attribution
Whatsapp started to roll out their VOIP feature to a group of selected users for a trial. I and my wife are one of them. We tried that today. the voice are quite clear, I think that is better than Facebook VOIP. We started to use less phone calls, more VOIP calls.
Note that, we are still using 3G, I think if we are using 4G networks, that will be much better.
Refresh Datagrid in WPF
There is no such things for DataGrid.DataBinding() in Datagrid, WPF, the data grid should update itself if any items in the collection is changed. However, I found if the data source is edited by other windows, it won't refresh the data grid.
Well, you can use DataGrid.Items.Refresh(), but sometime, I got an exception about not allow editItem, something like that.
I found the best way is setting the item source to null and set item source to be bounded the collection again, like this:
Code
public void DisplayList(IList< ISchedule> lst) | |
{ | |
lstItems.ItemsSource = null; | |
lstItems.ItemsSource = lst; | |
//lstItems.Items.Refresh(); | |
} |
The newer i3 is faster than an older generation i5
Source:Open Clip Art Using Under Public Domain Attribution
Yesterday, I setup a new Core i3 PC with 4GB RAM for a client. That is not a good specification for a developer use. However, I found it is faster than the most of Core i5 PCs in my office, they are just one generation older.
How to set whether display error in php
By the default, whether the php will display error message is controlled by php.ini. If you are using a shared host, you cannot change it. So, you have to add this line of code on the first line of your php file:
PHP
ini_set('display_errors','on'); |
That is to display the error message , To hide all error message, just use this:
PHP
ini_set('display_errors','off'); |
Quick Fix for Android Studio - Alt+Enter
This is the first keyboard shortcut you need to learn if you use Android Studio. This is ALT+Enter. It opens to Quick Fix Menu, which has the suggestions about fixing the errors in the current line of code.