Thursday, May 19, 2011
Sunday, April 3, 2011
பயணம்
அவன் பயணப்பட்டான். வாழ்க்கை களத்தில் அவன் பயணம் இன்னும் முடியவில்லை. முன்னோக்கி பார்த்தான் அவன். பாதை பிடிபடவில்லை. அவன் பின்னோக்கி திரும்பியதுதான் தாமதம். கொடிய விலங்குகள் அவனை ஆட்கொள்ள வந்துகொண்டிருந்தன.
அந்த கொடிய விலங்குகள் அவனது நினைவுகள்தான். பாதையின் பல இடங்களில் சந்தித்து வந்தவைதான். என்றாலும் அவன் மனம் துவண்டது. போராடியபோது ஏற்பட்ட வலியை இப்போதும் உணர்ந்தான் அவன். அவை பின்தொடர்வதை அவனால் தடுக்க முடியவில்லை. அவன் பலமுறை இவ்வாறு பின்னோக்கி பார்த்ததுண்டு. அவனை பின்தொடர்ந்தவைகளின் எண்ணிக்கை கூடியதே தவிர குறையவில்லை. சில நேரங்களில் பயந்ததுண்டு. ஆனாலும் அவன் தன் பயணத்தை தொடர்ந்தான்.
அவனது இன்பப்பூக்கள் எங்கே என்ற நினைவு அவனுக்கு வந்தது. அவற்றை காண ஆவலாய் திரும்பினான். அதோ தூரத்தில் சில புள்ளிகளாய் அவை அவனுக்கெதிர்திசையில் நகர்ந்துகொண்டிருந்தன. அவன் கண்களின் ஈரம் அவற்றை வளர்க்குமா? என்ற ஏக்கம் அவனுக்கு வந்தது. சில மிருகங்களிடமிருந்து காத்து வருடிய பூக்களாயிற்றே அவை. தன்னை காத்த ஆயுதங்களாய் கண்டான் அவன். சில இடங்களில் துவண்டாலும் பல இடங்களில் காத்து பயணத்தை தொடரச்செய்தது.
அவனே அவனை கடிந்து கொண்டான். பின்னோக்கியபடி பயணத்தை தொடர்வது தவறு என முன்னோக்கினான். பாதை இருள்சூழ்ந்திருந்தது. இப்போது அவனுக்கு பயமில்லை. பாதை இருளாக இருந்தாலும் சேரவேண்டிய இடம் ஒளிப்பிழம்பாய் தெரிந்தது. அவனது கால்கள் அந்த ஒளிப்பிழம்பை நிலையாய் கொண்டு நகர்ந்தன.
அவனது பயணம் தொடர்கிறது.
Friday, March 11, 2011
Application Development Foundation - Part 3
Using Common Reference Types
String and String Builder
System.String are immutable in .NET. That means any change to a string causes the runtime to create a new string and abandon the old one.
StringBuilder class to create dynamic (mutable) strings. The StringBuilder solution is the most flexible because it can span multiple statements. The default constructor creates a buffer 16 bytes long, which grows as needed. You can specify an initial size and a maximum size if you like.
Throw and Catch Exceptions
Most types in the .NET Framework are reference types. Reference types provide a great deal of flexibility, and they offer excellent performance when passing them to methods.
Reference types store the address of their data, also known as a pointer, on the stack. The actual data that address refers to is stored in an area of memory called the heap.
The runtime manages the memory used by the heap through a process called garbage collection. Garbage collection recovers memory periodically as needed by disposing of items that are no longer referenced.
Reference types represent the address of data rather than the data itself, assigning one reference variable to another doesn't copy the data. Instead, assigning a reference variable to another instance merely creates a second copy of the reference, which refers to the same memory location on the heap as the original variable.
Type | Use for |
|---|---|
System.Object | The Object type is the most general type in the Framework. You can convert any type to System.Object, and you can rely on any type having ToString, GetType, and Equals members inherited from this type. |
System.String | Text data. |
System.Text.StringBuilder | Dynamic text data. |
System.Array | Arrays of data. This is the base class for all arrays. Array declarations use language-specific array syntax. |
System.IO.Stream | Buffer for file, device, and network I/O. This is an abstract base class; task-specific classes are derived from Stream. |
System.Exception | Handling system and application-defined exceptions. Task-specific exceptions inherit from this type. |
String and String Builder
System.String are immutable in .NET. That means any change to a string causes the runtime to create a new string and abandon the old one.
StringBuilder class to create dynamic (mutable) strings. The StringBuilder solution is the most flexible because it can span multiple statements. The default constructor creates a buffer 16 bytes long, which grows as needed. You can specify an initial size and a maximum size if you like.
Throw and Catch Exceptions
Exceptions are unexpected events that interrupt normal execution of an assembly. For example, if your assembly is reading a large text file from a removable disk and the user removes the disk, the runtime will throw an exception. This makes sense because there is no way your assembly could continue running.
Exceptions should never cause your assembly to fail completely. Instead, you should plan for exceptions to occur, catch them, and respond to the event. In the preceding example, you could notify the user that the file was not available, and then await further instructions from the user.
Syntax for Try Catch
' VB
Try
' codingCatch ex As Exception
' If there are any problems reading the file, display an error messageFinally
' Finally block
End Try
In the preceding example, if any type of error occurs—including a file not found error, insufficient privileges error, or an error during the reading of the file—processing continues within the Catch block. If no problems occur, the runtime skips the Catch block.
Note:
The runtime will execute only the first Catch block with a matching exception type, however, so order Catch blocks from the most-specific to the least-specific.
The Finally block runs after the Try block and any Catch blocks have finished executing, whether or not an exception was thrown. Therefore, you should use a Finally block to close any streams or clean up any other objects that might be left open if an exception occurs.
Thursday, March 10, 2011
Application Development Foundation - Part 2
Using Value Types
- The simplest types in the .NET Framework, primarily numeric and Boolean types, are value types.
- Value types are variables that contain their data directly instead of containing a reference to the data stored elsewhere in memory.
- Instances of value types are stored in an area of memory called the stack, where the runtime can create, read, update, and remove them quickly with minimal overhead.
There are three general value types:
- Built-in types
- User-defined types
- Enumerations
Built-in types
Type (Visual Basic/C# alias) | Bytes | Range | Use for |
|---|---|---|---|
System.SByte (SByte/sbyte) | 1 | -128 to 127 | Signed byte values |
System.Byte (Byte/byte) | 1 | 0 to 255 | Unsigned bytes |
System.Int16 (Short/short) | 2 | -32768 to 32767 | Interoperation and other specialized uses |
System.Int32 (Integer/int) | 4 | -2147483648 to 2147483647 | Whole numbers and counters |
System.UInt32 (UInteger/uint) | 4 | 0 to 4294967295 | Positive whole numbers and counters |
System.Int64 (Long/long) | 8 | -9223372036854775808 to 9223372036854775807 | Large whole numbers |
System.Single (Single/float) | 4 | -3.402823E+38 to 3.402823E+38 | Floating point numbers |
System.Double (Double/double) | 8 | -1.79769313486232E+308 to 1.79769313486232E+308 | Precise or large floating point numbers |
System.Decimal (Decimal/decimal) | 16 | -79228162514264337593543950335 to 79228162514264337593543950335 | Financial and scientific calculations requiring great precision |
System.Char (Char/char) | 2 | N/A | Single Unicode characters |
System.Boolean (Boolean/bool) | 4 | N/A | True/False values |
System.IntPtr (none) | Platform-dependent | N/A | Pointer to a memory address |
System.DateTime (Date/date) | 8 | 1/1/0001 12:00:00 AM to 12/31/9999 11:59:59 PM | Moments in time |
When you assign between value-type variables, the data is copied from one variable to the other and stored in two different locations on the stack.
User defined type
User-defined types are also called structures or simply structs, after the language keyword used to create them. As with other value types, instances of user-defined types are stored on the stack and they contain their data directly. In most other ways, structures behave nearly identical to classes.
[vbnet]
Structure <struct-name>
'Body of structure
End Structure
[csharp]
public struct <struct-name>
{
//Body of strucrue
}
Structures are a composite of other types that make it easier to work with related data. The simplest example of this is System.Drawing.Point, which contains X and Y integer properties that define the horizontal and vertical coordinates of a point.
The structure can contain fields, methods, constants, constructors, properties, indexers, operators and even other structure types.
There is no inheritance for structs as there is for classes. A struct can't inherit from another struct or class and it can't be the base class for a class. But remember that in .NET all types are directly or indirectly inheriting from the super base class object and hence the structure also. Since structs doesn't support inheritance, we can't use the keywords virtual, override, new, abstract etc with a struct methods. .NET struct types are never abstract and are always implicitly sealed. The abstract or sealed modifiers are not permitted in a struct declaration.
Enumerations
Enumerations are related symbols that have fixed values. Use enumerations to provide a list of choices for developers using your class. For example, the following enumeration contains a set of titles:
Application Development Foundation - Part 1
Introduction
By using this, you'll learn how to do the following:
- Develop applications that use system types and collections.
- Implement service processes, threading, and application domains to enable application isolation and multithreading.
- Create and deploy manageable applications.
- Create classes that can be serialized to enable them to be easily stored and transferred.
- Create hardened applications that are resistant to attacks and restrict access based on user and group roles.
- Use interoperability and reflection to leverage legacy code and communicate with other applications.
- Write applications that send e-mail messages.
- Create applications that can be used in different regions with different languages.
- Draw charts and create images, and either display them as part of your application or save them to files.
Microsoft Press Web site (www.microsoft.com/learning/support/books/).
For information about ordering the full version of any Microsoft software, please call Microsoft Sales at (800) 426–9400 or visit www.microsoft.com.
Chapter 1: Framework Fundamentals
The .NET Framework is an integral Microsoft Windows component designed to support next-generation applications and services. Many fundamentals of the .NET Framework will be familiar to developers who have worked in other object-oriented development environments; however, the .NET Framework also includes many unique elements.Exam objectives in this chapter:
- Manage data in a .NET Framework application by using system types.
- Implement .NET Framework interfaces to cause components to comply with standard contracts.
- Control interactions between .NET Framework application components by using events and delegates.
Sunday, March 6, 2011
மாநகர் எரிந்தது!
புகாரில் புதிதாய் மணம் முடித்து புறத்தவள் ஒருத்தியிடம் புருஷனை கொடுத்து
புதிராய் நின்றவள் கண்ணகி
புணர்ந்தால் புதியவளாய் புத்தொளி பெற்றாள்
பழைய கணவனை புதியவனாய் கண்டு
புறநகர் மாமதுரையில் புதுவாழ்வு புனைந்தாள்
தொடக்கமே முடிவாய் போனது
துயரமே புது உருவ மெடுத்து
விதியெனும் உருபெற்று வார்த்தையில் விளையாடியது
ஓர் எழுத்துபிழை நேர்ந்தது
உயிர் மெய்யை பிரிந்தது
ரணத்தை தந்தது மரணம்
கட்டியழுதாள் கதரிதுடிதாள்
அத்துடன் நின்றாளோ - இல்லை
பொங்கி எழுந்தாள் புரட்சி பெண்ணாய்
கோமகனை குற்றம் சாட்டினாள்
உடைத்து உரைத்தாள் உண்மையை
உணர்ந்தான் உலகை விடுத்தான் உத்தமன்
நெடுந்துயில் கொண்டான் நெடுஞ்செழியன்
தந்தையின் பாவம் மக்களை வதைத்தது
மாநகர் எரிந்தது மாமதுரை மண்ணாய்போனது.
Saturday, February 26, 2011
Thiruvarur Thiyagaraja swami temple
Thiruvarur is located 290 kms away from Chennai, the capital of Tamil Nadu and is positioned between Nagapattinam (24 kms) and Thanjavur (56 kms). This town is situated in the southeast of Tamil Nadu, The Arulmighu Shri Thiyagarajar temple located in Thiruvarur town has many distinctions. It has the largest chariot or temple car among the temples in Tamil Nadu. The enormous Kamalalayam and the golden calm water in the temple tank are the glory of the town.
The Arulmighu Thiyagaraja swamy temple in Thiruvarur is famous in many aspects. This is the most revered and glorified of all Attaveeratta temples of Lord Shiva. Inside this temple, there is an art gallery depicting the greatness of the judicious king Manuneethi Cholan. The striking features of this temple are the Arulmighu Shri Kamalamba shrine and the sacred temple tank containing a small temple in miniature in the middle of it. The Shri Kamalambal shrine is one of the seats of the great mother, the goddess Shakti. This holy town has the glory of being eulogized in the Thevaram. The ancient musical instruments the Panchamuga and the Pari Nadaswaram were made here and it is interesting to note that these ancient musical instruments are used till today in this town.
History
The actual history of Thiruvarur Periya Kovil (Thiyarajar Temple) goes back more than 30th Century BC. The chola kings just renovated the Thiyarajar temple and built few extra shrines inside the temples. The known foremost devotee Tirunavukkarasar on 7th Century CE itself has said in his pasurams that the real existence of this cultural heritage is unknown and the temple is in existence for many centuries.
According to history, the central temple in Tiruvarur was installed by Muchukanta Chola.[2] Tiruvarur is also associated with another legendary king, Manuneedhi Cholan
Tiruvarur is mentioned in the works of Thirugnana Sambanthar and Tirunavukkarasar, the foremost Saivite saints of 7th century CE.[3] Tirunavukkarasar mentions several Tiruvarur temple traditions, such as Marghazhi Aathirai Vizha, Panguni Uttirai Perunaal and Veedhivitakanin Veedhi Panni. The granite structure of the Tyagarajaswami temple was first constructed by Aditya Chola I in 9th century and revamped during the reign of Rajaraja Chola I. The temple was upgraded and rebuilt with stone by Rajendra Chola I.[2] The royal patronage continued and the town flourished as a cultural centre during the rule of the Nayaks, Vijayanagar kings and Marathas. This temple is one of the biggest in the country and this has the biggest temple chariot in the world. The Arulmigu Thyagarajaswamy Car festival (offen stated as Tiruvarur Chariot festival) celebrated here in months of March -April attracts large crowds. Tiruvarur car is very famous one and it is called as 'Aalither' in Tamil meaning car like ocean.
Tiruvaur was part of the Thanjavur District until 1991 and Nagapattinam District until 1997. Tiruvarur was made the headquarters of Tiruvarur District when it was carved out of Nagapattinam in 1997. Thiruvarur car festival 2008 was celebrated very grandly. The people came from all the surrounding areas.
Subscribe to:
Posts (Atom)


