Sunday, November 2, 2014

Design pattern


Why design pattern?
To make project new libraries are created.
New classes can be used for further program i.e. Classes are reusable.
Thus the problem which is reusable is design pattern.


Definition Design Pattern
Each pattern describes a problem which occurs over and over again in our environment and then describes the code of the solution to that problem in such a way that you can use this solution a million times over without ever doing it the same way twice.

Elements of design pattern :-
1) Pattern name
2) Problem
3) Solution
4) Consequences

The person requires documentation for design pattern i.e. Describing design pattern.
For this there are as follows:-
1) Pattern name and classification
2) Intent
3) Also known as ( different names for them e.g. Abstract class has user class name )
4) Motivation ( why person problem to motivate for design pattern )
5) Applicability ( Real life situations where used )
6) Structure ( data structures )
7) Participants ( objects and components )
8 ) Collaboration (collaborate)
9) Consequences ( Advantage and disadvantages) also drawbacks
10) Implementation
11) Sample code( code of any object oriented language )
12) Known Uses
13) Related Patterns .( relationship with other design pattern)
14) Factory methods ( only methods used for design pattern)

The catalog of design pattern :-
1) Abstract factory
2) Prototype
3) Singleton ( means single object )
4) Adaptor
5) Decorator
6) Proxy
7) Command
8) Observer
9) Strategy

Saturday, November 1, 2014

LAN wire configuration

Cat 5 is required for basic 10/100 functionality, you will want Cat 5e for gigabit (1000BaseT) operation.
The ethernet cable, are 8 color coded wires.
These wires are twisted into 4 pairs of wires, each pair has a common color theme.
One wire in the pair being a solid or primarily solid colored wire and the other being a primarily white wire with a colored stripe (Sometimes ethernet cables won't have any color on the striped wire, the only way to tell which is which is to check which wire it is twisted around).
Examples of the naming schemes used are: Orange (alternatively Orange/White) for the solid colored wire and White/Orange for the striped cable. The twists are extremely important.

RJ45 :-
RJ-45 conductor data cable contains 4 pairs of wires each consists of a solid colored wire and a strip of the same color. There are two wiring standards for RJ-45 wiring: T-568A and T-568B. Although there are 4 pairs of wires, 10BaseT/100BaseT Ethernet uses only 2 pairs: Orange and Green. The other two colors (blue and brown) may be used for a second Ethernet line or for phone connections. The two wiring standards are used to create a cross-over cable (T-568A on one end, and T-568B on the other end), or a straight-through cable (T-568B or T-568A on both ends).
What is RJ stands for?
RJ stands for Registered Jacks. These are used in telephone and data jack wiring registered with FCC. RJ-11 is a 6-position, 4-conductor jack used in telephone wiring, and RJ-45 is a 8-position, 8-conductor jack used in 10BaseT and 100BaseT ethernet wiring.

Monday, October 27, 2014

Data Mining


Data mining is the computational process of discovering patterns in large data sets involving methods at the intersection of artificial intelligence,machine learning, statistics, and database systems.
It is sometimes called Knowledge Discovery in Databases (KDD) .

The Knowledge Discovery in Databases (KDD) process is commonly defined with the stages:

    (1) Selection
    (2) Pre-processing
    (3) Transformation
    (4) Data Mining
    (5) Interpretation/Evaluation


Data mining involves six common classes of tasks:

1)Anomaly detection (Outlier/change/deviation detection) – The identification of unusual data records, that might be interesting or data errors that require further investigation.

2)Association rule learning (Dependency modeling) – Searches for relationships between variables. For example a supermarket might gather data on customer purchasing habits. Using association rule learning, the supermarket can determine which products are frequently bought together and use this information for marketing purposes. This is sometimes referred to as market basket analysis.

3)Clustering – is the task of discovering groups and structures in the data that are in some way or another "similar", without using known structures in the data.

4)Classification – is the task of generalizing known structure to apply to new data. For example, an e-mail program might attempt to classify an e-mail as "legitimate" or as "spam".

5)Regression – attempts to find a function which models the data with the least error.
 
6)Summarization – providing a more compact representation of the data set, including visualization and report generation.

In business, data mining is the analysis of historical business activities, stored as static data in data warehouse databases. The goal is to reveal hidden patterns and trends.

