doc

h5技巧 · yzxwn

允我心安 提交于 2019-12-06 03:45:00
h5技巧 小结 手机端横屏 微信QQ授权 小结 z-index设为负数时,在ios上可能会被默认为0的body元素遮挡 禁止QQ浏览器的默认下拉事件,和手动缩放页面功能 document.addEventListener('touchmove', (evt) => { if (evt.cancelable) {// 判断默认行为是否可以被禁用 if (!evt.defaultPrevented) {// 判断默认行为是否已经被禁用 evt.preventDefault();// 禁用默认行为 } } } , false); QQ浏览器调用键盘时会触发window.onresize事件,其他浏览器不会 QQ内置浏览器不能自动执行window.open()事件 移动端输入框 手机端横屏 原文 const screen = () => { const width = document.documentElement.clientWidth; const height = document.documentElement.clientHeight; const doc = document.getElementsByClassName("watch")[0]; if(width>height){ doc.style.width = width + "px"; doc.style

PDF or Word creation documents with Yii?

本小妞迷上赌 提交于 2019-12-05 21:00:02
Hello I'm building an application with Yii that will now generate reports. My client wants to edit the reports after these are generated. I think the best option is creating a Word document so my client will be able to edit it, but I can't find information or extensions to create Word documents with Yii Framework. I've also seen but not test yet a couple of PDF extensions such as DOMPDF, tcpdf and Zend_PDF. But if I generate a PDF report, then, how is my client going to edit this file? Guys I need recommendations on how to tackle this requirement. Generate Word or PDF documents? Which will be

Document support (rtf, doc, docx) for UWP/Windows 10 Mobile

孤街醉人 提交于 2019-12-05 19:47:15
How can I display documents (doc, docx, rtf) in an UWP app? The WebView isn't able to do this. Other options would be calling an external application with Windows.System.Launcher.LaunchUriAsync (e.g. Word) or using a 3rd party library. The requirement is to have the data in the app, because you don't have control over it, if it's handled to another one. Another option would be to convert it to another format (e.g. PDF) which UWP can handle (not really). Any ideas? If you would like to display word or pdf files in the UWP app you can use WebView control with Google Docs Viewer - I was using it

Java 添加、读取、修改、删除Word文档属性

浪子不回头ぞ 提交于 2019-12-05 19:34:26
Word文档属性包括常规、摘要、统计、内容、自定义等,其中摘要包括标题、主题、作者、经理、单位、类别、关键词、备注等项目,通过设置这些摘要信息或自定义属性可方便对文档的管理。本文中将主要介绍对文档摘要信息的添加,以及读取或者编辑、删除文档中已设置的摘要信息或自定义文档信息。下面将通过Java代码详细介绍。 使用工具: Free Spire.Doc for Java (免费版) Jar 文件获取及导入: 方法 1 : 通过官网 下载 。下载后,解压,将lib文件夹下的Spire.Doc.jar文件导入java程序。 方法 2 : 通过maven安装 导入 。 【添加 Word 文档属性】 import com.spire.doc.*; import java.sql.Date; import java.time.Clock; import java.time.LocalDate; public class AddDocumentProperty { public static void main(String[] args){ //加载测试文档 Document doc = new Document("test.docx"); //设置内置文档属性 doc.getBuiltinDocumentProperties().setTitle("操作手册"); doc

Kibana数据可视化

拟墨画扇 提交于 2019-12-05 14:17:21
Kibana数据可视化 1,3.1使用logstash导入数据的问题 会出现错误提示: [location] is defined as an object in mapping [doc] but this name is already used for a field in other types 错误原因是创建的mapping为accident,但是默认覆盖的mapping默认为doc,与之前创建的不一样; 本机ELK版本为6.2.4;logstash对于处理过的数据不会重复处理,需要删除data文件夹里面的内容,之后重复导入; 处理办法,修改csv_to_es.conf,删除了其中的 type内容; input { file { path => "/Users/stono/Downloads/LK5/Chapter3/source/accident*" start_position => "beginning" } } 修改template.json,mapping下面doc名称为doc; { "template" : "accident*", "mappings" : { "doc": { "properties": { "location": { "type": "geo_point" }, "involvedCount": { "type": "double" }

ElasticSearch 调优

早过忘川 提交于 2019-12-05 07:07:45
来源:http://tinyurl.com/y4gnzbje 第一部分:调优索引速度 第二部分-调优搜索速度 英文原文:https://www.elastic.co/guide/en/elasticsearch/reference/current/how-to.html ES发布时带有的默认值,可为es的开箱即用带来很好的体验。全文搜索、高亮、聚合、索引文档 等功能无需用户修改即可使用,当你更清楚的知道你想如何使用es后,你可以作很多的优化以提高你的用例的性能,下面的内容告诉你 你应该/不应该 修改哪些配置 第一部分:调优索引速度 (https://www.elastic.co/guide/en/elasticsearch/reference/current/tune-for-indexing-speed.html) 使用批量请求批量请求将产生比单文档索引请求好得多的性能。 为了知道批量请求的最佳大小,您应该在具有单个分片的单个节点上运行基准测试。首先尝试索引100个文件,然后是200,然后是400,等等。当索引速度开始稳定时,您知道您达到了数据批量请求的最佳大小。在配合的情况下,最好在太少而不是太多文件的方向上犯错。请注意,如果群集请求太大,可能会使群集受到内存压力,因此建议避免超出每个请求几十兆字节,即使较大的请求看起来效果更好。 发送端使用多worker

C#/ASP.NET - Get thumbnail from PDF/DOC files

冷暖自知 提交于 2019-12-05 05:56:06
问题 I have an ASP.NET WebForms application (written in C#) that allows users to upload files using the FileUpload control. What'd be great is if I could automatically generate thumbnails from files. Images such as JPG/PNG are trivial of course, but users will often upload .DOC and .PDF files - is there a way I can essentially convert .DOC and .PDF files to images so I can get a thumbnail? Thanks! 回答1: For PDf you can try ABCPDF from websupergoo. With that you should be able to generate a

实现word在线预览 有php的写法 也有插件似

孤人 提交于 2019-12-05 04:21:33
<?php //header("Content-type:text/html;charset=utf-8"); //word转html 展示 $lj=$_GET['file'];//传来的是文件位置 具体看自己的传值 upload/user/20170306/20170306xgtlne.doc $lj=str_replace("/",'\\',$lj);//把路径改为\号 例如 upload\user\20170306\20170306xgtlne.doc function word2html($wordname,$htmlname) { $word = new COM("word.application") or die("Unable to instanciate Word"); $word->Visible = 1; $word->Documents->Open($wordname); $word->Documents[1]->SaveAs($htmlname,8); $word->Quit(); $word = null; unset($word); } //服务器或本地的word具体位置 例如'D:\phpStudy\WWW\GongshuUnion\.upload\user\20170306\20170306xgtlne.doc' $address='D:

can git be used for version control on non text documents such as word doc or xls etc

倾然丶 夕夏残阳落幕 提交于 2019-12-04 23:34:32
I've been learning about the GIT version control system recently and It seems to work very well for plain text documents as you can add a single line, go back and fork it, revise the document and remove the line you just added. I program mostly in excel and write documentation in word. Can GIT be used to manage versions of these files (obviously not the stuff inside the files, but the files themselves?) Git is agnostic in the sense that it doesn't matter which files you put under version control. When git can't recognise the type of a file it just treats it as binary data for versioning

Elasticsearch----补

99封情书 提交于 2019-12-04 21:55:09
一、集群信息查看 GET /_cluster/health GET _cat/health?v 查看集群健康状况,status="green":表示每个索引的primary shard和replica shard都是active状态的                              ="yellow": 表示每个索引的primary shard是active,但是部分replica shard都是不是active状态的                              ="red":表示不是所有索引的primary shard是active,部分索引有数据丢失。 GET _cat/indices?v 快速查看集群中索引的情况 PUT /index_test?pretty 新建索引 index_test:测试的索引名 DELETE /index_test 删除index_test索引 二、使用(我们可以使用Postman访问接口) 1、创建索引库(用于集群时候的设置) put http://localhost:9200/xc_course //索引库名称 { "settings":{ "index":{ "number_of_shards":1, "number_of_replicas":0 } } } number_of_shards:设置分片的数量