Search update

60548 results
2

votes
2

answer

How to update JList from another Thread?

public class ListExample { public static void main(String[] args) { final List l=new List(); l.init(); SwingUtilities.invokeLater(new Runnable() { @Override public void run() { l.list.updateUI(); System.out.println('Asim'); } }); } } public class List extends JFrame{ public DefaultListModel DLM=new...
user3164210
3

votes
2

answer

UPDATE a whole row in PL/pgSQL

I have plpgsql function: CREATE OR REPLACE FUNCTION test() RETURNS VOID AS $$ DECLARE my_row my_table%ROWTYPE; BEGIN SELECT * INTO my_row FROM my_table WHERE id='1'; my_row.date := now(); END; $$ LANGUAGE plpgsql; I would like to know if it's possible to directly UPDATE my_row record. The only way I...
Jeroni
3

votes
1

answer

update android-query maven library dependency

Currently the latest version provided in google code is 0.26.7 https://code.google.com/p/android-query/downloads/list But the jar in maven repository is still in 0.25.9, which is more than a year ago. http://mvnrepository.com/artifact/com.googlecode.android-query/android-query Is there anyway for pu...
JR Tan
4

votes
1

answer

Update/insert/retrieve accented character in DB?

I am using oracle 12G when i run @F:\update.sql from sql plus it displays accented character é as junk character when I retrieve from either sqlplus or sql developer By when run the individual statement from sql plus. Now if I retrieve it from sqlplus, it displays the correct character, but when I...
user3198603
3

votes
2

answer

Django Rest Framework update nested serializer

I have a big misunderstanding with DRF nested serializers. I read docs about this and found out that I need to provide my own update method. So, here it is: class SkillsSerializer(serializers.ModelSerializer): class Meta: model = Skills class ProfileSerializer(serializers.ModelSerializer): skills =...
NONAMA
12

votes
2

answer

npm update does not do anything

When I execute this code in my application folder where the package.json is located: npm update or npm update --save-dev it does not do anything. But when I do npm outdated is shows many outdated packages. So how do I update all packages? OS: Win 10 x64 nodejs: 6.2.2 npm:3.10.7 package.json { 'name'...
Elisabeth
12

votes
2

answer

Java socket/serialization, object won't update

I am writing a little socket based program. I am using a class ModelEvent to pass information through the socket. inside ModelEvent, there's a variable obect of type (Object). The object itself is a 2D-array with some values. object[1][2] = 2; ModelEvent event = new ModelEvent('allo', object); disp...
maniak
2

votes
1

answer

QueryDSL: How to insert or update?

I'm trying to implement https://stackoverflow.com/a/16392399/14731 for a table called 'Modules' using QueryDSL. Here is my query: String newName = 'MyModule'; QModules modules = QModules.modules; BooleanExpression moduleNotExists = session.subQuery(). from(modules).where(modules.name.eq(newName)).no...
Gili
2

votes
3

answer

OnActivityResult doesn't update ImageView in Android

In my app I have set image in activity called Day. Now, when the user wants to change the image he choses the button and selects the image from Gallery. Here is the code : private void choosePhoto() { Intent pickPhoto = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL...
filipp.kowalski
14

votes
1

answer

Update shared forked repository using git

Consider repository A a github repository that is managed via Gerrit. I cloned repository A and I created a new branch starting from the master branch of repository A. I pushed this new branch on a new gitlab repository B. I am admin on repository B and I shared it with other developers. Developers...
user1382278
3

votes
2

answer

SQL Server Update trigger for bulk updates

Below is a SQL Server 2005 update trigger. For every update on the email_subscriberList table where the isActive flag changes we insert an audit record into the email_Events table. This works fine for single updates but for bulk updates only the last updated row is recorded. How do I convert the b...
Gary Boyle
2

votes
0

answer

jQuery UI button issue after Chrome update

The button radioset is generated like this: var sel = $('FPC '); var container = $(''); container.append(sel); $('#an_options').buttonset(); Everything has been working fine for years till the latest Chrome update to 33.0.1750.117. Now the button elements are placed on different lines (see pic 1)...
user2723490
5

votes
2

answer

Magento Doesn't Run SQL Install/Update Script

I have problem with configuration or something else that magento never run my module's sql install/update script! I use magento-1.4.1.0 Here is my structure folders and files: \app\code\local\RN\ShortUrl \app\code\local\RN\ShortUrl\Block\ShortUrl.php \app\code\local\RN\ShortUrl\controllers\IndexCont...
Rithy
3

votes
1

answer

Mongoose update values only if changed

Is there any way in mongoose to update document only if the values changed? Something like User.findAndUpdateOnChange({query}, data, function(err, user){ }); I am very new to node js. Any help would be great.
Ankush Ganatra
4

votes
3

answer

C# data binding doesn't update WPF

I'm trying to do a Data Binding in the C# code behind rather than the XAML. The XAML binding created in Expression Blend 2 to my CLR object works fine. My C# implementation only updates when the application is started after which subsequent changes to the CLR doesn't update my label content. Here...
Jippers
2

votes
1

answer

Gspread keep alive after update google auth2

There are several examples for 'keep the connection with google spreadsheet alive' But all I found are based on the 'old' Google Sign-In system which isn't work anymore since april 2015 What is the proper methode to keep the connection with googlespreadsheet alive using OAuth 2.0 I've Tried this i...
Richard
2

votes
3

answer

Update Database from Model (when model changed)?

I'm developing an application (for my education, not commercial) using MVC3 and Model First approach. I created a model and generated the SQL CE 4 database from it. Next, I may need to change my model - i.e. add a column to a table, which is not a primary or foreign key column. I only see an option...
Evgeny
2

votes
2

answer

Update CSS property from Code behind

I am new to web programming and need some help. I am using this CSS code to control look of a label dynamically. how can I change the value of the attribute 'width'from code behind dynamically?Also I need to flash the label text. Please find my code below **strong text** .bar { position: relative; w...
user2801184
1

votes
1

answer

why repeated '(load' does not update definitions?

I have a file open in editor and a scheme running in a console window next to it. Here is what is in the file: (import (rnrs)) (define THIS 'Hello') (display THIS) ;; does not work if loaded I edit definitions in a file, save it, then switch to scheme window and execute (load 'c:\\path\\to\\filename...
nsg
2

votes
2

answer

RivetsJS: Update model with jQuery-ui Datepicker

I'm new in rivets.js and I love it! Very useful in micro sites or small code fragments when other complete frameworks such AngularJS are too heavy. I can make it work in all cases except when the input values changes via jQuery Plugin, a Datepicker in this particular case. rivets.configure({ prefix...
Korreca
3

votes
3

answer

Update Only Changed Values to Database

I have a form that I am trying to use to track batches of beer. Because the process of brewing takes several weeks or even months, I cannot complete the form all at once. When I first create a record for a beer, most of my values are set as NULL. When I retrieve the record and attempt to update i...
TheAleMaster
17

votes
4

answer

Node.js mysql query syntax issues UPDATE WHERE

I trying to update some info in MYSQL DB, but I'm not sure of how to do it with in node.js. This is the mysql driver I'm using https://github.com/felixge/node-mysql What I have so far connection.query('SELECT * FROM users WHERE UserID = ?', [userId], function(err, results) { if (results[0]) { if (re...
agdurrette
3

votes
4

answer

MERGE - Multiple WHEN MATCHED cases with update

When I launch this request, I receive the SQL Server number error 10714. I understand that I can't use more than one UPDATE with WHEN MATHED but I don't know how can I do. MERGE INTO Photo p USING TmpPhoto tp ON p.ProductNumberID = tp.ProductNumberID and p.SHA1 = tp.SHA1 WHEN MATCHED AND p.Rank = tp...
Seb
2

votes
1

answer

How to update a plot event driven?

How can I update a matplotlib plot event driven? Background: I wanna program a tool that displays me measured values I receive via a serial port. These values will be send by a serial connected device when it has measured values and not when the host requests. Current State: It seems there is no wa...
Fabian
2

votes
1

answer

MethodNotAllowed when trying to do an update.

I'm using PHPstorm with Laravel 5.2.3, and currently trying to update a persons information by reusing a form from my create page. I've followed everything to the T from the laracast tutorials, but for some reason I'm getting the MethodNotAllowed error when I hit submit on an update. Routes Route::...
ph0bolus
3

votes
3

answer

Python Pandas Update Dataframe Column Types

I am reading an excel into pandas and all column headers are datetime except first one. I want to format the datetime column headers. This is the test data and code. import pandas as pd import datetime d = { datetime.datetime(2018, 01, 31, 8, 00): [9.1, 8.5, 7.4, 6.5, 5.3], datetime.datetime(2018,...
ProgSky
2

votes
2

answer

MS Access Too Many fields during UPDATE

When I try to UPDATE a table in MS Access, it gives and error saying too many fields defined. I googled and saw that i need to Repair and Compact, which I did, but still does not work? Anyone has any ideas? Also, what actually count towards the 'too many field' counter? Thanks.
Jake
38

votes
6

answer

PrimeFaces commandButton doesn't navigate or update

I'am using Primefaces to make my app a little bit more beautiful. I noticed that p:commandButton and h:commandButton don't work the same way. The p:commandButton calls the method and nothing else hapens. The h:commandButton calls the method and returns a navigation. I have got trouble with redirecti...
Sven
3

votes
1

answer

Simplify multiple subqueries in UPDATE statement

I want to make my Flarum forum update its discussion records after manual intervention into the database. (Flarum is still in beta and still lacks many features, so fixing things manually isn't that uncommon.) I managed to compose the following query which does what I wanted: UPDATE discussions as d...
firegurafiku
5

votes
2

answer

How to update .value inside controller angularjs?

I tried to pass value form one module to another module in angularjs. using .value which is working fine. working:- var app = angular.module('app', []); app.value('movieTitle', 'The Matrix'); var app1 =angular.module('app1', ['app']); app1.controller('MyController', function (movieTitle) { //Here I...
Suresh B
2

votes
3

answer

How to update jsonb string with PostgreSQL?

I'm using PostgreSQL 9.4.5. I'd like to update a jsonb column. My table is structured this way: CREATE TABLE my_table ( gid serial PRIMARY KEY, 'data' jsonb ); JSON strings are like this: {'files': [], 'ident': {'id': 1, 'country': null, 'type ': '20'}} The following SQL doesn't do the job (synta...
wiltomap
2

votes
2

answer

MySQL: multi-row update with one query

I have an array with 3,000+ rows fomrated like this $COUNTS = array( 1=>5, 2=>22, 3=>120, 4=>0, .... ); where the key represents an ID and value is the calculated COUNT... I need to update all the rows in my table with these new values (with php)... so right now I am updating them one by one (simpli...
DS_web_developer
5

votes
1

answer

Backbone - Update URL from view function

I'm stumbling through my first backbone project, and am trying to update the URL after a button element is clicked. I can manually set the URL via window.location.hash, but I assume this is not the correct way. Can anyone tell me what is the preferred way to update the URL? var AppView = Backbone.Vi...
Matt
3

votes
0

answer

Heart rate update frequency on Phone

I have an iOS 10 iPhone app, with a WatchKit 3 Watch app extension. The Watch app is running an HKWorkoutSession, and successfully querying .heartRate data. A sample is returned about every 5 seconds. The phone app is running a similar query, but generally returns an empty samples array, although oc...
Ashley Mills
36

votes
2

answer

Update text of notification, not entire notification

Prelude I'm trying to add a chronometer on the notification. The chronometer is a service. Every second this line is called (continue Thread is a the 'running' boolean, timeString is the elaborated String showing the time): NotificationChrono.updateNotification(getApplicationContext(), continueThrea...
David Corsalini
2

votes
2

answer

Update value of array field using mongoid

I'm trying to find a way to update a single array item using mongoid. I'm using Rails 4 and Mongodb. My model looks like this class User include Mongoid::Document include Mongoid::Timestamps field :my_book_list, type: Array, default: [] field :book_name, type: String I'm able to add entry to the arr...
ArkoD
1

votes
4

answer

Cannot update Date field - MySQL PHP

My webpage has a date field which uses javascript calendar. The format of the date field on web page is MM/DD/YYYY. When the user enters all information and hits submit, all fields except the corresponding field of Date gets updated. Here are details: HTML: *Date: PHP Code:
name_masked
37

votes
3

answer

MongoDB update data in nested field

i'm using Mongo to be my database. i have a data: { _id : '123' friends: [ {name: 'allen', emails: [{email: '11111', using: 'true'}]} ] } now, i wanna to motify user's friends' emails ' email, whose _id is '123' i write like this: db.users.update ({_id: '123'}, {$set: {'friends.0.emails.$.email' :...
allen wang
2

votes
2

answer

Mysql on duplicate update not working?

movie_title is a unique column. I want to update columns on duplicate. There are no errors in the query. foreach($array['data'] as $row) { $movie_title = $row[0]; $time_published = date('Y-m-d H:i:s',strtotime($row[2])); $language = $row[3]; $views = $row[4]; $active = $row[6]; $type = $row[7]; $c...
user892134
2

votes
1

answer

Can't update variable inside CMake marcro

How can I modify a parameter inside a CMake Macro? I'm using CMake version 2.6 and I can't update the variable! Here's a basic example: # macro definition MACRO(MYTEST RETVAL) message('input RETVAL=${RETVAL}') SET(RETVAL 'new return value') message('after update RETVAL=${RETVAL}') ENDMACRO(MYTEST)...
carmellose