Questions tagged [document]

1

votes
1

answer
62

Views

How to run JavaScript code as soon <body> element is defined?

Here is my code: Foo console.log('test') Foo I want to move the JavaScript in this code from into . Here is my incorrect attempt: Foo window.onload = function () { console.log('test') } Foo This of course does not do what I want. It runs the JavaScript only after the whole page has loaded. But I wa...
Lone Learner
1

votes
1

answer
17

Views

Is it safe to store documents under public_html if htaccess doesn't allow browsing folders?

I understand it's commonly suggested that documents such as user uploaded files be stored below the web root. However if the documents are stored in a folder in public_html and htaccess is setup to block the browsing of folders and the filename of the uploaded file is say a long randomly generated s...
dlofrodloh
2

votes
1

answer
25

Views

Angular Firebase: Accessing field maps for authentication

I have a firebase collections of users > document id > uid, ..., and roles { admin: boolean, moderator: boolean, client: boolean }. My authentication process works correctly with the guards redirecting as needed. More importantly I am display 90% of the data in applicable components within my users...
Navraj Bains
1

votes
2

answer
1.4k

Views

Exception java.lang.SecurityException: reading ..MediaDocumentsProvider … requires android.permission.MANAGE_DOCUMENTS, or grantUriPermission()

I found this issue only in some devices when trying to pick the picture for the profile image. While checking in the emulator these issue are not seen but on live version of the app this issues are facing by this users. Screenshot captured from the firebase crash report. Please help me to figure out...
jazzbpn
0

votes
0

answer
3

Views

delete file from removable sd card using Storage Access FrameWork?

In my app i am getting files using content resolver and there i get paths like storage/BBF2-F/Music/Piano.mp3 now i want to use this path accessible to Document Provider class which can help in deleting it from removable storage card. or how can i convert uri from content resolver to document tree u...
A-J
1

votes
1

answer
517

Views

Liferay document checkout/in permission

I am using Liferay 6.2 EE sp7 Tomcat bundle on Linux. We have a use case for the normal regular users to upload, check in and out documents from the document and media portlet. I see the Checkout and Check in options when I am logged in as a administrator but not as a regular user who is a site mem...
VC1
1

votes
1

answer
484

Views

Why jQuery $(document).ready() not firing inside Rails render view after failed validation(s)?

I've a Rails app and I run rails g scaffold friends name. Inside my Friend model, I put this: class Friend < ActiveRecord::Base validates_presence_of :name end and this is my new and create action inside FriendsController: def new @friend = Friend.new end ... def create @friend = Friend.new(friend_p...
Zulhilmi Zainudin
1

votes
1

answer
461

Views

Differences between adoptNode and importNode

What are differences between importNode and adoptNode on Document object in JavaScript?
Misaz
1

votes
1

answer
93

Views

Creating classes for using Document Conversion and Concept Insights in Java

So I want to make classes for using Concept Insights on HTML documents converted from PDF thanks to Document Conversion. I am using an Eclipse IDE with a view of my Git directory. When I run it, I get no response. I want to keep it neat but make sure that each method gets the information it needs. A...
Tara E
1

votes
1

answer
284

Views

Xpages , Change document mode using Computed property menu button

I want to set the document mode onclick dynamically. When I click a button, the onclick action is 'Change Document Mode',In which we have 4 options to select. Toggle 2. Read Mode 3. Auto Edit and last is Edit Mode. But Beside this the computed property button is provided, Below image can make the q...
Ajit Hogade
1

votes
5

answer
110

Views

jQuery not seeing string in span that's displayed with php echo

