Monday, 30 May 2016

     Consider one situation I need to pass some data to sql using linq to sql, so I am created and object for dbml and send the values through it. But it show some error, we can easy to identify the error while give the value directly to the method, so we can find the data type mismatch error.



Parameter error in c#



     In the following image we are pass the value directly, so we can find the data type mismatch. Compare to the both image third variable is wrong.

     In the following image we are pass the value directly, so we can find the data type mismatch. Compare to the both image third variable is wrong.

     Usually some one checking all the radio button(checked or not) one by one and get the selected radio button value. But we can get the radio button value in a single line using jquery.

Example
asp Radio button

   <asp:RadioButtonList ID="Rbtn_ModeSetBy" runat="server">
        <asp:ListItem Value="0">All Employees</asp:ListItem>
        <asp:ListItem Value="1">Grade</asp:ListItem>
        <asp:ListItem Value="2">Job Title</asp:ListItem>
        <asp:ListItem Value="3">Employment Status</asp:ListItem>
   </asp:RadioButtonList>

jQuery Code

   var val =$('[id*="<%=Rbtn_ModeSetBy.ClientID%>"]').find('input:checked').val();

Friday, 20 May 2016

     I am a customer of hatsun curd. I brought two hutsun curd for my 1year baby, but it was defected and have some bad smell so I thought it reached the expiry date, but 5days left for expiry. So please don't brought, mainly for baby's. I saw the defect, if I not seen then? I can't think about it. I attached some screen shot below please seen it and don't brought it for your baby's.


Note:
     If any hatsun related pepole seen this post please I request you to care about this problem.





Thursday, 19 May 2016

     In the following code is used to create a simple notepad, used to enter the text and apply bold,italic and underline style.



Example Program:- (Editor)


Editor is Loading...

Advertisement

Thursday, 12 May 2016

     In the following example,we can easy to move the list box item up and down using javascript code.
Example

    function listboxMove(listID, direction) {

      var listbox = document.getElementById(listID);

      var selIndex = listbox.selectedIndex;

      if (-1 == selIndex) {

        alert("Please select an option to move.");

        return;

      }

      var increment = -1;

      if (direction == 'up')

        increment = -1;

      else

        increment = 1;

      if ((selIndex + increment) < 0 ||

        (selIndex + increment) > (listbox.options.length - 1)) {

        return;

      }

      var selValue = listbox.options[selIndex].value;

      var selText = listbox.options[selIndex].text;

      listbox.options[selIndex].value = listbox.options[selIndex + increment].value

      listbox.options[selIndex].text = listbox.options[selIndex + increment].text

      listbox.options[selIndex + increment].value = selValue;

      listbox.options[selIndex + increment].text = selText;

      listbox.selectedIndex = selIndex + increment;

    }


Example Program:- (Editor)


Editor is Loading...

Advertisement

     The following example code will help you to select all or deselect all the items from list box using javascript code.


    function listboxSelectDeselect(listID, isSelect) {

      var listbox = document.getElementById(listID);

      for (var count = 0; count < listbox.options.length; count++) {

        listbox.options[count].selected = isSelect;

      }

    }



Example Program:- (Editor)


Editor is Loading...

Advertisement

     In some situation user have chance to wrongly press back, close or reload button in browser, if we want to show any waning message we can use the onbeforeunload event.

Example

    window.onbeforeunload = function() {

        return "Are you sure to go back?";

    };



Example Program:- (Editor)


Editor is Loading...

Advertisement

In this example we are increase the edge-collision-detection restitution value.


    Physics(function(world) {



      // bounds of the window

      var renderer = Physics.renderer(

         'canvas', {

            el: 'viewport', // id of the canvas element

            width:500,

            height:500

         });

      world.add(renderer);



      var square = Physics.body(

         'rectangle', {

            x: 250,

            y: 250,

            vx: 0.10,

            width: 50,

            height: 50

         });

      world.add(square);

      world.render();    

    

      var circle = Physics.body(

         'circle', {

            x: 250,

            y: 250,

            vx: 0.10,

            radius:20

            //width: 50,

            //height: 50

         });

      world.add(circle);

      world.render();





     Physics.util.ticker.on(function(time, dt ){

        world.step(time);

     });

  

      world.on('step', function(event){

         world.render();

      });

    

    //Let�s add some constant acceleration downwards (gravity)

    world.add( Physics.behavior('constant-acceleration') );

  

    var bounds = Physics.aabb(0, 0, 500, 500);

    world.add(Physics.behavior('edge-collision-detection', {

        aabb: bounds,

        restitution: 0.9

    }));

  

    // ensure objects bounce when edge collision is detected

    world.add(Physics.behavior('body-impulse-response') );





 });


Example Program:- (Editor)


Editor is Loading...

Advertisement

     In this example each and every objects are interacting with other objects, this edge detection is automatically calculating.


Example Program:- (Editor)


Editor is Loading...

Advertisement

     In this example each and every objects are interacting with other objects, this edge detection is automatically calculating.


Example Program:- (Editor)


Editor is Loading...

Advertisement

     We can use variables in css. CSS Variables are entities defined by authors, or users, of Web pages to contain specific values throughout a document. They are set using custom properties and are accessed using a specific functional notation var().

