2013年7月25日

A* pseudocode

摘要: struct node { node *parent; int x, y; float f, g, h;} // A*initialize the open listinitialize the closed listput the starting node on the open list (you can leave its f at zero)while the open list is not empty find the node with the least f on the open list, call it "q" pop q off the ... 阅读全文

posted @ 2013-07-25 16:30 fishyk 阅读(189) 评论(0) 推荐(0) 编辑

DFS ,BFS Pseudocode

摘要: // Simple dfsfunction dfs(node position) color(position) for each successor adjacent to node "position" if successor is colored, skip it if next is the goal node, stop the search else, dfs(successor) endend// Simple bfsstructure node position pos node *parentendfu... 阅读全文

posted @ 2013-07-25 14:52 fishyk 阅读(356) 评论(0) 推荐(0) 编辑

2013年4月22日

android service and bind service

摘要: View Code package com.example.servicedemo;import android.app.Activity;import android.content.ComponentName;import android.content.Context;import andro... 阅读全文

posted @ 2013-04-22 12:17 fishyk 阅读(113) 评论(0) 推荐(0) 编辑

2013年4月12日

default.js 下的 setPromise(WinJS.UI.processAll());

摘要: IfRatingwere a standard HTML control, you could add your event handler after this call toWinJS.UI.processAll. But it's a little more complicated for a... 阅读全文

posted @ 2013-04-12 16:05 fishyk 阅读(112) 评论(0) 推荐(0) 编辑

负载均衡配置

摘要: 网络负载均衡的实现过程在Windows Server 2003中,网络负载均衡的应用程序包括Internet信息服务(IIS)、ISA Server 2000防火墙与代理服务器、VPN虚拟专用网、终端服务器、Windows Media Services(Windows视频点播、视频广播)等服务。同时... 阅读全文

posted @ 2013-04-12 14:44 fishyk 阅读(136) 评论(0) 推荐(0) 编辑

2013年4月7日

选择排序

摘要: int[] array = { 5,4,3,1,2};//1 4 3 2 5//1 2 3 4 5 for (int i = 0; i < array.Length; i++) { int min =... 阅读全文

posted @ 2013-04-07 00:07 fishyk 阅读(69) 评论(0) 推荐(0) 编辑

插入排序

摘要: static void Main(string[] args) { Random rand = new Random(); int[] array = { 5, 2, 4, 6, 1, 3 }; for (int i ... 阅读全文

posted @ 2013-04-07 00:04 fishyk 阅读(87) 评论(0) 推荐(0) 编辑

2013年4月3日

uitableview 禁止滑动 和 选择行不高亮

摘要: 禁止高亮:cell.selectionStyle =UITableViewCellSelectionStyleNone;or[cell setSelectionStyle:UITableViewCellSelectionStyleNone];禁止滑动:tableView.scrollEnabled = NO; 阅读全文

posted @ 2013-04-03 15:35 fishyk 阅读(478) 评论(0) 推荐(0) 编辑

2013年4月2日

获取请求的controller,action的名称,以及parameter的值

摘要: 获取控制器名称:ViewContext.RouteData.Values["controller"].ToString();获取Action名称:ViewContext.RouteData.Values["action"].ToString();获取路由参数值:ViewContext.RouteData.Values[名称].ToString();如:ViewContext.RouteData.Values["ID"].ToString(); 获取ID的值 阅读全文

posted @ 2013-04-02 21:55 fishyk 阅读(187) 评论(0) 推荐(0) 编辑

2013年4月1日

XMLHttpRequest with progress

摘要: 阅读全文

posted @ 2013-04-01 17:01 fishyk 阅读(110) 评论(0) 推荐(0) 编辑

导航