上一页 1 ··· 164 165 166 167 168 169 170 171 172 ··· 300 下一页
2013年8月27日

ASP.NET 联想控件(Autocomplete)测试可用 ascx

摘要: 效果图前台"> " class="gray ac_result_tip">请输入中文/拼音或者↑↓选择 "> 后台using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;namespace Uni2Uni.ERP.Web.Main.UI.SCMWM.UserControl{ public partial class Au 阅读全文
posted @ 2013-08-27 17:51 you Richer 阅读(351) 评论(0) 推荐(0)

python手记(48)

摘要: #!/usr/bin/env python # -*- coding: utf-8 -*-#http://blog.csdn.net/myhaspl #code:myhaspl@qq.com import waveimport pylab as plimport numpy as npimport copyprint 'http://blog.csdn.net/myhaspl' print 'myhaspl@qq.com' print print 'working...' print "read wav data...."# 阅读全文
posted @ 2013-08-27 17:49 you Richer 阅读(298) 评论(0) 推荐(0)

[Android]解决3gwap联网失败:联网请求在设置代理与直连两种方式的切换

摘要: [Android]解决3gwap联网失败:联网请求在设置代理与直连两种方式的切换 问题现象: 碰到一个问题,UI交互表现为:联通号码在3gwap网络环境下资源一直无法下载成功。 查看Log日志,打印出的信息为:ConnectTimeoutException: Connect to /10.0.0.172:80 timed out 则问题原因是:在使用了移动网关代理后出现超时,仍无法正确联网。 解决办法: 经观察,在同样的网络环境下,发现AIO缩略图片能正常接收,跟踪其代码发现该AIO缩略图在使用移动网络联网的步骤如下(感谢issaczhang): a. 首先判断网络环境,在... 阅读全文
posted @ 2013-08-27 17:46 you Richer 阅读(779) 评论(0) 推荐(0)
2013年8月26日

ASP.NET程序发布流程

摘要: 1.在要发布的项目上 右键->发布,如下图所示“目标位置”选择要发布到的本地目录,点击“发布”2.打开IIS,在右键“网站”,选择“添加网站”,出现如下所示的对话框在“网站名称”处添加一个名字,本文为“test",“物理路径”选择刚刚发布的路径,选择本机的IP地址,点击确定按钮,大功告成,网站列表里会出现名为”test"的网站。 阅读全文
posted @ 2013-08-26 20:43 you Richer 阅读(184) 评论(0) 推荐(0)

Android在子线程中更新UI(二)

摘要: MainActivity如下:package cc.testui2;import android.os.Bundle;import android.view.View;import android.view.View.OnClickListener;import android.widget.Button;import android.widget.TextView;import android.app.Activity;/** * Demo描述: * 在子线程中更改UI的方式二 * * 在子线程中采用View的post()方法. * 依据源码可知它在最终还是调用了handler的post(. 阅读全文
posted @ 2013-08-26 20:41 you Richer 阅读(211) 评论(0) 推荐(0)

openjpa框架入门_Demo概览(一)

摘要: 我个人所了解并学习的openjpa日志(一) 最近一直研究openjpa,想把自己所了解的写成日志,和大家一起学习,一起进步.整个过程,会有一个完整的经过改造过openbook demo可运行.Openjpa2.2+Mysql+Maven+Servlet+JSP 首先来将demo运行起来: 效果图如下 后续,我会慢慢讲述怎样运行经过改造过的openbook project. 阅读全文
posted @ 2013-08-26 20:38 you Richer 阅读(205) 评论(0) 推荐(0)

递归和非递归实现链表反转

摘要: 链表反转是面试笔试常考题目,直接贴代码。反转函数如下://思路为将节点从前到后依次放到表头,最后最后的节点到了最前面,最前面的节点到了最后面ListNode * ReverseList(ListNode * head){ //如果链表为空或者链表中只有一个元素 if(head==NULL || head->m_pNext==NULL) return head; ListNode * p=head->m_pNext; ListNode * q=head; while(p!=NULL) { q->m_pNext=p->m_pNext;//记录下p的下一个节点... 阅读全文
posted @ 2013-08-26 20:36 you Richer 阅读(236) 评论(0) 推荐(0)

Android在子线程中更新UI(一)

摘要: MainActivity如下:package cc.testui1;import android.os.Bundle;import android.os.Handler;import android.view.View;import android.view.View.OnClickListener;import android.widget.Button;import android.widget.TextView;import android.app.Activity;/** * Demo描述: * 在子线程中更改UI的方式一 * * 在子线程中利用主线程的Handler的post()方. 阅读全文
posted @ 2013-08-26 20:34 you Richer 阅读(313) 评论(0) 推荐(0)

HDU 1226 超级密码 (搜素)

摘要: 题目地址:http://acm.hdu.edu.cn/showproblem.php?pid=1226 题意简单,本来是一道很简单的搜素题目。但是有两个bug:1、M个整数可能有重复的。2、N可能为0。你说这两个bug有意思么,特别是第二个,真没意思。 AC代码::#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #pragma commen 阅读全文
posted @ 2013-08-26 20:29 you Richer 阅读(224) 评论(0) 推荐(0)

Android 调用已安装市场,进行软件评分的功能实现

摘要: 项目中要有一个给软件评分的功能,一个很常见,很简单的功能,却费了我不小功夫。需要实现的效果如下: 本来以为一般的软件都会有“去评分”、“亲,给个好评”这样的功能,但是在网上搜了搜竟没有搜到,问了三个群外加5个童鞋,分析log,反编译看源码,终于找到了这个uri,获取他真不容易啊。 Uri uri = Uri.parse("market://details?id="+getPackageName()); Intent intent = new Intent(Intent.ACTION_VIEW,uri); intent.addFlags(Intent.FLAG_ACTIVIT 阅读全文
posted @ 2013-08-26 20:27 you Richer 阅读(277) 评论(0) 推荐(0)
上一页 1 ··· 164 165 166 167 168 169 170 171 172 ··· 300 下一页