Search update

60548 results
2

votes
2

answer

How to update time elapsed

I'm developing a program which will count the time until the button is clicked I'm having trouble with using Timer. I wanted to have something like 00:00:00 -> 00:00:01 -> 00:00:02 ... etc my problem is that it is stuck in 00:00:01 here's my code Timer timer=new Timer(1000,null); JLabel time=new JL...
askManiac
2

votes
2

answer

ArangoDB create / update without new

I'm trying to build some sort of repositories with arangodb rest api and spring-cloud-feign. When I perform a Get, everything is fine, I receive the Entity as it should and I can even map _key to my property. My issue is when I try to perform a Create / Update (Post / Patch), if I add a query param...
Miguel Guilherme
2

votes
1

answer

Did Chromecast update break debugging?

Before the recent firmware update, web-based debugging (at port 9222) would persist between activities. Now any transition, say from the home screen to my app, stops the debugger with a message at the top saying... Detached from the target Remote debugging has been terminated with reason: target_clo...
FinnTheHuman
2

votes
1

answer

Java resultSet.updateRow() doesn't update database

Sorry if my question is trivial but I am new to Java programming. I have a following problem: I created a derby database using NetBeans IDE (I went to Services tab -> JavaDB -> create database). Then I created my java project and added reference to derbyclient.jar. Using these arguments: String host...
Jarek Mazur
2

votes
2

answer

Insert/Update in PL/SQL

I have made a procedure in PL/SQL which inserts data from one table to another on basis of primary key. My procedure is working fine but i can't figure out how will i update column CODE_NUMBER of my table MAIN if primary key already exists. Actually i want rows of MAIN table to get UPDATED when its...
Femme Fatale
8

votes
2

answer

Update Android Studio 2.0 JDK?

I just installed Android Studio 2.0 on OSX 10.11.4. I get this error: Running on a JDK8 version affected by drag and drop issues (1.8.0_60 through 1.8.0_76). See IDEA-146691 for details, and consider using a JDK outside the problematic range. IDEA-146691 did not help me. Isn't the JDK bundled with J...
obiwahn
3

votes
0

answer

Update Product Quantity with Ajax

So, on my Shopify site, I've got a plus/minus button to update the quantity of a product. Currently, it submits the form when clicking either of those buttons. Now I'm implementing a drawer cart using ajax though, so instead of just submitting the form and reloading the page when either of those but...
MariaL
2

votes
2

answer

Solr and custom update handler

