AllInWorld99 provides a reference manual covering many aspects of web programming, including technologies such as HTML, XHTML, CSS, XML, JavaScript, PHP, ASP, SQL,FLASH, jQuery, java, for loop, switch case, if, if else, for...of, for...in, for...each,while loop, blogger tips, blogger meta tag generator, blogger tricks, blogger pagination, client side script, html code editor, javascript editor with instant output, css editor, online html editor, materialize css tutorial, materialize css dropdown list,break, continue statement, label,array, json, get day and month dropdown list using c# code, CSS button,protect cd or pendrive from virus, cordova, android example, html and css to make android app, html code play,telerik show hide column, Transparent image convertor, copy to clipboard using javascript without using any swf file, simple animation using css, SQL etc. AllInWorld99 presents thousands of code examples (accompanied with source code) which can be copied/downloaded independantly. By using the online editor provided,readers can edit the examples and execute the code experimentally.


     The toExponential() method returns a string representing the Number object in exponential notation.

Parameters
fractionDigits
     Optional. An integer specifying the number of digits after the decimal point. Defaults to as many digits as necessary to specify the number.
Returns

     A string representing a Number object in exponential notation with one digit before the decimal point, rounded to fractionDigits digits after the decimal point. If the fractionDigits argument is omitted, the number of digits after the decimal point defaults to the number of digits necessary to represent the value uniquely.

     If you use the toExponential() method for a numeric literal and the numeric literal has no exponent and no decimal point, leave a space before the dot that precedes the method call to prevent the dot from being interpreted as a decimal point.

     If a number has more digits than requested by the fractionDigits parameter, the number is rounded to the nearest number represented by fractionDigits digits. See the discussion of rounding in the description of the toFixed() method, which also applies to toExponential().

Throws

RangeError
     If fractionDigits is too small or too large. Values between 0 and 20, inclusive, will not cause a RangeError. Implementations are allowed to support larger and smaller values as well.
TypeError
     If this method is invoked on an object that is not a Number.
     The Math.min() function returns the smallest of zero or more numbers. min() is a static method of Math, you always use it as Math.min(), rather than as a method of a Math object you created (Math is not a constructor).

     If no arguments are given, the result is Infinity.
     If at least one of arguments cannot be converted to a number, the result is NaN.

     The Math.max() function returns the largest of zero or more numbers. max() is a static method of Math, you always use it as Math.max(), rather than as a method of a Math object you created (Math is not a constructor).

     If no arguments are given, the result is -Infinity.
     If at least one of arguments cannot be converted to a number, the result is NaN.

     The Math.floor() function returns the largest integer less than or equal to a given number. floor() is a static method of Math, you always use it as Math.floor(), rather than as a method of a Math object you created (Math is not a constructor).

     The Math.random() function returns a floating-point, pseudo-random number in the range [0, 1] that is, from 0 (inclusive) up to but not including 1 (exclusive), which you can then scale to your desired range. The implementation selects the initial seed to the random number generation algorithm; it cannot be chosen or reset by the user.
     The Math.round() function returns the value of a number rounded to the nearest integer. If the fractional portion of number is 0.5 or greater, the argument is rounded to the next higher integer. If the fractional portion of number is less than 0.5, the argument is rounded to the next lower integer.

     Because round() is a static method of Math, you always use it as Math.round(), rather than as a method of a Math object you created (Math has no constructor).
     The Math.ceil() function returns the smallest integer greater than or equal to a given number. ceil() is a static method of Math, you always use it as Math.ceil(), rather than as a method of a Math object you created (Math is not a constructor).

