Calendar

2010年三月
« 二    
1234567
891011121314
15161718192021
22232425262728
293031  

Translator

How online payment processing works

Online payment processing consists of two principal steps: authorization and settlement. The authorization process verifies that the customer’s credit card is active, and that there is sufficient credit to pay for the transaction. During the settlement process, the customer’s card account is charged and money from the customer’s account is transferred to the merchant’s account.

1. Payment processing authorization

During authorization, a bank verifies that holders of a payment instrument, such as a credit card, have sufficient credit or funds to make a purchase.

  1. Customer decides to purchase online and inputs credit card information.
  2. Merchant’s website receives customer information and sends it to payment processing service.
  3. Processing service routes information to processor.
  4. Processor routes information to bank that issued customer’s credit card.
  5. Issuing bank sends authorization (or declination) to processor.
  6. Processor routes transaction results to payment processing service.
  7. Processing service sends results to merchant.
  8. Merchant decides to accept or reject purchase. (Here, the merchant should take additional precautions to ensure the 8. credit card is not stolen and that the customer actually owns this card.)

image

Click to continue reading

SSH IPHONE

SSH、SCP和SFTP都是SSH套装软体的组成部分。简单的说,SSH是加密方式的控制台远端登入,全称是Secure Shell,是目前广泛采用的安全登录协议,替代以前不安全的Telnet协议。用SSH可以登录到Unix系统,并使用几乎所有的作业系统功能。如果你熟悉Windows的Remote Desktop,那么可以把SSH想像成命令列方式的Remote Desktop。 SSH包括2个部分,服务端的SSHD(Secure Shell Daemon)和SSH用户端。我们通常所说的用SSH登录到某某主机,指的是用SSH用户端登录到某台主机(该主机运行了SSHD服务端程式)。
SCP是Secure Copy的简称,是用来与远端主机之间进行资料传输的协定,相当于经过加密的Copy命令。
SFTP是用SSH封装过的FTP协议,相当于经过加密的FTP协议,功能与FTP一样,只是传输资料经过加密。 SFTP也有2个部分,服务端的SFTP-Server及SFTP Client。通常所说的用SFTP登录到某台主机,指的是用SFTP用户端登录到某台主机(该主机运行了SFTP-Server服务端程式)。

IPHONE ssh应用

用ssh登录IPHONE MAC OS_UNIX.untitled

iphone OS的核心是unix, ssh登录是unix系统管理的第一项工作,如何实现通过wifi网络的ssh logon IPHONE。

在iphone 上安装openssh for iphone 和BossPrefs。其中openssh是ssd,BossPrefs可获得iphone的本机wifi ip 地址和其现SSD开关。

通过ssh用户端,连iphone ip,iphone 2.1初始root密码是alpine.进入后用passwd改password。

用wifi管理IPHONE 文件系统

在前面基础上,安装WinSCP,就可以以wifi sfpt形式管理上下传你的iphone文件, 摆脱数据线。

这两样工作正是深入了解IPHONE MAC OS的开端。

QAD MFG/PRO Learning Path

老硬盘收藏,学习QAD的路径图。
eB2 Learning Path

ZendDebugger for Freebad

Requester:

disable your ZendOptimizer and eaccelerator
download ZendDebugger.os place to /usr/local/lib/php/20060613/ 

  ZendDebugger.so for freebsd (2.2 MiB, 37 hits)
You need to be a registered user to download this file.

Install:

edit your php.ini. For me php.ini is in /usr/local/etc/

[Zend]
zend_extension=/usr/local/lib/php/20060613/ZendDebugger.so
zend_debugger.allow_hosts=10.10.2.0/24
zend_debugger.expose_remotely=always
zend_debugger.connector_port=10001

restart your apache

Look in the phpinfo( ) got the result below!

zenddebugger

Click to continue reading

用mod_rewrite 负载的均衡

阅读APACHE mode_rewrite文档,提到一些用rewrite方法实现的负载的均衡方法,记录下。

负载的均衡

说明:

如何均衡www.foo.com的负载到www[0-5].foo.com(一共是6个服务器)?

方案:

这个问题有许多可能的解决方案,在此,我们讨论通称为“基于DNS(DNS-based)的”方案,和特殊的使用mod_rewrite的方案:

  1. DNS循环(DNS Round-Robin)

    最简单的方法是用BIND的DNS循环特性,只要按惯例设置www[0-9].foo.com的DNS的A(地址)记录,如:

    www0   IN  A       1.2.3.1
    www1   IN  A       1.2.3.2
    www2   IN  A       1.2.3.3
    www3   IN  A       1.2.3.4
    www4   IN  A       1.2.3.5
    www5   IN  A       1.2.3.6
    

    然后,增加以下各项:

    www    IN  CNAME   www0.foo.com.
           IN  CNAME   www1.foo.com.
           IN  CNAME   www2.foo.com.
           IN  CNAME   www3.foo.com.
           IN  CNAME   www4.foo.com.
           IN  CNAME   www5.foo.com.
           IN  CNAME   www6.foo.com.
    

    注意,上述看起来似乎是错误的,但事实上,它的确是BIND中的一个预期的特性,而且也可以这样用。无论如何,现在www.foo.com已经被解析,BIND可以给出www0-www6 – 虽然每次在次序上会有轻微的置换/循环,客户端的请求可以被分散到各个服务器。可是,这并不是一个优秀的负载均衡方案,因为,DNS解析信息可以被网络中其他名称服务器缓冲,而一旦www.foo.com被解析为wwwN.foo.com,则其后继请求都将被送往www.foo.com。但是最终结果是正确的,因为请求的总量的确被分散到各个服务器了

