Skip to main content

Posts

Using Google Analytics with R ( RGoogle Analytics)

Steps 1. Go to https://console.developers.google.com 2.  Create a new Project 3. Go to  API and select Analytics API  (used in this e.g.) 4. Go to Consent Screen and fill the appropriate product name and save 5. Go to credentials and creat a new client ID Make sure u enter the website URL properly 6. Now run the following R script R Script require(RGoogleAnalytics) client.id="xxxxxxxxxxxxxxxxxxx" client.secret="xxxxxxxxxxxx" token <- auth="" client.id="" client.secret="" p="">ValidateToken(token) query.list <- init="" p="" start.date="2014-01-01">                   end.date = "2014-02-10",                    dimensions="ga:date,ga:pagePath,ga:hour,ga:medium",                    metrics = "ga:sessions,ga:pageviews",                    max.results=500,                    sort="-ga:date",                    filters="ga:mediu

JavaBeans

JAVA BEANS JavaBeans can be understood as java classes that can be easily reused and composed together into an application. Any java class that follows certain design conventions can be used as a javaBean component. JSP directly supports javaBean components using JSP elements. One can easily create and initialize the value of the Beans and set their properties. ·        useBean:    A JSP action element <jsp:useBean> initiates a JavaBean object into the JSP page.    Syntax: <jsp:useBean id=”object_name” class=”class_name” scope=”page|request|session|application” | /> ·        setProperty:  The <jsp:setProperty> action tag assigns a new value to the specified property of the specified bean object. Syntax: <jsp:setProperty name=”obj_name” property=”prop_name”  value=”prop_value”/> ·        getProperty:  The <jsp:getProperty> action element retrieves the value of the specified property of the specified bean ob

ABOUT LOGIC GATES ,TYPES OF LOGIC GATES

LOGIC GATES INTRODUCTION An implementation of a logic operation is called a logic gates . It is used to implement such devices are diodes, electronic switches, transistors and integrated circuits. An AND gate, for instance, is an implementation of the AND operation. Suppose it is    necessary to implement a logic gate for the function      R=F (A, B, C…) Where F is a Boolean function and R, A, B, C and so on are Boolean variable. The arguments A, B, C and so on will be the inputs to the logic gate R, the value of the function, will be its output. The structure of the gate will naturally depend on the nature of the function F. It is the normal practice to design logic gates to implement only a small number of elementary function such as AND, OR and NOT. Complex functions which are not available in the form of these ‘standard’ logic gates can be expressed in terms of the elementary functions and implement using networks of standard gates. Mainly, gate INPUTS are driven by

Transmission Media And Its Types

Transmission Media(Cont.) 1.           Guided Media: b) Coaxial Cable: Coaxial cable refers to a type of   cable   that has an inner conductor surrounded by a tubular insulating layer, surrounded by a tubular conducting shield. Usually coaxial cables also have an insulating outer sheath or jacket. It is also referred as the primary type of cabling which is used by the cable television industry and is also widely used for  computer networks, such as Ethernet.Although it is more expensive than standard telephone wire,but it is much less susceptible to interference and can carry much more data.   c)   Optical Fiber: An   optical fiber   is a flexible, transparent fiber made of extruded glass (silica) or plastic. It is used to transmit light between the two ends of the fiber. Commonly the field of   applied science and engineering   which deals with the design and application of optical fibers is known as   fiber optics . Optical fiber carries much more informat
RADIOWAVES:- Radio  is the wireless transmission of signals through free space by electromagnetic radiation with frequency significantly below that of visible light, in the radio frequency range, from about 30  KHz  to 300 GHz. These waves are called radio waves. Electromagnetic radiation travels by means of oscillating electromagnetic field that passes through the air and the vacuum of space. Transducing information such as sound into an electronic signal, this is then sent as an electromagnetic radio wave from a transmitter. A receiver intercepts the radio wave and extracts the information-bearing electronic signal, which is converted back using another transducer such as a speaker. Information, for example sound, is carried by systematically changing (modulating) some property of the radiated waves, such as their amplitude, frequency phase or pulse width. When radio waves strike an electrical conductor, the oscillating fields induce an alternating current in the conductor. The i

Transmission Media And Its Types

Transmission Media    Usually all computer communication involves encoding data in a form of energy and sending the energy across a transmission medium. In other words the physical media through which we can transmit data from one point to another is called a transmission media. The transmission of the data can be using electromagnetic signals which consist of both electrical and magnetic fields conjugating with each other.    Transmission media is divided into following two broad categories: 1.    Guided/Wired Media 2.Unguided/Wireless Media 1.    Guided Media: a) Twisted Pair Cable     The twisted pair cable consists of two insulated wires arranged in a regular spiral pattern or cable made by intertwining two separate insulated wires. It is further of two types: Unshielded Twisted Pair Cables (UTP): UTP cables as the name suggests have no protection against interference. The performance of UTP is often gets degraded. However UTP   cable   is the most common ca

Types Of Connections For Networking(Cont.)

Type Of connections for Networking(Cont.) Based on Scale , Computer networks can be classified into Local Area (LAN), Metropolitan Area Network (MAN) and Wide Area Networks (WAN). a) Local Area Network (LAN): LAN stands for Local Area Network and is usually privately owned. It spans short distances and connects relatively a small number of computers. It is generally used to link the devices in a single office, building or campus usually up to few kilometers in size. The main use of LAN is to share resources and to exchange information. LAN can be distinguished from other kinds of networks by three categories: their size, transmission technology and topology. In LANs the worst-case transmission time is bounded which means they are restricted in size. It simplifies network management and is more reliable than MAN and WAN. b) Metropolitan Area Network (MAN): MAN stands for Metropolitan Area Network. It spans a small city or a town and it usually covers the entire cit