博客园 - T#Suuid:24b78886-0ed1-41c2-8670-e3f31dcf42c4;id=714292016-07-27T15:20:21ZT#Shttps://www.cnblogs.com/olartan/feed.cnblogs.comhttps://www.cnblogs.com/olartan/p/5713013.htmlAndroid WebView常见问题及解决方案汇总 - T#SWebView在现在的项目中使用的频率应该还是非常高的。我个人总觉得HTML5是一种趋势。找了一些东西,在此总结。本篇最后有一个非常不错 的 Html5Activity 加载类,不想看的可以直接跳下载。 WebSettings 关于缓存 LOAD_CACHE_ONLY: 不使用网络,只读取本地缓存数2016-07-27T15:08:00Z2016-07-27T15:08:00ZT#Shttps://www.cnblogs.com/olartan/【摘要】WebView在现在的项目中使用的频率应该还是非常高的。我个人总觉得HTML5是一种趋势。找了一些东西,在此总结。本篇最后有一个非常不错 的 Html5Activity 加载类,不想看的可以直接跳下载。 WebSettings 关于缓存 LOAD_CACHE_ONLY: 不使用网络,只读取本地缓存数 <a href="https://www.cnblogs.com/olartan/p/5713013.html" target="_blank">阅读全文</a>https://www.cnblogs.com/olartan/p/5712736.htmlWindows的免費hMailServer搭配SpamAssassin過濾垃圾郵件:安裝與設定 - T#Shttp://jdev.tw/blog/1677/hmailserver-with-spamassassin-sawin32 為了解決垃圾信泛濫的狀況,這兩天「跨界」測試了運行在Windows上的免費Mail server:hMailServer,它內建了與垃圾郵件過濾軟體SpamAssassin的2016-07-27T13:45:00Z2016-07-27T13:45:00ZT#Shttps://www.cnblogs.com/olartan/【摘要】http://jdev.tw/blog/1677/hmailserver-with-spamassassin-sawin32 為了解決垃圾信泛濫的狀況,這兩天「跨界」測試了運行在Windows上的免費Mail server:hMailServer,它內建了與垃圾郵件過濾軟體SpamAssassin的 <a href="https://www.cnblogs.com/olartan/p/5712736.html" target="_blank">阅读全文</a>https://www.cnblogs.com/olartan/p/5709136.htmlasp.net web api long running task - T#Shttp://stackoverflow.com/questions/17577016/long-running-task-in-webapi http://blog.stephencleary.com/2014/06/fire-and-forget-on-asp-net.html https://2016-07-26T14:09:00Z2016-07-26T14:09:00ZT#Shttps://www.cnblogs.com/olartan/【摘要】http://stackoverflow.com/questions/17577016/long-running-task-in-webapi http://blog.stephencleary.com/2014/06/fire-and-forget-on-asp-net.html https:// <a href="https://www.cnblogs.com/olartan/p/5709136.html" target="_blank">阅读全文</a>https://www.cnblogs.com/olartan/p/5709075.html支持并发的异步日志 - T#Spublic class Logger { // 用于存放写日志任务的队列 private Queue _queue; // 用于写日志的线程 private Thread _loggingThread; // 用于通知是否有新日志要写的“信号器” private ManualResetEvent _hasNew; // 构造函数,...2016-07-26T13:47:00Z2016-07-26T13:47:00ZT#Shttps://www.cnblogs.com/olartan/【摘要】public class Logger { // 用于存放写日志任务的队列 private Queue _queue; // 用于写日志的线程 private Thread _loggingThread; // 用于通知是否有新日志要写的“信号器” private ManualResetEvent _hasNew; // 构造函数,... <a href="https://www.cnblogs.com/olartan/p/5709075.html" target="_blank">阅读全文</a>https://www.cnblogs.com/olartan/p/5611178.htmlMicrosfot SQL Server 2012 日志收缩 - T#S//Microsfot SQL Server 2012 日志收缩 USE DataBaseName;GO ALTER DATABASE DataBaseNameSET RECOVERY SIMPLE;GO-- Shrink the truncated log file to 1 MB.DBCC SH2016-06-23T08:05:00Z2016-06-23T08:05:00ZT#Shttps://www.cnblogs.com/olartan/【摘要】//Microsfot SQL Server 2012 日志收缩 USE DataBaseName;GO ALTER DATABASE DataBaseNameSET RECOVERY SIMPLE;GO-- Shrink the truncated log file to 1 MB.DBCC SH <a href="https://www.cnblogs.com/olartan/p/5611178.html" target="_blank">阅读全文</a>https://www.cnblogs.com/olartan/p/5166830.html移除IIS默认的响应头 - T#S移除Server 借助IIS URL Rewrite Module,添加如下的重写规则: <rewrite> <allowedServerVariables> <add name="REMOTE_ADDR" /> </allowedServerVariables> <outboundRules> <2016-01-28T08:46:00Z2016-01-28T08:46:00ZT#Shttps://www.cnblogs.com/olartan/【摘要】移除Server 借助IIS URL Rewrite Module,添加如下的重写规则: <rewrite> <allowedServerVariables> <add name="REMOTE_ADDR" /> </allowedServerVariables> <outboundRules> < <a href="https://www.cnblogs.com/olartan/p/5166830.html" target="_blank">阅读全文</a>https://www.cnblogs.com/olartan/p/4451386.htmlCentOS: 配置ShadowSocks服务端 - T#SCentOS:yum install python-setuptools && easy_install pippip install shadowsocksWindows:参见在 Windows 上安装服务端使用ssserver -p 443 -k password -m rc4-md5如果要后台...2015-04-23T10:30:00Z2015-04-23T10:30:00ZT#Shttps://www.cnblogs.com/olartan/【摘要】CentOS:yum install python-setuptools && easy_install pippip install shadowsocksWindows:参见在 Windows 上安装服务端使用ssserver -p 443 -k password -m rc4-md5如果要后台... <a href="https://www.cnblogs.com/olartan/p/4451386.html" target="_blank">阅读全文</a>https://www.cnblogs.com/olartan/p/4366910.htmlXcode 5 解决 The operation couldn’t be completed. (NSURLErrorDomain error -1012.) 问题 - T#S使用Xcode6.1 SVN 出现问题The operation couldn’t be completed. (NSURLErrorDomain error -1012.)解决方法:打开终端 然后输入如下命令svn ls xxxx (xxx是你SVN Server的地址)这里询问你是否允许这个地址...2015-03-25T13:01:00Z2015-03-25T13:01:00ZT#Shttps://www.cnblogs.com/olartan/【摘要】使用Xcode6.1 SVN 出现问题The operation couldn’t be completed. (NSURLErrorDomain error -1012.)解决方法:打开终端 然后输入如下命令svn ls xxxx (xxx是你SVN Server的地址)这里询问你是否允许这个地址... <a href="https://www.cnblogs.com/olartan/p/4366910.html" target="_blank">阅读全文</a>https://www.cnblogs.com/olartan/p/4326598.htmlHow to solve "The specified service has been marked for deletion" error - T#SThere may be several causes which lead to the service being stuck in “marked for deletion”.Microsoft Management Console (MMC) is opened. To ensure all...2015-03-10T09:36:00Z2015-03-10T09:36:00ZT#Shttps://www.cnblogs.com/olartan/【摘要】There may be several causes which lead to the service being stuck in “marked for deletion”.Microsoft Management Console (MMC) is opened. To ensure all... <a href="https://www.cnblogs.com/olartan/p/4326598.html" target="_blank">阅读全文</a>https://www.cnblogs.com/olartan/p/4278290.htmlTF-IDF与余弦相似性的应用 - T#S类似的算法已经被写成了工具,比如基于Java的Classifier4J库的SimpleSummariser模块、基于C语言的OTS库、以及基于classifier4J的C#实现和python实现。2015-02-06T18:13:00Z2015-02-06T18:13:00ZT#Shttps://www.cnblogs.com/olartan/【摘要】类似的算法已经被写成了工具,比如基于Java的Classifier4J库的SimpleSummariser模块、基于C语言的OTS库、以及基于classifier4J的C#实现和python实现。 <a href="https://www.cnblogs.com/olartan/p/4278290.html" target="_blank">阅读全文</a>https://www.cnblogs.com/olartan/p/4278261.htmlStandard Numeric Format Strings - T#SThe following table describes the standard numeric format specifiers and displays sample output produced by each format specifier. See theNotessection...2015-02-06T16:25:00Z2015-02-06T16:25:00ZT#Shttps://www.cnblogs.com/olartan/【摘要】The following table describes the standard numeric format specifiers and displays sample output produced by each format specifier. See theNotessection... <a href="https://www.cnblogs.com/olartan/p/4278261.html" target="_blank">阅读全文</a>https://www.cnblogs.com/olartan/p/4275641.htmlWhitespace character - T#SIncomputer science,whitespaceis anycharacteror series of whitespace characters that represent horizontal or verticalspaceintypography. When rendered, ...2015-02-05T10:18:00Z2015-02-05T10:18:00ZT#Shttps://www.cnblogs.com/olartan/【摘要】Incomputer science,whitespaceis anycharacteror series of whitespace characters that represent horizontal or verticalspaceintypography. When rendered, ... <a href="https://www.cnblogs.com/olartan/p/4275641.html" target="_blank">阅读全文</a>https://www.cnblogs.com/olartan/p/4272192.htmlHow to use System.Diagnostics.Process correctly - T#SI’ve seen many a question on stackoverflow and other places about running a process and capturing it’s output. Using the System.Diagnostics.Process co...2015-02-04T05:54:00Z2015-02-04T05:54:00ZT#Shttps://www.cnblogs.com/olartan/【摘要】I’ve seen many a question on stackoverflow and other places about running a process and capturing it’s output. Using the System.Diagnostics.Process co... <a href="https://www.cnblogs.com/olartan/p/4272192.html" target="_blank">阅读全文</a>https://www.cnblogs.com/olartan/p/4268269.htmlWindows系统下的TCP参数优化 - T#S1.TCP连接的状态 首先介绍一下TCP连接建立与关闭过程中的状态。TCP连接过程是状态的转换,促使状态发生转换的因素包括用户调用、特定数据包以及超时等,具体状态如下所示:CLOSED:初始状态,表示没有任何连接。LISTEN:Server端的某个Socket正在监听来自远方的TCP端口的连接请求...2015-02-02T09:23:00Z2015-02-02T09:23:00ZT#Shttps://www.cnblogs.com/olartan/【摘要】1.TCP连接的状态 首先介绍一下TCP连接建立与关闭过程中的状态。TCP连接过程是状态的转换,促使状态发生转换的因素包括用户调用、特定数据包以及超时等,具体状态如下所示:CLOSED:初始状态,表示没有任何连接。LISTEN:Server端的某个Socket正在监听来自远方的TCP端口的连接请求... <a href="https://www.cnblogs.com/olartan/p/4268269.html" target="_blank">阅读全文</a>https://www.cnblogs.com/olartan/p/4111180.htmlmime.types - T#S# This file maps Internet media types to unique file extension(s).# Although created for httpd, this file is used by many software systems# and has be...2014-11-20T10:06:00Z2014-11-20T10:06:00ZT#Shttps://www.cnblogs.com/olartan/【摘要】# This file maps Internet media types to unique file extension(s).# Although created for httpd, this file is used by many software systems# and has be... <a href="https://www.cnblogs.com/olartan/p/4111180.html" target="_blank">阅读全文</a>https://www.cnblogs.com/olartan/p/4110041.htmlList of XML and HTML character entity references - T#SA character entity reference refers to the content of a named entity. An entity declaration is created by using thesyntax in aDocument Type Definition...2014-11-20T02:41:00Z2014-11-20T02:41:00ZT#Shttps://www.cnblogs.com/olartan/【摘要】A character entity reference refers to the content of a named entity. An entity declaration is created by using thesyntax in aDocument Type Definition... <a href="https://www.cnblogs.com/olartan/p/4110041.html" target="_blank">阅读全文</a>https://www.cnblogs.com/olartan/p/4045016.htmlWindows 如何查看端口占用情况? - T#S1、Windows平台在windows命令行窗口下执行:1.查看所有的端口占用情况C:\>netstat -ano 协议 本地地址 外部地址 状态 PID TCP 127.0.0.1:1434 0.0.0.0:0 LISTENING 3236 TCP 127.0.0.1:5679 0.0.0.0:0...2014-10-23T01:41:00Z2014-10-23T01:41:00ZT#Shttps://www.cnblogs.com/olartan/【摘要】1、Windows平台在windows命令行窗口下执行:1.查看所有的端口占用情况C:\>netstat -ano 协议 本地地址 外部地址 状态 PID TCP 127.0.0.1:1434 0.0.0.0:0 LISTENING 3236 TCP 127.0.0.1:5679 0.0.0.0:0... <a href="https://www.cnblogs.com/olartan/p/4045016.html" target="_blank">阅读全文</a>https://www.cnblogs.com/olartan/p/3503354.htmlinput placeholder文字垂直居中(Mobile & PC) - T#SHtml5输入框支持placeholder,但是在定义文本框中定义placeholder存在兼容问题 但是在chrome下显示的search word并不能垂直居中。在stackoverflow上找到了对应的方法。参考地址:http://stackoverflow.com/questions/4919680/html5-placeholder-css-padding-problem解决方法是:把line-height设置为normalCSS定义如下input{ line-height: normal; /* for non-ie */ line-height: 22px\9; /* ...2014-01-03T03:23:00Z2014-01-03T03:23:00ZT#Shttps://www.cnblogs.com/olartan/【摘要】Html5输入框支持placeholder,但是在定义文本框中定义placeholder存在兼容问题 但是在chrome下显示的search word并不能垂直居中。在stackoverflow上找到了对应的方法。参考地址:http://stackoverflow.com/questions/4919680/html5-placeholder-css-padding-problem解决方法是:把line-height设置为normalCSS定义如下input{ line-height: normal; /* for non-ie */ line-height: 22px\9; /* ... <a href="https://www.cnblogs.com/olartan/p/3503354.html" target="_blank">阅读全文</a>https://www.cnblogs.com/olartan/p/3284267.html使用CSS3改变选中元素背景色 - T#SCSS3代码如下:/* SELECTION ----------------- */::-moz-selection {background: #f00533;color: white;text-shadow: none;}::selection {background: #A33248;color...2013-08-27T01:52:00Z2013-08-27T01:52:00ZT#Shttps://www.cnblogs.com/olartan/【摘要】CSS3代码如下:/* SELECTION ----------------- */::-moz-selection {background: #f00533;color: white;text-shadow: none;}::selection {background: #A33248;color... <a href="https://www.cnblogs.com/olartan/p/3284267.html" target="_blank">阅读全文</a>https://www.cnblogs.com/olartan/p/3211047.html登录远程SQL服务器 - T#S一看ping服务器IP能否ping通。 这个实际上是看和远程sqlserver2000服务器的物理连接是否存在。如果不行,请检查网络,查看配置,当然得确保远程sqlserver2000服务器的IP拼写正确。二在Dos或命令行下输入telnet服务器IP端口,看能否连通。 如telnet202.114.100.1001433 通常端口值是1433,因为1433是sqlserver2000的对于Tcp/IP的默认侦听端口。如果有问题,通常这一步会出问题。通常的提示是“……无法打开连接,连接失败"。 如果这一步有问题,应该检查以下选项。 1检查远程服务器是否启动了sqlserver20002013-07-24T08:55:00Z2013-07-24T08:55:00ZT#Shttps://www.cnblogs.com/olartan/【摘要】一看ping服务器IP能否ping通。 这个实际上是看和远程sqlserver2000服务器的物理连接是否存在。如果不行,请检查网络,查看配置,当然得确保远程sqlserver2000服务器的IP拼写正确。二在Dos或命令行下输入telnet服务器IP端口,看能否连通。 如telnet202.114.100.1001433 通常端口值是1433,因为1433是sqlserver2000的对于Tcp/IP的默认侦听端口。如果有问题,通常这一步会出问题。通常的提示是“……无法打开连接,连接失败"。 如果这一步有问题,应该检查以下选项。 1检查远程服务器是否启动了sqlserver2000 <a href="https://www.cnblogs.com/olartan/p/3211047.html" target="_blank">阅读全文</a>