Search update

60548 results
3

votes
2

answer

Rails has_many update with empty array

There is the following form code: = form_for @task, html: { class: 'form-horizontal' } do |f| .form-group .col-sm-9.col-sm-offset-3 = render partial: 'shared/form_errors', locals: { subject: @task } .form-group label.col-sm-3.control-label for='title' Title .col-sm-9 = f.text_field :title, class: 'f...
malcoauri
2

votes
1

answer

Threadding: Update UI without blocking the thread?

I have written a server program that does a lot of jobs in threads simultaneously. In those threads, I have to update a ListView with status information, but as it is right now using invoke, the thread waits for the UI to finish updating the ListView. Any good advice to how I can send the status to...
MojoDK
2

votes
1

answer

ASP.net & MVC : AJAX & update PartialView & confirmation message

I'm using ASP.Net MVC to make my app I'm actually trying to delete an entry from my DB, first i must have a confirmation message and when the action is completed i want to refresh my PartialView here's my code The problem is the confirm option is a simple ajax message, i want to use my own message (...
Andrey Blue
2

votes
1

answer

'Update' like behavior for Google Datastore

Is there a way to make query for Google Datastore that behaves the same way as SQL 'Update' query with conditions. Or should I perform this task in two parts - retrieve stored entities that match specified conditions, change appropriated property and make batch request to save changed entities?
user1734477
2

votes
1

answer

MongoDB: schema migration, update or insert

While MongoDB doesn't require any fixed schema, there are times we would like to migrate from one structure to another. I was dealing with a small dataset (~200K) recently, and decided to loop existing data, transform data model and insert to new collections. It turned out our vps wasn't that powerf...
bitinn
2

votes
1

answer

Opening .py files after the 3.3.5 update

I recently upgraded my Python version to 3.3.5 with much excitement, but after trying to change the default 'open with' program to the new Python IDLE, I got lost. I tried un-installing Python 3.3.2 in hope of causing less confusion, but I still can't tell what I need to open .py files with! I can r...
FaceySmile
1

votes
1

answer

Semi copy/clone constructor for update methods

