Sai Stuff to Developers

March 1, 2009

Spring and Hidernate By Mr.Santosh.

Filed under: Java — tosaik @ 7:45 am
Spring and hibernate by Mr.Santosh

Spring and Hibernate by Mr.Santosh

February 18, 2009

Oslo : A new Product From Microsoft

Filed under: DotNet — tosaik @ 7:35 am

Making a new class of model-driven applications mainstream

About “Oslo”

”Oslo” is the codename for Microsoft’s forthcoming modeling platform. Modeling is used across a wide range of domains and allows more people to participate in application design and allows developers to write applications at a much higher level of abstraction. “Oslo” consists of:

  • A tool that helps people define and interact with models in a rich and visual manner
  • A language that helps people create and use textual domain-specific languages and data models
  • A relational repository that makes models available to both tools and platform components

“Oslo” was first announced by Robert Wahbe (Corporate Vice President of the Connected Systems Division) in October 2007.

“Oslo” and a Mainstream Approach to Modeling

Modeling has often been heralded as a means to break down technology and role silos in application development to assist IT departments in delivering more effective business strategies. However, while the promise of modeling has existed for decades, it has failed to have a mainstream impact on the way organizations develop and manage their core applications. Microsoft believes that models must evolve to be more than static diagrams that define a software system; they are a core part of daily business discussions, from organizational charts to cash flow diagrams. Implementing models as part of the design, deployment and management process would give organizations a deeper way to define and communicate across all participants and aspects involved in the application lifecycle.

In order to make model-driven development a reality, Microsoft is focused on providing a model-driven platform and visual modeling tools that make it easy for all “mainstream” users, including information workers, developers, database architects, software architects business analysts and IT Professionals, to collaborate throughout the application development lifecycle. By putting model-driven innovation directly into the .NET platform, organizations will gain visibility and control over applications from end-to-end, ensuring they are building systems based on the right requirements, simplifying iterative development and re-use, and enabling them to resolve potential issues at a high level before they start committing resources.

Modeling is a core focus of Microsoft’s Dynamic IT strategy, the company’s long-term approach to provide customers with technology, services and best practices to enable IT and development organizations to be more strategic to the business. “Oslo” is a core piece of delivering on this strategy.

“The benefits of modeling have always been clear, but traditionally only large enterprises have been able to take advantage of it and on a limited scale. We are making great strides in extending these benefits to a broader audience by focusing on three areas. First, we are deeply integrating modeling into our core .NET platform; second, on top of the platform, we then build a very rich set of perspectives that help specific personas in the lifecycle get involved; and finally, we are collaborating with partners and organizations like OMG to ensure we are offering customers the level of choice and flexibility they need.”

Bob Muglia, Senior Vice President, Microsoft Server & Tools Business

“Oslo” and the Future of Application Development

At TechEd United States 2008 (June 2008), Chairman Bill Gates discussed in his keynote the ways in which modeling would transform the future of application development, and the role that “Oslo” plays in these efforts. He also disclosed that a community technology preview (CTP) will be released at the Professional Developers Conference in October 2008.

“I think one of the biggest trends in application development that I talked about… is modeling, and we’re making a big investment in that. We have what’s been code named Oslo, and talked a little bit about it on our Web sites and our blogs, which is this model-driven development platform. It’s actually taking the kind of models that you’re seeing arising in specific domains, like software management in System Center, or your data design over in SQL, or your process activities over in BizTalk and saying, we need to take all these domains and be able to put them into one model space. In fact, we need to let people create their own domains that aren’t just isolated, but that exist in this one modeling space. And that’s what Oslo is about.”

Bill Gates, Chairman, Microsoft

Key features Of Microsoft Visual Studio 2010 and .NET 4.0

Filed under: DotNet — tosaik @ 7:30 am

Microsoft announced the next version of its developer platform, which will be named Visual Studio 2010 and .NET Framework 4.0.  Microsoft said VS10 will focus on five key areas (in marketing-speak): riding the next-generation platform wave, inspiring developer delight, powering breakthrough departmental applications, enabling emerging trends such as cloud computing, and democratizing application life-cycle management (ALM).

 

“With Visual Studio 2010 and the .NET Framework 4.0, we are focused on the core pillars of developer experience, support for the latest platforms spanning client, server, services and devices, targeted experiences for specific application types, and core architecture improvements,” said S. Somasegar, senior vice president of the Developer Division at Microsoft.  “These pillars are designed specifically to meet the needs of developers, the teams that drive the application life cycle from idea to delivery, and the customers that demand the highest quality applications across multiple platforms.”

