Simple implementation of Raspberry Pi WEB control, Raspberry Pi web
Final Effect
#! /Usr/bin/env python3from bottle import get, post, run, request, template @ get ("/") def index (): return template ("index ") @ post ("/cmd") def cmd (): print ("press the button:" + request. body. read (). decode () return "OK" run (host = "0.0.0.0 ")
That's right. I just want to explain 10 sentences:
1 .#! /Usr/bin/env py
This morning, I took an hour out of my busy schedule to experience a banana pie that was sent a few days ago. The overall experience is quite good. First brush the SD card, I use the system is Raspberry Pi raspbian into the bananapi system, making the SD card See http://www.lemaker.org/resources/9-81/raspbian_for_bananapi.html. It also officially supports lubuntu, archlinux, opensuse, Android, and other systems. See http://www.lemaker.org/resources/
I. Theory Article 1. Mathematical formulasCircle Area formula: Π*r*r, where π is pi, R is the circle radius;Square area formula: S*s, where S is the edge length;Pythagorean Theorem: a*a + b*b = c*c, where A/b is right triangle two right-angled edges, and C is the hypotenuse.2. Calculation methodConsider that the square with the side length r is embedded with a 1/4 circle with a radius of R.650) this.width=650; "title=" image "style=" border-right-widt
To make the Raspberry Pi convenient operation, it is necessary to configure the wireless network card, which can greatly enhance the mobile and convenience of Raspberry Pi, in fact, the configuration of wireless network card is basically the same as the normal Linux platform configuration wireless network card, several methods are similar, the following:One, the first method: through the configuration of th
Igp-Summary: an advanced distance vector routing protocol, which features both distance vector and link status routing protocols. China site, applletalk and other network layer protocols. VPN is an efficient routing protocol. It has the following features: 1. control layer: Different igp protocols, small AD (AD can be used to manage the distance and the advertised distance of VPN, this refers to the Managem
The old version of the VPN system GETSHELL of wangshen (also affects multiple VPN manufacturers' devices, such as Wangyu Shenzhou, tianrongxin, Xi'an wangying, weishitong, Geda zhengyuan, American concave and convex, and ANIX in Germany)
In the/admin/system/backup_action.php file
if (isset($_REQUEST['cmd']))$cmd = $_REQUEST['cmd'];else$cmd = "NULL";$with_cert = 1;$pass = "";include_once "management/system.p
1. The following is an example of an Android phone, we click "Settings" to enter, as shown in the following figure.
2. There is a more or more network connection in the Setup interface, which has the following interface
3. After this enter the interface, we click on "VPN" to open the new interface click "+" increase, as shown in the following figure.
4. Then we enter the domain name of the Outland, such as image encryption
5. Now back to t
This article reproduced: http://www.cnblogs.com/edgexie/p/6527992.htmlSee a lot of tutorials on the Internet for Windows Remote Desktop Connection Raspberry Pi. I also follow the tutorial tried, met a few pits. Deliberately recorded in this.Say the right steps first.1. tightvncserver!!! must be installed firstsudo apt-get install Tightvncserver2. Install the XRDP service again.sudo apt-get install XRDP3. If the firewall is UFW, open the Remote Desktop
Banana Pie Banana Pi BPI-M2_WIRINGPI test succeeded, the code has been uploaded to GitHubBPI Wiringpi is modified by the latest WIRINGPI code of the Raspberry Pi, exactly as it is used by the Raspberry Pi.The Gpio library and the test code are fully exposed on GitHub:Https://github.com/BPI-SINOVOIP/BPI-WiringPi/tree/BPI_M2Demo Video:http://v.youku.com/v_show/id_XMTMxMjA1NTY3Mg==.html?from=y1.7-1.2Chinese Fo
If you want to take a screenshot or screenshot of the Raspberry Pi, you can do this by Scrot the command line. Then through the Picture Viewer program Shotwell can view the picture.
1. Installation
To install Scrot on Raspbian:Command: sudo apt-get install Scrot
Install the Shotwell that can open screenshots via the terminal:Command: sudo apt-get install Shotwell
2. Common Commands
Capture the entire screen: Scrot (the default name for capturing a pic
http://blog.csdn.net/c80486/article/details/8460271
After several times, the Raspberry Pi (Raspberry Pi) found that the keyboard was always wrong and some characters couldn't be hit or wrong.
This question, tossing me half a day. Let's share the experience.
Online search, found that the keyboard layout is not correct, Raspberry Pi (Raspberry
So the combination of keywords (Raspberry Pi mysql) asks Baidu to ask Google. No results. Fencing yourself to it. Check MySQL configuration file/etc/mysql/my.cnf found the following configuration# Instead of skip-networking The default is now-listen only on# localhost which are more compatible and are not less secu Re.bind-address = 127.0.0.1Here on everything clear, probably means that the Raspberry Pi
Reprint please specify: @ Xiao Wu Yi Http://www.cnblogs.com/xiaowuyi qq Group: 64770604The Raspberry Pi production NAS process is described in http://www.cnblogs.com/xiaowuyi/p/4051238.html.Bypy is a Baidu cloud/Baidu network Disk Python client, the main purpose is in the Linux Environment (command line) sync Baidu Cloud disk space. Bypy requires more than python2.7 version, the latest version is Https://github.com/houtianze/bypyFirst, Bypy installati
0 PrefaceThis document describes how to modify the Raspberry Pi software source. If you use the raspbian system, the method for modifying the software source is the same as that for Ubuntu, you can find the latest software source image in the http://www.raspbian.org and modify the content in the/etc/APT/sources file.
[Related blog] [Raspberry Pi Study Notes-index blog]-Please pay attention to more blog post
About Raspberry Pi:
Raspberry Pi is a Linux-based PC equipped with a 256 MHz processor, memory, SD card and Ethernet support. It has two USB interfaces and supports HDMI and RCA output. It is reported that although the Raspberry Pi looks very mini-it only has one credit card, it can run games like thunder hammer 3: arena and play P videos. The hardware foundation
Audio output can be set to automatic, headset output, and HDMI output. The default value is automatic.
Pi @ aborn ~ $ Sudo apt-get install alsa-utilspi @ aborn ~ $ Sudo modprobe snd-bcm2835 # Add the sound module to the kernel pi @ aborn ~ $ Sudo aplay/usr/share/sounds/alsa/Front_Center.wav pi @ aborn/opt/vc $ sudo amixer cset numid = 3 2 numid = 3, iface = MIXE
Draw a square with a side length of R and a circle with a radius of R of One-fourth (as shown), throw darts at random, and calculate the π value by calculating the proportion of darts falling in the star area and the whole area.The formula is deduced as follows:Assuming that the square's side length R is 1, then the Dart falls on any point in the Star area (x, y), and its coordinates are bound to be less than 1 of the sum of squares (x2+y2).The code is as follows:ImportRandomdefFind_pi (num_of_t
Screen is a virtual Terminal manager. We can use it to manage the terminal interface in the background so that when SSH disconnects, there is no need to be afraid of an ongoing operation interruption.First, installationsudo apt-get updatesudo apt-get Install screenSecond, use1. Create a virtual terminalUse putty to log in to the Raspberry Pi after execution:Screen-s Terminal1This creates a terminal named Terminal1.At this point we can do anything, suc
[excerpt from Baidu Encyclopedia] Monte Carlo method, also known as the statistical simulation method, is the the mid 1940s due to the development of science and technology and the invention of electronic computers, and was proposed by the probability of statistical theory as the guidance of a kind of very important numerical calculation method. means using random numbers (or more common pseudo-random numbers) to solve many computational problems. It corresponds to a deterministic algorithm.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.