<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[ziren235的专栏]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/ziren235</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; ziren235]]></copyright><item><title><![CDATA[Linuxc串口编程遇到的问题及解决方案]]></title><link>https://blog.csdn.net/ziren235/article/details/115584264</link><guid>https://blog.csdn.net/ziren235/article/details/115584264</guid><author>ziren235</author><pubDate>Sat, 10 Apr 2021 21:38:49 +0800</pubDate><description><![CDATA[最近要通过串口触发一个硬件设备，刚开始在windows下的程序与COM0通讯一切正常。后来换到Ubuntu系统，以为简单把程重新编译一下就可以了，没想到怎么都无法通过串口与设备通讯。
折腾了半天，在网上找了各种资料，尝试了各种方法，最后终于成功对串口进行读写操作。下面总结一下：
首先用 ls -l /dev/ttyS* 查看有哪些串口。[顺便提一下查看USB设备的命令是 lsusb 或者 ls -l /dev/ttyUSB*]
再用 cat /proc/tty/driver/serial 查看有哪些串口设备]]></description><category></category></item><item><title><![CDATA[[深度之眼Pytorch训练营第四期]学习笔记一：Pytorch简介及安装]]></title><link>https://blog.csdn.net/ziren235/article/details/105822543</link><guid>https://blog.csdn.net/ziren235/article/details/105822543</guid><author>ziren235</author><pubDate>Tue, 28 Apr 2020 22:17:17 +0800</pubDate><description><![CDATA[Pytorch安装
	
推荐使用Anaconda来管理pytorch等python包
由于电脑配置比较老了，原来装的是windows系统，安装的Ubuntu虚拟机比较慢，所以只好在windows下来安装环境了。使用默认的anaconda源经常会出现CondaHTTPError以及无法创建虚拟环境的问题，需要把anaconda源改为国内的清华大学镜像就可以了。可以参考[Anaconda 镜像使用...]]></description><category></category></item><item><title><![CDATA[Linux中打开.xps文件的软件]]></title><link>https://blog.csdn.net/ziren235/article/details/80311409</link><guid>https://blog.csdn.net/ziren235/article/details/80311409</guid><author>ziren235</author><pubDate>Mon, 14 May 2018 16:34:20 +0800</pubDate><description><![CDATA[XPS 是微软推出的用来替代PDF的一种文件格式，它可以像PDF一样表示一个固定布局的文档，也可以支持数字签名和数字版权保护。Windows 自带XPS Viewer可以打开。但是在ubuntu中却没有默认的程序可以打开。经过网上搜索找到以下两个工具：OkularMaster PDF Editor﻿﻿...]]></description><category></category></item><item><title><![CDATA[常用Linux命令]]></title><link>https://blog.csdn.net/ziren235/article/details/78065131</link><guid>https://blog.csdn.net/ziren235/article/details/78065131</guid><author>ziren235</author><pubDate>Fri, 22 Sep 2017 17:17:56 +0800</pubDate><description><![CDATA[命令行修改软件源
备份默认源 
 
