Wednesday

poznavatelno

шаблон сайта, проданный 2.5k раз за год, принесший $50k создателю Познавательно - вот этот (http://bit.ly/rttpQP) шаблон сайта принес авторам за год 50 килобаксов (при цене $20).
Здорово, что дизайнеры могут зарабатывать так же, как и шароварщики - ничего не делая.

Thursday

online lesson videos from stanford


Artificial intelligence (http://ai-class.org).

Databases (http://db-class.org)

Machine Learning (http://ml-class.org).




Monday

linq concatenate rows

we can use Aggregate methods to concatenate fields in rows as follow:

var profiles = (from b in invoiceContext.bills
join p in invoiceContext.PaymentProfiles on 1 equals 1
where b.ProfileID == p.Id || b.ProfileType == p.Id
select p.Name).ToList();

if (profiles.Count() > 0)
{
BillingMethodLabel.Text = profiles.Aggregate((current, next) => current + ", " + next);
}


Friday

hgignore visual studio example


# use glob syntax.
syntax: glob

# c-sharp
/bin
/obj
*.user
*.suo
_ReSharper.*
*.sln.cache

bin/**
bin/Debug/**
obj/*

linq join on multiple fields by OR sample

Linq doesn't allow to do on t1.field1=t2.field1 or t1.field2=t2.field2
therefor it can be done by using OR in where statement:
     
var profiles = (from b in invoiceContext.bills
join p in invoiceContext.PaymentProfiles on 1 equals 1
where b.ProfileID == p.Id || b.ProfileType == p.Id
select p.Name).ToList();

imagemagic add text to image

rem different types of text annotations on existing images rem cyan yellow orange gold rem -gravity SouthWest rem draw text and anno...