首页 \ 问答 \ 在Openshift上安装Thinking Sphinx - Rails(Installing Thinking Sphinx on Openshift - Rails)

在Openshift上安装Thinking Sphinx - Rails(Installing Thinking Sphinx on Openshift - Rails)

Redhat的Openshift似乎是Heroku的一个很酷的PaaS替代品,但是有谁知道是否可以在Openshift上安装狮身人面像,因此它可以在思维狮身人面像的轨道应用程序中使用? 任何意见将不胜感激!


Openshift by Redhat seems to be a cool PaaS alternative to Heroku, but does anyone know if it is possible to install sphinx on Openshift so it can be used in a rails app with Thinking Sphinx? Any commments would be appreciated!


原文:https://stackoverflow.com/questions/11818044
更新时间:2023-10-29 09:10

最满意答案

在Cocoa中, NSObject类是框架的基础,但不是Objective-C语言本身。 在Objective-C中,可以通过不从任何东西派生来创建一个根类(但为了使其工作起来,您可能必须破解通过运行时调用的方式)。

同样,一些基于C ++的框架可能会定义一个根类,该框架中的所有其他类都来源于该类,但它是特定于框架的,而不是语言。


In Cocoa, the NSObject class is fundamental to the framework but not to the Objective-C language itself. In Objective-C, it is possible to create a root class by not deriving from anything (but in order to make it work you'll probably have to hack your way through runtime calls).

Similarly, some C++-based frameworks may define a root class that all other classes in that framework derive from, but it is specific to the framework, not the language.

相关问答

更多
  • 你必须存储基类指针或基类智能指针,使用像boost:ptr_vector这样的指针集合。 std::vector tv; tv.push_back(new television); tv.push_back(new BigTelevision); // don't forget to delete // better: std::vector> tv; tv.push_back(std::unique_ptr
  • 在C ++中学习编程有更简单的语言,在简单的CLI应用程序中可以使用更简单的概念。 事实上,使用C ++编写GUI软件可能是学习做得最好的难事之一。 如果您只想学习可视化编程,并且仅使用C ++,那么我建议您尝试编程工具包QT(http://developer.qt.nokia.com/resources/getting_started/),因为您将在屏幕上显示一个窗口更快,更逻辑,几乎任何其他东西。 否则,选择几乎所有解释(VB,Python,Ruby)或准编译(Perl,Java,C#)语言并首先通过命 ...
  • C ++标准库未涵盖的大量任务可以使用boost来完成,boost是同行评审的可移植库的集合,今天几乎每个C ++项目都使用它。 对于网络,我们使用boost.asio 。 他们的教程包括HTTP客户端: http : //www.boost.org/doc/libs/1_46_1/doc/html/boost_asio/example/http/client/sync_client.cpp和http://www.boost.org/doc/库/ 1_46_1 / DOC / HTML / boost_as ...
  • 如果专业化处于头文件中,那么您需要声明它为inline以允许它包含在多个编译单元中。 请注意,您实际上并不需要模板专门化; 一个简单的重载会做同样的事情。 If the specialisation is in a header file, then you need to declare it inline to allow it to be included in more than one compilation unit. Note that you don't actually need a te ...
  • 你可以说 const std::string& s = contentTransferEncodingToString(ENCODING_7BIT) 要么 const std::string& s = contentTransferEncodingToString(ContentTransferEncoding::ENCODING_7BIT) You can either say const std::string& s = contentTransferEncodingToString(ENCO ...
  • 有一个区别。 当您在类定义中写入函数的定义(情况2)时,则该函数被认为是inline声明的。 这是标准的C ++。 用法是在头文件(.h)中声明类定义内的成员函数(Java方法),并在C ++文件中定义这些成员函数(.cpp,.cc或.C,...)减少编译时间,当您更改函数的主体时,只需编译C ++文件,而如果更改头文件中的某些内容,则将编译包含此头的所有C ++文件。 There's a difference. When you write the definition of the function w ...
  • 在Cocoa中, NSObject类是框架的基础,但不是Objective-C语言本身。 在Objective-C中,可以通过不从任何东西派生来创建一个根类(但为了使其工作起来,您可能必须破解通过运行时调用的方式)。 同样,一些基于C ++的框架可能会定义一个根类,该框架中的所有其他类都来源于该类,但它是特定于框架的,而不是语言。 In Cocoa, the NSObject class is fundamental to the framework but not to the Objective-C l ...
  • 在C ++中,头文件的内容由预处理器插入,它们是#include d。 因此,将您正在使用的所有定义放在单个文件中并在各种头文件之间拆分这些定义之间没有实质区别。 应用相同的规则 - 特别是,您需要在子类之前声明父类,因此您需要在子类之前#include包括相关的父类。 抽象类不会改变任何这种讨论。 头文件是预处理程序给予我们人类的一个优点,而不是C ++语言理解的东西。 In C++, the content of header files are inserted by the preprocessor ...
  • 你的构造函数基本上是一个无操作。 我们来看看每一行: template BSTNode::BSTNode(){ Key k; // <--- local variable, destroyed on return Value v; // <--- local variable, destroyed on return BSTNode* left = NULL; // <--- local varia ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)