Monday, 19 October 2015

Raspberry Pi Starter Guide


The Raspberry Pi is an amazing little computer that fits perfectly in the palm of your hand, yet it’s able to pack enough power to run a VPN, your home media center and a lot more. Before you can do anything good, however, you will need to configure the Raspberry Pi and install an operating system. Here’s a simple guide on how to do that.

A Raspberry Pi Defined

It’s a very capable mini computer that is small enough to fit in your pocket. For about $30-45, you will get a caseless computer with an HDMI and analog composite video output. You can add up to two different USB devices and connect it to the internet via ethernet. The Raspberry Pi is inexpensive and powerful thus allowing you to create a home media center, VPN server or internet radio on the cheap. That said, set up equipment and a lot of other parts are required to get it ready.

What You Will Need

The Raspberry Pi may be a small computer on its own, but you will still need a couple of other things to make it work.

A Raspberry Pi

m An HDMI, or a video-capable connecting to a monitor or a television.
In this guide we will be working with an HDMI capable and a monitor because a monitor offers built-in sound and a better resolution.

A 4GB SD card Class 4+ and a card reader
A majority of SD cards will work, but some SD cards are not compatible and will therefore cause some issues. .

A USB mouse and keyboard: Any standard USB mouse or keyboard will do the job. Wireless peripherals will also work, but you will have to unplug them and then plug them back in after the Raspberry Pi boots.

An ethernet cable: Any ethernet cable will do. You will only need this cable to connect to your network,thus gain internet access.

A quality, USB power supply that can be able to provide at least
700 milliAmps at 5V.



A 3.5mm audio cable:

You will only need this if you are using analog video and you want to connect your Raspberry Pi to external speakers or internal ones on your monitor or television.
You can find most of these items pretty much anywhere, i.e online shops, stores, e.t.c

How to Setup Your Raspberry Pi

You can use your Raspberry Pi for a couple of different things–some that may require special operating systems, but first off, it’s a good idea to understand the Pi by installing Raspbian, which is a Raspberry Pi-focused version of Linux.

1. Prepare Your SD Card

The first thing you need to do is to prepare your SD card for the Pi. This will involve formatting the SD card properly and putting Raspbian, which is the standard Raspberry Pi operating system, on it. The steps will vary depending on the operating system, but in this article, we are going to discuss how to setup the Pi on Windows.

2. Setup on Windows

1. Download the most recent version of Raspbian and then unzip the .img file inside. (It’s about 500MB thus it may take a some time to download.)

2. Download Win32 Disk Imager and then unzip the application (it’s a .exe file) inside.

3. Insert your microSD card into the Windows PC using a card reader.

4. Open the Win32 Disk Imager.exe, you just downloaded by double-clicking on it. If you’re running on Windows 7, 8 or 10 right click on the application and select “Run as Administrator” instead.

5. If the SD card is not automatically detected by the application, just click on the dropdown menu at the top right and choose it from the list.

6. In the img file section of your application, click on the little folder icon and then choose the Raspbian .img file that you just downloaded.

7. Click on the Write button and wait for the Win32 Disk Imager to do its thing. When it completes, you can now safely eject the SD card and insert it into your Raspberry Pi. You are ready to go!!

To Know More About Raspberry pi Reference Visit us…

Source : Click Here

Tuesday, 13 October 2015

PYTHON 2.7 REFERENCE


Python is a high level, widely used general-purpose language. Its design emphasizes on code readability, and its syntax allows the programmers to express concepts in fewer(less) lines of code than would be possible with other languages g. C++ or Java

Python 2.7 supports multiple paradigms of programming, including imperative, object-oriented, and functional programming. Python features a very dynamic type system and automatic memory management and has a very comprehensive, large standard library.

Basic functions

abs(): The absolute value

all(): All of the elements of an iterable true?

any(): Are there any of the members of an iterable true?

bin(): To convert to binary

bool(): To convert to Boolean

