小编Thu*_*fir的帖子

Firefox 多行书签

Firefox(最新版)是否有一种方法可以拥有多行书签而不是标准书签?我一直在四处寻找,但一个适用于以前版本的扩展不再有效(多行)。

firefox bookmarks firefox-addon

5
推荐指数
1
解决办法
3583
查看次数

如何修复未解析的参考:javafxplugin?

如何应用插件来JavaFX使用 Kotlin DSL?手册建议

apply plugin: 'org.openjfx.javafxplugin'

而我使用的是 Gradle Kotlin DSL,而不是普通的 Gradle。

当前错误:

thufir@dur:~/NetBeansProjects/helloWorldJavaFX$ 
thufir@dur:~/NetBeansProjects/helloWorldJavaFX$ gradle clean

> Configure project :
e: /home/thufir/NetBeansProjects/helloWorldJavaFX/build.gradle.kts:15:5: Unresolved reference: javafxplugin

FAILURE: Build failed with an exception.

* Where:
Build file '/home/thufir/NetBeansProjects/helloWorldJavaFX/build.gradle.kts' line: 15

* What went wrong:
Script compilation error:

  Line 15:     javafxplugin
               ^ Unresolved reference: javafxplugin

1 error

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. …
Run Code Online (Sandbox Code Playgroud)

java javafx gradle build.gradle gradle-kotlin-dsl

5
推荐指数
1
解决办法
4144
查看次数

如何使用 xargs 将 ls 通过管道传输到 cat 以便列出文件名?

为了用于cat输出*.txt特定目录中的文件,如何在每个文件之前插入文件名作为“中断”?

file #1
contents of file

file #2
contents of file
Run Code Online (Sandbox Code Playgroud)

理想情况下,作为易于记住的几个bash命令。

也可以看看:

为什么不将文件名列表通过管道传输到 cat 中?

linux ls pipe xargs cat

5
推荐指数
2
解决办法
3318
查看次数

使用Qualifier和InjectionPoint作为@HttpParam在CDI/WELD中实现@RequestParam

玻璃鱼错误

INFO: Initializing Mojarra 2.1.6 (SNAPSHOT 20111206) for context '/NNTPjsf'
INFO: WEB0671: Loading application [NNTPjsf] at [/NNTPjsf]
SEVERE: Exception while loading the app
INFO: only once...
INFO: NNTP.loadMessages...
SEVERE: Exception while loading the app : WELD-001408 Unsatisfied dependencies for type [FacesContext] with qualifiers [@Default] at injection point [[field] @Inject net.bounceme.dur.nntp.HttpParamProducer.facesContext]
org.jboss.weld.exceptions.DeploymentException: WELD-001408 Unsatisfied dependencies for type [FacesContext] with qualifiers [@Default] at injection point [[field] @Inject net.bounceme.dur.nntp.HttpParamProducer.facesContext]
    at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:274)
    at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:243)
    at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:106)
    at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:126)
    at org.jboss.weld.bootstrap.Validator.validateBeans(Validator.java:345)
    at org.jboss.weld.bootstrap.Validator.validateDeployment(Validator.java:330)
    at org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:366) …
Run Code Online (Sandbox Code Playgroud)

java jsf glassfish facelets cdi

4
推荐指数
1
解决办法
1925
查看次数

如何为数据库生成ERD或UML?

引用前一个问题,似乎不可能轻易地自动生成UML或ERD图.如何才能做到这一点?即使describe fudforum.*;提供的细节也可以解决问题,除了你不能使用通配符.

有点像mysqldump -d -u <username> -p<password> -h <hostname> <dbname>但更具可读性的东西?

看起来devart不能在Linux上运行,但我正在研究它.

MySQL的:

mysql> 
mysql> describe fudforum.fud30_xmlagg;
+----------------+--------------+------+-----+---------+----------------+
| Field          | Type         | Null | Key | Default | Extra          |
+----------------+--------------+------+-----+---------+----------------+
| id             | int(11)      | NO   | PRI | NULL    | auto_increment |
| name           | varchar(255) | NO   |     |         |                |
| url            | varchar(255) | NO   |     |         |                |
| forum_id       | int(11)      | NO …
Run Code Online (Sandbox Code Playgroud)

mysql database database-design uml relational-database

4
推荐指数
1
解决办法
2万
查看次数