sudo mv /etc/apt/sources.list /etc/apt/sources.list.$(date +%Y%m%d-%H%M%S).bak 修改为163源
. /etc/lsb-release
SOURCE="http://mirrors.163.com/ubuntu/"
cat > /etc/apt/sources.list <<EOF
deb]]></description><category></category></item><item><title><![CDATA[常用git命令]]></title><link>https://blog.csdn.net/ziren235/article/details/78065109</link><guid>https://blog.csdn.net/ziren235/article/details/78065109</guid><author>ziren235</author><pubDate>Fri, 22 Sep 2017 17:16:31 +0800</pubDate><description><![CDATA[常用git命令get最新的abbreviated commit hashgit rev-parse --short HEAD  
git log -1 --pretty=format:"%h"add/delete/list tags
List tags  
git tag  
git tag -l "v0.1*"
Add a tag to current HEAD  
git tag -a v0.2]]></description><category></category></item><item><title><![CDATA[docker常用命令]]></title><link>https://blog.csdn.net/ziren235/article/details/78064936</link><guid>https://blog.csdn.net/ziren235/article/details/78064936</guid><author>ziren235</author><pubDate>Fri, 22 Sep 2017 17:04:58 +0800</pubDate><description><![CDATA[An introduction to dockerWhy docker?Docker 是领先的软件容器平台。在和其他人合作开发时，利用Docker可以消除“只能在我的机器上运行”的问题。 
将应用程序和容器分隔开有利于消除冲突，增强安全性。 
公司使用Docker来构建敏捷软件交付流水线，可以使新功能更快面市。What’s image, container, registry, layer?cont]]></description><category></category></item><item><title><![CDATA[How to fix 'Inconsistency detected by ld.so: dl-version.c: 224: _dl_check_map_versions']]></title><link>https://blog.csdn.net/ziren235/article/details/75125840</link><guid>https://blog.csdn.net/ziren235/article/details/75125840</guid><author>ziren235</author><pubDate>Fri, 14 Jul 2017 17:03:01 +0800</pubDate><description><![CDATA[How to fix ‘Inconsistency detected by ld.so: dl-version.c: 224: _dl_check_map_versions’在linux中可以通过如下方式 Extending default lib search path: 
在/etc/ld.so.conf.d/下创建一个 .conf文件，将lib文件所在路径添加进去． 
安装完一个lib之后，执]]></description><category></category></item><item><title><![CDATA[linux 系统时区设置]]></title><link>https://blog.csdn.net/ziren235/article/details/15712143</link><guid>https://blog.csdn.net/ziren235/article/details/15712143</guid><author>ziren235</author><pubDate>Tue, 05 Jul 2016 23:28:50 +0800</pubDate><description><![CDATA[在/etc/sysconfig/clock文件中可以查看当前设置的时区。]]></description><category></category></item><item><title><![CDATA[GLSL学习资料整理]]></title><link>https://blog.csdn.net/ziren235/article/details/51440204</link><guid>https://blog.csdn.net/ziren235/article/details/51440204</guid><author>ziren235</author><pubDate>Tue, 17 May 2016 23:05:35 +0800</pubDate><description><![CDATA[之前只是使用过别人写好的shader，自己只知道它的作用，但并没有完全理解其中每一行代码的含义。工作之后，还是对图形这一块比较感兴趣，再加上这两年VR比较火，facebook CEO都说了看好VR在未来十年的前景，所以想利用业余时间好好学习一下GLSL。
在网上找了一下，关于GLSL的教程不是很多。除了OpenGL Shading Language这本书之外，可以找到的资料不是很多。
http]]></description><category></category></item><item><title><![CDATA[linux用nohup在后台常驻运行php脚本]]></title><link>https://blog.csdn.net/ziren235/article/details/24385471</link><guid>https://blog.csdn.net/ziren235/article/details/24385471</guid><author>ziren235</author><pubDate>Wed, 23 Apr 2014 22:47:41 +0800</pubDate><description><![CDATA[在linux平台上，要在后台运行脚本的话，一般是在命令之后加上&即可。
但是今天tong]]></description><category></category></item><item><title><![CDATA[表单提交前根据用户的选择决定是否提交]]></title><link>https://blog.csdn.net/ziren235/article/details/21866339</link><guid>https://blog.csdn.net/ziren235/article/details/21866339</guid><author>ziren235</author><pubDate>Sun, 23 Mar 2014 12:10:51 +0800</pubDate><description><![CDATA[有很多电商网站在下订单或者付款前，会特别提示用户是否选择确定。如果选择确定，才会完成订单或者付款；如果选择取消，则不会有后续操作。
这是怎么做到的呢？这需要弄清楚form的onsubmit()和form中的type为submit的input元素的onclick()。
如果onclick()或者onsubmit()返回false(注意要明确返回false，而不是要执行的函数返回false)，则不]]></description><category></category></item><item><title><![CDATA[php获取表单中多个同名元素的值]]></title><link>https://blog.csdn.net/ziren235/article/details/21551327</link><guid>https://blog.csdn.net/ziren235/article/details/21551327</guid><author>ziren235</author><pubDate>Wed, 19 Mar 2014 19:31:38 +0800</pubDate><description><![CDATA[有时前台页面要允许动态增加某项属性的多个值，比如向书架中添加书本，要可以动态增加或者删除书本。
前台页面的表单中会有多个input元素，如下：

  
  
  
  

