Search update

60548 results
3

votes
1

answer

Update request in CRUD function

I am new to Sails and trying to learn CRUD functions to make my first api, with the help of Ponzi Coder tutorials, How do I create a restful json CRUD api in sails from scratch? For the Update request, I tried this piece of code for my application 'Small', module.exports = { update: function (req,...
Prerna Jain
5

votes
2

answer

composer update authentication on packagist

I have a problem with the composer update for my project made in laravel 5. Everytime I want to update the composer with other packages (from Packagist) I get an authentication box (not suposed to be one) and then even if I input my github/packagist account or not I end like this: Loading composer r...
Alxp
4

votes
1

answer

Hibernate Batch insert/update constraintviolationexception

I'm writing a program to run a batch process over hundreds of thousands of entities of a few related types. I was originally doing this with a single transaction per persist. This seemed very slow, so I tried doing somewhat naive batch updates in the way described in http://docs.jboss.org/hibernat...
rhi
2

votes
2

answer

Update ident string after checkin

I have enabled the expansion of $Id:$ via ident in the .gitattributes file. This allows me to quickly identify whether the file is outdated when someone else checked out my repository and installed it from there. Now, I also sync the contents of my own Git repository to other (non-development, i.e....
Ingo Karkat
2

votes
1

answer

Update/Find by id limit

When performing update/find only by _id should I specify $limit 1 or mongo already implicitly know that there will be only one record with specified id?
Daniel Furman
2

votes
1

answer

Update python 3.5 in anaconda

I have installed python 3.5 with the following commando: conda create -n py35 python=3.5 anaconda I also have a base Anaconda python27 installed. When I wish to update it I just write: conda update conda But how do I update my pyhon35? I have tried this: activate py35 [py35] C:\Users\trofl>cd C:\Use...
fossekall
2

votes
1

answer

Update preRenderView component with ajax

Is there a way to update the preRenderView components with ajax? Some example: // some code here // some code here In this example, i want the preRenderView of case 1 only be fired if bean1 is enabled. Adding a check in java code is not a good idea, because the session will be invoked everytime and...
kaiser
2

votes
1

answer

How to update joystick state

I want to update the joystick state every time I press a button on it or move the axis of the joystick. I have this code already: Imports Microsoft.DirectX Imports Microsoft.DirectX.DirectInput Dim js As Device = Nothing For Each DI As DeviceInstance In Manager.GetDevices(DeviceClass.GameControl, _...
Cobold
2

votes
1

answer

IOS Application Update Core Data

I was wondering if I do an update to my app, will it overwrite the core data database if the user has stuff inside it or will it just keep the database there? I want to make sure that it doesn't delete whatever the user has saved. Do I have to make a copy of it or just leave it alone on the update?
user2337981
7

votes
1

answer

MySQL UPDATE using IF condition

I'm not even sure if this is possible but I'm trying to do different UPDATE if a certain condition is met. user [id, start_date(NOT NULL), end_date(NULL), reason(NULL), .....] user_roles [id, role_id, user_id, start_date(NOT NULL), end_date(NULL)] What I have right now is this but this only works i...
moleculezz
2

votes
1

answer

Update equation for gradient descent

If we have a approximation function y = f(w,x), where x is input, y is output, and w is the weight. According to gradient descent rule, we should update the weight according to w = w - df/dw. But is that possible that we update the weight according to w = w - w * df/dw instead? Has anyone seen this...
Nan
3

votes
3

answer

Force user to update app

I'm building a multiplayer game app. The user will be have to connect to the intenet to use the app. I want to force the user to update the app if there is an update avilable on the app store, or he can't log in and play. Is there an API for what user's version? Also, will Apple agree to this like t...
Eli_Rozen
51

votes
3

answer

UICollectionView update a single cell

I am attempting to update a single cell inside a UICollectionView, specifically I am just trying to update an image in that specific cell detonated by cell.imageView. [self.collectionView reloadData] is not really an option because it makes the whole collection view flash. [self.collectionView begin...
Paulius Dragunas
6

votes
2

answer

Update single item GoolgeMap Cluster

I am using this libray to cluster GoogleMap in Android. My question is how can I update the single item I have gone through google from yesterday and no answers are there that explains updating single item. I am using websocket in my project so I need to update the data of item that were received fr...
Queendevelopers
1

votes
4

answer

Recognising when an update occurs?

I used this to add or update something into a database. $update = mysql_query (' INSERT INTO details (id, name, team, cost) VALUES ('$id', '$name', '$team', '$cost') ON DUPLICATE KEY UPDATE cost = '$cost' ') or die (mysql_error()); Basically, I want to do..... If $cost changes, echo old and new...
Cully
2

votes
1

answer

SQL syntax, cant update table

I am getting the error Could not update users table: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Long = '-2.8867589' WHERE Username = 'test1'' at line 1' when i run this sql statement: if($updateuser=mysql_q...
Alice
7

votes
2

answer

NHibernate bulk insert or update

Hi I'm working a project where we need to process several xml files once a day and populate a Database with the information contained in those files. Each file is roughly 1Mb and contains about 1000 records; we usually need to process between 12 and 25 of these files. I've seen some information reg...
Pedro Santos
2

votes
1

answer

Update TwitterKit SDK in iOS

I have this error : ld: '/Users/MyName/Desktop/ProjectName/PName/PName/Resources/Frameworks/Fabric.framework/Fabric(Fabric.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this tar...
Roei Nadam
3

votes
1

answer

Update nested arrays in mongoose

I have a document that resembles the following structure, and I'd like to update property3 using mongoosejs. I have tried: mongoose.model('someObject').update({'_id':'52817b7be2d14af309000005', 'array1._id':'52817b7be2d14af309000006', 'array2._id':'52817b7be2d14af309000007'}, {'$set':{'array2.$.pro...
user2981510
3

votes
2

answer

TreeViewItem can't update in BackgroundWorker

I have this method to update my TreeView. If i don't use BackgroundWorker all works fine. But if do then my TreeViewItem doesn't update, but it's DataContex changes. Also this works fine: item.IsEnabled = false; private void twSports_Expanded(object sender, RoutedEventArgs e) { TreeViewI...
algreat
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
3

votes
1

answer

SharedPreferences lost after app update

I've been researching this issue for the whole day. Here are key points: SharedPreferences should be persistent when user does app update in my case, after updating the app, they are lost the issue is reproducable every time (I install old APK from Play Store and then adb install -r new.apk with the...
Primož Kralj
-3

votes
1

answer

Update element in Arraylist java

Sorry to repeat the question but i am new and looking the others answers didn't help me much. I'd like to update my arraylist but i get stuck in an error that i cannot solve. Eclipse underlines the word set. My code is: private List lists; public void updateList(int index, string a) throws listExcep...
Malcolm
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
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
2

answer

do something after SVN update

Is there anything possible do something after SVN update process?. I need to execute some shell script after the SVN update process. Please help me how to do that?. SVN Version: 1.6.17
Mr. Black
1

votes
1

answer

Bundle install/update not working

Taking a rails tutorial, and I've run into the following problem that I'm having trouble figuring out. I'm creating a sample app that's supposed to use the following gemfile: source 'https://rubygems.org' gem 'rails', '3.2.5' group :development, :test do gem 'sqlite3', '1.3.5' gem 'rspec-rails', '2....
Sasha
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
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

Kendo Autocomplete: datasource update dynamically

I have a working autocomplete text box fetching data from mysql server through a php file. I would like to know how to change the datasource i.e the table depending on the user selection dynamically. Can the autocomplete requery a new table? I am using the following tutorial http://www.kendoui.com/b...
Madhu
1

votes
1

answer

PostgreSQL, libpq/C, update parameters

I can update record in table by string manipulation which have some weakness. So, now I'm try to update with parameters but this don't go as I thought. sprintf(sql, '%s%s%s%s%s%d%s', 'UPDATE ', mytable, ' SET ', 'my_id=$0, mystr1=$1, mystr2=$2, myint=$3, mydouble=$4', 'WHERE my_id='', local_my_id, '...
Wine Too
1

votes
2

answer

Update query string in url

I want to update the url query string by clicking on checkbox. Here's the code, it doesn't work correctly param1=param1=true param1=param1=param1=false param1=param1=param1=param1=true instead of: param1=false param1=true Here's an unrefactored code: if (this.checked) { if (window.location.href.sear...
1

votes
1

answer

Again, ObservableCollection doesnt Update item

Thats my first project using MVVM , MVVM light. I have a listbox, that gets refreshed from the PersonList Observable collection, adding and removing refresh it normal. the problem is when editing an item. I looked for all the solutions for this problem, nothing worked, which make me think that I mis...
Mark
1

votes
1

answer

MySQL update error #1064 [duplicate]

This question already has an answer here: How can I write SQL for a table that shares the same name as a protected keyword in MySql? [duplicate] 3 answers This is the error: #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right sy...
1

votes
1

answer

Update column value Array[Row]

I have a dataframe that contains many columns and I convert it in Array[Row] using collect: var table = df.collect() after this, I try to loop into it and modify a value of certain columns for(i
Mounir Hamdane
1

votes
2

answer

Composer update does not run

When i run composer update it fails showing error: [Composer\Downloader\TransportException] The 'https://packagist.org/packages.json' file could not be downloaded: failed to open stream: Connection refused If i visit t...
Alofe Oluwafemi
1

votes
2

answer

How update DataGrid.ItemsSource without freezes?

i try to update DataGrid.ItemsSource without freezes if have: public static DataTable DataTableAccounts { get; set; } Which i get from DataBase (SQLite) To display this data in the program, I write DataGridAccounts.ItemsSource = DataTableAccounts.DefaultView; After changing the data in the DataTabl...
skvoshiz
1

votes
3

answer

angular event doesn't update page

I'm converting a page in a mvc application with a lot of inline jquery javascript to angular using typescript. The first calls works fine but I have a problem: based on a selection in a dropdown, the event updates several controls in the view, make a few ajax calls and finally update the view with...
Luca Morelli
1

votes
1

answer

Axios PUT doesn't update data

I have this VueJS application that is using Axios to PUT an object to the server. The goal is to update this object in the database. The object already exists in the database but the object that is sent back with the PUT has some changed data. These changes are what I want to update to the database....
M. H