首页 \ 问答 \ 如何在rebol中组织代码?(How to organize code in rebol? [closed])

如何在rebol中组织代码?(How to organize code in rebol? [closed])

什么是在Rebol中组织代码的最佳方式?
(Rebol2,而不是Rebol3.Rebol3会有import ,看起来像。)

do %myfunctions.r风格是否需要? Java中没有真正的package语句,或者像C中的#include一样?
是否存在社区批准的命名约定?
http://www.rebol.it/power-mezz/mezz/module.html可以被视为标准吗?

我在某处读到了我可以建立自己的模块系统。 但这对我来说似乎不是一种明智的做法。

这次讨论注定会因为Rebol3很快就会完成吗? ;-)


Whats the best way to organize code in Rebol?
(Rebol2, not Rebol3. Rebol3 will have import, as it seems.)

Is the do %myfunctions.r-style all that is needed? There is no real package statement like in Java, or #include like in C?
Do community-approved naming conventions exist?
Could http://www.rebol.it/power-mezz/mezz/module.html be considered a standard?

I read somewhere that I could build my own module system as well. But this seems not like a sensible approach to me.

Is this discussion doomed as Rebol3 will be finished soon? ;-)


原文:https://stackoverflow.com/questions/14060825
更新时间:2021-12-24 08:12

最满意答案

我从来没有在Windows上安装过ftw.tika ,但如果你设法安装该服务并且它已启动并运行它应该可以工作。

要使用ftw.tika您需要按照自述文件中的说明在Plone站点上安装ftw.tika软件包。 这意味着您需要安装鸡蛋和必要的zcml配置以指向您当地的tika应用程序。

zcml =
    <configure xmlns:tika="http://namespaces.plone.org/tika">
        <tika:config path="${tika-app-download:destination}/${tika-app-download:filename}"
                     port="${tika:server-port}" />
    </configure>

还请确保安装了最新版本的JAVA,因为它尝试运行tika-app.jar

