ITeye博客

2014 年文章归档

共 34 篇文章

mysql 创建函数

如何进入mysql的cmd命令行模式? 参考:http://submaze.iteye.com/blog/2161952 一、查看创建函数的功能是否开启: mysql>show variables like '%func%'; +---------------------------------+-------+ | Variable_name | Value | +---------------------------------+-------+ | log_bin_trust_function_creators | OFF | +----------------------------…

2014-11-30 17:27 · 数据库

cmd命令行登录MySQL的步骤

先打开cmd窗口,怎么打开就不用说了吧,开始菜单运行-cmd回车就出来了哈 然后假设你的mysql是安装在d:/mysql的, 在cmd窗口输入cd d:/mysql/bin回车 然后输入 d:回车 就把目录切换到mysql的安装目录d:/mysql/bin中了 然后输入mysql -hlocalhost -uuser -ppassword回车就进去了(其中localhost是mysql服务器不要端口号,user是用户名,password是密码); 输入use dbname 就可以选中你要操作的数据库。 然后你就可以操作数据库了。 show databases; 查看有哪些库 use xxx…

2014-11-30 17:06 · 数据库

创建带 IN 和 OUT 参数的 MySQL 存储过程

参考文献: http://www.oschina.net/translate/create-and-call-mysql-stored-procedure-database-sql-example-tutorial?cmp

2014-10-24 15:37 · 数据库

短信开发

中国电信天翼开放平台 --支持联通,电信,移动短信需求 http://open.189.cn/

2014-10-10 09:31 · 服务器

微信分享链接时,怎样才能带上带缩略图和简介

参考资料: http://www.oschina.net/question/1430945_159319

2014-09-11 16:31 · 默认类别

解决Dreamweaver CS6占用CPU过高

参考文献: http://www.wxzzz.com/368.html

2014-09-04 12:20 · Tools

mysql 创建函数失败 错误1418 ERR处理方法

在MySQL创建用户自定义函数时,报以下错误: ERROR 1418 (HY000): This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its declaration and binary logging is enabled (you might want to use the less safe log_bin_trust_function_creators variable) 这是因为有一个安全参数没有开启,log_bin_trust_function_creators 默认为0,是不允许fun…

2014-09-03 10:59 · 默认类别

Cannot call sendError() after the response has been committed

当response提交后,不能调用sendError(),什么意思? 出现这个错误,一定是多次response导致的。可以这么理解,承载客户端和服务器进行Http交互的Socket连接已经关闭了,而你还试图发送数据给客户端,显然会出错。就好比我俩打电话,我都挂电话了,你还在“喂喂喂”。 例如下面这段代码就会出现此错误: import java.io.Writer; import javax.servlet.http.HttpServletResponse; import org.apache.struts2.ServletActionContext; import com.opensymph…

2014-08-08 17:18 · 默认类别

spring 扫描 hibernate 注解:packagesToScan

这几天在搭建一个新架构,引用了spring 2.5.6中新加的特性,就是自动扫描Class的hibernate映射文件。 我的class都在com.pplus.model这个包里,注意 配置参数 org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean <bean id="sessionFactory" class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean"> <property name="…

2014-08-02 15:37 · SSH

javax.annotation.ParametersAreNonnullByDefault jar包

java.lang.ClassNotFoundException javax.annotation.ParametersAreNonnullByDefault 对应jar包缺失 参考资源 http://www.java2s.com/Code/Jar/j/Downloadjsr305139jar.htm

2014-07-15 15:34 · Web开发

struts2 网页模板

freeMarker, Velocity表现层技术,模板是网页

2014-07-06 17:53 · SSH

Windows下搭建PHP开发环境

php开发环境搭建参考 http://www.cnblogs.com/pharen/archive/2012/02/06/2340628.html Apache安装后里面无服务解决办法 http://submaze.iteye.com/blog/2086267

2014-06-28 11:48 · Tools

Apache安装后里面无服务解决办法

安装失败,可能和防火墙有关,可以关闭防火墙试试 参考文档 http://blog.sina.com.cn/s/blog_63426ff90100j05f.html

2014-06-28 11:22 · Tools

JAVA加密安全

第三方开源组件包 Bouncy Castle http://www.bouncycastle.org/ 是一个开源加密组件,它提供了多种java6所不支持的算法实现,如MD4和SHA-224,对称加密算法IDEA等... Commons Codec http://commons.apache.org/codec/ 同样是一款开源组件,它位于国际开源组织Apache 旗下对java 6进一步封装,加强了易用性 关于网络监听工具WireShark 通过网络监听工具WireShark完成网络数据监控,官网http://www.wireshark.org/下载最新软件包

2014-06-22 21:15 · Tools

Java日期格式化常用方法

参考文档: http://www.cnblogs.com/mailingfeng/archive/2011/07/28/2120422.html

2014-06-21 21:03 · JAVA

网页嵌入mp3音乐

<!--声音--> <audio id="v1" controls="controls" height="100" width="100" style=" display:none"> <source src="music.mp3" type="audio/mp3" /> <source src="song.ogg" type="audio/ogg" /> <embed height="100" width="100" src="music.mp3" /> </audio> <script> var myVideo=document.getElementById("v1"); functio…

2014-05-29 16:05 · Web开发

搭建nginx流媒体服务器for linux

参考文献: 搭建文档 http://blog.chinaunix.net/uid-20639775-id-154556.html 技术讨论 http://bbs.csdn.net/topics/390615854

2014-05-28 14:31 · 服务器

js表单提交

js 表单提交 <html> <head> <script type="text/javascript"> function formSubmit() { document.getElementById("myForm").submit() } </script> </head> <body> <form id="myForm" action="js_form_action.asp" method="get"> Firstname: <input type="text" name="firstname" size="20"><br /> Lastname: <input type="text…

2014-05-09 17:07 · UI

myeclipse js报错解决方法

见参考资料中的方法二 参考资料 http://www.cnblogs.com/developering/archive/2013/01/22/2870908.html

2014-05-07 22:34 · Tools

滚动条样式

参考资料: http://manos.malihu.gr/tuts/custom-scrollbar-plugin/complete_examples.html

2014-05-06 20:53 · UI