我目前正处于转换过程的开始,转发Emacs.但是我有两个基本问题.
How do I search for multiple files recursively from a specific path? I assume I have to use find
/grep
/dired
but I'm not sure. For instance I would like to find all *.scala
files at path C:/src/xxx
.When these files are found I would also like to open them all in the buffer at once. The only way I'm currently familiar with is C-xC-f.
When all these files are in the buffer how do …
如何在Eclipse中手动安装插件?或者我如何强制安装程序安装插件,即使它不想?
例如,我正在尝试降级一个插件(一个包含我无法使用的错误的更新).我已经尝试过去About Eclipse -> Installation Details -> Installation History
选择以前的配置,但是我试图恢复到一个错误.我还下载了我要回滚的以前版本插件的一体化更新.但是,如果我去Install New Software -> Add -> Archive
那时我可以选择更新,但是当我尝试安装它时,我被告知我正在尝试安装的插件"将被忽略,因为已经安装了更新的版本".
我需要一种方法来手动安装插件或强制安装程序安装旧版本的插件.有谁知道如何实现这一目标?
在Practical Common Lisp第17章中.对象重定向:类部分访问器函数,我发现很难理解SETF
扩展的方式.
功能:
(defun (setf customer-name) (name account)
(setf (slot-value account 'customer-name) name))
Run Code Online (Sandbox Code Playgroud)
bank-account
类定义:
(defclass bank-account ()
((customer-name
:initarg :customer-name
:initform (error "Must supply a customer name."))
(balance
:initarg :balance
:initform 0)
(account-number
:initform (incf *account-numbers*))
account-type))
Run Code Online (Sandbox Code Playgroud)
我不明白的是:
在表达式(setf (customer-name my-account) "Sally Sue")
并(customer-name my-account)
返回SETFable槽值customer-name
的类的bank-account
,然后SETF
用来将值设置为"萨利苏"?
(setf (customer-name my-account) "Sally Sue")
实际上是在调用上面的函数?
如上定义的是setf customer-name
一个函数?
在上面的函数是customer-name
在(setf …
如何使用Graphviz绘制图形并注释其节点和边缘?
例如:
(a: level=0) --3--> (b: level=1)
(a: level=0) --2--> (c: level=1)
Run Code Online (Sandbox Code Playgroud) 这是一个简单的问题.代码优先.
struct A {
int x;
};
struct B {
bool y;
};
struct C {
int x;
bool y;
};
Run Code Online (Sandbox Code Playgroud)
在主要功能中,我打电话
cout << " bool : " << sizeof(bool) <<
"\n int : " << sizeof(int) <<
"\n class A : " << sizeof(A) <<
"\n class B : " << sizeof(B) <<
"\n class C : " << sizeof(C) << "\n";
Run Code Online (Sandbox Code Playgroud)
结果是
bool : 1
int : 4
class A : 4
class B : 1
class C …
Run Code Online (Sandbox Code Playgroud) 几个月来,我一直喜欢使用组织动态时钟块(C-c C-x C-r)来帮助我的小时计时.但突然间,我觉得它不起作用.我唯一改变的是下载list-packages org-contrib和org-mode.
M-x org-version
组织模式版本7.8.11
尝试更新/添加动态块(C-c C-x C-r)
符号的函数定义为void:org-defvaralias
我试图defun
在一些org .el文件中手动执行s,但这让事情变得更糟.有关最清洁方法的任何建议吗?
我实际上甚至不能再使用相同的错误.
我已经证实这是org-contrib
ELPA安装的结果,这似乎打破了它.这很难过,因为我很好地利用了其他org-contrib
文件.
是否有可能import
一个Python模块从过使用互联网http
(s
), ftp
,smb
或任何其它协议?如果是这样,怎么样?如果没有,为什么?
我想这是为了让Python使用更多的协议(读取文件系统)并使其能够使用其他协议.是的我同意它会慢很多倍,但是一些优化和更大的未来带宽肯定会平衡它.
例如:
import site
site.addsitedir("https://bitbucket.org/zzzeek/sqlalchemy/src/e8167548429b9d4937caaa09740ffe9bdab1ef61/lib")
import sqlalchemy
import sqlalchemy.engine
Run Code Online (Sandbox Code Playgroud) 据我所知,我可以创建一个包含项目的数组,例如:
char *test1[3]= {"arrtest","ao", "123"};
Run Code Online (Sandbox Code Playgroud)
但是如何将我的输入存储到上面的代码中,因为我只能将其编码为
input[10];
scanf("%s",&input) or gets(input);
Run Code Online (Sandbox Code Playgroud)
它将每个char存储到每个空间中.
如何存储输入"HELLO",使其存储到input [0]中,但现在
H输入[0],E输入[1],依此类推.
我想知道如何使用arm-linux-androideabi
编译器.该编译器是android-ndk
工具.
有ndk-build
刀具android-ndk
工具.要编译ethercat堆栈,我只需要arm-linux-androideabi
编译器.
但是,我看到了这个消息.
root@ubuntu:/opt/android/android-ndk-r9c/jni# arm-linux-androideabi-gcc -o test test.c
/opt/android/android-ndk-r9c/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: error: cannot open crtbegin_dynamic.o: No such file or directory
/opt/android/android-ndk-r9c/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: error: cannot open crtend_android.o: No such file or directory
/opt/android/android-ndk-r9c/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: error: cannot find -lc
/opt/android/android-ndk-r9c/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: error: cannot find -ldl
collect2: ld returned 1 exit status
Run Code Online (Sandbox Code Playgroud)
我该怎么做?
我一直在阅读Aql 图形操作和 图形,并没有找到SQL-Traverse用例的具体示例和性能解释.
例如:
如果我有一个集合用户,它与集合公司有公司关系
收藏公司有关系的位置,以集合地点 ;
收集位置是城市,国家或地区,并且与城市,国家,地区有关系.
现在,我想查询属于德国或欧盟公司的所有用户.
SELECT from Users where Users.company.location.city.country.name="Germany";
SELECT from Users where Users.company.location.city.parent.name="Germany";
Run Code Online (Sandbox Code Playgroud)
要么
SELECT from Users where Users.company.location.city.country.region.name="europe";
SELECT from Users where Users.company.location.city.parent.parent.name="europe";
Run Code Online (Sandbox Code Playgroud)
假设Location.name被编入索引,可以我已经两个查询上面执行为O(n) ,与Ñ是文档的数量在地点(O(1)对于图遍历,O(n)的索引扫描)?
当然,我可以直接在公司中保存regionName或countryName,因为这些城市和国家都在欧盟,不像其他地方,不会改变,但如果......你知道我的意思(开玩笑)如果我有其他需要不断更新的用例怎么办?