小编Vad*_*tov的帖子

将文件从一个目录复制到现有目录中

在bash我需要这样做:

  1. 获取目录中的所有文件

  2. 将它们复制到现有目录中

我该怎么做呢?我试过cp -r t1 t2(t1和t2都是现有的目录,t1里面有文件)但是它在t2里面创建了一个名为t1的目录,我不想这样,我需要t1中的文件直接进入t2.我该怎么做呢?

directory bash copy file cp

230
推荐指数
7
解决办法
29万
查看次数

从APK文件到项目的逆向工程

我意外地从Eclipse中删除了我的项目,我剩下的就是我转移到手机上的APK文件.有没有办法扭转出口申请,.apk文件的过程,所以我可以得到我的项目回来?

android decompiling apk

229
推荐指数
6
解决办法
35万
查看次数

执行 org.jetbrains.kotlin.gradle.internal.KaptExecution 时发生故障

突然间我开始收到这个错误,我不知道为什么如果有人让我知道这个错误在哪里,就会有足够的帮助。由于android studio的新更新,我能得到的最多。我得到的错误的详细摘要。

Task :app:kaptDebugKotlin
    ANTLR Tool version 4.5.3 used for code generation does not match the current runtime version 4.7.1ANTLR Runtime version 4.5.3 used for parser compilation does not match the current runtime version 4.7.1ANTLR Tool version 4.5.3 used for code generation does not match the current runtime version 4.7.1ANTLR Runtime version 4.5.3 used for parser compilation does not match the current runtime version 4.7.1C:\Users\shubh\Downloads\MarginCalculator\app\build\generated\source\kapt\debug\com\kotlin_developer\margincalculator\DataBinderMapperImpl.java:10: error: cannot find symbol
    import com.kotlin_developer.margincalculator.databinding.FragmentCalculatorScreenBindingImpl;

    symbol:   class FragmentCalculatorScreenBindingImpl

    Task :app:kaptDebugKotlin FAILED
    location: package com.kotlin_developer.margincalculator.databinding …
Run Code Online (Sandbox Code Playgroud)

android kotlin android-studio

227
推荐指数
20
解决办法
15万
查看次数

Android中用什么API来创建聊天头?

Facebook如何在Android上创建聊天头?在所有其他视图之上创建浮动视图的API是什么?

android facebook android-windowmanager

225
推荐指数
3
解决办法
7万
查看次数

放置/重叠(z-index)视图在android中的另一个视图上方

我有一个线性布局,包括imageview和textview,一个在线性布局下面.

<LinearLayout android:orientation="horizontal" ... >
 <ImageView 
     android:id="@+id/thumbnail"
     android:layout_weight="0.8" 
     android:layout_width="0dip"
     android:layout_height="fill_parent">
 </ImageView>
 <TextView 
    android:id="@+id/description"
    android:layout_weight="0.2"
    android:layout_width="0dip"
    android:layout_height="wrap_content">
 </TextView>
Run Code Online (Sandbox Code Playgroud)

可能缺少一些规则,这是为了给出一个想法,布局看起来如何.我希望另一个小文本视图说50dip的长度和宽度,放在imageview上,"over"我的意思是z-index比imageview更多,我想把它放在imageview的中心和上面(重叠).

我想知道如何将一个视图放在另一个视图上方,具有不同的z-index(最好是线性布局)?

android z-index android-layout

220
推荐指数
8
解决办法
28万
查看次数

磁盘上不存在APK文件

当我在Android Studio上尝试调试应用程序时,会提供此日志输出:

磁盘上不存在APK文件/Users/MyApplicationName/app/build/outputs/apk/app-debug.apk.

我重新启动了Android Studio,但我无法解决这个问题.我该如何解决?谢谢

android apk android-studio

220
推荐指数
13
解决办法
11万
查看次数

如何在将屏幕保持在屏幕上的同时管道?(而不是输出文件)

我想在保持屏幕的同时管道程序的标准输出.

通过一个简单的例子(echo这里使用仅用于说明目的):

$ echo 'ee' | foo
ee < - 我希望看到的输出

我知道tee可以将stdout复制到文件中,但这不是我想要的.
$ echo 'ee' | tee output.txt | foo

我试过
$ echo 'ee' | tee /dev/stdout | foo但是因为tee输出到了/dev/stdout管道,所以它不起作用foo

bash shell stdout pipe output

214
推荐指数
5
解决办法
7万
查看次数

git status显示修改,git checkout - <file>不会删除它们

我想删除对我的工作副本的所有更改.
运行git status显示修改的文件.
我没做什么似乎删除了这些修改.
例如:

rbellamy@PROMETHEUS /d/Development/rhino-etl (master)
$ git status
# On branch master
# Changed but not updated:
#   (use "git add <file>..." to update what will be committed)
#   (use "git checkout -- <file>..." to discard changes in working directory)
#
#       modified:   Rhino.Etl.Core/Enumerables/CachingEnumerable.cs
#       modified:   Rhino.Etl.Core/Pipelines/SingleThreadedPipelineExecuter.cs
#       modified:   Rhino.Etl.Tests/Rhino.Etl.Tests.csproj
#       modified:   Rhino.Etl.Tests/SingleThreadedPipelineExecuterTest.cs
#
no changes added to commit (use "git add" and/or "git commit -a")

rbellamy@PROMETHEUS /d/Development/rhino-etl (master)
$ git checkout -- Rhino.Etl.Core/Enumerables/CachingEnumerable.cs

rbellamy@PROMETHEUS …
Run Code Online (Sandbox Code Playgroud)

git revert working-copy git-status

213
推荐指数
9
解决办法
10万
查看次数

列出ElasticSearch服务器上的所有索引?

我想列出ElasticSearch服务器上的所有索引.我试过这个:

curl -XGET localhost:9200/
Run Code Online (Sandbox Code Playgroud)

但它只是给了我这个:

{
  "ok" : true,
  "status" : 200,
  "name" : "El Aguila",
  "version" : {
    "number" : "0.19.3",
    "snapshot_build" : false
  },
  "tagline" : "You Know, for Search"
}
Run Code Online (Sandbox Code Playgroud)

我想要一个所有索引的列表..

curl elasticsearch

212
推荐指数
13
解决办法
19万
查看次数

Hg:如何像git的rebase那样做一个rebase

在Git我可以这样做:

1. Start working on new feature:
$ git co -b newfeature-123  # (a local feature development branch)
do a few commits (M, N, O)

master A---B---C
                \
newfeature-123   M---N---O

2. Pull new changes from upstream master:
$ git pull
(master updated with ff-commits)

master A---B---C---D---E---F
                \
newfeature-123   M---N---O

3. Rebase off master so that my new feature 
can be developed against the latest upstream changes:
(from newfeature-123)
$ git rebase master

master A---B---C---D---E---F
                            \
newfeature-123               M---N---O


我想知道如何在Mercurial中做同样的事情,我已经在网上搜索了答案,但我能找到的最好的是:git rebase …

git mercurial dvcs rebase

207
推荐指数
4
解决办法
7万
查看次数