Fork me on Gitee
上一页 1 2 3 4 5 6 7 8 9 10 ··· 18 下一页
摘要: 启动生产者命令:kafka-console-producer.bat --broker-list localhost:9092 --topic haha启动消费者:kafka-console-consumer.bat --bootstrap-server localhost:9092 --topic haha --from-beginningkafka 配置文件:#################... 阅读全文
posted @ 2020-02-21 22:09 ---dgw博客 阅读(11010) 评论(0) 推荐(0) 编辑
摘要: 一、介绍knife4j是为Java MVC框架集成Swagger生成Api文档的增强解决方案(在非Java项目中也提供了前端UI的增强解决方案),前身是swagger-bootstrap-ui,取名knife4j是希望她能像一把匕首一样小巧,轻量,并且功能强悍!二、开源仓库Githubhttps://github.com/xiaoymin/swagger-bootstrap-ui码云https:/... 阅读全文
posted @ 2020-02-16 16:53 ---dgw博客 阅读(7535) 评论(0) 推荐(0) 编辑
摘要: 1:资源# 文档向导 # logstash https://www.elastic.co/guide/en/logstash/current/index.html #kibana https://www.elastic.co/guide/en/kibana/current/index.html #elasticsearch https://www.ela... 阅读全文
posted @ 2020-02-16 16:04 ---dgw博客 阅读(708) 评论(0) 推荐(1) 编辑
摘要: POM依赖 UTF-8 1.7.25 junit junit 3.8.1 test org.slf4j slf4j-api ${slf4j.version... 阅读全文
posted @ 2020-02-13 01:00 ---dgw博客 阅读(519) 评论(0) 推荐(0) 编辑
摘要: 将Redis作为服务运行如果使用MSI软件包安装Redis,则Redis已作为Windows服务安装。没事做。如果要更改其设置,可以更新redis.windows-service.conf文件,然后重新启动Redis服务(运行-> services.msc-> Redis->重新启动)。在安装MSI的过程中,您可以使用安装程序的用户界面来更新Redis侦听的端口和防火墙例外,也可以在没有UI的情况... 阅读全文
posted @ 2020-02-11 21:16 ---dgw博客 阅读(253) 评论(0) 推荐(0) 编辑
摘要: spring boot 版本为2.24 位最新稳定版本POM文件 4.0.0 org.springframework.boot spring-boot-starter-parent 2.2.4.RELEASE com.dgw moredatasoucre 0.0.1-SNAPSHOT more... 阅读全文
posted @ 2020-02-10 18:52 ---dgw博客 阅读(401) 评论(0) 推荐(0) 编辑
摘要: 使用Spring initialier 需要配置文件 POM文件 org.springframework.boot spring-boot-starter-web org.mybatis.spring.boot mybatis-spring-boot-starte... 阅读全文
posted @ 2020-02-08 21:51 ---dgw博客 阅读(271) 评论(0) 推荐(0) 编辑
摘要: tkinter自带显示图片只能使用git文件,其他格式必须通过PIL进行转换:显示的办法: 通过tkinter.label 通过tkinter.cavans一个重要的BUG是:下面tkImage 对象必须声明为 全局变量tkImage = None global tkImagepilImage = Image.open(output_path) img = pilImage.resi... 阅读全文
posted @ 2020-02-06 22:54 ---dgw博客 阅读(7281) 评论(0) 推荐(0) 编辑
摘要: 具体错误日志如下:The resulting error log is as followsTraceback (most recent call last): File "train.py", line 441, in train() # train normally File "train.py", line 324, in train dataloader=testloader) File... 阅读全文
posted @ 2020-01-25 01:38 ---dgw博客 阅读(3717) 评论(0) 推荐(0) 编辑
摘要: $ python train.py --data data/coco.data --cfg cfg/yolov3.cfgNamespace(accumulate=2, adam=False, arc='default', batch_size=32, bucket='', cache_images=False, cfg='cfg/yolov3.cfg', data='data/coco.data'... 阅读全文
posted @ 2020-01-21 21:03 ---dgw博客 阅读(937) 评论(0) 推荐(0) 编辑
摘要: 数字金字塔 #include <stdio.h> int main() { int i, j; int n; char maxLetr; char ch[26]; for(i=0; i<26; i++) { ch[i] = 'A' + i; } int x; scanf("%d,%c", &x, & 阅读全文
posted @ 2020-01-12 11:27 ---dgw博客 阅读(354) 评论(0) 推荐(0) 编辑
摘要: #include gboolean timeout_callback(gpointer data) { gdouble value; GString *text; value = gtk_progress_bar_get_fraction(GTK_PROGRESS_BAR(data)); value += 0.01; if(value > 1.0) { ... 阅读全文
posted @ 2020-01-08 20:18 ---dgw博客 阅读(451) 评论(0) 推荐(0) 编辑
摘要: ScaleButton的比例 我的项目 https://gitee.com/dgwcode/gtk_training_design 在阅读了官方文档后,我有两个小部件的演示程序: GtkScaleButton,提供了刻度的控制, 还有 GtkVolumeButton 我只需要设置GtkScaleBu 阅读全文
posted @ 2020-01-06 21:07 ---dgw博客 阅读(2366) 评论(0) 推荐(0) 编辑
摘要: Linux下C语言获取目录中的文件列表 分类:编程语言 代码如下:Linux下使用GCC 编译即可 #include <sys/types.h> #include <dirent.h> #include <unistd.h> #include <stdio.h> int main(){ DIR *d 阅读全文
posted @ 2020-01-06 20:30 ---dgw博客 阅读(5872) 评论(0) 推荐(0) 编辑
摘要: 编译GLib C程序 GLib是GTK +所需的实用程序库,但也可以在非GUI应用程序中独立使用。本文介绍如何在Linux中编译使用GLib的C程序。它还显示了如何为系统上安装的GLib版本安装正确的文档,以及如何查找当前安装的GLib库的版本号。 本文使用的命令和库已在Linux Mint 18上 阅读全文
posted @ 2020-01-05 16:38 ---dgw博客 阅读(1896) 评论(0) 推荐(0) 编辑
摘要: 一组模板文件,用于使用Glade for GUI启动新的GTK + 3 C编程语言项目。模板目录的结构将C源代码和Glade文件分隔为它们自己的子目录,并在主目录中带有一个makefile。 通过分离C源代码和Glade文件,这些模板文件使管理项目更加容易。生成文件允许随着项目的增长轻松地将源代码文 阅读全文
posted @ 2020-01-05 16:31 ---dgw博客 阅读(928) 评论(0) 推荐(0) 编辑
摘要: 1:概述 Java 有WindowBuilder 来可视化构建界面, C++ 可以选择QT 但是硬要用GTK 怎么办呢? 使用Glade啊 安装: ">sudo apt-get install glade 注意: 或者直接在Ubuntu的应用商店搜索安装, Ubuntu搜索安装会有三个, 最好自己试 阅读全文
posted @ 2020-01-03 21:24 ---dgw博客 阅读(1846) 评论(0) 推荐(0) 编辑
摘要: Failed to load module "canberra-gtk-module"错误的解决方案 解决: sudo apt-get install libcanberra-gtk-module 使用Glade 构建GTK应用 按钮失效 使用下面命令构建 gcc main.c `pkg-confi 阅读全文
posted @ 2020-01-03 20:10 ---dgw博客 阅读(1624) 评论(0) 推荐(0) 编辑
摘要: 1: 概述 是搜集别人的源代码, 自己修改了部分 ,主要目的是 应付学校的培训 GTK+ 实现的带背景的简易计算器: /*gcc -o calc.c `pkg-config --cflags --libs gtk+-2.0`*/ #include <gtk/gtk.h> #include <stdl 阅读全文
posted @ 2020-01-03 16:22 ---dgw博客 阅读(451) 评论(0) 推荐(0) 编辑
摘要: GTK+程序的基本框架分析 资料在此 https://gitee.com/dgwcode/technical_documents/tree/master/GTK 头文件〈gtk/gtk.h> 包括了 GTK+中所有的控件、变量、函数和结构的声明。 gtk_init():这个函数必须在控件定义之前使用 阅读全文
posted @ 2020-01-03 14:29 ---dgw博客 阅读(2165) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 18 下一页