Search update

60548 results
1

votes
2

answer

Why don't my views update?

I'm new to Ruby on Rails and am creating a test application. So far, it's working, but when I make some minor changes to my views, the page doesn't change. My problem may be related to this question, but I'm not sure what is meant by setting the date and time in the VM. My code is on a remotely host...
Nathan Long
1

votes
1

answer

Update SCNPhysicsBody when scaling SCNNode

I know that SCNPhysicsBody dont scale when the node scale, but I haven't found a great solution to fix this. I want to scale the node and then update the SCNPhysicsBody to node after scaling it. let box = SCNBox(width: 0.2, height: 0.3, length: 0.4, chamferRadius: 0.1) box.firstMaterial?.diffuse.co...
Magnus T
1

votes
1

answer

Java JFrame Update Not Working

I need some real help with my Java project. It's a console controlled JFrame, where the commands you type in the console SHOULD react to the JFrame window, only it doesn't. This is a big problem. Here's my code (Engine.java): package com.boldchicky.commandsrpg.Main; import java.io.*; public class En...
TheBestBestMan123
1

votes
2

answer

Detect update in observable prop

I have a component that has an observable as property: class Store { @observable color = 'red' } const store = new Store(); @observer class MyComponent extends React.Component { componentWillReceiveProps(nextProps) { // Not called! console.log('Component will receive props', nextProps.store.colo...
Christopher Chiche
1

votes
1

answer

Update gramm plot matlab crashing

I have a MATLAB GUI that calls an external function to make a plot (make_ethogram_plot). The idea would be to have an external figure that is constantly updated with the output value from the figure. Every time the data gets updated it should replot the values, it updates at ~10 Hz. I chose gramm (h...
Matias Andina
1

votes
2

answer

sequentially update rows in data.table

I have a very big dataset and I would like to perform the following computation in R using data.table: library(data.table) # This is a test dataset tempData = tempData[i-1,enddt]) { tempData[i, enddt:= startdt + daysupp] } else { tempData[i, enddt:= tempData[i-1,enddt] + daysupp] } } This computatio...
mammask
1

votes
1

answer

Update router in Angular 2

I'm new in Angular and npm. Today I trying update router in Angular2 from 2.0.0-rc.1 to 3.0.0-alpha.3. For this, I change version router in root file package.json on '@angular/router': '3.0.0-alpha.3' and make command 'npm update'. Files in @angular/router were changed, but now console in browser s...
Vincent_
1

votes
1

answer

Laravel Update get updated ids

If I have Laravel eqoquent model (or pure mysql) And i try to update 10 records: UPDATE users SET active = 1 WHERE is_admin IN (2,3); How will I know which records are updated. Is there any function in MySQL that will return the updated ids. I need them Thanks
user2693928
1

votes
1

answer

SQLAlchemy 'on_conflict_do_update' does not update

I have the following code which I would like to do an upsert: def add_electricity_reading( *, period_usage, period_started_at, is_estimated, customer_pk ): from sqlalchemy.dialects.postgresql import insert values = dict( customer_pk=customer_pk, period_usage=period_usage, period_started_at=period_st...
Fred joe
1

votes
2

answer

Worklight Direct Update keeps executing

I have a Hybrid application running WL 6.2 on my iPhone 5 (ios 8.1). When I launch the application it starts the UPDATE process as might be expected. However, it does this EVERY time I launch the app - even though I haven't updated anything on the server. When I loaded the .wlapp file and the WL con...
user3530200
1

votes
1

answer

Automatically Update a JComboBox list?

In the application which I am developing, multiple users can modify a model on a server, the model contains a list of objects and the users get the updated model every time a user makes changes to it. When the client starts the program he can open a JFrame where a JComboBox appears and in this Combo...
Teo
1

votes
3

answer

clojure.java.jdbc update where id in

I am trying to do a simple update statement on Oracle DB using clojure.java.jdbc. (sql/db-do-prepared db 'update table_name set active = 1 where id in (?)' ['one' 'two']) but I am getting: java.sql.SQLException: Invalid column index I am sure that all datatypes are correct. It looks like that kind o...
r00tt
1

votes
0

answer

React Native Update Object Array

I have this data object using mobx, and i am unable to update the values array. Would appreciate some help on this matter. @observable data = { dataSets: [{ values: [0], label: 'X Axis', }, { values: [0], label: 'Y Axis', }, { values: [0], label: 'Z Axis', }] Values of the console logs console.log(d...
dariusa
1

votes
2

answer

Real Time Update Performance Issue

I have created a MEAN stack app, where on the web page these is a dashboard icon that changes colour, as it get real time updates from the back end data base. To achieve this i have used socket.io. The client side code is written below. var socket = io(); setInterval(myfunction, 9000); function myfu...
user5740953
1

votes
1

answer

MySQL case-sensitive update statement

Let's say you want to update a table Person that looks like this: Name | Address | Age You write the query: UPDATE Person SET Name='Tom' WHERE Name='Thomas'. Is the WHERE clause in this query case-sensitive? That is, would it update rows with names of thomas and THOMAS? (I'm working with MySQL Ver 1...
ktm5124
1

votes
1

answer

Dynamically update fields in django

When I create new sesid in session I need all the courses to add to the sesid in Registration model. I am creating a result management system using django. What I want to do is to create a session (it is done) then automatically, all the courses from course model will be in the session model ( I don...
Ibrahim
1

votes
1

answer

C++ WinAPI TextOut() update text

So I'm creating a Windows application with WinAPI, and I'm using the TextOut() function while handling WM_PAINT in order to write text on the window. case WM_PAINT: { PAINTSTRUCT ps; HDC hdc; hdc = BeginPaint(hwnd,&ps); SelectObject(hdc,hfDefault); TextOut(hdc,10,70,'Points: 0',9); TextOut(hdc,10,85...
yop
1

votes
1

answer

LINQ update on joined collections

How do I use LINQ to update objects in one list from objects in a second list? My question is very similar to LINQ In Line Property Update During Join except that, in my case, the second list is smaller than the parent list. In other words, I want to update those members of the master collection tha...
Sisiutl
1

votes
2

answer

Django model update on fetch

My model has a field that should change if it's within a date range. It would look like this: class Election(models.Model) start_date = models.DateTimeField(verbose_name = 'Start Date') end_date = models.DateTimeField(verbose_name = 'End date') active = models.BooleanField(default=False) def updateA...
Pabs
1

votes
1

answer

SharePoint ProcessBatchData Update: nativehr 0x80070057

Annoying and unhelpful error: 0x80070057 when running SPWeb.ProcessBatchUpdate...no inner exception or anything else useful. Here is the XMl that is being sent: 9efe6671-d8e1-4da5-9b59-3404e57e7347 Save 1 OK I have checked out this link: http://msdn.microsoft.com/en-us/library/cc404818(v=office.12)....
Matt
1

votes
1

answer

CruiseControl.NET clearcase update -log NUL

Is there a way to send the clearcase log file to dev/null in a CruiseControl.NET environment? Now every build that is done a clearcase update log file is created, that in the end will fill my disk. Thanks in advance.
Bas Prins
1

votes
1

answer

Update DOM after updating variable

The idea is to update the ID in the API key. I can update the variable but the DOM won't display the changes. IMO is where the vessel's ID is and that is what will display the relevent data. I've tried with with an AddEventListener but since i'm new to javascript i have no idea what to search for or...
Mishari Adel Toama
1

votes
1

answer

Spark 1.6.0 DenseMatrix update values

There was Update method in Spark 1.3.1 https://spark.apache.org/docs/1.3.1/api/java/org/apache/spark/mllib/linalg/DenseMatrix.html But in Spark 1.6.0, there is no Update method https://spark.apache.org/docs/1.6.0/api/java/org/apache/spark/mllib/linalg/DenseMatrix.html My idea is to store large set...
purplebee
1

votes
1

answer

Bash update file modified date

I would like to make a shell script that updates the modified date on a directory and files. This is because I have realised that when you download a file it has the date from when it was uploaded. For example when I downloaded the cvim plugin for vim the date was 15 Dec 2008. I would like a script...
iProgram
1

votes
1

answer

Update Asp.Net Core Role Claim

How i can change role claim and apply it in terms of one request in Asp.Net Core? I tried to use _signInManager.RefreshSignInAsync(user); But it only works after refreshing the page. Is there any way to update roles for user and change current principal in one request?
usrere
1

votes
1

answer

How to update QWidget's content?

There is a QWidget, which is called with the button 'Start' in the main widget. It shows some text, which should be updated every minute during the work of the QWidget. How can I make this infinity updating within this code? class ExampleWidget(QWidget): def __init__(self, parent=None): super().__in...
1

votes
1

answer

Update child element on mongodb

I've got a little problem with mongodb update method. This is my (simplified) schemas: { profile: { birthdate: 'XXX', city: 'xxx' }, account: { username: '...', password: '....', visits: 0 } } I've got 2000 objects in DB. I want to anonymize datas by removing username values. I tried this: db.users....
Metal3d
1

votes
2

answer

Disable timestamp update in codeigniter

Faced the problem: when i am trying to update field via active record in CodeIgniter there also updates timestamp field. For example my code: $this->db->where('user_i', 1); $this->db->update('ci_users', $user_info); Creates this sql: UPDATE `ci_users` SET `user_fullname` = 'asdasdfsafd' WHERE `user_...
Kin
1

votes
1

answer

Directive doesn't update parents scope

all the code http://jsfiddle.net/mato75/o9e3cb56/ directive: scope: { attrs: '=?' } main ctrl: this.val = { val: '1', title: '2' }; $scope.$watch(angular.bind(this, function () { return this.val.title }), function () { doSomethingOnChange() }); html: When I change title in directive, main controlle...
puppeteer701
1

votes
2

answer

Update DataSet in Crystal Reports

I have little to no experience in using Datasets and Crystal Reports so please don't bash me if the answer is really obvious, I didn't manage to find the answer on-line. I have a C# Winforms application, containing a Crystal Report that takes its data from a DataSet. I populate the DataSet dynamical...
1

votes
2

answer

Update all react children components

I have a code like this: Editor has a render() function like this: let components = React.Children.map(this.props.children, (child) => { return }) return {components} {buttons} I have the function like this at 's onSelect private onSelect(id: string, data: T) { this.setState({ currentRow: data, m...
Magician
1

votes
1

answer

Force entity refresh after update

I'm using an entity that has properties computed by view. In my sample scenario: I'm getting the entity from database & I'm changing a few properties of this entity I'm saving this entity session.Update(entity) I'm calling session.Refresh(entity) , as some columns computed by the view can change as...
dragonfly
1

votes
3

answer

SQL update statement in Java

I am trying to update a field in my table using Netbeans and I have two conditions. The update statement is as follows: String sql1 = 'update tbl_log set Logout_Time =? where Firstname = ? and Check = ?'; try{ pst = conn.prepareStatement(sql1); pst.setString(1, time); pst.setString(2, username); pst...
Ravi77
1

votes
1

answer

Update trigger with GROUP BY

I'm using insert-/update triggers to update a second table's column Price. The insert trigger seems to work perfectly, but when I try to change a single record in SSMS, I get an error: The row value(s) updated or deleted either do not make the row unique or they alter multiple rows(2 rows). This is...
Rango
1

votes
1

answer

update Timestamp Cell in Sqlite

I have An Sqlite Database and I have an extra cell in it with a Timestamp item. The timestamp should display the last operation done with the row. (Z.B. has been updated) so everytime The row changes I want the timestamp to become the current timestamp. Especially when I query the row. In general I...
J.Doe
1

votes
1

answer

GWT CSS ignored on update

Here's what I've got. I have a tree in GWT set up to process only a certain level depth of children, retrieving from the server and only updating according to which children one clicks. I am familiar with addStyleName() functions and I have used this to style the foreground color of certain tree n...
Mojave Storm
1

votes
2

answer

mysql ON DUPLICATE KEY UPDATE

I'm stuck on a mySQL query using ON DUPLICATE KEY UPDATE. I'm getting the error: mySQL Error: 1062 - Duplicate entry 'hr2461809-3' for key 'fname' The table looks like this: id int(10) NOT NULL default '0', picid int(10) unsigned NOT NULL default '0', fname varchar(255) NOT NULL default '', typ...
julio
1

votes
3

answer

SQL Update table from another

I have table as following: dev=> \d statemachine_history Table 'public.statemachine_history' Column | Type | Modifiers ---------------+--------------------------+---------------------------------------------------------...
Dahab
1

votes
1

answer

Update MySQL table from jsp

I have these in a jsp file. But these values are not updated in the mysql table. May be it is not commiting. How can i solve this ? String passc1 = request.getParameter('passc1'); String accid = request.getParameter('accid'); int i = 0; String sql = ' update customertb ' + ' set passwd = ?' + ' wher...
vishnu
1

votes
0

answer

Update Multiple UpdatePanels using Javascript

I am trying to update multiple panels And I triggered it in javascript $(document).ready(function () { //$('#ContentPlaceHolder1_BoxContent_Button1').click(); __doPostBack('UpdatePanel1', 'Update-Both'); }); And the Backend code is protected void UpdatePanel1_Load(object sende...
want_to_be_calm