自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

有酒有故事

淇水汤汤 浚水沧沧 回首北顾 思我故乡

  • 博客(25)
  • 收藏
  • 关注

转载 idea mybatis generator

http://blog.csdn.net/sunny243788557/article/details/45166397

2017-05-26 17:25:37 267

转载 idea maven spring mvc mybatis

http://blog.csdn.net/gallenzhang/article/details/51932152

2017-05-26 17:24:00 240

原创 SVN导下来Maven工程就报错 org.apache.ibatis.binding.BindingException

很有可能是没有生产对应的xml文件,因为maven默认是不编译的, 在你的pom.xml的里面,加这么一段:<resources> <resource> <directory>src/main/java</directory> <includes> <include>**/*.xml</include>

2017-05-26 16:46:06 474

原创 启动tomcat时 错误: 代理抛出异常 : java.rmi.server.ExportException: Port already in use: 1099的解决办法

window :终端 netstat -aon|findstr 1099 找出占用1099端口的进程 taskkill -f -pid 111(进程号) mac:终端 Mac -mini:bin zlinsunsudolsof−i:1099COMMANDPIDUSERFDTYPEDEVICESIZE/OFFNODENAMEjava1527zlinsun31uIPv60xbd669f146eb

2017-05-26 16:40:54 1531

原创 二进制编码 小记

byte 范围 -128~~~127(16进制)0xFF =(二进制) 1111 1111 = (int)256 解为: 首一位为符号位 - 整体取反码 0000 0000 加1 为0000 0001 为1 加上符号为 (byte) -1例如 (16进制)0x7F =(二进制) 0111 1111 = (int)127 解为: 首一位为符号位 + 正的补码,反码均为自己 1

2017-05-26 15:22:17 829

原创 ibatis.binding.BindingException

org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.komlin.modular.material.mapper.MeterailInfoMapper.selectByPrimaryKey at org.apache.ibatis.binding.MapperMethodS

2017-05-24 16:05:56 445

原创 django 第一个demo网站

model.py 创建modelfrom django.db import modelsfrom django.utils import timezone# Create your models here.class Post(models.Model): title = models.CharField(max_length= 200) subTitle = models

2017-05-21 16:17:00 986

原创 pycharm django 初探

首先安装python 然后 安装easy_install 然后 安装pip用 pip安装 djangopip install djangowindows下注意配置环境变量 或者在 D:\python\Scripts 下操作pip一次不成功 再试一次 Windows下配置环境变量 D:\python\Lib\site-packages\django\bin在你的工程目录下执行djang

2017-05-21 16:05:56 687

原创 我的第一只小爬虫

spider.pyimport scrapyfrom meinv.items import MeinvItemclass MyScrapy (scrapy.Spider): name = "my" allowed_domains = ["moko.cc"] start_urls = [ "http://www.moko.cc/post/aaronsky

2017-05-18 17:37:59 366

原创 Mac 下安装scrapy

sudo pip install scrapy 若上面不行 sudo pip install scrapy –ignore-installed six

2017-05-18 13:09:49 316

原创 MAC 为python3安装 beautifulsoup4

先装pip (终端)输入命令:sudo easy_install pip安bs4 输入命令:pip install beautifulsoup4出现错误 OSError: [Errno 13] Permission denied:输入命令:sudo easy_install beautifulsoup4这时把bs装到了Mac系统自带了Python2.7把beautifulsoup4装到Python

2017-05-15 15:51:56 9898 2

原创 pycharm注册

获得可从http://idea.lanyus.com得 server选项里边输入 http://elporfirio.com:1017/ 或http://idea.imsxm.com/

2017-05-15 09:48:32 500

转载 iOS 推送

http://blog.csdn.net/yidu_blog/article/details/51538730

2017-05-12 17:10:31 300

原创 Timer 在异步子线程 要放到 Runloop里才能使用

let thread1 = Thread(target: self, selector: #selector(ViewController.display), object: nil) thread1.name = "thread1" thread1.start()display 方法中 timer这么写 func display(){ let

2017-05-12 16:53:19 854

原创 ios 异步线程 NSLock 小结

oc 1 dispatch_queue_t q =dispatch_queue_create("thread-one",DISPATCH_QUEUE_SERIAL) ; dispatch_async(q, ^{ //to do }); // 获取 名字的方法 // NSLog(@"%s", dispatch_queue_get_labe

2017-05-12 16:43:27 695

原创 IOS 静态(常/变)量的 初始化方法

static const NSObject * o ;static int a = 10;static const int b = 20;static NSString * str = @"";+(void)initialize{ if(self!= [XXXXX class]) return; o = [[NSObject alloc]init]; a =

2017-05-12 12:09:59 645

原创 JAVA 自定义注解 小例

定义Retention(RetentionPolicy.RUNTIME) // 注解会在class字节码文件中存在,在运行时可以通过反射获取到@Target({ElementType.FIELD})//定义注解的作用目标**作用范围字段、枚举的常量/方法@Documented//说明该注解将被包含在javadoc中@interface IsShow {}作用域的类型有ElementType

2017-05-11 19:35:50 222

原创 ios 延迟的几种方法

1 dispatch_time_t delayTime = dispatch_time(DISPATCH_TIME_NOW, (int64_t)(2.0/延迟执行时间/ * NSEC_PER_SEC));dispatch_after(delayTime, dispatch_get_main_queue(), ^{ // to do }); 2 [self performSelector

2017-05-11 19:20:17 375

原创 ios 创建二值化 灰度图

+ (UIImage*) imageToTransparent:(UIImage*) image{ // 分配内存 const int imageWidth = image.size.width; const int imageHeight = image.size.height; size_t bytesPerRow = imageWidth * 4; /

2017-05-11 19:09:01 1271

原创 android 灰度图 黑白图

/** * 转为二值图像 * * @param bmp * 原图bitmap * @return */ public static Bitmap convertToBMW(Bitmap bmp) { int width = bmp.getWidth(); // 获取位图的宽 int

2017-05-11 18:52:01 1213

原创 android 用原生的人脸检测 检测图片

public class MyFaceView extends View { private int imageWidth, imageHeight; private int numberOfFace = 6 ; //最大检测的人脸数 private FaceDetector myFaceDetect; //人脸识别类的实例 private FaceDe

2017-05-11 16:47:15 2093 1

原创 ImageView 图片布局初探

<ImageView android:id="@+id/img" android:layout_width="match_parent" android:layout_height="wrap_content" android:src ="@drawable/timg2" android:scaleType="centerCrop" androi

2017-05-11 16:35:45 429

原创 android 图片 旋转全屏 半屏

activity FloatingActionButton fab = (FloatingActionButton)findViewById(R.id.fab); fab.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View

2017-05-11 15:54:25 816

原创 iOS uiview 旋转

CGAffineTransform transform = CGAffineTransformMakeRotation(90 * M_PI/180.0); [play setTransform:transform]; CGRect rect = play.frame; CGPoint center = play.center; play.frame = CGRect

2017-05-11 15:50:02 898

原创 IOS项目打包除去NSLog

#ifdef DEBUG#define NSLog(...) NSLog(__VA_ARGS__)#else#define NSLog(...)#endifEdit Scheme –>info—> Building Config ->release/debug 选择 release 时 (包括运行)所有的输出都不见了Assert 断言Android & Ios(swift/oc)断言都是

2017-05-11 10:35:51 1104

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除