Motivation : In an object-oriented system, some objects are subject to some reasons (for example, the overhead of object creation is large, some operations require security control, or external access is required ), direct access may cause a lot of trouble to the user or system structure. How can we manage/control the unique complexity of these objects without losing transparent operation objects? Adding an indirect layer is a common solution in software development.
Application: Remote Obje
on the list. Slatebook 14 runs the Android system, and such Android notebooks are not common in the market. Although the Android operating system built for mobile platforms has some productivity gaps compared to desktop operating systems such as Windows and OS X, the test Slatebook 14 of the time to 6 hours and 52 minutes, easily surpassing many windows laptops.
And it is worth mentioning that the proposed retail price of Slatebook 14 is only 430 U.S. dollars (about 2628 yuan), and the current
teach you step-by-step to build a Docker-based MongoDB replication cluster environment
1. Installing Docker
2. Create a MongoDB image
3. Building a MongoDB cluster
This article ——-chain--Connecthttp://blog.csdn.net/pddddd/article/details/46893593
Docker is an open-source application container engine that allows developers to package their applications and dependencies into a portable container.
1.ubuntu14.04 Installing Docker
Reference Document http://docs.docker.com/installation/ubuntulin
Motivation : ThinkPad has multiple models, such as T43 and t60. Each model supports multiple working modes. Each model has different implementations in different modes. With the continuous development, there are more and more models and working models. How to separate ThinkPad from the changes in model and working mode so that they change independently, without introducing additional complexity (the complex
)...
Time required for calling stacks and UI threads.
4. How to analyze the ANR?
Although we have taken prevention measures, sometimes some people still do not pay attention to the cause of ANR. So how can we quickly locate the problem when ANR occurs? Remember that when ANR occurs, Android will give an important message in two places: logcat and \ data \ ANR \ traces.txt. Of course, bugreport has the most comprehensive information, both of which are available.
4.1 logcat Information
In the
root user to use ftp
By default, the root user cannot use ftp, as shown below:
C: \ Users \ ThinkPad> FTP 192.168.141.123
Connect to 192.168.141.123.
220 (vsftpd 1.1.3)
User (192.168.141.123 :( none): Root
530 Permission denied.
Logon Failed.
Modify/etc/vsftpd. ftpusersFile, which records that FTP cannot be usedLogin User, the rootUser comments
Modify/etc/vsftpd. user_listFileUser comments.
Note:/etc/vsft
Typical linux commands: 1. sagane @ sagane-ThinkPad-Edge :~ $ Mii-tool: when the network is disconnected, use this command to check whether the physical link is normal. 2. ssagane @ sagane-ThinkPad-Edge :~ $ Sshroot@192.168.1.43, with the root user login IP address as 19 .. linux commonly used commands Classic use 1, sagane @ sagane-ThinkPad-Edge :~ $ Mii-tool: w
About IBM random start options (which retain those deleted)
About IBM random start options (which retain those deleted)The following figure shows the startup options after the random software is installed (it is clear to see the solution by the optimization master)
1 digital line Detect-is part of BVR telephone software kits. It provides fax, phone book, email, and other functions (which can be deleted)2 Bluetooth control disk-you can delete it if you do not need Bluetooth3 tpkmaphelper-IBM
Android ANR solution case (internal information)
When ANR occurs, you first need to view the log information and trace file (the system will generate a trace file in the/data/anr/directory) to analyze the cause of ANR. The following analysis does not solve all the ANR problems encountered, but the ANR problems caused by the program itself can basically find the cause.
Log Information Analysis
I/InputDispatcher (220): Application is not responding:
: ThinkPad, Password: Lenovo
Useradd thinkpad-p lenovo-s/bin/bash
Su ThinkPad
Enter Password: Lenovo
The first Su ThinkPad succeeds because the current account is root and Su ThinkPad does not require password verification
The second Su
. workbook (encoding = 'utf-8') table = file. add_sheet ('achieve ') # set the Excel style def set_style (name, height, bold = False): style = xlwt. XFStyle () # Initialize the style font = xlwt. font () # Create a font for the style. name = name # 'Times New Roman 'font. bold = bold font. color_index = 4 font. height = height style. font = font return style
Apply to code:
For tag in target [1:]: tds = tag. findAll ('TD ') j = 0 # semester = str (tds [0]. string) if semester = 'none': break else
This article solves the problem of standlone running HBase. You can quickly learn about the basic Shell commands of HBase.
Step 1 prepare the softwareMachine environment: Ubuntu11.10 + JDK1.6Software: hbase-0.92.1.tar.gzMy username is clMy machine name is thinkpad-zh.Decompress hbase:$ Tar xzf/home/cl/Downloads/hbase-0.92.1.tar.gzCopy to the directory:/Home/hbase-0.92.1
Step 2 configure HBaseChange Configuration:1) configure the JDK path.../Hbase-0.92
Quick Start to hadoop hbase
Cheungmine
2012-4-20
This article solves the problem of standlone running hbase. You can quickly learn about the basic shell commands of hbase.
Step 1 prepare the software
Machine environment: ubuntu11.10 + jdk1.6
Software: hbase-0.92.1.tar.gz
My username is cl
My machine name is ThinkPad-Zh.
Decompress hbase:
$ Tar xzf/home/CL/downloads/hbase-0.92.1.tar.gz
Copy to the directory:
/Home/hbase-0.92.1
Step 2 configure hbase
C
Typical linux commands: 1. sagane @ sagane-ThinkPad-Edge :~ $ Mii-tool: when the network is disconnected, use this command to check whether the physical link is normal. 2. ssagane @ sagane-ThinkPad-Edge :~ $ Ssh root@192.168.1.43, with the root user login IP address 192.168.1.43 machine, enter the root user password, remote control of this machine, or even install xshell and other software in windows, simul
1, sagane@sagane-thinkpad-edge:~$ Mii-tool, when the network is not available, use this command to see if the physical link is normal.
2, ssagane@sagane-thinkpad-edge:~$ ssh root@192.168.1.43, With the root user login IP address 192.168.1.43 machine, enter the root password, you can remotely control this machine, even in the Windows environment to install Xshell software, simulation of Linux terminal Remot
, reboot the following vsftpd daemon
sudo service vsftpd restart
Debugging methods: In the command-side test, such as the input FTP 192.168.0.3, login to the server, and then prompts you to enter the user name, enter the corresponding user name, you can. After logging in, you can enter help if you do not know the command.
norton@norton-laptop:~/work/gitolite-admin$ FTP 192.168.0.3Connected to 192.168.0.3.220-220-
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.