码迷,mamicode.com
首页 > 其他好文
Leetcode Largest Rectangle in Histogram
Givennnon-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the histog...
分类:其他好文   时间:2014-06-27 23:01:16    阅读次数:259
[leetcode] Minimum Path Sum
Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path.
分类:其他好文   时间:2014-06-27 23:02:33    阅读次数:258
(c#2.0)serialPort串口通讯
原文:(c#2.0)serialPort串口通讯using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Data.SqlClient;using ...
分类:其他好文   时间:2014-06-27 23:04:27    阅读次数:292
点击按钮显示谷歌地图
原文:点击按钮显示谷歌地图 --%> --%>
分类:其他好文   时间:2014-06-27 23:03:45    阅读次数:255
模板方法
模板方法定义: 定义一个算法框架,将算法框架的具体实现步骤放到子类去实现,从而达到可以多样化实现过程的目的.抽象父类:'public abstract class AbstractClass { protected abstract void doSomething1(); protected ab...
分类:其他好文   时间:2014-06-27 23:05:55    阅读次数:204
消息中间件的集群技术
消息中间件的集群技术
分类:其他好文   时间:2014-06-27 23:07:21    阅读次数:246
C# 程序自动批量生成 google maps 的KML文件
原文:C# 程序自动批量生成 google maps 的KML文件google maps 的 KML 文件可以用于静态的地图标注,在某些应用中,我们手上往往有成百上千个地址,我们需要把这些地址和描述批量标注到 google maps 上去,如果手工来做,太耗时间,在这里我写了一个程序批量来生成这个 ...
分类:其他好文   时间:2014-06-27 23:11:15    阅读次数:181
【LeetCode】 Maximum Depth of Binary Tree
Maximum Depth of Binary TreeGiven a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root ...
分类:其他好文   时间:2014-06-27 23:13:24    阅读次数:218
【设计模式】——原型模式
原型模式(Prototype),用原型实例指定创建对象的种类,并且通过拷贝这些原型创建新的对象。 下图是原型模式的结构图:原型模型其实就是一个对象再创建另外一个可定制的对象,而且不需任何创建的细节,我们来看看基本的原型模式代码。//原型类class Prototype{private: st...
分类:其他好文   时间:2014-06-27 23:15:13    阅读次数:298
dede 后台登录以后一片空白
网上说的是找到:include/common.inc.php文件,打开,查找程序代码: //error_reporting(E_ALL); error_reporting(E_ALL || ~E_NOTICE); 替换为: error_reporting(E_ALL); //error_r...
分类:其他好文   时间:2014-06-27 23:15:54    阅读次数:162
AIDL原理之 Framewok层实现
AIDLFramework层的架构,如下图: 换而言之,Android就是在传统的C/S架构中加入了一层,实现IPC。图中表明,AIDL类似COM的Proxy/Stub架构。不过是现在android自己的序列化类Pacel。 打个比方,你到自动取款机上去取款;你就是客户,取款机就是你的代理;...
分类:其他好文   时间:2014-06-27 23:16:38    阅读次数:334
项目设计之----命令模式的利用
先看图上面的设计利用命令模式实现对任务的创建,可以解耦,解耦后方便的新增任务,和管理任务(取消任务等操作)更遵循开闭原则任务对象Task是命令父类,其LoginTask等子类是具体命令 任务调用者TaskInvoker是服务员,网站Site是执行者,即任务调用者利用任务来命令网站去执行某些任务,比如...
分类:其他好文   时间:2014-06-27 23:17:23    阅读次数:270
项目设计之一------简单工厂模式利用
简单工厂模式可以结合反射进行实现,这样的解耦更好
分类:其他好文   时间:2014-06-27 23:18:04    阅读次数:170
AJAX异步提交,浏览器总跳出下载界面
问题: 我在写一个网页的“用户登录”部分时,要将用户名和密码传到后端验证,想在前端用了AJAX异步提交功能,将用户名密码传到后端,然后后端返回验证结果。但AJAX写好后每次刷新网页都会跳出下载窗口,起初以为是AJAX传输的数据格式出了问题,导致浏览器误以为后台传来的数据是下载内容(这么猜测的),于....
分类:其他好文   时间:2014-06-27 23:19:25    阅读次数:187
.svc处理程序映射缺失导致的WCF RIA Services异常
在确定代码、编译结果和数据库都正常的情况下,无法从数据库取到数据。错误提示:Sysyem.Net.WebException:远程服务器返回了错误:NotFound,监听发现请求数据库的服务异常,访问相关地址HTTP404错误。 向数据库发起的请求异常 访问svc地址后的错误信息 ...
分类:其他好文   时间:2014-06-28 09:29:08    阅读次数:159
[NOI2010]超级钢琴 划分树+堆
#include#include#include#include#includeusing namespace std;#define N 510000struct P{ int x,y; P(int a=0,int b=0){x=a,y=b;} bool operator=k)retu...
分类:其他好文   时间:2014-06-28 09:30:59    阅读次数:148
poj 3264 Balanced Lineup
DescriptionFor the daily milking, Farmer John'sNcows (1 ≤N≤ 50,000) always line up in the same order. One day Farmer John decides to organize a game o...
分类:其他好文   时间:2014-06-28 09:32:17    阅读次数:200
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!