;8086的写法 data segment tab db 'Hello World$' data ends code segment assume cs:code,ds:data start: mov ax,data mov ds,ax lea dx,tab mov ah,9h int 21h m.... ...
分类:
编程语言 时间:
2016-06-15 10:35:29
阅读次数:
157
eclipse 默认设置的换行长度为80, 格式化代码后,同一个方法里面参数也经常被,换行,非常难看 1.Java代码打开Eclipse的Window菜单,然后 Preferences->Java->Code Style->Formatter->Edit ->Line Wrapping->Maxim ...
分类:
系统相关 时间:
2016-06-15 10:33:50
阅读次数:
167
Greedy using priority_queue and hashmap. The basic idea is to have k buckets - and we fill it greedily. And I agree that the code below can be cleaner ...
分类:
其他好文 时间:
2016-06-15 08:01:01
阅读次数:
249
前面几节,使用的都是通过EF Code First创建的新数据库,接下来,将开始使用已存在的数据库。 1、使用配置文件设置数据库连接 App.config 数据库连接字符串的name与Data中NorthwindContext.cs类名相同 <?xml version="1.0" encoding= ...
分类:
数据库 时间:
2016-06-15 01:34:27
阅读次数:
234
EF Code First数据库映射规则主要包括以下方面: 1、表名及所有者映射 Data Annotation: 指定表名 1 using System.ComponentModel.DataAnnotations;2 3 [Table("Product")]4 public class Prod ...
分类:
数据库 时间:
2016-06-15 01:32:38
阅读次数:
354
1、一对多关系 关系表: Category 分类表 Product 产品表 分类与产品之间的一对多关系 1>、产品实体类不指定外键属性 Domain中类定义: Category.cs 1 using System; 2 using System.Collections.Generic; 3 usin ...
分类:
其他好文 时间:
2016-06-15 01:30:06
阅读次数:
151
media-queries.js(http://code.google.com/p/css3-mediaqueries-js/) respond.js(https://github.com/scottjehl/Respond) <!—[if lt IE9]> <scriptsrc=http://cs ...
分类:
Web程序 时间:
2016-06-14 23:53:52
阅读次数:
214
首先启动.NET Reflector,然后添加进入dll或exe。然后选择Export Source Code...,将反编译后的代码文件,生成到指定目录。 到这一步骤时,稍等一会,就能够在指定目录就能够看到反编译出来的项目文件了 如果此时你注意的话,发现我们反编译出来的代码是没有.sln文件的。 ...
分类:
Web程序 时间:
2016-06-14 23:50:18
阅读次数:
469
tesseract-ocr 第一课 前言 据网上介绍tesseract-ocr性能不错,并且可以支持识别中文了。于是尝试一下. 安装 1.下载地址: https://code.google.com/p/tesseract-ocr/downloads/list 1.介绍 论文地址:http://tes ...
分类:
其他好文 时间:
2016-06-14 22:19:27
阅读次数:
530
Eclipse Code Template 设置自动加注释 设置注释模板的入口: Window->Preference->Java->Code Style->Code Template 然后展开Comments节点就是所有需设置注释的元素啦。现就每一个元素逐一介绍: 文件(Files)注释标签: / ...
分类:
系统相关 时间:
2016-06-14 17:41:48
阅读次数:
327