jfo planet

Hope is the best gift that tomorrow gives.

  • 首页
  • 分类
  • 归档
  • 标签
  • 搜索
close

【zz】我们为什么这么容易受骗?

发表于 2008-02-14   |   分类于 Saying
http://blog.csdn.net/pongba/archive/2007/10/07/1813553.aspx我们为什么这么容易受骗? By 刘未鹏 ,在爱达荷州秋季大型科学展览会上,一个来自鹰石中学的高中生的方案获得了一个一等奖。 在他的方案里,他力劝人们签署一份要求严格控制或完全销毁一种叫“氢氧化物”的物质的文件。这有足够的理由,因为 1. 这种物质会造成流汗过多和呕吐。2. 它是酸雨的主要成份。3. 在气态时他会造成严重的烫伤。4. 吸入时它会要了你的命。5. 它是腐蚀的帮凶。6. 它会降低汽车的刹车效率。7. 人们在晚期癌症病人的毒瘤里发现了它。 他问了50个人是否支持禁止这种物质。43个人说他们支持,6个人没有表明态度,只有一个人知道这种物质就是水。 以上故事摘自阅微堂,原标题是“我们有多容易受骗?”,但我认为更重要的没有说出来。那就是“我们为什么这么容易受骗?” 让我们重温一遍上面的各个句子,以及这些句子分别在大脑里激起的印象: 1. 这种物质会造成流汗过多和呕吐。—— ...
阅读全文 »

html Tips

发表于 2008-02-04   |   分类于 python/js/php/html/mysql/http
    虽然现在有许多网页制作工具能让您轻松地完成工作,但如果使用HTML则可以得到更大控制权,下面介绍几个小技巧.    1.使用<tt>,<i>,<br>语句来控制文字排版比用<pre>好得多.    如: <tt>创思工作室<br><i>邱晓光</i><br></tt>    2.不要用800600的分辨率来制作网页,当浏览者用640480看网页时,不旦会使速度减慢,还会使网页图像和文字出现错位.当然,也可以使用帧,水平控制,表格等标识语句来取代己设定的象素,但就增加了工作量.    3.使用<br><p>只有一行,而使用<p><br>就会多了空白的一行.    4.使用16进制数来定义网 ...
阅读全文 »

php function reference

