Base.repo/new Base.repo file and enter the following[Base]Name=redhat-6.6-base-163.combaseurl=http://mirrors.163.com/centos/6/os/$basearch/Gpgcheck=1Gpgkey=http://mirror.centos.org/centos/rpm-gpg-key-centos-6#名称最好做到见名之意, no impact on follow-up#下载软件的链接地址#是否启用gpg检查gpgkey, 1 is open, 0 is off#开启gpgcheck后, by Gpgkey to specify, the corresponding GPG file, if you do not specify the Gpgkey file, then you must manually import the corresponding GPG file,[Updates]Name=redhat-6.6-updates-163.combaseurl=h
no garbled
*
* @access Public
* @param string $str to be processed
* @param int $strlen The length to intercept defaults to 10
* @param string $other If you want to add an ellipsis, the default is to add
* @return String
*/
function Showtitle ($str, $strlen =10, $other =true) {
$j = 0;
for ($i =0; $i if (Ord (substr ($str, $i, 1)) >0xa0) $j + +;
if ($j%2!=0) $strlen + +;
$rstr =substr ($str, 0, $strlen);
if (strlen ($STR) > $strlen $other) {$rstr. = ' ... ';}
return $rstr;
}
/**
* Make a link
\ castorflex \ Android \ smoothprogressbar and you can directly throw fr to your project.
Then modify the reference of the r file.
Step 3: Import actionbar-pulltorefresh.
The actionbar-pulltorefresh-Master Directory contains four files: extras, gradle, library, and samples. I used extras and library and used the code in samples.
(1) In libray, actionbar-pulltorefresh-master \ library \ SRC \ main
The foll
$ basearch is used)
$ Basearch: Basic CPU system group
My two repo files are referenced as follows:
RHEL-mycompany.repo:
[Base] Name = RHEL-mycompany-basebaseurl = Http://dev.mycompany.com/mirrors/rhel/?releasever/ OS /?basearch/ Enabled = 1 Gpgcheck = 1 Gpgkey = Http://dev.mycompany.com/mirrors/centos/rpm-gpg-key-redhat-$Releasever [updates] Name = RHEL-mycompany-updatebaseurl = Http://dev.mycompany.com/mirrors/rhel/?releasever/updates/?basearch/ Enabled = 1 Gpgcheck = 1 Gpgkey = Http:
=$releaseverarch=$basearchrepo=updatesbaseurl=http://ftp.sjtu.edu.cn/centos/$releasever/updates/$basearch/gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5#additional packages that may be useful[extras]name=CentOS-$releasever - Extras#mirrorlist=http://mirrorlist.centos.org/?release=$releaseverarch=$basearchrepo=extrasbaseurl=http://ftp.sjtu.edu.cn/centos/$releasever/
When developing appwidget, We need to write a class to inherit the appwidgetprovider. This article analyzes the source code of appwidgetprovider.
First, appwidgetprovider inherits broadcastreceiver, so it is essentially a broadcast receiver, especially it mainly receives some broadcasts about appwidgets sent by appwidgetservice.
Secondly, it only has an empty constructor and does not have any member variables. There are only five methods. Of course, one of them is the onreceive method, which mus
information about the executed action. For example, launcher_category indicates that the receiver of intent should appear as a top-level application in launcher, while alternative_category indicates that the current intent is one of a series of optional actions that can be executed on the same piece of data.
Type (data type), explicitly specifying the intent data type (MIME ). Generally, the intent data type can be determined based on the data itself. However, by setting this attribute, You can
extends Objectimplements Parcelable Cloneable
Role: it can be used for communication between two activities.
Usage:
① Load data:
Bundle mBundle = new Bundle ();
MBundle. putString ("DataTag", "data to be uploaded ");
Intent intent = new Intent ();Intent. setClass (MainActivity. this, Destion. class );Intent. putExtras (mBundle );
② Target Activity parsing data
Bundle bundle = getIntent (). getExtras (); // get the passed bundle
String data = bundle. getString ("DataTag"); // read data
2. The me
performed according to the step-by-step prompts on the Internet (CSDN blog and blogcn blog), but there are always various problems and problems that cannot be run.
The installation was successful after several attempts, and the operation was normal:
[root@localhost /]# yum remove mysqlLoaded plugins: fastestmirror, refresh-packagekit, securitySetting up Remove ProcessNo Match for argument: mysqlLoading mirror speeds from cached hostfile * base: mirrors.163.com *
CentOS6 for yum source method summary
The yum source in this article supports CentOS 6 series and RHEL6 series in theory.The update method is as follows:
First, go to the yum source configuration directory.
Cd/etc/yum. repos. d
Yum source of the Backup System
Mv CentOS-Base.repo CentOS-Base.repo.save
Download other faster yum sources
Yum source of HKUST:Wget http://centos.ustc.edu.cn/CentOS-Base.repo
163 yum Source:Wget http://mirrors.163.com/.help/CentOS-Base-163.repo
Sohu yum SourceWget http:/
software in the RPMForge source to update the software on the local machine, thus simplifying the installation operation. The command is as follows:
# yum --enablerepo=rpmforge-extras updateYou will see that there will be a large number of software updates due to the switching of the software warehouse, you can choose to install or not install. If you choose to install, enter 'y'. After the installation is complete, Git is changed to the latest versi
Linux yum command details, Linuxyum command details1. Brief Introduction
Yum = Yellow dog Updater. The main function of Modified is to conveniently Add/delete/update RPM packages. it automatically solves the dependency problem of the package. similar to apt. it is easy to manage a large number of system update problems.
Configuration File:/etc/yum. conf
Features:
* Multiple resource libraries (Repository) can be configured simultaneously)
* Simple configuration file (/etc/yum. conf)
* Automatica
);}}} /*** request to add a new widget: used to select the widget in the system */private void showWidgetChooser () {int appWidgetId = mAppWidgetHost. allocateAppWidgetId (); Intent pickIntent = new Intent (AppWidgetManager. ACTION_APPWIDGET_PICK); pickIntent. putExtra (AppWidgetManager. EXTRA_APPWIDGET_ID, appWidgetId); startActivityForResult (pickIntent, REQUEST_PICK_APPWIDGET);}/*** add widget * @ param data */private void completeAddAppWidget (Intent data) {Bundle
parts: Component Name, Action, Data, Category, Extras, and Flags. Information can be used in three categories:A. component Name, Action, Data, and Category are the types of components. The information in 4 determines which Component Android will start. Component Name is used in explicit Intent, action, Data, Category, Extras, and Flags are used in implicit Intent.B. Ex
usage too low
Action_headset_plug
Broadcast receiver er
The headset is moved in or out of the device.
Action_screen_on
Broadcast receiver er
Screen off
Action_timezone_changed
Broadcast receiver er
Change the time zone settings
Other action declarations are distributed in other parts of the android API. You can also define your own action string. In this case, you need to prefix the application package name as your action string. For example, "
-Base.bak CentOS-Base.repo if you did not change the name before you do not need to perform this step
[Root @ localhost yum. repos. d] # vim CentOS-Base.repo edit network yum source file
[Base]
Name = CentOS-$ releasever-Base
# Items list = http://mirrorlist.centos.org /? Release = $ releasever arch = $ basearch repo = OS
Baseurl = http://centos.ustc.edu.cn/centos/?releasever/ OS /?basearch/
Gpgcheck = 1
Gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
# Released updates
[Updates]
Name
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.