Quantcast
Channel: Alex Pinsker
Browsing index pages (27 articles)

Handling PubSub updates from multiple clients in pub-sub scenario with...

A typical pub-sub scenario is subscribing to handle requests from multiple clients and then handling client updates in a buffered way. Let's see how this could be done using Reactive Extensions. To...

View Article


Image may be NSFW.
Clik here to view.

Compiling QuantLib with Visual Studio 2017 and boost 1.68

This post is a self-reminder.Once QuantLib binaries are created as described below - you should reference .NET assembly (NQuantLib.dll) and have native .Dll (NQuantLibc.dll) to be added as a Context...

View Article


How to prevent collision of Visual Assist and ReSharper in Visual Studio

VassistX→Options→Projects→File Handling→Extensions to ignore: .ctc;.config;.cs;.config;.xml;

View Article

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// prevent a finalizable...

View Article

Get user name in SQL

… without domain:SELECT PARSENAME(REPLACE(ORIGINAL_LOGIN(), '\', '.'), 1)

View Article


Currencies having stocks quoted in cents

I think this is exhaustive list for now:BWpBotswana PulaGBpBritish PoundILsIsraeli ShekelKWdKuwaiti DinarMWkMalawian KwachaSZlSwaziland LilangeniZArSouth African Rand

View Article

“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 programDirectory has no access for user which is specified in runasYou shared your folder and that reset user rights on the...

View Article

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...

View Article


Get current username in SQL

SELECT PARSENAME(REPLACE(ORIGINAL_LOGIN(), '\', '.'), 1)

View Article


What is a size of DateTime type in C#?

What is a size of DateTime type in C#? - A trivial question, unexcitingly facing few obstacles. Self-explanatory code below describes how you can't get it and how you can (and yes, it's 8 bytes): using...

View Article

Google Desktop Search as intranet search tool

Here is list of GDS proxies that could be used:http://www.asabox.com/goolag/http://sourceforge.net/projects/soogle/http://www.projectcomputing.com/resources/desktopProxy/(left as comment on my former...

View Article

Dynamic casting in c#

var typesSubset = new[] { typeof(decimal), typeof(Int32), typeof(Int64) };Type someDynamicType = typeof (int);int someDynamicValue = 777;if (typesSubset.Any(t => t == someDynamicType)){    object...

View Article

Pass xml to stored procedure

In C#:    1 // create XML string    2 var dataToPass = newStringBuilder("<RowsOfNumbers>");    3 dataToPass.AppendFormat("<id>{0}</id>", 1);    4...

View Article


Workforce turnover around me (LinkedIn stats)

Following to LinkedIn data 57 out of my 382 contacts changed jobs in 2010. This is 15%. Probably actual rate is a bit higher since in some cases this info may be not updated in LinkedIn.

View Article

Subset of TED lectures on health

(with bits of practical information)http://www.ted.com/talks/gregory_petsko_on_the_coming_neurological_epidemic.html– drink coffee, no strikes/box, no avian flue, low pressure, 3 grams of omega-three a...

View Article


Image may be NSFW.
Clik here to view.

Fallen giant

Few photo subsets from this blog: “Heroic deeds live in eternity” – are they? 

View Article

Free eBook’s from Red Gate

Please visit here for the full list with descriptions. Below some links:Mastering ProfilingBest of SQL Server centralDefensive Database ProgrammingThe SysAdmin handbook.NET performance and...

View Article


China - The Mother of All Black Swans - By Vitaliy Katsenelson

Article here.

View Article

Military segway

View Article

Image may be NSFW.
Clik here to view.

16 years of survival in extreme conditions - in 43 sentences

Below is my (partial) translation of a short story written by Varlam Tihonovich Shalamov who was prisoner of Gulag camps from 1937 till 1953. It’s called “What I have seen and understood in jail”. 16...

View Article
Browsing index pages (27 articles)


Latest Images