Search update

60548 results
1

votes
2

answer

Postgres/SQL Join and Update

Joins are the one thing I could never get my head around, ie, which type to use and how they actually work. I need to write a query and I know I will need a join for it. The database is postgres. Basic table set up is like this (some details redacted) rates ( rates_id Primary Key, Auto Increment sta...
Ozzy
1

votes
2

answer

Simple ON DUPLICATE KEY UPDATE?

I'm trying to store a one-to-many relationship in my mySQL database and I want to avoid duplicate entries if at all possible. I read on the internet and saw that 'ON DUPLICATE KEY UPDATE' is an option. Would this work for my situation? CODE: function insert_options($uid, $array) { if(!is_array($arra...
tr3online
1

votes
2

answer

Update text to show variable

I've got a variable displayed on screen and would like to have this update whenever something happens to it. I thought I had it solved by using this: local function updateCredits( event ) creditsText = display.newText(credits, 400, 0, native.systemFont, 36) end Runtime:addEventListener( 'enterFrame'...
Cleverbird
1

votes
2

answer

update jtextpane with java swing

I'm making an application with java swing. In a button of the application I need to every x minutes to make something. I think that I must do it with a new thread, but I have two problems. The first is that I must to pass a parameter to these thread. I solved it with a class that extends of a Thread...
user650034
1

votes
1

answer

Icecast metadata update by php

I need to get Icecast metadata auto update by PHP let say every 15 min which will be done by cPanel cronjob. i had the below code but it does't work(it works if I use header location to redirect however cronjob won't be able to do that)
Ng Wilson
1

votes
1

answer

Chronicle-map update persisted value

I need to update a persisted value. I mean: ////// Class InfoEquipoCache used as value of CM class InfoEquipoCache implements BytesMarshallable { private EquipoCache equipoCache; public void actualiza() { ..... equipoCache.actualiza() ...... } ....... ///// Principal Class has a CM of InfoEquipoCach...
C.H.E.C.H.E
1

votes
1

answer

Rails : NameError in PicsController#update

I tried add an Update function and I am encountering following error. undefined local variable or method `pic' for # Did you mean? @pic Extracted source (around line #30): 28 end 29 def update 30 if @pic.update(pic.params) 31 redirect_to @pic, notice: 'Updated!!' 32 else 33 render 'edit' My...
Franklin Antony
1

votes
1

answer

Trigger Update button in RowEditing

Is it possible to trigger the update button in a Row-editing by just clicking the row I want to edit ? I have this: plugins: [ Ext.create('Ext.grid.plugin.RowEditing', { clicksToEdit: 1, saveBtnText: 'Actualizar', cancelBtnText: 'Cancelar', listeners: { edit: function(editor, context, eOpts) { Sga...
001
1

votes
1

answer

UPDATE mulitiple rows through trigger

I have created this trigger to update the amount of the Invoices. This is the payment table that holds the trigger. ci_payments CREATE TABLE `ci_payments` ( `payment_id` bigint(10) NOT NULL AUTO_INCREMENT, `customer_id` bigint(10) NOT NULL, `payment_method` varchar(15) NOT NULL, `receipt_num...
jogesh_pi
1

votes
1

answer

Incorrect update with inner join

I encountered a problem that I just can not solve. For example, I have the table with rows, id, season, episode, order. Data in the table looks like: +--------+---------------+----------------+--------------+ | id | season | episode | order | +--------+---------------+------...
Russell Sk.
1

votes
2

answer

Update child zIndex in andengine?

In my game application, many child are added on main scene at run time andI want to give zIndex to a new child at run time but it is not taken into account. To give zIndex to the child I use code like : mySprite.setZIndex(1); But if I refresh the main scene at run time, then the child will take its...
Hits
1

votes
1

answer

JSF selectonemenu does not update

i am beginner in JSF ,i have a problem with selectonemenu item.When i choose the an item ,for example ' FirstLabel',outputpanel should be shown.However ,selectone menu does not update my choice.I use primefaces 3.1 library.How can i solve this problem.Thanks for helps.
Deniz
1

votes
1

answer

Pact JVM update backwards compatibility

I am trying to update dozens of services to au.com.dius:pact-jvm-consumer-junit_2.12:3.5.12 from au.com.dius:pact-jvm-consumer-junit_2.11:3.2.13 but it seems that the new consumer version is generating pacts that the old provider version (au.com.dius:pact-jvm-provider-junit_2.11:3.2.13) cannot handl...
Yunior
1

votes
1

answer

