Skip to main content

Posts

Showing posts from October, 2015

Questions of the Day - AngularJs Quiz Questions

AngularJs expression is written inside double braces {{ }}. i.e. {{ expression }} Yes No Can scope  work between controller and view? Yes No Which of the following is yes about AngularJs  currency filter? Currency filter is a function which takes text as input Currency filter formats text in a currency format

Quiz questions in AngularJs

Quiz demo link http://embed.plnkr.co/B10yZ4/preview The AngularJs code-sample var app = angular.module( 'quizApp' , []); app.controller( 'quizCtrl' , function ($scope) {     $scope.checkResult = function (item) {     //check answers.     };     $scope.calRresult = function () {     //calculat result.     };     $scope.quizAnsw = [{ ans: 'Igor Minar' , correct: 0 }, { ans: 'Brad Green' , correct: 0 },         { ans: 'Misko Hevery' , correct: 1 }, { ans: 'Steve Souders' , correct: 0 }]; }); The full example code(HTML + AngularJs) < !DOCTYPE html > < html > < head >     < meta charset ="utf-8" />     < title > Quiz questions in AngularJs </ title >     < link rel ="stylesheet" href ="style.css" />     < script src ="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.4.7/angular.min.js"></

Question of the Day's

Who created AngularJs  framework? Igor Minar Brad Green Misko Hevery Steve Souders Douglas Crockford

Today's Question - Indian Politics

The strength of the Constituent Assembly , after the withdrawal of the Muslim League,was reduced to 299 members 359 members Who among the following was the Chairman of the Drafting Committee? Dr. B. R. Ambedkar Dr. B. R. Ambedkar 'Bill of Rights and Judicial Review' of the Indian Constitution was incorporated from Ireland USA Which one of the following acted as the Provinsional President of the Constituent Assembly? J. L. Nehru D. Sachhidanand Sinha How many committees were set up by the Constituent Assembly for framing the Constitution of India? 12 13

What is ProcessOn and How it Can be Helped in Your Work?

P rocessOn ( processon.com ), a free diagramming web app in which everyone can draw diagrams ,create teams and share work with a social network and an extensive diagram library. Contents: Whether preparing presentation or to show documents with picture, v isual communication is one of the most effective ways to express something clearly as well as create visual contents. Traditional software to meet these needs seem to be expensive and difficult to use without guidance, meanwhile as the high demand of web technology and mobile, web apps starts to take charge of the situation. There are some good alternatives in the cloud that prevent you from mandatory installation. From all of them, ProcessOn is an excellent one. WHAT IS PROCESSON? ProcessOn is the web-based diagram creation software. While targeted primarily towards business usage, ProcessOn can be used in all sorts of different situations from business projects to teaching presentation. The uses are exten

Pass JSON into JavaScript Array

The JavaScript/jQuery code-sample var students = []; var studentsJSON = [{ "name" : "Anil" }, { "name" : "Sunil " }, { "name" : "Sushil" }]; //The for each of data. studentsJSON. forEach ( function (item) {     students.push(item.name); }); alert( JSON .stringify(students)); The Live demo url link http://embed.plnkr.co/cLywys7LszvXczJghldN/preview The Live demo code-sample for Pass JSON into JavaScript Array < !DOCTYPE html > < html > < head >     < meta charset ="utf-8" />     < title > Pass JSON intoJavaScript Array </ title >     < script src ="http://code.jquery.com/jquery-2.1.4.min.js"></ script >     < script >         var students = [];         var studentsJSON = [{ "name" : "Anil" }, { "name" : "Sunil " }, { "name" : "Sushil"

SQL Server create functions example

Hello everyone,   I am going to share the code sample for create sql functions .  Table of Contents Add returns type like varchar, int etc. Declare the return variable. Add the T-sql statements to compute the return value. Return the result of the function. The example for the same as given below. CREATE FUNCTION [dbo] . [fun_GetOrderType] (             @Return SMALLINT ,             @Reprocess SMALLINT ,             @Cancel SMALLINT ) RETURNS VARCHAR ( 10 ) AS BEGIN             -- DECLARE THE RETURN VARIABLE HERE.             DECLARE @type VARCHAR ( 10 )= 'XYZ'             -- ADD THE T-SQL STATEMENTS TO COMPUTE THE RETURN VALUE HERE.             IF ( @Return = 1 )                         SET @type = 'RE'             ELSE IF ( @Reprocess = 2 )                         SET @type = 'RPC'             ELSE IF ( @Cancel = 3 )                         SET @type = 'CNL'          

What is JSON Object?

The full name of JSON is " JavaScript Object Notation " and its lightweights used for data interchange between them.  The JSON object read and write easily than XML   and Its easily supported to Array, Object, String, Number etc. and also language independent. The example for JSON Object var JSONObject = [{  Name: 'Anil' , Age: 30   }, {         Name: 'Sunil' ,   Age: 25    }, {         Name: 'Sushil' ,  Age: 20    }, {         Name: 'Aradhya' ,  Age: 2 }    ];

Android Interview Questions and Answers

"Android is a Mobile Operating System and its developed by Google Inc. (Google Acquired Android Inc. in 2005)". Android is a mobile operating system. Android is open source. Android is also know as a mobile powerhouse. Google  Acquired Android Inc. in 2005, The Android Inc. was a small start-up. Android has a app store that is called Google play store. Android’s competitors are Apple and Windows Phone. The frequently asked questions in an interview as given below What is android and why we use android? What are the advantages/disadvantages of using an android environment? What about application architecture? What types of language support to develop an android? What types of architecture are used to develop an android? What types of key components are use to develop   an android? What is the activity of android ? What is the APK format of android ? What are ANR   and ADB in android? What is DDMS in android? What is the use of adapter in android?

Get the application physical path in windows forms application

I am going to share the code for get physical path of your application. i.e. System.IO. Path .GetDirectoryName(System.Reflection. Assembly .GetExecutingAssembly().Location) The both above and below line of code are use to get the physical path of windows forms application. i.e.                                             OR System. AppDomain .CurrentDomain.BaseDirectory

Find Selected table row using jQuery

Hello everyone, I  am going to share the code sample for find selected table rows using jQuery . The detail about it as given below. The live demo link http://embed.plnkr.co/DCS0Mt/preview The JQUERY/JavaScript code-sample $( function () {     $( '#userTable' ).on( 'click' , 'tbody tr' , function (event) {         $( this ). addClass ( 'highlight' ).siblings(). removeClass ( 'highlight' );     });     $( '#btnRowClick' ).click( function (e) {         var rows = getHighlightRow();         if (rows != undefined) {             alert(rows.attr( 'id' ));         }     });     var getHighlightRow = function () {         return $( 'table > tbody > tr.highlight' );     } }); The Live demo example(JavaScript + HTML) code-sample < !DOCTYPE html > < html > < head >     < meta charset ="utf-8" />     < title > How to