<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[汉森124]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/lhs960124</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; lhs960124]]></copyright><item><title><![CDATA[docker usage]]></title><link>https://blog.youkuaiyun.com/lhs960124/article/details/118940464</link><guid>https://blog.youkuaiyun.com/lhs960124/article/details/118940464</guid><author>lhs960124</author><pubDate>Tue, 20 Jul 2021 17:28:05 +0800</pubDate><description><![CDATA[其他
docker image history
docker stats 查看容器占用的资源
1. docker pull（拉镜像）
sudo docker pull paddlehub.com/paddle:0.11.0-gpu   拉docker镜像
sudo docker images                               显示所有docker镜像
2. docker run（运行容器）
docker run -it -d --name=test_paddle \

--ipc=]]></description><category></category></item><item><title><![CDATA[‘ascii‘ codec can‘t encode character : ordinal not in range (128) python3]]></title><link>https://blog.youkuaiyun.com/lhs960124/article/details/117219567</link><guid>https://blog.youkuaiyun.com/lhs960124/article/details/117219567</guid><author>lhs960124</author><pubDate>Mon, 24 May 2021 10:55:30 +0800</pubDate><description><![CDATA[python3 在输出在输出中文时报错：


'ascii' codec can't encode character : ordinal not in range (128)



解决方法：

Linux（ubuntu）更改系统环境变量：


vim ~/.bashrc

在文件末尾添加一行：


export PYTHONIOENCODING=utf8

保存退出，并source：


source ~/.bashrc

完毕！
...]]></description><category></category></item><item><title><![CDATA[android 加载网络图片]]></title><link>https://blog.youkuaiyun.com/lhs960124/article/details/80597523</link><guid>https://blog.youkuaiyun.com/lhs960124/article/details/80597523</guid><author>lhs960124</author><pubDate>Wed, 06 Jun 2018 16:57:32 +0800</pubDate><description><![CDATA[方法一：GlideGlide.with(MainActivity.this)
        .load(&quot;http://192.168.1.106/static/123.jpg&quot;)
        .into(imageView);方法2：Okhttp3private void setImage(String address, final ImageView imageView){
    Ok...]]></description><category></category></item><item><title><![CDATA[ubuntu 18.04 设置swap 交换分区文件]]></title><link>https://blog.youkuaiyun.com/lhs960124/article/details/80446433</link><guid>https://blog.youkuaiyun.com/lhs960124/article/details/80446433</guid><author>lhs960124</author><pubDate>Fri, 25 May 2018 09:35:53 +0800</pubDate><description><![CDATA[正常ubuntu在新安装系统时，会提示设置swap分区，但是这种方式并不灵活，如果硬盘使用空间较小的ssd，将本来就不大的空间划分出来一大块，有时候磁盘空间不够用，删除分区很麻烦。我们可以采用swap文件的方式，在硬盘上创建一个swap文件，在不需要时删除文件即可。交换分区顾名思义就是在内存不足时与物理内存的数据做交换的，所以最大就设置为物理内存的大小即可，设置太大用不到。我使用的是ubuntu ...]]></description><category></category></item><item><title><![CDATA[ubuntu 17\18.04 调节鼠标指针速度]]></title><link>https://blog.youkuaiyun.com/lhs960124/article/details/80446253</link><guid>https://blog.youkuaiyun.com/lhs960124/article/details/80446253</guid><author>lhs960124</author><pubDate>Fri, 25 May 2018 08:55:34 +0800</pubDate><description><![CDATA[我使用的18.04 ，桌面设置里的调节调到最快还是很慢，所以使用终端命令调节，像以前的ubuntu系统一样输入xset m 10 发现并不好使，原来新的ubuntu需要使用新的命令打开终端，以下操作需要root权限1.查看鼠标设备：xinput --list 找到自己要调节的鼠标设备名称2.设置鼠标灵敏度：xinput set-prop &quot;pointer:RAPOO Rapoo 2.4G Wire...]]></description><category></category></item><item><title><![CDATA[python3 django 使用mysql 8.0]]></title><link>https://blog.youkuaiyun.com/lhs960124/article/details/80406360</link><guid>https://blog.youkuaiyun.com/lhs960124/article/details/80406360</guid><author>lhs960124</author><pubDate>Tue, 22 May 2018 15:32:23 +0800</pubDate><description><![CDATA[环境ubuntu18.04mysql 8.0python 3.6django 2.04pymysql 具体安装可以看我的另一篇博客：https://blog.youkuaiyun.com/lhs960124/article/details/80404849操作：安装好环境之后在django中执行python manage.py makemigrations 报错，提示安装mysqlclient，但是查看mys...]]></description><category></category></item><item><title><![CDATA[ubuntu 18.04 安装mysql和mysqlworkbench]]></title><link>https://blog.youkuaiyun.com/lhs960124/article/details/80404849</link><guid>https://blog.youkuaiyun.com/lhs960124/article/details/80404849</guid><author>lhs960124</author><pubDate>Tue, 22 May 2018 14:10:39 +0800</pubDate><description><![CDATA[18.04 直接使用apt install ，安装的是5.7版本，这个版本是不支持18.04的，只有8.0版本支持，很大的一个坑，今天刚好掉进去，多亏看到了一位老哥的博客，完美解决问题。博客链接其中有个界面出现提示信息，需要&amp;lt;确认&amp;gt;，按回车是不好使的，按Esc即可。如果你都按照上文的操作，在使用apt install mysql-workbench使用是没有问题的.如果没有选择5.7的...]]></description><category></category></item><item><title><![CDATA[使用sqlalchemy用orm方式写pipeline将scrapy item快速存入 MySQL]]></title><link>https://blog.youkuaiyun.com/lhs960124/article/details/80383833</link><guid>https://blog.youkuaiyun.com/lhs960124/article/details/80383833</guid><author>lhs960124</author><pubDate>Sun, 20 May 2018 17:39:55 +0800</pubDate><description><![CDATA[传统的使用scrapy爬下来的数据存入mysql,用的是在pipeline里用pymysql存入数据库,这种方法需要写sql语句,如果item字段数量非常多的 情况下,编写起来会造成很大的麻烦.我使用的python 库:sqlalchemy来编写,用orm的方式,使代码变得非常简洁,按照数据库表的字段,编写好自己的类,在settings里面设置好pipeline即可.# -*- coding: u...]]></description><category></category></item><item><title><![CDATA[ubuntu 18.04 编译安装 bazel]]></title><link>https://blog.youkuaiyun.com/lhs960124/article/details/80286732</link><guid>https://blog.youkuaiyun.com/lhs960124/article/details/80286732</guid><author>lhs960124</author><pubDate>Fri, 11 May 2018 21:41:38 +0800</pubDate><description><![CDATA[bazel 是google用于构建项目的工具，主要用于构建google 的软件，如tensorflow等。最近想要编写android上的tensorflow 项目，使用android studio 要用到bazel ，装好之后记录一下，方便自己和有用到的朋友查看。但是我新装的ubuntu 18.04，bazel 用apt 安装默认只支持ubuntu14和16，apt install bazel 会...]]></description><category></category></item><item><title><![CDATA[nginx 80端口被 ‘welcome to nginx‘  欢迎界面占用，无法使用]]></title><link>https://blog.youkuaiyun.com/lhs960124/article/details/80208447</link><guid>https://blog.youkuaiyun.com/lhs960124/article/details/80208447</guid><author>lhs960124</author><pubDate>Sat, 05 May 2018 19:08:34 +0800</pubDate><description><![CDATA[问题描述：nginx 配置使用80端口，自动跳转到欢迎页面（welcome to nginx！），但是其他端口可以正常使用解决方法：配置文件目录：/etc/nginx/sites-enables/在这个目录下面除了在自己写的配置文件（×××.conf）外还有一个default文件，这个文件是默认加载的而配置文件，编辑这个default文件，打开以后是这样的：##
