Ξ 建站术语扫盲之Apache

 03 Mar 2008 0 Comments

Apache

Apache (Apache HTTP Server的简称,中文常称其为阿帕奇服务器或阿帕奇HTTP服务器)是Apache软件基金会的一个开放源码的网页服务器,可在大多数计算机操作系统中运行,由于其多平台和安全性被广泛使用,是最流行的Web服务器端软件之一。它快速、可靠并且可通过简单的API扩展,将Perl/Python等解释器编译到服务器中。

所谓的网页服务器,就是在我们制作网站的时候,除了主机、操作系统和使用者制作的网页外, 安装在主机上的一套能将网页放到网络上让其他人来浏览存取的软体,也就是所谓的Web Server。

Apache支持许多特性,从服务器端的编程语言支持到身份认证方案。一些通用的语言接口支持Perl,Python, Tcl, 和 PHP。流行的认证模块包括 mod_access, mod_auth 和 mod_digest。其他的例子有 SSL 和 TLS 支持 (mod_ssl), proxy 模块,很有用的URL重写(由 mod_rewrite 实现),定制日志文件 (mod_log_config),以及过滤支持(mod_include 和 mod_ext_filter)。

Apache最新稳定版为2.2.8/2.0.63/1.3.41 /, 更新日期为2008年1月19日。其2.x版本核心在 1.x版本之上作出了重要的加强,包括:线程,更好的支持非UNIX平台(例如Windows),新的 Apache API,以及IPv6支持。

现在常见的虚拟主机,若是是Linux操作系统,那么,其配置的一定是Apache.

像我们Wordpress的使用者,Apache可以说是在架设网站时的必备条件,所以选择的主机都是Linux操作系统。

Ξ Bleach(死神)312, Lost(迷失)Season04-Esp05

 29 Feb 2008 0 Comments

Bleach

死神: 漫画第312集本地下载 | 动画第162集BT种子下载bleachTV162

lostseason4

Lost第五集(中英双字幕)迅雷下载(请右键点击链接,在选择使用迅雷下载)

Ξ 用div+css实现圆角边框

 29 Feb 2008 0 Comments

div+css实现圆角边框,代码如下:

<html>
<head>
<style>
#a{
border-left:1px #333 solid;
border-right:1px #333 solid;
width:300px;
height:500px;
}
.b{
height:1px;
overflow:hidden;
border-left:1px #333 solid;
border-right:1px #333 solid;
}
</style>
</head>
<body>
<div>
<div class=”b” style=”margin-left:3px;width:294px;background:#333″></div>
<div class=”b” style=”margin-left:2px;width:296px;”></div>
<div class=”b” style=”margin-left:1px;width:298px”></div>
<div id=”a”>

我能做到的,纯DIV+CSS实现的效果,只能这样了。这里是放置内容的地方,观察一下代码的规律,很容易明白。

代码很简单,a层为放置内容的层,其width值为300,然后向外以2像素的宽度递减。最外一层要加上background为个属性,目的是要将上、下两线条呈现出来。

这里实现了3像素的圆角边框,b层的数量决定了要实现多少个像素边框。建议不要多于3层,最好是2层,即2像素圆角边框,或者1层,因为层数越多,圆角的表现就越不圆滑。在firefox  IE6 都通过测试。

</div>
<div class=”b” style=”margin-left:1px;width:298px”></div>
<div class=”b” style=”margin-left:2px;width:296px;”></div>
<div class=”b” style=”margin-left:3px;width:294px;background:#333″></div>
</div>
</body>
</html>

Ξ Comment vérifier un premier nombre dans VB

 27 Feb 2008 0 Comments

See this post in : English Version or Chinese Version

Private Sub Command1_Click()
 r = InputBox(“Entrez un chiffre pour vérifier, SVP”)
 For i = 2 To r
   If Val(r) Mod i = 0 And i <> Val(r) Then ‘Ici donne une condition pour les non premiers nombres
    MsgBox (“Ce n’est pas un premier nombre”)
    Exit Sub
   End If
 Next i
 MsgBox (“C’est un premier nombre”)
End Sub

More »

Ξ VB中如何判断是否为质数

 27 Feb 2008 0 Comments

