其它技术


23
四 10

若干件事儿

1.

第一件,是一件非常难忘的事情。有一次跟单位的同事做经验分享,被一个问题问到,不知如何回答,场面十分尴尬。当时我还很浅薄,当然我现在也很浅薄,并且随着知道的东西越来越多,愈加觉得自己浅薄。

那个问题是“服务器和PC有什么区别?”

当时,因为我工作内容的局限性和要分享的对象大多是非技术人员,我执拗、狂妄、骄傲地认为服务器和PC没有什么区别。服务器只不过是性能更好、质量更好的计算机而已。

之后的这几年里,胡思乱想的时候也会想起这个问题,慢慢地便有了新的认识,从不同的角度,得出了很多种回答。

现在,我又有了新的认识。服务器跟PC最大差别是什么?你不妨也回答一下这个问题。我现在深深地意识是,根本上的差别,是使用环境的差别,使用环境的不同,而使服务器的工业设计跟PC上有着巨大的差异。

服务器通常都是应用在是无人值守的环境里的。并且另一个事实是,一个系统管理员可能要管理成千上万的服务器。

鉴于这种使用环境的不同,专业的服务器除了高性能、高可用性等人人皆知的品质之外,还都提供了方便“远程管理”的功能,基于硬件,独立于操作系统之外。只要通上电,接处网络,管理员可以不用坐到服务器面前,就可以管理,开机、关机,甚至是重装操作系统!

是的!不用怀疑,只要是正经的服务器,都有这样的功能。这些早已经是标准配置,内置于所有的服务器当中,只是因为制造商的技术不同,而略有不同而已。

2.

第二件,是关于做工作记录的。

我给很多朋友都推荐过一本书《把时间当作朋友》,我相信,很多人都没有看。
前两天一个朋友被领导要求做详尽的工作计划、工作记录,他很郁闷。

一年多前,我也遇到过同样的问题,同样的反应。不光是我,几乎所有其他的同事,都是被动地接受,默默地忍受。

不可思议的是,我坚持了下来,养成了这种看似变态的习惯。我保存着大量的工作记录,我能准确地说出过去两年里的某个工作日,我做了哪些工作。并且我从过 去的两年里的记录得出,我的进步非常缓慢,我过去两年里的的收获,有很多因为没有及时的整理归档,几乎已经完全没有印象了。

这让我改进了自己的记录的方式。在淘宝的这两个月里,我进步得飞快,一是因为新鲜,求知欲比较强烈;二跟我改进的工作记录方式有必不可分的关系。

那天,我跟那个当时让我们都很不爽的领导发了一个信息,感谢他让我养成了做工作记录的习惯。并且,告诉他我的新认识。我短信是这样说的:“我刚才说教我 的一个朋友,他遇到了同样的要求做记录的领导,同样的全体被动地接受。我想,主客上,是因为懒惰,而客观上,做记录其实是一种看似简单的本领。因为新接触 的人都不约而同地认为没办法记录。”

如《把时间当作朋友》所说,记录这种习惯是需要训练的。看似简单,人人都会,可是从中获得价值、获得乐趣,真的不是人人都会的。而领导往往忽略了这些,认为“那只不过是很简单的事情罢了”,然后弄得人人抱怨。

很遗憾的是,当初被要求做记录的技术部的同事们,并不是所有人都在这样“无可奈何的、看似无聊工作的工作记录过程中”,训练出“做记录的本领”,养成这样的习惯,并从中获得有用的信息,获得乐趣。

我的那些同事们都是绝顶聪明的人,即使他们不作工作记录,也能高效、出色地完成工作。然而,本来是一个很好的训练机会,因为没有发现意义,没有引起重视,或者是因为没有认识到价值,也没有从中得到什么乐趣,从而白白地折磨了自己、浪费了时间。

Technorati Tags:


13
十一 08

开多个Gtalk

小花 同学那里知道的,同一个桌面开多个gtalk的方法,在gtalk.exe后加上个 “/nomutex” 参数,便可以了。

同学们果然都是很令人刮目相看的,即使不是技术部门的,也会偶尔提出来非常技术的问题,甚至解决方案,真的很赞赏,我深深的体会到和聪明人共事真的是一件快乐和庆幸的事儿。


22
十 08

Linux上的文本“浏览器”