Math.abs()    - The Math.abs() function returns the absolute value of a number.
Math.pow()  - The Math.pow() function returns the base to the exponent power, that is, baseexponent.
Math.sqrt()   - The Math.sqrt() function returns the square root of a number.


     The JavaScript Array object is a global object that is used in the construction of arrays; which are high-level, list-like objects.
     The Array.isArray() method returns true if an object is an array, false if it is not. It will check the specified value is array or not, if it is array return true value and if not return false.

     The toString() method returns a string representing the specified array and its elements. The Array object overrides the toString method of Object. For Array objects, the toString method joins the array and returns one string containing each array element separated by commas. For example, the following code creates an array and uses toString to convert the array to a string.

          The join() method joins all elements of an array into a string. The string conversions of all array elements are joined into one string. If an element is undefined or null, it is converted to the empty string.

     The pop() method removes the last element from an array and returns that element.

     pop() is intentionally generic; this method can be called or applied to objects resembling arrays. Objects which do not contain a length property reflecting the last in a series of consecutive, zero-based numerical properties may not behave in any meaningful manner.

If you call pop() on an empty array, it returns undefined.
     In the following example, I want to fill the name exactly 20 characters, if the character count is exceed 20 character remove remaining character and if the character is lesser than 20 character fill with blank space(left aligned).

Example
  SELECT convert(nvarchar(20),LEFT(CONVERT(NVARCHAR, 'Merbin Joe') + SPACE(20), 20)) Name

This will produce
 Merbin Joe
Left align with fixed number of characters





But you can't able to see the blank space's so you should need to identify the space using [] or other way.

SELECT quotename(convert(nvarchar(20),LEFT(CONVERT(NVARCHAR, 'Merbin Joe') + SPACE(20), 20))) Name

quoutename in sql






     The shift method removes the element at the 0'th index and shifts the values at consecutive indexes down, then returns the removed value. If the length property is 0, undefined is returned.
     In the following example we showing how to move the content one place to another place using drag/drop concept in jQuery.
                                                       VATTAKOTTAI FORT







Vattakottai Fort (Circular Fort) is a shoreline fortress worked in eighteenth century as a beach front protection stronghold and sleeping shelter in the recent Travancore kingdom. It was developed under the summon of Captain Eustachius De Lannoy amid the rule of Travancore King Marthandavarma(1729-58) in the eighteenth century.
STATISTICAL DETAILS OF VATTAKOTTAI FORT:
                                
Image result for vattakottai fort images                         It is rectangular in shape and covers an area of about three and a half acres. The fort is enclosed by walls 25 to 26 feet high, including the parapet, 29 feet thick at the front, 18 feet at the corners and 6 feet at the rear. 
The fort is made of granite blocks and, today, a part of the fort extends into the sea. It is a protected site under the Indian archaeological department. A major renovation of the fort was undertaken recently by the department, and the site is now a popular tourist spot. 

ROUTE MAP:


                            


                       Vattakottai Fort is about 7 km from Kanyakumari. The sea is so calm and ideal for a refreshing dip. The small river by the side of the fort, and the green vegetation all around add to the scenery of the fort. Vattakottai Fort is also famous for the black sand beaches that is situated across its coast.
By rail:             
       Some of the trains plying to and from Kanyakumari are: 
    • Chennai Egmore Express
    • Tiruchirappalli - Howrah Express
    • Himsagar Express
By air:
        Kanyakumari does not have an airport of its own. The nearest airport serving the town isThiruvananthapuram Airport, which is 80 km away from the place. Taxi services are available from this international airport to take you to Kanyakumari.

VARIOUS PHOTOGRAPHS OF VATTAKOTTAI FORT:










ENTRANCE FEE: Free.

VISITING HOURS: 8 AM to 5 PM

     We can insert the value into array using following methods.
     If you delete the array value using delete operator, the index value not removed but the value is removed.

     Remove the existing value from the array and return the removed values. In this method original array is affected.

Syntax

     array.splice(start,deletecount[,newval1,newval2,newvaln]);