bytearray(): To create a byte array

chr(): To get the character with a given code

cmp(): To compare two values

complex(): To convert to complex type

dict(): To convert to a dictionary

divmod(): The quotient and remainder

enumerate(): The step through indices and values of an iterable

file(): To open a file

filter(): To extract qualifying elements from an iterable

float(): To convert to float type

format(): To format a value

frozenset(): To create a frozen set

hex(): To convert to base 16

int(): To convert to int type

input(): To read an expression from the user

iter(): To produce an iterator over a sequence

len(): The number of elements

list(): To convert to a list

long(): To convert to long type

map(): To apply a function to each element of an iterable

max(): The largest element of an iterable

min(): The mallest element of an iterable

next(): To call an iterator

oct(): To convert to base 8

open(): To open a file

ord(): To find the numeric code for a character

pow(): The exponentiation

range(): To generate an arithmetic progression as a list

raw_input(): To prompt and read a string from the user

reduce(): The sequence reduction

reversed(): To produce a reverse iterator

round(): To round to the nearest integral value

set(): To create an algebraic set

sorted(): To sort a sequence

str(): To convert to str type

sum(): The total the elements of a sequence

tuple(): To convert to a tuple

type(): To return a value's type

unichr(): To convert a numeric code to a Unicode character

unicode(): To convert to a Unicode string

xrange(): The arithmetic progression generator

zip(): To combine multiple sequences

Advanced functions

basestring: The base class of the string.

callable(): Is it callable?

delattr(): To delete a named attribute

dir(): To display a namespace names

eval(): To evaluate an expression in source form

execfile(): To execute a Python source file

getattr(): To retrieve an attribute of a given name

globals(): The dictionary of global name bindings

hasattr(): What does a value have an attribute of a given name?

id(): The unique identifier

isinstance(): Is it a value an instance of some class or type?

issubclass(): Is it a class a subclass of some other class?

locals(): The dictionary of local name bindings

property(): To create an access-controlled attribute

reload(): To reload a module

repr(): The representation

setattr(): To set an attribute

slice(): To create a slice instance

staticmethod(): To create a static method

super(): The superclass

vars(): The local variables

To Know More About python 2.7 reference Visit us...

Source : Click Here

Tuesday, 6 October 2015

Groovy Commands Reference

The groovy shell has a quite number of different commands, which provide rich access to the groovy shell’s environment.

Commands all have a shortcut (which is something like \h) and a name . The commands may also have some predefined system aliases. The users may also create their own aliases.



1.4.1. Recognized Commands

help

To display the list of commands or the help text for specific command.

The Groovy Command List

groovy:000> : i.e help

The Available commands:

 :help      (:h ) Will display this help message
  ?          (:? ) An alias to: ->help
  :exit      (:x ) Exiting the shell
  :quit      (:q ) An alias to: :exit
  import     (:i ) Importing a class into the namespace
  :display   (:d ) To display the current buffer
  :clear     (:c ) Clearing the buffer and resetting the prompt counter.
  :show      (:S ) Show’s variables, imports or classes
  :inspect   (:n ) Inspecting a variable or the last result with the GUI object browser
  :purge     (:p ) Purging variables, classes, imports or preferences
  :edit      (:e ) Editing the current buffer
  :load      (:l ) Loading a file or URL into the buffer
  .          (:. ) An alias to: ->load
  :save      (:s ) Saving the current buffer to a file
  :record    (:r ) Recording the current session to a file
  :history   (:H ) Displaying, managing and recalling edit-line history
  :alias     (:a ) Create an alias
  :set       (:= ) List or set preferences
  :register  (:rc) Registering a new command with the shell
  :doc       (:D ) This Opens a browser window displaying the specific doc for the argument

For help on a specific command just type:

    :help <command>

Help for a Command

While in the interactive groovy shell, you can ask for help for a specific command to get more details about it's function or syntax.

To Know More About Groovy language Reference Visit us..