- 不能安装 sqlite3,使用 mysql 代替
- mysql 新建用户不能用密码登录。 因为新建 mysql 时新建了匿名用户,本地登录时默认使用了匿名用户账号。而这些匿名用户是没有密码的。
- mysql 权限问题 使用超级用户运行
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Copyright (C) 2017 The Android Open Source Project | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
比如这篇文章: 虚拟私助理要来了,五个行业将受影响人
加入这两行配置就 ok 了。
settings.setJavaScriptEnabled(true);
settings.setDomStorageEnabled(true);
Photoshop 最简单的魔法
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static Bitmap getBitmapFromView(View view) { | |
| view.measure(MeasureSpec.UNSPECIFIED, MeasureSpec.UNSPECIFIED); | |
| // IMPORTANT | |
| // 如果 View 没有在屏幕上显示过,那么一定要执行这行,否则画出来是空白的 | |
| view.layout(0,0, view.getMeasuredWidth(), view.getMeasuredHeight()); | |
| //Define a bitmap with the same size as the view | |
| Bitmap returnedBitmap = Bitmap.createBitmap(view.getMeasuredWidth(), view.getMeasuredHeight(),Bitmap.Config.ARGB_8888); | |
| //Bind a canvas to it | |
| Canvas canvas = new Canvas(returnedBitmap); | |
| //Get the view's background |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Copyright (C) 2015 The Android Open Source Project | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import android.support.v7.app.AppCompatActivity; | |
| import android.view.LayoutInflater; | |
| import android.view.View; | |
| import android.widget.ImageView; | |
| import android.widget.RelativeLayout; | |
| /** | |
| * Created by lixindong on 1/4/18. | |
| */ |
相对在线转换下载优势:
- 无广告
- 一键下载无需跳转
- 断点续传
- 播放列表批量下载
- 支持站点多
相对 4K Downloader 优势
- 支持简单脚本批量生成网址
- 播放列表下载无 25 个视频限制