从elinks开始,回想了一下Linux下基于ncurses库的“浏览器”,有如下几种:

lynx :最经典的,不用说了

w3m :用的和知道的人好像比较少。

elinks :昨天刚看到的,据说是替代lynx的程序。

links :指向elinks的软链接。

htmlview :一个shell角本,不能算是文件浏览器,他是一个探测程序,使用探测到的程序打开URL,在文本终端上,总是使用文件浏览器打开URL。

你还知道哪些?


27
九 08

神州七号

神州七号第一季

神州七号第二季

神州七号第三季


26
九 08

Firefox 3.0.2 无法保存密码

Firefox升级到3.0.2之后,发现原来保存的密码都不能用了,而且也不能重新保存……

木溪 帮忙,试了很多种方法,网上找了很久,终于找到问题:原来是3.0.2将存密码的文件编码由ANSI转换成了UTF-8,造成了编码错误。

解决办法,就是找到密码保存文件signons3.txt(在 系统盘:\Documents and Settings\xxxx\Application Data\Mozilla\Firefox\Profiles\xxxxx.default目录下),用常用的编辑器打开,另存为UTF-8编码覆盖原来的文件即可。

已经验证过,可行。


16
九 08

图片

Nikon D700

Nikon D700

ThinkPad T400

ThinkPad T400

Nikon D80

Nikon D80

UMPC

UMPC

google_phone_by_dogorgod

google_phone_by_dogorgod

Gphone

Gphone

trek

trek

trek

trek

法拉利概念车

法拉利概念车

法拉利概念车

法拉利概念车

现代机器人

现代机器人

现代机器人

现代机器人

现代机器人

现代机器人

现代机器人

现代机器人


13
九 08

分布式、集群文件系统小结

顺序不分先后:

Lustre
Lustre is a scalable, secure, robust, highly-available cluster file system. It is designed, developed and maintained by Sun Microsystems, Inc.
Designed to meet the demands of the world’s largest high-performance compute clusters, the Lustre file system redefines scalability and provides groundbreaking I/O and metadata throughput. An object-based cluster, Lustre currently supports tens of thousands of nodes, petabytes of data, and billions of files — and development is underway to support one million nodes, trillions of files, and zetta to yotta bytes.
http://www.sun.com/software/products/lustre/
http://wiki.huihoo.com/index.php?title=Lustre

AFS
AFS Reference Page

OpenAFS
What is AFS?
AFS is a distributed filesystem product, pioneered at Carnegie Mellon University and supported and developed as a product by Transarc Corporation (now IBM Pittsburgh Labs). It offers a client-server architecture for file sharing, providing location independence, scalability and transparent migration capabilities for data. OpenAFS is the Transarc source code released as it looked like around AFS3.6 under IBM Public License IPL.

Arla
Arla is a free AFS implementation.
The main goal is to make a fully functional client with all capabilities of AFS as formerly sold by Transarc and today available as OpenAFS. Other stuff, such as servers and management tools are being developed, but currently not considered stable.

Coda
Coda分布式文件系统:http://www.bsdmap.com/diary/coda.php
Coda File System http://www.coda.cs.cmu.edu/
Coda is a forked of version of AFS that support disconnected and weakly connected mode better then AFS.

InterMezzo
InterMezzo is a new distributed file system with a focus on high availability. InterMezzo will be suitable for replication of servers, mobile computing, managing system software on large clusters, and for maintenance of high availability clusters.

xFS
xFS is a Serverless Network File Service.

CFS
Cluster File Systems, Inc. is the leading developer of next generation technology for scalable high-performance file systems. Our Lustre® file system redefines scalability and has been designed from the ground up to meet the demands of the world’s largest high-performance computer clusters.

GlusterFS
GlusterFS is a cluster file-system capable of scaling to several peta-bytes. It aggregates various storage bricks over Infiniband RDMA or TCP/IP interconnect into one large parallel network file system. GlusterFS is based on a stackable user space design without compromising performance.

Scalable File Share
HP StorageWorks Scalable File Share
A high-bandwidth, scalable storage appliance for Linux clusters
http://h20311.www2.hp.com/HPC/cache/276636-0-0-0-121.html