JFrame观察Controller但从未通知

另一个问题,我继续使用Singleton Observable.为什么ArticleSelect.update()不执行?

package net.bounceme.dur.usenet.swing;

import java.util.Observable;
import java.util.Observer;
import java.util.logging.Logger;
import javax.swing.ListModel;
import net.bounceme.dur.usenet.controller.ArticleDefaultListModel;
import net.bounceme.dur.usenet.controller.Controller;

public class ArticleSelect extends javax.swing.JPanel implements Observer {

    private static final Logger LOG = Logger.getLogger(ArticleSelect.class.getName());
    private Controller controller = Controller.getInstance();
    private ListModel defaultListModel = new ArticleDefaultListModel();

    public ArticleSelect() {
        controller.addObserver(this);
        initComponents();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated …
Run Code Online (Sandbox Code Playgroud)

java swing netbeans gui-builder observer-pattern

4
推荐指数
1
解决办法
266
查看次数

如何创建“离线”Java MimeMessage?

Java MimeMessage似乎需要一个文件夹或会话来实例化。是否有一种“离线”品种允许先创建消息,然后再将其转换为成熟的 MIME 消息?我想留在 Java SE 中,但如果 SE 中没有这样的规定,备用 API 就可以了。

如果您创建这样的消息:

    Properties properties = new Properties();
    properties.put("mail.smtp.host", "smtp.example.com");
    properties.put("mail.smtp.port", "25");
    Session session = Session.getDefaultInstance(properties, null);
    MimeMessage m = new MimeMessage(session);
Run Code Online (Sandbox Code Playgroud)

消息对象可以发送到其他方法或类吗?或者它只会因为连接是假的而抛出错误?

java email api jakarta-mail mime-types

4
推荐指数
1
解决办法
7271
查看次数

gcloud 会显示图像系列选项吗?

我如何获得选项列表image-family

--image-family IMAGE_FAMILY
    The family of the image that the boot disk will be initialized with. When a family is specified instead of an image, the latest non-deprecated image associated with that family is used.

    By default, debian-8 is assumed for this flag. 
Run Code Online (Sandbox Code Playgroud)

https://cloud.google.com/sdk/gcloud/reference/compute/instances/create

linux cloud vps google-compute-engine gcloud

4
推荐指数
1
解决办法
4524
查看次数

如何为 Kotlin (Gradle) 构建导入 ShadowJar 插件?

构建失败:

thufir@dur:~/NetBeansProjects/kotlin_dsl$ 
thufir@dur:~/NetBeansProjects/kotlin_dsl$ gradle clean run 

> Configure project : 
e: /home/thufir/NetBeansProjects/kotlin_dsl/build.gradle.kts:4:12: Unresolved reference: github


FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'kotlin_dsl'.
> Could not open cache directory 74ykawxta6db3b2bfk9grjikp (/home/thufir/.gradle/caches/4.3.1/gradle-kotlin-dsl/74ykawxta6db3b2bfk9grjikp).
   > Internal error: unable to compile script, see log for details

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

* Get more help at https://help.gradle.org

BUILD …
Run Code Online (Sandbox Code Playgroud)

build gradle kotlin shadowjar gradle-kotlin-dsl

4
推荐指数
1
解决办法
6168
查看次数

从 Get-ChildItem -Path 返回对象数组

从 powershell 中,ls -R *.txt将按目录递归列出文件,或者更好:

PS> Get-ChildItem -Path C:\Test -Name
Run Code Online (Sandbox Code Playgroud)

日志

PS> Get-ChildItem -Path C:\Test -Name
Run Code Online (Sandbox Code Playgroud)

但我如何将其输入数组?我想要一个文件(?)对象本身的数组,查看:

Get-ChildItem "C:\WINDOWS\System32" *.txt -Recurse | Select-Object FullName

/sf/answers/1712811341/

我正在从这些类型的命令中寻找带有 powershell 的“文件”对象数组。

可能更好的语法:

Copy-Item -Filter *.txt -Path c:\data -Recurse -Destination C:\temp\text

但我不需要复制这些项目,而是想要一个对象,或者更确切地说,对象数组。不是文件的路径,也不是文件,大概是 powershell 引用或指向文件的指针。

(现在阅读精美的手册。)

windows directory powershell system-administration file

4
推荐指数
1
解决办法
7738
查看次数