Category Archives: 计算机相关

DocBook XSL Stylesheets with Apache FOP是什么技术路线

DocBook XSL Stylesheets with Apache FOP 是一种将 DocBook XML 文档转换为 PDF(可移植文档格式)文档的技术管道。

以下是管道中每个组件的简要说明:

DocBook:它是一种基于 XML 的标记语言,用于编写技术文档,包括书籍、文章和手册。

XSL Stylesheets:XSL(可扩展样式表语言)是一种用于将 XML 文档转换为其他格式(如 HTML、PDF 或 RTF)的语言。DocBook 提供了一组 XSL 样式表,可用于将 DocBook XML 转换为不同格式,包括 PDF。

Apache FOP:Apache FOP(Formatting Objects Processor,格式化对象处理器)是一种基于开源 Java 的软件,可用于将 XSL-FO(可扩展样式表语言格式化对象)转换为 PDF。DocBook 的 XSL 样式表旨在与 Apache FOP 一起使用,以便可以将 DocBook XML 转换为 PDF 文档。

通过使用此技术管道,作者可以使用 DocBook XML 编写技术文档,然后使用 XSL 样式表和 Apache FOP 转换为高质量、专业外观的 PDF 文档。

HTML怎么友好的转换为PDF

HTML 可以通过使用提供布局和格式选项的工具,以友好的方式转换为 PDF。有多种可用的库和在线工具,包括:

  1. wkhtmltopdf:这是一个命令行工具,可以使用 Webkit 渲染引擎将 HTML 转换为 PDF。
  2. Prince XML:这是一个商业库,可以用于使用高级布局和格式选项将 HTML 转换为 PDF。
  3. PDFreactor:这是一个商业库,提供了服务器端解决方案,用于将 HTML 转换为 PDF。
  4. 在线 HTML 转 PDF 转换器:有许多可用的在线工具,可以将 HTML 转换为 PDF,例如 SmallPDF、Adobe Acrobat 等。

通过使用这些工具之一,您可以确保 HTML 内容转换为具有视觉吸引力和易于阅读的 PDF 文档。

PDF的技术路线

1、适合做产品单页

LaTeX with hyperref
PDF 制作程序:MikTeX-dvipdfmx(20210609)

 

2、适合做数据文档、数据手册、说明书

DocBook XSL Stylesheets with Apache FOP
PDF制作程序:Apache FOp Version 2.5
PDF 版本:1.4 (Acrobat 5.x)

Linux4.9.7 + aarch64-linux-gun 4.7 交叉编译QT5.12.9

1.下载安装交叉编译器

2、设置交叉编译器环境变量

使用 vi 指令编辑/etc/profile 这个文件。
sudo vi /etc/profile
打开/etc/profile 以后,在末尾添加如下所示内容。

如:   export PATH=$PATH:/usr/local/arm/gcc-linaro-4.9.4-2017.01-x86_64_arm-linux-gnueabihf/bin

添加完成如下图,保存退出,重启系统。

aarch64-linux-gun-gcc -v  查看gcc版本信息

aarch64-linux-gun-g++ -v 查看g++版本信息

3、添加 Qt 支持触摸库 tslib

下载地址:https://github.com/kergoth/tslib

编译方式 :

编译 tslib
生成 Makefile,还需要安装以下软件。
sudo apt-get update
sudo apt-get install autoconf automake libtool
执行 autogen.sh 生成 Makefile,以编译源码。

 

执行预编译:

./configure –host=arm-linux-gnueabihf ac_cv_func_malloc_0_nonnull=yes –cache-file=arm-linux.
cache -prefix=/home/alientek/tslib-1.21/arm-tslib

直接执行 make 编译及 make install 安装。
make
make install

4、编译QT源码

创建预编译脚本:autoconfigure.sh

