<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[李大仁博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/yctccg</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; yctccg]]></copyright><item><title><![CDATA[Xcode8 beta版无法输出NSLog问题]]></title><link>https://blog.youkuaiyun.com/yctccg/article/details/52218073</link><guid>https://blog.youkuaiyun.com/yctccg/article/details/52218073</guid><author>yctccg</author><pubDate>Tue, 16 Aug 2016 10:45:09 +0800</pubDate><description><![CDATA[使用Xcode8的Beta版本进行Objective-C/iOS程序调试时，使用NSLog无法输出日志，同时输出以下内容： subsystem: com.apple.BaseBoard, category: MachPort, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate]]></description><category></category></item><item><title><![CDATA[MT4使用MQL连接Redis的插件]]></title><link>https://blog.youkuaiyun.com/yctccg/article/details/52218071</link><guid>https://blog.youkuaiyun.com/yctccg/article/details/52218071</guid><author>yctccg</author><pubDate>Tue, 16 Aug 2016 10:45:06 +0800</pubDate><description><![CDATA[工作中需要将MT4的数据读取并且存储到Redis数据库中去，同时MT4读取Redis当中的数据用于下单的切换账户。MT4支持使用MQL进行开发，通过调用标准的系统DLL实现系统调用，因此技术实现并不是太难，只需要按MQL的接口要求编写相应的CPP代码编译成DLL即可实现所需要的功能。在Windows平台上，连接Redis的客户端选用Hiredis作为连接客户端lib。MT4 连接Redis 头文件]]></description><category></category></item><item><title><![CDATA[Fiddler 脚本对HTTP请求进行处理]]></title><link>https://blog.youkuaiyun.com/yctccg/article/details/52218070</link><guid>https://blog.youkuaiyun.com/yctccg/article/details/52218070</guid><author>yctccg</author><pubDate>Tue, 16 Aug 2016 10:45:04 +0800</pubDate><description><![CDATA[Fiddler在HTTP编程过程是不可多得的利器，特别是它使用的是代理方式，能够提供非侵入式的HTTP通信报文编程，在Web接口调试方面很方便。特别是它提供使用JScript .NET方式进行功能拓展，让Web前端调试编程变得很容易先科普Fiddler, The free web debugging proxy for any browser, system or platform百度百科的介绍F]]></description><category></category></item><item><title><![CDATA[Mesos + Marathon + Deimos + Docker 容器集群组建]]></title><link>https://blog.youkuaiyun.com/yctccg/article/details/52218068</link><guid>https://blog.youkuaiyun.com/yctccg/article/details/52218068</guid><author>yctccg</author><pubDate>Tue, 16 Aug 2016 10:45:01 +0800</pubDate><description><![CDATA[今天用单机试验配置了Mesos + Marathon + Deimos + Docker容器集群环境，目的是为以后的搭建轻量级别PaaS平台先科普Mesos，是Apache下的开源分布式资源管理框架，它被称为是分布式系统的内核。Mesos最初是由加州大学伯克利分校的AMPLab开发的，后在Twitter得到广泛使用。Marathon，是一个mesos框架，能够支持运行长服务，比如web应用等。是集]]></description><category></category></item><item><title><![CDATA[Ubuntu的更改apt-get代理设置]]></title><link>https://blog.youkuaiyun.com/yctccg/article/details/52218066</link><guid>https://blog.youkuaiyun.com/yctccg/article/details/52218066</guid><author>yctccg</author><pubDate>Tue, 16 Aug 2016 10:44:58 +0800</pubDate><description><![CDATA[网站服务器切换回国内机房之后就是各种不适应，早上安装Docker,一直提示Get:1 https://apt.dockerproject.org/repo ubuntu-xenial/main amd64 docker-engine amd64 1.11.2-0~xenial [14.5 MB]Err:1 https://apt.dockerproject.org/repo ubuntu-xeni]]></description><category></category></item><item><title><![CDATA[w_char*和char *转换宽窄字符]]></title><link>https://blog.youkuaiyun.com/yctccg/article/details/52218065</link><guid>https://blog.youkuaiyun.com/yctccg/article/details/52218065</guid><author>yctccg</author><pubDate>Tue, 16 Aug 2016 10:44:56 +0800</pubDate><description><![CDATA[w_char*和char*在windows编程过程中进行转换是经常需要的，通常由互联网我们取到都是utf-8编码，到windows应用程序里面却需要用unicode编码。一开始用stdlib.h 下wcstombs_s和mbstowcs_s的代码实现，发现总是转换失败和出错。char 转 WCHAR 、wchar_t、LPWSTR ，窄字符转宽字符,C++代码//+----------------]]></description><category></category></item><item><title><![CDATA[Windows下实现Deamon守护脚本]]></title><link>https://blog.youkuaiyun.com/yctccg/article/details/52218064</link><guid>https://blog.youkuaiyun.com/yctccg/article/details/52218064</guid><author>yctccg</author><pubDate>Tue, 16 Aug 2016 10:44:53 +0800</pubDate><description><![CDATA[最近需要在Windows服务器上保持程序长期允许，因为程序比较老，无法用srvany.exe 改写成windows服务，只能自己手动编写守护脚本实现，网上找了短比较靠谱的守护脚本，在此mark一下。支持监视进程、端口。守护脚本定义部分@echo off::检测时间间隔，单位：秒set _interval=5::需要守护的进程名称set _processName=ProcessName::需要守护的]]></description><category></category></item><item><title><![CDATA[[Linux]使用SSH-KEY方式登录SSH]]></title><link>https://blog.youkuaiyun.com/yctccg/article/details/52218063</link><guid>https://blog.youkuaiyun.com/yctccg/article/details/52218063</guid><author>yctccg</author><pubDate>Tue, 16 Aug 2016 10:44:50 +0800</pubDate><description><![CDATA[管理Linux主机多了之后，管理大量的登录密码是一件很麻烦的事情，使用SSH-KEY方式登录服务器可以很好的解决问题。以下是使用SSH-KEY方式实现客户端免密码登录SSH的方法。一套SSH-KEY可以等遍所有的服务器。1.使用ssh-keygen在本地创建登录远程SSH服务器使用的公钥和私钥ssh-keygen -t [rsa|dsa] -C "comments"# -t 可选择RSA 和 DS]]></description><category></category></item><item><title><![CDATA[[iOS]objective-c AES/DES/3DES等加密算法实现]]></title><link>https://blog.youkuaiyun.com/yctccg/article/details/52218059</link><guid>https://blog.youkuaiyun.com/yctccg/article/details/52218059</guid><author>yctccg</author><pubDate>Tue, 16 Aug 2016 10:44:48 +0800</pubDate><description><![CDATA[objective-c对AES/DES/3DES等加密提供了统一的加密方法CCCrypt进行实现，目前主要支持的算法有@constant   kCCAlgorithmAES128      Advanced Encryption Standard@constant   kCCAlgorithmAES         Advanced Encryption Standard, 128-bit blo]]></description><category></category></item><item><title><![CDATA[Linux文件批量转编码iconv命令]]></title><link>https://blog.youkuaiyun.com/yctccg/article/details/52218058</link><guid>https://blog.youkuaiyun.com/yctccg/article/details/52218058</guid><author>yctccg</author><pubDate>Tue, 16 Aug 2016 10:44:45 +0800</pubDate><description><![CDATA[Linux下转换编码可以直接使用iconv命令搞定。支持单个文件和批量处理。iconv命令可以将一种已知的字符集文件转换成另一种已知的字符集文件。它的作用是在多种国际编码格式之间进行文本内码的转换。单个文件处理的shell命令iconv -t utf-8 -f gb2312 source > target# -f 源编码# -t 目标编码# -l :列出已知的编码字符集合# -o file :指定]]></description><category></category></item><item><title><![CDATA[[VBS]文件批量转编码]]></title><link>https://blog.youkuaiyun.com/yctccg/article/details/52218057</link><guid>https://blog.youkuaiyun.com/yctccg/article/details/52218057</guid><author>yctccg</author><pubDate>Tue, 16 Aug 2016 10:44:42 +0800</pubDate><description><![CDATA[工作中需要将大量GB2312编码的文件转换为UTF-8编码，Baidu找了一段很实用的VBS可以有效解决问题。使用方法也很简单，添加到工程调用ConvertFile即可。需要注意的是Adodb.Stream方式生成的UTF-8文件的头部会抱憾3个字节的BOM，处理PHP之类的无BOM要求的文件时需要注意一下。Function ConvertFile(FileUrl)    SrcCode = "g]]></description><category></category></item><item><title><![CDATA[[iOS] 实现IIF功能和DECODE函数功能]]></title><link>https://blog.youkuaiyun.com/yctccg/article/details/52218056</link><guid>https://blog.youkuaiyun.com/yctccg/article/details/52218056</guid><author>yctccg</author><pubDate>Tue, 16 Aug 2016 10:44:40 +0800</pubDate><description><![CDATA[iOS开发过程中需要处理大量分支判断代码，需要大量使用if、switch等进行分支处理。代码编写和查看都可能出现潜在问题，使用Objective-c语言的自身特点，可以通过以下转换，优化分支判断处理的代码写法。关键是可以一行代码搞定各种分支判断。实现代码简化。使用宏定义将三目运算改为IIF函数运算，类似于EXCEL的IF公式#if !defined(IIF)#define IIF_IMPL(con]]></description><category></category></item><item><title><![CDATA[Linux nc出现protocol not available错误]]></title><link>https://blog.youkuaiyun.com/yctccg/article/details/52218055</link><guid>https://blog.youkuaiyun.com/yctccg/article/details/52218055</guid><author>yctccg</author><pubDate>Tue, 16 Aug 2016 10:44:37 +0800</pubDate><description><![CDATA[最近折腾linux nc（netcat）命令时执行 nc -l 1567 监听命令遇到protocol not available，琢磨了很久终于找到了一个可行的解决办法：1、先将已安装的nc删除yum erase nc2.下载较低版本的nc的.rpm文件           wget   http://vault.centos.org/6.6/os/x86_64/Packages/nc-1.84]]></description><category></category></item><item><title><![CDATA[[Ruby] 更换GEM的source镜像]]></title><link>https://blog.youkuaiyun.com/yctccg/article/details/52218053</link><guid>https://blog.youkuaiyun.com/yctccg/article/details/52218053</guid><author>yctccg</author><pubDate>Tue, 16 Aug 2016 10:44:34 +0800</pubDate><description><![CDATA[升级MAC OS到10.11,开发环境也要调整，CocoaPods需要重新安装一下,由于GFW的原因，访问托管在amazon S3上的rubygems.org资源不能正常访问，需要调整一下GEM的source镜像1.首先确认一下当前source镜像地址gem sources -l服务器为 https://rubygems.org/*** CURRENT SOURCES *** https://ru]]></description><category></category></item><item><title><![CDATA[eclipse新建maven工程pom文件报错解决]]></title><link>https://blog.youkuaiyun.com/yctccg/article/details/52218052</link><guid>https://blog.youkuaiyun.com/yctccg/article/details/52218052</guid><author>yctccg</author><pubDate>Tue, 16 Aug 2016 10:44:31 +0800</pubDate><description><![CDATA[最近在使用elcipse新建了一个Maven工程，pom.xml文件报了个错误：web.xml is missing and  is set to true仔细探索了一下，原因是工程没有生成web.xml文件，这个跟JDK和Ecipse版本较新有关系,默认是Dynamic Web Module 3.0生成工程机制。一般情况下，会选择copy一份 web.xml，然后修改成自己工程的。其实还有如下更]]></description><category></category></item><item><title><![CDATA[[iOS]Xcode7.0关闭Bitcode编译]]></title><link>https://blog.youkuaiyun.com/yctccg/article/details/52218049</link><guid>https://blog.youkuaiyun.com/yctccg/article/details/52218049</guid><author>yctccg</author><pubDate>Tue, 16 Aug 2016 10:44:29 +0800</pubDate><description><![CDATA[今天在iOS上编译原来开发的代码，出现了以下错误xxxx.o does not contain bitcode. You must rebuild it with bitcode enabled  (Xcodesetting ENABLE_BITCODE)百度后知道Xcode7.0以后会默认开启Bitcode模式，很多旧的静态库由于编译问题，无法支持Bitcode，需要重新编译才能使用。如果不想重]]></description><category></category></item><item><title><![CDATA[MAC OS编译Android版Linphone SDK和APP]]></title><link>https://blog.youkuaiyun.com/yctccg/article/details/52218047</link><guid>https://blog.youkuaiyun.com/yctccg/article/details/52218047</guid><author>yctccg</author><pubDate>Tue, 16 Aug 2016 10:44:26 +0800</pubDate><description><![CDATA[之前在MAC OS折腾编译iOS版linphone-iphone SDK和APP成功，下一步继续编译Android版的linphone-android。Android版的文档更简单，一个README.TXT就结束，然后各种调查。简单说明一下linphoneLinphone is an open source SIP Phone, available on mobile and desktop en]]></description><category></category></item><item><title><![CDATA[MAC OS编译iOS版Linphone SDK和APP]]></title><link>https://blog.youkuaiyun.com/yctccg/article/details/52218045</link><guid>https://blog.youkuaiyun.com/yctccg/article/details/52218045</guid><author>yctccg</author><pubDate>Tue, 16 Aug 2016 10:44:23 +0800</pubDate><description><![CDATA[最近由于开发一款基于SIP通信的VOIP应用程序项目需要，自己研究了一下几款开源SIP实现，主要有PJSIP和Linphone，PJSIP由于文档说明详细，编译和测试都没有费多大事情。Linphone的编译就比较费神费力了，开始之前查看互联网上的资料，大家都说各种痛苦折磨，后来自己实践了一把，除了文档说明奇缺之外，编译还算顺利，除了调查耗费了不少时间。简单说明一下PJSIP和LinphonePJS]]></description><category></category></item><item><title><![CDATA[安装HomeBrew提示已安装并无法卸载]]></title><link>https://blog.youkuaiyun.com/yctccg/article/details/52218044</link><guid>https://blog.youkuaiyun.com/yctccg/article/details/52218044</guid><author>yctccg</author><pubDate>Tue, 16 Aug 2016 10:44:21 +0800</pubDate><description><![CDATA[自己的MAC工作机器上为了编译linphone创建了一个新用户，安装依赖包时提示brew未找到，重新安装brew时提示各种Permission denied。干脆到旧用户账户下把brew卸载。然后到新用户下重新安装。ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"新]]></description><category></category></item><item><title><![CDATA[Android强制使用WebView不调用系统或外部浏览器]]></title><link>https://blog.youkuaiyun.com/yctccg/article/details/52218040</link><guid>https://blog.youkuaiyun.com/yctccg/article/details/52218040</guid><author>yctccg</author><pubDate>Tue, 16 Aug 2016 10:44:18 +0800</pubDate><description><![CDATA[HTML5 HYBIRD混合APP需要在H5页面中打开第三方网站（例如：百度），android默认不在当前WebView中打开，反而会调用系统或外部浏览器，解决办法是自己重写WebViewClient，覆盖shouldOverrideUrlLoading并让其返回True。实现代码mWebView.setWebViewClient(new WebViewClient() {    public b]]></description><category></category></item></channel></rss>