`
lxj8749
  • 浏览: 64448 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论
文章列表
新安装的英文版的CentOS右上角没有输入法 终于发现了有效的方法: su root yum install "@Chinese Support"   然后设置Input Methord即可。(左上角System>preference>input methord) 勾选 enable input method feature,然后设置输入就可以了

ucenter整合登陆慢

用户登陆每次都要卡很长时间才能登陆,后来一行行代码查看,发现$ucsynlogin = uc_user_synlogin($uid);这一行代码特别慢,网上搜索uc_user_synlogin很慢,没什么结果,后来在网上有人说,把配置文件中的UC_API配置中的域名,直接用ip代替就会快些,尝试了下,果真好了 define('UC_API', 'http://192.168.193.102/ucenter');

js连续滚动代码

<script language="javascript"> function marquee(id,id1,id2,speed){ var obj=document.getElementById(id); var obj1=document.getElementById(id1); var obj2=document.getElementById(id2); obj2.innerHTML=obj1.innerHTML; function scrolly(){ if(obj.scrollTop>=obj1.offsetHeight ...

PDO的简单使用

    博客分类:
  • php
我用的是MySQL 4.0.26,但是我个人推荐大家使用 MySQL 4.1.x 或者 MySQL 5.0.x,因为那些版本有很多有趣的东西值得去学习。我们这里PDO需要连接的就是我的MySQL 4.0啦,如果你没有安装MySQL,请自行安装。我们建立好了MySQL,并且在test库里添加了表foo,包括 id,name,gender,time等四个字段。 我们开始构造第一个PDO应用,建立一个pdo.php文件在Web文档目录下:   <?php$dsn = "mysql:host=localhost;dbname=test";$db = new PDO( ...

redis php安装使用

 
  安装redisshell> wget http://redis.googlecode.com/files/redis-2.0.4.tar.gzshell> tar zxvf redis-2.0.4.tar.gzshell> mv redis-2.0.4 redisshell> cd redisshell> makeshell> redis-server 不要关shell> redis-cliredis>set foo barOKredis>get foo“bar” 安装phpredis模块 https://github.com/ow ...
  分站的过程中,需要跨域请求数据,出现小的问题,记录一下,   test.php,在www.a.com根目录中   test.php代码:   Php代码    <?php $dal=$_GET['callback']; $arr=array("name"=>"4nail", "age"=>20); $jarr=json_encode($arr); echo $dal.'('.$jarr,')'; ?>    test.h ...
自己写的一个jquery循环滚动插件   插件jquery.looproll.js代码: //jquery循环滚动插件 jQuery.fn.looproll=function(options){ var setting={ speed: 1000 , interval:3000 }; if(options){ $.extend(setting,options); }; //取得滚动的容器和需要滚动的内容 var rollBox=this; var rollContent=this.children(); //添加一个包裹标签 ...

node.js入门

http://www.cnblogs.com/rubylouvre/archive/2010/07/15/1778403.html

Symfony 学习网站

http://www.symfony-cxne.org/portal.php?mod=view&aid=4http://symfony.lag.cn/%E8%BD%AC%E8%BD%BDwindows%E4%B8%8B%E5%AE%89%E8%A3%85symfony/Symfony尽管已经发展3年有余了,但是在国内学习Symfony的资源是少之又少。目前Symfony已经出来symfony1.4了,国内的 symfony教程最新在1.2版本。国内的Symfony教程基本上是翻译了国外的官方教程,这些中文教程也是笔者学习Symfony的第一手资料,在 这里非常感谢这些热心的翻译者。 1. ...
为了防止scim与fcitx冲突,如果你安装了scim,你最好卸载掉scim(有一次我的fcitx莫名其妙无法上屏,卸载掉就正常了):sudo apt-get purge scim   sudo add-apt-repository ppa:wengxt/fcitx-nightly #最新的版本都不需要sudo apt-get updatesudo apt-get install fcitx fcitx-config-gtk fcitx-sunpinyin sudo apt-get install fcitx-table-all #同时安装其他码表 im-switch -s f ...

phpunit安装

如果没有安装pear先安装pear http://pear.php.net/go-pear.phar 下载文件go-pear.phar到php安装目录下 命令行执行:php go-pear.phar   添加channel: pear channel-discover pear.phpunit.depear channel-discover components.ez.nopear channel-discover pear.symfony-project.com 然后安装PHPUnit: pear install phpunit/PHPUnit   如果安装失败 那 ...

jQuery插件开发

1、类级别的插件开发 开发如$.get(),$.post的函数   方式一: jQuery.myFun1 = function() { alert('This is a test. This is only a test.'); }; jQuery.myFun2 = function(param) { alert('This function takes a parameter, which is "' + param + '".'); }; //调用 $.myFun1(); $.myFun2(&qu ...
  做php的完全可以在linux下开发 张映 发表于 2011-04-26 分类目录: linux 我是做php的,下面就以php程序员为例,来搭建一套linux下的开发环境。基本上都图形化操作,个人觉得比较简单。ubuntu越来越像windows。   一,安装linux系统(以ubuntu为例) 1,下载个ubuntu的安装文件,推荐一下http://www.ylmf.org/ ,超像windows的linux系统,里面集成了很多软件,连RTX(腾讯通)都有,我狂晕。 2,安装,将下载下来的.iso文件中的wubi.exe解压出来,根.iso安装文 ...
Global site tag (gtag.js) - Google Analytics