MogileFS
MogileFS is our open source distributed filesystem. Its properties and features include:
-1. Application level
-2. No single point of failure
-3. Autumaic file replication
-4. “Better than RAID”
-5. Flat Namespace
-6. Shared-Nothing
-7. No RAID required
-8. Local filesystem agnostic

Hadoop
The Apache Hadoop project develops open-source software for reliable, scalable, distributed computing, including:
* Hadoop Core, our flagship sub-project, provides a distributed filesystem (HDFS) and support for the MapReduce distributed computing metaphor.
* HBase builds on Hadoop Core to provide a scalable, distributed database.
* ZooKeeper is a highly available and reliable coordination system. Distributed applications use ZooKeeper to store and mediate updates for critical shared state.

PVFS
http://www.pvfs.org/
http://www.parl.clemson.edu/pvfs/
PVFS is designed to provide high performance for parallel applications, where concurrent, large IO and many file accesses are common. PVFS provides dynamic distribution of IO and metadata, avoiding single points of contention, and allowing for scaling to high-end terascale and petascale systems.

GFS

http://en.wikipedia.org/wiki/Global_File_System
http://www.redhat.com/docs/manuals/csgfs/
GFS (Global File System) is a cluster file system. It allows a cluster of computers to simultaneously use a block device that is shared between them (with FC, iSCSI, NBD, etc…). GFS reads and writes to the block device like a local filesystem, but also uses a lock module to allow the computers coordinate their I/O so filesystem consistency is maintained. One of the nifty features of GFS is perfect consistency — changes made to the filesystem on one machine show up immediately on all other machines in the cluster.

See also

External links About GFS

1. HP OpenVMS
————–
The first to work with a CFS is HP OpenVMS. Oracle Parallel Server and RAC always used
the OpenVMS filesystem (RMS) for its database.

2 HP Tru64
————
CFS is a layer on top of Advfs the filesystem of HP Tru64. Oracle uses
the Direct I/O feature available in CFS. Direct I/O enables Oracle to bypass
the buffer cache (no caching at filesystem level). Oracle manages the
concurrent access to the file itself; as it does on raw devices. On CFS,
without Direct I/O enabled on files – file access goes through a CFS server.
A CFS server runs on a cluster member and serves a file domain. A file
domain can be relocated from one cluster member to another cluster member
online. A file domain may contain one or more filesystems.

Direct I/O does not go through the CFS server, but file creation and resizing
is seen as metadata operation by advfs and this has to be done by the CFS
server.  The consequence is to run file creations and resizing on the node
where the CFS server is located. File operations might take longer when the
CFS server is remote.

Oracle recommends not using the tempfile option, as tempfiles might not be
allocated until the tempfile blocks are accessed and so cause
‘remote metadata operations’for advfs.

3 Veritas
———–
VERITAS Database EditionTM / Advanced Cluster for Oracle9i RAC enables Oracle
to use the CFS.  The VERITAS Cluster File System is an extension of the VERITAS
File System (VxFS).  Veritas CFS allows the same filesystem to be simultaneously
mounted on multiple nodes.  Veritas CFS is designed with a master/slave
architecture.  Any node can initiate a metadata operation (create, delete, or
resize data), the actual operation is carried out by the master node. All other
(non metadata) IO goes directly to the disk.

CFS is used in DBE/AC to manage a filesystem in a large database environment.
When used in DBE/AC for Oracle9i RAC, Oracle accesses data files stored on CFS
filesystems by bypassing the filesystem buffer and filesystem locking for data.

4 Oracle Cluster File System
——————————
Oracle Cluster File System (OCFS) is a shared filesystem designed specifically
for Oracle Real Application Clusters. OCFS eliminates the requirement for Oracle
database files to be linked to logical drives and enables all nodes to share a
single Oracle_Home (current capabilities are detailed in section 2.8) instead
of requiring each node to have its own local copy. OCFS volumes can span one
shared disk or multiple shared disks for redundancy and performance
enhancements.

5. Netapp(R) Filer
——————-
Netapp Filer offers CFS functionality via NFS to the server machines. These
filesystems are mounted using special mount options. For details please see
Netapp documentation.

Netapp certifications can be found at:

http://www.netapp.com/part…

To understand the architecture and Oracle installation please see these
documents:

Note 210889.1: RAC Installation with a NetApp Filer in Red Hat Linux Environment
and
Oracle9i RAC Installation with a NetApp Filer on Fujitsu-Siemens Primepower
(Solaris8 Operating System) at http://www.netapp.com/tech…

6 AIX
——-
IBM’s General Parallel File System (GPFS) allows users shared access to files
that may span multiple disk drives on multiple nodes. GPFS provides access to
all data from all nodes of the cluster.  It can be configured with multiple
copies of metadata allowing continued operation should the paths to a disk or
the disk itself be broken. Metadata is the filesystem data that describes
the user data.  GPFS allows the use of RAID or other hardware redundancy
capabilities to enhance reliability.

In Oracle9i GPFS is only supported with HACMP/ES in a RAC configuration.
When placing datafiles on GPFS no CRM (Concurrent Resource Manager) needs to be
installed. Starting with Oracle10g HACMP is no longer required to use GPFS.

Metalink contains certification information and information about required
patches for having a cluster database on a GPFS.

7 Sun GFS
———–
Global File Service (GFS or Cluster File System) is a filesystem that is
accessible from all nodes in the cluster. GFS is based on global devices and
has a client/server architecure. GFS provides transparent and concurrent file
access.

Note that Sun GFS is not supported for Oracle datafiles, see section 3.10.

8 Sun StorEdge QFS
——————–
QFS software is a file manager that provides a shared filesystem where mutiple
servers can read and write simultanuously to the same file in the same filesystem.

