Search update

60548 results
3

votes
1

answer

Moodle update mysql from code

I am unfamiliar with Moodles methods of updating a database with code. I have this statement: $expiredCourseArchiveIntegritaxSql = 'UPDATE mdl_course SET category = 29 WHERE expireDate < '' . $date . '' AND category = 28'; $expiredCourseIntegritaxArchive = $DB->get_records_sql($expiredCourseArchiveI...
user1882752
2

votes
1

answer

Configuring Eclipse RCP Update manager

i finished my Eclipse RCP Application and wanted to configure the update manager. My Product is feature based and updates are working like they should, but i want to limit the user. i.e. force a special update site or display only grouped etc. I tried using Policy but it does not work: public class...
Absurd-Mind
2

votes
1

answer

Update vsdoc commets in javascript

Is there any tool to update VSDoc comments in the javascript library? Now I have the documentation in the VSDoc comments in the javascript file and in the separate xml file. And if I want to change something, I need to change it in the both places. Would be great to have the ability to change xml on...
Andrey M.
4

votes
2

answer

TeamCity: Error on VCS update

Hey Guys, I have some trouble getting the VCS of teamcity work. I'm using perforce and the TC-Server should be configured correct, but when running the project I'm getting the error: [Updating sources: server side checkout...] Error while applying patch: Failed to change text file: C:\Projects\Build...
Thomas Spranger
3

votes
1

answer

View changing on UITableView update

I have a rather complex form being laid out in a UITableView. This form has some UICollectionView inside a table view cell and also some pickers that show up the same way it does on Calendar app: Now when I do this on my app, one of the UICollectionView I have gets taller than how it started - and i...
dccarmo
67

votes
7

answer

Can't update data-attribute value

Although there are some examples about this on the web, it does not seem to work correctly. I can't figure out the problem. I have this simple html change data value Every time I click the link 'change data value' I want to update the data value of data-num. For example I need it to be 1,2,3,4,... (...
dev
3

votes
2

answer

Brew update failed on Yosemite

I upgraded my Mac to the new OSX 10.10. brew update failed with: /usr/local/bin/brew: /usr/local/Library/brew.rb: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby: bad interpreter: No such file or directory /usr/local/bin/brew: line 23: /usr/local/Library/brew.rb: Undefined error:...
turbo
2

votes
5

answer

high performance database update (oracle)

I have several services which dumps data to database (oracle) after processing different input file formats (XML, flat files etc). I was wondering if I can have them generate SQL statements instead and log them to some file system, and have a single SQL processor ( something like java hibernet) whic...
atanu ghosh
6

votes
3

answer

Firebase push notifications update DB

I'm trying to send some data to my users via the new Firebase push notifications service. I'm adding some 'key-value' custom data items with 'Message text' - 'dbupdate' to detect if it's an update message or a normal push notification that I want to show my users. In my receiver I check i there is...
Nirel
2

votes
1

answer

JQuery to dynamically update totals

Each time a new div is created via a button click, I want to dynamically keep an order so when one div is created it becomes 1 of 1, then 1 of 2 when a further div is created and when a div is deleted it reverts back to 1 of 1 etc. I've tried using each to update all specific tags, but they do not u...
user94628
3

votes
6

answer

Update Specific item in recyclerview

I have a RecyclerView and adapter public class AdapterToUpdateOk extends RecyclerView.Adapter { String[] desc; Context context; LayoutInflater inflater; AdapterToUpdateOk adapter; public AdapterToUpdateOk(Context context,String [] desc) { this.context = context; this.desc= desc; inflater = LayoutInf...
2daySky Expert
2

votes
1

answer

Eclipse NPE on project update

I'm using Eclipse 4.4.1 with the latest gae plugins. When I saved da java file in a project, a NPE was thrown: 'Errors occurred during the build. Errors running builder 'Enhancer' on project.' Here's the stack trace: !STACK 0 !MESSAGE Problems occurred when invoking code from plug-in: 'org.eclipse.c...
roemer
4

votes
2

answer

Flutter: Update Widgets On Resume?

In Flutter, is there a way to update widgets when the user leaves the app and come right back to it? My app is time based, and it would be helpful to update the time as soon as it can.
Joshua Van Deren
34

votes
3

answer

SQL UPDATE order of evaluation

What is the order of evaluation in the following query: UPDATE tbl SET q = q + 1, p = q; That is, will 'tbl'.'p' be set to q or q + 1? Is order of evaluation here governed by SQL standard? Thanks. UPDATE After considering Migs' answer, I ran some tests on all DBs I could find. While I don't know w...
pilcrow
32

votes
4

answer

Entity Framework cannot update database

My application crashes with the following error whenever I save to the DB. Unable to find an entry point named 'SetClrFeatureSwitchMap' in DLL 'SqlServerSpatial110.dll'. This error started yesterday afternoon after a Windows Update and PC Reboot. The dll is not referenced in the project and is not i...
Atron Seige
5

votes
2

answer

linq to sql update standard

So I know there are many questions on how to update a DB with linq to SQL, my question is, am I doing this in an accepted standard? here is my code: protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { //load data to page } else { using (var db = new App_Data.MyDataContext()) {...
Limey
2

votes
2

answer

How to update form content

I am making a web application using asp.net mvc 3. There is a form: @using (Html.BeginForm()) { Approvals @Html.Label('Ticket ID') @Html.DropDownList('TicketID') @Html.Label('Distributor ID') @Html.TextBox('DistributorID', null, new { @readonly = 'readonly' }) @Html.Label('Description') @Html.TextAr...
2

votes
0

answer

How to update cached action?

Loosing ideas how to properly use action caching for a controller indirectly depending on a model. The background scenario: Having a simple rails model for product objects class Product < ActiveRecord::Base ... end A controller which handles requests for feeds and uses Product instances to render vi...
David Unric
3

votes
1

answer

ItemsSource + Converter + Treeview wont update

This one is fairly complex, hopefully I can make this clear enough for somebody to help me out. I have an object lets call it a Manager, the Manager has a collection of people that he manages, the people all implement IPerson, but different types of people have different properties. I want to displa...
Kelly
13

votes
3

answer

Undo a mysql UPDATE command

I was trying to do an update on the MySQL server and accidentally forgot to add an additional WHERE clause which was supposed to edit one row. I now have 3500+ rows edited due to my error. I may have a back up but I did a ton of work since the last backup and I just dont want to waste it all becau...
Naveen
2

votes
1

answer

mongoid update elements within array

I am using mongoid 3.1 with Ruby 1.9.3 and I am trying to update a value within an array. I can successfully perform the following command in mongodb's CLI, but can't seem to find the appropriate solution/translation for mongoid. user.update( { activities: { $elemMatch: { uuid: '1111111-xxxx-xxxx' }...
JD Trout
14

votes
2

answer

Reload/Update View In Swift

I'm busy making an app with an account page. I want that users can logon via that page and as soon as they have done so successfully that the page reloads to display their account information rather than the standard message stating that they have to logon to make use of the page. However when I get...
Ted Huinink
2

votes
1

answer

Update label through another class

I'm trying to call method Run in script1. Then from script1 call method alert or wait and try to update statusLabel in Form1. But this code has an error. static Label status = this.Controls.Find('statusLabel', true).FirstOrDefault() as Label; This code will only work in Form1. Because this return er...
user4565531
3

votes
2

answer

SQL update table via join?

I have the following database and wish to update the room table. The table room lists a room type that is either single, double or king, the price is the price of each room per night and the name in Hotel is the name of the hotel. What I need to do is change all double rooms to king rooms which are...
user2182032
2

votes
3

answer

Using JOIN in UPDATE query

I have 2 tables that have identical structure: | term (varchar(50) utf8_bin) | count (bigint(11)) | One table is called 'big_table' and the other one 'small_table'. Big table has ~10M rows and small_table has 75k. I want to update small_table, so the count column will be filled from the...
Cornwell
3

votes
1

answer

Java JDBC UPDATE Add Number?

So let's say I have an int column in MySQL. I want to update that column by adding to it, without running a SELECT query to get the number and add it. Is this possible?
5

votes
1

answer

mongodb set null in update

I have to interchange the values of a document. var query = {'_id' : ObjectId('53e1c254382f891cc600076d')}; db.properties.find(query).forEach(function(prop){ printjson({'_id':prop._id, 'val':prop.val, 'ua':prop.ua}); db.properties.update(query, {$set:{ua: prop.val}},{$unset:{val:''}}); }); Before u...
trex
3

votes
1

answer

YII2 simultaneous multiple row update

I have listed multiple rows of data from database in the GridView. Now I need to update certain fields (all the same type, ie having the same names but different values) in the GridView and update the values in the database. The cell in matter is returned as following: return Html::input('text', '['...
jeesus
1

votes
4

answer

SQL update syntax with subquery

I have this update statement: UPDATE quotedetailextensionbase qd SET qd.new_capvehicleid = (SELECT cv.new_capvehicleid FROM vwCapidLookup cv WHERE cv.new_capid = qd.new_capid AND cv.new_captype = qd.new_captype) I get an error back but I'm not sure why Incorrect syntax near 'qd'
Ben
39

votes
4

answer

Doctrine 2 update from entity

Is it possible to update an entity in a similar way as below: $data = new ATest(); // my entity $data->id = 1; // id 1 already exists, I just want to update this row $data->name = 'ORM Tested'; // changed the name $entityManager->persist($data); $entityManager->flush(); This will...
Dennis
2

votes
2

answer

Recursive “ON DUPLICATE KEY UPDATE”

I have a database table with a UNIQUE key on a date column so that there can never be more than one row per date. If I insert a new row for a day that already exists in the database, I’d like it to push all the subsequent, consecutive dates back by one day until it reaches a ‘free’ day. Here...
BenLanc
6

votes
1

answer

Update ObservableCollection from background Worker

I have a DatGrid, which is bound to var Result_Full = new ObservableCollection(). This is a simple class containing several string & double variables. Nothing difficult. What I do, is that I read an Excel File (with Telerik RadSpreadProcessing), which parses rows into my class. I do this on a thread...
Robert J.
3

votes
0

answer

How to update packages hashes?

I'm sort of new to python, and using Anaconda3-5.1.0 on windows 10 i need to install package kwant, kwant is n't coming for anaconda windows , so i try pip install it ,after some struggle and reading here I found kwant-1.3.2-cp36-cp36m-win_amd64.whl so it match the platform , but this package need...
aminoffline
3

votes
2

answer

Openshift: Automatically update upstream images

In Openshift we have a BuildConfig which depends on an image from hub.docker.com (ubuntu:xenial). strategy: type: Docker dockerStrategy: from: kind: ImageStreamTag namespace: name: 'ubuntu:xenial' forcePull: true For this I created an ImageStream with the following config: apiVersion: v1 kind: Imag...
Phil
2

votes
2

answer

Longer bundle update install time

Well, i took a break from RoR for studies, now I am back, I have noticed that it takes much longer to install gems, bundle update/install. Before I could complete the installation of a new gem in minutes now it takes hours and I have to force restart because I cant see any progress being made (Even...
uknj
2

votes
1

answer

Access Update Query using VBA

I have a Table like this SNo Block SAP SAG BAP BAG DEP DEG 1 600403 1 3 5 4 2 600405 1 3 1 3 1 1 3 600407 3 1 2 4 4 600409 3 1 5 600410 1 3 2 5 1 3 6 600413 1 4 1 3 I want to NULL the Cells of SAP and...
Macs
4

votes
2

answer

python sqlite3 update not updating

Question: Why is this sqlite3 statement not updating the record? Info: cur.execute('UPDATE workunits SET Completed=1 AND Returns=(?) WHERE PID=(?) AND Args=(?)',(pickle.dumps(Ret),PID,Args)) I'm using python and sqlite3. this statement does not throw an error, it just seems like it is out right igno...
Narcolapser
41

votes
2

answer

how to undo bundle update

bundle update and bundle install is ver fantastic. However, is there a good way to undo bundle install and bundle update if something went wrong ?
hey mike
2

votes
1

answer

Access UPDATE to Today's Date

While I'm running below Query from access VBA, it's updating the date to 12/30/1899. Please help me. DQRY = 'Update ' & tb & ' Set ImportDate = ' & Format(Now, 'MM/DD/YYYY') & ';' db.Execute DQRY while DORY equivalents to 'Update 600_London_Name Set ImportDate = 09/26/2017;' Yet the result I get...
Mohd akhtar
2

votes
2

answer

Update SQL image in java

What I need to do (And I know it's bad practice, but I'm kind of forced to) is upload an image to an SQL DB from Java. Currently, I'm using a prepared statement and trying to use this to upload the bytes from the image. public void insertImage(Connection conn,String img,String strItemNum) { String...
kingdamian42