Wei Jiang's Weblog

Archive for July 13th, 2009

WordPress blocked again by great firewall of China?

Posted by: thedean515 on: July 13, 2009

I have received some anecdotal evidence that wordpress blogs such as this one have recently been blocked again by the “great firewall of China“. I was wondering if the readers here could confirm or disconfirm this, and also if they knew of some effective ways to circumvent this firewall, as I have been [...]

前面的文章中,曾经提到过在扩展组件中如何弹出窗口,但是popupwindow弹出的窗口不是模式的,研究了一下后台界面发文章界面的上传图片,终于搞清楚了,最关键的JS在 /media/system/js/modal.js 。有以下两种方式都可以实现,修改的都是扩展组件的模板文件default.php.
方式一:

<a rel="{handler: ‘iframe’, size: {x: 570, y: 400}}"
href="/index.php" class="modal">view</a>

就这么简单就可以实现了,其余的东西joomla!全部帮你处理了。高兴吧!
方式二:

<a id="aatest">view</a>
function f() {
SqueezeBox.fromElement(null, {handler: ‘iframe’, size: {x: 570, y: 400}, href:’/index.php’});
};

一般还是使用第一种好了,如果你要研究modal.js到底怎么实现的,第二种方式使一个入门的例子。
引:http://www.maycode.com/index.php/hotspot/39-joomla-inspect/376-joomla-mootools.html

先有司,赦小过,举贤才

Posted by: thedean515 on: July 13, 2009

孔子的一位朋友要出任地方行政长官了,就跑来问孔子:“孔子啊孔子,你是一位智者啊,你说我这个地方行政长官该怎么当啊?”孔子说,老朋友啊,搞管理很容易,也很不容易,我呢只能告诉你九个字:“先有司,赦小过,举贤才。”

计算流行病

Posted by: thedean515 on: July 13, 2009

编者按:印第安纳大学物理系生物复杂系统方向的博士生胡浩同学参与了一项重要的研究工作,使用计算机模拟的方法对甲型H1N1病毒的传播作出预警。他将这一信息投递到了科学松鼠会,并提供了极为详细的资料。本文为笔者在胡浩同学提供资料的基础上改写。
此外,胡浩同学所在的研究小组授权我们使用他们公布在网上的图片。
在此,我们对研究小组的全体成员致以深深的谢意。我们相信,这些科学工作者的工作将为我们抗击流行病传播的提供重要帮助。
本文刊于《新发现》
该小组的网站:http://www.gleamviz.org/
撰文 陈朝 胡浩


Archives

Calendar

July 2009
M T W T F S S
« Feb    
 12345
6789101112
13141516171819
20212223242526
2728293031  

How to include \LaTeX Code

To include code in your post, use the following: $latex your-latex-code-here$ So, for example, $latex i\hbar\frac{\partial}{\partial t}\left|\Psi(t)\right>=H\left|\Psi(t)\right>$

Recent Comments

Blog Stats

  • 239 hits