Skip to main content

All Questions

Tagged with
12 votes
3 answers
27k views

Add a field to existing MongoDB document (with Mongoose in Node.js)

I have this existing document in a collection Article in MongoDB database: [ { site: 'www.atlantico.fr', date: '2014-05-27T11:10:19.000Z', link: 'http://www.atlantico.fr/example.html', _id: ...
GBC's user avatar
  • 345
7 votes
2 answers
962 views

D3 V4: Updated data is being seen as new data? (Update function)

Currently, I am building a system, and I am having some trouble with the update function. Essentially, I am trying to add new nodes to a D3 tree. A new child node can be added when the user clicks ...
hiswendy's user avatar
  • 373
7 votes
0 answers
4k views

Are there incompatibility risks when updating Node.js?

I was just checking if any installed programs required an update and I realized that the latest LTS version of Node.js is 12.13.1 while I have 10.16.0 installed. I was wondering if there are ...
SigmaTheFox's user avatar
4 votes
2 answers
6k views

Updating javascript code in Cordova app after it has been published in the app store [closed]

I'm developing some apps where the clients wants to implement design changes, adding new content fields etc after the app has been delivered. Also at the moment the apps are done through RhoMobile but ...
gaqzi's user avatar
  • 3,787
4 votes
1 answer
10k views

D3: How can I change data in an existing bar chart

I have successfully build my initial bar chart. Now I want to add more bars to that existing chart using transitions to have a nice user experience. Here's my code: var data = [23, 85, 67, 38, 70]; /...
Hokascha's user avatar
  • 2,009
4 votes
1 answer
2k views

Electron - Update window message

I am using Squirrel for updates in my app(Electron). And I'm looking for nice way to display release notes. Something like this: Where can I found information about this? How can I make my message ...
Axel186's user avatar
  • 561
3 votes
4 answers
5k views

Run JS function every new minute

So I've got this JavaScript clock I'm working on and I want it to be perfectly synced with the clients' system clock. I know how to get the current time using a Date object and I know how to run the ...
Axel K's user avatar
  • 323
3 votes
6 answers
2k views

When to use functional update form of useState() hook, eg. setX(x=>x+1)

Normally when we need to update a state in a functional component, we do something like this: function Example() { const [count, setCount] = React.useState(0); return (<div><p>You ...
Chong Lip Phang's user avatar
3 votes
2 answers
140 views

Upgrading Ember Web Application from 1.2.2

The Ember web application currently in our production environment has the following versions. ember.js - 1.2.2 ember.data - 0.13 I've found upgrade notes from ember 1.10 onwards in the ...
Chris Parry's user avatar
3 votes
1 answer
1k views

Using mathjax in an updating sequence in javascript

I have four dynamic variables in my program, xzero, xone, xtwo, xthree That represent the coefficients of a cubic function. I want to show the actual equation in the HTML, in the following format: ...
gamehen's user avatar
  • 324
3 votes
1 answer
4k views

Updating Array Objects in Realm

I have a realm Organization and Ticket. An organization has many tickets. So to update organization, it looks like this: try { realm.write(() => { realm.create('...
Maiko Francisco Rugeria's user avatar
3 votes
3 answers
138 views

Javascript update a value in an array within an array

I'm using the Flot Chart plugin to construct a bar chart. When the script receives new data, I need it to increase that value by one. var data = [["A", 0], ["B", 0], ["C", 0], ["D", 0], ["E", 0]] $....
Blease's user avatar
  • 1,400
3 votes
1 answer
7k views

Sencha Extjs - How to update a grid by setting data in records all at once?

I have a grid with more than 1000 rows (users) and a checkcolumn, which is used to link every user to another specific instance (a group of users for example). I've implemented a "Select All" button, ...
darkdante's user avatar
  • 707
3 votes
2 answers
4k views

How to update an IndexedDB item with autoincrement key? [duplicate]

I created an object store with autoIncrement: db.createObjectStore("items", {autoIncrement:true}); Now I want to be able to update an item given its key and a new value, so I wrote this ...
wololoo's user avatar
  • 175
2 votes
2 answers
1k views

React Lifting State Up

I was studying this part of React documentation: https://reactjs.org/docs/lifting-state-up.html. I have a similar problem in a project of mine, but with a slight difference. We can use the same ...
Davi Alefe's user avatar

15 30 50 per page
1
2 3 4 5
10