Example

     var ar=["red","green","Apricot","Guava"];
     ar.splice(0,2,"Apple","Banana");

     
                                      PADMANABHAPURAM  PALACE


                                      The obsolete evident town Padmanabhapuram is one of the four locales in the territory is 55 Km. south of Trivandrum, around two km. east of Thuckalay and 35 km. from Kanyakumari on the Trivandrum-Cape Comerin road. This town is enveloped by a post with a locale of 187 areas of area. The old capital of Travancore might be created before AD 1601. The château with a locale of seven segments of area, is orchestrated in the extraordinarily concentrate on the Padmanabhapuram Fort, amidst inclines, dales and conduits. The stronghold which is orchestrated in Kanyakumari District is under the control of a Curator of the Archeological Department of Kerala Government.

                     The fortification which was worked with mud initially was disassembled and reproduced with rock by Maharaja Marthanda Varma. The tallness of the dividers differs from 15' to 24' as per the slant of the ground.

HISTORICAL DETAILS OF PADMANABHAPURAM PALACE:
                   

                 The royal residence was developed around 1601 AD by Iravi Varma Kulasekhara Perumal who ruled Venad somewhere around 1592 and 1609. It is trusted that the Thai Kottaram was implicit 1550. The author of cutting edge Travancore, King Anizham Thirunal Marthanda Varma (1706–1758) who ruled Travancore from 1729 to 1758, modified the royal residence in around 1750. Ruler Marthaanda Varma committed the kingdom to his family divinity Sree Padmanabha, a type of Lord Vishnu and ruled the kingdom as Padmanabha dasa or worker of Lord Padmanabha. Thus the name Padmanabhapuram or City of Lord Padmanabha.

                      In the late eighteenth century, unequivocally in 1795 the capital of Travancore was moved from here to Thiruvananthapuram, and the spot lost its previous transcendence. In any case, the castle complex keeps on being one of the best illustrations of conventional Kerala design, and a few segments of the sprawling complex are additionally the sign of customary Kerala style engineering. The Palace however encompassed altogether by the State of Tamil Nadu is still some portion of Kerala and the area and Palace fits in with the Government of Kerala. This Palace is kept up by the Govt.of Kerala Archeology Department.

                     Padmanabhapuram Palace was reconstructed using granite in most parts by Anizham Thirunal Marthanda Varma in 18th century. Karthika Thirunal Rama Varma, the successor of Marthanda Varma built ‘Oottupura’ and other features. ‘Upparikka Maliga’, the King’s quarters was built in 1744 A.D.



