存档

‘Uncategorized’ 分类的存档

[ZT]国际空间站上拍到罕见极光照片

2010年7月5日 Galaxy 没有评论

http://songshuhui.net/archives/39507.html
http://earthobservatory.nasa.gov/IOTD/view.php?id=44348
http://eol.jsc.nasa.gov/scripts/sseop/photo.pl?mission=ISS023&roll=E&frame=58455

Aurora Australis Observed from the International Space Station

2010年5月29日国际空间站上拍到的南极光

有时候拍到好的照片或做出新发现并没有那么困难,你要做的就是在正确的时间出现在正确的地点。国际空间站(ISS)上的宇航员们拍下了这幅罕见的南极光照片,极光伸展到南印度洋上空,可能是由日冕物质喷射引起的。

“极光,顾名思义就是出现在地球两极地区飘忽不定的彩色光带”,极光是大气层中最美的现象之一,当从太阳来的高能离子与上层大气层中的氧和氮碰撞时,会暂时让这些粒子处于激发态,以至于粒子回归常态即原始能级时会发出光子。这幅照片中离子活动显现出绿色,这是受激氧原子发出光子的结果,波长558 纳米(10-9米),从绿色植物上反射回来的可见光差不多也是这个波长,其它波长的光则显现出红、蓝或紫色(这幅照片中心处能看到一点红色)。

这幅南极光照片的独特之处在于,其位置伸展到了南印度洋上空,离南极点相当远,可能是5月24日太阳大规模能量爆发的结果。当时国际空间站位于南太平洋上空,拍照者向南面向南极洲,不过在照片里我们看不到这个地球最南端的大陆。国际空间站的轨道距地面约355公里,极光发生位置一般位于电离层中,距地表一般在约97到306公里之间。
阅读全文…

分类: Uncategorized 标签: ,

用id_rsa key来连SSH/SFTP

2009年9月1日 Galaxy 没有评论

其实步骤很简单,关键是:
http://www.openssh.org/faq.html#3.14

3.14 – I copied my public key to authorized_keys
but public-key authentication still doesn’t work.

Typically this is caused by the file permissions on $HOME, $HOME/.ssh or
$HOME/.ssh/authorized_keys being more permissive than sshd allows by default.

In this case, it can be solved by executing the following on the server.

$ chmod go-w $HOME $HOME/.ssh
$ chmod 600 $HOME/.ssh/authorized_keys

If this is not possible for some reason, an alternative is to set
StrictModes no in sshd_config, however this is not
recommended.

记住目录700,文件600就是了。 否则就登不上。
再就是:

ssh-keygen -t rsa
cat id_dsa.pub >> .ssh/authorized_keys

阅读全文…

分类: Uncategorized 标签: , ,

[ZT]城管执法操作实务 摘

2009年6月23日 Galaxy 1 条评论

http://www.infzm.com/content/27264

《城管执法操作实务》一书由国家行政学院出版社于2006年公开出版,目前在新华书店中国图书网等处有售。

该书由北京市城管执法局与北京市市政管委培训中心成立的城管培训教材课题研发组统一编写,是全国首部指导现实城管执法的专业教材,ISBN号7801404920,主要介绍了城管治法的基本原则、城管执法的四大难点、城管执法的管理相对人等内容。

近日,发现此书的网友摘录部分放在网上,引来网友热议。

部分网友认为该书反映的城管执法过程野蛮暴力,小部分网友认为城管也是弱势群体阅读全文…

分类: Stories, Uncategorized 标签: ,

[ZT]三鹿奶粉污染事件公关方案惊现

2008年9月12日 Galaxy 没有评论

http://www.cnbeta.com/articles/64585.htm

感谢三鹿?马鹿吧?的投递
这篇建议书落款日期是8月11日,距离三鹿“结石门”整整一个月。据说,早在5月份就有人投诉到质检、工商、卫生等部门及媒体,但都没有引起重视;或者,也引起了重视,但是被有中国特色的“公关”给处理了。无良的企业,无耻的媒体,让我突然想起黄健翔的一句歌词:麻烦大了,你才会被人记得。

(注:据说是三鹿公关公司写给三鹿危机公关的信)
三鹿集团公关解决方案建议
集团各位领导们:
 
