jfo planet

Hope is the best gift that tomorrow gives.

  • 首页
  • 分类
  • 归档
  • 标签
  • 搜索
close

New Words

发表于 2008-07-16   |   分类于 English
New Words =============================================ditch [ditʃ]摆脱, 抛弃She got bored with her boyfriend and ditched him.她对男友感到厌烦, 于是甩掉了他。=============================================prestigious [preˈsti:dʒəs, -ˈstɪdʒəs]a prestigious professor at a prestigious university. 享有声望的大学里的有名望的教授。=============================================elucidate [ɪˈlu:sɪˌdeɪt]Please elucidate the reasons for your decision.请把你作出决定的理由解释清楚============= ...
阅读全文 »

【zz】7 Steps to Positive Self Talk

发表于 2008-07-16   |   分类于 English
http://www.pickthebrain.com/blog/7-steps-to-positive-self-talk/#more-6087 Steps to Positive Self TalkMost of us are in constant mental chatter. We talk to ourselves all day long and, unfortunately, this self talk is frequently negative. Often it is tainted with guilt about our past or anxiety about our future. This negativity can destroy any seed of hope that we may otherwise have in striving for our dreams.Our actions are inspired by our thoughts. If we can change the way we think, we can begi ...
阅读全文 »

【zz】Why Is It So Hard to Be Yourself?

发表于 2008-07-14   |   分类于 English
http://www.pickthebrain.com/blog/why-is-it-so-hard-to-be-yourself/“He who trims himself to suit everyone will soon whittle himself away.” ~ Raymond Hull‘Be yourself!’ This is a common piece of advice, often given before an interview or a date or some other occasion when we need to impress. Sounds like a strange piece of advice, though. How could you not be yourself?Strange as it seems, we have been conditioned all our lives to behave according to other people’s ex ...
阅读全文 »

Google Protocol Buffers

发表于 2008-07-14   |   分类于 Google
Protocol Buffer Basics: C++another useful google project
阅读全文 »

python function reference

发表于 2008-07-14   |   分类于 python/js/php/html/mysql/http
=================================================================字典中的 get 函数 我们经常需要在字典中初始化数据: 以下是不好的实现方法: navs = {}for (portfolio, equity, position) in data:    if portfolio not in navs:        navs[portfolio] = 0    navs[portfolio] += position prices[equity]使用dict.get(key, default) 删除 if 判断代码: navs = {}for (portfolio, equity, position) in data:    navs[portfolio] = (navs.get(portfolio, 0)          & ...
阅读全文 »

OpenVPN虚拟网络拓扑剖析

发表于 2008-07-07   |   分类于 Network
OpenVPN虚拟网络拓扑剖析 By jfo,   转载请注明出处http://blog.pickbox.cc/2008/07/07/openvpn%E8%99%9A%E6%8B%9F%E7%BD%91%E7%BB%9C%E6%8B%93%E6%89%91%E5%89%96%E6%9E%90/   OpenVPN- server/client配置模型 sample-config-files:http://openvpn.net/index.php/documentation/howto.html#examples Ø 点对点VPN tunnel网络拓扑 server .0 255.255.255.0 一旦client连接上,tun设备相当于虚拟出一个网关 服务器端(Linux)的路由如下: 所有VPN .0/24子网段都经由10.10.10.2处理,网关10.10.10.2可以判断目标地址,查找内部记录的信息,将数据包发送给正确的客户端。 客户端(Windows)的路由如下: 所有VPN .0/24子网段都经由10.10.10.5处理,网关10.10 ...
阅读全文 »

Linux网络工具:IPTABLES ~ ip/route ~ tcpdump ~ netstat ~ and so on ...

发表于 2008-07-06   |   分类于 Network
~~ my snortSnort 用户手册-c config-fileUse the rules located in file config-file.-C     Print the character data from the packet payload only (no hex).-d     Dump the application layer data when displaying packets in ver‐bose or packet logging mode.-e     Display/log the link layer packet headers.-i interfaceSniff packets on interface.-n packet-countProcess packet-count packets and exit.-X     Dump ...
阅读全文 »

【OpenVPN】配置

发表于 2008-07-03   |   分类于 Network
http://openvpn.net/index.php/documentation/howto.html#examplesopenvpn –config server.ovpn –lport 1194openvpn –config client.ovpn –remote 10.10.10.22 1194 –lport 7890 Expanding the scope of the VPN to include additional machines on either the client or server subnet.Including multiple machines on the server side when using a routed VPN (dev tun)Once the VPN is operational in a point-to-point capacity between client and server, it may be desirable to expand the scope of the VPN so that ...
阅读全文 »

【zz】开发Windows NT的后台服务

发表于 2008-06-30   |   分类于 Windows
开发Windows NT的后台服务摘 要:利用一组WIN32 API函数将自主开发的服务器程序扩展为 NT的 一项后台服务,让NT把其当作系统服务自动加载,从而扩充NT服务器的后台功能,并结合一 个实例说明开发中应做的工作。关键词:Windows NT 后台服务 服务控制管理器在WINDOWS NT服务器中,NT的一些后台系统服务随着NT的启动而自动加载, 不需用户人工 干预,这种方式不仅简化了服务器启动过程,同时也使一些重要服务的启动更加安全可靠。 而且,在服务器启动以后,用户也可以利用控制面板中服务控制面板应用程序灵活地设置这 些后台服务的启动属性,方便了用户对NT后台服务的管理。笔者在开发基于NT服务器的应用 程 序时,发现利用一组WIN32 API 函数完全可以将自己开发的服务器程序扩展为NT的一项后台 服务,让NT把其当作系统服务自动加载,从而扩充NT服务器的后台服务功能。下面结合一个 实例,概述开发NT后台服务应用程序的方法和步骤。1 自定义后台服务注册在NT操作系统中,所有的后台服务全都由服务控制管理器进行统一管理,这些后台服务的状 态数据都保存在服务控制管理器数据库中 ...
阅读全文 »

【zz】python脚本作为Windows服务启动

发表于 2008-06-30   |   分类于 python/js/php/html/mysql/http
如果我们想让系统启动的时候就执行某个程序,windows系统和unix系统是不一样的,对于unix只需要将要执行的命令放到 rc.local中,系统重新启动的时候就可以加载了。windows就麻烦多了,如果你将程序放到启动组中,只有输入了密码后,程序才被执行,如果想在 系统一启动的时候就执行程序,必须使用nt服务。 python下如何使用nt服务,其实很简单。 下载python的win32支持。我使用的是:pywin32-202.win32-py2.3.exe安装好后就可以来写我们的服务了。 我们先来建立一个空的服务,建立test1.py这个文件,并写入如下代码: # -- coding: cp936 -- import win32serviceutil import win32service import win32event class test1(win32serviceutil.ServiceFramework):      _svcname = "test_python"    & ...
阅读全文 »
1…373839…61
jfo

jfo

605 日志
38 分类
4 标签
RSS
GitHub 微博
友情链接
  • 收藏夹
  • 网络剪贴板
  • 爱逛吧
© 2007 - 2018 jfo
由 Hexo 强力驱动
主题 - NexT.Pisces