最近好多朋友说adb 不支持发送中文的短信,也不知道为啥要用adb 来发送短信,昨天想到这个问题,所以修改了一下自己的adb,支持发送中文的短信了。
adb shell am start -a android.intent.action.SENDTO -d sms:10086 --es sms_body 中文
下载地址:
http://bcs.duapp.com/myandroi...
分类:
数据库 时间:
2014-06-03 04:04:20
阅读次数:
488
asp.net mvc的action返回值为HttpStatusCodeResult时的customErrors总是不起作用的解决办法...
分类:
其他好文 时间:
2014-06-03 00:50:29
阅读次数:
241
相同的功能:在Action里面实现调用Redis服务端的时间戳,然后转成“yyyy-MM-dd
HH:mm:ss”格式的字符串,显示在界面上,显示结果是一样的:下面分别贴上用ab压的结果:先是MVC4:然后是minihttp的:MVC4每秒处理3351次,minihttp每秒处理4760次。
分类:
Web程序 时间:
2014-06-02 22:26:38
阅读次数:
423
By reducing your bookmarks to show only the
icons, you can access more of them from the Bookmarks bar. This works great for
sites with recognizable fa...
分类:
其他好文 时间:
2014-06-02 17:39:03
阅读次数:
276
添加支持(即jar包)后的步骤为:(1)创建ActionFormLoginForm.javapackagecom.mstf.struts.form;importorg.apache.struts.action.ActionForm;publicclassLoginFormextendsActionForm{Stringusername;Stringpassword;publicStringgetUsername(){returnusername;}publicvoidsetUser..
分类:
其他好文 时间:
2014-06-02 14:48:03
阅读次数:
212
拦截器是AOP中的概念,它本身是一段代码,可以通过定义“织入点”,来指定拦截器的代码在“织入点”的前后执行,从而起到拦截的作用。Struts2的Interceptor,其拦截的对象是Action代码,可以定义在Action代码之前或者之后执行拦截器的代码。
首先,我们将重点讨论一下Struts2中的拦截器的内部结构和执行顺序,并结合源码进行分析。
Interceptor结构
...
分类:
其他好文 时间:
2014-06-01 14:43:20
阅读次数:
355
【题目】
Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the histogram.
Above is a histogram where width of each bar is 1, given height = [2,1,5,6,2,3].
The...
分类:
其他好文 时间:
2014-06-01 10:46:29
阅读次数:
242
今天研究了在Laravel框架中的控制器中添加后台的文件夹.发现了一些小的规律,拿来和大家分享一下吧.
通常情况下,我们是直接在controllers文件夹中添加我们的控制器,然后再routes.php 路由表中寻找相应的控制器和action进行处理.但是现在有个问题,如果我们的前台和后台同在一个项目中,也就是说前台和后台的控制器会在一块.当然不是没有办法进行区分.我们可以在控制器前面加上Fro...
分类:
Web程序 时间:
2014-06-01 10:26:23
阅读次数:
237
1.
格式:
父标签:
描述:
一个必须包含一或一个以上的.如果不包含则不会有Intent被拦截。
参数:
android:name
表示的是action的名称,一些标准的action已经在Intent类中定义了,可以查询Intent的api查看。可以通过 "android.intent.action.*"来进行赋值。比如对于 ACTION_M...
分类:
移动开发 时间:
2014-06-01 06:00:50
阅读次数:
339
我们通过nio学习了Reactor模式,但是在java7中又出现了NIO.2,新的异步框架出来了,在上节中的服务端视线中看不到Reactor的影子了,但是Netty in action中写到:But notice that NIO.2 handles threading and the creation of the so-called event loop for you.所以模式还是没变,只是封装了而已!那让我们来分解下AIO(NIO.2)的封装吧!...
分类:
其他好文 时间:
2014-06-01 01:40:11
阅读次数:
388