In recent years, data mining has been used widely in the areas of science and engineering, such as bioinformatics, genetics, medicine, education and electrical power engineering.

Data mining of government records – particularly records of the justice system (i.e., courts, prisons) – enables the discovery of systemic human rights violations in connection to generation and publication of invalid or fraudulent legal records by various government agencies.

Friday, September 12, 2014

Tablet

Today's tablet computers sport touch screens ranging in size from 7- up to 13-inches. These dimensions are by no means static, and boundaries can be blurred as smartphones get larger displays


Features of tablet :-
I) Hardware :-
1. High-definition, anti-glare display
2. Wireless local area and internet connectivity (usually with Wi-Fi standard and optional mobile broadband)
3. Front- and/or back- facing camera(s) for photographs and video
4. Lower weight and longer battery life than a comparably-sized laptop
5. Bluetooth for connecting peripherals and communicating with local devices
6. Early devices had IR support and could work as a TV remote controller.
7. Docking station: Keyboard and USB port(s)

Note:-
Special hardware: The tablets can be equipped with special hardware to provide functionality, such as camera, GPS and local data storage.

II) Software :-
1. Mobile web browser
2. Reader for digital books, periodicals and other content
3. Downloadable apps such as games, education and utilities
4. Portable media player function including video playback
5.  Email and social media
6. Mobile phone functions (messaging, speakerphone, address book)
7. Video-teleconferencing

III) Data storage :-
1. On-board flash memory
2. Ports for removable storage
3. Various cloud storage services for backup and syncing data across devices
4. Local storage on a LAN

IV) Additional inputs :-
Besides a touchscreen and keyboard, some tablets can also use these input methods:
1. Proximity sensor to detect if the device is close to something, in particular, to your ear, and can block unintended touches
2. Accelerometer: Detects the physical movement and orientation of the tablet. This allows the touchscreen display to shift to either portrait or landscape mode. In addition, tilting the tablet may be used as an input (for instance to steer in a driving game)
3. Ambient light and proximity sensors, which help distinguish between intentional and unintentional touches
4. Speech recognition
5. Gesture recognition
6. Character recognition to allow you to write text on the tablet, that can be stored as any other text in the intended storage, instead of using a keyboard.


To run your tablet smoothly:
1. Remove unnecessary apps and make more room.
2. Disable flashy settings that don’t really serve any important purpose.
3. Keep your screen clean (literally and virtually).
4. Format your external storage on a regular basis.

To install OS on your Tablet you need Android OS file that are compatible with your tablet and Software tools:
Memory card has to be made bootable. For this the PhoenixCard tool is needed.
First format the memory card, then select the  compatible Android ISO file. Please note that different tablet need different ISO files.

Thursday, September 11, 2014

iPad

The iPad is not a replacement for a laptop. Tablets are good at many things, but their abilities are a subset of a laptop's. You can't, for example, burn a music CD to listen to in the car, or a DVD of your latest home movie. It isn't particularly easy to print from an iPad, either, although it is possible in some apps (you can print an email, a document or a web page if you have a compatible printer).
Features of iPad or Advantages of iPad: 
1)Battery life:
With an iPad, you'll be freed from the mains all day, since it will last for at least eight (if not 10 or 12) hours of constant use.
2)Portability and comfort:

It's more comfortable to sit and use an iPad, it doesn't get too warm and there are no fans, unlike most laptops whose high-pitched fans can drive you to distraction.
3)Touchscreen interface :
You can type very fast on the iPad's virtual, on-screen keyboard.The iPad's interface is, in general, hugely intuitive.
4)Instant on and connected standby:
An iPad doesn't take minutes to boot up: it's ready to go instantly, so it's quick to check email and Facebook, or the weather forecast or TV listings.

iPad

Disadvantages of iPad: 
1) Storage:
The iPad has no way of adding storage, so you're effectively stuck with the capacity you buy.
2)File formats:
 The iPad is much more restrictive and requires videos, for example, to be in MP4 (H.264) format before they'll play. It means you might have to convert files before you can play them, which could be more hassle than you're willing to accept.
