Search update

60548 results
2

votes
2

answer

GORM - Update object without retrieving it first

I'd like to be able to update a previously persisted object for which I have an id without having to retrieve it first. The main thing that I'm trying to avoid is having to copy multiple values into the object's fields when that object has been retrieved from the database. I have these values in a...
WXB13
2

votes
3

answer

Partial replace/update on a data frame

I have the following code: set.seed(47) df partial_key V1 V2 1 a 1 2 b 2 3 c 3 I'd like to replace the values of V2 in df with the corresponding values from partial_key that match in the V1 columns. The non-matches should remain as is. With a complete key, I'd use match, which replaces the co...
Gregor
4

votes
1

answer

Android Studio update today with regression

Started Android Studio today, and it popped up an update notice. Since I'm eager to explore new features and bug fixes, I clicked yes. Now the Project Structure dialog where you setup dependencies is missing, and has been replaced by a message: We will provide a UI to configure project settings la...
regretoverflow
3

votes
1

answer

Update messed up Android Studio environment

After updating Android Studio and everything related via the SDK Manager, I can no longer create the simplest of apps containing a single Blank Activity, because of all these rendering problems. Choosing an Empty Activity still seems manageable though. Coming back to my Blank Activity issue, this is...
Web User
4

votes
3

answer

How to update Hibernate delivered with Play?

Play frameworks comes with an old Hibernate version (3.6.1). How can I update Hibernate in my Play application? Via Ivy? Following Pere's advice I tried: require: - play - org.hibernate -> hibernate-core 3.6.8 force: true repositories: - jboss: type: http root: 'http://repository.jboss.org/nexus/con...
deamon
2

votes
3

answer

Update of large entity through service

We're building an n-tier system based on WCF (but not Entity Framework) and we've run into a discussion of the best way to implement updates of large entities. We've created DTOs and map data from our domain model into theese when data is sent to the client. The client then makes some changes and s...
Wiz101
2

votes
2

answer

Iteration to update 2 dimensional array

Hi so essentially I have the basic text file: 3 1 0 1 0 1 0 1 1 1 And I'm trying to create a 2 dimensional array that contains the values as integers. My code so far is: import numpy as np f = open('perc.txt', 'r') n = f.readline() j = 0 dim = int(n.rstrip(' \n')) mat = np.zeros((dim, dim)) for i in...
thyde
2

votes
3

answer

tsql multipe update on single table

Is there a way to update a table based on multiple where clause. In one single statement? update A set Final = '21' from StudentTable A where Student_ID= 4 and bitcm= 0 and receipt= 17 update B set Final = '22' from StudentTable B where Student_ID=4 and bitcm= 0 and receipt =12 update C set Final ='...
palum
3

votes
1

answer

Angular 1.5 not update ng-repeat

