Search update

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

Shopify update product inventory

I am struggling a bit with updating my product inventory on Shopify. I can update the variant inventory, but when I am updating all variants of a product at the same time, I would like to update it through a product update. When I read the doc, it seems to be possible, but it doesn't seems to work....
Doud
2

votes
0

answer

Python SQLite3 UPDATE performance

Why does WHERE index = ? run more quickly than WHERE prop_link = ? Imagine the following table: Name: addresses Columns: idx (INTEGER PRIMARY KEY), full_street (TEXT), prop_link (TEXT) Length: 100 million rows Now imagine the following two lines of code. cursor.execute('UPDATE addresses SET full_str...
Query
3

votes
1

answer

SQLITE3 UPDATE CASE Node.js

I'm using the sqllite3 npm for node.js and I want to do the following: A player can play the game 10 times. 24 Hours later the counter resets and he can play 10 games again. My thought was doing it with an update case. db.run('UPDATE user_sessions SET games_played = CASE WHEN((CAST(strftime('%s', C...
Kbi
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
2

votes
1

answer

input value won't update

Ok, I've been trying to get this script to work but I just can't figure out what's wrong. I'm trying to get tinyMCE to take input from 2 fields using jquery dialogue and output it in specific format. Here is my tinyMCE plugin code: (function() { tinymce.create('tinymce.plugins.RMFtooltip', { init :...
ItayXD
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
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...
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

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

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

votes
4

answer

Codeigniter method for update

$age=10; $id=1; $sql='update student set age=age+$age where sid=$id; I want to write this sql statement using Codeigniter how is that possible?Any native way in Codeigniter to do this? I am using Codeigniter active record
Reneesh Kurian
2

votes
2

answer

sql — select and update

I've being trying to amend the solution found in this tutorial to write an SQL query that both SELECTs and UPDATEs my table: enter link description here DECLARE @column1 varchar(2); SET @column1 = (SELECT `Id`, `Url` FROM `MyTable` WHERE `Retrieved` = 0); SELECT * FROM `MyTable` WHERE `AdId`, `Url`...
Baz
2

votes
1

answer

WPF ComboBox update source

I have a ComboBox with country codes and phone numbers (+43.., ..) The ItemsSource is a list of Country objects with many properties (Code is one of them.) The DataContext in which the ComboBox is located is an object with the PhoneNumber property. When user selects a country in the list, I want to...
PaN1C_Showt1Me
2

votes
3

answer

Laravel DB update exception

Im trying to get exception if update method failed i just check this try catch block it dont return any exception because this project id do not exist in my database i have only about hundred records. try { $project = DB::table('project') ->where('prj_id', '987654' ) ->update([ 'prj_status' => 'op...
11

votes
3

answer

Update an existing JobDataMap

I have a Quartz job that has already been scheduled. I want to update the JobDataMap associated with it. If I get a JobDataMap with JobDataMap jobDataMap = scheduler.getJobDetail(....).getJobDataMap(), is that map 'live'? ie. if I change it, will it be persisted in the scheduler? If not, how do...
Paul Tomblin
2

votes
1

answer

Update margin after RenderTransform

I have applied TranslateTransform on a control, but the control's margin remains the same. var margin = this.Margin; this.RenderTransform = new TranslateTransform(diff.X, diff.Y); if (diff.X != 0 && diff.Y != 0) { if (margin == this.Margin) MessageBox.Show('Margins are equal'); } I want...
Nikola Ninkovic
3

votes
2

answer

Update Multiple Firebase nodes

I need to update few nodes in firebase data which is posted from the server end.Need to update the node 'is_done' to 0/1 from the device end.I have tried with different solutions but all became futile i.e it is adding a different node outside the 'schedule' node. Code snippet I have tried private vo...
androlergic
3

votes
1

answer

Update ASP.NET panel asynchronously

I need some help with this problem: Situation: I've got a usercontrol (in SharePoint) that reads query string and processes it with an asynchronous event. While it's busy, a spinner is shown. After the event is finished, the updatepanel inside the usercontrol should update and show the message (+ hi...
RubenHerman
2

votes
3

answer

Bundle Update Unicorn Error

Rails 4.0.1 is available and trying to update to that version (currently on version 4.0) I'm running bundle update and it starts to work ok but then getting an error that seems to be about Unicorn so the whole thing is aborted. The error is as follows: Installing unicorn (4.7.0) Gem::Installer::Exte...
tommyd456
2

votes
1

answer

Knockout JS Update Color

I'm using Knockout observables to update span values located within table cells. I need to change the background color of the table cell when the new value is different from the old value. It seems when i subscribe to the observable i do not have access to the old value during an update. Is there...
sdowd
2

votes
0

answer

rich dataTable update issue

I have a problem with rich dataTable actually I populate that dataTable from a database and a made a column editable by putting an inplaceInput in it the problem is when i submit to the backing bean The values doesn't change the backing bean is populated with old values that initially populated the...
Diyae
2

votes
1

answer

d3.pack() transitions update

I am trying to apply a transition over a d3.pack(). Please check http://bl.ocks.org/3263043 I want to symbolize by a new paremeter, but when applying transitions, the new circles and its parents don't keep the structural 'harmony' anymore (some children circles are not contained anymore by its par...
user1249791
5

votes
1

answer

iphone Database update Issue

I am working on iPhone app and calling following code on my button click, its updating my Database table only on first click. When I click it second time it gives me success message but database table is not getting updated. Code is : NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentD...
Rajesh Rajput
2

votes
1

answer

Update Else Insert - Informatica

I have two tables identical tables with data from different sources. These tables must now be merged. Both these tables do not have any primary keys I need to merge on table 2 T2 with data in table 1 T1 Update T2 when data matches on following columns in T1 T2.f_id = T1.f_id and T2.r_id = T1.r_id a...
Jag V
4

votes
2

answer

UISlider Update inside UITableViewCell

I have a custom UITableViewCell that contains a UISlider control and a UILabel which shows the current text value for the slider position. I want to update the label as the slider knob is dragged. Here are the basic elements. cellForRowAtIndexPath: This routine takes data and updates the slider val...
Voripteth
14

votes
6

answer

FragmentPagerAdapter update title dynamically

I have a ViewPager with FragmentPagerAdapter, which has 3 Fragments. Now, I have a number of items as part of the title of the fragment: So user can add or remove those items, and title should update accordingly. However, this title seems static. How can one recall this method to update FragmentPage...
Roman
2

votes
1

answer

Update UI after requestAccessToAccountsWithType

I'm developing an app to help me understand OBJECTIVE-X/OSX. The app simply connects to Facebook and sends a notification using NSUserNotification. It is working fine, but now I want to add some UI to the mix. To make the example simpler, I want to update a label (NSTextField) to show the status of...
DiogoLG
2

votes
1

answer

Update Data using Linq2Sql

I have this in my mvc ActionResult [HttpPost] public ActionResult _ChangeDetails( [Bind(Prefix='ContactDetails')] userDetail UserDetail ) { MemberChangeDetailsFormViewModel fvm = new MemberChangeDetailsFormViewModel(); if (ModelState.IsValid) { //save UserDetailRepository repository = new UserDetail...
griegs