- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我是 Emacs 新手,完成了 Emacs 和基本的 org-mode 教程。
现在我想安装 org-drill。以下是我在 Emacs 上安装 org-drill 的失败尝试。
来自 http://orgmode.org/worg/org-contrib/org-drill.html
Installation
The easiest way is to customise the variable 'org-modules' (M-x customize-variables RET org-modules) and make sure 'drill' is ticked.
M-x customize-variables [No match]
M-x customize-variable <RET> org-modules
M-x org-drill-table-
M-x customize-variable <RET> org-modules
For manual installation, put the following in your .emacs. You will also need to make sure that Org's "contrib/lisp" directory is in the emacs load-path.
(require 'org-drill)
(add-to-list 'load-path "~/emacsLoad/")
(require 'org-drill)
Warning (initialization): An error occurred while loading `/home/wolfv/.emacs':
Symbol's function definition is void: copy-list
Debugger entered--Lisp error: (void-function copy-list)
copy-list((1 (quote org-drill-visible-cloze-face) nil))
org-drill--compute-cloze-keywords()
(defvar org-drill-cloze-keywords (org-drill--compute-cloze-keywords) nil)
require(org-drill)
eval-buffer(#<buffer *load*> nil "/home/wolfv/.emacs" nil t) ; Reading at buffer position 1727
load-with-code-conversion("/home/wolfv/.emacs" "/home/wolfv/.emacs" t t)
load("~/.emacs" t t)
#[0 "\205\262
M-x customize-variable <RET> org-modules
;; load the built-in package manager
(require 'package)
;; add Emacs package repositories to the list of available repositories
(add-to-list 'package-archives '("org" . "http://orgmode.org/elpa/"))
(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/"))
(add-to-list 'package-archives '("melpa-stable" . "http://stable.melpa.org/packages/"))
(add-to-list 'load-path "~/emacsLoad/")
;; disable automatic package loading
(setq package-enable-at-startup nil)
;; from http://stackoverflow.com/a/10095853/580206 > RNA
(defun ensure-package-installed (&rest packages)
"Assure every package is installed, ask for installation if it’s not.
Return a list of installed packages or nil for every skipped package."
(mapcar
(lambda (package)
(if (package-installed-p package)
nil
(if (y-or-n-p (format "Package %s is missing. Install it? " package))
(package-install package)
package)))
packages))
;; make sure to have downloaded archive description
(or (file-exists-p package-user-dir)
(package-refresh-contents))
;; load installed packages
(package-initialize)
;; make sure these packages are installed
(ensure-package-installed 'evil)
;;(ensure-package-installed 'evil 'org-drill)
;; load the package into memory and call the main mode function
(require 'evil)
(evil-mode t)
(require 'org-drill)
;;(org-drill t)
;; display cursor's (row,col) position in mode line
(setq column-number-mode t)
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(org-modules
(quote
(org-bbdb org-bibtex org-docview org-gnus org-info org-irc org-mhe org-rmail org-w3m org-drill))))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)
最佳答案
我对 Emacs 或 Org Mode(或 Elisp)几乎一无所知,但这就是我让它工作的方式。
首先,当 Emacs 说 (void-function xxx)
在回溯中,这意味着 xxx
尚未定义。经过多次谷歌搜索,我发现 copy-list
在一个名为 cl
的模块中定义,需要加载。org-drill.el
实际上在顶部有这种依赖关系:
(eval-when-compile (require 'cl))
elpa
repository ,然后安装
org-plus-contrib
包,其中包括 Org Drill。
.emacs
内/
.emacs.d/init.el
,在顶部,添加
(package-initialize)
init.el
之后加载 elpa 包。但我们想从
org-plus-contrib
加载内容包裹。
cl
和
org-drill
:
(require 'cl)
(require 'org-drill)
关于emacs - 如何安装 org-drill?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34983106/
假设您将 Drill 连接到两个独立的数据库,并且运行一个查询,从每个数据库中提取大量数据,然后进行联接。 Drill 如何处理这个问题而不引发内存不足错误?这是假设您请求的数据超出了 Drill 可
我想一次运行选择 Sql Server 查询。我在嵌入式模式下使用 Drill。 select * from ..; select * from ..; 例子:- select * from SqlS
Apache MetaModel 是一个数据访问框架,它为发现、探索和查询不同类型的数据源提供了一个通用接口(interface)。 Apache Drill 是一种无架构的 SQL 查询引擎,它通过
我在具有 16GB 内存的 ubuntu 机器上本地运行 apacherill 1.0(然后在 1.4 上)。当我使用一个非常大的制表符分隔文件(5200 万行,7GB)并执行 Select dist
我尝试了钻取 JDBC 驱动程序以编程方式进行查询。 代码的有用部分: Connection conn = new Driver().connect("jdbc:drill:zk=local", ge
我想连接到 Drill by Java 应用程序,到目前为止,我一直在尝试使用 JDBC 来完成它,我正在使用 https://github.com/vicenteg/DrillJDBCExample
select distinct filename from dfs.contoso.`folder/CSVs/` > 2021-01.csv > 2021-02.csv > ... 或 select
使用 apache drill 1.2,我们可以查询 RDBMS 数据。在这里查看更多信息:https://drill.apache.org/blog/2015/10/16/drill-1.2-rel
我在嵌入模式下使用drill,除了复制和粘贴之外,我不知道如何保存查询输出。 最佳答案 如果您使用 sqlline,则可以创建一个 CSV 格式的新表,如下所示: use dfs.tmp; alter
我在 ubuntu 14.04 64 机器上下载了 apache-drill-1.2.0。提取 tar.zip 内容,转到 bin 文件夹并运行钻取。 现在我尝试打开:http://localhost
Apache Drill 可以读取 ORC 文件吗? 最佳答案 这个答案是由用户 agirish 在 Apache Drill 邮件列表中发布的。复制到这里是为了对这个社区有用。 Drill can
我正在尝试在 Windows 10 x64(使用 Oracle JVM 1.8.0_131)上以嵌入式模式启动 Apache Drill 1.10。启动命令时 sqlline.bat -u "jdbc
当我打字 $ drillbit.sh start 它向我展示了这个错误: ERROR: Java 1.7 or later is required to run Apache Drill. 虽然我有最
我正在尝试在我们的 Drill (1.6.0) 系统上构建安全性。我设法让安全用户身份验证工作(如文档中所述的 JPam),但模拟似乎不起作用。它似乎通过管理员用户执行和获取,而不管谁通过 ODBC
我在 drill 中有一个这样的对象: {MyFruit: [{name:Mike, age:10},{name:Jacob,age:9},{name:William, age:6}]} 我可以通过以
我有按日期和时间组织的CSV文件,如下所示 logs/YYYY/MM/DD/CSV files... 我已设置Apache Drill在这些CSV文件之上执行SQL查询。由于有很多CSV文件;文件的组
我下载了 Apache Drill v1.8,编辑了 conf/drill-override.conf 以进行以下更改: drill.exec: { cluster-id: "drillbits1
我下载了 Apache Drill v1.8,编辑了 conf/drill-override.conf 以进行以下更改: drill.exec: { cluster-id: "drillbits1
我是 Emacs 新手,完成了 Emacs 和基本的 org-mode 教程。 现在我想安装 org-drill。以下是我在 Emacs 上安装 org-drill 的失败尝试。 来自 http://
下面的命令运行正常。 SELECT TO_TIMESTAMP(`ts`,'yyyyMMddHHmmss') FROM dfs.tmp`/mapr/my.cluster.com/hive/cpf_sal
我是一名优秀的程序员,十分优秀!