Search update

60548 results
2

votes
3

answer

Script to update xml value

I am trying to do update on xml file based on condition using AWK Script. Could anyone assist me on this? students.xml 1 A 75 2 B 35 1 C 94 Code I tried so far I am able to extract tag values using below code BEGIN { RS=']+>' } { print RT, $0 } This prints all the tag and values as expected. I wa...
Dhanabalan
6

votes
3

answer

laravel 5,update User password

I'm using laravel 5 to develop an app that allow every user to update his profile. in order to update password, the user needs to first enter his old password and if the old password matched then his newly entered password will be hashed and stored in DB. how can I validate this, using laravel form...
Salar
4

votes
2

answer

SQLiteDataAdapter Update method returning 0

I loaded 83 rows from my CSV file, but when I try to update the SQLite database I get 0 rows... I can't figure out what I'm doing wrong. The program outputs: Num rows loaded is 83 Num rows updated is 0 The source code is: public void InsertData(String csvFileName, String tableName) { String dir...
Kiril
2

votes
1

answer

Update elasticsearch settings via Tire

Is it possible to use Tire to update elasticsearch settings? I have this curl command I'd like to run automatically. `curl -XPUT localhost:9200/tweets/_settings -d '{ 'index' : { 'refresh_interval' : '-1' } }'` The value is available via tire but I'm not sure how to apply it. Tweet.tire.settings[:r...
jspooner
135

votes
12

answer

Update multiple columns in SQL

Is there a way to update multiple columns in SQL server the same way an insert statement is used? Something like: Update table1 set (a,b,c,d,e,f,g,h,i,j,k)= (t2.a,t2.b,t2.c,t2.d,t2.e,t2.f,t2.g,t2.h,t2.i,t2.j,t2.k) from table2 t2 where table1.id=table2.id Or something like that, rather than like so:...
Joe
8

votes
4

answer

Failed to automatically update constraints

I am getting the Failure to automatically update constraints error when trying to use the auto layout to Add, Reset, or Update any restraints on any viewController after updating to xCode 9. Any ideas? I have already cleaned and restarted my Mac. Still have not found a solution for this. I narrowed...
Torewin
2

votes
3

answer

Create or Update - Laravel 4.1

As there is firstOrCreate() in Laravel Eloquent, I was wondering if there was a function that could either create a record or if it exists, update the current one? Or would I have to write my own one? I wasn't able to find anything in the documentation, but it's not the first time, I've found stuff...
Jazerix
2

votes
1

answer

Swift: BLE not update characteristics

I send a 0x11 byte to the TX but nothing happens, the function func peripheral(_ peripheral: CBPeripheral, didUpdateValueFor characteristic: CBCharacteristic, error: Error?) Is never called. Here is my code .. func centralManager(_ central: CBCentralManager, didConnect peripheral: CBPeripheral) { pe...
Mickael Belhassen
2

votes
1

answer

Spring MVC form update object

I try to update my object via form and I have two controllers: @RequestMapping(value = '/modifyUser{id}', method = RequestMethod.GET) public String modifyUser(@PathVariable('id') int userId, ModelMap map) { UserDetails user = userService.findById(userId); List companyDetailsList = companyService.get...
sidlejinks
1

votes
2

answer

Update UI from another class

I am trying to separate my GUI and my Logic...For example, i have one class which calculates something (calc.h/calc.m). And i have my GUI (viewController.h/viewController.m)...Now i want to update one Element of the GUI from another class... I already tried it with a Singleton, like this: calc.m: vi...
davidOhara
4

votes
2

answer

Nothing happens on composer.phar update

Nothing happens when I enter the following line in the terminal: php composer.phar update The same for install or any other option. What could be the problem? I am working on CentOS. Thanks
apfz
7

votes
1

answer

Update the document.referrer via history.pushState()

I'm using pushStates in my ajax-app to navigate from one 'page' to another. Now, I'd like to see from what page I was coming from. But document.referrer always returns ''. Or, when I open my app from another page (where it is linked), I got the URL from that other page. Shouldn't these lines... hist...
kraftwer1
2

votes
2

answer

SQL Update error. FK Conflict

I am trying to change the name of a group from ASSY to Manufacturing but am running into some dificulties. It is on a sql server database. I ran the query below. Update groups set group_code= 'Manufacturing' where site_code = 'TMMBC' and group_code = 'ASSY' and group_description = 'Manufacturing'...
Eric
2

votes
2

answer

asp.net MVC - Ajax update image

I am trying to update an image scr using Ajax, first in the controllor: public ActionResult GenerateMIPImage(float pX = 0, float pY = 0, float pZ = 0) { FileContentResult result; ... im.SetViewPlane(new Point3D(pX, pY, pZ), new Vector3D(0, 0, 1), new Vector3D(0, 1, 0)); ... objImage = im.Bitmap(outp...
hncl
2

votes
0

answer

Update single Item in Flatlist

Hey Guys I need to Update Single item in FlatList data . i want to count items in a cart. when i click on + or - in that there's no change in it. but when i use extradata prop of flat list its change in all count.. class Cart extends Component { state: { count:0 } render() { const cartcount = {this...
Tanveerbyn
3

votes
4

answer

Android SQLite Update not working

I am trying to update one column for any number of rows. Here is the function: public void setAwardsSyncComplete(String[] ids) { String inArray = StringUtils.separateCommas(ids); db.beginTransaction(); try { ContentValues contentValues = new ContentValues(); contentValues.put(COL_SYNCED, true); int...
pjama
5

votes
1

answer

xml-sql: update multiple nodes

I have the following problem. i have a xml file stored in a sql database. i should change all the VALUE tag values by dividing per 100. here is an extract the structure of the xml: 15 201110180000 15 201110250000 15 201111020000 15 201111080000 20 201111150000 15 201111290000 I have found...
bitdiego
4

votes
1

answer

Mongoose dot notation $inc update

I have a document as follows: { '_id' : '1', 'myplaylists' : [{ '_id' : '2', 'name' : 'Playlist_0', 'likes' : 712, 'views' : 7110 }], 'name' : 'First name, Last name' } and I want to do an update and increment 'myplaylists.likes' what I did is: User.update( {'myplaylists._id': 2}, {$inc: { 'myplayli...
AboulEinein
4

votes
2

answer

RSpec test PUT update action

I am trying to write some RSpec tests to test my app, but I've stumbled on several problems that I can't find any solution. 1) I am trying to test the update action. Here is my code: it 'email is a new one' do put :update, id: @user, user: FactoryGirl.attributes_for(:user, :email=>'[email protected]') @user.rel...
Kert
3

votes
9

answer

Update CSS rule property value

I have a html element which is styled (using jquery) with a background image targeted thru its class name. When I remove the class the background image stays - which is not what I expected or want. test.html HELLOWORLD test.css .tile{ background: none; } test.js $('.tile').css('background-image', 'u...
zaf
3

votes
2

answer

Update Jquery Datatable Cell Value

I have a jquery datatable with a many spans in it. The table is loaded in with ajax data from a DB then the spans are dynamically updated to match all the other spans with the same class when a user changed a value. The issue I am having though is that when I update the spans datatable doesn't seem...
Mav2287
2

votes
2

answer

JOOq: update for generalized table

I want to create a generalized method with JOOq that updates a table (specified by a string) using values from a JSON object. I'm not including any validation of tables/fields in this example. public void updateTable(String table, JsonObject data) { Table table = PUBLIC.getTable(table); UpdateSetFir...
lebolo
2

votes
1

answer

Update left join query help

I have no idea how to do what i'm trying to do. Hopefully the data relationships are demonstrated in this example UPDATE sym_entries_data_55' SET value = '46.00' WHERE (sym_entries_data_55.id = sym_entries_data_54.id) AND (sym_entries_data_54.member_id = sym_entries_data_5.entry_id) AND (sym_entri...
Kirk Strobeck
2

votes
0

answer

React mobx update on API

mobx: 5.03 react: 16.4.1 mobx-react: 5.2.3 rails: 5.0.2 react-rails gem I have a basic mobx setup in react. I am trying to get the rowData observable variable to change in the view after an http request. However, once it is rendered at the default '111' it always stays at that value. How can I get m...
HoosierCoder
4

votes
1

answer

sending passbook update with pushsharp

I'm trying to test talking to apple's push notification sandbox server. I made a certificate following this link (enabled push notification, requested certificate authority, uploaded, generated cert, export p12) I made a sample C# console application that looks like the following PushBroker push = n...
prawn
5

votes
3

answer

Arguments against Create or Update

Recently someone stated that they thought all Creates should be CreateOrUpdates. Instinctively i thought bad, but now I am trying to find out if I have any grounds. Situation interface IService{ void Create(Object a); void Update(Object a); } or interface IService{ void CreateOrUpdate(Object a); }...
26

votes
1

answer

Update value in mutable HashMap

Here is what I am trying to do: use std::collections::HashMap; fn main() { let mut my_map = HashMap::new(); my_map.insert('a', 1); my_map.insert('b', 3); my_map['a'] += 10; // my expected outputs is my_map becomes {'b': 3, 'a': 11} } Raises the following error: error: cannot assign to immutable inde...
Akavall
2

votes
1

answer

update ajax content with will_paginate

Could someone help me work out how to update my view keeping all existing ajax and will_paginate functionality in place. I have a a page rehome.html.erb Option Select Here // WILL_PAGINATE $(function(){ if($('#infinite-scrolling').size() > 0) { $(window).on('scroll', function(){ //Bail out right awa...
Richlewis
7

votes
3

answer

Update pip3 for Python 3.6?

I just upgraded from Python 3.4 to Python 3.6 using Homebrew. The output states: Pip, setuptools, and wheel have been installed. To update them pip3 install --upgrade pip setuptools wheel You can install Python packages with pip3 install They will install into the site-package directory /usr/local...
user2989813
4

votes
1

answer

Update multiple rows with mySQL

I have a table that look like this: property propertyid value active 1 1 datastore 2 apc How would I formulate a SQL query to update a few rows, without updating all of them. IE, if there were 6 rows, update 2,3 and 4 but not 1,5 and 6? Thanks.
bear
2

votes
2

answer

How to update ember packages?

I have my old project that use Ember 2.8. Now, I want to update all the packages and here is the updated package.json { 'name': 'php-api-ember-test', 'version': '0.0.0', 'description': 'Small description for php-api-ember-test goes here', 'directories': { 'doc': 'doc', 'test': 'tests' }, 'scripts':...
vee
2

votes
3

answer

Update parent dict in subclass

I have classes like this: class Parent(object): _defaults = { 'key': 'value', 'key2': 'value', } class Child(Parent): _defaults = { 'key2': 'value2', 'key3': 'value2', } When I create the child class, I want _defaults to be set to the parent class _defaults and then updated with the child _defaults....
xaav
3

votes
1

answer

friendly_id, Update slug with history

I am using friendly_id as follows: class Page < ActiveRecord::Base extend FriendlyId friendly_id :title, :use => [:slugged, :history] end I would like to be able to set the slug (i.e. be able to set a custom URL) without changing the title and maintaining old slugs in history. Is there a straightfor...
Jay
2

votes
0

answer

Mongoose update document array subdocuments

I have this schema containing an array of subSchemas like this: var timesheetSchema = mongoose.model('Timesheet', new Schema({ _owner: { type: Schema.Types.ObjectId, ref: 'User' }, name: { type: String, required: true }, members: [memberSchema], slots: [slotSchema] }), 'Timesheet'); Slot schema (bit...
Jim Vercoelen
3

votes
0

answer

Highcharts update series performance issue

I was hoping to pick your brains on a highcharts performance issue. I have a script that is looping an event 500 times over 30 seconds. Those events will occur at random times across the 30 seconds -but as you can guess the frequency is pretty high. Each time the event occurs I am updating a series...
Noobster
2

votes
0

answer

chrome extension auto-update strategy

I want to update my chrome extensions automatically or via command line. These could be archived using Autoupdating, but only for hosted extension. Autoupdating is not supported for extension hosted in Chrome Web Store. Manual updating through web portal is very tiring. It is possible to use direct...
Kyaw Tun
2

votes
0

answer

Android Studio Update to 2.3.3

I updated the android studio to 2.3.3 from 2.2.3 now when opening the existing projects it shows the following error. Error:Could not HEAD 'https://jcenter.bintray.com/com/github/dcendents/android-maven-gradle-plugin/1.3/android-maven-gradle-plugin-1.3.pom'. Received status code 407 from server: Pro...
Saranya M
23

votes
2

answer

How NSSlider live update value?

It seems like NSSlider in Cocoa does not provide some delegate to received slider event. How NSSlider live update value into NSTextField ?
meddlesome
3

votes
1

answer

P2 headless update not working

I have taken the org.eclipse.equinox.p2.examples.rcp.prestartupdate project and adapted it for use in my RCP application. I then setup an update repository that gets updated as part of my nightly build. When I open my application it goes through the motions like it is updating - it finds the update...
rancidfishbreath
2

votes
1

answer

jquery nestable does not update

I'm using jquery nestable to create a list of academic programs a prospective student might be interested in. 16 programs pulled from mysql and listed like this: if(mysqli_num_rows($result)) { $order = array(); while($item = mysqli_fetch_assoc($result)) { echo '',$item['program'],''; } } else { Sor...
trf