Search update

60548 results
2

votes
1

answer

Does MPMusicPlayerController update Play Count?

In my testing, it seems that playing MPMediaItem through MPMusicPlayerController does not update the Play Count (using iPod or application instance) Can anyone confirm this? I haven't seen anything in the documentation either.
yano
2

votes
1

answer

ExtJS PropertyGrid high frequency update

Is there a good way of updating the values displayed in an ExtJS 4 PropertyGrid many times a second? Calling setSource works, but it triggers a full re-render of the component, hammering the component layout and making things like scrollbars unresponsive.
Rob Agar
2

votes
2

answer

update set doesn't work accordingly

I am making a timer function that runs in MySQL, and it sets start_time with MySQL CURRENT_TIMESTAMP when they start the timer. When they stop the timer, I calculate in the SQL the time difference, and add it on to time, and set start_time to 0 again. UPDATE `time` SET `time` = time + (UNIX_TIMESTA...
tpae
1

votes
5

answer

Update query? Or other solution?

I have an Email column with invalid addresses in them e.g. “[email protected],[email protected]”. (It includes the quotes) My select statement cleans these up: SELECT SUBSTRING([Email], 2, PATINDEX(‘%,%’, [Email] – 2)) FROM table WHERE [Email] LIKE ‘”%”’ This works and displays: x...
Neil Knight
2

votes
2

answer

PostgreSQL: Update function return boolean

Is the function below good? CREATE FUNCTION password_set(bigint, char) RETURNS boolean AS $$ UPDATE users SET password = $2 WHERE id = $1 RETURNING TRUE; $$ LANGUAGE SQL; It returns TRUE when UPDATE sets password but NULL (instead of FALSE) when UPDATE doesn't set password. I think that will work fo...
ma11hew28
1

votes
4

answer

remove and update array [closed]

i have this code $_SESSION['id'][] = $link; this is work true and result like this Array ( [id] => Array ( [0] => 4 [1] => 3 [2] => 2 [3] => 1 [4] => 4 [5] => 4 [6] => 1 [7] => 1 [8] => 1 [9] => 1 [10] => 1 [11] => 1 [12] => 1 ) ) i want show every index single out of array foreach($_SESSION as $k...
shahriyar3
1

votes
3

answer

Lambda failed to update value?

I have a list and I'm trying to set one boolean field status to true if the name field is not haha. Below is what I thought it suppose to work but apparently it's not: ObjectList.ForEach(x => !x.name.Equals('haha')).status = true; I'm getting the following error: Only assignment, call, increment, de...
Isaac Lem
2

votes
1

answer

Laravel Composer update doesn't pass

I use Laravel 5.0 and I need to use maatwebsite/excel for my job but after, I update Composer I have the following error: Problem 1 - Conclusion: remove laravel/framework v5.0.35 - Conclusion: don't install laravel/framework v5.0.35 - Conclusion: don't install laravel/framework v5.0.34 - Conclusion:...
Danusorn
6

votes
1

answer

Update a row in Parse.com

What I have is when an edit button is clicked the values in two input fields create a new row and the old row is dropped.Below is the code i used but what i want is that the original row is updated and not deleted. Live Example of how using the code below works. editBtn.onclick = function () { aler...
Thomas Mannion
3

votes
4

answer

Update Record Linq-to-SQL

I am reading a book - ASP.Net 3.5 Enterprise Application Development with Visual Studio 2008 and when it talks about updating a record in the database using Linq-to-SQL it uses this code: MyUserAccount ua = new MyUserAccount { ... Update fields }; ua.UserAccountID = Convert.ToInt32(session['UserAcco...
Wade73
2

votes
1

answer

Update label elements in Tkinter

I have the following code: import tkinter from random import randint score = 0 window = tkinter.Tk() def Validate(): global score answer_string = answer.get() try: answer_value = int(answer_string) except ValueError as e: print(e) return if answer_value == number1 * number2: score -= 1 print('True'...
2

votes
1

answer

Update nested JSON with knockout

I'm attempting to alter a JSON in memory by using the knockout.js UI. The problem I'm running into is that when I alter a value in the UI, the JSON data doesn't seem to be changed whatsoever. I've implemented buttons with console.log(config) to test this. Any suggestions would be great, thanks! http...
Ryan Schulze
3

votes
2

answer

Update MYSQL with IF statement?

I want to update my MYSQL table, but with a condition. I have a status field and a time field. If status=day, don't update time field with the current time. if status=night, update time field with current time. Right now, I am doing a SELECT statement, then an if statement on the returned value in P...
steeped
135

votes
12

answer

Force CloudFront distribution/file update

I'm using Amazon's CloudFront to serve static files of my web apps. Is there no way to tell a cloudfront distribution that it needs to refresh it's file or point out a single file that should be refreshed? Amazon recommend that you version your files like logo_1.gif, logo_2.gif and so on as a work...
Martin
3

votes
2

answer

Delete, Update with derived tables?

I have just studied FROM clause and derived tables in mysql and most of the websites provided the examples using SELECT command Example SELECT * FROM (SELECT * FROM usrs) as u WHERE u.name = 'john' But when I have tried using delete or update command it does not seem to work. Example DELETE FROM (...
user3205479
3

votes
4

answer

Update WHERE NOT EXISTS problem

This query gives an error whenever there are more than 1 record that exists in tbl1 and not in tbl1_temp How can I fix this so that for every record that does not exist in tbl1_temp, update the corresponding record's status in tbl1 UPDATE tbl1 SET Status = 'Finished' WHERE id = (SELECT id FROM tbl...
bash-
1

votes
1

answer

python sqlite3 for loop update

import sqlite3 conn = sqlite3.connect('sample.db') cursor = conn.cursor() data = cursor.execute('''SELECT * From Table''') for i in data: title = i[0] status = i[1] cursor.execute('''UPDATED Table SET status=? WHERE title=?''', (status, title)) cursor.close() conn.com...
Aaron Phalen
11

votes
3

answer

shortcut for 'update to HEAD'

is there any way to have either shortcut or icon for svn Update to HEAD of one project (not all of them) in eclipse? It would make my life much much easier. I have few php projects though. Time to time I click 'commit' by accident. Running Eclipse for PHP Developers - Helios release - on OS X.
Radek
1

votes
2

answer

Update a database column dynamically

mysql> describe break; +-------------+----------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +-------------+----------+------+-----+---------+----------------+ | id | int(11) | NO | PRI | NULL | auto_increment | | start...
cookie
2

votes
1

answer

update a constraint with Pulp

Suppose to have a linear program and a constraint of the form: 4 x_1 + 3 x_2 ≤ 10 and that you want to update it to 4 x_1 + 3 x_2 + 10 x_3 ≤ 10 or to 3 x_2 ≤ 10 In order to do that, I 'rewrite' the constraint from scratch, like prob.constraints[0] = ... but for a very long constraint this is...
abc
2

votes
1

answer

SQL UPDATE query with JOIN

I already search and real all previous questions & answers about it but i just can't find the good way to do what i want, so maybe my problem can also help other people, let see. I'm trying to use this SQL query : UPDATE L SET L.description = REPLACE(L.description, '196,99', '197') FROM ps_product_...
Marco
3

votes
2

answer

Node.js, Express, MySQL - update schema

I have a small app running on a production server. In the next update the db schema will change; this means the production database schema will need to change and there will need to be some data manipulation. What's the best way to do this? I.E run a one off script to complete these tasks when I de...
nick
7

votes
4

answer

Update a resource file dynamically

We have a Res1.resx and it has a file1.doc. Later we would like to replace file1.doc with file2.doc in the resx file based on business rule. How to achieve this. Thanks N
np.
2

votes
3

answer

Trigger for update multi line

I'm having a problem with this trigger: ALTER TRIGGER [dbo].[trg_B_U_Login] ON [dbo].[Login] FOR UPDATE AS BEGIN IF @@ROWCOUNT = 0 RETURN -- SET NOCOUNT ON added to prevent extra result sets from -- interfering with SELECT statements. SET NOCOUNT ON; DECLARE @Campos nvarchar(500); DECLARE @Old_DataR...
SlimBoy
7

votes
1

answer

Bulk update with Python's elasticsearch

I'm attempting to do a bulk update based on state change on a document property. Create works fine but bulk is freaking out. I'm getting an error to the effect of 'script or doc is missing' but everything looks good. Here is how I am attempting the bulk update: frequency_cleared = [ { '_id': result[...
Obj3ctiv3_C_88
2

votes
2

answer

Tree View not showing update

I have a TreeView in my Windows Form user interface. I want to fill it up from a database, but it does not refresh ever, even though if I WriteLine() every node, it is in memory as I expect. In order to make it more easy to understand, I wrote a little example program that only has one button that...
Kheldar
2

votes
2

answer

Update mongo collection with $set

Trying to update a collection and getting invalid syntax from '$'. This script works correctly inside robomongo GUI but not from the terminal..? Probably something simple but I can't seem to figure out why it's giving an error. collection.update({'title': 'Super excited'},{ $set: {'fb_count': 300}},...
Ncastro340
3

votes
2

answer

Advanced SQLite Update table query

I am trying to update Table B of a database looking like this: Table A: id, amount, date, b_id 1,200,6/31/2012,1 2,300,6/31/2012,1 3,400,6/29/2012,2 4,200,6/31/2012,1 5,200,6/31/2012,2 6,200,6/31/2012,1 7,200,6/31/2012,2 8,200,6/31/2012,2 Table B: id, b_amount, b_date 1,0,0 2,0,0 3,0,0 Now with this...
Martin
3

votes
1

answer

Mysql select … for update deadlock

I'm working on a web application using mysql (innodb as engine). I have several tables including 'users', 'tasks', 'task_histories'. 'users' with attributes: id(primary key), account, password, score, etc. 'tasks' with attributes: id(primary key), score, user_id, etc. 'task_histories' with attribut...
jcwang
2

votes
4

answer

Ember-CLI 'Ember Update' command

I'm an ember noob going through the ember-cli 101 book. To date, I've been using the upgrade worklow on the ember-cli website, here. Messing around with the ember-cli help, in terminal, I came across an 'ember update' command that says it updates to the newest ember-cli version. Is there a differe...
mrm312
4

votes
1

answer

Update a gridPane in javafx

In my javafx project I have got a ComboBox with several values. When my application begins I do the following: gui.course_P = new ComboBox(); for (int i = 1; i < gui.columns.size(); i++) { gui.course_P.getItems().add(gui.columns.get(i)); } gui.createTestButtonPane.add(gui.course_P, 2, 1); Where gui...
Jose Ramon
2

votes
2

answer

Composer doesnt update autoload namespace

Composer not updating autoload_namespaces.php file, despite downloading package normaly. Can't understand where i did a mistake. If i load something from packagist, namespaces file updating successfully. Project structure Main Composer.json { 'repositories':[ { 'type': 'package', 'package': { 'nam...
1

votes
5

answer

PHP/MySQL Update code [closed]

I'm trying to call a row update from php to an mysql database. It fails out but when i try to call an insert new row formated just the same it works. $result = mysql_query('INSERT INTO auth (username, password, studycode, description, server) VALUES ('$username', '$password', '$studycode', '$descrip...
2

votes
1

answer

Logging update operation in triggers

I have an UPDATE trigger that produces INSERTED and DELETED table like this: INSERTED Id Name Surname 1 Stack Overflow 2 Luigi Saggese DELETED Id Name Surname 1 Stacks Overflow 2 Luigi Sag I want to capture this update to a log table. My Log table (that is global for all table...
Luigi Saggese
12

votes
4

answer

Can't update chromedriver and seleniumrelease

I try to work with protractor. So I followed a small tutorial and the first thing I did: npm install -g protractor This will install two command line tools, protractor and webdriver-manager. But now I have to update my webdriver-manager: webdriver-manager update So my cmd tries to connect with https...
lvthillo
1

votes
1

answer

select “for update” with JDBC?

I want to create a for update select statement in Java using JDBC, but not sure how it would be done. If you are unfamiliar with for update you can read about it here https://www.postgresql.org/docs/9.0/static/sql-select.html#SQL-FOR-UPDATE-SHARE For example, I have the following select statements M...
Arya
5

votes
1

answer

Update 2 pictureboxes in parallel

I have 2 pictureboxes I would like to update in parallel. For now I have this: picturebox_1.Refresh(); picturebox_2.Refresh(); Within each paint event I have stuff like this: Picturebox 1: e.Graphics.Clear(System.Drawing.Color.Black); e.Graphics.DrawImage(mybitmap1, X, Y); e.Graphics.DrawLine...
Matimont
2

votes
0

answer

Update FB app API version

I need to update API version of my FB application from v2.0 to newer one, v2.6 or so. But I can't find any 'button to upgrade' API version in settings of application. Is there any option in settings or which way this can be done? Thank you for answers.
Michal Loksik
2

votes
0

answer

Update a ListView using SharedPreference

I want to send multiple rows from the 1st list when the star button is pressed to the 2nd Activity list My code works only for one single row . For example if I'm pressing the first star ,on my SecondActivity it will be only the first row but if I press the first and the last star ,only the last row...
AlinaBM
1

votes
1

answer

Angularjs - cross controller Factory Update

I have two controllers which shares same factory. One of the controller is updating factory variable. Other should watch for that change and display later. This is how I tried: http://plnkr.co/edit/q1NS6ytRduLlbcgJlnDU?p=preview But it does not work. What is the best and correct way to share variabl...
ewooycom