发表于 2008-02-04   |   分类于 python/js/php/html/mysql/http
string addslashes ( string $str );string implode ( string $glue, array $pieces );array explode ( string $separator, string $string [, int $limit] );array split ( string $pattern, string $string [, int $limit] );array spliti ( string $pattern, string $string [, int $limit] );string chunk_split ( string $body [, int $chunklen [, string $end]] );array str_split ( string $string [, int $split_length] );string wordwrap ( string $str [, int $width [, string $break [, bool $cut]]] );string nl2br ( str ...
阅读全文 »

【zz】Apache的Order Allow Deny心得

发表于 2008-02-03   |   分类于 python/js/php/html/mysql/http
www.fwolf.com/blog/post/191授权方式:署名,非商业用途,保持一致,转载时请务必以超链接(http://www.fwolf.com/blog/post/191)的形式标明文章原始出处和作者信息及本声明。今天又被这两个参数小小的耍了一把,痛下决心整理一下,免得再被耽误时间。Allow和Deny可以用于apache的conf文件或者.htaccess文件中(配合Directory, Location, Files等),用来控制目录和文件的访问授权。所以,最常用的是:Order Deny,AllowAllow from All注意“Deny,Allow”中间只有一个逗号,也只能有一个逗号,有空格都会出错;单词的大小写不限。上面设定的含义是先设定“先检查禁止设定, 没有禁止的全部允许”,而第二句没有Deny,也就是没有禁止访问的设定,直接就是允许所有访问了。这个主要是用来确保或者覆盖上级目录的设置,开放所有 内容的访问权。按照上面的解释,下面的设定是无条件禁止访问:Order Allow,DenyDeny from Al ...
阅读全文 »

【zz】在Windows中安装Apache2和PHP4

发表于 2008-02-03   |   分类于 python/js/php/html/mysql/http
apache-2.2对 httpd.conf 增加如下设置:1.模块方式运行phpLoadModule php4_module    "E:/work/php-4.4.6-Win32/sapi/php4apache2_2.dll"<IfModule php4_module>    AddType application/x-httpd-php .php</IfModule>/ this is not needed<Directory "E:/work/php-4.4.6-Win32">    Options Indexes FollowSymLinks    AllowOverride All    Order allow,deny    Allow from ...
阅读全文 »

go home

发表于 2008-01-27   |   分类于 Life
    明天的现在就已经在火车上了!    晚上在校园里逛,逛着逛着来到了校门口,突然想起了对面的锅贴,好久没来了,虽然晚上吃的很饱,但还是忍不住要去光顾光顾。过马路是红灯,看着没有车辆,居然没多少犹豫就横穿马路,-_-! 唉,都被grape给带坏了…    …    还是早点为明天回家做准备把…   
阅读全文 »

【zz】phplib template简明教程

发表于 2008-01-07   |   分类于 python/js/php/html/mysql/http
[摘]phplib template简明教程第一章 如何进行安装配置 PHP世界中比较流行的模板处理工具有PHPLIB Template和FastTemplate两种。据笔者看有关资料介绍,PHPLIB Template的技术易用性和速度较为理想,所以俺就学习使用了PHPLIB Template。 phplib template 的安装其实非常简单。现在说简单,呵呵,其实刚开始上手的时候竟然花了好几天的功夫才知道大概是怎么一回事儿。那我们首先来认识一下phplib吧。 随着php的应用和推广,众多开发人员和很多爱好者在php的基础上开发了很多php的程序库,这些程序库大大简化了程序设计和提高了代码的可重 用性。其中phplib就是这些库中相当优秀的产品。phplib有五大功能:将数据库驱动和对数据库操作完全分离;支持session;权限许可;模 板;购物车。我们要用的模板功能只是phplib这个库的诸多功能中的一种。笔者刚开始看phplib 的网方官站 ,就看得一头雾水,怎么还有数据库、 session等等,最后才明白原来俺需要的只是template。 要说安装,其实就是下载phpl ...
阅读全文 »

questions about SFINAE

发表于 2007-12-21   |   分类于 c++/c++ template/gp/boost
SFINAE : Substitution Failure Is Not An ErrorNo. 1Both of the following compiles error. (g++-3.4.4)> template<unsigned> struct sample { }; > > struct X { > X(int, int); // no default ctor > }; > > template<class T> void check( sample<sizeof(new T)> ) { } > template<class T> void check( int ) { } > > int main() { > c ...
阅读全文 »

mojo

发表于 2007-12-18   |   分类于 c++/c++ template/gp/boost
source code forGeneric<Programming>: Move Constructors by Andrei Alexandrescu////////////////////////////////////////////////////////////////////////////////// MOJO: MOving Joint Objects// Copyright (c) 2002 by Andrei Alexandrescu//// Created by Andrei Alexandrescu//// Permission to use, copy, modify, distribute and sell this software for any //     purpose is hereby granted without fee, provided that the above copyright //     notice appear in ...
阅读全文 »

关于重载决议:boost::is_base_and_derived和Move Constructors中的手法

发表于 2007-12-17   |   分类于 c++/c++ template/gp/boost
Generic<Programming>: Move Constructors by Andrei Alexandrescusee source code。。。 。。。Now in starting to overload Connect, an idea would be to define Connect(const String&) to catch "genuine" constant objects. This, however, would be a mistake because this declaration will "eat" all String objects — be they lvalues or temporaries. So the first good idea is to not declare a function that accepts a const reference, because it swallows all objects like a black ho ...
阅读全文 »
1…444546…61
jfo

jfo

605 日志
38 分类
4 标签
RSS
GitHub 微博
友情链接
  • 收藏夹
  • 网络剪贴板
  • 爱逛吧
© 2007 - 2018 jfo
由 Hexo 强力驱动
主题 - NexT.Pisces