Posts

Showing posts from February, 2010

Language Performance

Image

राजर्षी शाहू महाराज

Image
छत्रपती शिवाजी महाराजांनंतर रयतेच्या सुखाचा आणि हिताचा ध्यास घेतलेले आणि त्यासाठी आयुष्यभर कार्यरत अशी राजर्षी शाहू महाराजांची ओळख आहे. त्यामुळेच त्यांना रयतेचे मोठे प्रेम मिळाले. प्रजा शिकली तरच ती शहाणी होईल आणि संस्थानची प्रगती होईल, हे ओळखून त्यांनी मोठ्या प्रमाणावर शाळा आणि वसतिगृहे सुरू केली. धरणे बांधली, विहिरी खोदल्या. उद्योगव्यवसाय सुरू होण्यासाठी मदत केली. राजर्षी शाहू महाराजांचा जन्म २६ जुलै १८७४ रोजी झाला. कागलचे जहागीरदार श्री. जयसिंगराव आबासाहेब घाटगे हे त्यांचे वडील. लहानपणापासूनच राजर्षींचा स्वभाव दिलदार, पण काहीसा अबोल असा होता. त्यांचे भेदक डोळे, श्‍यामल वर्ण आणि धिप्पाड शरीरयष्टी पाहून कुणीही त्यांच्या जवळ येण्यास कचरत असे. वयाच्या दहाव्या वर्षी, १७ मार्च १८८४ रोजी त्यांचे दत्तकविधान झाले आणि कोल्हापुरात राज्यारोहणसमारंभ झाला. राजकोट व धारवाड येथे त्यांचे शिक्षण झाले. धारवाडमध्ये असताना त्यांची दिनचर्या ठरलेली होती. सकाळी सहा वाजण्याच्या सुमारास उठणे, नंतर घोड्यावरून रपेट मारणे, नेमबाजी करणे किंवा दूरपर्यंत फेरफटका मारणे. सकाळी दहा ते सायंकाळी पाच अशी शाळेची वेळ होती

WPF - My first application

Image
CODE

XML

Why do we need XML? Data-exchange XML is used to aid the exchange of data. It makes it possible to define data in a clear way. Both the sending and the receiving party will use XML to understand the kind of data that's been sent. By using XML everybody knows that the same interpretation of the data is used What is XML ? Simpler SGML XML is a meta-language. A meta-language is a language that's used to define other languages. You can use XML for instance to define a language like WML. XML is a smaller version of SGML. It's easy to master and that's a major advantage compared to SGML which is a very complex meta-language. XML: What it can do With XML you can : �� Define data structures �� Make these structures platform independent �� Process XML defined data automatically �� Define your own tags With XML you cannot �� Define how your data is shown. To show data, you need other techniques. Kickstart Tutorial XML SpiderPro Showing the results XSL (eXtensible Stylesheet Langu

Vb.net Generics

MyClass stack = new MyClass(3); stack.Push(1); stack.Push(2); stack.Push(3); To use this implementation for another data type, say String , you need to create another class that uses the string type. Obviously, this is not a very efficient way of writing your class definitions because you now have several versions of essentially the same class to maintain. To Solve this use private object[] _elements; in MyClass (insted of private int[] _elements;) now you can add string and int data to stack.push MyStack stack = new MyStack(3); stack.Push(1); stack.Push(2); stack.Push(“A”); The problem with above implementation //---invalid cast--- int num = (int) stack.Pop(); To resolve this inflexibility, you can make use of generics. public class MyStack < T > { private T[] _elements; private int _pointer; _elements = new T[size]; When declaring the private member array _element , you use the generic parameter T instead of a specific type such as int or string : private T[] _elements; In sho