For photos and music, the iPad supports the common JPG and MP3 formats, so these aren't a problem for most people.
Education and healthcare
The iPad has several uses in the classroom, and has been praised as a valuable tool for homeschooling.Soon after the iPad was released, it was reported that 81% of the top book apps were for children. The iPad has also been called a revolutionary tool to help children with autism learn how to communicate and socialize more easily.
In the healthcare field, iPads and iPhones have been used to help hospitals manage their supply chain. For example, Novation, a healthcare contracting services company, developed VHA PriceLynx (based on the mobile application platform of business intelligence software vendor MicroStrategy), a business intelligence app to help health care organizations manage its purchasing procedures more efficiently and save money for hospitals. Guillermo Ramas of Novation states, "Doctors won't walk around a hospital with a laptop. With an iPad it's perfect to walk around the hospital with as long as they have the information they need."
In 2013, Gianna Chien (aged 14) presented to more than 8,000 doctors at the Heart Rhythm Society meeting that Apple iPad 2 can, in some cases, interfere with life-saving heart devices (pace maker) because of the magnets inside. Apple's webpage has advised pacemaker users to keep iPads at least 6-inches away from the pacemaker.

iBooks
The iPad has an optional iBooks application that can be downloaded from the App Store, which displays books and other ePub-format content downloaded from the iBookstore.

Internet connectivity in iPad:
The iPad can use Wi-Fi network trilateration from Skyhook Wireless to provide location information to applications such as Google Maps. The 3G model supports A-GPS to allow its position to be calculated with GPS or relative to nearby cellphone towers; it also has a black strip on the back to aid 3G reception. The iPad has a headphone jack and a proprietary Apple dock connector, but no Ethernet or USB port. However, the Apple Camera Connection Kit accessory provides two dock connector adapters for importing photos and videos via USB and SD memory cards.

Global warming and green house effect

 The heating up of the earth surface due to trapping of infrared radiations reflected by earth's surface by CO2 layer in the atmosphere is called green house effect.

Some major green house gases and their sources:


GasSources
Carbon Dioxide
(CO2)
1)Fossil fuel combination (coal,oil,natural gas)
2) Deforestation and land use changes
Methane
(CH4)
1) Enteric fermentation in cattle and insects.
2) Biomass burning and garbage land fills
3) Leakage of gases from coal mines and natural gas.
4) Rice paddies
5) Swamps and tundra
Chloro fluoro carbon
(CFC'S)
1) Plastic foams
2) Refrigeration and air-conditioning
3) Aerosols (spray propellants) CFC'
4) Industrial solvents
Nitrous oxide
(N2O)
1) Fertilizer use
2) Fossil fuel combustion
3) Biomass burning
4) Changing land use

Global warming and green house effect

An increase in average temperature  of the earth's atmosphere due to green house effect which can have effects on climate and key life, support system of planet.
An increase in global temperature is also likely to increase the incidences of infections diseases like malaria, dengue, sleeping sickness and yellow fever.

Computer model predicts that during next 50 years the average temperature rise from 1.5 0 C to 3.5 0C.
Such a change ,which is very rapid by natural standards ,could have far reaching effects , especially at extreme levels .These could be in the form of
1) a rise in sea levels up-to 5 to 6 meters from the melting of ice cap and glaciers and the thermal expansions of sea water.
2) altered climate pattern altering ecosystems and
3) more extremes of weather .

Wednesday, September 10, 2014

Logarithm


LogarithmDefinition Logarithm :
If m= a x, where a>0 ,a not equal to 1 , m>0 then x is called the logarithm of m to the base a and is written as x = log a m, where m, a, x are real numbers.

Laws of logarithms:
1. Law of Product: log (A.B) =log A +log B
2. Law of Quotient : log(A/B) =log A - log B
3. Law of Exponent : log m n = n log m

Properties:
1)We have m = a x if and only if x = log a m.
2)Logarithms of negative numbers and zero are not defined.
3) a0 =1 Hence, 0 = log a 1
i.e. logarithm of 1 to any base is always zero.
4) a1 =a Hence , 1 = log a a
i.e. logarithm of any number to the same base is 1.
5) x = log a ax
6) If log a m = log a n then m = n
7)If a>1 and m>n then log a m > log a n and conversely.

Write logarithm form:
1) 5 3 = 125
Solution:
3 = log 5 125   (By definition of logarithm)

2) 8 3 =512
Solution:
3 = log 8 512   (By definition of logarithm)