HIGHLIGHS IN  PADMANABHAPURAM PALACE:



     Mantrasala (King's Council Champer)

                     

         
                   King's Council chamber is the most lovely parts of the whole royal residence complex. It has windows, with shaded mica, which keep the warmth and the dust away, and within the gathering chamber stays cool and dull. Fragile and lovely grid work can be seen all around the committee chamber.The floor is likewise delightfully done, with a fine and immaculate completion. The floor is dull hued and is made of a blend of fluctuated substances, including blazed coconut shells, egg white et cetera. The astounding perspective is that this specific floor completion and composition couldn't be copied in whatever other development.

     Thai Kottaram (Mother's Palace)

                 Mother’s palace, designed in traditional Kerala style, is the oldest construction in the entire palace complex and is believed to be constructed around mid-16th century. True to the traditional Kerala style, there is an inner courtyard, called 'nalukettu'. In the inner courtyard, sloping roofs from all four sided taper down. Four pillars on four corners support the roof. On the south-west corner of the mother’s palace, there is a relatively small room, called the chamber of solitude or 'ekantha mandapam'. The camber of solitude has very beautiful and intricate wood carvings of every description all around. Of particular interest is a pillar of single wood, with very detailed and beautiful floral designs.

     Nataksala  (Hall of performance)  

               This is a relatively new building, constructed at the behest of Maharaja Swathi Thirunal, who reigned in Travancore from 1829 to 1846. He was a great connoisseur of arts, especially music and dance. He himself composed music and has left a rich legacy to classical carnatic music. The Nataksala or the hall or performance has solid granite pillars and gleaming black floor. There is a wooden enclosure, with peepholes, where the women of the royal household used to sit and watch the performance.

 Four - storeyed central building :

               The four-storied building is located at the centre of the palace complex. The top floor served as the worship chamber of the royal household. Its walls are covered with exquisite 18th century murals, depicting scenes from the puranas, and also few scenes from the social life of the Travancore of that time. There are several rooms just below the worship chambers, which included the king's bedroom. The ornamental bedstead is made of 64 types of herbal and medicinal woods, and was a gift from the Dutch merchants. Most of the rooms here and in other parts of the palace complex have built-in recesses in walls for storing weapons like swords and daggers.

 Thekee Kottaram  (Southern Palace)

               The southern palace is as old as the ‘Thai kottaram’ (Mother's palace), which would make it about 400 year old. Now, it serves as a heritage museum, exhibiting antique household articles and curios. Collections of items give an insight into the social and cultural ethos of that period

 Uppirika Malika :

         The most appealing working in the entire royal residence is the 'Uppirika Malika' which comprises of three storied. "Uppirika" is the abridged term of "Muppirika" which implies the habitation of the eldest individual from the crew. A wooden bunk is raised on the top most floor in the conviction that "Master Vishnu" the boss divinity. The main floor contains a wooden bunk made of 64 restorative plants, on which Maharaja used to rest. The restorative bunk was displayed to Maharaja "Marthanda Varma" by the Dutch East India Company in 1750, as a sign of fellowship.

The Navarathri Mandapa:

 To the west of the Zuppirika Mandapa is the Navarathri Mandapa which is an open corridor of wonderfully lovely stone columns with hanging pendants reminiscent of the Nayakar style of design. In the Navarathri Mandapa, exhibitions of Bharatha Natya and musical presentations occurred in the regal vicinity.    


Visiting Hours : From 09.00 AM to 01.00 PM and 02.00 P.M to 04.30 P.M .


Closed on:          Every Monday and National holidays    

                 

Entry Fee :Rs 25 for Adult & Rs.10 for Children.

Fees for Foreigners : Adult Rs 200 & Children Rs 50

Video and Camera Fee are Rs 1500 & Rs 25 Respectively


Separate fee for Car parking
HTML code play is a android app for learn the following programming languages
  1. html
  2. css
  3. javascript
  4. jquery
  5. angularjs
  6. knockoutjs
  7. materialize css
  8. lumx
Each and every example is manually selected and it is should be very easy to learn for starter and every one.

Google play link is
 https://play.google.com/store/apps/details?id=com.HTML.AngularJS.Codeplay

Some screen shot are shown below,

HTML Code Play -  HTML Editor Android app
     Javascript array sort() method reverses the element of an array. The first array element becomes the last and the last becomes the first.
     Javascript array reverse() method reverses the element of an array. The first array element becomes the last and the last becomes the first.
sort() in javascript
How to sort/reverse some number in array

Note:
 Remember, by default array.reverse(), reverse its elements in lexicographical order.

     In javascript will when we use the sort() method to sort the array, I will not give the exact result for numbers, it will sort the words only.

eg:)
    var ar=[45,9,200];
     Although 9 is numerically smaller than 45 or 200, lexicographically, it is larger, so 9 appears at the very right of the sorted array. Remember, by default array.sort() sorts its elements in lexicographical order.

Answer is
    ar.sort()   => [9,45,200]

 So we can use the following method to solve this problem.


sort() for numbers

    ar_num.sort(function(a, b)
    {
      return a - b;
    });


reverse() for numbers

    ar_num.sort(function(a, b)
    {
      return b - a;
    });

Example Program:- (Editor)


Editor is Loading...

Advertisement





Tag:
sort() method not working in numbers, reverse() not working in number in javascript, allinworld99 to solve number sort() and reverse() method.

Notification

Total Pageviews