Click to continue reading

Qmail Core System # For FreeBSD

1.DAEMONTOOLS

Install

cd /usr/ports/sysutils/daemontools
make clean && make config
| | [X] MAN Install Gerrit Pape’s manual pages | |
| | [X] SIGQ12 Add svc support for QUIT, USR1, and USR2 signals | |
| | [X] TESTS Run the test suite, fails on NFS-mounted workdir | |
make extract

mkdir /service
chmod 755 /service

echo ’svscan_enable=”YES”‘ >> /etc/rc.conf
echo ’svscan_servicedir=”/service”‘ >> /etc/rc.conf

/usr/local/etc/rc.d/svscan.sh start

Verify Daemontools Is Runing

sleep 5
ps ax | grep svscan

Add the “clear” service

cd /usr/local
mkdir clear
touch clear/down
cat > clear/run < #!/bin/sh
yes '' | head -4000 |tr '\n'
chmod +x clear/run
chmod a-w clear/down
ln -s /usr/local/clear /service/clear

#When you want to clear the service errors, just run this:
svc -o /service/clear

Click to continue reading

回复:微软为何购买Linux雅虎?

回复:微软为何购买Linux雅虎? http://blog.sina.com.cn/s/blog_4e85818901008g4k.html

linux不是opensource世界的所有,甚至不能算是一个优秀的实例。它太随性,难以控制又牵扯太多商业利益,在hosting方面,我不认为它能成为windows的对手,起码windows更有组织性。
更喜欢Freebsd架构,由独立权威机构的精英们来维护核心发展,在这个基础上开放自身,包容世界。由于这样的方式发展让freebsd即稳定又丰富。其实“自古之来”这种方式都是大系统发展的主流。不认同吗,想想TCP/IP 与RFC。
如果从博主对这起收购的角度看事,microsoft真正博弈的另一方应该是以Freebsd,TCP/IP为代表的古已有之并已非常成功的发展大系统的模式。那就是由独立的精英团队奠定基础并无功利的开放与奉献自我并吸收一切优秀元素来成就自我。这对于像microsoft这样的商业公司是无法面对的死穴,但是microsoft终有一天必将面对,Bill.G会看到的。

My Freebsd Setting

前章:FreeBSD standard setup and tuning [load]

第0小节:最小化安装后作业

sysinstall–>Configure–>Distributions–>man //安装man我的习惯,没有这个东西,真是痛苦
/usr/libexec/locate.updatedb //更新LOCATE库

第1小节:配置ssh

ee /etc/rc.conf
//里面如果有sshd_enable="YES"则说明我们已经开启ssh服务器了,如果没有请加上。

ee /etc/ssh/sshd_config
//找到#PermitRootLogin no这一行,去掉前面的#号,再把后面的no改成yes,按ESC再按两下回车保存退出。如果你会用VI也可以。

//重启SSH服务
/etc/rc.d/sshd restart

第2小节:更新系统

//安装cvsup程序。cvsup是一个用于从远程服务器主机上的主cvs(1) 库分发和更新源码树的软件包,用来更新操作系统和软件。
setenv PACKAGEROOT “ftp://ftp.freebsdchina.org/”
setenv PACKAGESITE “ftp://ftp.freebsdchina.org/pub/FreeBSD/ports/i386/packages-7.0-release/Latest/” OR
//在/etc/profile 里设国内快点的packagesite
export PACKAGESITE=ftp://ftp.freebsdchina.org/pub/FreeBSD/ports/i386/packages-7.0-release/Latest/
export PACKAGEROOT=ftp://ftp.freebsdchina.org/

pkg_add -r cvsup-without-gui
rehash

//现在我们可以使用cvsup了,首先更新ports软件包源码。
cp /usr/share/examples/cvsup/ports-supfile ~root

更新服务器:

ee ~root/ports-supfile
//*default host=CHANGE_THIS.FreeBSD.org
//我们为了更快的速度,一般选择离我们比较近的服务器:
//*default host=cvsup.freebsdchina.org

更新PORTS LIST:

cvsup -g -L 2 ~root/ports-supfile

Click to continue reading

Page 1 of 71234567