pipes in angular 4 -Part-2
What is it? 1.A pipe is to format the value of an expression displayed in the view. 2.The framework comes with multiple predefined pipes, such as date, currency, lowercase, uppercase, and others. 3.Syntax: {{expression | pipeName:inputParam1}} 4.If the pipe takes...
read morepipes in angular 4
What is Angular 4 pipes: 1.A pipe is to format the value of an expression displayed in the view. 2.The framework comes with multiple predefined pipes, such as date, currency, lowercase, uppercase, and others. 3.Syntax: {{expression | pipeName:inputParam1}} 4.If the...
read moreangular 4 services with example
When we write the angular source code we usually need some data functions that would be shared across different components in an application. In that condition, we have to write same function code in different components that don't make sense. In this scenario, we can...
read morefunctions in python
functions in python Function definition There are some simple rules to define a function in Python. They are as follows: Use the def keyword followed by function name with parentheses () Any argument to the function must be placed within these parentheses () The code...
read moreDictionary in Python
What is Dictionary a built-in data structure available in Python a dictionary is a sequence of key-value, or item, pairs separated by commas. Ex port = {22: "SSH", 23: "Telnet" , 53: "DNS", 80: "HTTP" } . In a list, values are indexed by the range of numbers, but in a...
read moreList in Python with example
What is List: a built-in data structure available in Python a list of comma-separated values (items) between square brackets. It can contain heterogeneous values such as integers, floats, strings, tuples, lists, and dictionaries. Python lists are mutable; yes, they...
read morePython String Handling
Basics of Python Strings. A Python string is a sequence, which consists of zero or more characters. The string is an immutable data structure, which means they cannot be changed. String Function Len function: In order to find the length of the string. Ex len(string...
read moreradiobuttonfor in mvc example | entity framework
Example of RadioButtonfor helper with entity framework HtmlHelper class include two extension methods to generate a element in a razor view: RadioButton() and RadioButtonFor(). RadioButton() method Signature: MvcHtmlString RadioButton(string name, object value, bool...
read morecheckboxfor in mvc 5 example | Entity framework |
Example of Checkboxfor helper with entity framework Html helper class have two methods to generate checkboxes( Checkbox() –Loosely Typed MvcHtmlString CheckBox(string name, bool isChecked, object htmlAttributes) Checkboxfor() –Strongly Typed (It...
read moredata caching in asp.net c# example
What is Caching Ø Caching provides a way of storing frequently accessed data and reusing that data. ØImprove performance of web application using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; namespace...
read moregeneric repository pattern c# entity framework 6 | Lecture 16 | hindi
What is Repository Pattern 1.reduces repetitive code and separates the Data Access and Business Logic Used for resuability 2.Easy for further changes. How to implement Repository Pattern 1.Create an interface.- Define all CRUD functions for 2.A class implement...
read moresingleton design pattern asp.net C#
What is singleton pattern 1.A class Object having only one instance and able to perform all task. 2.This design pattern is considered as creational(object creation) design pattern. 3.No constructor parameters are allowed while creating an instance. How to implement...
read moreUPDATE and DELETE – SQLite3 with Python 3 | Lecture 18
Source Code import sqlite3 db = sqlite3.connect('ganesha.db') cursor = db.cursor() id1=2 name1 = 'AAA' # cursor.execute('update info3 set name = ? where id = ?',(name1,id1)) cursor.execute('delete from info3 where id = ?',(id1,)) db.commit()...
read moreRead from (SELECT) Database table – SQLite3 with Python 3
Source Code import sqlite3 db = sqlite3.connect('ganesha.db') cursor = db.cursor() id1 = 2 cursor.execute('select *from info3 where id=?',(id1,)) multiplerecord = cursor.fetchall() # print(singlerecord[1]) for row in multiplerecord: # print(row)...
read moreinsert python variable values in database table
How to insert data in Table using Python 1.? Placeholder 2.Using python tuple and keyname placeholder import sqlite3 db = sqlite3.connect('ganesha.db') id1 = 1 name1= 'yogesh' id2 = 2 name = 'vikas' cursor = db.cursor() # ? Placeholder # cursor.execute('insert into...
read moreapache pig language introduction
PIG Introduction Big is an Apache open source project pig works on MapReduce and hdfs and the script that we will read write to perform data analysis is called pig Latin. PIG is capable to read data from local file system and hdfs and able to write output data on hdfs...
read morehive udf example
Hive functions Command : SHOW FUNCTIONS (to see all in-built functions) To show Complete details of in-built function. Descibe function concat Calling Functions: Select concat(fname,lname) as fullname from emp Functions Types 1. Standard Functions : round(),...
read moreangular4 two way binding | example
Two way data Binding in Angular 4 Types of Data Binding in Angular 4 Three Types : 1.No Binding Example : One-Way...
read more