Search update

60548 results
25

votes
5

answer

Django Rest Framework partial update

I'm trying to implement partial_update with Django Rest Framework but I need some clarification because I'm stuck. Why do we need to specify partial=True? In my understanding, we could easily update Demo object inside of partial_update method. What is the purpose of this? What is inside of serialize...
intelis
5

votes
4

answer

Update UI from an AsyncTaskLoader

I've converted my AsyncTask to an AsyncTaskLoader (mostly to deal with configuration changes). I have a TextView I am using as a progress status and was using onProgressUpdate in the AsyncTask to update it. It doesn't look like AsyncTaskLoader has an equivalent, so during loadInBackground (in the...
Kris B
2

votes
3

answer

Hibernate - Table Locked after update

I'm performing an update via a method using Hibernate and the EntityManager. This update method is called multiple times (within a loop). It seems like when I execute it the first time, it locks the table and does not free it. When trying to update the table via SQL Developer after having closed the...
Yassin Hajaj
2

votes
3

answer

Laravel 5 session array update

I am having trouble while updating session array value in laravel 5. Here is my function, public function postCartItemAdd() { $id = Request::input('id'); Session::push('items', $id); dd(Session::all()); } Instead of pushing a new id into the array it just replaces the existing value leaving single i...
Dipendra Gurung
2

votes
0

answer

Update Entities with currentUser-ID

I'm trying to update each entity with an own @EntityListeners({ ModelListener.class }). ModelListener implements @PrePersist with a method like this: @PrePersist protected void prePersist(final ModelBase modelBase) { modelBase.setUpdatedBy(currentUser);} My question is how to get the current user. I...
Marco Baar
4

votes
2

answer

How to update LiveData value?

I am using the new paging library for my data. Everything works fine when the ViewModel is created and live data is first initialized. Problem is that I can not update the value of my live data when for example I click on menu Item and want to update it with a different set of data. Then onChanged m...
tomas
3

votes
1

answer

update Interaction Model without resubmission

My intention is my users can insert some intent to my alexa skill using my applications. So I need to change the intent schema and sample utterance of my alexa skill dynamically. Is there any way to update intent schema and sample utterances without resubmisson and without using amazon developer por...
ziLk
2

votes
2

answer

update multiple documents with mongodb

How to iterate an array of objects to update documents with mongodb and keep the modified documents to return back in the response Notice the comments in the code .put(function (req, res) { var data = req.body.data; var documents = []; for (var item in data) { var id = data[item]._id; var document =...
jj-aa
2

votes
1

answer

TSQL Update with three joins

I have the following TSQL Select statement select s.StudentID, s.LastName, s.FirstName ,o.CourseID, c.CourseTitle, o.Semester, s.Feedback_Status from Students as s join StudentEnrollments as se on s.StudentID = se.StudentID join OfferedCourses as o on o.SectionID = se.SectionID join Courses as c on...
Shlomo Katz
43

votes
2

answer

how to update git clone

I have started using git. I have cloned the master on my local system. I make the changes on the local machine and use git push to the update the master. It works fine. I have a quick query how to update my clone from the master. I tried GIT remote update. It did not work, new changes does not appea...
Josh Randall
2

votes
1

answer

Not Allowing SQL Update Query

I want to select some id from a table based on a condition, and update them. UPDATE user_feed SET `status` = 'DELETED' WHERE id IN ( SELECT feed.id FROM user_activity act JOIN user_feed feed ON act.id = feed.activity_id WHERE act.uid = 16 AND feed. STATUS = 'ACTIVE' ) Showing this error [SQL]UPDATE...
Wasiq Muhammad
2

votes
1

answer

Exception for same data update

Need help in exception handling. If I run this UPDATE script once it works, but when I run same script two or more times I receive the following error '1 row updated. commited' but it is not ok. I want to receive exception. 'Note:Table is already updated' UPDATE FBTB_TXNLOG SET txnstageid = '-1', L...
Taoqir
2

votes
2

answer

Update matching rows from lists

I have a table that looks like this: Column1 | Column2 | Column3 sky | blah | Null giraffe | blah | Null apple | blah | value And 2 lists: List1 = [sky, gold, giraffe] List2 = [blue, yellow, tall] I am looking to match some of the values in Column1 with values from Lis...
StevenH
8

votes
8

answer

“Atomically” update an entire array

I have a single writer thread and single reader thread to update and process a pool of arrays(references stored in map). The ratio of writes to read is almost 5:1(latency of writes is a concern). The writer thread needs to update few elements of an array in the pool based on some events. The entire...
trequartista
2

votes
2

answer

Update Value on Vuetify Slider

What I'm trying todo is update the value when the slider position has moved. [codepen]https://codepen.io/JakeHenshall/pen/WLezNg Tick labels {{ ticksLabels[0] }} {{ ticksLabels[1] }} {{ ticksLabels[2] }} {{ ticksLabels[3] }} {{ ticksLabels[4] }} Javascript: new Vue({ el: '#app', data () { return { v...
Henshall
2

votes
1

answer

Update app namespace Laravel 5.2

I finally decided to upgrade my Laravel app from 5.1 to 5.2, so I followed the upgrade guide. I started learning Laravel right at 5.1 so this is my first upgrade, I upgraded because I am looking forward to the api guard driver, however, I noticed that the web and api middlewares are not there, since...
enriqg9
5

votes
8

answer

How does software update work?

Ive been reading Liang's Introduction to Java Programming for a couple of weeks, and that question came up when the author said 'There is no need for developers to create, and for users to install, major new software versions.'. How does software update work? For example, patches for games, new vers...
rapfaria
2

votes
1

answer

Can't Update Users with GraphServiceClient

My problem is exactly what it says in the title. If I want to interact with users using MicrosoftGraph, I have a few options: graphClient.Users.Request.GetAsync() graphClient.Users.Request.AddAsync() I would like to see: graphClient.Users.Request.UpdateAsync() Unfortunately, my problem is that I do...
2-bits
4

votes
3

answer

Update primary key Django MySQL

sorry for my poor english, my problem is: I try to update the PK in Django with the method .save() but when i save the object Django duplicate the object withe the same data but differetn PK, example: from gestion_empleados.Models import Empleados >>> e = Empleados.objects.get(pk='56789034U') >>> e....
avr
2

votes
1

answer

Bulk update within embedded documents

When adding entries to the daily key, there are two cases to be handled a) Addition of a new day -: { 'day': 6, 'sessions': 300} b) Updating fields for a specific day, like if sessions were recalculated and changed to 105 for 2nd day Sample Schema { _id: '201010/site-1/apache_pb.gif', metadata: { da...
Pratik Bothra
2

votes
1

answer

Edit, update record with DAO.Recordset

I have two tables Table1 and Table2. In Table1 there is Column called FileID and Table2 there is column called FileID. Now FileID is not unique, so there are certain rows where FileID is repeated in both tables. I have a Form in Access, where there is field called GetDate from Table1. I need some...
user3473275
1

votes
1

answer

update TEdit text from combobox

I have a form that consist of two TComboBox and one TEdit controls and I would like to be able to update a word in the TEdit control with the value from the comboboxes, but not quite sure how to make it work. Example: Combobox #1 has the following items: sue, bill, andy, chris Combobox #2 has the f...
nosx
1

votes
2

answer

UPDATE query involving multiple tables

I have two tables.. Persons: empid(primary key) firstname lastname email Details: Did(primary key) salary designation empid Now I need to UPDATE email of the employee whose name is 'abc' AND designation is Manager.(lets suppose there are more than one employees names abc and therefore designation ne...
Arbaaz
4

votes
4

answer

Tortoise svn Subversion Update Error

I recently was working on an open source project... Everything was going great for a week or two but them something happened and I don't know what, and I can't update anymore! I know the url is correct, because I can check it out on my linux server... but when I try to check it out with tortoise s...
Boushley
3

votes
2

answer

Update TextView within custom ListView

I'm trying to update the TextView within a custom ListView at a set time interval, for example the TextView will update every 200ms however I can't figure out how to do this. The object updates with a number internally and I would like to show that in the mTitleText Textview however as the code belo...
kiwijus
2

votes
2

answer

Don't update my versioncode apk

Generating my apk does not update my versioncode. already be changed inside the manifest and build.grandle When analyzing apk does not update the apk, it keeps the versioncode 1.1.9, and therefore I can not update it in the play store. AndroidManifest.xml: ..... build.gradle: apply plugin: 'com.andr...
Eduardo Ruiz
3

votes
2

answer

Dynamically update gauge on highcharts

I'm working in a university website project, and I choose to work with Highcharts, it has a very easy usage. But i'm having some problems to work with .getjson for dynamically update. I used this http://www.highcharts.com/studies/live-server.htm, and this http://jsfiddle.net/oceog/zpwdp/ samples. An...
7

votes
2

answer

MySQL UPDATE, MAX, JOIN query

I have two tables: - manu_table product_id, manufacturer 1, ford 2, ford 3, toyota product_table product_id, score 1, 80 2, 60 3, 40 I'd like to store the top scoring product_id for each manufacturer in a summary table: - summary_table manufacturer, max_score ford, 1 toyota, 3 So far I've got: - U...
Jason
2

votes
2

answer

using jdbctemplate for insert/update

I'm using Spring simplejdbctemplate for bunch of insert/update based on if/else blocks. I'm wondering whether there is a way to combine all these operations into one transaction. Currently, if my code breaks (for some reason) then certain inserts are executed and certain are not. I would like the w...
birdy
4

votes
1

answer

Kendo MultiSelect update of ngmodel

I'm trying to add one button for adding values to ngmodel of kendo's multi select: Selected: {{ selectedIds }} Add selected id Here is controller function MyCtrl($scope) { $scope.selectOptions = { placeholder: 'Select products...', dataTextField: 'ProductName', dataValueField: 'ProductID', autoBind:...
Slaven Tomac
2

votes
2

answer

UITextView contentoffset update not working

I'm attempting to vertically align a UITextView by setting the content offset appropriately. I'm calling the following code when I change the text of my textView: - (void)setCenterVerticalAlignmentForTextView:(UITextView*)textView { CGFloat topCorrect = ([textView bounds].size.height - [textView con...
theDuncs
4

votes
4

answer

C# Update Table using SqlCommand.Parameters

I'm trying to update an MSSQL table using SqlCommand, I think it's a syntax error with my T-SQL, but here is what I have so far: SqlCommand sqlCmd = new SqlCommand('UPDATE yak_tickets SET email = @emailParam, subject = @subjectParam, text = @textParam, statusid = @statusIDParam, ticketClass = @ticke...
skylerl
24

votes
6

answer

Django update queryset with annotation

I want to update all rows in queryset by using annotated value. I have a simple models: class Relation(models.Model): rating = models.IntegerField(default=0) class SignRelation(models.Model): relation = models.ForeignKey(Relation, related_name='sign_relations') rating = models.IntegerField(default=0...
ramusus
2

votes
10

answer

jquery each function syntax update

I have a number of info panels sharing the same class which I wish to show/hide using the slideToggle function. The content of the panel is pulled in dynamically through json. so Ibelevide I must use the 'live' and not 'bind' function? The following code will toggle all the panels simultaneously. I...
James
32

votes
1

answer

update mysql with if condition

It seems I have big problems with conditional queries :( I have to do a conditional update. I write here what I would like to do: if(select tipo from abbonamento where idU=17)='punti' then update abbonamento set punti=punti-1 else update abbonamento set bonus=bonus-1 Obviously this doesn't wor...
Martina
2

votes
2

answer

Multithreaded update of multiple ProgressBars

I have developped an application that can process data (in my case image algorithms performed on videos). I have developed different ProcessingMethods. Sometimes several videos are processed in parallel. Each process runs in a seperate thread. I have a GUI with several ProgressBars, one for each thr...
ClaudeS
2

votes
1

answer

Update object using only DbSet

I'm trying to apply the unit of work pattern as described in this blog, but have bumped into the following problem: If I inject the associated DbSet into the repo only, e.g. public ArticleRepository(DbSet articles) { this.articles = articles; } then how do I update records or set their status to mo...
Thorsten Westheider
2

votes
1

answer

MySQL TinyInt Value Won't Update

For the life of me I can't get php to update the schdl field in mysql. It will update EVERY other field in the test queries EXCEPT schdl . The schdl value is currently set to 1 and I am trying to set it to 0 . The schdl field's NULL option is set to 'No' and the Default for the field is '0'. Steps...
user2277391
24

votes
6

answer

Auto update .NET applications [duplicate]

This question already has an answer here: Auto-update library for .NET? [closed] 12 answers We are in a process of developing a really complex system consisting of several WCF services, ASP.NET MVC applications, administration tools (Windows Forms apps)... Some of those, will have instances running...
2

votes
1

answer

Update edge weight in graphx

I'm playing around with graphx. I've built a graph I'm trying to update the weight of a relation, import org.apache.spark.rdd.RDD import org.apache.spark.graphx._ def pageHash(title:String ) = title.toLowerCase.replace(' ','').hashCode.toLong val vertexArray = Array( (pageHash('Alice'), ('Alice'))...
tourist