# You should look...]]></description><category></category></item><item><title><![CDATA[django+uwsgi+nginx 配置并启动]]></title><link>https://blog.youkuaiyun.com/lhs960124/article/details/80203629</link><guid>https://blog.youkuaiyun.com/lhs960124/article/details/80203629</guid><author>lhs960124</author><pubDate>Sat, 05 May 2018 11:56:37 +0800</pubDate><description><![CDATA[运行环境os: ubuntu 18.04 django: 2.0.4python：3.6uwsgi: 2.0.17nginx: 1.14.0主要原理django 是后端框架, 主要进行的是逻辑处理 , 其自带 WSGI服务器(位置：project_name/wsgi.py)，可用于调试，但高并发情况无法达到要求。uWSGI：也可以用作服务器，比wsgi快很多，但是在实际环境中，主要和nginx一起...]]></description><category></category></item><item><title><![CDATA[使用tensorflow object detection api 进行实时目标识别]]></title><link>https://blog.youkuaiyun.com/lhs960124/article/details/79840048</link><guid>https://blog.youkuaiyun.com/lhs960124/article/details/79840048</guid><author>lhs960124</author><pubDate>Sat, 07 Apr 2018 13:47:11 +0800</pubDate><description><![CDATA[1.安装             tensorflow 源码在 github 主要有两个仓库，一个是tensorflow ，另一个是models，我们需要的api 在models中。项目地址：             https://github.com/tensorflow/models官方安装说明文档：           https://github.com/tensorflow/model...]]></description><category></category></item><item><title><![CDATA[keras框架 反复调用model 模型 出错]]></title><link>https://blog.youkuaiyun.com/lhs960124/article/details/79028691</link><guid>https://blog.youkuaiyun.com/lhs960124/article/details/79028691</guid><author>lhs960124</author><pubDate>Wed, 10 Jan 2018 21:44:35 +0800</pubDate><description><![CDATA[Cannot interpret feed_dict key as Tensor: Tensor Tensor("Placeholder_8:0", shape=(3, 3, 128, 256), dtype=float32) is not an element of this graph.




后端我使用的是django框架,上传一张图片传入基于tensorflow的keras模型]]></description><category></category></item></channel></rss>