博客主机

Mysql中where in的使用

1、in 后面是记录集,如: select  *  from  table  where   uname  in (select  uname  from  user);   2、in 后面是字符串,如: select  *  from  table  where   uname  in('aaa',bbb','ccc','ddd','eee',ffff'');   3、in 后面是数组,用如下方法,请参考: //$pieces是含数据的数组 for($i=0;$i<count($pieces);$i++){ $uname=$uname."'".$pieces[$i]."',"; } $the_uname ="uname in("....

SVN 认证失败

总是出现认证失败,百度了一下,最多的解决 办法是存成无bom的utf-8格式,或者acsii-unicode,unicod-utf-8,照着弄了弄,还是不行,后来仔细看了看系统中运行的服务,发现ssl服务开启,因为知道subclipse不支持ssl协议,只有apache方式才支持,所以赶紧停掉服务解决,看了看svnserve.conf,发现里面一行# authz-db = authz前面的#我没去掉,去掉#就认证失败了。。。 总结一下,因为ssl关系出现认证失败的...

MYSQL 授权远程IP问题

例: Grant all privileges on *.* to 'root'@'%' identified by 'password' with grant option; 这里前面的G要大写,以下同样。 详细授权法:  在安装mysql的机器上运行:  1、d:\mysql\bin\>mysql -h localhost -u root  //这样应该可以进入MySQL服务器  2、mysql>GRANT ALL PRIVILEGES ON *.* TO 'root'@'%'WITH GRANT OPTION;  //赋予任何主机访问数据的权限        例如,你想myuser使用mypass...

ubuntu svn subclipse

If you are running Ubuntu 8.04 and you install Eclipse 3.4 with subclipse 1.4, you will probably get the "unable to load default svn client" error when trying to add a repository. Here it is how I solved this problem. I assume that you have the 'subversion' and 'libsvn-java' packages already installed (if not, please do install them, and then follow the instructions). 1) Go ...

Plugin和App的统一路径接口

在Eclipse插件(Plugin)开发中,需要写一些Test Case(by JUnit),这些Test Case不是以插件方法运行的,而是一些普通的Application。这时要注意到插件和App获取路径的方式是不同的,这时如果你要测试一些项目中的 一些涉及到读文件的一些类,无疑会导致出错,因为在Plugin中可能由Plugin和APP组成,比如JUnit,这时在不同地方调用读文件会出错。为了让Plugin和App路径获取透明化,不防写一个工具类来提供...

最简单的Eclipse Console可用来显示信息

在Eclipse插件开发中经常会遇到需要在一个区域显示程序运行过程中的一些信息,如日志报告、错误提示等,Eclipse自身的 MessageConsole其实就可以很方便地完成这些功能,并且开发起来十分方便。当然MessageConsole的开发也有许多种方法,在这里我 只想向大家介绍一个最简单的方法,只需不到6行代码即可完成。 1、必须先引入org.eclipse.ui.console的jar包(即在plugin.xml编辑界面的Dependencies标签页的“Re...

Eclipse插件开发中对于Jar包和类文件引用的处理(彻底解决插件开发中的NoClassDefFoundError问题)

目的:Eclipse插件开发中,经常要引用第三方包或者是引用其他插件中的类,由于插件开发环境引用类路径的设置和运行平台引用类路径的设置不同,经常导致开发过程OK,一旦运行则出现NoClassDefFoundError的问题。本文的目的是全面分析各种情况下类路径的设置,以避免这个问题的出现。 说明:Jar包和类路径实际上是一个概念,比如类com.bbebfe.Test.class打包为test.jar包,添加类引用就直接添加test.jar包...

JFace依赖包

需要把以下的jar包包含到buid path里面来,才能顺利的运行JFace的程序。eclipse的版本是3.2以上 \eclipse\plugins\org.eclipse.text_3.4.0.v20080605-1800.jar \eclipse\plugins\org.eclipse.jface.text_3.4.1.r341_v20080827-1100.jar \eclipse\plugins\org.eclipse.jface_3.4.1.M20080827-2000.jar \eclipse\plugins\org.eclipse.swt_3.4.1.v3449c.jar \eclipse\plugins\org.eclipse.core.commands_3.4.0...
Copyright © 小小的数据技术梦想 保留所有权利.   Theme  Ality 浙ICP备12043346号-1

用户登录

分享到: