Search update

60548 results
2

votes
1

answer

WPF Document Viewer Update Issues

After a lenghtly battle implementing document rotation for fixed documents using the documentViewer in WPF I finally manged to get it working with the code below: //Increment Rotation if (Rotation == 270) Rotation = 0; else Rotation += 90; FixedDocument document = (FixedDocument)docViewer.Document;...
FA Servers
6

votes
2

answer

Conditional ON DUPLICATE KEY UPDATE

I've done some research but nothing seems to fit my needs. I have a database table that contain some data retrived from a webservice. A user perform some tasks for each record, and then flag it as 'processed'. So i have an additional db field (not based on data i get from the WS) named 'processed'...
Luciano
2

votes
5

answer

update method for dictionaries-Python

I have written a code which tries to sort a dictionary using the values rather than keys ''' This module sorts a dictionary based on the values of the keys''' adict={1:1,2:2,5:1,10:2,44:3,67:2} #adict is an input dictionary items=adict.items()## converts the dictionary into a list of tuples ##print...
ranjan
2

votes
1

answer

Meteor: Update across all browsers

I'm working on my first Meteor app, but I can't figure out how I can update something across all browsers. This is the situation: When one person is typing, I want to display 'typing...' across all browsers (so to each user), but I can't figure out how to do that. This is my code so far: Messages =...
stefan
3

votes
1

answer

Couchbase update for multiple set

I have the following n1ql query: UPDATE default USE KEYS '557a7628-1217-4974-95cf-d64247c560cd' SET p.last_seen_message_id = 'e5010536-7fde-42c1-9fea-e4a29e560f53', p.last_seen_message_text = 'hello' FOR p IN participants WHEN p.id = '119c35ab-a1cc-4e9f-bab5-d58d6d396623' END WHERE doc_type = 'conve...
Hunex
11

votes
5

answer

Update Facebook status using R?

Is it possible to update my facebook status from an R session? EDIT 1: Reading the responses thus far, I would like to point out that I'm simply interested if a package already exists which provides this functionality, similar to how the lovely twitteR package does for twitter. Also, something doesn...
6

votes
2

answer

Update app to App Store

I got this error when uploading my build in iTunes Connect: iTunes Store operation failed. This action could not completed. Try again. I tried, and tried, but nothing. The steps I have done are: XCode -> Product -> Archive -> Upload to App Store -> Error For programming, I use C# and I use Unity...
Andrea De Blasio
3

votes
3

answer

asp.net mvc update multiple records

is it possible to have a view for editing multiple records, in the same way that the index.cshtml view loops through records to display them (as below)? @foreach (var item in Model) { @Html.DisplayFor(modelItem => item.tvid) So for each row above, it would relate to a different row in the database....
Mark
2

votes
1

answer

Highcharts - update chart using ajax

Here is my sample chart with random data http://jsfiddle.net/Fw4PZ/ $(function () { $(document).ready(function() { Highcharts.setOptions({ global: { useUTC: false } }); var chart; chart = new Highcharts.Chart({ chart: { renderTo: 'container', type: 'area', marginRight: 10, events: { load: function()...
breq
2

votes
1

answer

Generate Update Script MySQl Table

I have MySql table that has 250 fields, and i need to do an update, It might take hours to write the entire update manually. In SQL SERVER, I have the option to 'GENERATE UPDATE SCRIPT', I am looking for something like that option. I tried Phpmyadmin and Navicat, but I don't find such option.
martin.softpro
2

votes
1

answer

IBpy getting order status update

I want to get the status of my previous orders. I have the following simple code but I only get True/False values. Here is my code: from ib.opt import Connection, message tws_conn = Connection.create(port=7497, clientId=999) tws_conn.connect() def acct_update(msg): print msg tws_conn.register(acct...
user1871528
2

votes
1

answer

MySQL Query Update Multiple Tables

I have a contact management system and an sql dump of my contacts with five or six columns of data in it I want to import into three specific tables. Wondering what the best way to go about this is. I have already uploaded the sql dump...its a single table now in in my contact management database....
lcm
3

votes
3

answer

Update DataContext from backgroud thread

I fetch data for a wpf window in a backgroundthread like this [framework 4.0 with async/await]: async void refresh() { // returns object of type Instances DataContext = await Task.Factory.StartNew(() => serviceagent.GetInstances()); var instances = DataContext as Instances; await Task.Factory.StartN...
Gerard
2

votes
1

answer

Perform Update using Spring jdbctemplate

please suggest some way to perform the below query using jdbctemplate. update student set result='pass' where stud_id in (100,101,102); i have tried the below, but stuck with invalid column type. i am passing the String query = 'UPDATE STUDENT SET RESULT = ? WHERE OBJ_ID IN ( SELECT * FROM TABLE )'...
Ranjith Sekar
2

votes
1

answer

update within by and drop

Hello guys and happy new year, I was wondering if data.table could handle an update executed based on a select for each by-group. R) a=data.table(x=c('a','a','b','b','c','c'),y=c(1,2,3,3,2,1)) R) a x y 1: a 1 2: a 2 3: b 3 4: b 3 5: c 2 6: c 1 If I want to update on a condition within each by-group...
statquant
2

votes
3

answer

ng-grid doesn't update data

Trying to create simple working app with ng-grid and ASP.NET MVC. Client side: var app = angular.module('TestApp', ['ngGrid']) app.controller('MainController', function ($scope, $http) { $scope.addresses = [] $scope.filterOptions = { filterText: '', useExternalFilter: true }; $scope.update = functio...
batuuu
2

votes
3

answer

SQL Math update performance optimizing

I am running simple update over >70 Mio. Records (MS-SQL Server 2008) UPDATE T1 SET COSTS=AMOUNT*0.003 and it takes up to 8 Hours. Is there an simple 'cheap' way to improve math performance of updates like this? And since there is no WHERE clause or compares, just multiply every record with value, c...
user1608721
2

votes
2

answer

How update list in AngularJS?

I created one TODO List in AngularJS but I didn't finish the update function. I have some difficulty. How do I create the update function? Link: https://plnkr.co/edit/XfWoGVrEBqSl6as0JatS?p=preview {{ t }} update x Angular Code: angular.module('todoTest', []) .controller('todoController', function($...
13

votes
9

answer

Doctrine: ON DUPLICATE KEY UPDATE

How can I write an INSERT doctrine query with option ON DUPLICATE KEY UPDATE?
Leonardo
-1

votes
1

answer

UPDATE database value with ajax

I'm trying to update a database value each time complete() occurs. The following code is located in a file called 'user.php' and $u is globally defined elsewhere in the file. The value pT simply doesn't update when complete() is ran. Thanks in advance.
JTT
1

votes
3

answer

LAST_INSERT_ID not working on UPDATE

if I use this SQL: UPDATE formulare SET EV_id=59, EV_status=5 WHERE EV_id=57 AND ID_uziv=12;SELECT LAST_INSERT_ID(); I will get 0 as last insert id. I'm using php mysqli_insert_id and here is said that: The mysqli_insert_id() function returns the ID generated by a query on a table with a column hav...
koubin
2

votes
1

answer

Aggregation in UPDATE SQL query

So, I have currently have two tables, one containing the fixed part of each object, and the other containing a variable number of properties of each object as key/value pairs. I would like to convert these properties to a CLOB field in the main table in JSON map format. create table test_a (id inte...
user2650994
23

votes
4

answer

Dynamically update ModelForm's Meta class

I am hoping to dynamically update a ModelForm's inline Meta class from my view. Although this code seems to update the exclude list in the Meta class, the output from as_p(), as_ul(), etc does not reflect the updated Meta exclude. I assume then that the html is generated when the ModelForm is create...
ashchristopher
2

votes
2

answer

How to update datetime field

What is the best way to update a datetime field in a form. I have a form and need to update both the date and the time. I need to update the date with a date_select and then update the time using a time_select I only have 1 field in my database. Event:date I need to save the date in one field and...
Fresh
3

votes
1

answer

Phantom update in Django admin

After clicking 'Save' to update a particular model in Django admin, I am returned back to the list view with a message stating that 'The [model] was changed successfully.'. The issue is that the model was not changed. The list view which contains the column I updated does not reflect the modified te...
robmisio
7

votes
2

answer

Django 1.9 JSONField update behavior

I've recently updated to Django 1.9 and tried updating some of my model fields to use the built-in JSONField (I'm using PostgreSQL 9.4.5). As I was trying to create and update my object's fields, I came across something peculiar. Here is my model: class Activity(models.Model): activity_id = models.C...
user994013
5

votes
4

answer

Update using modal and php

I'm doing a CRUD operation using php and bootstrap only. I'm currently stuck at update because I cant seem to send the $_GET['updateid'] to my modal. This is my href's, the delete href is working but the update is not.
Kent Abrio
3

votes
0

answer

memcached on windows x64 - update?

I'm looking for memcached to run on Windows x64. I saw a old thread can I get Memcached running on a Windows (x64) 64bit environment? and looked at Couchbase site. Looks like they have taken a different direction on their product. I didn't see any download/support for windows x64 memcached from them...
frosty
1

votes
3

answer

numpy vectorize a parallel update

I want to implement a one-dimensional cellular automaton with the following simple rules: If cell is 1 and neighbor cell is 0, move (to the right) if cell is 1 and neighbor cell is 1, don't move All cells update at the same time according to their state. We have closed boundary conditions. That mea...
Tengis
2

votes
3

answer

Update int in MySQL Field

How can I increment an int in a cell of a MySQL database? I know that auto-increment is no use because I never want to add a new row, just update an existing one. I'm currently using this (POST var used for clarify, is verified in the real code): $columnToUpdate = 'type'.$_POST['voteid']; $query =...
shanethehat
4

votes
3

answer

Update form: Spring mvc + thymeleaf

I'm trying to create a thymeleaf form to update just a couple of attributes of the backing object: @RequestMapping(value = '/jobs/{id}', method = RequestMethod.GET) public ModelAndView update(@PathVariable Integer id ) { ModelAndView mav = new ModelAndView('updateJob.html'); JobDescription updateJob...
Mircea Badescu
2

votes
2

answer

Mysql update with php [closed]

I have a point system were there's a quiz. when they click submit from the quiz i want them to get +1 into points in mysql. i got a datbase called login and table users, and in the users i want the points to be updated with 1+ when they have taken the quiz. the code for the quiz_form i use: : Regist...
carl
3

votes
2

answer

ASP.NET AJAX without update panel

What is the best practice to support data for asp.net 2.0-3.5 ajax web application? I don't want to use update panels, just plain text data (JSON). Should I use web services? Or is there another way.
ppiotrowicz
4

votes
1

answer

Update Databinding on lost focus

I've seen that WPF has a UpdateSourceTrigger property that will allow for data binding to take place after a control has lost focus, is there something similar for winforms? I've come across an issue where when updating a databound value, the entire source is changed rather than the single property...
Sayse
2

votes
1

answer

Recyclerview dataset update proper method

to update data of recyclerview i have tried three method notifydatasetchanged() swapadapter() updating List and assigning same Adapter. but when i update data in each method memory allocation (to app) keep increasing by range of(0.25 to 0.50)MB how to solve it? My adapter public class RVAdapter exte...
Arjun
2

votes
0

answer

How to update TextureView SurfaceTextureListener

I am developing a camera app and I will use front and back camera. I am using TextureView like this: and code behind: renderer = new CameraRenderer(this, isFrontCamera); textureView.setSurfaceTextureListener(renderer); CameraRenderer class implemet SurfaceTextureListener public class CameraRenderer...
Savas Adar
3

votes
1

answer

Why does SDL_NumJoysticks() never update?

I was writing a small program in C that utilizes SDL 2.0, and ran into a problem when I couldn't get SDL_NumJoysticks() to report the number of joysticks plugged in at the time of the function call. I believe that it is reporting the number of joysticks connected during one of SDL's initialization...
fouric
2

votes
1

answer

Mongodb update() vs. findAndModify() performace

For a constantly growing document, I have the choice of using either update() or findAndModify() to insert new elements in an array field. However, findAndModify() will generate cleaner code in my specific application. But I can achieve the same functionality using update(), just more messy. I'm jus...
Maria
20

votes
2

answer

Update all packages from GitHub

I know you can install packages from CRAN with this syntax: install.packages(c('Rcpp'), dependencies=TRUE) You can update all of them from CRAN with: update.packages() On the other side, you can install packages (compiling them) from GitHub with: install_github('hadley/tidyr') How can you upgrade al...
skan
2

votes
3

answer

Update database using JQuery ajax.Post()

Help! I'm writing some code to update a mySQL database using similar to the code below:- $.post('http://myURL.com/vote.php?personID=' + personID + '&eventID=123'); The vote.php code takes the querystring values and inserts a record into a database with those values in it. This kind of code is worki...
Mat Richardson