您可以通过查看portal_transforms工具来检查ftw.tika是否已正确安装。 应该有一个tika_to_plain_text转换( http:// plone / portal_transforms / tika_to_plain_text / manage_main ),它应该如下所示:

在此处输入图像描述

如果没有,请使用quickinstaller或portal_setup安装ftw.tika。

服务器也应该在Windows上正常运行,它也是Java。 我猜你不能使用包说明中的例子,因为它们是为Unix机器制作的。


I've never installed ftw.tika on Windows, but if you manage to setup the service and it's up and running it should work.

To use ftw.tikayou need to install the ftw.tika package on your Plone Site by following the instructions in the README. This means you need to install the egg and the necessary zcml configuration to point to your local tika app.

zcml =
    <configure xmlns:tika="http://namespaces.plone.org/tika">
        <tika:config path="${tika-app-download:destination}/${tika-app-download:filename}"
                     port="${tika:server-port}" />
    </configure>

Please also make sure you a recent version of JAVA installed, because it tries to run the tika-app.jar.

You can check if ftw.tika is installed properly by looking into the portal_transforms tool. There should be a tika_to_plain_text transform (http://plone/portal_transforms/tika_to_plain_text/manage_main), which should look like this:

enter image description here

If not, use quickinstaller, or portal_setup to install ftw.tika.

Also the server should run fine on windows, it's also Java. I guess you cannot use the examples from the package instructions, since they're made for Unix machines.

相关问答

更多
  • 如果将Products.OpenXml添加到实例egg并将其安装在Plone中,则可以索引现代Office格式,至少为.docx和.xlsx。 对于普通的旧Excel(.xls)文件,这不起作用。 我几周前在Plone 4.3.2 buildout配置中尝试过它: [instance] eggs = ... Products.OpenXml [versions] # You need a more recent lxml than default Plone, some 3.x versi ...
  • 实际上它是c.js.jqueryui应该将Plone版本固定在它们的标签版本中,恕我直言。 所以你应该联系作者。 因此,您应该添加'Products.CMFPlone'作为依赖项,但我不知道这里的最佳做法是什么。 无论如何,要回答你的问题,不管是否有Plone-3,这都是可能的: 在你的setup.py添加在顶部 import glob # BBB: Append Plone-3-specific version-pinnings # to `install_requires`, in case thir ...
  • Products.LoginLockout是PAS插件的一个很好的起点。 它已经截获了认证过程并处理了密码输入N次错误等方面。 另外它还存储了登录时间等信息......它不应该很难延长。 A good starting point for a PAS plugin would be Products.LoginLockout. It intercepts already the authentication process and deals with aspects like password-enter ...
  • 这在很大程度上取决于您在网站上使用的附加组件。 附加组件本身可能存在问题(没有可用的4.2兼容版本),或者他们管理的数据未更新以跟踪更新的附加组件中的更改。 但大多数情况下,从2.5一直升级到4.2应该没问题; 在4.2安装上直接尝试(通过Data.fs复制,安装附加组件的兼容版本,升级),或使用3.x中间版本。 Plone升级指南详细记录了该过程。 This very much depends on your add-ons you have used on the site. Either the ad ...
  • 按照https://github.com/vincent-psarga/collective.sendaspdf上的说明为我工作。 编辑 :啊,既然你已经发布了你的整个buildout.cfg我可以看到问题。 parts = section必须是[buildout]节的一部分。 它目前在[wkhtmltopdf_executable] 。 设置初始用户也是如此。 请注意,您已经包含了管理员密码,所以如果真的是密码,我现在就改变它! Following the instructions at https:// ...
  • 我确实会缓存查询结果。 您需要决定缓存结果的时间长度 ,以及如果长期存储,如何使缓存无效或检查更改。 这些决策没有最佳实践 ,因为它们完全取决于存储的数据类型和后端的API。 例如,如果它们支持某种新鲜度查询,那么您将永久存储所有内容并轮询后端以查看缓存是否需要更新。 您可以从简单的请求缓存开始; 每个请求查询一次,将其存储在请求对象上。 当请求对象被清理时,您的缓存将在请求结束时自动失效,下一个请求将是一个干净的平板。 如果您的后端用户很少更改,您可以在本地缓存中缓存信息更长时间。 我在插件上使用了vol ...
  • 请将Products.TinyMCE软件包升级到1.3b4版本,1.3之前的版本与Internet Explorer 9不兼容。 Please upgrade your Products.TinyMCE package to version 1.3b4, versions before 1.3 are not compatible with Internet Explorer 9.
  • 我从来没有在Windows上安装过ftw.tika ,但如果你设法安装该服务并且它已启动并运行它应该可以工作。 要使用ftw.tika您需要按照自述文件中的说明在Plone站点上安装ftw.tika软件包。 这意味着您需要安装鸡蛋和必要的zcml配置以指向您当地的tika应用程序。 zcml =
    关于什么: [filter:vhm] use = egg:repoze.vhm#vhm_explicit host = http://www.example.com root = /mysite Full WSGI support for Zope2 is still a work in progress. See: https://mail.zope.org/pipermail/zope-dev/2012-January/043930.html
  • 如果您使用的是Archetypes框架,MasterSelectWidget仍然是您需要的答案。 你说它不适用于Plone 4.2(我从未测试过)但可能它只需要很少的修复就可以了。 不要害怕产品老了这一事实...... Archetypes framewrork在去年没有太大变化! If you are using Archetypes framework, MasterSelectWidget is still the answer for you needs. You say that it's not ...

相关文章

更多

最新问答

更多
  • h2元素推动其他h2和div。(h2 element pushing other h2 and div down. two divs, two headers, and they're wrapped within a parent div)
  • 创建一个功能(Create a function)
  • 我投了份简历,是电脑编程方面的学徒,面试时说要培训三个月,前面
  • PDO语句不显示获取的结果(PDOstatement not displaying fetched results)
  • Qt冻结循环的原因?(Qt freezing cause of the loop?)
  • TableView重复youtube-api结果(TableView Repeating youtube-api result)
  • 如何使用自由职业者帐户登录我的php网站?(How can I login into my php website using freelancer account? [closed])
  • SQL Server 2014版本支持的最大数据库数(Maximum number of databases supported by SQL Server 2014 editions)
  • 我如何获得DynamicJasper 3.1.2(或更高版本)的Maven仓库?(How do I get the maven repository for DynamicJasper 3.1.2 (or higher)?)
  • 以编程方式创建UITableView(Creating a UITableView Programmatically)
  • 如何打破按钮上的生命周期循环(How to break do-while loop on button)
  • C#使用EF访问MVC上的部分类的自定义属性(C# access custom attributes of a partial class on MVC with EF)
  • 如何获得facebook app的publish_stream权限?(How to get publish_stream permissions for facebook app?)
  • 如何防止调用冗余函数的postgres视图(how to prevent postgres views calling redundant functions)
  • Sql Server在欧洲获取当前日期时间(Sql Server get current date time in Europe)
  • 设置kotlin扩展名(Setting a kotlin extension)
  • 如何并排放置两个元件?(How to position two elements side by side?)
  • 如何在vim中启用python3?(How to enable python3 in vim?)
  • 在MySQL和/或多列中使用多个表用于Rails应用程序(Using multiple tables in MySQL and/or multiple columns for a Rails application)
  • 如何隐藏谷歌地图上的登录按钮?(How to hide the Sign in button from Google maps?)
  • Mysql左连接旋转90°表(Mysql Left join rotate 90° table)
  • dedecms如何安装?
  • 在哪儿学计算机最好?
  • 学php哪个的书 最好,本人菜鸟
  • 触摸时不要突出显示表格视图行(Do not highlight table view row when touched)
  • 如何覆盖错误堆栈getter(How to override Error stack getter)
  • 带有ImageMagick和许多图像的GIF动画(GIF animation with ImageMagick and many images)
  • USSD INTERFACE - > java web应用程序通信(USSD INTERFACE -> java web app communication)
  • 电脑高中毕业学习去哪里培训
  • 正则表达式验证SMTP响应(Regex to validate SMTP Responses)