每次都要去chmod -R * ;chown -R nobody.nogroup * 很是麻烦,写一脚本解决,到时候直接调用一下secureCRT的脚本--》运行--》选择脚本即可!
代码如下:

Sub Main
  crt.Screen.Synchronous = True
  crt.Screen.Send "chmod -R 755 *" & vbcr
  crt.Screen.Send "chown -R nobody.nogroup *" & vbcr
  crt.Screen.Send " "
  crt.Screen.Synchronous = False
End Sub


【前言】
SecureCRT是一款非常流行和受欢迎的远程登录和终端仿真软件,支持Telnet,SSH等。
它还可以支持VBScript和JScript,通过Script的支持,SecureCRT能够自动完成我们设定
好的各种任务。阅读全文
在路上:
马化腾说。吃着碗里的,看着锅里的,再想着田里的,这个业务做起来,需要其他业务养,它成熟后再养别的业务。他还说好的人才总是缺,以战养战,且对长线业务充满耐心!
尽管时间隔了多年,但是他的一些思考任然很犀利,文章开始:

正如近两年明显表现出来的, QQ 的用户群,其实正态分布在一个区间内:他们通常年纪不大,以娱乐为使用 QQ 的首要目的。这些用户,也许随着年龄和身边人群的变化,会转移到其他即时通讯软件上,比如 MSNmessenger 和 GoogleTalk 。这个意义上,腾讯的问题类似于一家儿童用品公司:小孩子总要长大,重要的是新生代是否依然选择你?阅读全文
互联网公司特写

  下个十年阅读全文
dio_open()和dio_stat()函数都不能使用,
提示Fatal error: Call to undefined function dio_stat()这个错误!!!
请各位大侠指教。。。。

注: 本扩展已被移动到 PECL 库中且自以下版本起不再被绑定到 PHP 中:5.1.0.

This extension is only available on Windows Platforms as of PHP 5.0.0
本扩展仅在Windows平台PHP5.0.0时有效

需求
要编译本扩展模块无需外部库文件。

注意一下你的版本!

Note that many DLL files are located in the extensions/ (PHP 4) ext/ (PHP 5) extension folders as well as the separate PECL DLL download (PHP 5). Be sure to appropriately set the extension_dir directive.
http://pecl.php.net/
http://php.morva.net/manual/zh/install.pecl.windows.php
先去下載再安裝

php.ini中做了如此配置extension=php_dio.dll
并且php_dio.dll这个库文件也在ext目录下,为什么还是不能使用那些函数?????
问题已经解决,需要php和pecl的版本一致。。。



文章来源:http://tw2.php.net/manual/en/ref.dio.php

Direct IO Functions
Table of Contents

    * dio_close — Closes the file descriptor given by fd
    * dio_fcntl — Performs a c library fcntl on fd
    * dio_open — Opens a file (creating it if necessary) at a lower level than the C library input/ouput stream functions allow.
    * dio_read — Reads bytes from a file descriptor
    * dio_seek — Seeks to pos on fd from whence
    * dio_stat — Gets stat information about the file descriptor fd
    * dio_tcsetattr — Sets terminal attributes and baud rate for a serial port
    * dio_truncate — Truncates file descriptor fd to offset bytes
    * dio_write — Writes data to fd with optional truncation at length


(sorry for my English)
http://pecl.php.net/get/dio seems broken at the moment
to get dio extension follow these steps (steps 1.a and 1.b are equivalent):

1.a  get source files using cvs (you may need cvsnt or similar):

     (in shell run)
     cvs -d :pserver:cvsread@cvs.php.net:/repository login
     Password: phpfi
     cvs -d :pserver:cvsread@cvs.php.net:/repository co pecl/dio
     cd pecl/dio/

-- or --

1.b  manually download all files at http://cvs.php.net/cvs.php/pecl/dio clicking on the revision number link
     move to the destination directory

