Xcode encapsulates the. Bundle file and xcode encapsulates the. bundle file.
There is often a need to encapsulate your own modules or open classes into static libraries for convenient calls.
However, when your module needs to use a large number of xib, images, audio or other resource files, it cannot be added to the static library. In this case, some resource files need to be encapsulated into the.
Configure openvpn in Ubuntu
First, make sure that the apt-Get of ubuntu can find the openvpn package.Sudo apt-Get update
Install openvpn packageSudo apt-Get install openvpn
Create an openvpn configuration file. The example can be found in the following path:/Usr/share/doc/
OpenVPN Increase the script for logging user log
Cat connect.sh
#!/bin/bash
time= ' Date +%f '
if [-f/etc/openvpn/log/openvpn_$time.log];then touch
/ Etc/openvpn/log/openvpn_$time.log
echo "' Date ' +%f%h:%m:%s ' User $common _name trust_ip $trusted _ip is login, REMOTE_IP is $ifconfig _pool_remote_ip, Mask is $route _netmask_1 ">>/etc/
Method onsaveinstancestate (bundle) and onrestoreinstancestate (bundle) of the activity )).Protected voidOnsaveinstancestate(BundleOutstate)Called to retrieve per-instance state from an activity before being killed so that the State can be restored in oncreate (bundle)Or onrestoreinstancestate (bundle)(The bundlePopula
By simply using the openvpn proxy, all traffic on the local machine will go through the Remote VPN Server. However, when we roll over the wall, it is generally the traffic webpage, that is, as long as the http traffic goes through the VPN. Openvpn combined with squid's http forward proxy can provide the wall-over function for Web browsing, while other traffic such as QQ and thunder still follows the normal
Openvpn is actually used for transmission at the application layer. You can select UDP/TCP as the transmission protocol. UDP is more commonly used. The reason is described in this article.
Why openvpn network?
If I want to access the network resources of the Organization at home, VPN is a good choice, but in general, setting up a VPN requires a VPN Server, that is, at least one real IP address, this is not
Use OPENVPN to implement Intranet mutual access between two locations (1) master server configurationMaster Server Configuration
Functions to be implemented:
Shenzhen:Master VPN Server: dns.dog.comInternet ip-eth1: 192.168.68.71Intranet ip-eth0: 10.1.1.254Guangzhou:VPN Server: lvs1.dog.comInternet ip-eth1: 192.168.68.73Intranet ip-eth0: 10.1.2.1Clients outside China:192.168.68.79Shenzhen-Guangzhou tunnel uses virtual IP addresses 10.8.0.1 and 10.8.0.
VPN protocols: PPTP, L2TP, and OpenVPN1. Concepts of PPTP, L2TP, and OpenVPN Tunneling Protocols 1. Default port number of PPTP (Point to Point Tunneling Protocol): 1723 PPTP, or PPTF Protocol. This protocol is a new enhanced security protocol developed on the basis of the PPP protocol. It supports multi-protocol Virtual Private Network (VPN) and can pass the password authentication protocol (PAP) and Extended Authentication Protocol (EAP) to enhance
First, the working principle of OpenVPN
VPN technology establishes a private tunnel on the public network through key exchange, encapsulation, authentication and encryption, which guarantees the integrity, privacy and effectiveness of the transmitted data. OpenVPN is a new open source project emerging in recent years, which realizes a sslvpn solution.
Traditional SSL VPN through the port proxy method, the
Android development Bundle usage, android development bundle
In android development, we often need to transmit data between two activities. The most common method is to useintent.putXXX()But in many cases, we will also:
Bundle bundle = new Bundle();bundle.putXXX()...
These
Quickly build the Android Development Environment ADT-Bundle and Hello World, androidadt-bundle---- Download JDK (Java Dev Kit)Download: http://www.oracle.com/technetwork/java/javase/downloads/index.htmlProcedure: https://docs.oracle.com/javase/8/docs/View after securityJDK and JRE different and meaning: http://www.pc6.com/infoview/Article_53547.html1. JVM-java virtual machine! JVM is a common java virtual
Developing Android Application Environment building1. Install JDK1.6 or laterWe can open the Oracle company website http://www.oracle.com/technetwork/java/javase/downloads/index.htmlThe downloads section on the Web page has jdk download instructionsFree download After accepting his terms of useTo select the same JDK version as the native operating system in the download list when downloadingInstall after download2. Download the package for the appropriate platform for ADT
Very happy, the recent project to use the ASP.net MVC4 + Entity Framework5, found that Mvc4 joined the bundle, Web API and other technologies, really let me excited, used to be a third party, here mainly talk about bundle technology.
Many large sites do not use bundle technology to cause a lot of waste of resources and performance of the sacrifice, do not undere
Chapter 4 bundle and Chapter 4 bundle
----------------------------------------------
Note: This is the last article in the current series. You are not required to learn about mobile devices, WEB APIs, and other content. A practical project will be developed later.
----------------------------------------------
I. Script and style bundle
Location:/App_Start/Bundle
Android Development Environment setup-ADT-Bundle for Windows, androidadt-bundle
ADT-Bundle for Windows is an integrated IDE officially provided by Google Android. It already contains Eclipse. You do not need to download Eclipse, and the plug-in has been integrated into it, it solves the complicated problem that most new users use eclipse to configure the Android
When I submit the app, I always prompt bundle identifier inconsistent, target general's bundle identifier There are always three gray horizontal lines, and later found that because my project name is Chinese, change to English is goodIf you want to modify the bundle identifier, you can modify it in two places in the project:1.targets of General->identity->
error:embedded binary ' s bundle identifier is not prefixed with the parent app's bundle identifier.Error reason: The bundle ID of IPhone app, watch app and watch extension does not conform to Apple's naming specification. The naming specification must follow a fixed format.The naming specification for bundle IDs does
After completing the OpenVpn Bridge Mode experiment under UbuntuServer10.04, this experiment on the routing mode involves two modes: the bridging mode and the routing mode, let's take a look at the differences between the two modes. The above content is available on the Internet. I just organized them into tables to make it easier to compare and understand. Experiment environment: (1) topology: (2) The two routers are simulated using the Dynamips simu
First, what is OpenVPN Static Key
According to the official document, the Static Key approach is a point-to-point (point-to-point) VPN.
Second, the advantages of OpenVPN Static Key
1. Easy installation2, easy to use, Windows, OS X, Linux can be used by the official client3, adopt the UDP way, the connection is more stable
Third, the OpenVPN Static Key's disad
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.