Skip to main content

Posts

Showing posts from January, 2017

Who Uses Python Today?

At this writing, the best estimate anyone can seem to make of the size of the Python user base is that there are roughly more than 1 million Python users around the world today. This estimate is based on various statistics, like download rates, web statistics, and developer surveys. Because Python is open source, a more exact count is difficult—there are no license registrations to tally. Moreover, Python is automatically included with Linux distributions, Macintosh computers, and a wide range of products and hardware, further clouding the user-base picture. In general, though, Python enjoys a large user base and a very active developer community. It is generally considered to be in the top 5 or top 10 most widely used programming languages in the world today (its exact ranking varies per source and date). Because Python has been around for over two decades and has been widely used, it is also very stable and robust. Besides being leveraged by individual users, Python is also bein...

Raspberry Pi Operating System

Raspbian No matter how good the hardware of the Raspberry Pi is, without an operating system it is just a piece of silicon, PCB, and a few other materials. There are several different operating systems for the Raspberry Pi, including RISC OS, Pidora, Arch Linux, and Raspbian. Currently, Raspbian is the most popular Linux-based operating system for the Raspberry Pi. Raspbian is an open source operating system based on Debian, which has been modified specifically for the Raspberry Pi (thus the name Raspbian). Raspbian includes customizations that are designed to make the Raspberry Pi easier to use and includes many different software packages out of the box. Raspbian is designed to be easy to use and is the recommended operating system for beginners to start off with their Raspberry Pi. Debian The Debian operating system was created in August 1993 by Ian Murdock and is one of the original distributions of Linux. As Raspbian is based on the Debian operating system, ...

Raspberry Pi

Despite first impressions, the Raspberry Pi is not a tasty snack. The Raspberry Pi is a small, powerful, and inexpensive single board computer developed over several years by the Raspberry Pi Foundation. If you are a looking for a low cost, small, easy-to-use computer for your next project, or are interested in learning how computers work, then the Raspberry Pi is for you. Raspberry Pi 3 Model B The Raspberry Pi was designed as an educational device and was inspired by the success of the BBC Micro for teaching computer programming to a generation. The Raspberry Pi Foundation set out to do the same in today's world, where you don't need to know how to write software to use a computer. At the time of printing, the Raspberry Pi Foundation had shipped over 2.5 million units, and it is safe to say that they have exceeded their expectations! The Raspberry Pi Foundation The Raspberry Pi Foundation is a not-for-profit charity and was founded in 2006 by Eben Upton, Rob Mul...

Python IDLE

IDLE is usually referred to as an integrated development environment (IDE), because it binds together various development tasks into a single view. The Raspberry Pi Operating Systems like Raspbian, OpenElec etc. comes with preinstalled Python IDLE. If you are interested to download Python IDLE for your PC or Laptop click here . To know more about installing Python IDLE click here . In this link the author is saying about how to install Python 3.4.3 which is now I am using. The IDLE User Interface If you’re looking for something a bit more visual, IDLE provides a graphical user interface for doing Python development, and it’s a standard and free part of the Python system. You can also run Python code with the interactive prompt, system command lines, Unix-style scripts, icon clicks, module imports, and exec calls. Since these not important for a Raspberry-Pi programming. However this will be discussed in this blog later. As mentioned above IDLE binds together various developm...

Python Phylosophy and code style

Code Style Pythonistas (veteran Python developers) celebrate having a language so accessible that people who have never programmed can still understand what a Python program does when they read its source code. Readability is at the heart of Python’s design, following the recognition that code is read much more often than it is written. One reason Python code can be easily understood is its relatively complete set of code style guidelines (collected in the two Python Enhancement Proposals PEP 20 ,described next) and “Pythonic” idioms. When a Pythonista points to portions of code and says they are not “Pythonic,” it usually means that those lines of code do not follow the common guidelines and fail to express the intent in what is considered the most readable way. Of course, “a foolish consistency is the hobgoblin of little minds". Pedantic devotion to the letter of the PEP can underminereadability and understandability. PEP 20; Zen of Python In the world of scripting langu...

History of Python

History of Python Guido Van Rossum Python was developed by Guido Van Rossum at National Research Institute for Mathematics and Computer Science in Netherlands during 1985-1990. Python is derived from many other languages, including ABC, Modula-3, C, C++, Algol-68, SmallTalk, Unix shell and other scripting languages. Rossum was inspired from " Monty Python's Flying Circus", a BBC comedy series and he wanted the name of his new language to be short, unique and mysterious. Hence he named it Python. It was a general-purpose interpreted, interactive, object-oriented, and high-level programming language. Python source code is available under the GNU General Public License(GPL) and it is now maintained by a core development team at the National Research Institute. More about Python python is a widely used general-purpose, high-level programming language. This is an Open Source software and its source code is available with a license in which the Copyright holder p...

I/O pins, Ports and Circuits

One major feature of a microcontroller is the versatility built into the input/output (I/O) circuits that connect the 8051 to the outside world. As noted in microprocessor designs must add additional chips to interface with external circuitry; this ability is built into the microcontroller. To be commercially viable, the 8051 had to incorporate as many functions as weretechnically and economically feasible. The main constraint that limits numerous functions is the number Of pins available to the 8051 circuit designers. The DIP has 40 pins. and the success Of the design in the marketplace was determined by the flexibility built into the use of these pins. For this reason, 24 of the pins may each be used for one of two entirely different functions. yielding a total pin configuration Of 64. The function a pin performs at any given instant depends, first. upon what is physically connected to it and, then, upon what software commands are used to "program" the pin. Both of the...

AVR Instruction Set

Not completed, will be completed ASAP. Please visit this post using a browser that has better html5 text support. ADC Rd, Rr ;Add with Carry two Registers 0≤d≤31, 0≤r≤31 ;Rd← Rd + Rr+C Type: Arithmetic instruction Adds two registers and the contents of the C flag and places the result in the diestination register Rd. Flags: H, S, V, N, Z, C     Cycles: 1 Example:       ;Add R1:RO to R3:R2 add r2,r0       ;Add low byte adc r3,r1       ;Add with carry high byte ADD Rd, Rr ;Add two Registers 0≤d≤31, 0≤r≤31 ;Rd← Rd + Rr Type: Arithmetic instruction Adds two registers without the C flag and places the result in the destination register Rd. Flags: H, S, V, N, Z, C     Cycles:1 Example: add r1, r2       ;Add r2 to r1 (r1=r1+r2) add r28,r28   ;Add r28 to itself (r28=r28+r2...