See this post in : English Version or French Version

 Private Sub Command1_Click()
 r = InputBox(“请输入您要判断的数字”)
 For i = 2 To r
   If Val(r) Mod i = 0 And i <> Val(r) Then ‘这里给出了非质数的条件
    MsgBox (“此数为非质数”)
    Exit Sub
   End If
 Next i
 MsgBox (“此数为质数”)
End Sub

More »

Ξ How to verify a prime number in VB

 27 Feb 2008 0 Comments

See this post in: Chinese Version or French Version

Private Sub Command1_Click()
 r = InputBox(“Enter a number please”) ‘ Enter a number to verify
 For i = 2 To r
   If Val(r) Mod i = 0 And i <> Val(r) Then ‘ this phase give a condition which is not a prime number
    MsgBox (“The numbered you entered is not a prime number”)
    Exit Sub
   End If
 Next i
 MsgBox (“The numbered you entered is not a prime number”)
End Sub

More »

Ξ Apple tree

 23 Feb 2008 0 Comments

A long time ago, there was a huge apple tree. A little boy loved to come and lay around it every day. He climbed to the tree top, ate the apples, took a nap under the shadow… He loved the tree and the tree loved to play with him.

Time went by… the little boy had grown up and he no longer played around the tree every day. One day, the boy came back to the tree and he looked sad. “Come and play with me,” the tree asked the boy. “I am no longer a kid, I don’t play around trees anymore.” The boy replied, “I want toys. I need money to buy them.” “Sorry, but I don’t have money…but you can pick all my apples and sell them. So, you will have money.” The boy was so excited. He grabbed all the apples on the tree and left happily. The boy never came back after he picked the apples. The tree was sad.

One day, the boy returned More »

Ξ 苹果树的故事

 23 Feb 2008 1 Comment

很久很久以前,有一棵又高又大的苹果树。一位小男孩,天天到树下来,他爬上去摘苹果吃,在树荫下睡觉。他爱苹果树,苹果树也爱和他一起玩耍。

后来,小男孩长大了,不再天天来玩耍。一天他又来到树下,很伤心的样子。苹果树要和他一起玩,男孩说:“不行,我不小了,不能再和你玩,我要玩具,可是没钱买。”苹果树说:“很遗憾,我也没钱,不过,把我所有的果子摘下来卖掉,你不就有钱了?”男孩十分激动,他摘下所有的苹果,高高兴兴地走了。然后,男孩好久都没有来。苹果树很伤心。

有一天,男孩终于来了,树兴奋地邀他一起玩。 More »

Ξ New Year! New Name! New Face!

 21 Feb 2008 0 Comments

Hello, every visitor! Good to see you again!

    First of all, I’ve changed my bolg name! Now it’s named “Serenity” !   

    I’m sorry that I haven’t update my blog for one month, because my study and the exams. Luckily I’ve got a better note than before, but my demand for Google AdSense has refused and my 1300€ caution for appartement remain only 650€. The bad news comes always on double! 

    Whatever, that’s my personal staff, you won’t be interested. 

    So back to main subject, do you like the new face of this blog ? It’s a personal made (I design and I code), support many functions (such as Widget, Flickr and Wp page navi …), 3 colum and a few bugs ! I named it “Serenity”, the same as my blog name.

    This is my second time to make a theme, I did my best. The test in IE7.0 and FireFox, gives no serious bugs. The only one I saw is that the underline for “Recent Comments || Articles” in sidebar don’t display in IE7.0, but in FireFox it’s OK. I can’t find the reason for this ! so if you know, tell me please.

    Hope you will like it and enjoy yourself on my blog. By the way, tell me the bugs you found.Thank you!

   If you really like this theme, leave me your Email in the comment, I’ll send it to you later.

Ξ Excel, do you really know what is it?

 26 Jan 2008 0 Comments

There have two weeks, I spend all my times on the Excel projet – a homework !

Everyone knows Excel, it is a very useful and smart software. It can help us to do lot of things, especially in financial affairs, personal budget, etc. It is very very easy to use it!

But to use it on an advanced application developpement, is really difficult! Maybe that’s because my level is not high enough, maybe I’m not clever enough, maybe many reasons. Anyway, I spent too much time on it that I have no more time for my site, for this blog!

Luckly, today I’ve just finished it in this afternoon! So I come back !

Hope I will have a good note!