Express in exponential form:
1) log 2 128 = 7
Solution: 128 = 2 (By definition of logarithm)

2) log 9 6561 =4
Solution: 6561 = 2 (By definition of logarithm)


Simplify : 
1) log 5 + 2 log 4
Solution:
=log 5 + log 42 (By Law of Exponent)
=log 5 + log 16
=log (5 . 16) (By law of Product)
=log 80

2) 2 log 7 - log 14
Solution:
=log 7 2 - log 14 (By Law of Exponent)
=log 49 - log 14
=log (49/14) (By law of Quotient)
=log (7/2)

3)log 3 + log 2 - 2 log 5
Solution:
=log 3 + log 2 - log 52 (By Law of Exponent)
=log 3 + log 2 - log 25
=log (3 . 2) - log 25 (By Law of Product)
=log 6 - log 25
=log (6/25) (By Law of Quotient)

4) 2 log 3 - 1/2 log 16 + log 12
Solution:
=log 3 2 - log 16 1/2 + log 12 (By Law of Exponent)
=log 9 - log4 + log 12
=log (9/4) + log 12 (By Law of Quotient)
=log (9/4 .12) (By Law of Product)
=log (9. 3)
=log 27


Prove that:
1) log 540 = 2 log 2 + 3 log 3 + log 5
Solution:
L.H.S = log (540)
=log (4 X 27 X 5)
=log ( 22 X 33 X 5)
=log 22 + log 33 + log 5 (By Law of Product)
=2 log 2 + 3 log 3 +log 5 (By Law of Exponent)
=R.H.S.
Hence, log 540 = 2 log 2 + 3 log 3 + log 5

OR

R.H.S =2 log 2 + 3 log 3 + log5
=log 2 2 + log 33 + log 5 (By Law of Exponent)
=log 4 + log 27 + log 5
=log (4 X 27 X 5) (By Law of Product)
=log 540
=L.H.S.
Hence, log 540 = 2 log 2 + 3 log 3 + log 5

2) log 360 = 3 log 2 + 2 log 3 + log 5
R.H.S =3 log 2 + 2 log 3 + log5
=log 2 3 + log 32 + log 5 (By Law of Exponent)
=log 8 + log 9 + log 5
=log (8 X 9 X 5) (By Law of Product)
=log 360
=L.H.S.
Hence, log 360 = 3 log 2 + 2 log 3 + log 5

OR

L.H.S = log (360)
=log (8 X 9 X 5)
=log ( 23 X 32 X 5)
=log 23 + log 32 + log 5 (By Law of Product)
=3 log 2 + 2 log 3 + log 5 (By Law of Exponent)
=R.H.S.
Hence, log 360 = 3 log 2 + 2 log 3 + log 5


Evaluate:
1) log 81/log 9
=log 92 / log 9
=2 log 9 / log 9   (By Law of Exponent)
=2

2)log 2 5 / log2 11 - log4 5 / log4 11
Solution :
We know ,Change of Base formula is log a m = log m /log a

=log 5/log 2/log 11/log 2 - log 5/log 4/ log 11 /log 4
=log 5 . log 2 / log 11 . log 2 - log 5 .log 4 / log 11 .log 4
=log 5 / log 11 - log5 / log 11
=0

Embedded systems


Difference between Static RAM Dynamic RAM.

Static RAM Dynamic RAM
1. SRAM1. DRAM
2. It retains it levels so no require refreshing2. It requires some refreshing.
3. Power consumption is more3. Power consumption is less.
4. Speed is fast.4. Speed is less.
5. Package density is low.5. Package density is high.
6. Size can't be increase.6. Size can increase.
7. More expensive.7. Less expensive.
8. Made up of 6 CMOS transistors(MOSFET).8. Made up of a MOSFET and a capacitor.



Difference between RISC and CISC processors/controllers.