2.   (in shell run)
     phpize (if the system is missing the 'phpize' command see http://php.mirrors.ilisys.com.au/manual/en/install.pecl.phpize.php)
     ./configure --enable-dio --with-php-config=/path/to/php-config (usually /usr/local/php/bin/php-config or /usr/bin/php-config)

     make
     make install (you need root/admin privilegies)
php dot 5 dot gavinostlund at spamgourmet dot com
08-Dec-2007 12:36
You can manually build the dio extension for your version of PHP, or install an older version of PHP that still bundled dio.  It's not that hard to build it yourself, just a bit of a process, and it helps if you're on linux, and have a build environment... which I would assume you have if you are doing some kind of development that requires direct device I/O...  Just get the dio source from the cvs repo, compile it, and then add the extension to your php configuration...
tom at bitworks dot de
03-Nov-2007 01:41
to use mandatory locking on a linux system, the filesystem has to be well prepared.

# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>               <dump>  <pass>
/dev/hda1       /               ext3    errors=remount-ro,mand  0       1
/dev/hda2       none            swap    sw                      0       0
proc            /proc           proc    defaults                0       0
/dev/fd0        /floppy         auto    user,noauto             0       0
/dev/cdrom      /cdrom          iso9660 ro,user,noauto          0       0

For example here the ext3 partition has been prepared for mandatory locking. Otherwise no dio_function will work on the system.
richard d_0t cubek a_t example D0_t com
25-Sep-2007 08:13
IMPORTANT:

--enable-dio is NOT recognized as an option. After reporting a bug, i got following answer:

It is not bundled anymore. See http://pecl.php.net/dio to fetch the CVS version (being unmaintained, there is no release in pecl). Not a bug > bogus.

[b]如何编译dio_open 的so文件:[/b]
http://php.mirrors.ilisys.com.au/manual/en/install.pecl.phpize.php
摘录部分:
Compiling shared PECL extensions with phpize

Sometimes, using the pecl installer is not an option. This could be because you're behind a firewall, or it could be because the extension you want to install is not available as a PECL compatible package, such as unreleased extensions from SVN. If you need to build such an extension, you can use the lower-level build tools to perform the build manually.

The phpize command is used to prepare the build environment for a PHP extension. In the following sample, the sources for an extension are in a directory named extname:

$ cd extname
$ phpize
$ ./configure
$ make
# make install

A successful install will have created extname.so and put it into the PHP extensions directory. You'll need to and adjust php.ini and add an extension=extname.so line before you can use the extension.

If the system is missing the phpize command, and precompiled packages (like RPM's) are used, be sure to also install the appropriate devel version of the PHP package as they often include the phpize command along with the appropriate header files to build PHP and its extensions.

Execute phpize --helpto display additional usage information.


http://cvs.php.net/viewvc.cgi/pecl/dio/
SQL Injection with MySQL,安全天使的一篇文章,写得很有深度,值得阅读和借鉴:
http://www.4ngel.net/article/36.htm


①SELECT * FROM article WHERE articleid='$id'
②SELECT * FROM article WHERE articleid=$id

  两种写法在各种程序中都很普遍,但安全性是不同的,第一句由于把变量$id放在一对单引号中,这样使得我们所提交的变量都变成了字符串,即使包含了正确的SQL语句,也不会正常执行,而第二句不同,由于没有把变量放进单引号中,那我们所提交的一切,只要包含空格,那空格后的变量都会作为SQL语句执行,我们针对两个句子分别提交两个成功注入的畸形语句,来看看不同之处。

① 指定变量$id为:
1' and 1=2 union select * from user where userid=1/*
此时整个SQL语句变为:
SELECT * FROM article WHERE articleid='1' and 1=2 union select * from user where userid=1/*'

②指定变量$id为:
1 and 1=2 union select * from user where userid=1
此时整个SQL语句变为:
SELECT * FROM article WHERE articleid=1 and 1=2 union select * from user where userid=1


  看出来了吗?由于第一句有单引号,我们必须先闭合前面的单引号,这样才能使后面的语句作为SQL执行,并要注释掉后面原SQL语句中的后面的单引号,这样才可以成功注入,如果php.ini中magic_quotes_gpc设置为on或者变量前使用了addslashes()函数,我们的攻击就会化为乌有,但第二句没有用引号包含变量,那我们也不用考虑去闭合、注释,直接提交就OK了。
  大家看到一些文章给出的语句中没有包含单引号例如pinkeyes的《php注入实例》中给出的那句SQL语句,是没有包含引号的,大家不要认为真的可以不用引号注入,仔细看看PHPBB的代码,就可以发现,那个$forum_id所在的SQL语句是这样写的:

$sql = "SELECT *
FROM " . FORUMS_TABLE . "
WHERE forum_id = $forum_id";


  由于没有用单引号包含变量,才给pinkeyes这个家伙有机可乘,所以大家在写PHP程序的时候,记得用单引号把变量包含起来。当然,必要的安全措施是必不可少的。
case语句里面有return了,break还起作用吗?比如:switch(ID){case1:return1;break;//还能执行到break吗?


    switch($gametype)
    {
      case 1:
      {        
        


        if ($gametimes[0]['FSum'] >= 36)
        {
          return "&status=4";
        }
                break;
      }      
      case 2:
      {

        if ($gametimes[0]['FSum'] >= 20)
        {
          return "&status=4";
        }
                break;
      }
      case 3:
      {

        
        if ($gametimes[0]['FSum'] >= 20)
        {
          return "&status=4";
        }
                break;
      }
      case 4:
      {        

        
        if ($gametimes[0]['FSum'] >= 20)
        {
          return "&status=4";
        }
                break;
      }
      case 5:
      {

        
        if ($gametimes[0]['FSum'] >= 20)
        {
          return "&status=4";
        }
                break;
      }
    }
  }


如果仅仅是用return 没法堵住,还得要break来帮忙啊
ALTER TABLE Tbl_ScoreDetail_oneday  ADD FSum INT;


中国的楼市是消费需求吹成的泡沫。每个人都在"看好"自己未来几十年的收入,并将其提前消费,这期间自有生活的压力(要结婚,总要有个落脚的地方吧,不在农村工作,总是在城市吧,城市中总不能租房结婚吧,所以就房奴啰)、亦有政府、银行及媒体、专家有意无意地鼓吹,但所有人不买房的人都希望房价不会涨,最好是狂降,而所有买了房的人都希望房价不要降,最好是狂涨。这样的矛盾统一体,对中国不降直涨的楼市,不能说没有“一点”“贡献”!

无心伤她说话 收不了
冷雨夜我在你身边 盼望你会知
可知道我的心 比当初已改变
只牵强的相处
冷雨夜我不想归家 怕望你背影
只苦笑望雨点 须知要说清楚
可惜我没胆试
Inter I5 750   1580¥
技嘉p55        1180+100 ¥ (导热管+100¥)
DDR3 256 1333MHZ/1600MHZ 4G  (345¥) (400¥)
GT210  512M  (工控一般显卡即可)  275¥
台电  32G 固态硬盘    680¥
Dell 400 原装电源  
今天看到《程序员》杂志上的《软件中国2009年大势图》,有一点思考,写下来。 阅读全文
    说来惭愧,25年的经历仅仅让我总结出三句话。But它涉及到男人的生理,心里,以及社会责任,较为有冲击力,同时我也相信在这25年里,imitated by many surpassed by none,So i should share my solution:



       第一是爹娘,什么都别说,第二是朋友,是兄弟,第三是女人,而且这个女人是我的女人,第四,是自己,那再往后排就是其他女人。
    注意,上面的排序在大中学生的眼里叫做自私,但是这是在社会上立足,你能交到朋友,你能够被社会认可,你能够为社会做贡献的一个前提,你连自己你都关注不到的话,你的朋友永远不敢把利益托付给你,所以,尊重你自己。


    第二,尊重女性。为什么?在社会方面,女性是个弱势群体,而男人则不同,就心里而言:男性可能对性的需求会更强烈一些,而女性对感情感性的这个需求更强烈一些,所以他们正好是不在同一个水平体系上的。

      最后,对身边人所有人负责任。什么概念?就是我个人觉得任何一件事情,你都要付出男人的感情,你付出感情上面的事情,才会有感情上的回报,对任何一个人任何一个事,任何一个物件,如果你对他付出感情了,会有回报的。

                                                                                                      

我是学软件的 我很喜欢Linux 但是 我发现在Linux 下的程序员不是很多!!
而大部分 都是网管用Linux 我想知道Linux 下Qt编程有没有前途!!!!

我是RHCE和高程(好像不值一提),发表一些个人看法:

1. 个人做程序员7年,平台涉及UNIX, LINUX, WINDOWS,但都没用过QT编程

2. 我对QT的理解是跨平台的窗口技术,这个技术应该是有可替代性,换句话讲是可替代的,如:SWING

3. 选择少人学的技术,意味着难上手、难提高、难找相应的工作;学LINUX不比学VC好找工作

个人建议学习一些平台无关的基础知识(数据结构、UML、设计模式等)后,用VC或ECLIPSE做几个具体的小项目,这样找工作的时候可能比会一点QT更有竞争力。

一家之言,供参考。



越是没有人学的就越走俏,因为没人学就表示上手难。学linux比学VC好找工作。一些大型服务器后台程序都是靠linux编程。而QT更是linux下C++编程的一般环境。好好学,没错的:)


我学过QT,也用过QT.这是个好东西.如果你对Linux感兴趣,很建议你去学习QT,不为别的,只因为QT确实有许多引人入胜的东西.至于QT是否会被替代的讨论实际上没有意义,因为这就像讨论.net是否会一统天下一样根本说不清楚.QT是否会被用上取决于你是否用它,而不是他是否有用,就像许多人也很少用纯C,但它至今依然屹立不倒.
再有,QT是纯正的C++,学起来要比VC容易,跨平台与通用性也高,而且也不会花泥多少时间.
所以是否学习与使用QT纯粹看你的兴趣.

老实说,我觉得没钱途,当做爱好还可以,但如果想靠这个吃饭,我觉得在国内还有很长的路要走

基本没有前途
学习QT貌似不如学习gtk编程
虽然QT目前用的多
但是gnome的前景比qt好多很


QT是C++的优秀扩展,不错,有前途滴,不过她不是开源软件,这一点不太好,万一哪天破产了,呵呵,就不太好了



晚上看了一些关于消息队列和共享内存方面的资料。这部分内容昨天看arm-linux视频教程第17讲的时候接触过了,但视频看完后自己虽有了一些印象,却不是太懂。于是又在网络上找了一些文章来进一步学习,并编写了012号与013号程序,分别是关于消息队列和共享内存的,在机器上也已经调试过了,现在把代码贴在下面:阅读全文
使用jQuery1.3.2的$.post()函数发送一个json格式的请求,返回数据也是json格式。程序在ie和ff中运行一切正常。

但是在ff中使用httpfox插件检查:大部分情况下返回结果为 result=200, type=application/json
偶尔会出现result = Aborted, type=application/json (NS_BINDING_ABORTED)

不影响程序的执行结果。

google也找不到NS_BINDING_ABORTED的具体解释。

谁知道该如何避免这个错误呢?

----------------------------------------------------
我们这儿是用的jquery的dialogue弹出一个页面,在firefox中抓(httpfox),发现出现三个NS_BINDING_ABORTED.
在实际开发中,有时会遇到PHP和C语言结构的互相转化问题,这时候PHP的函数pack和unpack就能帮上大忙了.
pack()将数据打包成二进制串
unpack()从字串中的二进制串转化成指定的格式
Code Description
a NUL-padded string
A SPACE-padded string
h Hex string, low nibble first阅读全文
分页: 222/339 第一页 上页 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 下页 最后页 [ 显示模式: 摘要 | 列表 ]