目前正处于北京奥运会期间,由于政府对食品安全等负面新闻的干预,对三鹿奶粉的结石负面来说出现了好的转机,但不能过早松懈,目前还存在着几大隐患。
1.因三鹿负面涉及食品安全问题,是在奥运期间暂时平静,并不代表奥运会后依旧平静,如此负面新闻再次传播,依旧对集团相当不利。
2.此事对消费者本身来说,将会是长期的影响,企业的一次安抚可能并不能完全满足消费者的心理纠结,如有个别消费者对此事的解决方法不满意,找到三鹿的竞争对手,则将造成更加严重的影响。
鉴于上面两大隐患,我公司对结石负面事件有以下几点建议。希望利用奥运期间的风平浪静,协助三鹿集团打好这一艰苦的负面公关战役。

一、安抚消费者,1-2年内不让他开口
在奥运会特殊时期内,尽一切可能安抚本次事件的所有消费者,满足他们的一切条件,力保将本事件的当事人在2年内不再提及此事件。

二、与“百度”搜索引擎媒体合作,拿到新闻话语权
抓紧奥运时间,与“百度”媒体建立良好合作关系,防止将来负面爆发时失控,同时可以掌握新闻公关的主动性。
百度作为搜索引擎,是所有网站的集结地,也是大部分消费者获取搜索信息的主要阵地,对三鹿来说将是公关环节的重量级媒体。目前在百度上享受新闻公关保护政策的企业有蒙牛、伊利、汇源等,政策享受起点为自然年度500万元的广告投放,鉴于三鹿集团在产品线上不如其他几家企业丰富,经公司与百度相关部门的多次深度沟通后,百度已经同意将对三鹿集团的公关保护政策降低至年度300万元广告投放,可以享受将目前几大事业部早期负面删除。我可考虑一旦透露“肾结石”负面消息放大后,百度可能会以负面作为要挟,要求增加投放量,因此我司迄今没有跟百度提及肾结石相关负面新闻,所以强烈建议在此事还未大肆曝光的特殊时期,尽快与百度签订300万的框架协议。
签订框架协议后,小网站的恶意报道均可被删除,如遇到国家权威机构通报或发生重大影响的负面新闻时,可三鹿集团在上层协调政府部门公关,涛澜通在公关媒体,共同配合将负面影响大事化小,小事化了。

三、以攻为守、搜集行业竞品“肾结石”负面的消费者资料,以备不时之需。
本次肾结石事件可能也涉及其他竞品,并非单纯三鹿奶粉的质量问题,因此可称为行业标准问题。
因此建议集团安排人手搜索竞品同类事件中的消费者资料,以掌握有力武器,如此事件被恶意炒作,三鹿集团将可利用这些资料作为反击武器,将矛盾转化为行业标准问题,转移媒体与消费者的视线,获得行业协会的出面支持和救市,最大化减少负面事件对三鹿集团的不良影响。

综上:
1.建议抓紧奥运会这一特殊时间,依靠消费者安抚、媒体公关保证与行业标准、竞品事件等手段,将被动处理新闻变为主动掌控。
2.百度的300万框架合作问题,目前奶粉事业部已经投放120万元,集团只需再协调180万元就可以与百度签署框架,享受新闻公关保护政策。
3.截至8月11日,在百度的网页,新闻频道前50页搜索“三鹿”一词有相当多负面,涉及奶粉、酸奶、花花牛等各事业部较早期负面信息。
因时间紧迫,望各位领导能尽快决策,抢占危机公关的最佳时间点!

北京涛澜通略国际广告有限公司三鹿服务小组
2008年8月11日

分类: Uncategorized 标签: ,

简单实用的进度条

2008年1月16日 Galaxy 没有评论

90%

<div  style=”border: 1px solid rgb(101, 159, 255); padding: 3px; height: 11px; width: 80%;”>
<div  style=”height: 11px; background-color: rgb(101, 159, 255); width: 90%; text-align: center; font-size: 6pt;”>90%</div>
</div>

简单实用的进度条!

只需要动态改变内层ID为”meter”的div的width值,以及显示的进度数值。

分类: Uncategorized 标签: ,

利用Putty通过ssh端口转发实现FireFox和MSN加密代理访问

2007年12月3日 Galaxy 没有评论

http://www.chedong.com/blog/archives/001246.html
国外网站上不去?利用Putty通过ssh端口转发实现FireFox和MSN加密代理访问
作者:车东 发表于:2006-12-05 08:12 最后更新于:2007-11-20 09:11
版权声明:可以任意转载,转载时请务必以超链接形式标明文章原始出处和作者信息及本版权声明。
http://www.chedong.com/blog/archives/001246.html
——————————————————————————–