Key features include:

  • Modeling tools.  VS10 will enable both technical and non-technical users to create and use models to collaborate and to define business and system functionality graphically.  VS10 will support both UML and Domain Specific Language support.
  • Improved efficiency throughout the test cycle.  New features include the ability to eliminate non-reproducible bugs, fast setup and deployment of tests to ensure the highest degree of completeness of test, focused test planning and progress tracking, and ensuring that all code changes are properly tested.
  • Substantial improvements in collaboration capabilities.  The capabilities and scalability of Team Foundation Server (TFS) will be improved.  Teams can track work more easily by linking work items with code and models. Visual Studio Team System also introduces workflow-based builds to catch errors before they have a chance to affect the rest of the team or, worse, enter production.
  •  

    The Most Important Feature of .NET 4.0

    First, let’s look at the big picture. .NET 4.0 is not going to have any blockbuster changes at its core like the anonymous method support and generics of .NET 2.0. Nor is it going to be the odd bolt on of half finished products that was .NET 3.0. Nor will it be the language frenzy of .NET 3.5.

    .NET 4.0 is going to include some core changes, particularly in the area of parallel processing that is going to be very important to some people, and will eventually make it into all of our consciousness.

    .NET 4.0 will also include another chance for Entity Framework, and I hope they can finish what they’ve set out to do there. I think there’s a measurable change they’ll create something with broader reach than EF 1.0, but I think it will remain needlessly complex for most projects, and Microsoft has further proven that the data arena is not a place they can be trusted when they announced limited evolution of LINQ to SQL. I hope one day I will say I was needlessly cynical about Microsoft’s data strategy, and I hope that day comes soon. I remain cynical.

    .NET 4.0 will bring Azure and cloud computing to the forefront. That’s cool. For niche applications it’s very powerful stuff. People I respect like David Chappell think this is going to be the main development approach of the future. Maybe. But not right now beyond short term scale out requirements and applications looking for a new delivery mechanism.

    All three of these areas are reasons that I’ll be on my toes as .NET 4.0 unveils itself because it will probably have the largest impact on how I design and code since LINQ. I anticipate that patterns will arise that are important in building applications that will evolve to take advantage of these major Microsoft initiatives (and others).

    Before I go on, I don’t want you to overlook what I just said… I’ve got gray hair and I’ve been in the business a long time…

    .NET 4.0 is likely to offer patterns that will be the most important change in my coding since the huge changes brought on by LINQ (and supporting techniques like extensions and lambdas) of .NET 3.5. That was the most important change to my coding since generics in .NET 2.0. That was the most important change to my coding style since strongly typed full OO programming came on in .NET 1.0. That was the most important change to my coding style since the visual coding style of Visual Basic (pre .NET). That was the most important change to my coding style since Clipper and FoxPro. Get the trend? Eight years, eight years, three years, two years, 18 months… I do a talk for INETA called “Rethinking Object Orientation” that tries to get a grip on these changes… .NET 4.0 is going to bring a lot and inspire a lot of rethinking.

    And so, to stick my neck out and say “this is the most important feature” requires clarification. If we look beyond the long term implications of .NET 4.0 and ask about what it changes in your world the day it ships, beyond incremental improvements, I think there’s only one answer.

    The most important feature of .NET 4.0 is Windows Workflow 4.0.

    Windows Workflow 3.5 gave you a tool for free that previously cost tens of thousands of dollars to get your foot in the door. It was a great opportunity. And there was almost no uptake. I think there were a few reasons – it was too darn hard to use and Microsoft didn’t push it very hard. They probably didn’t push it because it became evident that they screwed it up and it was way too hard to use.

    Windows Workflow 4.0 is a complete rewrite of workflow. It’s a brand new product. More than just rewriting, it represents a rethinking of the problem. It’s not the old giant workflow behemoths pared down to fit into Visual Studio. It give normal developers what they need to incorporate workflow into their applications. If we look beyond forms over data and extend the reach of our applications into helping the organization accomplish its goals, we find workflow. Workflows are a fundamentally better way to think about business problems – and it can often be interleaved with existing applications. Assuming the release is stable as a 1.0 product, and I’m optimistic on that, it’s going to be the thing in .NET 4.0 that lets you add real business value to your applications.

    And real business value is what its all about.

    Important Links :

    Microsoft Visual Studio 2010 Press Release

    CNET: Visual Studio 2010 to come with “black box”

    December 6, 2008

    SANTOSH Technologies.

    Filed under: Java — tosaik @ 1:15 pm

    Santosh Sir and Subash Sir who were the most vital faculties of NARESH technologies have left it due to some management related issues, and started a new institute:

     

    SANTOSH Technologies

    #2nd Floor, Saraswati Nilayam, Opp: DCB Bank,

    SR Nagar Police Station Lane, Ameerpet, Hyd-38

     

    As we know the standards followed by Santosh sir (providing high quality and complete technical content) regarding the subjects that he used to teach at NARESH technologies like J2EE, Spring, Hibernate, Struts etc. And we can now expect the same standards for the other concepts such as Core Java and .NET.

     

    You can visit www.santoshtechnologies.com for more details

     

    I am one of the students who has greatly benefited because of their lectures, so thought to spread this news, making my friends aware that Santosh sir and Subash sir are no more in Naresh technologies. Please go through the JDBC, Servlets and JSP BlackBook authored by Santosh Sir.

    July 29, 2008

    Safe Accessing Controls from the Unsafe Child Threads

    Filed under: DotNet — tosaik @ 7:55 am

    In general, whenever you are working with child threads you can’t access the controls from Form class you will get a runtime error. If you want to access these controls there is a solution for this problem, every controls derived from Form class has the property InvokeRequired. This property returns Boolean value i.e.., True or False. When this property returns false means accessing to this control is not safe, when it returns true it means that accessing to this control is safe. So, the condition to access a label control named label1 safely from child thread is shown below:

     

    C#

     

    if (!label1.InvokeRequired)

    {

      someFunction(label1.Text);

    }

     

    Vb

     

    If NOT label1.InvokeRequired Then

     

      someFunction(label1.Text)

     

    End If

     

    Now, you understand the importance of InvokeRequired property, but the problem is when this property returns true it means accessing particular control is not safe so how can we make a safe call to that particular Control?

     

    Here the answer is using Delegates. I think you know the Working and importants of   Delegates if you are not familiar with delegates please refer delegate concept before proceeding for now I can say some information regarding delegates is, it is a special kind of object which stores every kind of information about particular function.

     

    First declare the delegate as shown:

     

    delegate void delLoadFirst();      

     

    Here the name of the delegate is delLoadFirst, now you create a function it should match the definition with delegate definition.For now I will take  LoadFirst() as my function. Now in LoadFirst() function write as shown below:

     

    Void LoadFirst()

    {

      

    if (!label1.InvokeRequired)

    {

      someFunction(label1.Text);

    }

    Else

      {

      delLoadFirst df = new delLoadFirst(LoadFirst);

      df.Invoke();

      }

    }

     

    As you can absorve from the above code, the if condition will fails when InvokeRequired property of label1 returns true(means its not safe to call a control label1 from here.) and it goes to else condition where we created delegate object by sending function LoadFirst() as its parameters now when you call Invoke method of this delegate object it will create a separate thread (don’t forget delegate always creates safe threads) and runs the code of the function which you sent as a parameter at the time of creating delegate object.Here in this case LoadFirst() is the method executes by the thread created by delegate delLoadFirst.now again the if condition checks and this time InvokeRequired property of label1 returns false that means its safe to access the control label1 from this thread because this thread is created by delegate so it is safe thread.Now the if condition satisfies and the statements in the if block will executes in this case someFunction(label1.Text); is the statement executes afther this if block compleates the safe thread will joins to its parent thread.

     

    This is the way we can access any control from unsafe threads.   

     

    Have a nice day.

    :)

     

         

    June 2, 2008

    “Thought For The Day”….a great way to start the day!

    Filed under: 1 — tosaik @ 6:27 am

    Work and rest complement each other when experienced in a balanced lifestyle. Through this balanced lifestyle we are able to grow in character while at the same time maintain a healthy perspective. Too much of anything or extremes typically causes stress and abnormalities. Also, since work and rest are two different types of activities there is a nice change of pace that is refreshing and rejuvenating.

    May 29, 2008

    Good book for JDBC, Servlets and JSP (including JSTL and JSF)

    Filed under: Java — tosaik @ 6:53 am

    The JDBC, Servlets, and JSP is a unique book for self learning and getting expertization in Java database and Web technologies such as JDBC, Servlet, JSP, JSTL and JSF. The book promises to be useful not only for self updating the readers but also for the readers who already know the concepts and want to get more in-depth knowledge about these topics.

    This book helps you to

    Ø     Understand the need of database and web programming in Java

    Ø     Understand Web architectures

    Ø     Understand the JDBC Type-1 through 4 architectures

    Ø     Learn how and when to use the different types of JDBC drivers

    Ø     Work with the JDBC API (like Statement’s, ResultSet’s etc)

    Ø     Using JDBC to work with SQL 99 database types

    Ø     Understand Rowset’s, Transactions, and Connection Pooling

    Ø     Understand the concepts of Servlet Container

    Ø     Get in-depth coverage on the various Servlet concepts like attributes, Session tracking etc

    Ø     Understand advanced Servlet features

    Ø     Understand the need to tag based programming and JSP

    Ø     Get in-depth coverage on the JSP lifecycle stages and various JSP elements

    Ø     Understand EL – Expression Language

    Ø     Understand all the JSTL elements

    Ø     Understand how to work with internationalization

    Ø     Understand Securities in web application

    Ø     Understand JSF

    Ø      Understand Web design patterns

    Ø        Implement a case study using the technologies learnt in this book, where you can learn how to develop a small framework

     

     

    May 26, 2008

    Drag and Drop Feature In Windows .Net Form

    Filed under: DotNet — tosaik @ 12:46 pm

    On the browser we can develop a Drag and Drop feature using JavaScript, but what the same Drag and Drop feature can we implement in Windows Form? Yes we can how we will learn now.

     

    Please Follow the Steps below where I am demonstrating this concept using simple Example.

     

    1)      Open visual Studio’s IDE and create a new windows Form using any language which support s by .NET Framework.

    2)      On the new for add two listbox controls from toolbox and name it as ListSource and ListTarget.

    3)      Now bind the ListSource Listbox to a Datasource (My motive is to fill the Listbox with some data).

    4)      In Listsource properties set AllowDrop to True, this will create a new set of events for the control. In the event list of this control doubleClick on Mousedown Event and write this code:

     

    ListSource.DoDragDrop(ListbSource.SelectedItem.ToString,DragDropEffects.Copy)

          

    5)      In properties of ListTarget Control Set AllowDrop to True.

    6)      In properties of ListTarget Control, go to Event block and double Click on DragEnter Event and write this code:

     

    e.Effect = DragDropEffects.Copy

     

    7)      In properties of ListTarget Control, go to Event block and double Click on DragDrop Event and write this code:

     

    LbTarget.Items.Add(e.Data.GetData(DataFormats.Text))  

     

    Now Execute or press F5 to see the Out put now select one item in ListSource listbox and drag It to ListTarget listbox  it will add one item in Target list box.

     

    This is a simple example I didn’t explained about what is this DragDropEffect Enumerations, for now  just use as I shown I will explain in my next post.

     

    I hope this post helps U..,

    Thank you  J

     

    April 30, 2008

    Java Script code For Numeric Validation

    Filed under: DotNet — tosaik @ 1:26 pm

    In your html page add the control you want to validate but for this sample i used textbox to demonstrate this code,
    in my textbox control i used onkeyup event to validate whether recently entered charecter is numeric or not.
    so you can call this Javascript code as your requirement in your project.

    Test.html
    ————

    <input type=”text” id=”txt” name=”txt” onkeyup=”txtValidate(this.id)”/>
    JavaScript Code
    ——————-

        function txtValidate(txtid)
        {
        var ok=0;
        var a=document.getElementById(txtid).value;
           
           for(var i=0;i<=a.length-1;i++)
          {
            var j=a.charCodeAt(i);
               for(var k=48;k<=57;k++)
            {
              ok=0;
              if(k==j)
              {
                ok=1;
                break ;
              }
            }
           
          }
          if(ok==0)
          {
            alert(“Only Numeric Values Allowed”);
            document.getElementById(txtid).value=”";
            for(var i=0;i<a.length-1;i++)
            {
             var j=a.charCodeAt(i);
               for(var k=48;k<=57;k++)
            {
              ok=0;
              if(k==j)
              {
               document.getElementById(txtid).value+=a.charAt(i);
                 }
            }
            
            }
          }
        }

     

    I hope this code helps you.

    Thank you….,

    April 10, 2008

    Programmatically Manipulating Clip Board Functionality using .Net

    Filed under: DotNet — tosaik @ 3:48 pm

    Using dot net libraries we can do the functionalities like coping any data to the clipboard with single click in our .net application and you can paste it in any application including no dot net applications.

     

    Now I am showing a simple application using vb.net.

     

    Step-1:  Design the form as the image shown below.

     

    Step-2: In Copy buttons Click event write this code.

     

     

     

     

    Step-3: Similarly in Paste buttons Click event write this code.

     Step-4: Now run the application, you can see the out put form as shown below  

     

     

     

    Step-5:  Now write some data like this..

     

    And click copy button.

     

     
     

     Bye Cheers. :-)

     

     Bye Cheers. :-)

     

     

     

     

    Next Page »

    Blog at WordPress.com.