码迷,mamicode.com
首页 >  
搜索关键字:id    ( 68208个结果
将string数组转化为sql的in条件
例如:我想将String[] str = {"4","5","6"}转化为“‘4’,‘5’,‘6’”字符串。这样我就可以用sql查询:select * from tableName id in (字符串)了。 项目中实现的源码如下: StringBuffer idsStr = new StringBuffer(); for (int i = 0; i < i...
分类:数据库   时间:2014-05-23 01:55:42    阅读次数:390
玩转web之JQuery(二)---改变表单和input的可编辑状态(封装的js)
var FormDeal = { /** * 功能 :将表单的所有input都设为可编辑的 *@param 要操作表单的id */ formWritable: function (formId) { $("#"+formId+" input,textarea").removeAttr("readonly"); $("#"+formId...
分类:Web程序   时间:2014-05-23 01:53:44    阅读次数:318
Hibernate学习——一般配置
Employee.java package com.study; public class Employee { private int id; private String firstName; private String lastName; private int salary; public Employee() { } public Emplo...
分类:系统相关   时间:2014-05-23 01:28:18    阅读次数:370
android.content.res.Resources$NotFoundException
今天在项目中遇到异常android.content.res.Resources$NotFoundException: String resource ID #0x42...
分类:移动开发   时间:2014-05-23 00:46:27    阅读次数:282
2G03-view-radio-group
注意两点 1.通过android:checkedButton="@+id/lunch"而不是item中的 android:checked="true"设置的某人被选中状态 <RadioGroup android:layout_width="match_parent" android:layout_height="wrap_content" a...
分类:其他好文   时间:2014-05-23 00:04:35    阅读次数:344
poj 3261 后缀数组 找重复出现k次的子串(子串可以重叠)
题目:http://poj.org/problem?id=3261 仍然是后缀数组的典型应用----后缀数组+lcp+二分 做的蛮顺的,1A 但是大部分时间是在调试代码,因为模板的全局变量用混了,而自己又忘了,,,等西安邀请赛还有四省赛结束之后,该冷静反思下尝试拜托模板了 错误   :1、k用错,题目的k和模板的k用混; 2、还是二分的C()函数,这个其实跟前一篇《poj 1...
分类:其他好文   时间:2014-05-22 23:14:51    阅读次数:361
赵雅智_Android短信发送器
注意要点: 1)必须要在AndroidManifest.xml中添加发送短信权限 设置视图:setContentView(R.layout.布局xml文件); 2)查找控件:findViewById(R.id.控件id); 3)监听按钮事件:控件.setOnClickListener(this),实现OnClickListener接口 4)获取editText里的值:getTex(); ...
分类:移动开发   时间:2014-05-22 22:39:56    阅读次数:460
python各种模块的使用
Pexpect模块:http://www.ibm.com/developerworks/cn/linux/l-cn-pexpect1/ ConfigParser模块:http://blog.chinaunix.net/uid-25890465-id-3312861.html logging模块:http://kenby.iteye.com/blog/1162698 threading模块...
分类:编程语言   时间:2014-05-22 22:38:36    阅读次数:358
ssh 建立github验证
建立ssh无验证连接 Check for SSH keys、 cd ~/.ssh ls Check the directory listing to see if you have a file named either id_rsa.pub or id_dsa.pub 检查有无产生过的key,一台机器只能创建一个。如果重新创建则前一个会被覆盖。 Generate a new SSH ...
分类:其他好文   时间:2014-05-22 18:33:48    阅读次数:261
poj 1226 hdu 1238 Substrings 求若干字符串正串及反串的最长公共子串 2002亚洲赛天津预选题
题目:http://poj.org/problem?id=1226 http://acm.hdu.edu.cn/showproblem.php?pid=1238 其实用hash+lcp可能也可以,甚至可能写起来更快,不过我没试,我最近在练习后缀数组,所以来练手 后缀数组的典型用法之一----------------后缀数组+lcp+二分 思路:1、首先将所有的字符串每读...
分类:其他好文   时间:2014-05-22 17:14:08    阅读次数:289
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!