自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(113)
  • 资源 (1)
  • 收藏
  • 关注

转载 MIME邮件格式分析及信息提取

https://www.cnblogs.com/huiguniang/p/7149627.html 摘 要 MIME是目前互联网邮件普遍采用的格式标准,本文通过对MIME邮件格式规范的分析和说明,给出了从邮件中提取其所含各种信息的基本方法。 关键词 MIME、邮件、格式、信息提取 MIME,英文全称为“Multipurpose Internet Mail Extensions”,即多用途互联网邮件扩展,是目前互...

2021-01-24 18:39:23 635

转载 OpenCV-Python 霍夫直线检测-HoughLinesP函数参数

OpenCV-Python 霍夫直线检测-HoughLinesP函数参数cv2.HoughLines()函数是在二值图像中查找直线,cv2.HoughLinesP()函数可以查找直线段。cv2.HoughLinesP()函数原型:HoughLinesP(image, rho, theta, threshold, lines=None, minLineLength=None, ma...

2019-07-29 17:29:18 1802

转载 OpenCV---膨胀与腐蚀

转自:https://www.cnblogs.com/ssyfj/p/9276999.htmlOpenCV---膨胀与腐蚀目录膨胀腐蚀一:膨胀实现dilate二:实现腐蚀erode相关知识补充  (一)可以看做膨胀是将白色区域扩大,腐蚀是将黑色区域扩大  (二)可以不进行灰度处理,对彩色图片进行处理  (三)getStructuringElement方法  参数:  返回值:...

2019-07-02 23:06:06 316

转载 Python + opencv 实现图片文字的分割

转自:https://www.cnblogs.com/zxy-joy/p/10687152.html实现步骤:1、通过水平投影对图形进行水平分割,获取每一行的图像;2、通过垂直投影对分割的每一行图像进行垂直分割,最终确定每一个字符的坐标位置,分割出每一个字符;  先简单介绍一下投影法:分别在水平和垂直方向对预处理(二值化)的图像某一种像素进行统计,对于二值化图像非黑即白,我们通过...

2019-07-02 21:53:00 4401 1

转载 使用Tensorflow训练线性回归模型并进行预测

http://bluewhale.cc/2017-08-10/use-tensorflow-to-train-linear-regression-models-and-predict.html#codesyntax_14# -*- coding: utf-8 -*-#导入所需库文件import tensorflow as tfimport numpy as npimport ma...

2019-04-29 11:00:18 1911

转载 NuSoap调用WebService出现乱码的解决办法

$client->soap_defencoding = 'utf-8';   $client->decode_utf8 = false;   $client->xml_encoding = 'utf-8';       https://lhx1026.iteye.com/blog/506092

2019-02-25 13:33:49 230

原创 weex学习第1篇

<template>  <div class="wrapper">        <text class="button" @click="jump">var</text>         <text class="button" @click="jumpsld">sli

2018-07-11 08:46:29 144

转载 蓝牙与外设交互(防丢器)

http://code4app.com/ios/%E8%93%9D%E7%89%99%E4%B8%8E%E5%A4%96%E8%AE%BE%E4%BA%A4%E4%BA%92-%E9%98%B2%E4%B8%A2%E5%99%A8/53858596933bf0b3718b52dc

2014-06-20 13:39:22 1135

转载 Using Swift with Cocoa and Objective-C--互用性-与ObjC API交互

https://developer.apple.com/library/prerelease/ios/documentation/Swift/Conceptual/BuildingCocoaApps/InteractingWithObjective-CAPIs.html#//apple_ref/doc/uid/TP40014216-CH4-XID_26http://www.cocoac

2014-06-11 08:44:44 4450

原创 Drupal7分页

function listx(){            drupal_set_title("回答提问");        $output = "";  $header = array(       '标题',           );        //建立--选择表 并使用分页$query = db_select('node',

2013-09-16 22:43:16 1077

转载 IBM WebSphere MQ几个特性的应用

IBM WebSphere MQ消息中间件有很多的特性和优点,使用IBM WebSphere MQ可以简化和优化消息通讯的应用设计。为了满足用户各种不同的应用的通讯需求,IBM WebSphere MQ采用了大量业界领先的技术,并拥有许多先进的功能,其中很多是其他厂商所无能为力的。将这些技术和功能应用到客户的通讯系统之中,可以简化应用逻辑,优化系统架构,从而提高整个系统的可靠性、可用性和可扩展性。

2013-05-09 22:07:08 1028

原创 iPhone5判断

#define iPhone5 ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(640,1136), [[UIScreen mainScreen] currentMode].size) : NO)

2013-05-08 17:42:35 454

原创 iOS 目录读取

App Path :  NSLog(@"[[NSBundle mainBundle] bundlePath]=%@", [[NSBundlemainBundle] bundlePath] );DocumentDirectory :   NSArray *paths =NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,

2013-05-08 17:25:13 665

转载 linux查看磁盘空间

http://hi.baidu.com/squirrel_/item/6a643ad9cf1c65e955347f5f查看当前目录大小:[[email protected]]# du -sh /var/www  查看指定目录大小:[[email protected]]# du -sh /www/typengine.com 查看当前

2012-10-06 23:51:47 4812

原创 查询tomcat进程

ps -ef |grep tomcat

2012-09-10 11:48:13 746

原创 ios截屏

#import     CGRect screenRect = [[UIScreenmainScreen] bounds];    UIGraphicsBeginImageContext(screenRect.size);    CGContextRef ctx = UIGraphicsGetCurrentContext();    [[UIColor blac

2012-09-07 15:52:02 600

原创 ffmpeg 命令

图片生成movffmpeg -i 1/%d.jpg  -r 5.5   -vcodec mpeg4 1.mov avi 生成jpgffmpeg -i split.avi example.%d.jpghttp://www.codeios.com/thread-9608-1-1.html   iOShttps://github.com/jayrpar

2012-09-07 13:39:43 465

转载 ffmpeg

http://wenku.baidu.com/view/58109f2eb4daa58da0114a30.html

2012-09-07 10:46:01 396

转载 Converting Audio (mp3 etc) files to m4a with AVAssetExportSession

http://unlimapps.com/?p=41

2012-09-06 11:25:33 1368

原创 mp3 iphone

1)    MPMusicPlayerController *myPlayer =    [MPMusicPlayerControllerapplicationMusicPlayer];     [myPlayer setQueueWithQuery: [MPMediaQuerysongsQuery]];    [myPlayer play];    ///////

2012-09-04 12:27:41 710

转载 UILocalNotification

UILocalNotification *notification=[[UILocalNotificationalloc]init];    if (notification!=nil) {        NSLog(@">> support local notification");        NSDate *now=[NSDatenew];        notific

2012-08-29 12:47:55 491

转载 iphone 后台循环播放音乐

http://www.devdiv.com/forum.php?mod=viewthread&tid=131889&highlight=http://www.diwublog.com/archives/89

2012-08-29 00:49:57 993

原创 mms

http://www.binpress.com/app/radiotunes-sdk-for-ios/596

2012-08-27 14:50:43 689 1

原创 iphone后台运行音频

1)    UIBackgroundModes        audio    2)    NSError *setCategoryErr = nil;    NSError *activationErr  = nil;    [[AVAudioSession sharedInstance] setCategory: AVAudioS

2012-08-27 14:13:35 771

原创 读取mp3里的图片

NSURL *url = [NSURLURLWithString:@"http://xxx.mp3"];        AVAsset *asset = [AVAssetassetWithURL:url];    for (AVMetadataItem *metadataItemin asset.commonMetadata) {         if ([meta

2012-08-27 11:39:30 1255

转载 tomcat关不掉的原因

http://tuhaitao.iteye.com/blog/1122935tomcat/bin 目录下的catalina.sh是比较常用的shell  Shell代码  #启动tomcat  ./catalina.sh start      #关闭tomcat  ./catalina.sh stop

2012-08-23 09:27:52 10716

原创 ios gb2312转utf-8

+(NSString *) gb2312toutf8:(NSData *) data{    NSStringEncoding enc =CFStringConvertEncodingToNSStringEncoding(kCFStringEncodingGB_18030_2000);     NSString *retStr = [[NSString alloc] i

2012-08-11 11:20:03 2047

转载 iPhone – Configuring the AVAudioSession and Output Audio to iPhone Speaker

http://eureka.ykyuen.info/2010/06/02/iphone-configuring-the-avaudiosession-and-output-audio-to-iphone-speaker/iPhone – Configuring the AVAudioSession and Output Audio to iPhone SpeakerPo

2012-07-24 11:07:09 7952

转载 Notification

appDelegate里面:-(void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo; 通过userinfo获取推送过来的东西;如果程序没启动的情况下通过push启动的话在- (BOOL)application:(UIApplication *)ap

2012-07-16 10:27:01 876

原创 objective-c 前后去空格,去行

NSString* str =@"   \n\n\n\n\n string\nstring \n \n \n   ";   NSString* str2 = [str stringByTrimmingCharactersInSet:[NSCharacterSetwhitespaceCharacterSet]]; //前后去空格   NSString* str3 = [str

2012-07-12 11:08:53 2370

原创 设置圆角

#import      icon.layer.masksToBounds = YES;        icon.layer.cornerRadius = 5.0;        icon.layer.borderWidth = 0.5;        icon.layer.borderColor = [[UIColor grayColor] CGColo

2012-07-12 07:39:50 409

转载 MySql字符串处理

对于针对字符串位置的操作,第一个位置被标记为1。1.ASCII(str)返回字符串str的最左面字符的ASCII代码值。如果str是空字符串,返回0。如果str是NULL,返回NULL。mysql> select ASCII('2'); -> 50mysql> select ASCII(2); -> 50mysql> select ASC

2012-07-10 16:55:52 548

原创 如何启用长按事件

UILongPressGestureRecognizer *longPressGR =         [[UILongPressGestureRecognizer alloc] initWithTarget:self                                                       action:@selector(handleLongPress

2012-07-09 17:42:29 524

转载 iOS延时执行的几种方法

1.最直接的方法performSelector:withObject:afterDelay:这种方法的缺点:每次要为延时写一个方法2.@implementation NSObject (PerformBlockAfterDelay)- (void)performBlock:(void (^)(void))block afterDel

2012-07-09 17:39:16 2049

转载 UIPanGestureRecognizer类——为view添加手势

#import UIKit/UIKit.h>@interface TestGestureRecognizerViewController : UIViewController {UIView *aView;}@property(nonatomic,retain)IBOutlet UIView *aView;@end////

2012-07-09 17:28:39 563

原创 SDWebImage回调

[cell.imageView setImageWithURL:[NSURL URLWithString:@"http://www.domain.com/path/to/image.jpg"]               placeholderImage:[UIImage imageNamed:@"placeholder.png"]                        succe

2012-07-09 09:13:13 916

原创 iPhone读取网页内容乱码解决方案

读取的中文网页编码集是gb2312,进行如下转换可正常显示中文:NSString *urlStr="your url";NSURL *url = [NSURL URLWithString:urlStr];NSData *data = [NSData dataWithContentsOfURL:url]; NSStringEncoding enc = CFStringConv

2012-07-07 06:31:06 5253

转载 iOS推送消息实现

向iPhone、iPod Touch发送消息都需要认证的,下面是以向iPhone推送消息:一、开通“Apple Push Notification Service”1.进入 Provisioning Protal2.选择App IDs3.选择要开通“Apple Push Notification service”的AppID,点击“Configure”链接4

2012-07-06 10:59:30 2293

原创 查看tomcat进程与Killtomcat

ps -aux | grep tomcatkill -9 tomcat-pid

2012-07-05 16:21:54 770

原创 判断用户设备是iPad还是iPhone的代码

#define isPad (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)

2012-07-03 13:23:16 524

Drupal分页代码

Drupal分页代码,模块开发中常能用到的。

2009-09-16

空空如也

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

TA关注的人

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