Tag: osx

在Mac OS上NodeJS错误“EMFILE,打开的文件太多”

有一段时间我有以下错误: Error: EMFILE, too many open files '/Users/blagus/Gallery/Websites/Nicsware/Pills/resources/core/auth.node.js' at Object.fs.openSync (fs.js:427:18) at Object.fs.readFileSync (fs.js:284:15) at Object.Module._extensions..js (module.js:473:44) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Module.require (module.js:364:17) at require (module.js:380:17) at instController (/Users/blagus/Gallery/Websites/Nicsware/Pills/engine/mvc.node.js:79:31) at init (/Users/blagus/Gallery/Websites/Nicsware/Pills/engine/mvc.node.js:57:8) at route (/Users/blagus/Gallery/Websites/Nicsware/Pills/engine/dispatcher.node.js:268:36) 调用这个文件的代码行(mvc.node.js:79)是 this.currentRoute.class = require( controllerFile )[dispatchClass].bind( this ); (这是我创build的框架) 正如你所看到的,文件auth.node.js被REQUIRE调用,所以给定的与gracefullFS和类似的解决scheme不适合。 此外,这个问题只适用于MacOS。 在Ubuntu似乎工作得很好。 有什么想法吗?

是否有相当于OS X的lsusb

这个问题似乎是谷歌,但答案都指向使用系统分析器。 这很好,但是使用System Profiler,你所得到的是这样的: DasKeyboard: Product ID: 0x1919 Vendor ID: 0x04d9 (Holtek Semiconductor, Inc.) Version: 1.06 Speed: Up to 1.5 Mb/sec Location ID: 0x1d114000 / 11 Current Available (mA): 500 Current Required (mA): 100 USB2.0 Hub: Product ID: 0x0608 Vendor ID: 0x05e3 (Genesys Logic, Inc.) Version: 32.98 Speed: Up to 480 Mb/sec Location ID: 0x1d113000 / […]

找不到adb命令

我必须运行一个命令来使用android应用程序。 它的ez键盘,你可以通过浏览器从浏览器input你的android手机。 这是我想运行的命令 adb forward tcp:8080 tcp:8080 adb command not found 我可以从terminal运行android命令。 为什么adb不工作?

轻量级迁移NSPersistentDocument

我正在尝试在Core Data中进行SQLite存储的轻量级迁移。 在Xcode 4.3.1上使用Lion 10.7.3。 在我的NSPersistentDocument子类(AccountDocument)中,我重写了用于configuration持久性存储协调器的方法,以便获得适当的迁移选项: – (BOOL)configurePersistentStoreCoordinatorForURL:(NSURL *)url ofType:(NSString *)fileType modelConfiguration:(NSString *)configuration storeOptions:(NSDictionary *)storeOptions error:(NSError **)error { NSMutableDictionary *newStoreOptions; if (storeOptions == nil) { newStoreOptions = [NSMutableDictionary dictionary]; } else { newStoreOptions = [storeOptions mutableCopy]; } [newStoreOptions setObject:[NSNumber numberWithBool:YES] forKey:NSMigratePersistentStoresAutomaticallyOption]; [newStoreOptions setObject:[NSNumber numberWithBool:YES] forKey:NSInferMappingModelAutomaticallyOption]; BOOL result = [super configurePersistentStoreCoordinatorForURL:url ofType:fileType modelConfiguration:configuration storeOptions:newStoreOptions error:error]; return […]

如何在Mac(Visual Studio for Mac)上启动Xamarin Studio的多个实例?

我想要同时运行Xamarin Studio的多个副本。 一旦运行了一个副本,双击/Applications的Xamarin Studio图标或单击当前正在运行的Dock图标,只是将当前的图标放在前台。

如何编写OS X Finder插件

我正在寻找写入Mac OS X Finder插件的指南或示例代码? 它想知道如何做一些简单的操作: 将图像叠加层添加到图标 添加上下文菜单项 听文件更改 我发现了以下两个资源: 为OS X编写上下文菜单插件 :来自2002年的过时文档,使用面向Mac OS X 8/9的COM API。 SCPlugin :包含Finder插件的开源SVN Mac应用程序。 我很想回顾一下SCPlugin代码,但是希望find一个更容易被消化的样本。

如何使用Dropbox同步我的Sublime Text 3设置?

我想使用Dropbox在多台机器上同步Sublime Text 3的设置。 我应该如何设置?

什么是iPhone开发的好机器?

我将要开发一些iPhone应用程序,所以我得到了一张买黄金的机票。 然而,黄金票不值得这么多,我想iMac。 现在,苹果电脑是伟大的,我爱他们,并在家里使用他们,但我知道,iMac面向普通消费者比专业更多。 iMac是否足够强大,可以开发iPhone? 如果它有帮助,我想在Mac上做的唯一事情就是运行XCode,也许是一个网页浏览器。 有没有人在那里做iPhone开发和麻烦在他们的机器上运行所需的工具? 如果是这样,你有什么?

我如何在Mac上安装Beautiful Soup模块?

我没有find解决scheme阅读这个: http : //docs.python.org/install/index.html

我怎样才能在OS X上插入一个制表符字符?

我努力了: echo -e "egg\t \t\t salad" | sed -E 's/[[:blank:]]+/\t/g' 其结果是: eggtsalad 和… echo -e "egg\t \t\t salad" | sed -E 's/[[:blank:]]+/\\t/g' 其结果是: egg\tsalad 我想要什么: egg salad