./configure -prefix /home/forlinx/work/qt-everywhere-src-5.12.9/arm-qt \
-opensource \
-confirm-license \
-release \
-strip \
-shared \
-xplatform linux-aarch64-gnu-g++ \
-optimized-qmake \
-c++std c++11 \
–rpath=no \
-pch \
-skip qt3d \
-skip qtactiveqt \
-skip qtandroidextras \
-skip qtcanvas3d \
-skip qtconnectivity \
-skip qtdatavis3d \
-skip qtdoc \
-skip qtgamepad \
-skip qtlocation \
-skip qtmacextras \
-skip qtnetworkauth \
-skip qtpurchasing \
-skip qtremoteobjects \
-skip qtscript \
-skip qtscxml \
-skip qtsensors \
-skip qtspeech \
-skip qtsvg \
-skip qttools \
-skip qttranslations \
-skip qtwayland \
-skip qtwebengine \
-skip qtwebview \
-skip qtwinextras \
-skip qtx11extras \
-skip qtxmlpatterns \
-make libs \
-make examples \
-nomake tools -nomake tests \
-gui \
-widgets \
-dbus-runtime \
–glib=no \
–iconv=no \
–pcre=qt \
–zlib=qt \
-no-openssl \
–freetype=qt \
–harfbuzz=qt \
-no-opengl \
-linuxfb \
–xcb=no \
-tslib \
–libpng=qt \
–libjpeg=qt \
–sqlite=qt \
-plugin-sql-sqlite \
-I/home/forlinx/work/tslib/arm-tslib/include \
-L/home/forlinx/work/tslib/arm-tslib/lib \
-recheck-all

说明:

(1) /home/forlinx/work/qt-everywhere-src-5.12.9/arm-qt 为编译输出路径。
(2) /home/forlinx/work/tslib/arm-tslib/include 为第二章 tslib 头文件路径。
(3) /home/forlinx/work/tslib/arm-tslib/lib 为第二章 tslib 相关库文件路径。

 

直接执行 make 开始编译。
time (make -j 16) // -j 16 代表最多允许 16 条编译指令同时运行,参数 16,一般为
个人分配给虚拟机的核心数的 2 倍,前面加个 time 是测试编译时间。

make intsall 安装

 

 

Online Dating Safety and How to Recognize Red Flags

One of the key questions surrounding online dating is whether these platforms lead to long-term relationships. Some 53% of adults under 30 have ever used a dating site or app – including a quarter who have used one in the past year. This compares with 37% of those ages 30 to 49 who have ever tried online dating and smaller shares of those 50 to 64 (20%) and 65 and older (13%) who say the same.

  • “They are being tricked meeting up with people. And once they are getting there, they are actually taking money from them and things like that.”
  • Additionally, male profiles that had a biography received 69 matches while those without received only 16 matches .
  • There are also useful questionnaires that give you insight into your actually any traits and compatibility skills, which can help australia online dating game regardless of really hookup you end up using the most.
  • According to Pew’s survey, 44 percent of online daters say they are looking for a long-term partner, 40 percent are interested in casual dating, 24 percent want casual sex, and 22 percent are just interested in friendship.

Pluralities also believe that whether a couple met online or in person has little effect on the success of their relationship. There are some groups who are particularly wary of the idea of meeting someone through dating platforms.

Tip 2: Build a genuine connection

Dating experts reveal the common blunders singles make with their photos, bios and prompts. Here are the new rules around ending a relationship by Zoom or texts. Furthermore, when describing themselves, people will often present their best selves while leaving out flaws. Some users may even deceptively present inaccurate information on their profile merely to get someone interested in them. Of course, hobbies and sports are always a great way to mingle. Consider joining a sports club or take lessons for an activity you want to start doing. Some people recommend Meet Upas a fun way to find people nearby who are interested in the same activities, whether that’s skating or going to museums or concerts.

The New Happy Has 500k Instagram Followers—Here’s How the Founder Built a Real Community

Once the quiz is completed, you fill out your profile with prompts, photos, and icons to indicate your hobbies and interest. Our tester says the profile took at least 20 minutes to complete, although not all users include the same level of detail on their profiles. Every Thursday, the app comes to life with people near you who also want to meet that day. In the time it takes to order a drink on one date, you’ll be matched with 3 users in your area that match your preferences. As sparks typically fly in just moments, these mini-dates save users time and energy–all from the comfort of your couch. We believe in quality over quantity, and that smart daily recommendations are better for busy people than an unlimited buffet of options. We let you set ultra-specific preferences and only suggest you a few Prospects a day that we think you will actually like.

A few of the best or cheapest competitors reaped significant gains while many former domestic champions or viable competitors lost out. These sites also generate significant levels of inequality, especially for men. One analyst found that“like inequality” for men on Tinderis higher than income inequality in the United States . Ananalyst at Hinge foundthat women’s inequality on that site was roughly equal to the average income inequality for the world’s countries (aGini coefficientof 0.376), similar to Western Europe.

Pure is a perfect match for those who value confidentiality, as profiles are removed every 24 hours. You can also send random pictures that will self-destruct a few seconds after your partner sees them. Even though Tinder claims to cater to all types of dating, everyone knows it’s best for one-night stands. Swipe right to meet people or left to remove them from your view. Priced at the higher $32 to $40 a month depending on age, all the Tinder Gold and Plus benefits are included at this tier.