পৃষ্ঠাসমূহ
Labels
Search Your Article
CS
Welcome to GoogleDG – your one-stop destination for free learning resources, guides, and digital tools.
At GoogleDG, we believe that knowledge should be accessible to everyone. Our mission is to provide readers with valuable ebooks, tutorials, and tech-related content that makes learning easier, faster, and more enjoyable.
What We Offer:
-
📘 Free & Helpful Ebooks – covering education, technology, self-development, and more.
-
💻 Step-by-Step Tutorials – practical guides on digital tools, apps, and software.
-
🌐 Tech Updates & Tips – simplified information to keep you informed in the fast-changing digital world.
-
🎯 Learning Support – resources designed to support students, professionals, and lifelong learners.
✔ Latest world News
Our Vision
To create a digital knowledge hub where anyone, from beginners to advanced learners, can find trustworthy resources and grow their skills.
Why Choose Us?
✔ Simple explanations of complex topics
✔ 100% free access to resources
✔ Regularly updated content
✔ A community that values knowledge sharing
We are continuously working to expand our content library and provide readers with the most useful and relevant digital learning materials.
📩 If you’d like to connect, share feedback, or suggest topics, feel free to reach us through the Contact page.
Pageviews
Thursday, February 9, 2017
Angular Material - Environment Setup
How to Use Angular Material?
There are two ways to use Angular Material:- Local Installation - You can download the Angular Material
libraries using npm, jspm, or bower on your local machine and include
it in your HTML code.
Angular Material - Autocomplete
md-autocomplete, an Angular Directive, is used as a
special input control with an inbuilt drop-down to show all possible
matches to a custom query. This control acts as a real-time suggestion
box as soon as the user types in the input area.Angular Material - Bottom Sheet
$mdBottomSheet, an Angular Service, is used to open a bottom sheet over the application and provides a simple promise API.Methods
| S.N. | Method & Description |
|---|---|
| 1 | $mdBottomSheet.show(options); Show a bottom sheet with the specified options. |
Angular Material - Cards
md-card, an Angular Directive, is a container directive
and is used to draw cards in angularjs application. Following are the
angular directives and classes used in md-card.Angular Material - Widgets
Angular Material - Layouts
Layout Directive
layout directive on a container element is used to specify the layout direction for its children. Following are the assignable values:Angular Material - Inputs
md-input-container an Angular directive, is a container component to contains any <input> or <textarea> element as a child. md-input-container
also supports error handling using the standard ng-messages directives
and animates the messages using ngEnter/ngLeave events or the
ngShow/ngHide events.Angular Material - Icons
md-icon an Angular directive, is a component to show
vector-based icons in application. It supports icon fonts and SVG icons
also apart from using Google Material Icons.Angular Material - Grids
md-grid-list an Angular directive, is a component
for laying out content for varying screen sizes. A grid has 12 columns
in the desktop size screen, 8 in the tablet size screen, and 4 in the
phone size screen, where each size have predefined margins and gutters.
Cells are laid out in sequential manner in a row, in the order they are
defined.Angular Material - SideNav
md-sidenav, an Angular directives is used to show a
container component which can be shown or hide programmatically. It
slides out over the top of the main content region by default.Angular Material - Fab Speed Dial
md-fab-speed-dial an Angular directive, is used to show a series of popup elements or buttons for quick access to common actions.Attributes
Angular Material - Subheaders
md-subheader, an Angular directives is used to show a subheader for a section.Example
The following example showcases the use ofmd-subheader showcase uses of subheader component.am_subheaders.htm
<html lang="en" >
Angular Material - Swipe
md-swipe-down, an Angular directives is used to specify custom behavior when an element is swiped down.md-swipe-left, an Angular directives is used to specify custom behavior when an element is swiped left.
Angular Material - Switches
md-switch, an Angular directives is used to show a switch.Attributes
| S.N. | Parameter & Description |
|---|---|
| 1 | * ng-model Assignable angular expression to data-bind to. |
| 2 | name |
Angular Material - Theme
Angular Material - Toasts
$mdToast service is used to show toasts.Angular Material - Typography
| S.N. | Class Name & Description |
|---|---|
| 1 | md-display-1 Shows the text with Regular 34px. |
Angular Material - Virtual Repeat
md-virtual-repeat-container
md-virtual-repeat-container is the scroll container for the md-virtual-repeat component.Attributes - md-virtual-repeat-container
| S.N. | Parameter & Description |
|---|---|
| 1 | md-top-index Binds the index of the item that is at the top of the scroll container to $scope. It can both read and set the scroll position. |
Angular Material - WhiteFrame
| S.N. | Class Name & Description |
|---|---|
| 1 | md-whiteframe-1dp Styles a container for any HTML content with 1px bordered shadow. Adds z-depth of 1. |
Angular Material - Quick Guide
What is Angular Material?
Angular Material is a UI component library for Angular JS developers. Angular Material's reusable UI components helps in constructing attractive, consistent, and functional web pages and web apps while adhering to modern web design principles like browser portability, device independence, and graceful degradation.Angular Material - Useful Resources
Angular Material - Discussion
What is AJAX?
- AJAX stands for Asynchronous JavaScript and XML. AJAX is a new technique for creating better, faster, and more interactive web applications with the help of XML, HTML, CSS, and Java Script.
- Ajax uses XHTML for content, CSS for presentation, along with Document Object Model and JavaScript for dynamic content display.
AJAX - Technologies
JavaScript
- Loosely typed scripting language.
- JavaScript function is called when an event occurs in a page.
- Glue for the whole AJAX operation.
AJAX - Examples
Google Maps
A user can drag an entire map by using the mouse, rather than clicking on a button.AJAX - Browser Support
- Mozilla Firefox 1.0 and above.
- Netscape version 7.1 and above.
- Apple Safari 1.2 and above.
AJAX - Action
Steps of AJAX Operation
- A client event occurs.
- An XMLHttpRequest object is created.
- The XMLHttpRequest object is configured.
AJAX - XMLHttpRequest
AJAX - Database Operations
AJAX - Security
AJAX Security: Server Side
- AJAX-based Web applications use the same server-side security schemes of regular Web applications.
AJAX - Issues
AJAX - Quick Guide
What is AJAX?
- AJAX stands for Asynchronous JavaScript and XML.
AJAX is a new technique for creating better, faster, and more
interactive web applications with the help of XML, HTML, CSS, and Java
Script.
AJAX - Useful Resources
Discuss AJAX
If you know JavaScript, HTML, CSS, and XML, then you need to spend just one hour to start with AJAX.
VBA - Overview
It helps techies to build customized applications and solutions to enhance the capabilities of those applications.
VBA - Excel Macros
Step 1 − First, enable 'Developer' menu in Excel 20XX. To do the same, click File → Options.
Step 2 − Click ‘Customize the Ribbon’ tab and check 'Developer'. Click 'OK'.
VBA - Excel Terms
VBA - Macro Comments
VBA - Message Box
VBA - InputBox
VBA - Variables
VBA - Constants
VBA - Operators
VBA - Decisions
Following is the general form of a typical decision making structure found in most of the programming languages.
VBA - Loops
VBA - Strings
VBA - Date-Time Function
VBA - Arrays
VBA - User Defined Functions
VBA - Sub Procedure
- Sub procedures DO NOT Return a value while functions may or may not return a value.
- Sub procedures CAN be called without a call keyword.
- Sub procedures are always enclosed within Sub and End Sub statements.
VBA - Events
VBA - Error Handling
Syntax errors
Syntax errors, also called as parsing errors, occur at the interpretation time for VBScript. For example, the following line causes a syntax error because it is missing a closing parenthesis.VBA - Excel Objects
- Application Objects
- Workbook Objects
- Worksheet Objects
- Range Objects
VBA - Text Files
- File System Object
- using Write Command
VBA - Programming Charts
Step 1 − Enter the data against which the graph has to be generated.
VBA - User Forms
VBA - Quick Guide
It helps techies to build customized applications and solutions to enhance the capabilities of those applications.
VBA - Useful Resources
Discuss VBA
Wednesday, February 8, 2017
VB.Net - Overview
VB.Net - Environment Setup
We have already mentioned that VB.Net is part of .Net framework and used for writing .Net applications. Therefore before discussing the available tools for running a VB.Net program, let us understand how VB.Net relates to the .Net framework.
VB.Net - Program Structure
VB.Net - Basic Syntax
VB.Net - Data Types
VB.Net - Variables
VB.Net - Constants and Enumerations
Constants can be of any of the basic data types like an integer constant, a floating constant, a character constant, or a string literal. There are also enumeration constants as well.
VB.Net - Modifiers
VB.Net - Statements
Statements could be categorized as:
VB.Net - Directives
All these directives begin with #, and only white-space characters may appear before a directive on a line. These directives are not statements.
VB.Net - Operators
VB.Net - Decision Making
VB.Net - Loops
VB.Net - Strings
VB.Net - Date & Time
VB.Net - Arrays
All arrays consist of contiguous memory locations.
VB.Net - Collections
VB.Net - Functions
- Functions
- Sub procedures or Subs
VB.Net - Sub Procedures
VB.Net - Classes & Objects
VB.Net - Exception Handling
Exceptions provide a way to transfer control from one part of a program to another. VB.Net exception handling is built upon four keywords: Try, Catch, Finally and Throw.
VB.Net - File Handling
The stream is basically the sequence of bytes passing through the communication path. There are two main streams: the input stream and the output stream.
VB.Net - Basic Controls
VB.Net - Dialog Boxes
VB.Net - Advanced Form
- Adding menus and sub menus in an application
- Adding the cut, copy and paste functionalities in a form
- Anchoring and docking controls in a form
- Modal forms
VB.Net - Event Handling
Clicking on a button, or entering some text in a text box, or clicking on a menu item, all are examples of events. An event is an action that calls a function or may cause another event.
VB.Net - Regular Expressions
VB.Net - Database Access
Microsoft ActiveX Data Objects.Net (ADO.Net) is a model, a part of the .Net framework that is used by the .Net applications for retrieving, accessing and updating data.
VB.Net - Excel Sheet
To avail this interoperability in your application, you need to import the namespace Microsoft.Office.Interop.Excel in your Windows Form Application.
VB.Net - Send Email
The following table lists some of these commonly used classes:
VB.Net - XML Processing
The System.Xml namespace in the .Net Framework contains classes for processing XML documents.
VB.Net - Web Programming
- Server-side scripting - these are programs executed on a
web server, written using server-side scripting languages like ASP
(Active Server Pages) or JSP (Java Server Pages).
VB.Net - Quick Guide
VB.Net - Overview
Visual Basic .NET (VB.NET) is an object-oriented computer programming language implemented on the .NET Framework. Although it is an evolution of classic Visual Basic language, it is not backwards-compatible with VB6, and any code written in the old version does not compile under VB.NET.VB.Net - Useful Resources
Discuss VB.Net
Swift - Overview
Swift - Environment
Try it Option Online
We have set up the Swift Programming environment online, so that you can compile and execute all the available examples online. It gives you confidence in what you are reading and enables you to verify the programs with different options. Feel free to modify any example and execute it online.
Swift - Basic Syntax
Swift - Data Types
Swift - Variables
Swift supports the following basic types of variables −
Swift - Optionals
An Optional is a type on its own, actually one of Swift’s new super-powered enums. It has two possible values, None and Some(T), where T is an associated value of the correct data type available in Swift.
Swift - Constants
Swift - Literals
42 // Integer literal 3.14159 // Floating-point literal "Hello, world!" // String literal
Swift - Operators
- Arithmetic Operators
- Comparison Operators
- Logical Operators
Swift - Decision Making
Swift - Loops
Swift - Strings
Swift - Characters
import Cocoa let char1: Character = "A" let char2: Character = "B"
Swift - Arrays
Swift - Dictionaries
Swift - Functions
Swift - Closures
Swift - Enumerations
Swift - Structures
Swift - Classes
Swift - Properties
Difference between Stored Properties and Computed Properties.
Swift - Methods
Swift - Subscripts
Swift - Inheritance
- Sub Class − when a class inherits properties, methods and functions from another class it is called as sub class
Swift - Initialization
Swift - Deinitialization
Swift - ARC Overview
Swift - Optional Chaining
- if the optional contains a 'value' then calling its related property, methods and subscripts returns values.
- if the optional contains a 'nil' value all its its related property, methods and subscripts returns nil.
Swift - Type Casting
Swift type casting provides two operators 'is' to check the type of a value and 'as' and to cast the type value to a different type.
Swift - Extensions
Swift - Protocols
Swift - Generics
Swift - Access Control
Swift - Quick Guide
- Swift makes use of safe programming patterns.
- Swift provides modern programming features.
- Swift provides Objective-C like syntax.
Swift - Useful Resources
Discuss Swift
Socket.IO - Overview
Socket.IO
Socket.IO is a JavaScript library for realtime web applications. It enables realtime, bi-directional communication between web clients and servers. It has two parts: a client-side library that runs in the browser, and a server-side library for node.js. Both components have a nearly identical API.Socket.IO - Environment
Socket.IO - Hello World
var app = require('express')(); var http = require('http').Server(app); app.get('/', function(req, res){ res.sendfile('index.html'); });
Socket.IO - Event Handling
Socket.IO - Broadcasting
Socket.IO - Namespaces
This is a useful feature to minimize the number of resources (TCP connections) and at the same time separate concerns within your application by introducing separation between communication channels.
Socket.IO - Rooms
Rooms also share the same socket connection like namespaces.
Socket.IO - Error Handling
Socket.IO - Logging and Debugging
Earlier socket.IO used to log everything to the console making it quite difficult to actually debug the problem. After the v1.0 release, you can specify what you want to log.
Socket.IO - Internals
Fallbacks
Socket.IO has a lot of underlying transport mechanisms, which deal with various constraints arising due to cross browser issues, WebSocket implementations, firewalls, port blocking, etc.Though W3C has a defined specification for WebSocket API, it is still lacking in implementation.
Socket.IO - Chat Application
Socket.IO - Quick Guide
Socket.IO
Socket.IO is a JavaScript library for realtime web applications. It enables realtime, bi-directional communication between web clients and servers. It has two parts: a client-side library that runs in the browser, and a server-side library for node.js. Both components have a nearly identical API.Socket.IO - Useful Resources
Socket.IO - Discussion
Scala - Overview
Scala - Environment Setup
Try it Option Online
We have set up the Scala Programming environment on-line, so that you can compile and execute all the available examples on line. It gives you confidence in what you are reading and enables you to verify the programs with different options. Feel free to modify any example and execute it on-line.
Scala - Basic Syntax
Scala - Data Types
Scala - Variables
Based on the data type of a variable, the compiler allocates memory and decides what can be stored in the reserved memory.
Scala - Classes & Objects
Scala - Access Modifiers
Scala - Operators
- Arithmetic Operators
- Relational Operators
- Logical Operators
- Bitwise Operators
- Assignment Operators
Scala - IF ELSE Statements
Scala - Loop Statements
There may be a situation, when you need to execute a block of code several number of times. In general, statements are executed sequentially: The first statement in a function is executed first, followed by the second, and so on.
Scala - Functions
Scala - Closures
The following piece of code with anonymous function.
val multiplier = (i:Int) => i * 10
Scala - Strings
Scala - Arrays
Scala - Collections
Scala - Traits
Scala - Pattern Matching
Scala - Regular Expressions
Try the following example program where we will try to find out word Scala from a statement.
Scala - Exception Handling
Scala - Extractors
Scala - Files I/O
The following is an example program to writing to a file.
Scala - Quick Guide
Scala - Overview
Scala, short for Scalable Language, is a hybrid functional programming language. It was created by Martin Odersky. Scala smoothly integrates the features of object-oriented and functional languages. Scala is compiled to run on the Java Virtual Machine.Scala - Useful Resources
Discuss Scala
Monday, February 6, 2017
Rexx - Overview
Rexx - Environment
Try it Option Online
We have set up the Rexx Programming environment on-line, so that you can compile and execute all the available examples on line. It gives you confidence in what you are reading and enables you to verify the programs with different options. Feel free to modify any example and execute it on-line.
Rexx - Installation
Step 1 − Launch the Installer downloaded in the earlier section. After the installer starts, click on the Run button.
Rexx - Installation of Plugin-Ins
Rexx - Basic Syntax
Example
/* Main program */ say "Hello World"
Rexx - DataTypes
Rexx - Variables
Rexx - Operators
Rexx has various types of operators which are also explained in detail as follows −
Rexx - Arrays
Rexx - Loops
Rexx - Decision Making
The following diagram shows the general form of a typical decision-making structure found in most of the programming languages.
Rexx - Numbers
- Integer − A string of numerics that does not contain a
decimal point or exponent identifier. The first character can be a plus
(+) or minus (-) sign. The number that is represented must be between
-2147483648 and 2147483647, inclusive.
Rexx - Strings
/* Main program */ a = "This is a string" say aThe output of the above program is as follows −
This is a string
Rexx - Functions
Rexx - Stacks
Rexx - File I/O
- Reading files
- Writing to files
- Seeing whether a file is a file or directory
Rexx - Functions For Files
| S.No. | Functions for Files |
|---|---|
| 1 | Lines
This function returns either the value 1 or the number of lines left
to read in an input stream. The filename is given as the input to the
function. |
Rexx - Subroutines
In Rexx, modules can be written using Subroutines and functions. Let’s look at the subroutines in detail.
Rexx - Built-In Functions
Let’s look at all of these functions available in Rexx.
Rexx - System Commands
For example, technology teams in an IT organization can have the need to have scripts which do common everyday tasks.
Rexx - XML
Rexx - Regina
Rexx - Parsing
The general format of the parse statement is as follows −
Rexx - Signals
- One is to transfer control to another part of the program. This is normally like the go-to label which is used in other programming languages.
- The other is to go to a specific trap label.
Rexx - Debugging
Rexx - Error Handling
The following are some of the various error conditions that are seen in Rexx.
Rexx - Object Oriented
Rexx - Portability
Rexx - Extended Functions
Rexx - Instructions
Rexx - Implementations
Rexx - Netrexx
Rexx - Brexx
Rexx - Databases
- HSQLDB
- Oracle
- SQL Server
- MySQL
- MongoDB
Rexx - Handheld & Embedded Programming
Rexx - Performance
Rexx - Best Programming Practices
Hint 1
Use the address command before you issue any command to the operating system or command prompt. This will help you get the address space beforehand in memory and cause your program to run more efficiently.An example of the address command is shown below.
Example
/* Main program */ address system dirThe output of the command is as follows, but it could vary from system to system.
Volume in drive H is Apps Volume Serial Number is 8E66-AC3D Directory of H:\ 06/30/2016 01:28 AM <DIR> Apps 07/05/2016 03:40 AM 463 main.class 07/07/2016 01:30 AM 46 main.nrx 07/07/2016 01:42 AM 38 main.rexx 3 File(s) 547 bytes Dir(s) 313,085,173,760 bytes free
Hint 2
Ensure all commands to the operating system are in upper case and in quotes wherever possible.An example for the same is shown below.
Example
/* Main program */ options arexx_bifs say chdir('\REXXML100') say directory()When we run the above program, we will get the following result.
0 D:\rexxxml100
Hint 3
Avoid creating big comment blocks as shown in the following program.Example
/******/ /* */ /* */ /* */ /******/ /* Main program */ address system dir
Hint 4
Use the Parse statement to assign default values. An example for the same is shown below.Example
parse value 0 1 with a, b
Hint 5
Use the "Left(var1,2)" statement wherever possible instead of the “substr(var1,1,2)" statement.Hint 6
Use the "Right(var1,2)" statement wherever possible instead of the “substr(var1,length(var1),2)" statement.Rexx - Graphical User Interface
Rexx - Reginald
Rexx - Web Programming
Once done, make sure to add the mod Rexx modules to the class path.
Rexx - Quick Guide
Rexx - Useful Resources
Discuss Rexx
R - Overview
The core of R is an interpreted computer language which allows branching and looping as well as modular programming using functions. R allows integration with the procedures written in the C, C++, .Net, Python or FORTRAN languages for efficiency.
R is freely available under the GNU General Public License, and pre-compiled binary versions are provided for various operating systems like Linux, Windows and Mac.
R is free software distributed under a GNU-style copy left, and an official part of the GNU project called GNU S.
Evolution of R
R was initially written by Ross Ihaka and Robert Gentleman at the Department of Statistics of the University of Auckland in Auckland, New Zealand. R made its first appearance in 1993.R - Environment Setup
Try it Option Online
You really do not need to set up your own environment to start learning R programming language. Reason is very simple, we already have set up R Programming environment online, so that you can compile and execute all the available examples online at the same time when you are doing your theory work.
R - Basic Syntax
R - Data Types
R - Variables
R - Operators
R - Decision making
R - Loops
R - Functions
R - Strings
R - Vectors
R - Lists
R - Matrices
R - Arrays
R - Factors
R - Data Frames
Following are the characteristics of a data frame.
R - Packages
R - Data Reshaping
R - CSV Files
R - Excel File
R - Binary Files
R - XML Files
R - JSON Files
R - Web Data
R - Databases
R - Pie Charts
R - Bar Charts
R - Boxplots
R - Histograms
R - Line Graphs
R - Scatterplots
The simple scatterplot is created using the plot() function.
R - Mean, Median & Mode
The functions we are discussing in this chapter are mean, median and mode.
R - Linear Regression
R - Multiple Regression
R - Logistic Regression
R - Normal Distribution
R - Binomial Distribution
R - Poisson Regression
R - Analysis of Covariance
R - Time Series Analysis
R - Nonlinear Least Square
R - Decision Tree
R - Random Forest
R - Survival Analysis
R - Chi Square Test
R - Interview Questions
R - Quick Guide
R - Overview
R is a programming language and software environment for statistical analysis, graphics representation and reporting. R was created by Ross Ihaka and Robert Gentleman at the University of Auckland, New Zealand, and is currently developed by the R Development Core Team.R - Useful Resources
Discuss R
Pascal - Overview
Pascal - Environment Set Up
Try it Option Online
We have set up the Pascal Programming environment online, so that you can compile and execute all the available examples online. It gives you confidence in what you are reading and enables you to verify the programs with different options. Feel free to modify any example and execute it online.
Pascal - Program Structures
Pascal - Basic Syntax
Pascal - Data Types
Integer, real, Boolean and character types are referred as standard data types. Data types can be categorized as scalar, pointer and structured data types. Examples of scalar data types are integer, real, Boolean, character, subrange and enumerated. Structured data types are made of the scalar types; for example, arrays, records, files and sets. We will discuss the pointer data types later.
Pascal Data Types
Pascal data types can be summarized as below in the following diagram −
Type Declarations
The type declaration is used to declare the data type of an identifier. Syntax of type declaration is −type-identifier-1, type-identfier-2 = type-specifier;For example, the following declaration defines the variables days and age as integer type, yes and true as Boolean type, name and city as string type, fees and expenses as real type.
type days, age = integer; yes, true = boolean; name, city = string; fees, expenses = real;
Integer Types
Following table gives you details about standard integer types with its storage sizes and value ranges used in Object Pascal −| Type | Minimum | Maximum | Format |
|---|---|---|---|
| Integer | -2147483648 | 2147483647 | signed 32-bit |
| Cardinal | 0 | 4294967295 | unsigned 32-bit |
| Shortint | -128 | 127 | signed 8-bit |
| Smallint | -32768 | 32767 | signed 16-bit |
| Longint | -2147483648 | 2147483647 | signed 32-bit |
| Int64 | -2^63 | 2^63 - 1 | signed 64-bit |
| Byte | 0 | 255 | unsigned 8-bit |
| Word | 0 | 65535 | unsigned 16-bit |
| Longword | 0 | 4294967295 | unsigned 32-bit |
Constants
Use of constants makes a program more readable and helps to keep special quantities at one place in the beginning of the program. Pascal allows numerical, logical, string and character constants. Constants can be declared in the declaration part of the program by specifying the const declaration.Syntax of constant type declaration is follows −
const Identifier = contant_value;Following are some examples of constant declarations −
VELOCITY_LIGHT = 3.0E=10; PIE = 3.141592; NAME = 'Stuart Little'; CHOICE = yes; OPERATOR = '+';All constant declarations must be given before the variable declaration.
Enumerated types
Enumerated data types are user-defined data types. They allow values to be specified in a list. Only assignment operators and relational operators are permitted on enumerated data type. Enumerated data types can be declared as follows −type enum-identifier = (item1, item2, item3, ... )Following are some examples of enumerated type declarations −
type SUMMER = (April, May, June, July, September); COLORS = (Red, Green, Blue, Yellow, Magenta, Cyan, Black, White); TRANSPORT = (Bus, Train, Airplane, Ship);The order in which the items are listed in the domain of an enumerated type defines the order of the items. For example, in the enumerated type SUMMER, April comes before May, May comes before June, and so on. The domain of enumerated type identifiers cannot consist of numeric or character constants.