Search update

60548 results
1

votes
1

answer

update variables for next tick

I'm trying to model a battery storage in netlogo. I need to pass the battery remaining electricity calculate from one tick to next tick as the initial value until the simulation ends. I try to use method suggested by Arthur (NETLOGO: Using variable from previous tick) but it didn't work. Is there a...
杨子江
1

votes
3

answer

WPF multi-thread progress update

I'm need to display some form of feedback to the user, while a small process (7-10 seconds) takes place in the background. I had no issues in the past using separate threads and BackgroundWorkers in Windows Forms, but its proving difficult in WPF. I have read many articles, in this respect, and how...
Alain
1

votes
3

answer

Wordpress plugins Install/Update timeout

I have been installing/updating my self-hosted Wordpress themes/plugins through FTP. ie get the link from my wordpress site, go download the plugin from wordpress.org, upload from my comp to the site through FTP. I want to be able to update it through the wp admin interface instead, but it seems to...
eureka
1

votes
2

answer

ASP.NET DetailsView Update doesn't work

I use all data BoundField in DetailsView from SQL Server. I get the correct display, then I click Edit, then edit some dropdownlist with SQLDataSource and some textboxes. Then I click Update, nothing happen, still same old value and no error. Anyone know why it doesn't work? Here my code, BSN EAP BS...
StudentIT
1

votes
2

answer

Java Mybatis multiple update statements

Java Mybatis Oracle I have following mybatis statement in xml file UPDATE offer set indx=#{offer.idx} WHERE id=#{offer.eId} I am getting following error, can any one help ? ### Error updating database. Cause: java.sql.SQLSyntaxErrorException: ORA-00911: invalid character ### The error may involve...
d-man
1

votes
1

answer

pymongo remove/update command returns

When we delete something or update something in mongodb.It returns the as result WriteResult({ 'nMatched' : 1, 'nUpserted' : 0, 'nModified' : 1 }) I want to know how to access those fields in pymongo to check weather the update/delete was sccess or failure.
user3138937
1

votes
1

answer

How to update firebase query?

In my app i'm sending this query: let defaults = NSUserDefaults.standardUserDefaults() var time: String? if defaults.valueForKey('chatsLoadedTime') != nil { time = '\(defaults.valueForKey('chatsLoadedTime') as! NSDate)' } chatsRef.queryOrderedByChild('updatedTime').queryStartingAtValue(time).observe...
Taras Nikulin
1

votes
1

answer

Laravel strange database user update

I am building an authentication app and while I was testing the user description and thumbnail I came up with an unusual problem. I currently have 2 users registered. The one is called parat26 and the other user1. I logged in the the first user parat26 and set my description to 'test'. After that, I...
0

votes
1

answer

Update query in for loop

why it's not working.. i want to update my table in database this is my code. for ($i=0; $i prepare($sql); // execute the query $stmt->execute(); echo $link.''; } when i echo that link it's show 100% right but in db just update 82 number in all rows even it is in loop. thanks in advance.
Ali Hassan
1

votes
2

answer

Update ICU extension within xampp?

I'm running xampp and I need to upgrade ICU (php_intl extension) to the latest version - I downloaded 54 from the ICU page but unsure how to go about upgrading it. There is a bin, include and lib folder - where do I put these files and do I have to do anything else?
Brett
1

votes
2

answer

Update/ Delete multiple checked data

My system can update multiple data using a checkbox. This is the code I used. The updateproduct.php contains this code. Now there is also an option to delete the checked items. I tried using this code on delete.php This delete.php is not working due to $_POST['selected_id'] is only in one form and t...
Benj
1

votes
2

answer

Alfresco Update File - ERROR POST

I'm trying to update a file in Alfresco... And I make this code: var csrf_header = Alfresco.util.CSRFPolicy.getHeader(); var csrf_token = Alfresco.util.CSRFPolicy.getToken(); function getResponse(pdfbase64) { var fd = new FormData(); if (Alfresco.util.CSRFPolicy && Alfresco.util.CSRFPolicy.isFilterE...
PRVS
1

votes
1

answer

OpenACC present clause update data

I am trying to do openACC optimizations for many body simulations. Currently, I am facing a problem which lead to memory problem in below call to cuStreamSynchronize returned error 700: Illegal address during kernel execution call to cuMemFreeHost returned error 700: Illegal address during kernel ex...
Lbj_x
1

votes
1

answer

update mongo 2.4 to 2.6