参考原文:http://thinkhole.org/wp/2006/05/10/howto-secure-firefox-and-im-with-putty/

加密传输的机制如下:

/ foo.com
浏览器 < ==secure tunnel==>ssh server – bar.com
\ example.com

浏览器先通过加密通道链接到一台服务器上,然后通过这个服务器再访问整个互联网。主要的用途就是这个绕道访问。具体你需要通过加密通道绕过谁? 谁用谁知道……

具体配置过程:
在SSH登录工具Putty的登录设置中配置tunnel,目标设置为Dynamic,添加一个端口7070,再按Add,一个动态转发端口就实现了;

然后用相应帐号ssh登录后:除了登录的终端窗口意外,本地的7070连服务器的22端口之间就有了一个SSH加密的转发通道了。

为了方便切换,可以使用FireFox的SwitchProxy tool插件,设置socks代理通过本地的127.0.0.1:7070 进行传输。

MSN的机制类似:就是在连接配置中设置sock5 加密代理。

附:
获得国外的SSH帐号或者有Dreamhost虚拟主机的可以增加ssh用户:都可以用类似机制进行加密访问。

感谢number5:

更简单方便的setup方式是使用 putty的后台命令行程序plink
plink -N username@remote.ssh.server -D 127.0.0.1:7070
其中 -N 表示不需要shell
username@remote.ssh.server 换成你ssh帐户名和主机域名或者地址
或者替换成 -load sessionname 也可以,用dreamhost上的帐号试了一下,真的很快

如何在Windows下使用密钥方式登录Linux服务器:
如果设置需要基于密钥的登录(如果不设置密钥密码,就可以自动登录了),
我没有试成使用puttygen生成的密钥(公钥/私钥)直接部署在Linux服务器上。目前成功的方法是:先在服务器上用服务器上用./ssh-keygen生成密钥对,将公钥 id_rsa.pub >> 部署到要登录到的服务器上:/home/username/.ssh/authorized_keys 中,密钥在Windows客户端下使用:将密钥 id_rsa下载到本地,然后用puttygen导入id_rsa 另存转换为putty格式的密钥id_rsa.ppk即可。然后使用 plink -i c:\path\to\id_rsa.ppk username@example.com方式登录。

注意:
加密通道和网站是否提供https没有直接的关系,https是指服务商直接向客户提供的加密,例如:GMail: https://mail.google.com/mail/, GReader: https://www.google.com/reader/view/,从ssh server到服务网站之间仍然是明文的http传输;
加密通道和匿名不匿名访问网站也没有直接关系。

更简单方便的setup方式是使用 putty的命令行程序plink

plink -N username@remote.ssh.server -D 127.0.0.1:7070

其中 -N 表示不需要shell

username@remote.ssh.server 换成你ssh帐户名和主机域名或者地址

或者替换成 -load sessionname 也可以

用dreamhost上的帐号试了一下,真的很快

我就在用这种方式拿Dreamhost作Socks5代理,加上FireFox的FoxyProxy插件,访问Google Cache和Wikipedia都很方便。 :)

在number5的基础上补充一点:一般SSH服务器都支持公钥验证,用puttygen生成一个key-pair,就可以实现后台自动登陆SSH服务器。

To add to what nathan suggested, on linux do
找到的在linux下实现的方式,用ssh命令就可以了。

ssh -qTfnN -D 7070 remotehost.

All the added options are for a ssh session that’s used for tunneling.

-q :- be very quite, we are acting only as a tunnel.
-T :- Do not allocate a pseudo tty, we are only acting a tunnel.
-f :- move the ssh process to background, as we don’t want to interact with this ssh session directly.
-N :- Do not execute remote command.
-n :- redirect standard input to /dev/null.

In addition on a slow line you can gain performance by enabling compression with the -C option.

由: ppip 发表于 2006年12月08日 上午10时51分

对于那些不支持socks v5的程序可以用SocksCap V2来转发,SocksCap下载地址 http://www.feedss.com/down/SocksCapV2.zip

在配置tunnel过程中,如果同时选择第一个选项 Locals ports accept connections from other hosts,能连上你的机器的人就能共享你的tunnel了。例如我在我的电脑开设7070端口同时选择上面的选项。局域网的同事就能用 192.168.0.X(我本机ip)和7070端口连接我的ssh tunnel实现浏览。

