Factoring Integer on OS X with CADO-NFS

Environment: Mac OS X 10.10, MacPorts 2.3.3, CADO-NFS 2.1.1 Dependencies Make sure all dependencies are installed. CADO-NFS Required software tools Required software tools GMP: usually installed in most Linux distributions (on some Linux distributions you need to install libgmp*-dev including gmp.h, which is not installed by default). Note: make sure to configure GMP with –enable-shared … Continue reading “Factoring Integer on OS X with CADO-NFS”

EdgeOS PPTP VPN客户端配置

背景及目标 买了个Ubnt EdgeRouter Lite,应同事的需求,研究配置自动翻墙。 考虑过之前配置的各种VPN:PPTP、L2TP、IPSec、AnyConnect/OpenConnect。目前搞定的只有PPTP。 本次配置使用远程PPTP Server,只考虑Google、Twitter和Facebook的自动翻墙,其他可以参照思路自己加路由和NAT。 环境 假设网络已经配置好,eth0为内网口,eth1为外网口。 Incoming search terms:edgemax pptp firewalledgeos ipsecedgerouter pptplinux墙翻自动ubnt 翻墙翻墙自动翻墙Link to this post!

Use linux glibc headers on OSX

I’m writing my output module for rsyslog on OSX, the IDE I choose is AppCode. To import the folder, I created an empty project, added the whole source folder cloned from github, added following paths into ‘Header Search Paths‘(use HSP for short):

No Recursive checked. As you can see, I have macports installed, and … Continue reading “Use linux glibc headers on OSX”

Build omhdfs for Rsyslog

omhttpfs is contrib-ed to rsyslog official repo as an alternative log-to-hdfs solution. Omhdfs is not provided as an RPM from rsyslog’s offical yum repo, so I’m trying to build on a machine with hadoop installed. My server is CentOS 6.5, with CDH 5.1 installed. Download source from: http://www.rsyslog.com/files/download/rsyslog/rsyslog-8.2.2.tar.gz Install dependencies:

Then I tried to: … Continue reading “Build omhdfs for Rsyslog”

Open Connect Server Configuration (Working for iOS)

Working for iOS only, but for OSX, (Cisco AnyConnect Client for OS X 3.1.05160), captive portal is detected. ‘Web Authentication Required’ and error log like

OpenConnect on Ubuntu Generate Certificate with GnuTLS and Sign with OpenSSL Incoming search terms:ROUTETABLE_ERROR_GETBESTROUTE_FAILEDguntls priority strings for ocservocserv profile xml cannot load config file isolate-workercisco anyconnect EKU not found … Continue reading “Open Connect Server Configuration (Working for iOS)”