自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

星马殇

朝着自己的选择,风雨无阻

  • 博客(2)
  • 资源 (10)
  • 收藏
  • 关注

原创 phpstorm两个注册码

用户名:EMBRACE注册码:===== LICENSE BEGIN =====43136-1204201000002UsvSON704l"dILe1PVx3y4"B349AU6oSDJrsjE8nMOQh"8HTDJHIUUhgd1BebYc5U"6OxDbVsALB4Eb10PW8"===== LICENSE END =====用户名:EMBRACE注册码:

2015-09-17 18:19:31 602

原创 已阻止跨源请求:同源策略禁止读取位于

解决方法--由于我的是PHP项目,在第二个页面/方法中,就是被请求的方法加入如下代码:Header("Access-Control-Allow-Origin: * ");Header("Access-Control-Allow-Methods: POST, GET, OPTIONS, PUT, DELETE");再试就OK了第一个页面用 ajax 同一网段内请求第二个页面时,200成功了,但浏览器...

2015-09-17 17:14:44 34829

ios 生成二维码图片libqrencode

导入 libqrencode文件,很小的 添加 #import "QRCodeGenerator.h" @property (strong , nonatomic) UIImageView* qRImageView; - (void)viewDidLoad { [super viewDidLoad]; self.qRImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 320, 400)]; [self.view addSubview:self.qRImageView]; } -(IBAction)qrBtnPress:(id)sender { self.qRImageView.image = [QRCodeGenerator qrImageForString:@"二维码存储的字符串信息 asddsdd" imageSize:self.qRImageView.bounds.size.width]; }

2015-07-10

全国省市县plist xml

//附上一段object-c解析代码 NSArray *ary = [NSArray arrayWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"ProvinceCityDistrict" ofType:@"plist"]]; for (int i = 0; i < ary.count; i ++) { NSDictionary *province = ary[i]; for(NSString *akey in province){ NSLog(@"%@",akey); NSDictionary *p0 = province[akey]; [mProvinceAry addObject:akey]; for(NSString *city in p0){ NSDictionary *citys = p0[city]; for(NSString *shen in citys){ NSLog(@"%@",shen); NSMutableArray *xians = citys[shen]; for (int y = 0; y < xians.count; y++) { NSLog(@"%@",xians[y]); } } } } }

2015-06-12

jquery 实现下拉选择框方便好看的选择样式

jquery 实现下拉选择框方便好看的选择样式

2013-08-06

java Access jdbc

java 使用 jdbc 连接 Access 数据库 ,空间里还有两种测试代码jdbc odbc

2012-12-18

java操作excel的jar文件

java操作excel的jar文件,包括创建excel,读取excel

2012-08-09

创建或读取Excel表

public static int createdExcel(String PATH, List list, String title, String[] rowsName, String merged) { try { File myFile = new File&#40;PATH&#41;; if (!myFile.exists()) { myFile.createNewFile&#40;&#41;; } WritableWorkbook wbook = Workbook.createWorkbook(myFile); // 创建一个可写返回工作薄同给定文件名 WritableSheet wsheet = wbook.createSheet(title, 0); // sheet名称 // 设置字体 WritableFont wfont = new WritableFont(WritableFont.createFont("宋体"), 10, WritableFont.BOLD); WritableCellFormat wcfFC = new WritableCellFormat(wfont); wcfFC.setBorder(jxl.format.Border.ALL, jxl.format.BorderLineStyle.THIN); //单元格边缘线格式设置 wcfFC.setAlignment(jxl.format.Alignment.CENTRE); // 居中对齐 wcfFC.setVerticalAlignment(jxl.format.VerticalAlignment.CENTRE); //垂直居中 //wcfFC.setBackground(jxl.format.Colour.BLUE); // 蓝色底 // 设置行高和列宽 //wsheet.setColumnView(列数, 列宽); //wsheet.setRowView(行数, 行高); // 开始生成主体内容 for (int i = 0 ; i < rowsName.length; i++) { wsheet.addCell(new Label(i, 0, rowsName[i], wcfFC)); wsheet.setColumnView(i, 12); } wfont = new WritableFont(WritableFont.createFont("宋体"), 10, WritableFont.NO_BOLD); wcfFC = new WritableCellFormat(wfont); wcfFC.setBorder(jxl.format.Border.ALL, jxl.format.BorderLineStyle.THIN); //单元格边缘线格式设置 //是数字时的格式化 // jxl.write.NumberFormat numberFormat = new jxl.write.NumberFormat(NumberFormat.CURRENCY_DOLLAR); // jxl.write.WritableCellFormat wcfFCNUMBER = new jxl.write.WritableCellFormat(wfont,numberFormat); // wcfFCNUMBER.setBorder(jxl.format.Border.ALL, jxl.format.BorderLineStyle.THIN); //单元格边缘线格式设置 // wcfFCNUMBER.setAlignment(jxl.format.Alignment.CENTRE); // 居中对齐 // wcfFCNUMBER.setVerticalAlignment(jxl.format.VerticalAlignment.CENTRE); //垂直居中 //是数字时的格式化 wcfFC.setWrap(true); //合并单元格操作 //wsheet.mergeCells(坐标列1, 坐标行1, 坐标列2, 坐标行2) for (int i = 0; i < list.size(); i++) { String[] args = (String[]) list.get(i); for (int j = 0; j < args.length; j ++) { if (args[j].length()<15 ) { wsheet.addCell(new jxl.write.Number(j, i+1, Float.parseFloat(args[j]), wcfFC)); } else { wsheet.addCell(new Label(j, i+1, args[j], wcfFC)); } } if (merged.indexOf("," + (i+1) + ",") >=0) { wsheet.mergeCells(0, i+1, args.length-1, i+1); wsheet.setRowView(i, 1000); } //打印分页符 if (i % 20 == 0) { //wsheet.addRowPageBreak(i); } } // 主体内容生成结束 wbook.write(); // 写入文件 wbook.close(); return 1; } catch (Exception ex) { ex.printStackTrace(); return 0; } }

2012-08-07

java知识赛ppt 骑士飞行棋ppt 我行我素购物管理系统

java知识赛ppt 骑士飞行棋ppt 我行我素购物管理系统 都是些基础的东西,希望可以帮到刚学习java的同道

2012-04-06

lucene 入门

这里包含lucene的 jar包 ,API帮助文档CHM格式 ,还有一小段入门代码

2012-03-14

jar文件阅读器

这个小软件无需安装,解压后就可以直接打开jar文件,非常方便

2012-03-13

SVN教程 SVN与myeclipse整合

SVN教程 SVN与myeclipse整合指导

2012-03-06

空空如也

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

TA关注的人

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