最近发现谷歌协作平台Google Sites很强大。我认为领导们完全可以把敏感的,见不得人的内容放到sites中。sites安全特性如下:

  • 全程SSL加密,所以扣扣空间就一坨屎,blogger也不给力
  • 角色授权访问是GMAIL方式,gmail的安全性你懂的
  • 不翻墙还访问不了,这点足以将想偷窥的广大P民拒之门外
  • 抗DDoS,股沟服务器遍布天下,什么岛上啊,海上啊都有。ip多谁都封不掉。你搞个wordpress主机被广大P民DDOS得不成人样简直是轻而易举,但有人敢DDOS谷歌么,这不是螳臂当车么。

相对于传统的纸质日记本,在安全性保密性方面,Sites可以甩几条街。

可以记哪些内容:

  • 生活方面:就那个 ,你懂的。照片放picasweb里,这年头自己硬盘都不可靠,而且不能“云”观赏。
  • 财务方面:就是贪污受贿的账本,这个可配合docs的表单使用。走到哪里都可以随时随地地云记账。
  • 科研方面:比气象武器,光棱坦克,AT力场,二相箔

转自谷奥,好东西啊~~

原题:怕自己在网上浪费太多时间?那就用这个 Chrome 插件,Stay Focused 吧

相信大家都有这个经历,就是在网上看啊看啊就天黑了,结果该做的没做,然后还要熬夜继续写作业,可没想到又走神了,然后看啊看啊就天亮了,结果还是 该做的没做。其实 Chrome 一直以来又这么一个插件 - Stay Focused 就是用来帮助大家节省上网时间的。如今插件的开发者又增加了一些实用的新功能,点击这里进入 Chrome 官网安装。

这个插件最基本的功能就是允许用户自定义一个倒计时表在任意网页上。假如说校内好了,然后点击那个幽幻的蓝球。 Read the rest of this entry »

转自http://zou.lu/,另参考:冰古,Alex

侧边栏的标签云(Tag Cloud)一直是 WordPress 2.3+ 以后的内置功能 ,一般直接调用函数 wp_tag_cloud 或者在 Widgets 里开启即可,但是默认的全部是一个颜色,只是大小不一样,很是不顺眼,虽然可以用 Simple Tags 之类的插件,但是总感觉不爽,所以我介绍一个不用任何插件就能显示彩色标签云的方法。

方法是 Alex 的英文站那里看来的,直接拿来主义和大家分享之。

PS:貌似是冰古兄弟原创

后台编辑 主题 的 functions.php , 输入以下代码

function colorCloud($text)
$text = preg_replace_callback('|<a (.+?)>|i', 'colorCloudCallback', $text); 
return $text; 
} 
function colorCloudCallback($matches) { 
$text = $matches[1]; 
$color = dechex(rand(0,16777215)); 
$pattern = '/style=(\'|\")(.*)(\'|\")/i'; 
$text = preg_replace($pattern, "style=\"color:#{$color};$2;\"", $text); 
return "<a $text>"; 
} 
add_filter('wp_tag_cloud', 'colorCloud', 1);

 

可以看到,颜色是随机的,可以自行修改 $color = dechex(rand(0,16777215));  这行来修改范围,这样就很炫耀哈哈。

然后在侧边栏 sidebar.php 里调用如下代码:

<?php wp_tag_cloud('smallest=8&largest=24&number=50'); ?> 

即可,8 是最小的 tag 的字体大小(用的最少的 tag),24 是最大的(用的最多的 tag),50 是 tag 的数目,可以自行修改。

假如你是个主题高手,直接集成在主题里那一定很帅!

转载自墙外http://aneeshkumarkb.blogspot.com/ ,非常nice的教程

OSGi Tutorial for beginners, Hello World OSGi Tutorial, Equinox OSGi Tutorial, Start developing OSGi Bundles

OSGi – The Dynamic Module System for Java : Part 1

Level: Novice


Aneesh Kumar KB(aneesh_kb@cdactvm.in), E-Governance, CDAC

This tutorial enables to understand the basic concepts of OSGi(Open Service Gateway Initiative), the Dynamic Module System for Java and start with OSGi bundle development.

Before you start

About this series

This is a two part tutorial in which the first part covers the basic OSGi technology, architecture and a Hello world OSGi bundle development. The second part of this tutorial covers the Service Oriented Architecture (SOA) in OSGi and Service bundle development .

Objectives

In this tutorial you will
1. learn the OSGi technology and its architecture
2. familiarize with famous OSGi implementations.
3. create a Hello world OSGi bundle.

Prerequisites Read the rest of this entry »

最近一个月我尝试很多CMS软件,比较了一下,感觉我比较适合用国外的joomla,各方面较之国内软件都非常牛逼。我列了一张表,稍微记录一下(仅个人观点)。

 

基于PHP的CMS比较列表
中英文名称 大小(MiB) 主要用途 产地 性质或者费用 本人评价
CmsEasy 易通 4.5 商用CMS 国产 ¥100+ C 不算贵,功能较弱
DedeCMS 织梦 20.5 商用CMS 国产 ¥3000 C+ 据说性能不行,用户体验还行,小白用用不错,推荐本土低端网站用
Discuz   11.2 论坛 国产 ¥3000+ B+ 国内最常用的论坛系统,以前免费
Supersite   5 SNS 国产 同上 B Read the rest of this entry »

地址在这:http://internetsupervision.com/。我测试了下自己的博客,结果如下:

 

Results for http://blog.ddssp.com
Checked From   Result KBytes Seconds Kbps
Dortmund, Germany (5 Mbps)   OK 46.93 2.05 183
Beijing, China (5 Mbps)   OK 46.92 2.94 128
Sydney, Australia (5 Mbps)   OK 46.92 3.13 120
Gloucester, UK (5 Mbps)   OK 46.93 3.36 112
Chicago, IL (45 Mbps)   OK 46.94 1.55 243
Washington, DC (3 Mbps)   OK 46.93 2.55 147
Los Angeles, CA (1.5 Mbps)   OK 46.92 10.27 37
Santiago, Chile (760 Kbps)   OK 46.92 3.34 112
Detroit, MI (5 Mbps)   OK 46.92 2.50 150

Complete.

感觉还行。

对于熟悉apache配置的童鞋这可能是个简单的问题,但是我总是记不住,因此略记一下,以备不时之需。下面的所有配置都是针对我的博客地址rockins.cn而作的。

首先是在httpd.conf中要增加下面几行,也就是允许每个virtual host目录下的.htaccess覆盖httpd.conf中的配置:
<Directory /var/www/htdocs/rockins.cn/>
AllowOverride all
Order allow,deny
Allow from all
</Directory>

然后,在httpd-vhosts.conf中,增加一个virtual host项: Read the rest of this entry »