摘要: vs2010安装之后,分发包在C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bootstrapper\Packages 阅读全文
posted @ 2012-06-29 10:19 johnsonshu 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 让控件看不出选中grdList.DefaultCellStyle.SelectionBackColor = grdList.DefaultCellStyle.BackColor;grdList.DefaultCellStyle.SelectionForeColor = grdList.DefaultCellStyle.ForeColor;显示完之后不让某一行默认选中grdList.CurrentCell = null;C#实现阻止事件的发生grdList.SelectionChanged -= new EventHandler(grdList_SelectionChanged);Applica 阅读全文
posted @ 2012-06-29 10:18 johnsonshu 阅读(209) 评论(0) 推荐(0) 编辑
摘要: 1. After “open command prompt 'net use * /delete <enter>'”, please reboot the computer and see if you will be prompted to input the credential when access the share again.2. Please access the share first, and then go to the side which is connected and run the command “net session” to s 阅读全文
posted @ 2012-06-29 10:15 johnsonshu 阅读(182) 评论(0) 推荐(0) 编辑
摘要: passdb backend = tdbsam passdb backend即用户后台。有三种后台:smbpasswd、tdbsam和ldapsam。Sam即security account manager。1. smbpasswd:该方式是使用smb工具smbpasswd给系统用户(真实用户或者虚拟用户)设置一个Samba 密码,客户端就用此密码访问Samba资源。smbpasswd在/etc/samba中,有时需要手工创建该文件。2. tdbsam:使用数据库文件创建用户数据库。数据库文件叫passdb.tdb,在/etc/samba中。passdb.tdb用户数据库可使用smbpassw 阅读全文
posted @ 2012-06-29 10:13 johnsonshu 阅读(924) 评论(0) 推荐(0) 编辑
摘要: 我是用C#的entity model , 连接字符串是保存在App.Config里的。加上了charset=utf8之后,就好使了<?xml version="1.0" encoding="utf-8"?><configuration><connectionStrings><add name="takaraEntities" connectionString="metadata=res://*/Model1.csdl|res://*/Model1.ssdl|res://*/Model 阅读全文
posted @ 2012-06-29 10:11 johnsonshu 阅读(424) 评论(0) 推荐(0) 编辑
摘要: 以前用过的,这样就不用 native2ascii倒来倒去了property editorhttp://propedit.sourceforge.jp/index_en.htmlhttp://changing.iteye.com/blog/72209 阅读全文
posted @ 2012-06-29 10:07 johnsonshu 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 在CentOS下,我是这么找的1.查看 /etc/ssh/sshd_config 看到 SyslogFacility AUTHPRIVLogLevel INFO2.查看 /etc/rsyslog.conf找到authpriv.* /var/log/secure然后读取/var/log/secure, 就可以看到内容了 阅读全文
posted @ 2012-06-29 09:51 johnsonshu 阅读(5312) 评论(0) 推荐(0) 编辑
摘要: 原文从网上检索的主要是怎么调试, 而且因为有些环境变量在cron里是没有的,所以应该怎么写之类的。Noah wrote:> I just rebuilt a new 5.5 server and I am finding root's crontab entries> are not being executed.any body got some clues about how I can> troubleshoot this issue so my cron entries are bring executed.Verify that root's cro 阅读全文
posted @ 2012-06-29 09:50 johnsonshu 阅读(166) 评论(0) 推荐(0) 编辑
摘要: select * from t_user_e where love_type_ename like '%/_%' escape '/'http://ewan.iteye.com/blog/191049 阅读全文
posted @ 2012-06-29 09:48 johnsonshu 阅读(407) 评论(0) 推荐(0) 编辑
摘要: 用curl_error函数看到错误SSL certificate problem, verify that the CA cert is OK. Details:error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed解决curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);http://unitstep.net/blog/2009/05/05/using-curl-in-php-to-access-https-ssltls-protected-s 阅读全文
posted @ 2012-06-29 09:47 johnsonshu 阅读(663) 评论(0) 推荐(0) 编辑
摘要: 示例http://files.cnblogs.com/johnsonshu/testpic.zip 阅读全文
posted @ 2012-06-29 09:39 johnsonshu 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 竟然在网上找到对策了http://stackoverflow.com/questions/4894842/sphinx-install-error ./configure --with-unixodbc=no之后,make还是出错。结果发觉vps服务器给的内存太少了service XXX stop , 一顿整之后,make 成功了http://sphinxsearch.com/forum/view.html?id=5606 阅读全文
posted @ 2012-06-29 09:22 johnsonshu 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 在配置文件的索引设置里加上 ngram_len = 1 ngram_chars = U+3000..U+2FA1F 阅读全文
posted @ 2012-06-29 09:21 johnsonshu 阅读(349) 评论(0) 推荐(0) 编辑
摘要: 以前最主要的的是怕字符集乱了所以login的时候,一定要指定mysql -u XXX -p DBXXX --default-character-set=utf8然后 > source /home/XXX/XX.sql 阅读全文
posted @ 2012-06-29 09:19 johnsonshu 阅读(100) 评论(0) 推荐(0) 编辑
摘要: $("input[name='radio_name'][checked]").val(); //选择被选中Radio的Value值 $("#text_id").focus(function(){//code...}); //事件 当对象text_id获取焦点时触发 $("#text_id").blur(function(){//code...}); //事件 当对象text_id失去焦点时触发 $("#text_id").select(); //使文本框的Vlaue值成选中状态$("inp 阅读全文
posted @ 2012-06-29 09:17 johnsonshu 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 简单的: SetCookie("MyCookie", "Value of MyCookie"); 带失效时间的: SetCookie("WithExpire", "Expire in 1 hour", time()+3600);//3600秒=1小时 什么都有的: SetCookie("FullCookie", "Full cookie value", time()+3600, "/forum", ".phpuser.com", 1); 阅读全文
posted @ 2012-06-29 09:16 johnsonshu 阅读(226) 评论(0) 推荐(0) 编辑