syntax

   :root

   {

     --variable_name_1:value_1;

     --variable_name_2:value_2;

     ....

     ....

     ....

     --variable_name_n:value_n;

   }

Example

   :root

   {

     --clr:red;

     --mrgn:50px;    

   }



   div

   {

     background:var(--clr);

     margin-top:var(--mrgn);

   }

Problems to solve
     When building large sites, authors often face a maintainability challenge. In such websites, the size of the CSS is quite large and a lot of information may be repeated in multiple places. For example, maintaining a coherent color scheme throughout a document implies reusing a few color values at numerous positions in the CSS files. Altering the scheme, whether tweaking a single color or completely rewriting it, therefore becomes a complex task requiring precision, as a single find and replace often isn't enough.

     The situation gets worse with CSS frameworks, where changing colors requires editing the framework itself. Preprocessors like LESS or Sass are quite helpful in these situations, but may increase the complexity of the creation system, by adding an extra processing step. CSS variables help by employing some of the low-hanging benefits of a preprocessor, without the compilation overhead.

     A second advantage of these variables is that the name itself contains semantic information. CSS files become easier to read and understand: main-text-color is easier to understand than the reuse of #00ff00 throughout the text, especially if this same color is also used in another context.

How CSS Variables can help
     In imperative programming languages, like Java, C++, or even JavaScript, the state can be tracked through the notion of variables. Variables are symbolic names associated with a given value that can vary with the time.

     In a declarative language like CSS, time-changing values are not common, and the concept of variables is also uncommon.

     Nevertheless, CSS introduces the notion of cascading variables in order to help solve the maintainability challenge. This allows for symbolically refering to a value throughout the CSS tree.

What are CSS VariableS
     CSS Variables currently have two forms:

     Variables, which are an association between an identifier and a value that can be used in place of any regular values, using the var() functional notation: var(--example-variable) returns the value of the --example-variable value.
     Custom properties, which are special properties of the form --* where * represents the variable name. These are used to define the value of a given variable: --example-variable: 20px; is a CSS declaration, using the custom --* property to set the value of the CSS variable --example-variable to 20px.


Example Program:- (Editor)


Editor is Loading...

Advertisement

Tuesday, 10 May 2016

                                               ULLAKAI ARUVI WATERFALLS

   

                        Ulakkai Aruvi is a wonderful falls on Pazhayar, near its birthplace. It is so named as it looks like a wooden utensil fit as a fiddle of hour glass. Left Keeripara in our WagonR with Senthil, a domain chief based at Keeripara, who is extremely acquainted with the part. Hit Thadikarakonam and took left for Azhagiapandiapuram along SH 45 of Tamil Nadu. Short stop at Azhagiapandiapuram for get-together light eatables and entered the restricted street to one side, coordinated towards the Western Ghats is the course from Trivandrum.

SPECIALTY IN ULLAKKAI ARUVI:



                      Ulakkai Aruvi is a natural waterfall located  in Azhagiapandipuram town. Water is accessible in this water fall even in the summer season. Numerous vacationers come here for showering and to appreciate the nature. The pathway to this waterfall lies in the Reserve Forest. So you get the exceptionally immaculate air and the spot is pin drop quiet.It is located at a distance of 40 Km from Kanyakumari. Ullakaruvi falls is around 35 km from Kanyakumari town and around 17 km 


from Nagercoil town, close Azhakiyapandiapuram town. The falls is up in the center of woods slopes  which can be achieved just by foot from the base of the slopes. A hour's trek from the base of the slopes is through rough, forested region, which is exciting in itself. (On a crisp morning, one can see the waterfalls from the base of the slopes through stripped eye, or far and away superior through binoculars/zoom lens). It is a lovely waterfall and it draws in extensive number of voyagers. 

In Tamil "Ullakarvi" truly signifies 'Ullakai + Aruvi' 'all inclusive falls'. Ullakai is an apparatus which utilized for expelling the skin from the crude rice. The name of the fall is 

"Ullakai" in light of the fact that the water will fall on our head like 'Ullakai'.Likewise in the top locale of the Rock there is a spot where the water falls on a wooden bar which is inside a round rock. It would appear that a 'Ullakai'. Along these lines the waterfall got its name.There are two falls. They are the lower falls and the higher falls. The water is essentially spring water, from the slopes close-by. The lower part of the waterfalls and the spot one spans after the trek. This is a decent excursion spot. The perspective from this spot of the greenery underneath the slopes is invigorating. A cool shower here can unwind sooth our heart. The water here is cool notwithstanding amid the hot months, in spite of the fact that the water stream is less amid the late spring months. To achieve the Higher falls, one needs to move around 200 meters tough. Solid individuals alone are suggested to visit the 'higher falls'.

VARIOUS PHOTOGRAPHS OF ULLAKKAI ARUVI




































ROUTE MAP:

By Road:

Kanyakumari -----> Nagercoil -----> Puthery ----->Thittuvilai -----> Azhagiyapandiyapuram ----->Perunthalaikadu.
Till Perunthalaikadu, there is road network.From Perunthalaikadu,you have to trek for about 3 Kms inside the
forest to reach the falls.

By Train:

Nearest Railway station: Nagercoil.

By Airport:

Nearest Airport: Trivandrum