Nodejs Mongodb update multiple collections

In mongodb have two collections for now Event and Packages. So basically the model looks like this Event Model const mongoose = require('mongoose'); mongoose.Promise = global.Promise; const Schema = mongoose.Schema; const bcrypt = require('bcrypt-nodejs'); const EventSchema = new Schema({ _id: mongo...
NewUser
1

votes
1

answer

How to update arrays concurrently?

I'm trying to realize this: I have four arrays and a function 'calculateResult' that changes them all. The number of elements of these arrays is 2^n, where n is user-defined value. The function is called in a loop (in real project number of iterations can be 2^10, for example). Then break arrays i...
butkovskiym
1

votes
0

answer

Firestore C# - Update entire collection

I'm using the Google.Cloud.Firestore client to try to update my whole collection with a single write when the user closes my console application. I'm not sure if that is possible, I know i can do that using batch but the documentation(link) doesn't have any batch usage example. This is my code so fa...
kozima
1

votes
1

answer

update function javascript and mongodb

Im building my own web app and I'm struggling on how to replace a previous added note. So far the add jquery using nodejs and express works, so I can see my note added to the mongodb. however I created a replace button which doesn't replace the previous note but only add it on the database. The dele...
DanPhelps
1

votes
2

answer

CodeIgniter Update not Fully Working

I am trying to update a mySQL table while using CodeIgniter. The Controller I have the redirect() commented out to use print_r(). When it returns the array, it returns the correct updated values. But if i uncomment the redirect, then it will redirect me to the page with the table and the values will...
Elias
1

votes
1

answer

Execute Javascript *after* ajax update

I need to execute a certain javascript function after the ajax update has been applied. I tried jsf.ajax.addOnEvent(ch.ergon.newom.ajaxUpdate) to get informed about the request, but that seems to be execute after the ajax response arrived, but before it got applied (that is: the content got updated)...
Thorben Bochenek
1

votes
1

answer

git merge doesn't update .gitignore

I have a problem with updating the .gitignore file across multiple branches. I have no clue what I'm doing wrong. The steps I took are the following: git checkout master add 2 lines to the pre-existing file .gitignore git commit git push git checkout develop git merge master 'Already up to date' I w...
Sherlock
1

votes
1

answer

Scrolling textview on progress update

I have an asynctask that reads data from a device and then I want to show this data in a TextView. I have a ScrollView in my application, and have a TextView inside it, textview is manually scrolling but I need to update the position of the last line on update progress, here is my Asynctask code pr...
ikbal
1

votes
1

answer

bokeh server update axe scale

When I try to change the y axis scale with a bokeh widget, nothing happens. Updating the x range however, does work. def make_document(doc): df = some_pandas_dataframe() x = range(len(df)) plot = figure(sizing_mode='scale_both') scatters = list() for l in labels: scatters.append(plot.step(x=x, y=df[...
Joshua
1

votes
1

answer

Unable to update NuGet package

Working with VS2015 I recently updated an add-on I use, ActiveReports, to a new version. Previously I had my application set for netframework 4.0, the new update for ActiveReports required at least netframework 4.5 so I changed the project to use that version. I am getting the following error now wh...
Terabithia
1

votes
1

answer

Update CLOB Column to NULL

I need to update an oracle clob column value to null. I tried to below but that didn't work. Any ideas? update table_name set CONTENT_TEMPLATE=empty_clob() where table_key=12345; Name Null Type -------------------- -------- ------------- TEST_KEY NOT N...
c12
1

votes
1

answer

MongoDB update transforming the schema

I'd like to transform all the documents of a collection. For example I have { '_id': ObjectId('5004918de59cfc4e92ba1cf6'), 'field1': 1, 'field2': 2, 'field3': 3, 'field4': 4 } and I'd like to transform like this { '_id': ObjectId('5004918de59cfc4e92ba1cf6'), 'fieldSet1': { 'field1': 1, 'field2': 2...
LeGilles
3

votes
2

answer

WPF how to update CanExecute

I have the following question. I have the following simple xaml: And i bind DataContext of this Window to following View Model public class MyViewModel { public SimpleModel Entity { get; set; } private ICommand _saveCommand; public ICommand SaveCommand { get { return _saveCommand ?? (_saveCommand...
Junior222
1

votes
1

answer

QGLWidget. Update display while drawing.

Each file contains 3D points which I want to display. I want to see the display after each file is read. After file1, I want to see the points before adding more points from file2. Before adding more points from file3 I want to see the points from file 1 and 2. How can I do that with QGLWidget funct...
NoName
1

votes
1

answer

Entity Framework POCO Update Entity?

I am trying to so something really, really simple, but Entity Framework seems to have dozens of ways of doing it none of which seem to work. I have a POCO class that I have read from a database, and I want to update the database with changes to that class. That is all I want to do. Here is what I am...
John Thompson
1

votes
4

answer

How to update object property

i've parsed some data to object and I got the following output to the console Here I want to change the value of internal to 600 console.log(res.INSTANCE_PO); '[{external:500,internal:500}]' I try to access with res.INSTANCE_PO['internal'] = 600; which doesn't work Here I want to update the port to...
Jhon D
4

votes
2

answer

Entity Framework 4 Cascade update?

Does EF4 support Cascade update rule? Does it make sence like with Cascade delete rule or is it automatic that all gets updated when i call SaveChanges on my context? I could see that there is Cascade update option in MSSQL 2005 but i dont seem to find the support for it in EF4...
Eduard
2

votes
2

answer

auto update in flex application

I am using auto update in my flex application using the updater framework. I got this article and followed the same steps. http://blog.multimediacollege.be/2008/12/using-the-air-15-updater-framework-in-flex/# But i'm getting an error and can't understand the reason: 1046: Type was not found or was n...
Devesh M
2

votes
1

answer

Error during a wikidata update

I've created a local version of the wikidata api using the instructions here, and after running munge.sh with the default options, I've run ./runUpdate.sh -n wdq which resulted with the following error message. ERROR org.wikidata.query.rdf.tool.Update - RDF store reports the last update time is bef...
dimid
2

votes
2

answer

iphone app replace or update?

There is an existing iphone app, but its boring. However the same app shall be replaced by another more exiting app, BUT all data stored in each clients app database has to remain. Is there a way to write an entirely new app (considering the condition above) or do I have to update the old one?
sladda
7

votes
3

answer

WPF PathGeometry update is _SLOW_

In a WPF UI I have nodes connected by bezier paths, like so: It might be... atomic http://nv3wrg.blu.livefilestore.com/y1pIGBd33lCC6lF-9H0MqgnL40BdNEoEemZDENzgpEI1IL2j4B-qb3qS3WlxMSys28IjqNngR7mdfvQBnPzerf4cFJQj9VqHBh4/acurve.png?psid=1 When the user drags a node around, the connecting paths need to...
Robert Fraser
2

votes
3

answer

mysql update - skip blank fields?

I need to know the proper way of doing this. I have a form where someone can fill in 3 different inputs to update their data. they can leave one blank if they want and just update the other two or just one. Whatever. so if i update as: mysql_query('UPDATE table SET field1=input AND field2=BLANK AND...
Daniel Hunter
2

votes
3

answer

Centos 6 yum update failure

trying a simple yum update logged as root via Putty gives me: ---> Package python-paramiko.noarch 0:1.12.4-1.el7 will be an update --> Processing Dependency: python(abi) = 2.7 for package: python-paramiko-1.124-1.el7.noarch --> Processing Conflict: libdb4-4.8.30-13.el7.x86_64 conflicts filesystem <...
Black.Jack
2

votes
1

answer

SqlAdapter Update() only inserts values.

I have table called Inventory, and I want to remove the first row of it. For that purpose I have created a class named InventoryDAL. Here's code: public class InventoryDAL { private string cnString = string.Empty; private SqlDataAdapter da = null; public InventoryDAL(string connectionString) { cnStr...
user2283683
1

votes
2

answer

update panel removes Jquery style

i am using the following JQuery UI code with asp.net controls. $(document).ready(function () { $('.Accordion').accordion({ heightStyle: 'content' }); $('.special').button(); $('.radio').buttonset(); //$('.tabs').tabs(); $('.tabs').tabs(); }); and the code was working fine until i decided to put all...
Majdi Asha
2

votes
0

answer

iOS app update notification / alert

I'm getting this by the Apple App Review Board: Hello, Thank you for your reply. It is not appropriate for applications to direct users to the App Store through the use of a notification or alert message. On the initial launch of your application, users were presented with an alert message that give...
psyntium
4

votes
2

answer

Update ProgressBar with appropriate value

Not strong in math so here is my problem: I am using a progress bar to show progress of work performed in background: Snippet of my code: int i = 0; int totalFriends = 0; foreach (dynamic friend in facebookFriends) { totalFriends++; } foreach (dynamic friend in facebookFriends) { i++; var friend = n...
Vasile Laur