<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[JimYe的专栏]]></title><description><![CDATA[笔记与收藏]]></description><link>https://blog.csdn.net/left_la</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; left_la]]></copyright><item><title><![CDATA[Launch Services Programming Guide - 03常见任务]]></title><link>https://blog.csdn.net/left_la/article/details/119685549</link><guid>https://blog.csdn.net/left_la/article/details/119685549</guid><author>left_la</author><pubDate>Fri, 13 Aug 2021 23:09:28 +0800</pubDate><description><![CDATA[本文翻译自Launch Services Programming Guide，其中带删除线的API已经被Apple标记为Deprecated。

本章总结了如何使用 Launch Services 在应用程序中执行常见任务。
打开项目
您要使用Launch Services来执行的最常见操作是打开应用程序，文档文件和URL。根据具体情况，您可以为此使用四个Launch Services功能中的任何一个： LSOpenFSRef ， LSOpenFromRefSpec ，LSOpenCFURLRef或LSO.]]></description><category></category></item><item><title><![CDATA[Launch Services Programming Guide - 02基本概念]]></title><link>https://blog.csdn.net/left_la/article/details/119685480</link><guid>https://blog.csdn.net/left_la/article/details/119685480</guid><author>left_la</author><pubDate>Fri, 13 Aug 2021 23:06:49 +0800</pubDate><description><![CDATA[本文翻译自Launch Services Programming Guide，其中带删除线的API已经被Apple标记为Deprecated。

本章向开发人员和用户介绍有关Launch Services及其API的基本信息。
项目识别
通常，可以通过以下两种方式之一将要操作的项目（例如应用程序，文档或文件夹）标识为Launch Services进行操作：

使用 file-system reference（FSRef）指定驻留在本地或远程文件系统卷上的文件
使用 Core Foundation URL .]]></description><category></category></item><item><title><![CDATA[Launch Services Programming Guide - 01介绍]]></title><link>https://blog.csdn.net/left_la/article/details/119685408</link><guid>https://blog.csdn.net/left_la/article/details/119685408</guid><author>left_la</author><pubDate>Fri, 13 Aug 2021 22:59:43 +0800</pubDate><description><![CDATA[本文翻译自Launch Services Programming Guide。

Launch Services是一种API，它能使运行中的应用程序可以以类似于Finder或Dock的方式打开其他应用程序，或文档文件，或URL（统一资源定位符）。
使用Launch Services，应用程序可以执行以下任务：
* 打开（启动或激活）另一个应用程序
* 在另一个应用程序中打开文档或URL
* 指定用于打开给定文档或URL的首选应用程序
* 注册有关应用程序能够打开的文档文件和URL种类的信息
* 获取适当的.]]></description><category></category></item><item><title><![CDATA[如何改变NSPopover的背景颜色（包括小三角部分）?]]></title><link>https://blog.csdn.net/left_la/article/details/47659061</link><guid>https://blog.csdn.net/left_la/article/details/47659061</guid><author>left_la</author><pubDate>Fri, 14 Aug 2015 11:18:46 +0800</pubDate><description><![CDATA[问题：在OSX开发时，经常会使用NSPopover来弹出小窗口，那么如何改变NSPopover的背景颜色（包括小三角部分）? 
解答：此方案不需要其他第三方库，仅需引入两个自定义NSView类。]]></description><category></category></item><item><title><![CDATA[Can drag webview to move window in cococa?]]></title><link>https://blog.csdn.net/left_la/article/details/44228773</link><guid>https://blog.csdn.net/left_la/article/details/44228773</guid><author>left_la</author><pubDate>Thu, 12 Mar 2015 22:31:44 +0800</pubDate><description><![CDATA[1. 问题如果cococa程序，在一个==没有titlebar==的window里只有一个webview，是否能够==拖曳这个webview来拖动整个window==呢？当然，直接拖是不行的，webview会先接受这个拖曳drag事件。对于window中除webview以外的其他控件，其实可以直接重载NSWindow的mouseDown和mouseDragged方法来实现要的效果，但是webview]]></description><category></category></item><item><title><![CDATA[cocoa使用WebView,WebKit程序运行出错]]></title><link>https://blog.csdn.net/left_la/article/details/44155247</link><guid>https://blog.csdn.net/left_la/article/details/44155247</guid><author>left_la</author><pubDate>Mon, 09 Mar 2015 15:22:35 +0800</pubDate><description><![CDATA[cocoa使用WebView,WebKit程序运行出错1. Error在一个cococa程序中用到了WebView来显示本地页面，但是插入webview，并且写好相应code后,引入WebKit.h，运行程序，发现运行出错，console里报错：[NSKeyedUnarchiver decodeObjectForKey:]: cannot decode object of class (WebVie]]></description><category></category></item><item><title><![CDATA[NSTextField 快捷键失效的解决办法]]></title><link>https://blog.csdn.net/left_la/article/details/42463895</link><guid>https://blog.csdn.net/left_la/article/details/42463895</guid><author>left_la</author><pubDate>Tue, 06 Jan 2015 19:37:11 +0800</pubDate><description><![CDATA[转载来自：http://blog.sina.com.cn/s/blog_575b854e0100tatl.html
当程序的MainMenu中的Edit栏不存在的话，NStextField的快捷键功能会失效，因为需要使用协议重新定义它的快捷键功能。
在你要使用的窗口（或view）添加如下，覆盖原有的TextField的函数。

