Tuesday, December 7, 2010

Assembly - .NET 4.0

Assemblies are designed to simplify application deployment and to solve versioning problems that can occur with component-based applications.

Benefits:
  • Versioning Problems
  • An End to DLL Conflicts
Contents:
Static assembly can consist of four elements

  • Assembly manifest

  • Type metadata.

  • Microsoft intermediate language (MSIL) code that implements the types.

  • A set of resources.




Assembly manifest:
  • contains all the metadata needed to specify the assembly's version requirements and security identity, and all metadata needed to define the scope of the assembly and resolve references to resources and classes.
  • can be stored in either a PE file (an .exe or .dll) with Microsoft intermediate language (MSIL) code
  • Assembly manifest (Assembly name, Version number, Culture, Strong name informationGl

Global Assembly Cache(GAC):
  • stores assemblies specifically designated to be shared by several applications on the computer.
  • share assemblies by installing them into the global assembly cache only when you need to.
  • There are scenarios where you explicitly do not want to install an assembly into the global assembly cache.
  • deploy an assembly into the GAC by using an installer designed or a developer tool- SDK Gacutil.exe
  • Assemblies deployed in the GAC must have a strong name.

Thursday, December 2, 2010

Access Modifiers- C#

1. public - Access is not restricted.
2. internal - Access is limited to the current assembly.
3. private - Access is limited to the containing class.
4. protected - Access is limited to the containing class or types derived from the containing class.
5. protected internal - Access is limited to the current assembly or types derived from the containing class.

Access modifiers are not allowed on namespaces. Namespaces have no access restrictions. If no access modifier is specified in a member declaration, a default accessibility is used.

Members - "Default member accessibility" - "Allowed declared accessibility"
class private public, protected, internal, private, protected internal
interface public None
struct private public, internal, private
enum public None

the accessibility domain of a nested type cannot exceed that of the containing type.

Tuesday, March 9, 2010

Enterprise crawler

When we need to read data from storage.
  • crawleradmin --offline --getdata aa2: http://cmb1u123.cmb1.fast.no:30000/niran/sitemap/sitemap.xml
read data from meta storage.

crawlerdbtool -m viewraw -d data/store/aa2/data/6

ey (raw): 'http://cmb1u123.cmb1.fast.no:30000/niran/sitemap/c.html'

(0, 0, {1: 1268106394, 2: 0, 3: 'text/html', 4: 'ykA\xd1_\xaf;\xba@r\x94\xa2\xc8o\x8f~', 5: None, 6: ('aa2/data/6', 113539, 65539), 7: [('http://cmb1u123.cmb1.fast.no:30000/niran/sitemap/sitemap.xml', 1073741824)], 8: 'HTTP/1.1 200 OK\r\nDate: Tue, 09 Mar 2010 08:12:26 GMT\r\nServer: Apache/2.2.9 (Unix) PHP/5.2.6\r\nLast-Modified: Tue, 06 Oct 2009 14:11:21 GMT\r\nETag: "2bbf9-59780-47544cdfd5440"\r\nAccept-Ranges: bytes\r\nContent-Length: 366464\r\nConnection: close\r\nContent-Type: text/html', 9: 'deflate', 11: 'Tue, 06 Oct 2009 14:11:21 GMT', 12: '"2bbf9-59780-47544cdfd5440"', 13: 0, 14: None, 15: None, 16: (1, 1, 1), 17: 0, 18: [], 19: None, 20: 0, 21: None, 22: 0, 23: {'sm': {'priority': '0.8', 'lastmod': '2005-01-01', 'changefreq': 'monthly'}}}, 0)


Wednesday, November 18, 2009

Python Tutorial

http://www.tutorialspoint.com/python

Examples of High-Level languages

  • Java
  • C
  • Python
  • Scheme
  • Prolog
  • C++
  • C#
  • Java Script
  • Ruby
  • Lisp

Tuesday, August 18, 2009

ESP web service

http://localhost:16089/adminserver/webservices.jsp