Search update

60548 results
1

votes
1

answer

Cucumber failing to work after bundle update

After running bundle update I have suddenly found that my cucumber tests are failing to get going. Running cucumber features gives me: $ cucumber features Using the default profile... uninitialized constant ActiveRecord (NameError) /Library/Ruby/Gems/1.8/gems/rspec-expectations-2.3.0/lib/rspec/expe...
Peter Nixey
1

votes
1

answer

Update Random Sample in Large Table

Using SQL Server 2012, I have a table with 7 million rows. PK column is a GUID (COMB GUID). I am trying to test the performance of a query and first need to update a random sampling of data, I want to change a column value (not the PK) of 50,000 rows. Selecting Top 50,000 Order by NEWID() takes way...
Snowy
1

votes
1

answer

How to update WPF canvas really fast?

In my wpf app i want to update a line on the canvas(change the start, end point coordinates) and preview the change. The problem is that i add the line but i can only see the initial and final state. Is there a way to make the line/canvas update itself in real time? I want to see how the line is cha...
Sorin Antohi
1

votes
1

answer

Android Update TextView(News feed) from Server

I am trying to develop as part of my app a sort of news feed for the user. When the user opens the app there will be a box at the top of the app which includes a greeting and information about the user or other information. This information would be pulled from a server. I think I just answered my...
IZI_Shadow_IZI
1

votes
2

answer

Update fancyBox margin on window resize

Re: http://fancyapps.com/fancybox/#docs I’ve set the option for a custom margin but want to adjust that if the window is below a certain size. Does anyone know if that can be done using the API methods. Although the following won’t work, it gives you an idea of what I’m trying to do: if ($(win...
James
1

votes
3

answer

Transform MySQL 'update' statements to 'insert' statements

I have an 11MB dump containing UPDATE statements, formatted like this: UPDATE `table` SET `id` = 1,`field`='etc' WHERE `table`.`id` = 1; However, I need to insert these values into a new database, using statements like this: INSERT INTO `table` (`id`, `field`) VALUES ('etc', 1); Has anyone written a...
zildjohn01
1

votes
1

answer

Update query with Join in Hive

I am trying to do the following: UPDATE a SET col1 = B.col1, col3= B.col4 FROM table A JOIN table B on a.col2=b.col2 WHERE A.col5 = B.col5; However, this throws me the following error: Error while compiling statement: FAILED-ParseException- Missing EOF at 'from' near 'col4' I tried rearranging the...
Utsav Jha
1

votes
1

answer

Update TextArea in QML from C++

My question is pretty simple I think. Nevertheless I was not able to figure it out. I have a TextArea defined in my .qml file, which needs to be updated dynamically from the C++ code. Unfortunately, I don't know how to access/update the TextArea from within the imserver.cpp class. Can anyone help m...
wasp256
1

votes
2

answer

jquery sortable update database using coldfusion

There are a ton of ways to do this in PHP but I have not found any posts that do this in Coldfusion using jQuery. If you have a link, please share that. Otherwise, here is what I'm doing: I have four sections (first, second, third, fourth for lack of better term) and within each section is a list...
HPWD
1

votes
1

answer

Nivoslider update or restart or even destroy

I'm having some issues when trying to renew the nivoslider when loading dynamic content. What I need to do is update the slider when I load new content in through an AJAX call. So basically I have a div that gets new data in from a function AJAX call and after the load I would need the slider to rei...
Bostjan
1

votes
4

answer

Php update checkbox states in db

I am new in php, i have a question. How can I update checkbox states in db? checkboxes have same name. when click on update button it will update all row checkboxes stat in db. and checkboxes in db get true or false html part # selected block index block name edit delete /> thank you :)
Aram Mkrtchyan
1

votes
2

answer

Trigger on UPDATE of Specific Field

I'm looking to create a trigger that adds the difference between DATE_BEGIN and DATE_END in a table as soon as DATE_END is added. For example, say I have a table with the following columns ProjectName,Type,DATE_BEGIN,DATE_END,DATE_DIFF and I want DATE_DIFF to be automatically populated with the diff...
muttley91
1

votes
1

answer

update existed contact with multi number android

