VassistX→Options→Projects→File Handling→Extensions to ignore:
.ctc;.config;.cs;.config;.xml;
Monday, December 24, 2012
How to prevent collision of Visual Assist and ReSharper in Visual Studio
Monday, May 07, 2012
GC KeepAlive method–what it really does
Quite useful, I was missing this corner..
Below is quote from documentation as it is provided by code author.
// This method DOES NOT DO ANYTHING in and of itself. It's used to |
Sunday, April 08, 2012
Currencies having stocks quoted in cents
I think this is exhaustive list for now:
BWp | Botswana Pula |
GBp | British Pound |
ILs | Israeli Shekel |
KWd | Kuwaiti Dinar |
MWk | Malawian Kwacha |
SZl | Swaziland Lilangeni |
ZAr | South African Rand |
“267: The directory name is invalid” error when running via runas command
Should be one of:
- User Access Control settings prevent you from executing a program
- Directory has no access for user which is specified in runas
- You shared your folder and that reset user rights on the folder –
go to Properties->Security and add runas user..
Monday, January 02, 2012
SQL–how to find nth row / nth order element
Example below is self-explanatory – you should assign rank by desirable criteria and then just group by your categories (product id and name is sample below), selecting only entries of certain rank. In sample below you would select all entries with second biggest ID per category.
CREATE TABLE #test ( id int, ProductName VARCHAR(25) ) insert into #test select 1, 'Apple' union all select 2, 'Apple' union all select 5, 'Apple' union all select 3, 'Orange' union all select 4, 'Orange' union all select 10, 'Orange'
SELECT * FROM #test SELECT maxID FROM ( SELECT MAX(id) AS maxID, ProductName AS nn, RANK() OVER (PARTITION BY ProductName ORDER BY id DESC) AS MyRank FROM #test GROUP BY id, ProductName ) tmp WHERE tmp.MyRank = 2
Subscribe to:
Posts (Atom)