Search update

60548 results
1

votes
2

answer

How to update app?

There seem to not be to many resources on the internet for updating an android app. So, is all that I need to do change the version number and name in the build.gradle file of my app? versionCode 2 versionName '1.0.1' Is that all? Now I just need to make an apk of this and upload the new apk in the...
2

votes
1

answer

Primefaces datatable dynamic update

I want to update the datatable columns (particular columns) dynamically as the data changes in the server it has to reflect in UI through ajax call. How can I achieve this with primeface.
user1955010
2

votes
2

answer

Powershell Timer - Update gui

I have created a powershell timer, and after every 1 second, I would like to run a function to execute or post text to a text box log on the interface. Run the below. When you click Start, every 1 second, the log text area should show 'Post to log every 1 second, not as a batch'. However, this mes...
Rya
40

votes
5

answer

Update with two tables?

I am trying to update table A with data from table B. I thought I could do something like: UPDATE A SET A.name = B.name WHERE A.id = B.id but alas, this does not work. Anyone have an idea of how I can do this?
Nasir
3

votes
1

answer

bulk update in mvc

I want to update the list of users, In my controller I have returned the list of users return View('usersList', user); and In view I use @using (Html.BeginForm('usersList', 'UserManagement')) { @Html.EditorFor(model => model, 'tbl_UserList'); } and in editor template I use 'tbl_UserList.cshtml' as b...
Jiju John
2

votes
2

answer

Devise update password

I want to change edit password process. On edit password page I have one field :foo and I want to check if user correctly entered it. I created PasswordsController and override update method, where I added code for testing if :foo is same as in database: def update self.resource = resource_class.res...
1

votes
2

answer

Background Thread -> update UI

I'm downloading and parsing a XML document. During this, I want to update my UIProgressView. I know I have to do this in the main thread, and not in the background thread where the document gets parsed. But my problem is, when I try this: [self performSelectorOnMainThread:@selector(setProgressStr) w...
dododedodonl
2

votes
1

answer

Merge collections using update

Is it possible to update collection A using data from collection B? background: The goal of this is to get around lack of proper atomicity of mongodb. I'm looping through some log data to generate data aggregates and want to know that the data matches what was asked to be put in. Rather than doing a...
Daniel
3

votes
2

answer

Android IntentService update loop

My intention is to have download service created when the app first runs and checks for update every 24 hours. I originally had everything running my main activity but it seems to much to run everything on one thread and one class. So this is my attempt to move it to another class and into service...
MAXGEN
2

votes
1

answer

NoMethodError in UsersController#update