@interface NSTextField (copypas]]></description><category></category></item><item><title><![CDATA[matlab中图像块(patch)处理命令小结]]></title><link>https://blog.csdn.net/left_la/article/details/41223255</link><guid>https://blog.csdn.net/left_la/article/details/41223255</guid><author>left_la</author><pubDate>Mon, 17 Nov 2014 23:10:48 +0800</pubDate><description><![CDATA[在使用MATLAB语言实现图像处理算法时，我们常常会遇到需要对图像块(patch)进行运算的情况。受到其他语言编程习惯的影响，循环通常是不假思索的第一选择。但由于matlab是利于矩阵运算的编程语言，采用循环只会低效和耗时。
因此，下面总结了在图像处理中遇到的块运算常用的命令及代码，希望对大家有所帮助。
nlfilter
调用格式：B = nlfilter(A, [m n], fun)；
]]></description><category></category></item><item><title><![CDATA[sublime text 在已经安装ConvertToUTF8插件后出现中文乱码]]></title><link>https://blog.csdn.net/left_la/article/details/38843135</link><guid>https://blog.csdn.net/left_la/article/details/38843135</guid><author>left_la</author><pubDate>Tue, 26 Aug 2014 09:42:29 +0800</pubDate><description><![CDATA[问题：
sublime text本身是不支持中文编码的，所以x]]></description><category></category></item><item><title><![CDATA[为什么要用960px？——网页内容宽度分析]]></title><link>https://blog.csdn.net/left_la/article/details/36180885</link><guid>https://blog.csdn.net/left_la/article/details/36180885</guid><author>left_la</author><pubDate>Tue, 01 Jul 2014 11:44:45 +0800</pubDate><description><![CDATA[为什么要用960px？——网页内容宽度分析


液晶还没普及的年代，网页设计需要考虑800×600的分辨率。但如今800×600的分辨率使用率不到2%，已经可以忽略了。比这个分辨率高一级别的1024×768，使用率接近50%(国内)，所以很多网站都是以1024的宽度为标准进行设计的，最常见的页面宽度是两种：1004和960。

早期的网页设计师使用1004px作为页面宽度，是基于这样的考]]></description><category></category></item><item><title><![CDATA[处理mathtype公式在word中与文字对齐问题]]></title><link>https://blog.csdn.net/left_la/article/details/16831715</link><guid>https://blog.csdn.net/left_la/article/details/16831715</guid><author>left_la</author><pubDate>Tue, 19 Nov 2013 21:49:02 +0800</pubDate><description><![CDATA[问题：
最近在写论文过程中，在word文档里输入mathtype写的公式，发现公式与文字不能很好得对齐，上下有偏差，很丑，如下所示：




解决办法：
首先，选择所在段落右击鼠标->打开段落]]></description><category></category></item><item><title><![CDATA[Matlab图像处理笔记（二）]]></title><link>https://blog.csdn.net/left_la/article/details/16116389</link><guid>https://blog.csdn.net/left_la/article/details/16116389</guid><author>left_la</author><pubDate>Thu, 14 Nov 2013 14:22:19 +0800</pubDate><description><![CDATA[说明
本笔记整理记录了在使用Matlab进行图像处理学习过程中，使用到的一些常用命令、常见问题、遇到的问题及解决方案，方便日后查看，其中部分内容系来自网络。
本笔记仅供学习研究，转载请注明出处@jimye。
九. RGB图像如何处理
Im2double:把图像变为[0,1]之间
读alpha channel ：[A, map, alpha] = imread(...)
a=imread]]></description><category></category></item><item><title><![CDATA[Matlab图像处理笔记（一）]]></title><link>https://blog.csdn.net/left_la/article/details/16113963</link><guid>https://blog.csdn.net/left_la/article/details/16113963</guid><author>left_la</author><pubDate>Thu, 14 Nov 2013 10:58:25 +0800</pubDate><description><![CDATA[零．杂碎


I = double(imread('G:\pictures for test\flower.png'))。

>> I = rgb2gray(I)。

在command window写完命令后，按Esc清除整行。

强烈建议在使用变量之前（特别是循环中使用数组），先预分配空间，这样容易减少很多莫名其妙的错误。

数组运算符比矩阵运算符多一个”.”，对应元素运算]]></description><category></category></item><item><title><![CDATA[Emmet基本使用方法]]></title><link>https://blog.csdn.net/left_la/article/details/13508159</link><guid>https://blog.csdn.net/left_la/article/details/13508159</guid><author>left_la</author><pubDate>Tue, 29 Oct 2013 14:53:07 +0800</pubDate><description><![CDATA[转载来自：http://www.iteye.com/news/27580
Emmet的前身是大名鼎鼎的Zen coding，如果你从事Web前端开发的话，对该插件一定不会陌生。它使用仿CSS选择器的语法来生成代码，大大提高了HTML/CSS代码编写的速度，比如下面的演示： 


 
Zen coding下的编码演示


