- 博客(25)
- 收藏
- 关注
转载 LR学习路错误总结
函数:lr_output_message(lr_eval_string("<page>")); sockets里面的参数是<> http里面是{}关于Winsocket协议手动关联,用socketTool录制脚本,发送TCP请求A,请求B,请求A的返回值在请求B中将会用到。最终脚本如下:data.wsdata.ws中的urmi...
2014-04-29 16:13:00 53
转载 使用WIF实现单点登录Part III —— 正式实战
我们接下来的demo将包括以下的工程:SiteA —— 基于.net framework 4.5的MVC 4程序,使用WIF 4.5的SDK,第一个RPSiteB —— 基于.net framework 4.5的MVC 4程序,使用WIF 3.5的SDK,第二个RPSiteC —— 基于.net framework 4.0的MVC 4程序,使用WIF 3.5的SDK,第三个RP...
2014-04-29 15:32:00 64
转载 我的菜单在母版页,如何更改菜单点击后的效果
我的菜单在母版页,如何更改菜单点击后的效果 原文:我的菜单在母版页,如何更改菜单点击后的效果 网友问:“我的菜单在母版页中,用li做的,选中的菜单有一个Selected类,设置选中后的背景。问题出来了,我其他所有页面都是基于这个母版页,点击菜单转到其他页面,怎么修改这个被点击的菜单的背景呢?只有选中的菜单才有Selected类。那就是...
2014-04-27 00:27:00 61
转载 springMVC+MyBatis+Spring 整合(2)
mybatis 与Spring 的整合. 1.导入Spring 和Springmvc的包pom<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://mave...
2014-04-27 00:03:00 38
转载 Android 加载时在actionBar右上角添加一个加载图标
①首先要在Activity的 setContentView()方法前调用requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);//使用ActionBarSherlock时Window类应为com.actionbarsherlock.view.Window②开始加载数据时调用setProgressBarIndeterm...
2014-04-25 00:33:00 446
转载 vs .net WebForm 模板添加注释
首先说一点,好久不更新博客了。今天公司服务器不能用了,闲着没事儿,更新一篇博客。今天要说的就是vs2010下,如何更改各种文件的模板,以省去每次新添加文件时,还得给文件添加文件标示注释等时间。很大程度上提高了工作效率,并且给自己一个愉快的工作心情。友情提示一下,最好在更改模板之前把模板先备份一下,以便以后好复原。好了,废话不多说了,上图示。 图一:更...
2014-04-24 09:17:00 57
转载 Centos 6.3 编译安装Nginx+php+Mysql
1、配置防火墙,开启80端口、3306端口vi /etc/sysconfig/iptables 将-AINPUT-mstate--stateNEW-mtcp-ptcp--dport80-jACCEPT-AINPUT-mstate--stateNEW-mtcp-ptcp--dport3306-jACCEPT加到 22端口配置后面2、...
2014-04-21 17:10:00 29
转载 C 内存分配
http://blog.sina.com.cn/s/blog_4c78d3fb0100u8av.html1、内存分配方式 内存分配方式有三种: (1)从静态存储区域分配。内存在程序编译的时候就已经分配好,这块内存在程序的整个运行期间都存在。例如全局变量,static变量。 (2)在栈上创建。在执行函数时,函数内局部变量的存储单元都可以在栈上创建,函数执行结束时这些存储单元自动被释放。栈内...
2014-04-20 14:26:00 32
转载 Python字符串的编码与解码(encode与decode)
首先要搞清楚,字符串在Python内部的表示是unicode编码,因此,在做编码转换时,通常需要以unicode作为中间编码,即先将其他编码的字符串解码(decode)成unicode,再从unicode编码(encode)成另一种编码。decode的作用是将其他编码的字符串转换成unicode编码,如str1.decode('gb2312'),表示将gb2312编码的字符串转换成unicod...
2014-04-19 12:08:00 71
转载 ajax之async属性
Ajax请求中的async:false/true的作用官方的解释是:http://api.jquery.com/jQuery.ajax/async Boolean Default: trueBy default, all requests are sent asynchronous (e.g. this is set to true by default). If you need ...
2014-04-15 21:29:00 195
转载 快排模版
#include <stdio.h>void qsort(int a[],int l,int r){ int x=a[l]; int i=l; int j=r; if(l>=r) return ; while(i<j) { while(i<j&&a[j]>=x) j--; if(i...
2014-04-15 21:26:00 36
转载 重载、重写
http://blog.csdn.net/zhu_apollo/article/details/1852542重载overloading1)方法重载是让类以统一的方式处理不同类型数据的一种手段。多个同名函数同时存在,具有不同的参数个数/类型。重载是一个类中多态性的一种表现。2)Java的方法重载,就是在类中可以创建多个方法,它们具有相同的名字,但具有不同的参数和不同的定义。调用方法...
2014-04-15 14:38:00 33
转载 ORACLE常用安装软件
从ORACLE网上下载了一份,分别为以下内容:10201_client_linux32.zip10201_clusterware_linux32.zip10201_companion_linux32.zip10201_database_linux32.zip10201_gateways_linux32.zip这些文件都是做什么用的??clientclus...
2014-04-15 13:39:00 37
转载 onkeydown
<input onkeydown="(function(){if(event.keyCode == 13)//或者其他alert("enter")})(event)"/>$(this).keydown(function (event) { if (event && event.keyCode == 13) { // ...
2014-04-14 22:55:00 35
转载 AS3之正则表达式讲解
限制输入内容(一)、my_txt.restrict = "A-Z 0-9";仅允许在文本字段中输入大写字符、空格和数字 (二)、my_txt.restrict = "^a-z";包含除小写字母之外的所有字符,如果此时输入大写字母,则会自动被转为大写字母(三)、my_txt.restrict=String.fromCharCode(...
2014-04-14 13:31:00 71
转载 PHP分页
今天在工作之余写的一段PHP分页处理脚本,欢迎拍砖!!!显示页面 index.php<?php require_once 'include/showbbsProcess.php'; require_once 'include/showbbs_fun.php'; @$connectmysql=new connectMysql(); if (em...
2014-04-11 23:04:00 52
转载 关于Unity lua脚本的选择
最近在整理Unity lua脚本的一些方案,顺手测试了下性能,首先是C#调用lua空函数的性能,现在罗列下:Kopilua ,耗时 0.0002-0.0004sUniLua,耗时 1.2-05sC#普通方法 耗时 7.5-05sC#反射方法 耗时 0.00018s怎么感觉UniLua的性能那么高,为了排除是否可能优化掉空函数,继续做测试,C#调用lua函数 函数的主体是...
2014-04-11 13:05:00 82
转载 uva 11159 Factors and Multiples
FNext Generation Contest 3Time Limit: 2 secondsFactors and MultiplesYou will be given two sets of integers. Let�s call them setAand...
2014-04-11 12:53:00 57
转载 New Balance 8000 Elliptical Trainer Review
What you need to new balance uk pay in tax will be built on these figures. Other Details you must Keep: * Petty cash - and cash taken out of the business to pay small business expenses * Details of an...
2014-04-08 16:35:00 79
转载 Android -- 图片处理, 画画板,缩放,旋转,平移,镜面,倒影,图片合成,颜色处理...
1. 画画板 示例代码public class MainActivity extends Activity { private ImageView iv; private Bitmap baseBitmap; private Canvas canvas; private Paint paint; @Override prote...
2014-04-04 14:02:00 67
转载 C#小性能知识
字符串比较string s = "";1) if(s == ""){}2) if(s == string.Empty){}3) if (string.IsNullOrEmpty(s)) { }4) if(s != null && s.Length ==0) {} 5) if((s+"").Length == 0){} ...
2014-04-02 10:07:00 55
转载 How to Programmatically Switch between the HubTile Visual States
In this post I am going to talk about how to programmatically switch between different HubTile Visual States. Since the HubTile does not expose any API for changing / switching between its visual sta...
2014-04-01 22:37:00 53
转载 白话TCP三次握手
在TCP/IP协议中,TCP协议提供可靠的连接服务,采用三次握手建立一个连接。第一次握手:建立连接时,客户端发送syn包(syn=j)到服务器,并进入SYN_SEND状态,等待服务器确认;第二次握手:服务器收到syn包,必须确认客户的SYN(ack=j+1),同时自己也发送一个SYN包(syn=k),即SYN+ACK包,此时服务器 进入SYN_RECV状态;第三次握手:客户端收到服务器...
2014-04-01 16:19:00 44
转载 Open multiple excel files in WebBrowser, only the last one gets activated
http://stackoverflow.com/questions/20578053/open-multiple-excel-files-in-webbrowser-only-the-last-one-gets-activated源码位置https://code.google.com/p/form-based-excel-solution/Excel多窗体打开转载于:https:/...
2014-04-01 16:16:00 37
转载 emulator shortcut
Alt+EnterMaximizes the emulator.Ctrl+F11Changes the orientation of the emulator from landscape to portrait and vice versa.F8Turns the network on and off.During the crea...
2014-04-01 15:07:00 44
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人