I display a table through ng-repeat First Name Last Name Email CellPhone Update {{MyList.Contacts[$index].Title}} {{MyList.Contacts[$index].Email}} {{MyList.Contacts[$index].CellPhone}} Изменить Loading through the service on the ajax data spApp.controller('spListCtrl', function spListCtrl($...
Alexey Kleandrov
1

votes
1

answer

Mysql function to update foreign key

I have a table A with duplicate data and I would like to normalize it. But there is another table B which refers to table A ids. There is no real foreign key. It is only the fact. I would like to create temp. table C and fill it by use ON DUPLICATE KEY UPDATE to remove duplicities from table A. But...
Čamo
2

votes
1

answer

Update multiple rows based on multiple values

Lets say I have this: Declare @passRefID as int Declare @passTextA as varchar Deckare @oassTextB as varchar Declare @passPropertyA as int Declare @passPropertyB as int Set @oassTextA = 'Joe' Set @passTextB = 'Smith' Set @passPropertyA = 21 Set @passPropertyB = 23 TSQL A: Set @passRefID = Select Ref_...
Charles Bernardes
3

votes
2

answer

compareAndSet memory effects when expected==update

Java exposes the CAS operation through its atomic classes, e.g. AtomicInteger.compareAndSet(expected,update) When expected == update, are these calls a no-op or do they still have the memory consistency effects of a volatile read+write (as is the case when expected != update)?
Josh
3

votes
2

answer

Java 8 - Stream - value update while collecting

In extension the previous question Java 8 - Calling a multi argument method from Collection.stream.map(), how can we update the values while collecting in collect() after stream().map() process? String designation = 'Engineer'; String preFix = 'PRE_FIX'; List names = new ArrayList(); names.add('ABC'...
Prasad
2

votes
1

answer

Meteor - Tracker.autorun not refreshing data on update.

I have some basic code that I wrote for a texting app: import React from 'react'; import ReactDOM from 'react-dom'; import {Meteor} from 'meteor/meteor'; import {Tracker} from 'meteor/tracker' import {Texts} from './../imports/api/Text'; import App from './../imports/ui/App' Meteor.startup(() => {...
Stuart Fong
8

votes
1

answer

Asynchronous update of promise in Netty Nio

I have got a server and client architecture that exchange information. I want to return from the server the number of connected channels. I want to return the message of the server to the clients using promise. My code is: public static void callBack () throws Exception{ String host = 'localhost'; i...
konstantin
1

votes
3

answer

Show FB status update popup on click?

I have this code which allows the user to update their fb status on my page: My Great Website FB.init({ appId:'**', cookie:true, status:true, xfbml:true }); FB.ui({ method: 'feed', message: 'Facebook for Websites is super-cool'}); It works fine but when the page loads it automatically shows the...
Charlie
15

votes
3

answer

Updating Composer autoload files without `composer update`?

I'm working on a project which has a lot of dependencies which I personally control. Whenever the namespace mapping changes in a requirement, I need to run composer update to refresh the Composer autoload file so the namespace mappings can be picked up. However if I'm making changes in the vendor/ d...
jevon
2

votes
0

answer

d3.js - how to update chart data?

Another step in my journey to learn D3.js... I've got a simple reusable chart I'm calling a 'cluster chart', and I'm trying to get my head around simply updating some values without adding or subtracting any elements. There is a fiddle here: http://jsfiddle.net/rolfsf/8bXAN/ The chart script looks...
rolfsf
14

votes
8

answer

ng2-charts update labels and data

I'm trying to create dynamically a chart using ng2-chart, I get information from an angular 2 service, when I change only labels of chart it works and when I change data only it works, but When I change both just data are updated in the chart. have any one an explication for this strange behavior....
mustafa918
23

votes
4

answer

Update and left outer join statements

I have two tabels with a relation and I want to update a field in table A. Is it possible to combine update and join in the same query? I googled it but didnt find any working solution? UPDATE md SET md.status = '3' FROM pd_mounting_details AS md LEFT OUTER JOIN pd_order_ecolid AS oe ON md.order_d...
Evilaid
8

votes
3

answer

eclipse error with plugins after update

I encountered a problem with This version of the rendering library is more recent than your version of ADT plug-in. Please update ADT plug-in i tried this as learned from: Eclipse reports rendering library more recent than ADT plug-in 1. Click Help > Install New Software. 2. In the Work with field...
HimanshuR
2

votes
2

answer

Reading values during entity values update?

I feel like this must have been answered somewhere and I'm just not querying for it right, so I'll apologize in advance. I've got a method that takes hundreds of objects from a service and maps them to the database using the code first approach. Right now I'm adding all the objects to the context, o...
Ber53rker
3

votes
1

answer

why python dict update insanely slow?

I had a python program which reads lines from files and puts them into dict, for simple, it looks like: data = {'file_name':''} with open('file_name') as in_fd: for line in in_fd: data['file_name'] += line I found it took hours to finish. And then, I did a bit change to the program: data = {'file_na...
WKPlus
5

votes
3

answer

Update Kendo NumericTextBox with MVVM on spin

Take a look at the MVVM example here: How can I get the MVVM value to update on the spin event (clicking the up or down arrows) Here is what I tried: In the spin event, I tried to do $('#ntb').getKendoNumericTextBox().trigger('change'); That worked but had weird side effects. If there are enough el...
Matt
2

votes
1

answer

Update the cache when dataset is updated

I have a data set storing all continents with their respective countries. I am caching the data table: DataSet dset = new DataSet(); string cacheKey = 'CoverageDataTable'; object cacheItem = Cache[cacheKey] as DataTable; if (cacheItem == null) { dset = (DataSet)_obj.GetAllContinent(); cacheItem = ds...
user1509
2

votes
1

answer

Backbone.js causes update instead of create

Anyone know why is that? I have a collection called Categories. After doing: Categories.create({name: 'MyCategory'}); or: category = new Category(); category.set({'name' : 'MyCategory'}); category.save(); I get an 'update' request instead of a 'create' request. Why is that?
Ron Reiter
2

votes
3

answer

Windows Forms Application update when minimized

I have a windows forms application where i add the mainloop in the constructor of the form like this: Application.Idle += new EventHandler(Update); that works fine - however, my update function is not called when I minimize the application window. What do I need to do in order to get my update funct...
genesys
2

votes
1

answer

Using table-valued function in update statement

I'm trying to execute the following update statement: Update belege2 Set Preis_Einh = x.Preis, Aktion=x.Aktion, PreisHerk = x.PreisHerk FROM dbo.GetPreis(belege2.prodkey, belege2.Anzahl) x where belege2.Beleg_Nr = 13599 SQL Server displays the following errors: Msg 4104, Level 16, State 1, Line 3...
doerig
2

votes
0

answer

How to update a dynamic table?

Before you see the code, I want to try and explain what I want to happen. This is a personal project, not worried about sql injection, nothing production, etc., etc.. My application lets a user create an account, select which classes they've taken, then views them. What I have currently: A user crea...
tryingtotryhard
2

votes
1

answer

Search, Add and update using LINQ

I need the ability to track work items by ServerGroup. Each ServerGroup may have multiple FaultCodes. What is the best XML layout should I use? Option A or B? I was able to create a linq query to search on Option A. But I wasn't sure how to then check the Fault Code. So, I thought Option B, as i...
EMIE
2

votes
2

answer

Multiple update forms for one model

I want to have multiple forms on one page. Let's make an example to understand what I want: I have a page for my admins, let's say it's the admins#show page. My admin has to change his name on one form on this page and on another form his age. I know I could create one form but I want to have multip...
Tommy
12

votes
3

answer

How to detect a forced update

When a branch history is changed on the remote, you typically get o [email protected]:XXXXX/Project.git + efe2e8b...cda0ee7 HEAD -> Ant_Config_processing (forced update) Is there any way to get this (forced update) status using scripting ? The idea is to write an alias that detects it and prompt th...
Olivier Refalo
2

votes
3

answer

Update MySql from MS SQL server

I need help in writing queries which will update MySql tables from SQL server. I have created linked server and select queries work fine but I'm getting errors while doing update. I'm really new to writing such type of queries so please help me understanding error message and what it means. My updat...
pramodtech
3

votes
2

answer

How to update 2 JCombo Boxs

I have 2 Jcombo Boxs: which is combo1 and combo2 I choose combo1 and I can get information for combo2 but The problem is I can get informatiob for combo2 but it is not updated. I also try to use updata.UI() but it doesn't help. This is the code in side public void actionPerformed(ActionEvent e) { J...
3

votes
1

answer

spark udaf update array type of tuple

I'm using Scala + Spark 2.0 and trying to write an UDAF that has an Array of tuples as its internal buffer as well as its return type: ... def bufferSchema = new StructType().add('midResults', ArrayType( StructType(Array(StructField('a', DoubleType),StructField('b', DoubleType))) )) def dataType: D...
Jeremy
3

votes
1

answer

AngularJS Directive doesn't update scope for callback

I am using directives to create a component library in AngularJS 1.5. Hence, my directives need to have isolate scopes. Some of my directives have callbacks so you can pass in a function to get invoked by the directive. However, when that callback is invoked by the directive, it doesn't seem like th...
Todd Palmer
4

votes
2

answer

Update unique or primary keys in MySQL

I'm building a database management tool for a client to use on his own, and I'm having some problem dealing with the possibility of the update of primary/unique keys. So, given that the data for the update is passed by a PHP script on a per row basis, here's what I've come up with (from 'immediatly'...
siberius.k
2

votes
1

answer

Three.js - async update of Mesh objects poisitions

I am developing an Three.js app, where I draw a grid which displays objects. I have multiple objects which are rendered on the grid according to their positions. I create and render the elements according to data which is fetch from a REST API- which I poll every 300ms. Currently I am doing the fetc...
ziggy2121
2

votes
2

answer
3

votes
3

answer

How to use Document#update in Mongoose?

I'm looking at the example here for Document#update in Mongoose: http://mongoosejs.com/docs/api.html#document_Document-update Method signature: Document#update(doc, options, callback) Example code: weirdCar.update({$inc: {wheels:1}}, { w: 1 }, callback); The documentation says the first parameter s...
Kevin Wu