Questions tagged [document]

1

votes
2

answer
1.3k

Views

Azure function C#: Create or replace document in cosmos db on HTTP request

I'm trying to build an Azure function in C# that creates a new document object in Azure cosmos DB using SQL API if an id doesn't already exist and updates a document object if it already exists. The context behind this is logging chatbot conversation history to unique user sessions. Input: HTTP GET...
Michael
1

votes
0

answer
2.2k

Views

Convert Pdf File path to Base64 String

I am trying to convert my pdf file to Base64 string as like below public static String convertFileToByteArray(File f) { byte[] byteArray = null; try { InputStream inputStream = new FileInputStream(f); ByteArrayOutputStream bos = new ByteArrayOutputStream(); byte[] b = new byte[1024 * 11]; int bytesR...
Jyoti
1

votes
2

answer
56

Views

Is there a way to to print the component raw code before rendered to the screen in Angular?

I am trying to build an angular UI component lib doc without using any third party document library like typedoc etc and found out it's hard to print out the raw component code example to screen, for example if I try: The will be rendered instead of showing the code. I generated an example here ht...
Yulu Zhang
1

votes
1

answer
83

Views

Is it possible to create a project documentset using graph API?

So far I haven't been able to find any information on how to create project documentsets on my Sharepoint environment using the Graph API. I've tried both Sharepoint's 'Create item' and OneDrive's 'Create Folder'. The Sharepoint API says: 'Files and folders should only be added to a DocumentLibrary...
Willem van Zantvoort
1

votes
1

answer
192

Views

How to display a ng2-chart with Angular 2 on dropdown menu click?

I want that if the user presses a button , a chart to show op on the page. I want to write this html into innerHTML: I tried to copy it like this but the chart doesnt show op. I think it doesnt read the properties well. document.getElementById('info').innerHTML = ' \n' + ' \n' + ' some text \n' +...
user3660293
1

votes
1

answer
260

Views

How to replace text html for convert to pdf ? Java

I want modify html file for convert this to pdf. Currently I convert an html file to pdf using 'ITextRenderer'. Currently: OutputStream out = new FileOutputStream(htmlFileOutPutPath); //Flying Saucer ITextRenderer renderer = new ITextRenderer(); renderer.setDocument(htmlFilePath); renderer.layout()...
Alonso Contreras
1

votes
1

answer
179

Views

I am trying to create a DocumentTermMatrix while keeping all special characters

Trying to do some text mining with R without removing any special characters. For example in the following 'LKC' and 'LKC_' should be different words. Instead it is dropping the _ and making it the same word. How can I accomplish this? library(tm) special = c('OLAC_ LA LAC LAC_ LAC_E AC AC_ AC_E...
jz_
1

votes
0

answer
255

Views

Android - document.write() blocks Google Ads - Doubleclick

I've found numerous questions about document.write() but none that responds to my specific problem. Short explanation The request to receive an ad from DoubleClick finishes successfully but the ad doesn't load (blank space instead of seeing an ad), these are the warnings provided by logcat in Androi...
aionescu
1

votes
1

answer
643

Views

Apache Virtual Host redirect to document root directory

I have successfully set the DocumentRoot for a given server names: DocumentRoot '/var/www/html/domain1' ServerName www.domain1.com ServerAlias *.domain1.com #Other directives here I can't seem to figure out, how to move the subfolders ie.'www.domain1.com/contact-us' so it presents index.html located...
sredwopclub
1

votes
1

answer
213

Views

CouchDB 2.0+ count all documents with a certain field value

I'm new to CouchDB and I'm looking for the best way to perform the following count: I've got documents that look like this: { field_1: 'some_string', field_2: 'some_other_string' } I want to count all documents that have a certain value in field_2, so that I know what´s the limit I should set when...
Sasha Fonseca
1

votes
0

answer
217

Views

VBA code to change Microsoft Word Document Classification

I am really sorry for the newbie question. I have searched online for hours, and tried numerous options to see if I can do it, but haven’t got very far. To start this question, I should say I am not a VBA coder by any stretch of the imagination, but I have created a document for my workplace tha...
StuckwithVBA
1

votes
1

answer
228

Views

Open url in same tab AND 'document.write' after

Half of my question was answered with this. I need to open another url (or replace location/href/src, whatever) in the current tab and after that inject HTML via document.write (or innerHTML, whatever) into the new page. The code will be used in a Chrome bookmarklet which will open an enhanced vers...
Peter White
1

votes
2

answer
57

Views

What is missing in my if statement to validate Credit Card function and how to return a value in the text?

Missing link to credit card validation using only JavaScript. Needs to have atleast two different digits and all digits should not be the same. I am unable to return values in the text please help thank you. Here is a link to the exercise. Credit Card Validation Credit Card Number* : Submit Text fun...
7MT00tm7
1

votes
1

answer
67

Views

is there a query in cosmos documentDB with a search until rule

so i am trying to query some data from a cosmos documentdb database as follows here is my data : { 'id': '**********', 'triggers': [ { 'type': 'enter_an_area', 'trigger_identity': '***********', }, }, { 'type': 'enter_an_area', 'trigger_identity': '********', }, }, { 'type': 'exit_an_area', 'trigge...
ibrahim.bond
1

votes
1

answer
65

Views

Add new document to term document matrix in R

I have term document matrix before and want to add new document to that term document matrix, in another way it can say to join two document matrix. My term document matrix is : Docs Term 1 eat 7 food 2 run 2 sick 3 Then another document is watch football match and eat food After the pr...
Hilfit19
1

votes
1

answer
181

Views

Disable body scroll while scrolling iframe in MOBILE

Below code In computer, I can disable body scroll while scrolling iframe by detecting mouse In mobile, I am trying to disable body scroll by detecting touch in body but NOT WORK. I can see h1 changed to auto if I touch a point outside of simulator and h1 not changed to auto if I touch simulator. Any...
Pak Ho Cheung
1

votes
0

answer
46

Views

macOS addPersistentStoreWithType causing “could not be autosaved” error

When I save NSPersistentDocument to iCloud using addPersistentStoreWithType and migratePersistentStore, addPersistentStoreWithType is causing 'The document APP_NAME could not be autosaved. The file has been changed by another application.' Error. I have autosave turned on for my NSPersistentDocument...
coolcool1994
1

votes
0

answer
117

Views

Cloud Firestore returns false when getting an existing document

I'm trying to retrieve a document by a specific id passed by parameter and I'm 100% sure the document exists but Firestore says the opposite. Here's the code of my function val db = FirebaseFirestore.getInstance() private fun retrieveUsersFromParticipantsId(participant: String) { db.collection('Usua...
JTorrus
1

votes
0

answer
55

Views

Empty list in Ravendb index creating exception

I have a problem that an index I've made when queried is throwing an exception : Could not read value for property: Members Here is the index : public class GroupsNameIdIndex : AbstractIndexCreationTask { public class Result { public string CommunityId { get; set; } public string Id { get; set; } pu...
BMills
1

votes
0

answer
17

Views

Office 365 document viewer - doesn't work with URL have port number

I am using office-365 document viewer to read the DOC/DOCX files in the browser. The public IP of the server have port number eg: xyz.com:3453 The IP is accessible publicly and I have already cross check the Document won't open Please help.
Anjil Panchal
1

votes
1

answer
50

Views

How to create an instance of an object type from parent document inside iframe?

I have an iframe like this : /***CEATE NEW OBJECT HERE***/ new MyObject(); and I want to create new object form most parent inside iframe. How can do it? I try to use window.top on this format : new window.top.MyObject(); but I get this error : Uncaught Error: no element is specified to initialize...
Mojtaba Arvin
1

votes
0

answer
34

Views

How do I choose between column-family and a document store database?

I'm working on a project, and I'm struggling to make a definitive decision on whether to use a column-family or a document store. My situation is as follows: The project I am working on is a hass.io application that will visualize certain data for Tesla cars. My project will run on a raspberry pi (p...
Muggenhoofd2
1

votes
1

answer
193

Views

How can I embed a document viewer in a web page and can customize viewer Ui

In my Web application (document management system) i am trying to add a document viewer what is view almost all type document like .pdf, .doc, .docx, .txt, .csvx etc, Must have to customize view functionality (show or hide - Download button, print button, zoom in out, showing or hiding number of pag...
Imranmadbar
1

votes
1

answer
55

Views

Requests in subdirectory of document root return 404

I've set the document root of my apache virtual host config file to laravel's public directory. I have an angular 4 app that builds into the public/dashboard-dist directory. I have added this directory as a location to search for views config/view.php like this: 'paths' => [ resource_path('views'),...
moonwalker
1

votes
0

answer
216

Views

Multiple sentence and document padding for text classification

Given a document is made up of multiple sentences, each sentence constitutes of tokens and each token has a pre-trained vector of say 50 dimensions, I would think the tensor would be (ndocs, nsents, nwords, ndims) to classify sentences with the sequential context of a document. In typical sentence...
dter
1

votes
2

answer
567

Views

How to view document directory in iOS emulator?

I wrote a React Native application that downloads a file and saves it to the document directory. The application gives me a path like this: /Users/laurent/Library/Developer/CoreSimulator/Devices/SOMEID/data/Containers/Data/Application/SOMEID/Documents and using macOS Finder I can see that the file h...
laurent
1

votes
0

answer
79

Views

Override document.write

I'm trying to override document.write so i will be able to take the raw html parse it make some manipulations on the code and return the call. My entire process is async so it's needless to say that when document.write is called if the page has finished loading the document.write will erase the enti...
avi dahan
1

votes
0

answer
45

Views

different result executing gensim examples

Below is a gensim's example, but whenever I execute it, it show different result, so I couldn't believe gensim works well. from gensim import corpora, models, similarities from collections import defaultdict documents = ['Human machine interface for lab abc computer applications', # 0 'A su...
semenbari
1

votes
2

answer
37

Views

I have been using following code but what does it mean in javascript?

I have been using these lines in my projects but i do not know what does it exactly means, can anyone please tell me what does it mean exactly. var myObject = window.myObject || {}; (function () { //....my logic will go here }).call(myObject);
zain222
1

votes
0

answer
39

Views

In Flutter, how can one list available documents?

I've searched through DuckDuckGo/Google, stackOverflow, Github and flutter documentation and plugin repository, but I can't seem to find the answer to this simple question: How can I list all available documents known to Android/IOS? the closest thing I could find was a document picker, but that giv...
dsilveira
1

votes
1

answer
958

Views

Firestore OncompleteListener [duplicate]

This question already has an answer here: How to check a certain data already exists in firestore or not 1 answer I want to see what is the error in this code for the executiom, when i compile it it just returns the values of log 1,3,2 , and i wanto log 2 to be before the 3 Log.d('1', 'antes de val...
1

votes
0

answer
393

Views

Distinct Query is not properly working in Cosmos DB

I have about 100 thousand records in Cosmos DB. I want to get the distinct records by some property. I am using Stored Procedure to acheive this and sets the page size to -1 to get the maximum records. When i fire a query without distinct, i get about 19 thousand records. At the same time if i fired...
Naveen Prasath
1

votes
1

answer
30

Views

Is it possible for my own document provider to be offered only within my app?

This is a very short answer, which I couldn't find an answer to, not in in the docs and not anywhere over the Internet: On Android, apps can offer the user to choose files from them, to be chosen from other apps. For example, the Google Photos app allows to choose photos files from it. This is done...
1

votes
1

answer
38

Views

directory and sub-directory path not working [duplicate]

This question already has an answer here: How to recursively list all the files in a directory in C#? 17 answers I have the following code, The problem i am having is its only looking at the root directory and not in the sub-folders within the root directory, how can i change it so it would look in...
Allen Soine
1

votes
0

answer
55

Views

How can we disable right click + copy + print option (Command + p) on Google Document viewer?

Requirement: Need to display the PDF within the application where all the links should be clickable in most of the browsers or at least in Google Chrome, Safari, and Mozilla browsers and disable i)right click, ii) copy and iii) print option (Command + p), in the pdf viewer. I have worked with the pd...
Mahesh Yeanethala
1

votes
3

answer
562

Views

What is the point of import { DOCUMENT } from '@angular/common'; if I can already access the document

Why should we bother using import { DOCUMENT } from '@angular/common'? Even without it I can access the document module document.getElementById('TestID).focus() The only difference I see with the import is having it attached to this keyword. this._document.getElementById('TestID').focus(); Is there...
L1ghtk3ira
1

votes
1

answer
46

Views

Document term matrix function returning 0 when applying the document term matrix

I have a corpus of 600 text files that I want to extract from it every numerical combination after the term mim and create the document term matrix to find frequencies per file.. i used this code, it extracted all the wanted terms but it returns 0 when applying the document Term matrix.. my corpus...
rachid rachid
1

votes
1

answer
192

Views

Select distinct on DocumentDB and C#

I am having a challenge retrieving data from my DocumentDB using C#. I get the expected results when I run the query below in my Azure DocumentDB data explorer. Ignore the use of contains query, it's a dynamically crafted query select distinct c.model from c where ( CONTAINS (c.manufacturer, \'BM...
Masinde Muliro
1

votes
1

answer
24

Views

Persisting PowerPoint, PDF, and such document files to Postgres database

I've been searching for a way to persist various file types, namely: PDF, JPEG, PowerPoint, to a Postgresql database from a web form using JDBC. I have come across the binary data type in Postgres, but I'm told that is not best practice. Is there another way to go about it or is serialization the o...
lochi79
1

votes
0

answer
29

Views

body content displaying behind footer issue?

HTML: Apple Music Spotify Shazam SoundCloud © 2018 GetMedia. All rights reserved. CSS: nav { flex-grow: 1; position: fixed; bottom: 0; right: 0; left: 0; } I don't understand why the body content is displaying behind the footer when I make the page smaller? It works when I remove the 'position: fi...
Nathan269

View additional questions