Roman's blog
Wednesday, September 12, 2012
Opera stored password. No additional software way.
Then run Opera Dragonfly, Tools -> Advanced -> Opera Dragonfly
Click on the password textbox.
On the Dragonfly, select Properties panel at the right hand side, and scroll down to value property. The value contains what you have been looked for.
Monday, August 1, 2011
Linq and RowDataBound
I used to get values of databound row by casting e.Row.DataItem to DataRowView.
var row = (DataRowView)e.Row.DataItem;
And get values using something like this
var myValue = DataRowView["ExampleColumnName"];
Btw, it's better to cast to typed datarow, in case, typed datatable is used as datasource.
var row = (ExampleDataSet.ExampledataRow)((DataRowView) e.Row.DataItem).Row;
var myValue = row.ExampleColumnName;
But recently, i encountered obstacle to obtain values, when linq query acts as datasource. Then e.Row.DataItem is anonymous type, and no way to cast it to something reasonable.
Hopefully, the old method still exists, and it's working fine with linq:
var myValue = DataBinder.Eval(e.Row.DataItem, "ExampleColumnName");
Sunday, May 22, 2011
Прогулка по Кракову
Даже после ночных пьяных криков студентов мы не пожалели, что остановились в хостеле. Чисто, аккуратно, необходимый минимум (душ, холодильник, интернет) есть. Но не для того мы приехали сюда, чтобы сидеть в номере: утренний город манит на прогулку.
Saturday, May 21, 2011
Минск - Краков
Подъем в 5:00.
Старт в 6:30.
Смотреть на карте от гугл
Малочисленные машины на брестской трассе и прохлада утра навевали на сон. Диана и Тёма не стали с ним бороться и почти сразу сдались в его плен. У меня выбора не было, и оставалось любоваться желтыми полями рапса.
Saturday, January 2, 2010
Login failed for user 'SomeUser'. (Microsoft SQL Server, Error: 18456)
To solve the problem right-click on SQL Server Management Studio shortcut and select 'Run as Administrator' and then connect to database.
You can add your windows login under Security/Logins to run the SQL Server Management Studio without 'Run as Administrator' option.
Friday, July 11, 2008
Can not attach database in windows vista. 3906 "Failed to Update database 'database name' because the database is read-only."
3906 "Failed to Update database 'database name' because the database is read-only."
The problem occurs due to new security system in vista. The solution is:
right-click on SQL Server Mangement Studio shortcut and select Run as Administrator
Wednesday, June 11, 2008
How to change user in Team Explorer
To do it, you should run Stored User Names and Passwords dialog box, to do so, either run command rundll32 keymgr.dll,KRShowKeyMgr or open it from control panel
Select your server and press Change button. Type new username in popup window.
But if you try to change a file in VS you'll get error "TF14091:You cannot perform this operation on workspace workspace;server\username because you are not the owner of the workspace."
To fix the error, you should remove old workspace and add new.
(Note, you should check-in your pending changes to avoid data loss).
1. Run Visual Studio 2008 Command Prompt (Start->All Programs->Microsoft Visual Studio 2008->Visual Studio Tools->Visual Studio 2008 Command Prompt)
2. Type tf workspace /delete yourcomputername /server:servername
If you receive an error, you can try to search for 'VersionControl.config' file and remove it and then try to do the mentioned steps again.
3. Type tf workspace /new /server:servername and fill fields in popup window
Last thing you should do is to open your project, right-click on solution and select Get Latest Version command.