- 博客(13)
- 资源 (3)
- 收藏
- 关注
转载 yum安装php5.6
借鉴:http://bbs.qcloud.com/forum.php?mod=viewthread&tid=25656&page=1 步骤: # yum install epel-release # rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm # rpm --i...
2019-01-14 14:28:50 2396
原创 mysql原生sql处理,按逗号拆分列为多行
举例:idvalue11,2,3,422,3,4,5,6拆分成:idvalue112233445566select distinct substring_index(substring_index(a.value,',',b.help_topic_id+1),',',-1) from table a join mysql.help_topic b on b.help_topic_id ...
2018-06-05 16:38:19 20244 5
转载 用yum快速搭建LAMP平台
转载原文:https://www.cnblogs.com/me80/p/7218883.html实验环境:[root@nmserver-7 html]# cat /etc/redhat-release CentOS release 7.3.1611 (AltArch) [root@nmserver-7 html]# uname -aLinux nmserver-7.test.com 3.1...
2018-05-24 10:23:58 703
原创 php生成五位数邀请码
model /** * 生成邀请码 * @param $uid * @return string */ public function initcode() { $code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'; $rand = $code[rand(0,25)] .strto...
2018-04-12 16:13:13 6842
原创 linux学习(一)
ctrl+alt+F1-F6进入命令行ctrl+alt+F7 退出命令行新建文件夹权限: chmod -R 777 新建文件夹: mkdir 文件夹名新建文件: vi 文件名退出文件并保存: ESC+ZZ查看语言: locale更改语言: LANG=zh_CN.UTF-8安装LAMP1. sudo apt-get update注:sudo apt
2016-05-30 11:25:52 314
原创 android 导入gradle项目The project is using an unsupported version of Gradle.
参考:http://stackoverflow.com/questions/22252956/Android-studio-gradle-issue-upgrading-to-version-0-5-0-gradle-migrating-from-0com.android.tools.build:gradle:0.6.+ -> gradle 1.8
2016-05-30 10:04:10 7224
原创 The specified child already has a parent. You must call removeView() on the child's parent first
学习android 的 fragment时遇到The specified child already has a parent. You must call removeView() on the child's parent first的错误,提示已经有父容器,通过调试一直是fragmentTransaction.commit();的错误,后来知道是fragment中的问题View vi
2015-03-26 09:34:08 337
原创 Android 下拉刷新加载更多
找到一个封装好的下拉刷新加载更多的源码,适合新手学习下载链接:点击打开链接首先在项目中依赖封装好的ZrcListView,这里没有打成jar包,需要依赖下然后代码开始public class MainActivity extends Activity { private ZrcListView listView; private Handler handle
2015-01-24 14:18:23 431
转载 android布局属性详解
RelativeLayout用到的一些重要的属性: 第一类:属性值为true或false android:layout_centerHrizontal 水平居中 android:layout_centerVertical 垂直居中 android:layout_centerInparent 相对于父元素完全居中 an
2015-01-23 13:50:39 260
转载 Java日期计算之Joda-Time
Joda-Time提供了一组Java类包用于处理包括ISO8601标准在内的date和time。可以利用它把JDK Date和Calendar类完全替换掉,而且仍然能够提供很好的集成。 http://joda-time.sourceforge.net/ 版本:joda-time-2.1.jar 1、时间类得作成 Java代码 //方法一:取系统
2015-01-19 14:22:36 407
转载 eclipse下搭建PhoneGap环境来开发Android程序
原文 http://www.cnblogs.com/linzhichao86/p/android_PhoneGap.html原来在逛园子的时候一不小心发现了一个新概念“PhoneGap”简称PG,我一直都喜欢追逐新事物,自然就产生了好奇心。于是乎我就在百度上面Google了一下PhoneGap是什么东西。简单的说就是用另一种方式来开发Android应用程序,大体上用到HTML,CSS
2015-01-13 09:29:30 442
原创 android listView 适配器demo
MainActivitypackage com.itfaster.itfastertxl;import java.util.ArrayList;import java.util.List;import android.app.Activity;import android.os.Bundle;import android.view.View;import android.widge
2015-01-05 17:26:08 376
转载 android中所有颜色代码
#ffffff #fffff0 #ffffe0 #ffff00 #fffafa #fffaf0 #fffacd #fff8dc #fff5ee #fff0f5 #ffefd5 #ffebcd #ffe4e1 #ffe4c4 #ffe4b5 #ffdead #ffdab9 #ffd700 #ffc0cb #ffb6c1
2015-01-05 17:12:10 633
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人