[返回] [最新] [最热门] [最高评价]

Fixing WordPress comment email notification problem by installing sendmail on Debian

In the past, whenever a reader commented on a blog entry, I would receive an email notification. Ever since I moved this site to a Linode VM, I noticed the comment email notification stopped working.
...

Haidong Ji 2013-11-18 12:18 | 查看: 7064

自建vpn之三:搭建openvpn service和生成客户端Profile

给虚机设定了基本的防护措施后,我们来安装openvpn服务器终端并生成profile文件。以下指令都是root级别。我假定你已经通过命令行连到服务器上。请根据需要在命令行前自行添加sudo或变成root。

我原计划给读者提供一步一步的说明,但那样会太繁琐。前两天注意到github上有人已经把这一切打包成一个shell脚本。我今天看了下,觉得写得很好。经过我成功测试后,推荐给你使用。并且这个脚本对
...

Haidong Ji 2015-11-07 06:38 | 查看: 4136

Removing duplicate rows in small batches based on date column

Due to double scheduling, some duplicate rows were inserted into the Windows.TableStats table in JiMetrics. To confirm that the table has duplicates, here is the T-SQL script I used. Note that this sa
...

Haidong Ji 2014-04-08 12:19 | 查看: 4057

WordPress post update services and Nginx upstream time out

Starting around last Friday, I think, this site became irresponsive. Checking Tengine/Nginx error logs, here is a sample of what I saw:

2014/03/xx 08:43:40 [error] 3837#0: *6149 connect() to unix:/va
...

Haidong Ji 2014-03-18 03:58 | 查看: 3512

Useful code snippet for Python list fold/reduce

Going through one of the MOOC courses, I came across a homework problem that I solved with one of Python’s list reduce functions, any(), throwing in an interesting functional programming twist.
...

Haidong Ji 2013-12-10 08:22 | 查看: 3292

Determining if a Windows host is a VM in JiMetrics

I’ve been using my own SQL Server metrics collection package called JiMetrics for a couple of years. It is easy to set up. All you need are just two things: SQL Server instance and an account th
...

Haidong Ji 2014-02-20 12:34 | 查看: 2800

Introducing JiMetrics

For the impatient, here is the link to JiMetrics web site, where you can get the scripts and get going. To learn why it is called JiMetrics, you will have to read all the way to the end.

During the l
...

Haidong Ji 2013-11-06 11:30 | 查看: 2659

Install sqlps as a PowerShell module

Most of SQL Server automation scripts using PowerShell use SMO directly. For example, one would do something like:

[System.Reflection.Assembly]::LoadWithPartialName(“Microsoft.SqlServer.SMOR
...

Haidong Ji 2013-02-16 11:53 | 查看: 2639

Evil Emacs, best of both worlds?

First, let’s get this out of the way. This is not a rant against Vim, or Emacs, for that matter. I am not interested in joining the epic religious battle between the two. In fact, if you are not
...

Haidong Ji 2013-07-25 04:15 | 查看: 1945

Ubuntu更新、Python和R软件包安装、和Firefox下载插件演示

视频演示:

1. 怎么更新Ubuntu Linux;

sudo apt-get update

sudo apt-get upgrade

sudo apt-get install build-essential

2. 怎么安装Python包;

sudo apt-get install python-pip

sudo apt-get install python-dev

s
...

Haidong Ji 2015-05-06 11:39 | 查看: 1860

Installing ack on Windows with ActiveState Perl

Search is important! Having a good tool for text search can lower or eliminate barrier, speed up work, and generally make life more enjoyable and fulfilling. That handy search tool, for me on Linux, h
...

Haidong Ji 2012-08-25 11:37 | 查看: 1773

开源软件的参与及社区互动的一些体会和建议:熟悉源代码的管理方式和工具

接上篇。上次讲到建立自己的沙盘。这是一个开源软件开发的小系列,简单介绍下一些经验和体会。
凡是有点规模的开发,都需要有源代码管理。实际上,即使是自己编个程序、写个脚本或文档,源代码管理也可以提供很多的便利。
源代码管理经历了几代的沿革和发展。从最初的单文件加锁和没有网络支持,发展到具有网络支持的集中式控制代码管理,现在这种方式还是占据不少的市场份额。在共同开发方面,集中统一式的管理要求你必须先合并
...

Haidong Ji 2012-03-24 06:25 | 查看: 1430

...更多...