My php page looks something like this (with jQuery loaded above the script). It works correctly (the css for #desc-* changes from display:none to display:inline) when the text within span id='description' is normal text, but when using php echo function (it's retrieving the string value for $itemdes...
1

votes
1

answer
526

Views

R construct document term matrix how to match dictionaries whose values consist of white-space separated phrases

When do text mining using R, after reprocessing text data, we need create a document-term matrix for further exploring. But in similar with Chinese, English also have some certain phases, such as 'semantic distance', 'machine learning', if you segment them into word, it have totally different meanin...
Fiona_Wang
1

votes
3

answer
241

Views

Numbered lists continues when Apps Script appends template-content into document

I have an Apps Script that copies the content of an template-file to the end of a document. It works with one minor annoyance: the numbered list continues from one copy to the next. I have many different templates that users can append to the end of the document. Each template is stored in its own D...
1

votes
3

answer
3.1k

Views

Change Spotfire Document Properties value using javascript

I want to Change the value assigned to a Document Property in spot fire. Lets say i have created a new document property called 'Test1' as a string and assign it a value 'a'. Is there are way to change this value using Javascript every time i load the spotfire dashboard ?
Drake
1

votes
2

answer
841

Views

DocumentDB - Storing telemetry data

so a quick update on why I created this question. We currently are storing our telemetry data of our devices in the field within Azure SQL Server. This is working great (have a ton of experience with EF, LINQ and relationship dbs) BUT I am aware that this most likely isnt the best solution especiall...
David
1

votes
3

answer
1.6k

Views

Dynamically insert HTML after page load (and change after key press)

When my page loads, content is pulled from a database with PHP and populated within numerous Bootstrap .col-xs-3 columns, all within a single .row. However, I need to close off the .row and start a new one every four columns using JavaScript/jQuery after the page has loaded and also on keyup, insert...
mpdc
1

votes
1

answer
114

Views

How to identify document categories like Movie or Biography

I am currently running a task of categorizing some documents into some pre-defined sets of classes. For this, I am relying on Multinomial Naive Bayes, and it works fine for most categories like baseball, sports or space. However, how do I find out articles of categories like movies or biography of s...
SexyBeast
1

votes
1

answer
595

Views

Listener Events being reset on setData and mode change, using CKEditor

Whenever my script calls setData or changes the mode ('source', 'WYSIWYG'), the Listeners for the Events I have assigned, are no longer called. Research has taught me why and I have been experimenting with suggested solutions (CKEDITOR.setData prevents attaching of events with .on function), includi...
Ken Haynes
1

votes
1

answer
75

Views

How to make a pdf document unique?

I am developping a web app which generates questions of a trial. So security is very important in the project. When the draw of the question for the trial is done then the app creates a pdf document of it. And I write an encrypted string at the footer of the document : public function Footer() { if...
pheromix
1

votes
1

answer
131

Views

roslyn How to add “#define VAR” on top of C# document

I'd like to edit a C# document using roslyn adding a #define trivia on top of it. For example let's say I have the following namespace MyNameSpace { } I'd like to make it #define X namespace MyNameSpace { } I tried the following: DocumentEditor editor = var compilationUnit = SyntaxFactory.ParseComp...
Dimitar Milov
1

votes
1

answer
1k

Views

Update multiple documents with aggregated values in MongoDB

Problem 1 I have a collection named recipe in which all docs have a array field ingredients. I want to count those array items and write them into a new field ingredient_count. Problem 2 There is also a collection named ingredient. The docs have a count field which is the total number of uses in all...
Alp
1

votes
1

answer
48

Views

DocuSignApi - how to set the email message sent

Looking at the DocuSignAPI, I cannot see where one can set the body text of the email generated that accompanies the email. How can I assure my prospect, being asked to sign a document, that it is from me - and reiterate the instructions and who to call if there's a question?
Eric Hofer
1

votes
1

answer
41

Views

Initializing a variable in script at .php page and not getting it in .js file

In my .php page at bottom (function ($) { $(document).ready(function () { var Atest = 'Hi'; $.getScript(app_consts.VIEW_JS + 'something.js'); }); })(jQuery); In the something.js file I have writen (function ($) { $(document).ready(function () { console.log(Atest); }); })(jQuery); And in the console...
Rana Ghosh
1

votes
1

answer
238

Views

Why am I missing the last letter in term document matrix?

I am new to R and I'm trying to create term document matrix with a csv file. But the results show that some of the words are missing the letter 'e' in the end. How can I make the term document matrix showing the full words? It will be great if you could also let me know when you see a part that does...
Amelia
1

votes
1

answer
156

Views

Multiple document uploads to Wagtail Page

Hi I am new to Wagtail and wondered if there is a simple way of adding multiple downloads to a single page type. I have created a custom page type and would like to be able to add several documents/downloads. I have managed to get one to show, but can find no way of this being extended to add many....
nmcilree
1

votes
2

answer
686

Views

adding a new document to the term document matrix for similarity calculations

So I am aware there are several methods for finding a most similar or say three most similar documents in a corpus of documents. I know there can be scaling issues, for now I have around ten thousand documents and have been running tests on a subset of around thirty. This is what I've got for now bu...
cardamom
1

votes
1

answer
1.5k

Views

“document.forms is not a function” with “document.forms(0)”

I am maintaining many old websites and CMS systems at my new job and run into an issue with one. The ASP site is using JavaScript and this line stopped working today (or slightly earlier than today): document.forms(0) Console would report Uncaught TypeError: document.forms is not a function. After G...
Derek
1

votes
1

answer
44

Views

How will jQuery Document ready behave in a dynamically inserted script?

What if the below script is dynamically inserted into the page after the DOM has been loaded... $( document ).ready(function() { console.log('Will anybody see me?'); }); Will that debug statement still fire?
AbuMariam
1

votes
1

answer
1.9k

Views

Error : document.queryselector is not a function

In the code below, the button labeled Add More is not functioning as expected. Ideally it should add the input value to the unordered list on the page. Instead, I get the following error: Uncaught TypeError: document.queryselector is not a function Page Code The value of the input is : {{message}} A...
SFDC_Learner
1

votes
3

answer
145

Views

Search inside a range of fields MongoDB

I have a DB on MongoDB, with a collection like this: { '_id' : ObjectId('59a64b4cfb80146432aff6ac'), 'name': 'Mid Range', 'end' : NumberLong('50000'), 'start' : NumberLong('10000'), }, { '_id' : ObjectId('59a64b4cfb80146432aff6ac'), 'name': 'Hi Range', 'end' : NumberLong('100000'), 'start' : NumberL...
jesuscc29
1

votes
2

answer
47

Views

Find string in PDF/a documents

I'm scaning several documents and save as PDF/a in directory. Is it possible and how (which software) search string inside documents. For example in one of documents I have string stackoverflow After type stackoverflow I want focus on this documents.
Pointer
1

votes
1

answer
288

Views

Modelling data for a Google Firestore project

We are creating a new app, which has the following types of data and I am looking at some help with the best way to organize data in Firestore. We have the following: Users UserID Username ... Products ProductID ProductName UserID A bunch of other product fields Upto here, it's straight forward, as...
asanas
1

votes
1

answer
200

Views

Do macOS Document-Based Apps Automatically Enable Collaboration?

I am looking to build a document-based app on macOS using Xcode and targeting macOS High Sierra. Does NSDocument provide document collaboration similar to that of Pages? Apple's Document Based Apps page suggests that collaboration is a feature of proper document based apps, but I haven't seen a defi...
Jake3231
1

votes
1

answer
27

Views

Sort/Group by the number of documents with equal fields in MongoDB

What I want to achieve is grouping these documents, {voteid: A, userid: x}, {voteid: C, userid: x}, {voteid: A, userid: y}, {voteid: A, userid: z}, {voteid: C, userid: z}, {voteid: D, userid: z} in objects with number of votes (users are irreleveant here) and also sorting them based on voteid: {vote...
Mateusz Sowiński
7

votes
2

answer
147

Views

Pick from Google Photos provider with ACTION_GET_CONTENT or OPEN_DOCUMENT

I have no clue at why this happens, but I am not able to pick images from the Google Photos provider. Testing on API 27. With ACTION_GET_CONTENT If I use: val intent = Intent(Intent.ACTION_GET_CONTENT) intent.addCategory(Intent.CATEGORY_OPENABLE) intent.type = 'image/*' I can see Google Photos among...
natario
1

votes
1

answer
503

Views

google pdf viewer (cant use params in the pdf url)

Im using the google drive viewer to render external urls in my App (with ionic). It's something like this: ... The question is that google viewer only take the first parameter from the url, ignoring the second parameter. I've tried parsing the pdf url (like http%3A%2F%2Fdomain%2Fpdf_petition.php%3Fp...
rgonzalez
1

votes
1

answer
361

Views

How can i copy Folder from Project to Document Directory ios swift

Here is my Folder Structure I want to copy this Stickers folder to Document Directory for this purpose i have used following code let fileManager = FileManager.default let documentsUrl = fileManager.urls(for: .documentDirectory, in: .userDomainMask) guard documentsUrl.count != 0 else { return // Co...
Khushbu Desai
1

votes
2

answer
91

Views

Ruby object to_s what is the encoding of the object id?

In Ruby, the to_s on an object includes an encoding of the object's id. [2] pry(main)> shape = Shape.new(4,4) => # In the documentation it says Returns a string representing obj. The default to_s prints the object’s class and an encoding of the object id. https://apidock.com/ruby/Object/to_s In t...
MicFin
1

votes
1

answer
95

Views

Nested $(document).ready()

I have a plain webpage with a singe button. Using jQuery 3.3.1, a 'click' event is attached to this button such that once this button is clicked, the next click anywhere on the page(document) makes an alert('Clicked!'). Click $(document).ready(function() { $('#Btn').click(function() { $(document).cl...
benTen
1

votes
1

answer
83

Views

Present preview of downloaded file directly in app

My application have file download option which downloads the file using alamofire download method. When the download completes i need to present the preview of the file without saving it to internal/cloud storage. How can i achieve this whatsapp like function that shows the preview after downloading...
Vaisakh KP

View additional questions