当a.php页面收到表单数据时，可以利用$books = $_REQUEST[‘books’];得到所有书名的数组。]]></description><category></category></item><item><title><![CDATA[将php数组或者对象传递给javascript的方法]]></title><link>https://blog.csdn.net/ziren235/article/details/20660075</link><guid>https://blog.csdn.net/ziren235/article/details/20660075</guid><author>ziren235</author><pubDate>Thu, 06 Mar 2014 22:48:10 +0800</pubDate><description><![CDATA[在网上搜了一些方法，最后自己采用的是通过json字串的方式。
假设有一个php 数组 $arr，代码如下：
   // html5中默认的script是javascript,故不需要特别指定script language
  var arr_js = ;]]></description><category></category></item><item><title><![CDATA[CentOS 5 web server由apche切换为nginx]]></title><link>https://blog.csdn.net/ziren235/article/details/18944007</link><guid>https://blog.csdn.net/ziren235/article/details/18944007</guid><author>ziren235</author><pubDate>Thu, 06 Feb 2014 00:17:41 +0800</pubDate><description><![CDATA[centos5 网页服务器由apache转换为nginx，支持php+mysql]]></description><category></category></item><item><title><![CDATA[Windows系统apache+mysql+php环境搭建]]></title><link>https://blog.csdn.net/ziren235/article/details/18335961</link><guid>https://blog.csdn.net/ziren235/article/details/18335961</guid><author>ziren235</author><pubDate>Thu, 16 Jan 2014 01:46:07 +0800</pubDate><description><![CDATA[单独安装apache+mysql+php，需要配置较麻烦，现在有了统一的环境WAMP server，一键安装，非常方便。但是安装之后，需要做一些设置。
首先要修改mysql登录密码，安装之后的默认密码是空。]]></description><category></category></item><item><title><![CDATA[centos mysql安装遇到的问题及解决方法]]></title><link>https://blog.csdn.net/ziren235/article/details/18335735</link><guid>https://blog.csdn.net/ziren235/article/details/18335735</guid><author>ziren235</author><pubDate>Thu, 16 Jan 2014 01:43:37 +0800</pubDate><description><![CDATA[1. ERROR: 1017 Can't find file: './mysql/db.frm' (errno: 13)
 原因分析：/var/lib/mysql/目录，子目录及文件权限问题。需设定这些目录和文件的user及group均为mysql。目录权限为770,文件权限为 660。]]></description><category></category></item><item><title><![CDATA[常用MySQL命令]]></title><link>https://blog.csdn.net/ziren235/article/details/14898697</link><guid>https://blog.csdn.net/ziren235/article/details/14898697</guid><author>ziren235</author><pubDate>Sat, 09 Nov 2013 23:06:48 +0800</pubDate><description><![CDATA[最近要经常用命令行来进行mysql数据库操作，有些命令要去查看mysql手册，顺便整理一下，便于以后参考。linux下导出数据库需要用到mysqldump命令，它的存放位置在/usr/bin/数据库文件的存放位置在/var/lib/mysql/连接mysql server: mysql -h hostaddress -u username -p password导出某个表: mysqldump -...]]></description><category></category></item><item><title><![CDATA[经常使用到的linux命令]]></title><link>https://blog.csdn.net/ziren235/article/details/14110235</link><guid>https://blog.csdn.net/ziren235/article/details/14110235</guid><author>ziren235</author><pubDate>Sun, 03 Nov 2013 22:12:51 +0800</pubDate><description><![CDATA[最近在玩linux，总结一些经常用到的linux命令，有时忘记了可以过来翻看一下，免得每次都要到网上搜索。
查看主机操作系统信息： cat /proc/version
普通用户切换到root用户：  su -[root]， 然后输入root账户密码即可。
ubuntu 打开terminal的方法： 2.1  快捷键 Ctrl + Alt + T  2.2  点击Dash home，输入ter]]></description><category></category></item><item><title><![CDATA[VirtualBox虚拟机与主机之间共享文件夹]]></title><link>https://blog.csdn.net/ziren235/article/details/13615375</link><guid>https://blog.csdn.net/ziren235/article/details/13615375</guid><author>ziren235</author><pubDate>Tue, 29 Oct 2013 23:39:33 +0800</pubDate><description><![CDATA[宿主机器是Win7系统，virtualbox虚拟机是ubuntu.
两者之间共享文件夹方法：
1.首先在虚拟机中安装增强功能(菜单"设备"-->“安装增强功能”)。
2.设置共享文件夹：菜单“设备”-->“共享文件夹设置”，添加共享文件夹，设置共享文件夹路径和共享文件夹名称Temp，可以选择自动挂载，固定分配
3.打开terminal(快捷键Ctrl+Alt+T 或者点击Dash Home]]></description><category></category></item><item><title><![CDATA[OpenGL学习资源]]></title><link>https://blog.csdn.net/ziren235/article/details/13280247</link><guid>https://blog.csdn.net/ziren235/article/details/13280247</guid><author>ziren235</author><pubDate>Sun, 27 Oct 2013 23:41:40 +0800</pubDate><description><![CDATA[OpenGL Shading Language Tutorials and Demos  http://www.clockworkcoders.com/oglsl/index.html]]></description><category></category></item></channel></rss>