摘要: PageOffice 是一款实用的在线文档编辑工具,它让开发者能够轻松地向 Word 文档的特定部分动态地插入数据。在 PageOffice 中,这类特定部分主要涉及两个关键概念:数据区域(DataRegion)和数据标签(DataTag)。 1. 基本理念 数据区域:数据区域实际上是一种特殊的 W 阅读全文
posted @ 2023-04-10 17:44 ziwuxian 阅读(1780) 评论(0) 推荐(0) 编辑
摘要: #!/bin/sh curuser=`w -h | awk 'NR==1' | awk '{print $1}'` su - $curuser -c /etc/profile.d/xxxx.sh 阅读全文
posted @ 2022-12-22 11:31 ziwuxian 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 1 自定义MyHttp类 class MyHttp: NSObject, URLSessionDelegate { // 使用URLSession请求数据 func httpGet(request: URLRequest, completionHandler: @escaping (Data?, U 阅读全文
posted @ 2022-05-19 15:21 ziwuxian 阅读(231) 评论(0) 推荐(0) 编辑
摘要: 1. 右击你的工程(Project)2. 属性(Properties)3. 点击运行(RUN)4. 在VM Options属性框中填入: -Djava.library.path="你的dll文件的路径"5. 确定(Ok) 阅读全文
posted @ 2022-01-26 10:45 ziwuxian 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 一、注意事项 1、正确顺序是先插入U盘启动盘,再打开虚拟机,否则虚拟机无法检测到U盘;2、如果已经打开虚拟机,则需关闭,插入U盘后重新开启。二、设置方法:1、插入U盘启动盘,打开VMware,选中要设置的虚拟机,点击“编辑虚拟机设置”; 2、点击”添加”,选择“硬盘”,下一步; 3、磁盘类型保持默认 阅读全文
posted @ 2022-01-11 10:34 ziwuxian 阅读(19859) 评论(0) 推荐(1) 编辑
摘要: 参考链接: https://blog.csdn.net/qq_26779635/article/details/103574517 https://www.jianshu.com/p/1d020b01177c 1. 首先把vmware中的linux关机,然后打开设置-> 硬盘-> 扩展: 2. 打开 阅读全文
posted @ 2021-11-19 16:00 ziwuxian 阅读(1325) 评论(0) 推荐(0) 编辑
摘要: 现象: 原因及解决方法:webview嵌入H5中功能受影响,为缓存导致,没有开启local storage。 // 开启支持localstorage webView.getSettings().setDomStorageEnabled(true); webView.getSettings().set 阅读全文
posted @ 2021-10-15 17:52 ziwuxian 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 计算机硬件有两种储存数据的方式:大端字节序(big endian)和小端字节序(little endian)。 举例来说,数值0x2211使用两个字节储存:高位字节是0x22,低位字节是0x11。 大端字节序:高位字节在前,低位字节在后,这是人类读写数值的方法。 小端字节序:低位字节在前,高位字节在 阅读全文
posted @ 2021-09-09 13:17 ziwuxian 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 编写一个HelloWorld程序 #include <stdio.h> #include <stdlib.h> int main(int argc,char **argv) { while(1) { printf("hello world\n"); sleep(2);//2s } } gcc编译生成 阅读全文
posted @ 2021-06-18 14:07 ziwuxian 阅读(269) 评论(0) 推荐(0) 编辑
摘要: 打开或者新建工程出现报错Could not Get’https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.5.3/gradle-3.5.3.pom’. Received status code 400 fro 阅读全文
posted @ 2021-05-16 10:36 ziwuxian 阅读(1778) 评论(0) 推荐(0) 编辑
摘要: 1. 在docsify文档目录(比如:docs)下,创建genSidebar.js,拷贝下面的代码到genSidebar.js中保存; var sidebarTxt='* [首页](/)\n'; var path = require('path'); var curPath = path.resol 阅读全文
posted @ 2021-02-08 22:10 ziwuxian 阅读(885) 评论(0) 推荐(0) 编辑
摘要: 代码: mVerticalScrollbar = new QScrollBar(this); mHorizontalScrollbar = new QScrollBar(this); mHorizontalScrollbar->setOrientation(Qt::Horizontal); 执行结果 阅读全文
posted @ 2021-02-03 09:42 ziwuxian 阅读(785) 评论(0) 推荐(1) 编辑
摘要: #include <iostream> #include <string> using namespace std; template <class T> void MySwap(T &a, T &b){ T temp = a; a = b; b = temp; } template <class 阅读全文
posted @ 2021-01-30 12:40 ziwuxian 阅读(93) 评论(0) 推荐(0) 编辑
摘要: #include <ft2build.h> #include FT_FREETYPE_H #include <freetype/freetype.h> #include <freetype/ftglyph.h> int main() { FT_Library pFTLib = NULL; FT_Fa 阅读全文
posted @ 2021-01-12 11:27 ziwuxian 阅读(394) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #include <malloc.h> struct Hello{ void (*sayHello)(char* name); }; void sayHello(char* name){ printf("hello, %s\n",name); } int mai 阅读全文
posted @ 2020-12-28 12:04 ziwuxian 阅读(1932) 评论(0) 推荐(0) 编辑
摘要: typedef struct Person Person; typedef void (*Method)(Person *my_self); typedef struct Person { char name[12]; int age; int sex; Method behavior1; // 行 阅读全文
posted @ 2020-12-08 09:48 ziwuxian 阅读(76) 评论(0) 推荐(0) 编辑
摘要: /**设计模式 行为模式 观察者模式 凤姐与粉丝 *2013年7月28 cheqiang87@qq.com * */ #include <stdio.h> #include <stdlib.h> struct Fans { struct Fengjie* fengjie; void ( *updat 阅读全文
posted @ 2020-12-07 17:37 ziwuxian 阅读(235) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #include <stdlib.h> typedef struct node { char name[20]; struct node *prior, *next; } stud; stud* creat( int n ) { stud *p, *h, *s; 阅读全文
posted @ 2020-11-17 09:39 ziwuxian 阅读(258) 评论(0) 推荐(0) 编辑
摘要: sudo apt install libxrandr-dev 阅读全文
posted @ 2020-11-10 16:09 ziwuxian 阅读(2996) 评论(0) 推荐(2) 编辑
摘要: 原文地址:https://blog.csdn.net/weixin_38757817/article/details/109092774 为什么要使用pdf签章 pdf在办公过程中,做矢量文档工具,使用比较广范。在文档审批和发布过程中,也要求最后要pdf有效的签名或者印章,以示文档的重要性。 什么插 阅读全文
posted @ 2020-10-19 15:09 ziwuxian 阅读(7248) 评论(1) 推荐(0) 编辑