Search update

60548 results
2

votes
1

answer

ServiceStack update session on heartbeat

There is a case in my ServiceStack app that uses ServerEventsFeature where I would like to update session\user info during users heartbeats. The problem is that in the feature a handler for OnHeartbeatInit will return a random ID that is not connected to any session in my sessions cache, for examp...
HardLuck
2

votes
0

answer

maria db insert or update

I have the following sql code: UPDATE google_calendar_accounts SET google_refresh_token='d',google_org_token='d' WHERE userID=5; IF ROW_COUNT()=0 THEN INSERT INTO google_calendar_accounts (userID,google_refresh_token,google_org_token) VALUES (5,'d','d'); END IF and I am getting the error: You have a...
Samuel
2

votes
1

answer

Update hidden attribute in LoopbackJS

I have a strange problem in LoopbackJS. In one of my persisted models which are saved in PostgreSQL, I am not able to change the value of some fields of an instance with .save() or .updateAttributes methods. Another thing, these fields are hidden so I can't use remote methods to do so.
Maryam Saeidi
2

votes
4

answer

Linq to Object -Object update

In LINQ to Object context ,can i update an object in memory. I mean i can create new type like var query =from e in empList select new {id=e.id,salary=e.salary * (10/100) }; can i update an object?
user274364
3

votes
2

answer

Post status update with location

When you post a regular status update to Facebook, it tracks your current location and gives the (near) city next to the time. I.e.: May 24 near New York City, New York. Please note that this is not a check-in. I'm trying to do the same, without searching for a page (place) id and checkin. I've trie...
Tim
3

votes
0

answer

Conflict 2 packages composer update

These two packages conflict when try install or update with composer 'cagartner/correios-consulta': '^0.1.7' 'barryvdh/laravel-dompdf': '^0.8.0' result Problem 1 - Installation request for barryvdh/laravel-dompdf ^0.8.0 -> satisfiable by barryvdh/laravel-dompdf[v0.8.0]. - Installation request for ca...
Jessica Paloma
1

votes
1

answer

How to get Application update?

I have developed one android application which is now at Google Play store. During development I was using my phone to run app. As we know by default app will gets signed with default keystore. Before deployment I have signed apk with new keystore and also updated version code from 1 to 3 as well as...
Rohan Patel
2

votes
1

answer

-Yii- Update listView by AJAX

I'm very new at Yii and PHP, and I have a question. I need a listView to be updated by ajax filtering from a dropdown selection, and it is working fine but the problem is the pagination. I filter the results in the controller and pass the dataProvider to the view to change the listView, but when y c...
Victor
2

votes
2

answer

Update values in a Hash

I have minimal experience with Ruby and am trying to get my hash to update its values after subtracting the values by three. For example, extinct_animals = { 'Passenger Pigeon' => 1914, 'Tasmanian Tiger' => 1936, 'Eastern Hare Wallaby' => 1890, 'Dodo' => 1662, 'Pyrenean Ibex' => 2000, 'West African...
jmk929
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
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

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

votes
6

answer

How to update primary key

Here is my problem: I have 2 tables: WORKER, with columns |ID|OTHER_STAF| , where ID is primary key FIRM, with columns |FPK|ID|SOMETHING_ELSE| , where combination FPK and ID make primary key, and also ID is a foreign key referenced to WORKER.ID (not null, and must have same value as in WORKER). I wa...
Slavisa
2

votes
2

answer

How to update datetime field

What is the best way to update a datetime field in a form. I have a form and need to update both the date and the time. I need to update the date with a date_select and then update the time using a time_select I only have 1 field in my database. Event:date I need to save the date in one field and...
Fresh
3

votes
1

answer

Phantom update in Django admin

After clicking 'Save' to update a particular model in Django admin, I am returned back to the list view with a message stating that 'The [model] was changed successfully.'. The issue is that the model was not changed. The list view which contains the column I updated does not reflect the modified te...
robmisio
5

votes
4

answer

Update using modal and php

I'm doing a CRUD operation using php and bootstrap only. I'm currently stuck at update because I cant seem to send the $_GET['updateid'] to my modal. This is my href's, the delete href is working but the update is not.
Kent Abrio
7

votes
2

answer

Django 1.9 JSONField update behavior

I've recently updated to Django 1.9 and tried updating some of my model fields to use the built-in JSONField (I'm using PostgreSQL 9.4.5). As I was trying to create and update my object's fields, I came across something peculiar. Here is my model: class Activity(models.Model): activity_id = models.C...
user994013
2

votes
0

answer

How to update TextureView SurfaceTextureListener

I am developing a camera app and I will use front and back camera. I am using TextureView like this: and code behind: renderer = new CameraRenderer(this, isFrontCamera); textureView.setSurfaceTextureListener(renderer); CameraRenderer class implemet SurfaceTextureListener public class CameraRenderer...
Savas Adar
2

votes
1

answer

Mongodb update() vs. findAndModify() performace

For a constantly growing document, I have the choice of using either update() or findAndModify() to insert new elements in an array field. However, findAndModify() will generate cleaner code in my specific application. But I can achieve the same functionality using update(), just more messy. I'm jus...
Maria
4

votes
1

answer

Update Databinding on lost focus

I've seen that WPF has a UpdateSourceTrigger property that will allow for data binding to take place after a control has lost focus, is there something similar for winforms? I've come across an issue where when updating a databound value, the entire source is changed rather than the single property...
Sayse
3

votes
1

answer

Why does SDL_NumJoysticks() never update?

I was writing a small program in C that utilizes SDL 2.0, and ran into a problem when I couldn't get SDL_NumJoysticks() to report the number of joysticks plugged in at the time of the function call. I believe that it is reporting the number of joysticks connected during one of SDL's initialization...
fouric
2

votes
1

