Search update

60548 results
1

votes
1

answer

GPU memory update atomicity

I have a main global memory (gpu_mem), along with a variable (gpu_mem_offset) to track the current offset of this global memory where a thread will update its content. Will the following script guarantee the atomicity of both the memory content and offset values? __global__ void kernel(int *gpu_mem,...
Hailiang Zhang
1

votes
2

answer

mysql: wp database update

So, I have a following js and php: JS: var names = jQuery('#name').val(); data : {'action':'AJAX' , name:names }, The #name values are 'mike,sean,steve' PHP: global $wpdb; $names = $_POST['name']; $table = $wpdb->prefix . 'my_name'; $RSS_UPDATE = $wpdb->get_col('SELECT update_number...
steve Kim
1

votes
2

answer

Update with select issue

I am unable to assign getdate() to TT.EFFECTIVE_EDATE? UPDATE [XXXXX] SET TT.EFFECTIVE_EDATE = getdate(), TT.CURRENT_FLAG = 'N' FROM [XXXXX] AS TT INNER JOIN [YYYYY] AS TB ON TT.A = TB.A AND TT.B = TB.B WHERE substring(TB.F,13,8) > substring(TT.F,13,8) On running I am getting the following error:...
Whitewolf
1

votes
1

answer

Update tables in realm

I'm just learning to programming for ios. Need advice, I read the json response, like this: [{ 'id': 1, 'title': 'Book1', 'author': 'BookAuthor1', 'chapters': [ 'Chapter1', 'Chapter2', 'Chapter3', 'Chapter4', 'Chapter5' ] }, { 'id': 2, 'title': 'Book2', 'author': 'BookAuthor2', 'chapters': [ 'Mycha...
arsenium
1

votes
1

answer

PHP won't update MySQL

I've done some research into some other people's problems on here, but I can't quite see what's going wrong. I'm trying to update my form which already has the current user (who is logged in)'s data, but I want them to be able to update their profile. This is what my code looks like:
dplatt
0

votes
1

answer

Update UIProgressView from network

I use Xcode 10 and Swift 4.2 in viewDidload () of a UIViewController, I declare an observer: override func viewDidLoad() { super.viewDidLoad() NotificationCenter.default.addObserver(self, selector: #selector(OtherFunctionsViewController.dataImportExportFunc), name: .ImportExportdata, object: nil) }...
La Ciste
1

votes
5

answer

website update cache

If you have a live website (using PHP,MySQL,JS,CSS) and say you change some functionality. What is the best way to make sure, that when a user visits the site, the changed pages are updated and not loaded from cache?
georgesamper
1

votes
3

answer

Update URL parameter

I have the following string: http://www.website.com?a=111&b=2222&d=3333 How can I take this string and update the b parameter value with 4444?
amateur
1

votes
1

answer

MongoDB “$or” update

I have some code that deletes multiple objects from Mongo using an $or opperator, or at least it should. This code illustrates basically what my app is doing lookup = [] listofids = ['4e86fee56607f2a8a2000002','4e86fee56607f2a8a2000003','4e86feeb6607f2a8a2000006'] for id in listofids: lookup.append(...
Smudge
1

votes
2

answer

Android Market Update Comment?

When downloading and installing updates from Android Market, you often see an update comment like version 1.2.14 Bugfix on... version 1.2.15 Added settings menu and so on. How is that comment made? I couldn't see a update comment field in the market today. Thanx for listening!
Benny Skogberg
1

votes
2

answer

Create or update record

I want to check by an unique ID whether a record is already created. If it is, I want to add 1 to the amount attribute. If it is not, I want to create it and set the amount attribute to 1. I already have this: #@have = current_user.haves.create_or_update_by_id(params[:have]) but I'm not quite sure h...
pgrosslicht
1

votes
1

answer

Angular2 update binding

i have small question. I'll show my problem on this example: export class UserComponent { users: User[] = new Array(); removeAll(){ this.users = new Array(); } } Remove
bluray
6

votes
2

answer

Update value with join

using Hibernate, I'd like to update a data in the database based on conditions, but I got the following error : 'node to traverse cannot be null' Here is my database description : Account: id, email, password Member : id, account, team Team: id, current (and a reference to member => members) Here is...
Cyril N.
5

votes
2

answer

hsqldb update on insert

Does anyone know of a solution to make HSQLDB update columns by calling INSERT. I would like my code to be able to insert, and if there's already data, to update that data. I know MySQl, I believe, has 'ON DUPLICATE KEY UPDATE'. I can't seem to find any recent documentation on this.
Matt
2

votes
1

answer

WooCommerce Price Update

I am creating a WooCommerce booking site like: 'On the single product page, the base price is $400, when the user chooses a date, the price will then be updated, for example the user chose December 1 which has additional $50 charge, the total price would then be $450.' Now, my problems/questions wou...
Romee648
4

votes
3

answer

jCrop - update preview onload?

I am using the jCrop preview demo to do my own thing. However I have run into a problem. If I create a default selection when the image loads using setSelect: then I have the selection mapped out on the big image but it doesn't appear on the preview. I cannot find an api handler to call the updatePr...
JasonS
1

votes
1

answer

Oracle Trigger Doesn't Update

I have run this code to create this trigger because I need to update TABLE2 with the UID value of rows with the same sequence number inserted into TABLE1. CREATE OR REPLACE TRIGGER TRIG_NAME BEFORE INSERT ON TABLE1 FOR EACH ROW DECLARE seq NUMBER(10); uid CHAR(36); BEGIN seq := :new.SEQ; uid := :...
user1958756
2

votes
1

answer

Update index algolia

I'm using Laravel 5.5 with Scout. I have an index in algolia using Documents and the users associated with theses Documents class Documents extends Model { use Searchable; public function toSearchableArray() { $data = $this->toArray(); // formatting relationship for algolia $data['users'] = $this->...
Vincent Floriot
3

votes
2

answer

Update Each First Occurrence

I have these 2 tables: Test (id, suma) with the following values: 1,1 1,2 2,3 2,4 2,5 3,6 3,7 3,8 3,9 Payments (id, amount) with the following values: 1, 5 1, 7 1, 11 2, 14 2, 3 3, 4 3, 2 What I need to do is update the first ocurrence ONLY of each id from the test table with the sum(amount) from th...
ViccroyHD
17

votes
6

answer

SQL update undo

Is there a way we can undo a SQL update query?
Balaji
2

votes
2

answer

Oracle SQL Update set

I am trying to update a column with a count (+1) based on a column in the same table matching that of another, I have tried below: UPDATE table1 p SET (p.f_dup_count)= ((p.f_dup_count) + 1) WHERE (SELECT a.f, p.f FROM table2 a, table1 p WHERE a.f = p.f AND a.a_id = p.a_id) This currently results in...
adzmet1
3

votes
1

answer

Sitecore update renderingreference

On a Sitecore 8.0 project I'm currently trying to programmatically update the datasource of a RenderingReference. Due to earlier decisions the datasource of renderings are not based in Id but on path. With the following code im getting the rendering references, and updating the Datasources correctly...
Thomas
3

votes
1

answer

How to Update DataTable

I have a main DataSet which contains several DataTables. These different DataTables are bound to their DataGridView's DataSource respectively. My problem is whenever I modify something in the display area such as the description textbox below and then click on save.... > The DataGridView doesn't h...
Alex
5

votes
2

answer

Macport self update failed

ginnyweasley:~ s66$ sudo port selfupdate Password: ---> Updating MacPorts base sources using rsync Error: /opt/local/bin/port: port selfupdate failed: Error synchronizing MacPorts sources: command execution failed I have tried to redownload macports and it still does not seem to work. I have also t...
user1417650
2

votes
1

answer

mysql, update foreach category

it is a really simple question. it is only 1 table! i have a table of books which each book have a category and a number. SO I WANNA TRANSFORM THIS +--------------------------+ | book_id | category | num | +--------------------------+ | 1 | a | 7 | | 2 | a | 5 | | 3...
yokata
2

votes
1

answer

Update data in jqGrid

I use jqGrid in this scenario: The grid gets JSON data from the first URL. If the URL returns correct JSON - the grid displays that data. If the URL returns incorrect data, then it fires the 'loadError' event of grid. In this event I want to change the URL of the grid to another URL and get the JSON...
griZZZly8
1

votes
6

answer

Update database [codeIgniter]

I'm new to codeIgniter, I have followed the main tutorial and now I'm trying to create the update funtion, but it gives to me an error that I don't know why. Here is my model public function update_news($id=0) { $this->load->helper('url'); $slug = url_title($this->input->post('title'),'dash',TRUE);...
Mauricio Andrés
1

votes
1

answer

Laravel update array syntax

I'm having trouble doing a record update array via POST in Laravel. I have captured all the post data in an array cant update array achievement Controller : public function foo(Request $request) { $ids = $request->id; $achvs = $request->achv; DB::table('quarters')->whereIn('id', $ids) ->update(array...
Yandra Adie
1

votes
2

answer

Primefaces Dialog Update Mechanisms

I was wondering which method should be used to update a Dialog in Primefaces. Are these two implementations equivalent? 1st Method: Use dynamic attribute in dialog 2nd Method: Update dialog manually by commandButton When should i use which method?
Sonic
1

votes
1

answer

mongoldb update() wouldn't work

First I created the mongoose schema: var cardSchema = mongoose.Schema({ userId: String, imageUrl: String }) Then I defined model: var Card = mongoose.model('Card', cardSchema) Then I created a new card: var newCard = new Card({ userId: 'bablaba' }); Then the new card is saved correctly(I tested): n...
Martian2049
1

votes
1

answer

Brew update errors

I'm trying to install Ruby/RVM/Rails on my Mac but I was unaware that I had to install Homebrew first. Upon running the recommended ruby -e '$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)' to install, all that happened is env and bash ran alternating. I followed https://github.com/mxcl/homeb...
Michael Johnston
1

votes
1

answer

Perl gtk2 window update

Recently when i was writing gtk2 program in perl I've runned into a little problem. I've got a main window which uses variables in labels and buttons to display user some data. my $label1 = Gtk2::Label->new ('IP '.$target_ip); my $label2 = Gtk2::Label->new ('Port '.$target_port); my $label3 = Gtk2:...
5m0k3
1

votes
1

answer

TinyMCE real time update

I am using tinymce editor in a form. It works fine. But when I try to use post the form using jquery post method. the tinymce textarea is blank. $.post('/posts/preview/', $('#PostForm').serialize(), function(data){ $('#myframe').html(data); }); All fields are available. Except the tinymce textarea w...
Leah Collins
1

votes
1

answer

waiting for richtext update

i'm doing a simple application like a news portal. main.mxml is displaying short views of the each news via the newsRenderer.mxml. when user click on any one, full content of the news will open on the main.mxml. i'm using richtext component for the full content. i can get the index of the clicked ne...
eblek
1

votes
1

answer

Ruby Update Method

The update function is working within my ruby console as shown below, but the updates aren't being reflected in the database for this particular user. For all other users it works perfectly, and using update_all works, but also updates all other users. Any idea why? ruby-1.9.2-p290 :002 > User.upda...
neon
1

votes
1

answer

Update Fusion Table From

Hi Experts, I was trying to update fusion table from google spreadsheet. I tried with the codes available in Google's documentation pages and some others also but seems to be broken. Treads that I read Thread 1,,, Thread 2 Code that I tried: Code 1 Every time am getting Request failed for https://ww...
Anees Hameed
1

votes
1

answer

Rails update with ajax

Trying update post with ajax. posts_controller.rb def update if @post.update_attributes(post_params) flash[:notice] = 'Post updated!' redirect_to @post else flash[:alert] = 'Something wrong' render :edit end end application.js $('.simple_form.edit_post').submit('submit', function (e) { e.preventDefa...
1

votes
1

answer

C# Migrations triggers update

I have an existing DB migration created for triggers in a partial class. Now I need to update this triggers. The exit code string triggerBodyIns = TriggerBodyIns; string triggerBodyUpd = TriggerBodyUpd; string triggerBodyDel = TriggerBodyDel; this.CreateTrigger(SchemaName, tableName, '_INS', Trigge...
Krishneil
1

votes
1

answer

Automatically update images

I'd like to implement a functionality in an app of mine, but I don't know how to go about it. What I want is this: I have a model class that uses imagekit to save its images, and I'd like to have the users being able to update the images easily for the vehicles without having to edit each respectiv...
Stephen
1

votes
0

answer

Octave fminunc doesn't update

I have the following octave script: clear; T0 = [... 1.0, 1.0, 5.0; ... 1.0, 2.0, 3.0; ... -1.0,0.0, 6.0]; option = optimset('Display','Iter','GradObj','on','MaxIter','300','TolFun',10-5); [t f] = fminunc(@flatTriangle,T0(:),option); t = reshape(t,3,3); And following octave functions function [cost...
user8469759