Search update

60548 results
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
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
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
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

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
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
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
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
6

votes
1

answer

Sqlite “Update” C# Syntax Error

Hi following Code gives a Syntax Error.I don't know how to fix the Problem. The Error {'SQLite error\r\nnear \'Mytext\': syntax error'} My Code string dataSource = 'Database.s3db'; SQLiteConnection connection = new SQLiteConnection(); connection.ConnectionString = 'Data Source=' + dataSource; connec...
user1248067
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

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
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

ThreeJS : Update text inside THREE.Sprite

I create a sprite object which contains text inside using the context.fill method. However, I wish to change the text so that it displayes a distance that I have calculated in the 3D canvas. I do the calculation pretty often so that's why I don't simply create new sprites with the new value inside.....
Yenza
5

votes
1

answer

Update Scope With SetInterval / SetTimeout

I'm trying to create a 'Clock' directive as a way to learn Angular. How would I go about making sure it 'ticks?' Here's what I tried fiddle Link: angular.module('app') .directive('clock' , function(){ return { restrict: 'E', template: '{{date}}', link: function(scope, elem, attr){ scope.date = getD...
Pharylon
2

votes
1

answer

Update mail with php imap

I'm making an email client with php and its built in imap functions. I have some issues with the drafts folder. This is how I upload an email after I save it in my own db: $didAppend = imap_append($this->imap, $mailbox , 'From: ' . $mail->fromContact->EMAIL . '\r\n' . 'To: [email protected]\r\n' . 'Su...
zzzzzzzzz
1

votes
3

answer

Internet Explorer doesn't update file

I'm using AJAX with PHP to read from a file and update the div's innerHTML. It works on Chrome and Firefox, but not in Internet Explorer. I tried to use: But I think it is useless, since I'm not refreshing the page. if(!$newMsg || $newMsg == '') { // only reading from the file // do nothing } else {...
Leandro
2

votes
1

answer

Colfdfusion loop status update Ajax

I have a loop in Coldfusion which will run for a long time; about 2-4 minutes. I would like to show a status update every time the loop has ran. The loop: The loop which takes care of showing data: #nieuw[checkThisUrl].id# #nieuw[checkThisUrl].shares# How can I accomplish the Ajax update on ever...
Proto
5

votes
5

answer

Data Update in Slick Grid

I have a slickgrid, with about 100 rows. Its data is refreshed in 5 seconds, but it is disturbing at each update the scroll is reset. I have tried to use dataview and dataview.refresh() but this time no change is reflecte to grid. Here what I tried at each refresh: mapMemoryTableDataView.beginUpdate...
javanes
4

votes
0

answer

Android Calendar Event Update SQLiteException

I'm having some trouble updating a calendar event. Here's the code I'm using to insert it: long calID = 1; long startMillis = 0; long endMillis = 0; Calendar beginTime = Calendar.getInstance(); startMillis = beginTime.getTimeInMillis()+5000; endMillis = startMillis+1000; ContentResolver cr = getCont...
David M
8

votes
3

answer

Composer fails to self-update

When I try to run composer self-update, I get the error: The file is corrupted (creating archive '/home/heytherejake/.composer/cache/composer-temp.phar' disabled by the php.ini setting phar.readonly). Please re-run the self-update command to try again. I have set phar.readonly set to Off (and my php...
Jake Roussel
2

votes
2

answer

Cocoa-Bindings : Update NSObjectController manually?

In my little cocoa application I have bound the properties of a class to some text fields with help of a NSObjectController. The only problem I have so far: you always have to leave a text field before the NSObjectController updates the class with the current input. This becomes a problem if the use...
TalkingCode
2

votes
4

answer

update row if count(*) > n

my DB has this structure: ID | text | time | valid This is my current code. I'm trying to find a way to do this as one query. rows = select * from table where ID=x order by time desc; n=0; foreach rows{ if(n > 3){ update table set valid = -1 where rows[n]; } n++ } I'm checking how many rows exist...
Francis Snipe
16

votes
6

answer

Update model django through kwargs

How can i pass a dict which contain fields to update a Django model? This is not to create an object, but to update it. example: obj = Object.objects.create(index=id, **fields)
Pol
3

votes
0

answer

Update tagger of annotated tag

I have a git repo that came over from svn. I converted the tag branches to actual git tags. I have set $GIT_COMMITTER_NAME, $GIT_COMMITTER_EMAIL and $GIT_COMMITTER_DATE to $GIT_AUTHOR_NAME, $GIT_AUTHOR_EMAIL and $GIT_AUTHOR_DATE for all commits, using git filter-branch. What I'm left with now, is th...
Amedee Van Gasse
3

votes
3

answer

Zend framework $db->update result

Zend_Db_Adapter::update() returns the number of rows affected by the update operation. What is best way to determine if the query was successful? $data = array( 'updated_on' => '2007-03-23', 'bug_status' => 'FIXED' ); $n = $db->update('bugs', $data, 'bug_id = 2');
PHPst
8

votes
1

answer

Sudo gem update --dry-run?

Is there a way to make RubyGems tell if there are any updates available? I find myself constantly running sudo gem update -- often several times every day. If I could run the command with a flag like --dry-run, then I could asses if the changed gems were significant to add (and also only run it whe...
25

votes
5

answer

MySQL bulk INSERT or UPDATE

Is there any way of performing in bulk a query like INSERT OR UPDATE on the MySQL server? INSERT IGNORE ... won't work, because if the field already exists, it will simply ignore it and not insert anything. REPLACE ... won't work, because if the field already exists, it will first DELETE it and then...
rid
1

votes
4

answer

Batch-update with ServiceStack webservice

How would you implement a batch update over a REST service if we have multiple changed properties? Lets say we have an administrator managing 100 client computers in his software. Some of the computers changed their location and some got deleted. Other ones got a new description, etc. So it's not j...
TheBert
2

votes
0

answer

Update file in google drive

I want to create spreadsheet file in my google drive folder, and if it already exists in directory to update it. New file creation works fine, but I couldn't update the existing file. What I am doing wrong? Exception in thread 'main' java.lang.IllegalArgumentException at com.google.api.client.repack...
Ilnar Sabirzyanov
2

votes
1

answer

Update identity column sql [duplicate]

This question already has an answer here: How to change identity column values programmatically? 13 answers How to update my identity column Id ? I get the Msg 8102, Level 16, State 1, Line 1 Cannot update identity column 'Id'. when i try to update id update [WarehouseReports].[Reports] set Id=Id+...
user2171512
2

votes
2

answer

Elixir update nested keyword list

Is it possible to update a nested keyword list in elixir? For example i am trying to make the following work Keyword.put(conn.private.phoenix_endpoint.config(:url), :host, conn.host) But somehow, the updated host is not reflected in the conn variable.
Pratik Khadloya
12

votes
4

answer

Entity Framework 6 Update Graph

What is the correct way to save a graph of objects whose state you don't know? By state I mean whether they are new or existing database entries that are being updated. For instance, if I have: public class Person { public int Id { get; set; } public int Name { get; set; } public virtual ICollection...
Malaise
2

votes
1

answer

Python update Matplotlib from threads

I'm pretty new to the python world and unfortunately I could not find any solution to this yet. I'm running python 3.6 with matplotlib==1.3.1 on Mac OS X 10.13.2 Currently I'm trying to build a small software which fetches data at 4Hz and displays the fetched data in a plot at 1Hz. Therefore I creat...
derphelix
3

votes
1

answer

ArangoDB / AQL Update Nested Documents

Given the following document structure: { '_key': 'abc', '_id': 'abc', 'label': 'Company ABC', 'departments': [ { 'name': 'Department 123', 'id': '123' }, { 'name': 'Department 456', 'id': '456' } ] } Can you tell me why the following query doesn't work? The error message is 'missing document key'....
Leia
70

votes
13

answer

Devise update user without password

I want to update users attributes without password in devise. The case is like, if password and password confirmation fields are not blank then I need devise error and if they are blank then other user attributes need to be updated. How could I do this with devise? Thanks in advance!
kriysna
8

votes
1

answer

Android application update - how to?

What is the best way to let my users perform an application update? Is there any way to force device reboot after the update? I'm asking this because my application registers some behavior on boot. Please note, the application would not be published in the Market. Update: My app will be preinstalle...
ohnoes
1

votes
3

answer

How to update docker images

Let's say I have a below Python code: #!/usr/bin/pyton3 import time while(True): print('Hello World') time.sleep(1) Using above Python code I have created a docker image pythondocker by using a dockerfile. Now dockerfile contains a lots of packages which it needs to install first and then build an i...
S Andrew
4

votes
2

answer

Update statement for multiple ids

I have 3 tables, i need to update 3rd table's column by calculating data from other two tables. update table3 set column3= ( select t2.column3+t1.column3 from table2 t2 with (nolock) join table1 t1 on table2.id=t1.id where table2.id= 100 ) where id= 100; This query works fine, it updates the 3rd tab...
Sharpeye500