answer

Recyclerview dataset update proper method

to update data of recyclerview i have tried three method notifydatasetchanged() swapadapter() updating List and assigning same Adapter. but when i update data in each method memory allocation (to app) keep increasing by range of(0.25 to 0.50)MB how to solve it? My adapter public class RVAdapter exte...
Arjun
5

votes
1

answer

Update Redshift table from query

I'm trying to update a table in Redshift from query: update mr_usage_au au inner join(select mr.UserId, date(mr.ActionDate) as ActionDate, count(case when mr.EventId in (32) then mr.UserId end) as Moods, count(case when mr.EventId in (33) then mr.UserId end) as Activities, sum(case when mr.EventId i...
user3600910
2

votes
3

answer

JQuery Update data- attribute/value

I have a DIV that looks like this...utilizing the 'data-gauge' attribute. What I would like to do is update a couple of the values via jQuery - namely 'value' and 'max' to new values. What would the syntax for that be? I'm new to jQuery and figure it would be something like: $.('#uib-justgage-3').s...
EZoolander
3

votes
1

answer

Update element values using xml.dom.minidom

I have an XML structure which looks similar to: 123456 XYZ no 7890 XYZ2 yes Using xml.dom.minidom only (restrictions) i would like to 1)traverse through the XML file 2)Search/Get for particular element, depending on its parent Example: checkout element for author1, isbn for author2 3)Change/Set tha...
user291784
1

votes
2

answer

Update confluence wiki page programmatically?

I'm wondering if there is a way to update a confluence wiki page programmatically, perhaps using JavaScript? For background: I'd like to build a little bookmarklet that allows me to click on a bookmark (a la Instapaper) and have it write the URL of the page I'm currently viewing into a confluence pa...
tonic
2

votes
3

answer

Update database using JQuery ajax.Post()

Help! I'm writing some code to update a mySQL database using similar to the code below:- $.post('http://myURL.com/vote.php?personID=' + personID + '&eventID=123'); The vote.php code takes the querystring values and inserts a record into a database with those values in it. This kind of code is worki...
Mat Richardson
20

votes
2

answer

Update all packages from GitHub

I know you can install packages from CRAN with this syntax: install.packages(c('Rcpp'), dependencies=TRUE) You can update all of them from CRAN with: update.packages() On the other side, you can install packages (compiling them) from GitHub with: install_github('hadley/tidyr') How can you upgrade al...
skan
3

votes
2

answer

ASP.NET AJAX without update panel

What is the best practice to support data for asp.net 2.0-3.5 ajax web application? I don't want to use update panels, just plain text data (JSON). Should I use web services? Or is there another way.
ppiotrowicz
2

votes
2

answer

Mysql update with php [closed]

I have a point system were there's a quiz. when they click submit from the quiz i want them to get +1 into points in mysql. i got a datbase called login and table users, and in the users i want the points to be updated with 1+ when they have taken the quiz. the code for the quiz_form i use: : Regist...
carl
4

votes
3

answer

Update form: Spring mvc + thymeleaf

I'm trying to create a thymeleaf form to update just a couple of attributes of the backing object: @RequestMapping(value = '/jobs/{id}', method = RequestMethod.GET) public ModelAndView update(@PathVariable Integer id ) { ModelAndView mav = new ModelAndView('updateJob.html'); JobDescription updateJob...
Mircea Badescu
2

votes
3

answer

Update int in MySQL Field

How can I increment an int in a cell of a MySQL database? I know that auto-increment is no use because I never want to add a new row, just update an existing one. I'm currently using this (POST var used for clarify, is verified in the real code): $columnToUpdate = 'type'.$_POST['voteid']; $query =...
shanethehat
3

votes
0

answer

memcached on windows x64 - update?

I'm looking for memcached to run on Windows x64. I saw a old thread can I get Memcached running on a Windows (x64) 64bit environment? and looked at Couchbase site. Looks like they have taken a different direction on their product. I didn't see any download/support for windows x64 memcached from them...
frosty
1

votes
3

answer

numpy vectorize a parallel update

I want to implement a one-dimensional cellular automaton with the following simple rules: If cell is 1 and neighbor cell is 0, move (to the right) if cell is 1 and neighbor cell is 1, don't move All cells update at the same time according to their state. We have closed boundary conditions. That mea...
Tengis
2

votes
1

answer

WMI - Update DCOM settings Programatically

I created a little exe to modify some DCOM settings. The exe works fine when I try to modify the settings on a different server from where the exe is running but does not work when I try to modify the settings on the same server where the exe is running The code is below If I set strComputer to the...
David
9

votes
1

answer

MsDeploy - Can't update Application Pool

I've been browsing dozens of sites to help me deploy a web service to an IIS using MsDeploy. I need to create the application, modify application pool and enable protocols, and update a appSetting (that contains a connection string, don't ask me why). I can do all of these, except applying the good...
Jerome
2

votes
5

answer

php update table by form

I'm trying to update a table from a form. I have 3 pages. The first one queries all of the rows from my table with an 'edit' link. When edit is clicked (page 2) the code pulls the $id and puts it in the url. The $id is pulled from the url and is used in a query to fill a form. My problem is passing...
hobbywebsite
18

votes
3

answer

MySQL update with sub select

I have a table lets call it table1, and the data in two of the columns has been destroyed. Fortunately I have an old backup of the table. In the old backup the values for the two columns in question are correct but the rest of the columns are outdated so I can't simply import the whole dump. So i...
geoffs3310
2

votes
1

answer

PHP/MYSQL Delayed update query

i'm developing news portal using codeigniter, it's run well on my first hosting provider, but after i moved to a new hosting provider i started got this update query problem. i'm using article read counter similar to below function, in my new hosting it got delayed for more than 10 second, so the co...
user2157692