Pages

Tuesday, September 3, 2019

Places to visit in dubai

Hi,

If you are planning to visit "Dubai" then this document is helpful for you to plan.


Click here to view > Dubai visit plan day wise


Note: Data in this document might be outdated. Please comment for changes.
--------------------------------------------------------------------------------------------------------------------------

Monday, March 25, 2013

JQuery validation for text boxes in MVC 4

This article is about validating a MVC4 Razor text box using JQuery while entering the text in to text box. The below text box will show red color background if the entered text is not in the desired format.

My requirement is that the value entered should be 0 to 99.999 only.


It will show error if the entered text is not in the given format.



Please follow the below steps to validate your text box.

You have to add a class to the text box.

@Html.TextBoxFor(p => p._samplebox, new { @class = "validtextbox" })

and include the below code:


//function to validate the text boxes

  $(document).ready(function () {
            $(".validtextbox").forceNumeric();
            $(".validtextbox").attr('maxlength', '6');

            $('.validtextbox').keyup(function () {          
                var filter = /^[0-9]?[0-9]?(\.[0-9][0-9]?[0-9]?)?$/
                if (filter.test(this.value)) {
                    $(this).css('background-color', '#ffffff');
                }
                else {
                    $(this).css('background-color', '#EABEC1');                  
                }
            });
        });
     
        // forceNumeric() plug-in implementation
        jQuery.fn.forceNumeric = function () {

            return this.each(function () {
                $(this).keydown(function (e) {
                    var key = e.which || e.keyCode;

                    if (!e.shiftKey && !e.altKey && !e.ctrlKey && // numbers
                        key >= 48 && key <= 57 || // Numeric keypad
                        key >= 96 && key <= 105 || // comma, period and minus, . on keypad
                        key == 190 || key == 188 || key == 109 || key == 110 || // Backspace and Tab and Enter
                        key == 8 || key == 9 || key == 13 || // Home and End
                        key == 35 || key == 36 || // left and right arrows
                        key == 37 || key == 39 || // Del and Ins
                        key == 46 || key == 45)  return true;

                    return false;
                });
            });
        }

Happy coding :)


     


Wednesday, April 20, 2011

Basic steps to make our web site best ranked in search-engines:

Basic steps to make our web site best ranked in search-engines:



  1. Accurate and Individual Page titles for all the pages and have to use the meta data and the key words.

  2. Have to make use of the site links to navigate in the inner pages. Links will be effectively taken by the search engine. Create a sitemap to navigate in inner pages.

  3. Use clear and better content in the website. If we need to use images, it's a must to use alt text for the image. Use anchor tags in the site content.

  4. Better to use robots.txt for the pages which are not useful for the users.

  5. We can Promote your website in the web with the following ways.

    I) Submit your site to Google, Yahoo and Bing webmaster tools.

    II) Use Google Analytics to know the complete statistics of our site.

  6. Frequent update of content will make our site to be best ranked.

  7. Add XML Site map to the site. So that all the pages will be crawled by the search-engines.

Thursday, April 7, 2011

QR CODE

What it is?



A QR -"Quick Response", is the code that allows its contents to be decoded at high speed. QR is a type of 2D barcode, also known as mobile tagging because smartphones can be used to read the codes.


Where to use?


Here are a few ways that we can use QR codes for the SEO practices.



  • On business cards: A fast and simple way to use QR codes for our own professional purposes.

  • On marketing materials: We can print this QR Code on fliers, brochures, programs, handouts, whitepapers and a myriad of other materials in our media kit.

  • For freebies: If we really want people to pay attention to our QR codes, make them good for something fun. Say we’ve placed a QR code decal in our storefront window, why not reward those who scan it with 10% off their purchase or a free pastry?


Advantages:



  • QR Codes can be used to store addresses and URLs that can appear in magazines, on signs, buses, business cards or just about any product that users might need information about. For brands, QR codes are a really cost effective way to provide more information and drive consumers online, which will increase traffic to our website. QR codes are interactive by their very nature and allow engagement to be measured.


Disadvantages:



  • 2D barcodes have many disadvantages, which are currently hindering their adoption in the West. With so many different code versions from 'QR' to Microsoft's 'Tag', there is no standard reader. Therefore, a consumer has to download multiple readers in order to scan different codes.

  • Subsequently, the vast majority of mobile manufactures have resisted pre-installing QR code readers on their handsets. Consumers have to download the correct app to read the code. They then have to open the app each time to scan a code, which can take longer than typing in a URL.

  • If we going to use QR codes for small business marketing, we have to keep in mind that QR codes — and the apps that scan them — are still foreign to most people.


QR V/s SEO


QR Codes are essentially paper-based hyperlinks that can be translated by smartphones, and lead to websites which will increase traffic to our site. Many newspaper advertisers, like restaurants, use them to offer special deals that are not available to the average reader.

If you add them to your website, the search engines will see that your pages have changed, and that you are updating pages. The search engine will see a new image and index it accordingly. At some point soon, the search engines will likely recognize QR codes and possibly index the content in them.

Until the use of QR codes becomes a bit more familiar, the SEO and SEM implications for using them are going to be up in the air. The game-changing reality of the mobile internet is going to have a radical impact on how sites make money in the future, and QR codes may very well be the bridge between print and digital that keeps our brand in the viewer’s mind.


QR V/s Google


In a rather unusual move to promote its services, Google has started sending out stickers of business entities on its Places Pages to various locations.  Those are not ordinary stickers though as they bear QR Codes which can be scanned by supported mobile phones which are then linked to the specific businesses on Google Places Pages.

More than 100,000 local businesses have been sent out with these stickers, and chances are you might see these stickers on local shops in the coming days. These businesses are the most sought out and researched businesses on both Google.com and Google Maps.

Google will let us write a review about a particular product or store, right there on the spot.

But Google now stopped issuing the QR Codes.


Conclusion:



  • QR codes are graphics that can take a mobile phone's browser to a page on the web, through this we can increase traffic to our websites.

  • Google used to automatically offer businesses that use Google Places a QR code for their web site but Google quietly stopped offering that code and has removed the code for those who already had it.

  • Google is likely trying to prep or nudge the market for NFC.

  • NFC = Near Field Communication; another way to get info from "something" into a mobile phone.

  • QR codes aren't going away yet as they're cheap & flexible.

Tuesday, January 18, 2011

How to customize Youtube home page?

Changing Background of the Youtube Homepage


We can customize out Youtube home page. We can change the look and feel as we like. Here i will explain simple way to customize your youtube homepage


First login to your youtube account. Go to My Channel option as shown.



Now you can see different options on the top bar. Settings, Themes and Colors, Modules and Videos and Playlists.


We can change the back ground color by selecting Themes and Colors Option. Now you can see different options as seen below



Now you can upload the Background image you like. It will apply to the Home page of your Youtube account. You can decrease the transparency of Wrapper and Color Pallet and even you can change the font and font colors also.


Customizing modules of the youtube Home page


You can add or remove the modules on the HomePage of your youtube account. Google provided with some dozen's of modules. You can see those module by selecting the modules option on the top bar. Please the image below.



Check the modules which are necessary and Uncheck the modules which are not necessary for you.


You can change the layout of the videos and can change the videos to be shown on the home page. Select the option videos and playlist to customize the video list.



In this way we can customize our youtube home page / Channel.