I am using this code to update number for existing contact on android: ArrayList ops = new ArrayList(); ContentProviderOperation.Builder builder = ContentProviderOperation .newUpdate(ContactsContract.Data.CONTENT_URI) .withSelection( ContactsContract.Data.CONTACT_ID + '=?' + ' AND ' + ContactsContra...
KhoiNguyen
1

votes
1

answer

collection.allow() insert/update/remove redundant userId argument

In Meteor for collection.allow() insert callback is 'insert(userId, doc) {}' Here isn't the userId argument redundant? Because we can always check it with Meteor.userId(). Why is it being passed as an argument?
Krishna Srinivas
1

votes
2

answer

UPDATE TableA.FK VALUES TableB.PK WHERE TableA.Column = TableB.Column

I'm trying to merge tables from different databases, ServerDB and ClientDB and save to ClientDB where the client's tables hold the master's tables records plus any records the user might add. On the other hand server tables could also be updated (new records inserted). The database has relationship...
Pantelis
1

votes
2

answer

Update hierarchical / tree structure in Clojure

I have an Atom, like x: (def x (atom {:name 'A' :id 1 :children [{:name 'B' :id 2 :children []} {:name 'C' :id 3 :children [{:name 'D' :id 4 :children []}]}]})) and need to update a submap like for example: if :id is 2 , change :name to 'Z' resulting in an updated Atom: {:name 'A' :id 1 :chil...
Drewes
1

votes
1

answer

PHP Mysql update set replace exact match

I need help replacing exact numbers in my database. My table look likes this.. ID NAME IMAGES ------------------------------- 1 person1 1,2,3...101,102,103 When I use mysql_query('UPDATE table SET images = REPLACE(images, '3,', '') WHERE id = '1''); It removes all the 3 from all numbers that en...
Smixen
1

votes
1

answer

Batch update table with 2 million rows

Hi all I've got an interesting task to update a single column in a table that has roughly 2 million rows. I've tried doing this using MVC Entity Framework, however I'm encountering 'Out of memory exceptions' and I'm just wondering if there's another way. The interesting part is that its not just a...
Vince Ashby-Smith
1

votes
1

answer

Update the same row multiple times

I'm trying to increment a row when in the form's the item is selected. I know that doing an update statement does what I ask but my question is: if in the form there is 5 or 10 fields that the user can choose at the same time the same item, How can I update the same row in the same time to save the...
user3236149
1

votes
1

answer

Update multiple columns and values node postgres

Using node-postgres I want to update columns in my user model, at present i have this async function update_user_by_email(value, column, email){ const sql = format('UPDATE users SET %I = $1, WHERE email = $2', column); await pool.query(sql, [value, email]); } So I can do this await update_user_by_...
Richlewis
1

votes
2

answer

Update all values in Primary Key column

I have a table which contains a primary key where the value is an ID number ranging from 1-4 digits at the moment. For example: 100 101 102 103 I would now like to add the same text at the beginning of each value, whilst still keeping the rest of the ID. So for example, this is how I would like my...
BradenA8
1

votes
1

answer

UPDATE table using a subquery in SQLite

I want to update records from a sub-query. I am using the following query: UPDATE table1 SET a = aa FROM (SELECT a AS aa FROM table2) AS abc WHERE f = 1 This works fine in SQL Server. But doesn't work in SQLite. Any Idea?
hims056
1

votes
1

answer

Update values inside dictionary of a dictionary

I have a dictionary that contains the information to make a POST request to site and fetch data. Below is my dictionary request_dict = { 'scope_id': 'user1', 'tool_id': 'appdynamics', 'api_id': 'get metrics names', 'input_params': {'user': 'abcd', 'pwd': '1234', 'acc_id': 'ab12', 'app_id': 'TestApp'...
Souvik Ray
1

votes
6

answer

Rails: link_to_remote update doesn't render the view

I have a link_to_remote to render the edit action of an object. But all it does is update the Dom Element with this response try { } catch (e) { alert('RJS error:\n\n' + e.toString()); alert(''); throw e } My link looks like this: = link_to_remote t('txt.edit'), :update => dom_id(comment), :url => e...
Ole Spaarmann
1

votes
2

answer

SQL Update into table with case

I am still new to DB stuff and this one is giving me an issue. I am normalizing my table and I created a new one where [Status] is now FK. I was able to insert all of the values from the original table into the new one, minus the [Status] I am now trying to insert the [Status] using a select case....
Christian4423
1

votes
1

answer

Flutter update 8/1/17 broke Android

Is anyone having any issues on Android with the flutter update on August 1st? I updated yesterday and ever since I have not been able to run on Android emulators while iOS is fine. I get the error: [ERROR:flutter/shell/gpu/gpu_surface_gl.cc(161)] Could not wrap onscreen surface. flutter doctor resul...
Kyle Stokes
1

votes
1

answer

Python - update plot based on a timer

I have a list of 2D arrays that I plot them using a slider from matplotlib. I added some control buttons to my plot, so I want to click a play button, and the plot changes with some time interval. Here's the function that is called by the button: def play(mouse_event): for x in range(len(list...
philippos
1

votes
1

answer

Update all Highcharts chart series synchronously

I use the code below to display Highchart with 3 signals in it, that are updated periodically with animation. But the problem is that for 2 of the signals the dots are updated first and then the curve slides into the dots. When I only have one signal it looks better, the dots never 'jump' out of the...
Joakim Carlsson
1

votes
1

answer

access vba update one table, multiple fields

Help, i want to update my table PARKING with the field PARKING_STATUS value UPDATED but I got error. I fetch everything from the same table. All fields at the form are from the same table PARKING, with PK and FK with other table. This is the code: Private Sub Approve_Btn_Click() 'update data into ta...
Syamil Fuad
1

votes
1

answer

Variable update issue in tensor flow

My question is why in the simple code below, the value of some of variables(w_3 for instance) does not update but for others they get updated. import tensorflow as tf import numpy as np x=([1, 2, 3]) x= np.array(x) sess= tf.InteractiveSession() input_data= tf.placeholder(dtype= 'float32', shape= (No...
Maz
1

votes
1

answer

Bokeh callback does not update the graph

I'm currently trying to plot the average and max of of a dataframe in 2 graphs with shared selection. On selection of in graph 1, I want to plot the data that is being averaged in graph 2. I'm getting the graphs and selection but it doesn't seems to update the graph with a selection in spyder. Belo...
BvH
1

votes
1

answer

Update ImageField on change of TextInput

Given a SimpleForm: I'd like to have the ImageField update as the user types in the TextInput. Is this somehow possible out of the box, or will I have to wire it up myself?
Danyal Aytekin
1

votes
1

answer

Invalid update: invalid number of sections

Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid update: invalid number of sections. The number of sections contained in the table view after the update (3) must be equal to the number of sections contained in the table view before the update (3), plus...
Nazmul Hasan
1

votes
1

answer

Ambiguous class resolution warning during composer update

During composer update i'm facing ambiguous class resolution warning. Screenshot given below and i was trying https://github.com/Doptor/Doptor this laravel cms.
RASEL RANA
1

votes
1

answer

How to update vaiables in tensorflow scan

I would like to make a variable in tensorflow, and then update it in tf.scan. First I tried something like this: import tensorflow as tf with tf.variable_scope('foo'): tf.get_variable('bar', initializer=tf.zeros([1.0])) def repeat_me(last, current): with tf.variable_scope('foo', reuse=True): bar = t...
Taro Kiritani
1

votes
2

answer

Losing data while trying to update database

I am writing simple blog web app. What I want to do is load data from database, pass it to view into form inputs(not all, only those I want to be editable) edit them and pass them to database as update. I am loading my Post from database, data correctly passes to edit form, even deugger see that Pos...
Gromo
1

votes
1

answer

Xcode server not working after Xcode update

After updating Xcode to 9.3, my bots disappeared and there's a messenger symbol at the right. How can I restore the bots?
Ted
1

votes
1

answer

Index on cypher doesn't update in transaction

If I'm inside a transaction cypher index returns nothing, but if I use SpringRest or commit before run cypher query it returns the node. This is the context: I have an object with an index and I'm inserting it through Neo4jTemplate.save(), if I use GraphRepository.findByPropertyValue() to get the ob...
Bruno
1

votes
2

answer

Update constraints in Database - Grails 3.2.2

I had a class with a String field and now I have added a new constraint: foo(maxSize: 30) In my dataSource I have this value: dbCreate: update And when I run the app the maxSize does not change in my database (checked with MySql Workbench). How can I update new constraints in database?
Pablo Casas
1

votes
1

answer

Update textPath after tween transition in D3

I'm trying to put together an animated sunburst diagram that can zoom and change between data representations, based some examples I've found: Vasco, Visual Cinnamon, David Richard etc. I'm not able to get the animation part to properly work. The arcs are updating, but the text labels aren't. Any ad...
Aad