The error: You have a nil object when you didn't expect it! You might have expected an instance of Array. The error occurred while evaluating nil.[] app/controllers/users_controller.rb:45:in `update' Controller users_controller def update @user.groups = Group.find(@params[:group_ids]) if @params[:gr...
ahmet
3

votes
1

answer

Improve Update Statement Performance

I am building SQL Update Query This query has to show top Paid vendors and the details of the payments for each vendor per month, and at the same time the total payments for the vendor VendorTable Vendor varchar(100) Month Date MonthlyAmt int TotalAmt int - Vendor Month MonthlyAmt TotalAmt...
asmgx
37

votes
8

answer

Update records using LINQ

I need to set a value in a table for a subset of rows. In SQL, I would do this: UPDATE dbo.Person SET is_default = 0 WHERE person_id = 5 Is there a way to do this in LINQ? I currently use the: var result = (from p in Context.People....) notation. Is there an update method I can use? Or do I have to...
Craig
3

votes
5

answer

cvs update error

I am using WinCVS and when i try to update a module i keep getting this error cvs [update aborted]: reading from server: error -1 What is the actual problem here and how to resolve this?
java_geek
2

votes
1

answer

JProgressBar won't update

I'm trying the code I found on the voted answer from this question: Download file using java apache commons? It's a download application, take a little look, (I'm not much familiar with JFrames and ActionEvents) Download.java package main; public class Download extends JFrame implements Runnable{ pu...
user1541106
2

votes
1

answer

Label 3Dplot points + update

I'm quite new with python and matplotlib and this website helped me a lot. but I couldn't find a complete answer about this subject. I would like to annotate the point of a 3d plot using matplotlib, so after some research I found this peace of code : Matplotlib: Annotating a 3D scatter plot import p...
gav911
35

votes
5

answer

Python MYSQL update statement

I'm trying to get this Python MYSQL update statement correct(With Variables): cursor.execute ('UPDATE tblTableName SET Year=%s' % Year ', Month=%s' % Month ', Day=%s' % Day ', Hour=%s' % Hour ', Minute=%s' Minute 'WHERE Server=%s ' % ServerID) Any ideas where I'm going wrong?
Adam Chetnik
2

votes
1

answer

Dataset Update Filter Location

This has always bugged me to what is the best way to do the following... with a simple one to many db, when you have 2 tables/grids on a form and the 2nd one filtered by the first. where is the best place to put the filter code ie: procedure TForm1.tblCustormersAfterScroll(DataSet: TDataSet); beg...
Christopher Chase
6

votes
2

answer

Update database tables

I have the following database tables : In these tables I have the following elements : Container : Can contain any container_item element; The relation is stored using the table CONTAINER_CANDIDATES Container_Item: Can contain any element item; The relation is stored using the table COMPOUNDS Eleme...
Lucian
11

votes
2

answer

Update statement in Realm

I have VisitingCardPOJO form table. I want update single entry say where no=3 VisitingCardPOJO.java public class VisitingCardPOJO extends RealmObject { @PrimaryKey private int no; private String name; private String address; public int getNo() { return no; } public void setNo(int no) { this.no = no...
N J
11

votes
7

answer

Can't update RubyGems

I'm having difficulties updating RubyGems from version 1.1.1 to newest. I've tried the following: gem update Result: Updating installed gems Bulk updating Gem source index for: http://gems.rubyforge.org/ Nothing to update and gem install rubygems-update Result: Bulk updating Gem source index for: ht...
o01
2

votes
1

answer

ElasticSearch Index, Update APIs

I have a use-case where I create month based indexes in ElasticSearch. The data in these indexes can be updated (append-only to array type fields) if a document already exists in any month based index or else the document will be created in the current month index. Can I do this with a single operat...
blrguy
5

votes
1

answer

Update json file

I have json file with some data, and would like to occasionally update this file. I read the file: with open('index.json', 'rb') as f: idx = json.load(f) then check for presence of a key from potentially new data, and if key is not present update the file: with open('index.json', mode='a+') as f: js...
theta
3

votes
1

answer

mongodb javascript update

How do I update a mongodb collection from JS? db.collection('fruits', function (err, collection) { collection.update({ '_id': content.fruitID}, content, function () { }); }); Am I doing this right? DO I need to use $set? Basically content is a json object that should replace the document that's foun...
Mark
2

votes
1

answer

Update UIApplicationShortcutItem from extension

I am building a Today Extension to an app, and it works great to modify my application data. But now my dynamic UIApplicationShortcutItems are out of sync. I can't access UIApplication.shared from my extension. Is there a way to ask the app to update UIApplication.shared.shortcutItems without bringi...
Henrik
1

votes
2

answer

Update Vuetify version

To update my project vuetify, I changed the version in package.json and executed 'npm install'. vuetify has been removed from node_modules folder !. how should i install it again? why 'npm install vuetify' does not bring it back to node_modules?
HoseinPanahi
1

votes
1

answer

$elemMatch and update

I would like to update a subdocument that was fetched using $elemMatch. I've found some posts online but so far I am not able to get it to work. This is what I have: Schema: var user = { _id: ObjectId addresses: [{ _id: ObjectId street: String }] }; Code: this.findOne({ 'addresses._id': address_id }...
cyberwombat
2

votes
1

answer

LiveRebel Update Strategy

I am trying to utilize LiveRebel on my production environment. After most parts are configured I tried to perform update on my application from lets say version 1.1 to 1.3 as shown below Does this mean that LiveRebel require two server installation on 2 physical IP addresses ? Can I have two server...
abiieez
50

votes
7

answer

Update UI from Thread

I want to update my UI from a Thread which updates a Progressbar. Unfortunately, when updating the progressbar's drawable from the 'runnable' the progressbar disappears! Changing the progressbars's drawable in onCreate() on the otherside works! Any Suggestions? public void onCreate(Bundle savedInst...
Filly
2

votes
1

answer

How to update QTableWidget?

My objective is to update the QTableQidget when new contacts are added. I have no problem adding the contacts or them showing up in the QTableWidget. My problem is that I have to exit out the program and then start it up again in order to see the newly added contacts. Is their a way to update or ref...
irunintotrees
21

votes
10

answer

Update if different/changed

Is it possible to perform an update statement in sql, but only update if the updates are different? for example if in the database, col1 = 'hello' update table1 set col1 = 'hello' should not perform any kind of update however, if update table1 set col1 = 'bye' this should perform an update.
nami
1

votes
1

answer

Check Field Update SQL

I have a table similar to this one: StockId | Dispatched -------------------- 1234 | 0 1234 | 1 Where dispatched = 0 until an order comes in for an item of stock, then it changes to = 1. This is fine for generating results for stock for today as you can do a query to display where dispatch...
LaLa
1

votes
3

answer

php update MySql record

I am trying to use PHP to do a simple API to update a certain column in a record in my database. However, I am stuck with Missing parameters error whenever I try something like http://localhost/set_is_open.php?open=0&shop_id=2 Here is my API: I doubt that there is something wrong I am doing maybe in...
A_Matar
4

votes
1

answer

Update query with conditional?

I'm not sure if this possible. If not, let me know. I have a PDO mysql that updates 3 fields. $update = $mypdo->prepare('UPDATE tablename SET field1=:field1, field2=:field2, field3=:field3 WHERE key=:key'); But I want field3 to be updated only when $update3 = true; (meaning that the update of f...
dmontain
22

votes
5

answer

Pandas update sql

Is there any way to do an SQL update-where from a dataframe without iterating through each line? I have a postgresql database and to update a table in the db from a dataframe I would use psycopg2 and do something like: con = psycopg2.connect(database='mydb', user='abc', password='xyz') cur = con.cur...
darkpool
1

votes
2

answer

Failure to update textbox.text

I have a relatively simple ASP.NET problem (I should think) that regrettably I am unable to solve by myself. What I am trying to do is the following: On a page I load a number of controls (Text Boxes) programmatically; following this load the user should be able to select a value to load into the T...
spaghetti_monster213
1

votes
2

answer

Inner Join on Update

I'm currently trying to figure out how to get this to work. UPDATE systems AS C SET C.nulled = '1' FROM systems INNER JOIN systems AS P ON C.nullif = P.sid WHERE P.status = 1 I'm not 100% if i'm doing this correctly. I want to update C.null to 1 if the P.sid equals the nullif column in C.
Gmz1023
1

votes
2

answer

Database update SQL

Suppose I have the following table MemberTable ID (1 letter + 5 digits) | Name | Type And I have the following records A00000 | Peter | A B00001 | Amy | B C00002 | Susan | A ... Now I need to update all the ID base on the follow criteria: All start with 00- Then comes with 2 digits base on the...
Pang
3

votes
2

answer

WordPress update failing

I'm having a problem when trying to update WordPress to the latest version I get the following error: Download failed.: Destination directory for file streaming does not exist or is not writable. Installation Failed I'm also having the same problem when uploading images, it fails and gives the follo...
Mark
2

votes
1

answer

ListView SimpleCursorAdapter Update

I have a ListActivity with a SimpleCursorAdapter, thus the list view contains data from a database. If I am looking at the list I want it to update (re-query) itself when new data is put in the database being used by the SimpleCursorAdapter. Is the best way to do this to set a content observer on...
jjNford
2

votes
1

answer

Batch update in Hibernate4

I want to perform batch update for a query. Here are the 4 queries which I want to perform in batch processing : Update Contact SET contactNumber = '876-128-9871' WHERE userId = 1 AND contactType = 'A'; Update Contact SET contactNumber = '615-165-9071' WHERE userId = 1 AND contactType = 'B'; Update...
Naresh J