9 Other Linux Cluster Filesystems
———————————–
There are various third party cluster filesystems available on Linux.
Consult the Oracle Certify website for the policy regarding support for third party
cluster file systems on Linux. Also, consult the RAC Technology Compatibility Matrix (RTCM)
for Linux (http://www.oracle.com/tech… … generic_linux.html)
for the latest information on which third party cluster file systems are supported
by RAC release and platform.

10 Which Platforms support what?
———————————-

Platform and                         Storage for                      Storage for
[Cluster Software]                Oracle installation             datafiles

AIX [HACMP]                          LFS (1) or CFS (2)           CFS and/or Raw devices
AIX [CRS]                                  LFS or CFS            CFS and/or Raw devices
HP/UX [MC/Service Guard]             LFS or CFS (3)        CFS (3) and/or Raw Devices
HP/UX PA-Risc [Veritas DBE/AC)       LFS or CFS            CFS and/or Raw Devices
Linux [oracm, CRS]                   LFS                   OCFS (4) and/or Raw
Devices, also NFS (5)
OpenVMS                              CFS                   CFS
Sun Solaris [Fujitsu Siemens         LFS                   Raw Devices/NFS (5)
Primecluster]
Sun Solaris [Sun Cluster]            LFS or CFS        (6,7)             CFS (7) Raw Devices/NFS (5)
Sun Solaris [Veritas DBE/AC]         LFS or CFS                         CFS and/or Raw Devices
Tru64 Unix                           LFS or CFS                         CFS and/or Raw Devices
Windows NT/2000 [oracm, CRS]         LFS or CFS                   OCFS and/or Raw Devices
Windows 2003 (32/64bit) [oracm, CRS] LFS or CFS            OCFS and/or Raw Devices

(1) LFS is the abbreviation for local filesystem and is only accessible directly
by the node that mounted the disk
(2) CFS is the abbreviation for Cluster FileSystem. The implementation
depends on the operating software vendor or cluster software vendor.
(3) MC ServiceGuard 11.17 includes a CFS which is supported with Oracle 10gR2
(4) OCFS: Oracle Cluster FileSystem
(5) NFS is supported with Netapp(R) Filer, see Metalink certification
(6) Sun GFS can only be used for Oracle_Home and archivelogs.
(7) Sun StorEdge QFS

Local Filesystem means that the Oracle Universal Installer replicates the
RAC software installation automatically to every private filesystem of the
selected nodes in the cluster. The Oracle installation products
are cluster aware and will not install the Oracle software to over-write itself.

Oracm is the Oracle Cluster manager, which is available on Linux and Windows
NT/2000. No other cluster manager is needed to setup Real Application Cluster.

Cluster Ready Services (CRS) are new in Oracle10g and provide also clustermanager
functionality.

Oracle will validate cluster filesystems of other vendors when they become
available. Oracle will support the Oracle software when running on a validated
cluster filesystem.

11 Cluster File System names
——————————

PLatform or Cluster Vendor        CFS name

AIX                                                  GPFS
HP/UX MC/ServiceGuard       CFS
Linux [oracm, CRS]                OCFS
OpenVMS                                              RMS
Tru64 Unix                                    CFS
SunCluster                  GFS, QFS
Veritas DBE/AC                                CFS
Windows NT/2000                                OCFS
Windows 2003 (32/64bit)           OCFS

For more information on certified configuration please see the certification
matrix available on Metalink.  Instructions for accessing the certification
matrix can be found in the following note:

Note 184875.1
How To Check The Certification Matrix for Real Application Clusters

12 When to use CFS over raw?
——————————
This option is very dependent on the availability of a CFS on your platform.
A CFS offers:
- Simpler management
- Use of Oracle Managed Files with RAC
- Single Oracle Software installation
- Autoextend enabled on Oracle datafiles
- Uniform accessibility to archive logs in case of physical node failure
- With Oracle_Home on CFS, when you apply Oracle patches CFS guarantees that
the updated Oracle_Home is visible to all nodes in the cluster.


4
九 08

搜狗五笔升级了

还是同一个朋友。

今天搜狗五笔升级了。很好,很强大。输入法对我,终于有一家可以一统天下。

下载最新版的搜狗五笔去 http://wubi.sogou.com


3
九 08

chrome——谷歌浏览器

Google推出自己的浏览器了,命名为chrome,下载地址为:http://tools.google.com/chrome/

乍一看,UI不错,用起来也挺顺手。但是总觉得缺少特色,放出来早了?

更多关于chrome的信息

看看官方博客的声明:

我们通过漫画形式提前发布了一款开源浏览器Google Chrome,相信大家已经通过博客渠道了解到该消息。周二,我们将在全球100多个国家推出Google Chrome测试版。

为什么要开发Google Chrome呢?因为我们相信它能给用户带来更多价值,同时有利于推动Web创新。

在谷歌,大量的工作都是通过浏览器进行的,搜索、聊天、收发邮件和协同开发等。在空闲时间,我们通过浏览器购物,登录网络银行,读新闻,与好友交流等。每天花费在浏览器上的时间如此之多,我们不得不考虑什么样的浏览器最适合当前的Web发展趋势。如今,网页已经从简单的文本页面发展到富媒体页面,这就需要我们重新设计网络浏览器。我们真正需要的不仅仅是一款浏览器,而是一个现代化的网页及应用平台。这就是我们开发Google Chrome的初衷。

从外观即可看出,Google Chrome的设计简单、高效,是一款真正的Web浏览工具。与谷歌主页一样,Google Chrome的特点是简洁、快速。

Google Chrome支持多标签浏览,每个标签页面都在独立的“沙箱”内运行,在提高安全性的同时,一个标签页面的崩溃也不会导致其他标签页面被关闭。Google Chrome基于更强大的JavaScript V8引擎,这是当前Web浏览器所无法实现的。

当然,这只是一个开始,Google Chrome在很多方面还需要进一步完善。此次,我们即将推出的是Windows下的测试版本,供大家讨论,我们也希望能够得到用户的反馈。目前, Mac和Linux版本尚在开发之中,同样将秉承快速、高效的特点。

Google Chrome是一款开源软件,借鉴了苹果的WebKit、Mozilla的Firefox及其他相关应用。同样,我们也将开放Google Chrome的全部源代码。我们期望与整个开源社区合作,共同推动Web创新。

在当前Web市场,选择和创新越来越多,我们希望Google Chrome能成为一个新选择,推动Web服务更上一层楼。


2
九 08

手机呼叫转移

网上看到的,已经测试过,可用。
呼叫转移后,你的手机号码会变成空号……取消转移后,恢复正常服务。

操作如下:

在待机状态下,输入**21*999999#,再按下拨号键,提示呼叫转移已启动(我的E50是这么提示的)。
在这种状态下,别人打你电话是空号,而你也不会接到电话。原作者说“以前以为只有NOKIA的才可以用,自己用索爱的试了下结果也可以,初步判断大部分手机都可以“`  (注:由于没有测试所有机型,所以不能保证成功率)在此提醒”。

此状态就算关机开机也不会取消,取消空号状态的代码是 ##21#  输入方法同上。