加载中
开源中国博客 更新后的一堆辣鸡问题

搜索自己的博客,明明是有的却搜索不出来 以前能够导出所有的markdown,现在只能导出一个html,样式巨垃圾。

2018/07/20 11:27
43
Hbase 删除表格 Table already exists

$ hbase zkcli 2. 查看当前表 $ ls /hbase/table 3. 删除表格 $ rmr /hbase/table/表格名字 4. 重启Hbase

2018/07/19 08:49
954
mysql 快速 修改 表名

因为大小写敏感问题,先把mysql设置为大小写敏感,修改表名后,再修改为不敏感。 第一步 把表名复制出来 nano /etc/mysql/my.cnf select table_name from information_schema.tables where ...

2018/07/19 08:44
1.5K
tomcat ubuntu server 开机启动

下载 第一步下载tomcat的压缩包 放在home目录下 我这里放的是/home/hpe/apache-tomcat-8.5.15 第二步 复制 catalina.sh 文件到/etc/init.d/目录下 sudo cp apache-tomcat-8.5.32/bin/catalin...

2018/07/18 09:41
361
Android LogUtil 日志优化 调试的时候打印 点击跳转

打印日志的时候,可以点击跳转 LogUtil.java public class LogUtil { private static boolean IS_DEBUG = BuildConfig.DEBUG; public static void i(String tag, String message) { if (IS_D...

2018/07/16 08:41
1.4K
Android listview viewholder

Android ListView ViewHolder 利用adapter中的getView的 contentView 的复用机制进行优化。 listview的原理 listView,初始化的时候就会使用inflater来渲染这些view(这些是耗费资源的操作),...

2018/07/11 14:09
562
scp 远程复制文件

复制本地文件到远端 scp file.txt root@192.168.1.1:/root/file.txt 从远端复制文件到本地 scp root@192.168.1.1:/root/file.txt ./ 复制多个 scp file.txt file2.txt root@192.168.1.1:/roo...

2018/07/05 14:00
321
mysql 启用 远程连接

1)可修改配置文件 / etc/mysql/mysql.conf.d/mydqld.cnf 里面的参数!! 2)配置 MySQL 可以远程访问: mysql> grant all privileges on . to root@'%' identified by "123456"; 编辑 / et...

2018/07/04 16:18
98
Conflict with dependency support-annotations

Conflict with dependency 'com.android.support:support-annotations' in project ':app'. Resolved versions for app (26.1.0) and test app (27.1.1) differ. 支持包与测试包的冲突, 解决...

2018/07/03 09:03
120
java 左移 右移 无符号右移

/** * 右移 >> 正数 * 0000 0000 0000 0000 0000 0000 0000 0101 * 0000 0000 0000 0000 0000 0000 0000 0000 */ System.out.println(5 >> 3);//结果为0 /......

2018/06/27 15:36
96
把SVN库,作为git服务器

把SVN库,作为git服务器 需求: 目前项目是svn 控制的版本,而我自己想另外用git来控制我自己的版本;所以这个项目需要svn和git两个版本控制。 做法: 已经有一个svn仓库 在svn库 创建文件夹...

2018/05/15 15:29
130
Java Calendar 设置当天0点0时0分 或当天最后一秒

Calendar calendar = Calendar.getInstance(); calendar.setTimeInMillis(lastTime.longValue()); calendar.set(Calendar.HOUR_OF_DAY,0); calendar.set(Calendar.M...

2018/05/11 08:35
2W
Android webview 禁用 长按 搜索

再html中添加css * { -webkit-user-select: none; }

2018/05/04 10:15
529
Android 高德地图 配置 以及 getMap null 为空

一、首先下载so库和jar 官网下载地址 我下载的版本是 AMap3DMap_5.2.0_AMapNavi_5.1.0_AMapSearch_5.1.0_AMapLocation_3.4.0_20170602.jar 把下载好的库,放在/app/libs/ 目录下 二、配置权限...

2018/03/26 10:56
1.7K
Android 优雅的使用 gradle

gradle 管理 app 版本的时候不够清晰,看过其他人定义的gradle.properties, 或者新建gradle,再引入apply from: '.***.gradle' 下面是比较简单明了的方式之一 build.gradle (./app) apply p...

2018/03/22 15:14
138
双网卡配置 不同网络 上网方式

//这步电脑无法访问所有网络 第一步:route delete 0.0.0.0 "删除所有 0.0.0.0 的路由" //添加本地可以联网 第二步:route add -p 0.0.0.0 mask 0.0.0.0 192.168.1.1 "添加 0.0.0.0 网络...

2017/11/02 11:04
3.6K
Linux 添加启动项 rc.local

rc.local #!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value o...

2017/10/19 17:01
781

没有更多内容

加载失败,请刷新页面

返回顶部
顶部