由: 织梦者 发表于 2006年12月20日 上午10时45分

By the way,应该是SwitchProxy插件

由: 织梦者 发表于 2006年12月20日 晚上11时50分

这种方法自己知道自己私底下用还行,如果广而告之,人家服务器管理员不傻,

在ssh配置里加上如下的语句,上面一切方法全部失效……
到时候,,呵呵……

#cat /etc/ssh/sshd_config
…..
…..
AllowTcpForwarding no
GatewayPorts no
X11Forwarding no
……

分类: Uncategorized 标签:

PLACE

2007年11月13日 Galaxy 没有评论

http://www.dna.affrc.go.jp/PLACE/

PLACE

A Database of Plant Cis-acting Regulatory DNA Elements

What is PLACE?

PLACE is a database of motifs found in plant cis-acting regulatory DNA elements, all from previously published reports. It covers vascular plants only (But since April 2006, we changed the policy. See the release note for PLACE 26.0). In addition to the motifs originally reported, their variations in other genes or in other plant species reported later are also compiled. The PLACE database also contains a brief description of each motif and relevant literature with PubMed ID numbers. DDBJ/EMBL/GenBank nucleotide sequence databases accession numbers will be also included. See ‘sample record‘. List of entries can be found in ‘place.dat‘.

How to use

Information on cis-elements can be obtained by Keyword Search or SRS Keyword Search.

The query sequence can be searched for the presence of motifs identical with or similar to the previously reported cis-element motifs in the PLACE database by Signal Scan Search or by Homology Search (Sample of Signal Scan can be found in ‘input.txt‘ and ‘output.txt‘) .

You can submit batches of sequences to “ Signal Scan Search, file upload” in FASTA format.

Reference to PLACE database:

Users are asked to cite the following article when publishing results, which have been obtained with the database described here.

Reference:
K. Higo, Y. Ugawa, M. Iwamoto and T. Korenaga (1999) Plant cis-acting regulatory DNA elements (PLACE) database:1999. Nucleic Acids Research Vol.27 No.1 pp. 297-300.

Copyright:

Copyright Kenichi Higo,1991-2006. All Rights Reserved.

Disclaimer:

We are responsible for accuracy of the database contents. If errors are brought to our attention, we will try to correct them. However, for contents and services available from this server, we do not warrant or assume any legal liability or responsibility for the accuracy, completeness, or usefulness of any information, apparatus, product, or process disclosed.

License for the PLACE database for commercial use:

For the time being, PLACE is free on the following conditions.

  1. Please acknowledge the following facts in your application software (or WEB page or any pertinent publications) using PLACE that:
    1. PLACE has been constructed and maintained at NIAS (National Institute of Agrobiological Sciences).
    2. PLACE was made available by the courtesy of NIAS without charge.
  2. Please cite our publication (Higo et al. Nucleic Acids Research 27:297-300 (1999)).
  3. Also please inform your client that the PLACE is also available at our WEB site (URL http://www.dna.affrc.go.jp/PLACE/) free of charge.

If you accept these conditions, please send us a written notice via E-mail.

Academic use: Please note that PLACE is free for academic user.

Privacy Policies:

We collects user’s information through standard Web logs for the purpose of site management. We store top and second level domain name for foreign domain, adding third domain name for Japanese domain.We are not collecting keywords, sequences submitted for PLACE database query. Some results are kept one week for future browsing by the submitter. In this case, results are guarded from others view by generating random ID. For other results, all are purged when the process are done. We will not disclose keywords, sequences and results for others.

Contacting Information:

Database Contents:

Please send comments, corrections and requests for additional information to Dr. Higo by e-mail at: Dr. Higo
or
Fax to +81-29-838-7408
Dr. Kenichi Higo
c/o Dr. Yoshiaki Nagamura
National Institute of Agrobiological Sciences
1-2 Kannondai 2-chome, Tsukuba, Ibaraki 305-8602
Japan

Web pages, server trouble, software inquiry:

Please send comments and requests for web pages, software and servers to Dr. Ugawa by e-mail at: Dr. Ugawa
or
support staff at: support (in urgent)

Other infomation:

Other information (History, Access logs…) can be found in
PLACE information page and Frequently Asked Questions page.

Hello world!

2007年10月14日 admin 1 条评论

Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!

分类: Uncategorized 标签:
Locations of visitors to this page