I have many case classes in the format of case class Cluster (id: Pk[Long], foo: Long, bar: String, env: String, name: String, deleted: Boolean = false) { def delete() = Cluster(id, foo, bar, env, name, true) def updateName(name: String) = Cluster(id, foo, bar, env, name, deleted) def updateFoo(foo...
Eishay Smith
5

votes
2

answer

User.Settings file reverts values upon ClickOnce Update

I have read the numerous questions here on this and even posted one of my own trying to get to the bottom of this(My Previous Question). Unfortunately, none of them answer my question. My .Settings file get's reset whenever I deploy an update through ClickOnce. I thought ClickOnce was supposed to...
Refracted Paladin
2

votes
1

answer

Display and update applescript output in background

I have a short and sweet program that outputs my internal and external ip in applescript. Here it is the Applescript code: set inIP to IPv4 address of (get system info) set exIP to (do shell script 'curl ipecho.net/plain') display dialog 'Internal: ' & inIP & ' External: ' & exIP I would like it to...
Patrick Cook
20

votes
2

answer

Entity framework migration and seeding specific update

does anyone know how you can seed a specific update using EF 5 migrations? I have existing database, alredy has lookups populated, and am developing some Audit functionality. I have created an AuditType entity and Audit. When I call update-database, I don't want all my seed data from when I first cr...
CheGuevarasBeret
1

votes
3

answer

Recursive Update trigger issue in SQL 2005

Below is the code snippet with comments which describes the problem statement. We have an update trigger which internally calls another update trigger on the same table inspite of Recursive Trigger Enabled Property Set to false. Would like to understand the reason for this as this is causing a havoc...
Atul
3

votes
4

answer

UPDATE record with subquery into own table

I have a calendar table, that I'm trying to use to deal with some weekend and holiday issues. The structure is simple: CREATE TABLE calendar ( daterank INT, thedate DATE ); The idea is that every record has a daterank, that is used for comparison purposes. Non-holiday weekdays have incremental dater...
Jeff Dege
3

votes
2

answer

Update row with another query result

Lets say I have a database set up like this, I want to move Milk to the end by changing the priority to the last number + 1. id | item | priority ---|------|---------- [...] 26 | Milk | 1 27 | Eggs | 2 28 | Ham | 3 So I need to run something like this UPDATE shopping SET priority = (SELECT prior...
Jamie Taylor
3

votes
2

answer

update query not working (php, mysql)

I'm trying to update information in my database but it is not updating and i'm not getting any error. But when I execute the query with MySQL Query Browser it works and the information is updated correctly. function cancelaDetalleOrden($id_orden,$id_pos,$id_componente) { conectar(); $cancelado= '...
ricardo28
2

votes
1

answer

Update ruby globally OSX without RVM, Rbenv

I am newbie ruby developer. I cannot figure out one annoying thing. I have macOS sierra installed on my macbook. When I type ruby -v I get following output $ ruby -v ruby 2.0.0p648 (2015-12-16 revision 53162) [universal.x86_64-darwin16] I am using RubyMine IDE as well. So I've tried to update my...
Putinhello
1

votes
2

answer

Symfony Cannot Execute Doctrine Schema Update

I am having an issue running doctrine:schema:update --force because of a forgeign key constraint issue. [Doctrine\DBAL\DBALException] An exception occurred while executing 'ALTER TABLE Product ADD CONSTRAINT FK_1CF73D312ADD6D8C FOREIGN KEY (supplier_id) REFERENCES Supplier (id) ON DELETE SET NULL':...
LargeTuna
2

votes
1

answer

Android : Update Recyclerview ITEM when ContentObserver called

I have read following links for updating data when database get changed. What is cursor.setNotificationUri() used for? What's the mechanism of setNotificationUri? CursorLoader not updating after data change So It's successfully done with ContentObserver and my Fragment get notified with that and I h...
Pratik Butani
2

votes
2

answer

Update **not** the current branch (in Git)

So I am in branch feature. And I want to rebase w/ branch master. git rebase master And it says that feature branch is up-to-date. Of course it is because master branch hasn't changed — it is the same as in moment when I create feature branch from it. Actually it is not. All I need is to do pull i...
daGrevis
2

votes
1

answer

Update same variable from two different components

I want to use the same state variable say count and update and retrieve the updated one. I wrote the following code as a higher order component consisting of one button and one label . Both updates the count but they have separate instances. So how can I re-align my code to keep the same copy of th...
kushalvm
3

votes
1

answer

Update one observableCollection from other collection

I need to update one observablecollection from another one as in below example: Update ObservableCollection A with Data in Collection B: ObservableCollection A = new ObservableCollection() { new Category() { ID = 1, Name = ABC }, new Category() { ID = 4, Name = UVW }, new Category() { ID = 2, Nam...
Balraj Singh
2

votes
2

answer

my data won't update php - sql

Hello I try to update a data in my sql with php. First I connect to my database try { $bdd = new PDO('mysql:host=localhost;dbname=cruel', 'root', ''); } catch (Exception $e) { die('Erreur : ' . $e->getMessage()); } After I take my var from my other page I check if empty if (isSet($_POST['radio']) )...
user3613856
2

votes
1

answer

onItemClick stop working after List update

I'm developing and application that requires a listView. When I run the app it works fine and I use the following code: listView = (ListView) findViewById(R.id.list); listView.setOnItemClickListener(MainActivity.this); adapterListView = new AdapterListView(MainActivity.this, itemList); listView.setA...
Raí Avancini
2

votes
3

answer

how to update openssl in cocos2dx?

I recently receive an email from google play to update my openssl version. Many others also receive same email and questions about that has been asked. I want to know how to update openssl I have update it in my mac by following this link http://javigon.com/2014/04/09/update-openssl-in-osx/ But My a...
Ali Raza
11

votes
1

answer

AngularJS - Update model based on URL

This is basically a follow up question this question: AngularJS - How to use $routeParams in generating the templateUrl?. See my code there for the proper context of this question. All the navigation part is working great, but now when I navigate, I want to update some properties in my $scope based...
dnc253
5

votes
1

answer

AngularFire does not update Firebase sometimes

The controller below feeds a view with a table and a form. The relevant part of the table is: If a row gets clicked, the form displays the details of the obj (its model is tab.obj), and you can edit it. The table gets the update appropiately when the user modifies an obj in the form fields, but fire...
Gabriel Díaz
2

votes
3

answer

Programmatically multiselection update is slow in listbox

I try to programmatically update the selected items in a listbox, with extended selection mode. Here is how I do it: foreach (var selectedItem in ItemsForSelection) { _myList.SelectedItems.Add(selectedItem); } My problem is, that when the number of the selected items is big, the update is very slo...
Andy
2

votes
0

answer

Phonegap sqlite update query not working

I have an update query, where in I am updating a Boolean column to true, it goes in the success callback but when I fetch same value it is false. Below is my code snippet: db.transaction(function(tx){ tx.executeSql('update `'+UsersT+'` set '+LoggedInC+' = 'true' where '+UserIdC+' = '18' ', [], funct...
viv
4

votes
1

answer

Can't update user attributes - Rails and Devise

I am using Rails (3.0.9) with Devise (1.5.3) and I have an User model in which the attributes can't be updated for some reason I have no idea about. The form for this User object has many attributes including those from devise: password and password_confirmation, for example. When I submit the form...
rodrigoalves
3

votes
1

answer

Google Glass - screen won't appear after update

Now that XE16 is available, I decided to update my Glass with the new boot.img. Everything looked like it succeeded, but when I restarted the Glass, the main screen doesn't appear. When I try to use adb commands, it says my device is unauthorized and that I should check the appropriate dialog. I'd...
user934904
7

votes
1

answer

Cannot edit files after latest Resharper update

Just ran the latest nuget package to update the Resharper C# files to 8.2 Now I am unable to edit any files in Visual Studio 12. Is anyone else experiencing this? Is there a way to resolve this?
Nigel Joyce
2

votes
1

answer

Update XML file (SimpleXmlElement Object) using string

I have the following XML file nb.publisher_Path http://mmm.com = .... And i want to update the URL inside: elementProp name='nb.publisher_Path' from:http://mmm.com to : http://aaa.com so i have wrote the following PHP code:
AHS
5

votes
1

answer

nhibernate auditing with events on update

The following code works on insert but on update modifier is never set, any ideas why? The code for pre-update is being run and correctly sets the state and entity values to the desired value. However when viewing the generated sql nhibernate does not include the field in the update query. /// Upda...
Daniel Little
2

votes
2

answer

Actionscript without display list (update/draw loop)

I've been working with several different programming languages recently, and I've come to the conclusion that I don't really like the display list in Actionscript. I would much rather have an update/draw loop and draw and manage everything manually like in XNA (C#). What I do like in actionscript is...
omgnoseat
1

votes
1

answer

Update XML file from List<T>

I have a XML file containing records like - 5726 0 0 Pending 5736 0 0 Processed I take these records into List as - XDocument xDocument = XDocument.Load(filePath); List list = xDocument.Descendants('CLocation') .Select(c => (new T() { CId = Convert.ToInt32(c.Descendants('CId').FirstOrDefau...
iniki
3

votes
2

answer

How to update MBProgressHud with AFHTTPRequestOperation

I downloaded some examples in order to learn Ios. The examples include: AFNetworking; Inapp purchase (from RayW); MBProgressHud; In my viewcontroller i push a UIbutton which triggers the Inapp purchase Singleton example and start download a file from my server with AFHTTPRequestOperation. This pa...
KevinC
11

votes
3

answer

Update INI file without removing comments

Consider the following INI file: [TestSettings] # First comment goes here environment = test [Browser] # Second comment goes here browser = chrome chromedriver = default ... I'm using Python 2.7 to update the ini file: config = ConfigParser.ConfigParser() config.read(path_to_ini) config.set('TestSet...
sarbo
11

votes
4

answer

MySQL ON UPDATE CASCADE not CASCADEing

Suppose i have two below table: CREATE TABLE post ( id bigint(20) NOT NULL AUTO_INCREMENT, text text , PRIMARY KEY (id) ) ENGINE=InnoDB AUTO_INCREMENT=1; CREATE TABLE post_path ( ancestorid bigint(20) NOT NULL DEFAULT '0', descendantid bigint(20) NOT NULL DEFAULT '0', length int(1...
ahoo
0

votes
0

answer

How to update chart dynamically in ApexChart.js

currently i working to show line chart in my page for that i have been using ApexCharts.js module. At first time i call chart function its working good, but when user looks for different data and again call the Chart function The Chart UI is Appending in View insteed of Update the View in Div. i att...
Anand ios
2

votes
1

answer

Update Azure Service Configuration File using Powershell

I'm trying to write a powershell script that updats each of the DiagnosticsConnectionString and DataConnectionString values below, but I can't seem to find each individual Role node using $serviceconfig.ServiceConfiguration.SelectSingleNode('Role[@name='MyService_WorkerRole']') doing echo $servicec...
David Osborn
11

votes
2

answer

XCode 6.3 Code Signing Issues after update

I've updated recently to XCode 6.3 and started having some strange code signing issues. Occasionally XCode will start complain about the code signing issues. And either will have issue like : invalid or unsupported format for signature ... Command /usr/bin/codesign failed with exit code 1 or ... Com...
Krzysztof