I want to upgrade my mongodb to 3.2, but when I try to upgrade to 2.6 I already get error What I do: I have a test VM with restored dump database from production sever. I download mongodb 2.6 and extracted. I run mongo from /tmp/mongodb-linux-x86_64-2.6.11/bin/mongo In console mongodb run use admin...
DeamonMV
1

votes
1

answer

relay prisma graphql update store

I am trying to get prisma and relay working. Here's my repo: https://github.com/jamesmbowler/prisma-relay-todo It's a simple todo list. I am able to add the todos, but the ui does not update. When I refresh, the todo is there. All of the examples of updating the store, that I can find, use a 'parent...
jbsmoove
1

votes
1

answer

Speed up Python/SQLite update?

I have created a 200 row SQLite Database. Later on I need to update all of these rows. To be exact I want to update two values (called Test2 and Test3 in my example) of each row by using their old value and add (+200 and +400 in the example) something to their value. My Code seems to be pretty slow...
mk1337
1

votes
1

answer

Android : Switching and update layout

I have the application that contains the game hangman. I have created a separate activity on their responsibility for drawing. Here's the code: public class DrawWisielec extends View { Paint paint; int choose; public DrawWisielec(Context context,int choose) { super(context); this.choose = choose; }...
Artur Siwek
1

votes
2

answer

Update scope name into directive

