我已经使用org-mode大约一年了,用于任务和时间跟踪.我的主要目的是能够管理任务(待处理,完成工作时完成)以及创建总结我的时间的每周报告.
我一直在使用一种非常简单的方法.我有一个大纲层次结构,月份位于顶部,然后是一周,然后每天我构建我的任务.我使用thisweek属性在月级设置时钟表报告,以便在每周结束时我得到一份报告,我可以用它来填写我的考勤卡.
它看起来像这样:
* November
#+BEGIN: clocktable :maxlevel 5 :block thisweek :scope tree1 :link t
#+END: clocktable
** Nov 5 - 9
*** Nov 5
**** admin, email
CLOCK: [2012-11-05 Mon 14:28]--[2012-11-05 Mon 16:23] => 1:55
CLOCK: [2012-11-05 Mon 13:31]--[2012-11-05 Mon 13:36] => 0:05
CLOCK: [2012-11-05 Mon 13:20]--[2012-11-05 Mon 13:22] => 0:02
CLOCK: [2012-11-05 Mon 09:11]--[2012-11-05 Mon 09:14] => 0:03
CLOCK: [2012-11-05 Mon 08:03]--[2012-11-05 Mon 08:08] => 0:05
**** TODO Fix scrubber to work with any environment
**** DONE Remedy …Run Code Online (Sandbox Code Playgroud) 我读过很多关于ArrayStoreExceptions的帖子,其中大部分都属于以下类别之一:
我的不属于这些类别.还有一个案例,OP怀疑某种类型的错误只出现在Unix上.我想我有这种情况,我不知道如何更接近这个问题.
我尽可能地打破了代码,它看起来像这样:
System.out.println("Declaring RecordValues array");
RecordValues[] rv = new RecordValues[3];
System.out.println("This array is meant for "+rv.getClass().getComponentType());
System.out.println("Adding user defaults which is: "+userdefaults.getClass().getName());
System.out.println("Its parent is: "+userdefaults.getClass().getSuperclass().getName());
rv[0] = userdefaults;
System.out.println("Adding templvalues which is: "+tmplvalues.getClass().getName());
rv[1] = tmplvalues;
System.out.println("Adding sessionvalues which is: "+tmplvalues.getClass().getName());
rv[2] = sessionvalues;
Run Code Online (Sandbox Code Playgroud)
它输出:
[ant:createwo] Declaring RecordValues array
[ant:createwo] This array is meant for class org.kp.mbe.arscli.datamap.RecordValues
[ant:createwo] Adding user defaults which is: org.kp.mbe.arscli.datamap.UserValues
[ant:createwo] Its parent is: org.kp.mbe.arscli.datamap.RecordValues
:createwo FAILED <--
... …Run Code Online (Sandbox Code Playgroud) 这肯定是一个 gradle 新手问题,但它真的让我感到沮丧。我的源代码树如下所示:
|-- master
buildSrc
build.gradle
|-- comp1
!-- filea
!-- fileb
|-- comp2
!-- file1
!-- file2
!-- etc
Run Code Online (Sandbox Code Playgroud)
我正在使用自定义任务(在 prepBundle 中调用(未显示))build.gradle的master目录中运行 ,以生成需要在 zip 文件中的文件列表。列表中有一些各种外部处理,因此没有办法使用任何基本的包含或闭包来生成列表。
这就是我所拥有的:
task showFilelist(dependsOn:prepBundle){
prepBundle.outputs.files.each{
println "including file: ${it}"
}
}
task createBundle(type:Zip,dependsOn:prepBundle){
inputs.files(prepBundle.outputs.files)
outputs.file(archiveName)
baseName = "somebundle"
from ".."
include prepBundle.outputs.files
}
Run Code Online (Sandbox Code Playgroud)
如果我只运行 showFilelist,我会得到我想要压缩的文件的正确解析路径:
<snip>
:showFilelist
including file: C:\fullpath\master\build.gradle
including file: C:\fullpath\comp1\filea
including file: C:\fullpath\comp2\file1
Run Code Online (Sandbox Code Playgroud)
但是当我运行我的捆绑任务时,它爆炸了:
:createBundle
FAILURE: Build aborted because of an internal error.
* What went wrong: …Run Code Online (Sandbox Code Playgroud) 是否可以让gradle读取logging.properties文件以按类设置日志记录级别?我想要做的是查看我的调试语句,但不是每个正在使用的类的调试语句.即,我想用-Djava.util.logging.config.file=mylogging.properties.
当元素是对象时,是否有更古老的方法从另一个列表中减去一个列表?我认为可能有一种方法可以使用减去,但无法弄明白.这就是我所拥有的:
class item1 {
int foo
int getFoo(){return foo}
public item1(id_in){ foo = id_in }
}
def list1 = [new item1(10),new item1(11),new item1(13)]
def list2 = [new item1(11),new item1(12),new item1(14)]
// list3 = list2 - list1
def list3 = list2.findAll{ !(it.foo in list1.collect{it.foo}) }
// works
assert list3.collect{it.foo} == [12,14]
Run Code Online (Sandbox Code Playgroud)
这真的很不错,但如果有更好的方法,我只是好奇. 这个问题非常相似,但是寻找交叉点(巧合的是,几小时前才发布),但我认为这些对象具有ID属性.这就是我使用我的foo属性的原因 - 我不希望解决方案需要一些与"id"相关的grails-like mojo(如果存在这样的东西)).
我不知道任何Ruby,但我喜欢asciidoctor(和gradle插件)。有没有一种简单的方法来使插件生成Plantuml图?
我查看了基本的asciidoctor-diagrams功能,该功能似乎特定于使用本机/红宝石asciidoctor扩展(我没有,并且因为我喜欢使用gradle插件而不想安装)。
做得很好的asciidoctor-gradle-plugin文档页面显示,它接受requiresRuby模块的选项,但是在Ruby中没有任何基础,我不确定这是否是我需要的。
我尝试了阻力最小的路径,即:
asciidoctor {
logDocuments = true
separateOutputDirs = false
sourceDir = file("src")
outputDir = file("$buildDir/html")
backends = [ 'html5' ]
requires "asciidoctor-diagram"
}
Run Code Online (Sandbox Code Playgroud)
针对我的基本plantuml测试:
.The PlantUML block extension class
[plantuml, sample-plantuml-diagram, alt="Class diagram", width=135, height=118]
----
class BlockProcessor
class PlantUmlBlock
BlockProcessor <|-- PlantUmlBlock
----
Run Code Online (Sandbox Code Playgroud)
但是得到了:
* What went wrong:
Execution failed for task ':asciidoctor'.
> (LoadError) no such file to load -- asciidoctor-diagram
Run Code Online (Sandbox Code Playgroud)
在配置阶段。
如何配置asciidoctor-gradle-plugin以处理植物?