Wednesday, September 30, 2009

Code Tools

http://xunit.codeplex.comhttp://xunit.codeplex.com/Wiki/View.aspx?title=HowToUsehttp://code.google.com/p/moqhttp://code.google.com/p/moq/wiki/QuickStarthttp://ninject....

Tuesday, September 29, 2009

Краткая памятка по битовым операциям

Setting a bit Use the bitwise OR operator (|) to set a bit. number |= 1 << x; That will set bit x. Clearing a bit Use the bitwise AND operator (&) to clear a bit. number &= ~(1 << x); That will clear bit x. You must invert the bit string with the bitwise NOT operator (~), then AND it. Toggling a bit The XOR operator (^) can be used to toggle a bit. number ^= 1 << x; That will toggle bit x. Checking a bit You didn't ask for this but I might as well add it. To check a bit, AND it with the bit you want to...

VOIP SDK

www.voipdevkit.comVOIP приложение за 10 мин.www.voipdevkit.com/docs/vdk....

How to count bits to save a number

template struct NBits { enum { value = NBits<(n >> 1)>::value + 1 }; }; template<> struct NBits<0> { enum { value = 0 };...

Thursday, September 24, 2009

Singletons in C#

The singleton pattern is one of the best-known patterns in software engineering. Essentially, a singleton is a class which only allows a single instance of itself to be created, and usually gives simple access to that instance. Most commonly, singletons don't allow any parameters to be specified when creating the instance - as otherwise a second request for an instance but with a different parameter could be problematic! (If the same instance should be accessed for all requests with the same parameter, the factory pattern is more appropriate.)...

Wednesday, September 23, 2009

Признаки равенства, сравнения и их отличия

IEquatable:This interface is implemented by types whose values can be equated (for example, the numeric and string classes). A value type or class implements the Equals method to create a type-specific method suitable for determining equality of instances.The IComparable<T> interface defines the CompareTo method, which determines the sort order of instances of the implementing type. The IEquatable<T> interface defines the Equals method, which determines the equality of instances of the implementing type.bool Equals(T other)IComparable:This...

Friday, September 18, 2009

Миф 20/80

Стоимость дискового пространстваwww.littletechshoppe.com/ns1625/winchest.htmlСтатья by Jo...

Thursday, September 17, 2009

Source code reading

www.sdtimes.com/link/33...

Microsoft AJAX CDN

weblogs.asp.net/scottgu/archive/2009/09/15/announcing-the-microsoft-ajax-cdn.a...

Builder

www.finalbuilder.com/finalbuilder.a...

Assigning pointer to pointer in Objective-C

Pointer variable is a variable itself, so it has an address. So &str1 results in the address of the pointer variable, and str1 is an expression that results in whatever the pointer variable is holding - the address of the object it's pointing to. Assume that: the object holding the NSString "one" is at address 0x00000100the object holding the NSString "two" is at address 0x00000200 Then your pointers might look something like this: At initialization: str10xbfffd3c8 +---------------+ | | | 0x00000100 ...

Static variables in Objective-C

// MyClass.h@interface MyClass : NSObject {}+ (NSString*)str;+ (void)setStr:(NSString*)newStr;@end// MyClass.m#import "MyClass.h"static NSString* str;@implementation MyClass+ (NSString*)str { return str;}+ (void)setStr:(NSString*)newStr { if (str != newStr) { [str release]; str = [newStr copy]; }}@endДополнительная ссылка на обсуждение:http://discussions.apple.com/thread.jspa?threadID=1592519Чтобы сделать доступным эту переменную за пределами m файла,следует объявить переменную как extern:http://www.omnigroup.com/mailman/archive/macosx...

Singleton in Objective-C

Mac recommendations to create singlton:static MyGizmoClass *sharedGizmoManager = nil;+ (MyGizmoClass*)sharedManager{@synchronized(self) { if (sharedGizmoManager == nil) { [[self alloc] init]; // assignment not done here }}return sharedGizmoManager;}+ (id)allocWithZone:(NSZone *)zone{@synchronized(self) { if (sharedGizmoManager == nil) { sharedGizmoManager = [super allocWithZone:zone]; return sharedGizmoManager; // assignment and return on first allocation }}return nil; //on subsequent allocation attempts return...

How to Create, Load, and Use Multiple Nib Files

In Mac OS X, application management is a single drag & drop operation: drop the application into /Applications to install, and drop it into the Trash to uninstall. This simplicity and power is just the tip of the iceberg. What we're seeing is just one use of a more general facility Cocoa calls bundles. This article is about Nib files, and how to use them in your applications. Nib files are just specialized bundles, so we'll talk about bundles first. // Bundles A bundle is a directory containing code and resources. Applications,...

Thursday, September 10, 2009

Математика

CephesAlglistВизуализаторы алгоритмов дискретной математикиhttp://articles.org.ru/docum - здесь набор описаний форматов файлов, в том числе JPEG и дискретно-косинусное преобразование.http://matlab.exponenta.ru/imageprocess/index.php - Обработка сигналов и изображений в Matlab. Понравилось хорошее описание математики.http://matlab.exponenta.ru/imageprocess/book5/10_0.php - Отличная статья по реконструкции изображений и F...

Wednesday, September 9, 2009

If architects had to work like software developers

http://blog.monochrome.co.uk/2009/02/if-architects-had-to-work-like-software-develop...

The 7 deadly sins of IT management | Adventures in IT - InfoWorld

The 7 deadly sins of IT management | Adventures in IT - InfoWorldPosted using ShareT...

Microsoft tool boosts AJAX Web page response | Developer World - InfoWorld

Microsoft tool boosts AJAX Web page response | Developer World - InfoWorldPosted using ShareT...

Tuesday, September 8, 2009

Признаки делимости

Признаки делимостиПризнак ПаскаляЛекции по математ...

Powered by Blogger.