I have a directive which attribute contains a scope name that I would like to update when something has been set in the directive. .directive('myDirective', function($rootScope){ return function(scope, element, attrs){ var scope_var_name = attrs.scopeVarToUpdate; scope[scope_var_name] = 'This messag...
Malcr001
1

votes
1

answer

update item Sharepoint Choice Field

I have a list in Sharepoint 2010 with a choice column. User can enter own text value, not to choose from existing values. So how to write text string in item field (type Choice) if this string is different from the existing values? Programmatically?
user1617199
1

votes
2

answer

Update multiple rows in Mysql

I have a sql table in my database 'accounts' whose structure looks like this. ItemNo CostPrice SellingPrice Discount(10%) Price(INR) 100 $100 $150 $135 Rs.7425 101 $200 $250 $225 Rs.10395 102 $150 $200 $180...
NealCaffrey
1

votes
1

answer

php mysql update via cron

I have a php file that I run via cron. For testing I've set it to run every hour, but normally it will run once a day. What I want is to make it so that if the player has the autotechrefinery field set to 1, then they should have their population pulled from the table, how much money, research suppl...
Greene345
1

votes
1

answer

Hibernate, many to one, update

my entities: @Entity public class Film { @Id @GeneratedValue(strategy = IDENTITY) private long filmId; @ManyToOne private Category category; //... } @Entity public class Category implements Comparable { @Id @GeneratedValue(strategy = IDENTITY) private long id; private String name; @OneToMany(mapped...
user2519456
1

votes
2

answer

XSL iteratively update the value

I'm quite new to XSL, so I would appreciate any help. Here is a sample xml that I have: BenefitUsed Fuel 3 1 5 1395922443994 336761474 StartMission 123 2785 TaxiBadge 1395922445517 336762997 EndMission 123 0 0 6 1395922445576 336763056 BenefitUsed Fuel 2 1 7 1395922443994 336761474 I want to iterate...
Dmitry Deryabin
1

votes
2

answer

Oracle SELECT FOR UPDATE - Demonstration?

I am quite not understanding the lock functionality with SELECT FOR UPDATE. Here is what I've tried. CREATE TABLE ACCOUNT_TAB ( ACC_ID int NOT NULL PRIMARY KEY, BALANCE int NOT NULL ); INSERT INTO ACCOUNT_TAB VALUES(1, 100); SELECT * FROM ACCOUNT_TAB FOR UPDATE; SELECT * FROM ACCOUNT_TAB; Both SE...
Max
1

votes
1

answer

MongoDB C# Driver Multiple Update

this code is working but, this is updating just one document. I want to update all same images. UpdateBuilder updateBuilder = MongoDB.Driver.Builders.Update .Set('isAdded', 'true'); mongoCollection.Update(Query.EQ('image', 'imgURL'), updateBuilder); How can I do this?
BadCode
1

votes
2

answer

PHP MongoDb update $in array

From the MongoDB command line I can do db.user.update({userid: {$in: [435707147,88513850,466518582]}},{$unset: {f1 : 1}}) Which will remove the variable f1 from all user objects in the DB. How would you translate that to PHP syntax? I the following runs with no error, but no changes are made to th...
Lloyd
1

votes
3

answer

update query date function [duplicate]

This question already has an answer here: How can I truncate a datetime in SQL Server? 13 answers I create update query for one table. I need created date from the old database. But I don't know how to do it? My query is, select 'update organizations set createddate='+CAST(RegisteredDate as varchar...
PoliDev
1

votes
1

answer

NServiceBus message handling Create/Update

We have a message, 'Person'. All works fine with UPDATE with a PersonHandler. However now we need to add a new Person. (Previously, add new Person was done through a CRM system so we don't have to worry about insertion). Now we need to move that functionality to our new NSB system. Once a Person is...
JenonD
1

votes
2

answer

Cannot Update MYSQL using PHP

I have a simple MYSQL DB where field_3 is a varchar Key value. I am trying to update database posting to two TIME fields called start and end. However I keep getting this error Notice: Undefined variable: empd_end in C:\xampp\htdocs\b1\update.php on line 25 Could not update data: You have an error...
user3856234
1

votes
2

answer

Upload image in update Laravel

in Laravel5 I can't update image in Edit, when I upload new file, this result null... Below my code in controller, routes and edit view. here my controller: public function update(Request $request, $id) { $slider = Slider::findOrFail($id); //$input = $request->all(); // uploads image if ($request->h...
Pierangelo Orizio
1

votes
2

answer

Composer install \ update authentication errors

When I'm trying to install dependency from my private repository and I'm getting the following error: > /opt/lampp/bin/php /home/arthur/Sites/audio-video-caption.com/composer.phar install Loading composer repositories with package information Failed to clone the [email protected]:Djevil83/UserBundle.gi...
Zagloo
1

votes
2

answer

Google chrome and html update

I'm building a web site whose hosting supports html and javascript. When I update the html pages, I noticed that some Chrome versions couldn't show the pages updated. It shows old html. I wonder how I can fix this. I guess won't work.
nikel
1

votes
1

answer

aws cloud formation update packages

In aws cloud formation I know you can update the stack by updating the json file and those changes will take affect but how could I just update the stacks packages for example yum update or apt update etc ? Thanks in advance
Oliver Bayes-Shelton
1

votes
1

answer

Jersey Update Entity Property MessageBodyWriter

I want to create a Jersey provider (MessageBodyWriter) that update a dto object property and continue the chain to Jersey-json default provider an return the json object. the problem is that looks like default provider is not called so the output of my rest service become empty as soon as I registe...
jcrada
1

votes
1

answer

UPDATE STATEMENT with WHERE clause

I want to update table sheet and set column value of hproject to 'yes' where customer having hproject='yes' UPDATE `sheet` SET `hproject` = 'yes' WHERE ( SELECT `customer` FROM `sheet` WHERE `hproject` = 'yes' ) Above query is not working, i'll be grateful for any help or guidance. Regards
MOZ
1

votes
1

answer

Update column in SQL Server

I'm a beginner in SQL Server and I have a lot of difficulties to resolve the following task: I have 2 tables: User_Info User_UID UNIQUEIDENTIFIER ROWGUIDCOL NULL DEFAULT(newid()) FirstName VARCHAR(50) LastName VARCHAR(50) Email VARCHAR(50) Session User_UID CHAR(40) Session_ID PK INT In User_Info I...
user3569267
1

votes
1

answer

update ui on alert dialog

I have an Activity which has Submit Button. On click of Submit, an AlertDialog is displayed, which has a Save Button. Now on click of an item in List the Button is displayed. I select some value and click save on alertdialog. Now on save I need to update item String in the List. However it doesn't w...
Abhilasha
1

votes
2

answer

PHP PDO wont update database

i try to use PDO but i get 1,1,1 for result but database wont updated. I dont know whats wrong with my code. try {$db = new PDO('mysql:dbname=$db_name;host=$db_host', $db_user, $db_pass );} catch(PDOException $e){echo $e->getMessage();} $title_insert = $db->prepare('UPDATE topics SET topic_title = ?...
Erdem
1

votes
3

answer

Update data from another table

I need to update some data from another table.. I want to simply take the data from col1 in table1 to col1 in table2, the rows are at the same position so there aint really any id-comparing thats need to be done.. How can I do this? ----------------------------------------- Db1.Table1 (Take yearMod...
Inx
1

votes
2

answer

Update data in Multiple table

Three table as follow mysql> select * from food; +--------+------+-------+ | foodid | name | price | +--------+------+-------+ | 1 | 雞 | 100 | | 2 | 鴨 | 200 | | 3 | 魚 | 300 | | 4 | 肉 | 400 | +--------+------+-------+ 4 rows in set mysql> select * from dri...
user1753112