April 01, 2013

KMPlayer Access is denied


Problem:
- KMPlayer Error: System Error. Code:5.
- KMPlayer Error: Access is denied
- The KMPlayer have problem with windows 8 ...
- When Windows 8 goes to sleep my kmplayer have problem to access ...


Solution:
You need to have an administrator previllage for your current user on windows 8 ... then follow my steps and continue
- Press Windows Key + Q
- Type command
- Right Click on Command Prompt Tile
- Select Run as administrator from bottom ribbon
- type this command in the black screen and press enter
net user administrator /active:yes

March 26, 2013

Windows 8 snapping not working

Problems:
- My windows 8 can't split screen to two parts ...
- Windows 8 can automatic split to two parts (20% - 80%)
- Windows 8 Snap on desktop not working
- I'm trying Windows 8 and I want to test the new snap feature where you can have two metro apps side-by-side but ...
- How to Force Enable Snap Feature

Solutions:

1- Change you windows resolution to 1344 and upper (like 1360x768 or 1366x768)
2- Create a DWORD key AlwaysEnableLSSnapping with 1 in under location with RegEdit
HKEY_CURRENT_USER \ Software \ Microsoft \ Windows \ CurrentVersion \ ImmersiveShell \ AppPositioner

March 05, 2013

Adobe Photoshop CS6 blink/glitch


Errors: 
- Why Photoshop CS6 turn on/off ...
- Why Photoshop CS6 blink on windows 8 ...
- I can't work with Photoshop CS6 on Windows 8 ... has glitch link old TV ...

Solution:
- Edit > Preferences > Performances > Advanced Settings ... > Change to Basic
- Restart the Photoshop
It's done but this is not a solution and it's help to avoid of problem :-(

References:
[1] http://forums.adobe.com/message/4940042

February 05, 2013

Data binding ... not supported


Exception: 
Message: Data binding directly to a store query (DbSet, DbQuery, DbSqlQuery) is not supported. Instead populate a DbSet with data, for example by calling Load on the DbSet, and then bind to local data. For WPF bind to DbSet.Local. For WinForms bind to DbSet.Local.ToBindingList().
Source: EntityFramework

Cause:
- If you want to use of Visual Studio 2012 instead of 2010
- If your project used of .Net Framework 4.0 and below
- If you upgrade Entity Framework from EF4.0 to EF4.1 or EF5.0 (CTP 5.0)
- If you Upgrade ADO .NET Entity Data Model and generate it again ;-)
- If your Model used of DbSet/DbSet<T> Instead of ObjectSet ***
Ok, you in trouble like me ;-)

Problem Case:
This case is good in VS2010 with EF4.0 with Old Model which used of ObjectSet
XYZEntities xyz = new XYZEntities();
this.gridControl1.ItemsSource = xyz.Table1;

Solution Case:
- Upgrade your project to .Net 4.5
- Use of Local Property ;-)
XYZEntities xyz = new XYZEntities();
xyz.Table.ToList();
this.gridControl1.ItemsSource = xyz.Table1.Local;



References:
http://stackoverflow.com/questions/8263405/how-to-convert-a-dbset-to-an-observablecollection-in-wpf
http://msdn.microsoft.com/en-us/data/jj574514.aspx
http://stackoverflow.com/questions/4843391/entity-framework-code-first-dbset-local-not-updating-in-ui