RISCCISC
1. It stands for Reduced Instruction Set Computing.1. It stands for Complex Instruction Set Computing.
2. Lesser number of instructions.2. Greater number of Instructions
3. Instruction pipe-lining and increased execution speed.3. Generally no instruction pipe-lining feature.
4. Orthogonal instruction set.4. Non-Orthogonal instruction set.
5. Operations are performed on register only, the only memory operations are load and store.5. Operations are performed on register or memory depending on the instruction.
6. A large number of registers are available6. Limited number of general purpose register.
7. Programmer needs to write more code to execute a task since the instruction are simpler ones.7. Instructions are like macros in C language. A programmer can achieve the desired functionality with a single instruction.
8. Single, fixed length instructions.8. Variable length instructions
9. Less silicon usage and pin count.9. More silicon usage since more additional decoder logic as required.
10. With Harvard Architecture.10. Can be Harvard or Von- Neumann Architecture.



Difference between microprocessor and micro-controller.

MicroprocessorMicro-controller
1.A silicon chip representing a central processing unit (CPU), which is capable of performing arithmetic as well as logical operations according to a pre defined set of instructions.1.A micro-controller is a highly integrated chip that contains a CPU, scratchpad RAM, special and general purpose register arrays, on chip ROM / FLASH memory for program storage, timer and interrupt control units and dedicated  I/O ports.
2.It is a dependent unit .It requires the combination of other chips like timers, program and data memory chips, interrupt controllers, etc. for functioning.2.It is a self-contained unit and it doesn't require external interrupt controller , timer , UART , etc. for its functioning.
3.Most of the time general purpose in design and operation .3.Mostly application-oriented or domain - specific.
4. Doesn't, contain a built in I/O port.The I/O port functionality needs to be implemented with the help of external programmable peripheral interface chips like 8255.4.Most of the processor contain multiple built-in I/O ports which can be operated as a single 8 or 16 or 32 bit port or as individual port pins.
5.Targeted for high end market where performance is important.5.Targeted for embedded market where performance is not critical.
6.Limited power saving options compared to micro-controllers.6.Includes lot of power saving features.



Difference between Harvard Architecture and Von-Neumann Architecture.

Harvard ArchitectureVon-Neumann Architecture.
1.Separate buses for instruction and data fetching.1.Single shared bus for instruction and data fetching.
2.Easier to pipeline , so high performance can be achieved .2. Low performance compared to Harvard architecture
3.Comparatively high cost.3. Cheaper
4.No memory alignment problems.4. Allow self modifying codes.
5.Since data memory and program memory are stores physically in different locations, no chances for accidental corruption of program memory.5. Since data memory and program memory are stores physically in the same chip , chances for accidental corruption of program memory.



Sunday, August 31, 2014

Higher knowledge in education system

Education is a continuous process.In the new education system , more emphasis is put on the student and his learning abilities.The learning process has been given its due importance as compared to the teaching process.Hence, it is the aim of all the teaching aids like diagrams,charts,video clips,slides,etc. and methods to make the learning process simple,effective and enjoyable .In fact,rectification of all the queries  and difficulties of a student and motivating him to acquire higher and higher knowledge is the true aim of an education system.

Computers programs can also be developed to test a particular skill and knowledge of a student . Nowadays , some of the examinations are conducted on the computer itself and the results are declared within minutes. Hence the traditional evaluation methods can be replaced by automated evaluation methods.
Moreover,depending on the results of the evaluation,computers can also suggest the methods to improve the skill and knowledge of the student. We should not forget the fact that even some of the websites on the Internet conduct courses on various subjects.If required ,a student can also learn and obtain certificates or degrees on the Internet itself.



Taking into consideration all these facts, we come to the conclusion that the computer is becoming an integral part of our education system .Computers can be used as a valuable tool or resource in teaching and learning at all levels. All students must be encouraged to use computers for learning as well as solving of their problems.Expensive books,remote areas,over population,traditional and less effective teaching and learning aids and all other problems will be eliminated with the implementation of Computers Education in our education in our system.

Nowadays, Internet has become a valuable tool for education system. It is a great source of knowledge.Internet is useful for students as well as experts for obtaining the reference materials and related information on a variety  of subjects like history ,civics,commerce, science and technology , painting, music, entertainment , geography , mathematics , politics , etc. with help of various websites.Presentation is the most important factor of the learning process.For the  students of higher education , computer acts as a computational tool. It can be used to learn various languages.

Featured posts

Happy Independence Day August 15th

 Here's a message for India's Independence Day (August 15th): "शुभ स्वतंत्रता दिवस! आजादी की 79वीं वर्षगांठ पर, आइए हम अपने देश...

Popular posts