码迷,mamicode.com
首页 > 其他好文
A generic error occurred in GDI+的解决方案
转自智慧光原文A generic error occurred in GDI+. 解决方法 使用image1.RotateFlip(RotateFlipType.Rotate90FlipNone)方法时候,出现错误: An unhandled exception of type 'System.Ru ...
分类:其他好文   时间:2017-01-12 13:21:52    阅读次数:338
BZOJ 3091: 城市旅行 [LCT splay 期望]
3091: 城市旅行 Description Input Output Sample Input 4 5 1 3 2 5 1 2 1 3 2 4 4 2 4 1 2 4 2 3 4 3 1 4 1 4 1 4 Sample Output 16/3 6/1 HINT 对于所有数据满足 1<=N<=50 ...
分类:其他好文   时间:2017-01-12 13:21:22    阅读次数:382
Codeforces Round #390 (Div. 2) A B C D
这是一场比较难的div2 ... 比赛的时候只出了AB A很有意思 给出n个数 要求随意的把相邻的数合并成任意多数 最后没有为0的数 输出合并区间个数与区间 可以想到0可以合到任何数上并不改变该数的性质 所以如果不全是0 最后一定是有答案的 把所有的0都合并到最近的非0数上去 非0数不变 B很无聊. ...
分类:其他好文   时间:2017-01-12 13:19:55    阅读次数:252
447. 求回旋镖坐标的数量 NumberOfBoomerangs
Given n points in the plane that are all pairwise distinct, a "boomerang" is a tuple of points (i, j, k) such that the distance between iand j equals ... ...
分类:其他好文   时间:2017-01-12 13:17:30    阅读次数:140
ftp不能登录报错
虚拟机装好RedHat后,准备使用filezilla连接,输入IP地址,root用户,密码,快速连接,报错: 530 Permission denied。 故障排除: 1.首先检查系统是否开启了vsftp服务,如果没有开启,先开启该服务。 2.查看配置 vsftpd的配置,配置文件中限定了vsftp ...
分类:其他好文   时间:2017-01-12 13:16:35    阅读次数:140
CentOS 7.2更改网卡名称
背景 没啥背景,就是VMWare装的CentOS虚拟机的自带网卡名有点乱,想重新定义一下。 环境 1、VMWare虚拟机 6张网卡 2、系统 并且是最小化安装。 网卡信息 网卡配置文件 配置内容 这里启动下网卡,获得IP,好连接shell 默认使用DHCP,都是自动获取的IP 配置 CentOS7使 ...
分类:其他好文   时间:2017-01-12 13:14:17    阅读次数:506
模拟Vue之数据驱动4
在"模拟Vue之数据驱动3"中,我们实现了为每个对象扩展一个$set方法,用于新增属性使用,这样就可以监听新增的属性了。当然,数组也是对象,也可以通过$set方法实现新增属性。 但是,对于数组而言,通常我们是通过push之类的方法吧。下面,我们就一起来实现这些Array的变异方法吧。 ...
分类:其他好文   时间:2017-01-12 13:14:31    阅读次数:161
nginx(2)
nginx(2)配置 精准匹配 访问的是第一个 正则匹配 他会跳到192.168.28.129/image/xx.jpg去找,而不会找不到 ...
分类:其他好文   时间:2017-01-12 13:12:49    阅读次数:152
求GC含量
代码如下: ...
分类:其他好文   时间:2017-01-12 13:13:15    阅读次数:191
ftp_get_file_and_directory
show ftp return list in serv-u and iis server, how to get directory and files, then download it. ...
分类:其他好文   时间:2017-01-12 13:10:21    阅读次数:316
图片处理
#region 图片处理 /// /// 生成缩略图重载方法1,返回缩略图的Image对象 /// /// 缩略图的宽度 /// 缩略图的高度 /// 缩略图的Image对象 public Image GetReducedImage(int Width, int He... ...
分类:其他好文   时间:2017-01-12 13:08:09    阅读次数:160
Solr常用命令总结
前提条件: 安装solr版本:4.8.0 部署solr路径:/data/solr-4.8.0 1. 通过zookeeper上传一些配置信息: 通过zk命令将配置信息上传到zk环境中 /data/solr-4.8.0/node/scripts/cloud-scripts/zkcli.sh -zkhos ...
分类:其他好文   时间:2017-01-12 13:09:14    阅读次数:294
数据结构——单链表的实现
简单实现了单链表的功能,在查找、求前驱、插入、删除方法中判断了越界问题,并没有考虑其他可能产生的错误。 不积跬步,无以至千里;不积小流,无以成江海。坚持着。 ...
分类:其他好文   时间:2017-01-12 13:08:13    阅读次数:201
cocos2d-x中关于打包成APK的问题
转载自:http://blog.csdn.net/u013315178/article/details/51254630 之前在网上看了很多的帖子大多数用ide 来打包 太麻烦了 而且一般没有人现场指点都不知道在说什么 遇到版本有问题的IDE 还会出现不兼容的现象 新手很容易懵逼 那么下面我就用最直 ...
分类:其他好文   时间:2017-01-12 13:05:09    阅读次数:185
hdu1014
#include <stdio.h> int gcd(int a, int b){ int t; while(t=a%b) { a=b; b=t; } return b;} int main(void){ int s,m,i; while(scanf("%d %d", &s, &m)!=EOF) { ...
分类:其他好文   时间:2017-01-12 13:06:06    阅读次数:170
[LeetCode] Number Complement 补数
Given a positive integer, output its complement number. The complement strategy is to flip the bits of its binary representation. Note: The given inte ...
分类:其他好文   时间:2017-01-12 13:04:36    阅读次数:239
学习笔记之工厂模式-2017年1月11日23:00:53
当做日记流水来写吧。 今天看的工厂模式和抽象工厂。 设计原则: 依赖倒置原则:不依赖具体类,依赖抽象。 工厂方法模式:定义了一个创建对象的接口,但由子类来决定要实例化的类是哪一个。工厂方法让类吧实例化推迟到子类。NYPizzaStore继承自-》PizzaStore。中有一个CreatPizza() ...
分类:其他好文   时间:2017-01-12 13:03:45    阅读次数:106
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!