3,266 questions
Best practices
0
votes
1
replies
24
views
Wants best practice for using built-in prose in fumadocs
The code below is real dirty.
I need a best practice for using fumadocs built-in prose
Would someone please help and send the best practice for this peace of code?
.prose {
--tw-prose-body: var(--...
Best practices
1
vote
2
replies
61
views
What is the best pattern for SwiftUI Document Application?
I am trying to create a full SwiftUI Document app (using swift 6, as it matters).
Apple doc says that the Document init(configuration:)and fileWrapper(configuration:)are called on a background thread -...
0
votes
0
answers
42
views
SwiftUI DocumentGroup + ReferenceFileDocument not saving changes after rename in iCloud Drive
I'm building a document-based app using SwiftUI's DocumentGroup with a custom ReferenceFileDocument. Everything works well when documents are created in the "On My iPhone" directory — they ...
1
vote
1
answer
178
views
"DOMException: Permission denied to access property "document" on cross-origin object" in Firefox browser
I cannot resolve the following error:
"DOMException: Permission denied to access property "document" on cross-origin object"
when i do this ::
const iframeELE = document....
1
vote
0
answers
61
views
Scaling RAG QA with Large Docs, Tables, and 30K+ Chunks (No LangChain)
I'm building a RAG-based document QA system using Python (no LangChain), LLaMA (50K context), PostgreSQL with pgvector, and Docling for parsing. Users can upload up to 10 large documents (300+ pages ...
1
vote
1
answer
38
views
database implementation constraints and documentation
a constraint requires me that.
"the value of B, present in table B1, must always be less than that of A present in table C1".
is it correct to implement two triggers to do this?
one that is ...
-1
votes
1
answer
124
views
How to make my Node.js + React app open documents such as .pdf or .doc in browser?
I am looking to display a list of available documents to the user that they can choose to either view in browser or download to their device. The downloading part is already done and working, however ...
0
votes
0
answers
207
views
How to display a Word-Document using the Document Viewer in ABAP
I have a requirement where different documents are saved as a xstring on a database table. These documents should now be displayed. For this I use the SAP Document Viewer. I got it to work with PDFs, ...
-1
votes
1
answer
77
views
How exactly to understand documentations without any explanation in Airflow?
I try to understand The PostgresHook in Airflow. Here is the documentation:
https://airflow.apache.org/docs/apache-airflow/1.10.6/_api/airflow/hooks/postgres_hook/index.html
Now for example if I wanna ...
0
votes
1
answer
40
views
Kentico 12 portal engine content tree files export with the folder structure
we use document library webpart in kentico 12 portal engine and the folder structure and files are placed inside the content tree. I am looking for options to export the whole folder structure with ...
0
votes
0
answers
79
views
html to pdf with chrome PrintToPdf in document style, with header and footer
I've a simple html document, with header, main Area and footer. The main Area contains content like Texts and Tables.
I would like to print the document only with html and css to pdf. The header and ...
1
vote
1
answer
64
views
How to use jquery $(this) with $(document).keyup
I have this code:
$(document).keyup( function(e) {
console.log($(this).attr('id'));
});
When typing in an HTML input tag with an id, the output in console.log is:
undefined
How then to use $(this) ...
0
votes
1
answer
272
views
How to Write and Highlight Custom Documentation for Neovim
I am new to Neovim, and I have written some plugins.
I want to learn how to write documentation. As far as I know:
*tag* - Defines a tag
|link| - Links to other help topics. Press `K` (...
0
votes
0
answers
32
views
Data missing from report populated for few column using grapecity.documents.gcExcel 7.2.1 version
I am using grapecity.document.gcExcel (7.2.1) and for few columns, data is not getting populated.
So I want to populate the data in column C, D, F, G, I, J but the data is getting populated in only ...
2
votes
1
answer
100
views
How to put justified paragraph alignment in Java
A quick help here, I was reading the library's manual but couldn't find any help.
I have the below code where I used the alignment BOTH in order to achieve the justified alignemnt that Word has, but ...
-1
votes
1
answer
103
views
Problems reading a file using java
I have a problem with my code since it allows creating documents which have Strings with measurements defined by the code itself. When I try to display them on the screen, the program gives me the ...
1
vote
0
answers
82
views
Issue with creating a .doc file and writing text to it
Task:
The task is to insert a string of any length into a new .doc (not .docx) file. This means creating a new .doc file and writing my string into it. I tried using the NuGet package NPOI.HWPF for ...
0
votes
0
answers
47
views
ReferenceError: document is not defined in nextjs
I am using zegocloud voice and video service to build video calling app. I have use nextjs framework and while building stage this page is occurring a document is not defined error in server side ...
1
vote
1
answer
66
views
Syntax problems with EXTRACT and DATE
Bigquery suggest me 'EXTRACT' funtion syntax:
extract(datetime_part FROM timestamp_expr [AT TIME ZONE tz_spec])
However, Bigquery notice "Unexpected keyword AT". Moreover, it's syntax in ...
0
votes
1
answer
799
views
cannot import name 'open_filename' from 'pdfminer.utils' error in loader.load() call
I am importing UnstructuredPDFLoader from langchain.document_loaders and trying to load a pdf file using the following command.
from langchain.document_loaders import UnstructuredPDFLoader
loader = ...
-1
votes
1
answer
59
views
How to make a MacOS document-based app recognize a ".txt" file in Open dialog
In XCode 13.3, I create a brand new Document-based MacOS application, called OpenTextDoc. It immediately runs, and when I choose the app's Open... menu command, the Open File dialog shows all files ...
1
vote
2
answers
50
views
OWL-api throws OWLOntologyDocumentAlreadyExistsException
I am trying to load two ontologies using OWL-api in Java. They way I load them is this:
String onto1_iri = "http://purl.obolibrary.org/obo/psdo.owl"
String onto2_iri = "http://purl....
0
votes
1
answer
49
views
Can I integrate Drupal document_ocr with tesseract?
I would like to use an open source image to text converter to populate text fields with in Drupal.
I tried setting the tesseract executable path in settings.php and thought that the document_ocr ...
0
votes
1
answer
75
views
Filter in MongoDB doesn't work as I expect
I have this collection
public class Notification
{
[BsonId]
[BsonRepresentation(BsonType.ObjectId)]
public string Id { get; set; }
[BsonElement("Text")]
public string ...
0
votes
1
answer
50
views
Calculation of document word vector in python. Sum or average word2vec?
I have some questions about generating a dissimilarity matrix of a bunch of text documents using word vectors. Here I tokenise the text, remove OOV and then sum the word vectors of each word to use as ...
1
vote
1
answer
177
views
What are Excel labels called and how are they stored?
My company recently implemented this as a requirement before saving a document:
In this case, the options are:
But I'm guessing that's specific to my company, not an Excel thing. I could be wrong.
...
0
votes
1
answer
156
views
While I am creating versions of a document in OneDrive using the Microsoft Graph API getting Error : 400 Bad Request and invalidRequest
Here going to create versions (version history) of a document using this type of curl
POST /v1.0/drives/{drive-id}/items/{item-id}/versions
Content-Type: application/json
{
"content": {
...
2
votes
1
answer
523
views
Injecting document into angular service for SSR
I am creating an angular library that has a root-level service class that references document. I'd like to add SSR support, but of course document is not defined in SSR context. It seems that Angular ...
0
votes
1
answer
40
views
Is it permitted to redistribute the pandas document? [closed]
I wonder what the license of the pandas document is. Is it permitted to redistribute it? I would like the local readers to have fast and stable access to the document.
I have tried to find the license ...
0
votes
1
answer
474
views
PathNotFoundException: Cannot open file, path = '/data/user/0/com.example.future_fit/app_flutter/preset_test.tx
Future<void> readFile() async {
final Directory directory = await getApplicationDocumentsDirectory();
final File file = File('${directory.path}/preset_test.txt');
try {
final contents = await ...
0
votes
2
answers
2k
views
react-native-document-scanner-plugin React Native document scanner plugin for Android not scanning automatically or cropping correctly
I'm currently developing a React Native app that incorporates a document scanning feature using the react-native-document-scanner-plugin. While the plugin functions flawlessly on iOS devices, I've ...
1
vote
1
answer
346
views
How to automate word document from Json data using python
I have a JSON file. How can I create a word document from JSON data. Using templates, I can only fill in one variable. How do I create dynamic word template based on number of values inside JSON list? ...
0
votes
0
answers
62
views
Layout Not Being Drawn to PDF Properly in Android
I'm using the following code to create a document and write to a file. However, when I view the created pdf file, all the views have been drawn except for images. I tried to set the layout as the ...
0
votes
0
answers
41
views
Im developing a requirement where i have some content and table in a page and if table exceeds the page, then it must continue in next page in Java
I need a pdf file where it must contains borders on all side with some text content on top and table under the text, when the table exceeds the border, it must continue in the next page,
Im using ...
1
vote
0
answers
123
views
Give "Human Reading" order to bounding boxes (Sort Bounding Box)
I want to sort bounding boxes in a way that a human would read a document using python.
Context:
I have a PDF document and I am using unilm DiT (Document image Transformer) to know which parts are ...
0
votes
0
answers
31
views
Challenges in translating a document using Azure
Addition of the words YES and NO to Korean documents without association with the document's context.
enter image description here
2.Encounters challenges in precisely translating documents ...
1
vote
1
answer
276
views
Send document using Telegram bot API Javascript
Executing the following code return this error "Bad Request: there is no document in the request"
const FILE_PATH = path.join(__dirname, "test.txt");
const document = fs....
1
vote
3
answers
267
views
How do I add various document types to a Firebird BLOB field with Delphi
Background: Our product includes a document management system that allows users to save and retrieve various document types (.PDF, .DOC, .JPG, .PNG, .TIF, etc.). Currently there is a record in the ...
-1
votes
1
answer
50
views
Mongodb find operation in embedded document
My requirement is to create a embedded document in mongodb collection through Java and here's the structure
folder
{
_id: String, // location id
documentVersion: int,
locationDisplayName: String;
...
0
votes
0
answers
35
views
Javascript that displays different page every hour needs to open in new window
I have javascript on my page which opens a different page every hour of the day. This example uses a text link in the code. It opens in the same window it is displayed on. Works fine except I need it ...
0
votes
0
answers
165
views
DOMPDF - Script to convert HTML to PDF using DomPdf library
I have written a scrip to create a pdf using dompdf using a simple textarea post to collect the code to be converted. When I download the document, it doesn't render correctly.
The pdf displays ...
1
vote
1
answer
131
views
Issues with text copying in the Syncfusion Document Editor
I am encountering issues with text copying in the Syncfusion Document Editor for Angular. In the attached document, when I attempt to copy the second sentence and paste it elsewhere, some text are ...
0
votes
2
answers
79
views
Issue while concatenating 2 docx files
I am trying to create a combination docx file that will be the concatenation of 2 docx files. I have the following python code:
from docx import Document
files = ['Doc2.docx', 'Doc3.docx']
def ...
2
votes
1
answer
2k
views
Module Not Found Error: "langchain.chains.question_answering"
I am trying to code a document chat bot using langchian. I installed the following first using :
$ pip install langchain langchain-openai pypdf openai chromadb tiktoken docx2txt*
When I run try to ...
1
vote
1
answer
425
views
View XPS and PDF in browser
I need to set up document viewing in the browser. The documents could be either in PDF or XPS formats. I attempted to use an iframe. While PDF documents are being displayed, XPS ones are being ...
0
votes
1
answer
518
views
Polarion API - get the document revision number
I am wondering if it is possible to retrieve a newly created document revision number through the Polarion API.
Currently I am trying to branch a source document to a new one but I can't get the ...
0
votes
0
answers
137
views
Why I am not able to set to document or window object in js?
When I inspected and in console I wrote window.document = null; or window = null;. This do not assign null for respective props, why such behaviour?
If so, then can I explicitly disable any object or ...
1
vote
0
answers
52
views
Python Docx - How to read the section (list of paragraphs, images, tables) that are linked to a word in another section using hyperlink
Docx file has a paragraph where a work has hyperlink to internal (in same docx file) section.
I am trying to use python-docx library but stuck at finding the section using hyperlink found with a word.
...
1
vote
1
answer
408
views
h2ogpt: unable to add document to collection to chat
In h2ogpt I am unable to add document to collection to chat.
https://docs.h2o.ai/h2ogpte-docs/guide/collections/add-documents-to-a-collection states to click on "Add documents" however I do ...
1
vote
0
answers
113
views
How to download Spreadsheets in odoo?
I am currently grappling with the technical challenge of automating the download process for spreadsheets associated with sale order lines in odoo. The objective is to streamline the workflow by ...