去年年底，该插件已经改名为Emmet。但Emmet不只改名，还]]></description><category></category></item><item><title><![CDATA[【error】new抛出std::bad_alloc]]></title><link>https://blog.csdn.net/left_la/article/details/9203011</link><guid>https://blog.csdn.net/left_la/article/details/9203011</guid><author>left_la</author><pubDate>Sat, 29 Jun 2013 15:25:52 +0800</pubDate><description><![CDATA[1、Error：
        在处理遥感数据处理的程序中，通过new动态分配来存储数据，程序在new过程中抛出std::bad_alloc错误。
2、原因及解决办法：
        进程分配内存过大，网上查阅到单个win32程序进程只能分配1.5-1.6左右内存，否则会出现std::bad_alloc错误，将程序改成64位即可。]]></description><category></category></item><item><title><![CDATA[常见向量范数和矩阵范数]]></title><link>https://blog.csdn.net/left_la/article/details/9159949</link><guid>https://blog.csdn.net/left_la/article/details/9159949</guid><author>left_la</author><pubDate>Mon, 24 Jun 2013 11:37:55 +0800</pubDate><description><![CDATA[1、向量范数
1-范数：，即向量元素绝对值之和，matlab调用函数norm(x, 1) 。
2-范数：，Euclid范数（欧几里得范数，常用计算向量长度），即向量元素绝对值的平方和再开方，matlab调用函数norm(x,
 2)。
∞-范数：，即所有向量元素绝对值中的最大值，matlab调用函数norm(x, inf)。
-∞-范数：，即所有向量元素绝对值中的最小值，matlab调用]]></description><category></category></item><item><title><![CDATA[【编程珠玑】附录C时空开销模型]]></title><link>https://blog.csdn.net/left_la/article/details/8998605</link><guid>https://blog.csdn.net/left_la/article/details/8998605</guid><author>left_la</author><pubDate>Fri, 31 May 2013 16:48:19 +0800</pubDate><description><![CDATA[1、空间开销
如果问大家sizeof(char)等于多少，大家一定都知道等于1字节。那么如果使用new运算法分别动态分配10个char变量，那么这10个char变量所占的内存空间就仅仅只有10字节吗？并不是！使用malloc动态分配可能会需要好几倍的额外开销。
根据书中给出的测试程序，程序中定义了一个宏，在该宏定义中，首先给出相应结构的sizeof()信息，然后用类似下面的形式给出new分配的]]></description><category></category></item><item><title><![CDATA[【编程珠玑】第七章粗略估计]]></title><link>https://blog.csdn.net/left_la/article/details/8980799</link><guid>https://blog.csdn.net/left_la/article/details/8980799</guid><author>left_la</author><pubDate>Mon, 27 May 2013 18:37:25 +0800</pubDate><description><![CDATA[编程珠玑的这一章很有意思，要对于很多生活中的平时很少考虑的统计问题进行粗略估计，这看似与软件工程无关，但实则不然，书中提到在USA，“粗略估计”已经是工程院校的标准课程，这就难怪各种神级公司如微软、谷歌等在招人时会出现下面的一些面试题了：


美国有多少量汽车？美国有多少个加油站？...

文章中首先提到了一个经验法则，觉得很有用。
“72”法则：假设以年利率r%投资一笔钱y年，如果r]]></description><category></category></item><item><title><![CDATA[【编程珠玑】第一章电话号码排序]]></title><link>https://blog.csdn.net/left_la/article/details/8931172</link><guid>https://blog.csdn.net/left_la/article/details/8931172</guid><author>left_la</author><pubDate>Wed, 15 May 2013 16:38:37 +0800</pubDate><description><![CDATA[输入：一个包含100万个正整数的文件，每个数都小于1000万。如果在输入文件中有任何整数重复出现就是致命错误，没有其他数据与该整数相关联。
输出：按升序排列的输入整数的列表。


#include 
#include 
#include 
#include 
using namespace std;

int randInt(int start, int end)
{
  srand(ti]]></description><category></category></item><item><title><![CDATA[典型字符串匹配算法实现]]></title><link>https://blog.csdn.net/left_la/article/details/8881311</link><guid>https://blog.csdn.net/left_la/article/details/8881311</guid><author>left_la</author><pubDate>Mon, 06 May 2013 22:37:26 +0800</pubDate><description><![CDATA[0.序 
       相信大家对快捷键ctrl+F是做什么用的都应该很熟悉了，无论是文本编辑、网页浏览等程序上它都意味着字符串搜索，我们提供一个关键字，它将找到当前页面上的所有该关键字所在的位置。关键字称为模式串，在文本T中寻找模式串P出现的所有出现的位置，解决这种问题的算法叫做字符串匹配算法。字符串匹配算法可以说是计算机科学中最古老、研究最广泛的问题之一，并且字符串匹配的应用也随处可见，特别]]></description><category></category></item></channel></rss>