I have a question about Solr and the possibility to implement a customized update handler Basically, the scenario is this: FIELD-A : my main field FIELD-B and FIELD-C : 2 copyfield with source in A After FIELD-A has its value stored, i need this valued to be copied in FIELD-B and C, then processed (...
2

votes
1

answer

Mysql deadlock on column update

Have run into this weird problem where a simple query fails due to a deadlock Here is the query UPDATE myprobelmatictable SET mycolumn = (mycolum-0) WHERE id = '59' The weird issue is that this query fails only when my php server is located on a slower server on a remote network Before I run this...
Sanket Gupta
2

votes
1

answer

Anaconda: conda update all conflict

The information about current conda installation is as below: platform : osx-64 conda version : 4.1.5 conda-env version : 2.5.1 conda-build version : 0+unknown python version : 2.7.12.final.0 requests version : 2.9.1 root environment : /Users/chintanshah/anaconda (writable) default environment : /U...
chintan s
7

votes
1

answer

Hibernate update query with innerjoin

I have the following MySQL update query with inner join: UPDATE Country AS c INNER JOIN State s ON c.CountryID = s.CountryID INNER JOIN City cy On s.StateID = cy.StateID SET c.Active='Y', s.Active='Y',cy.Active='Y' WHERE c.CountryID='12' Here is my country mapping class enter code here @Entity @...
edaklij
2

votes
2

answer

Update particular cell in Handsontable

Is it possible to force update only one td (cell) for view ? There is a method hot.render(), but it rerenders all cells. I want to update table content JSON data (hot.getData()) using ajax, but I can't find how to force render the table. My table is so huge to rerender each time I receive the data....
Vyacheslav
2

votes
2

answer

PrimeFaces: conditional update on validation

Is it possible to conditionally update JSF components only when validation succeeds? I would like to be able to do something like where 'something' only gets updated if validation is successful. Is there any way that can be done or is that just not supported in JSF? I've been able to rig up kind of...
wrschneider
3

votes
1

answer

Jackrabbit update or merge node

I have already send the same message to jackrabbit user list, but nobody reply me. I would like to update a node and his childs with Jackrabbit 2.4.3 throw jackrabbit-jcr2dav. ( like a merge : updating, creating or removing nodes ). But when I update a property already existing in the repository I h...
Grégory
3

votes
1

answer

update xml file with batch

I have been searching for an hour with no luck My boss wants it to be a batch file I have a xml file that contains the following. c:\proj none 4 FLUFFY en-us win32 We want to set 4 (which is the number of processors used) to 2 therefore, the line should look like this 2 I figured out how to get to t...
Neth Munson
2

votes
2

answer

Update duplicate fields in table

I have table with about 100000 records.I need update same fields like this. For example this is my table id name 1 sss 2 bbb 3 ccc 4 avg 5 bbb 6 bbb 7 sss 8 mmm 9 avg After executing script I need get id name 1 sss 2 bbb 3 ccc 4 avg 5 b...
cosset
2

votes
1

answer

C# update object in list

I have a repository with a public List list; Is it not possible to get an item with linq like this and just update/replace the whole object so the object in the list is updated globally right away? ... var item = list.SingleOrDefault(m => m.Id== viewModel.Id); if (item != null) { item = viewModel; }...
stibay
2

votes
0

answer

ajax data variables don't update

Hi there sorry for the basic problem (I'm very new at this), but I was making an insert data for a database through a map API using jquery and ajax. The thing is in the $POST function the latitude and longitude doesn't update in the submit(or post) 'event'. I know the variable coordenada updates whe...
3

votes
4

answer

ASP.NET sessionID will not update

I click on refresh button which should restart session: protected void btnRefresh_Click(object sender, EventArgs e) { HttpContext.Current.Session.Abandon(); HttpCookie mycookie = new HttpCookie('ASP.NET_SessionId'); mycookie.Expires = DateTime.Now.AddDays(-1); Response.Cookies.Add(mycookie); LblSess...
Darcy Q
5

votes
1

answer

Update textarea rows via Angularjs

I want to adjust the number of rows in a textArea on focus on remove them on blur. In addition upon focus I want to show a hidden div layer. My current solution is As you can see from above I have to use two attributes, i.e. HTML onfocus to increase the rows and ng-focus to update isVisible (to sho...
Barry
2

votes
3

answer

update laravel database by ajax

Question How can I update only 1 column of my table with Ajax using checkbox? Explanation I want to use checkbox and update my active column, the value will be either 1 or 0. If checked value is 1 otherwise 0. Codes html data-name is name of my column data-id is my row id controller function public...
mafortis
48

votes
7

answer

MySQL - UPDATE query with LIMIT

I want to update rows in my table with starting from 1001 to next 1000. I tried with following query: UPDATE `oltp_db`.`users` SET p_id = 3 LIMIT 1001, 1000 This is giving me syntax error. Is this correct? am I doing any mistake here. Can we limit update in this way? Also, the rows that I am trying...
srahul07
5

votes
3

answer

auto update view in backbone.js

I use backbone.js and have a model without a collection. In the view I call fetch on the model with a callback to render the view. this.user.fetch({success: function(d) { self.randomUserView.render() }}) how can I make the view update automatically when the model change? e.g. I don't want to specify...
Yaron Naveh
1

votes
2

answer

Update UI Asynchronously in Android

I have a webservice call which is called every 10 seconds and should update a TextView with the webservice reply(or atleast show a toast message every 10 seconds) But the UI is not getting updated at all. Please find the code below. public class MessagesRequestActivity extends Activity { /** Called...
Chandra Eskay
2

votes
2

answer

JavaScript Update multiple object properties

I have this code below that finds the index of specific object using findIndex method and Update object's name property. Is there anyway i can update mutiple object's name property? E.g. var rofl = ['0']; // Instead of ['0'] how do i update multiple object by putting var rofl = ['1','2','3']; let m...
Best Jeanist
4

votes
1

answer

'AND' in mysql update query

I ran the following query on mysql by mistake, and mysql ran it without error: UPDATE table SET col1='value1' AND col2='value2' WHERE ID='id' Thie query should have been UPDATE table SET col1='value1', col2='value2' WHERE ID='id' So my question is: what did the first query with the 'AND' actually do...
user456137
14

votes
3

answer

Aggregation with update in mongoDB

I've a collection with many similar structured document, two of the document looks like Input: { '_id': ObjectId('525c22348771ebd7b179add8'), 'cust_id': 'A1234', 'score': 500, 'status': 'A' 'clear': 'No' } { '_id': ObjectId('525c22348771ebd7b179add9'), 'cust_id': 'A1234', 'score': 1600, 'sta...
Sam
2

votes
1

answer

ClickOnce Async update not working

I've got a ClickOnce application which I need to update. Running ApplicationDeployment.CurrentDeployment.CheckfForDetailedUpdate() returns details that there is an update available from the server and it gets the correct version number of the application on the server. When I run the UpdateAsync met...
VARAK
4

votes
2

answer

SQL update with a join?

I have two tables. One is simple string/ID look up: StrTable: str_key String 0 'a' 1 'b' where the strings are unique. The other is more complex, and includes the shared string_id ValTable: str_key other_key val 0 0 1.234 0 1 1.567 1 0 1.890 Now,...
Phil H
1

votes
4

answer

sql insert and update question

I have a form which to insert data into a database. This form takes the content of the fields, and then displays the result page showing the entered information in context. There is a link on this page to edit the user info, which go back to the previous form. Obviously, I do not want duplicate reco...
Joshxtothe4
3

votes
1

answer

Composer doesn't update outdated dependencies

Well, after running command composer outdated I can see there's newer version of phpdocumentor/type-resolver available. Installed version is 0.2.1 and the latest one is 0.3.0. Need to say that it was indirectly installed by component I use and not by me. Problem is when I run composer update or comp...
Goujon
2

votes
2

answer

Update a Java Swing JList

I used WindowBuilder Pro to generate most of the code in the GuiTest Class below with the exception of lines with '////////' to the right which I added (or altered). WindowBuilder Pro (a WYSIWYG) keeps adding code to the constructor - but has not complained yet with me making alterations. I want to...
Roger
2

votes
2

answer

db doesn't connect or update

I'm new to blackberry and I have a problem with a SQL connection: When I'm trying to execute a Query on a db I have and error from c++ but, when I consume the method from QML it works like a charm. so the thing is here: /* Copyright (c) 2012 Research In Motion Limited. * * Licensed under the Apache...
Pedro Teran
2

votes
2

answer

Facebook API: Update Group Description

Does anyone know how to update Facebook Group information using the API? I want to push some information to the facebook group (if the admin is logged in to my site).
Rob McCann
1

votes
2

answer

Dynamically update input to Geoserver

I am hoping someone can help me on this one as i have been trying to find the solution for a long time without success. I have a polygon shape-file which i am displaying on browser using geoserver . I have color-coded the polygons (by creating an SLD file) based on the values of one of the attribute...
jps
4

votes
1

answer

mongoose pre update not firing

I have follow the directions in mongoose here PostSchema.pre('update', function() { console.log('pre update'); console.log(this); }); it is not firing this middleware. Am I missing something here? I have added next so it looks exactly like my pre save, however that still does nothing.
gmaniac
2

votes
2

answer

Update record if it exists

I'm new to EF, and I'm trying to understand the best way to handle inserting and updating data. Just for some context, I'm using the .net mvc website boiler plate, and I've created a customers table with a 1:1 relationship to aspnetusers. I've created a view to manage customer data. Here is my Http...
Chris Jenkins
29

votes
2

answer

Unsatisfiedlinkerror with Android 5.0.1 update

I use Android Studio and debug applications on an HTC One M8. I updated the phone to Android 5.0.1 last night. Edit: Recently puchased a Nexus 9 and the same issue is occuring. The first time I tried to run the app, the gradle builds without issues, but I now get a runtime error. I've researched...
Josh Janvrin
11

votes
5

answer

cannot update view.layer.frame in viewDidLoad?

I am trying to execute following code in viewDidLoad method of my single view controller project: self.view.layer.frame = CGRectInset(self.view.layer.frame, 20, 20); But it does not give the desired inset. However other UI changes i make in the same method do work e.g self.view.layer.backgroundCol...
dotnetcoder
5

votes
2

answer

Azure Table Update Concurrency Issue

I am trying to update a user credit / count information against each transaction. If we hit more than 2/4 transaction per second the update below is not updating the counts / user credit information. Two Issues basically. Update not happening sometime with NO, Error Message. Update failing with Err...
Mark