Search update

60548 results
35

votes
9

answer

Update TextView Every Second

I've looked around and nothing seems to be working from what I've tried so far... @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.deskclock); TextView tvTime = (TextView) findViewById(R.id.tvTime); TextView tvDate = (TextView...
Timmo
3

votes
1

answer

Update Day of Month

I have a select statement that is finding all the dates in the column that are on the 9th of the month, regardless of month and year: SELECT * FROM tblhosting WHERE DAY( nextduedate ) =09 I would like to UPDATE the DAY to 10, but leave the month and year alone. Any help?
user1825276
2

votes
2

answer

Invalid update on TableView

Hi friends of StackOverflow. I have a chat screen on my app and I it perform a insertion and deletion based on the actual size of the an Array. Look this: func addObject(object: Object?) { if comments == nil || object == nil || object?.something == nil || object?.anything == nil { return } self.obj...
Pedro Paulo Amorim
36

votes
3

answer

knockout.js: update bindings?

when I inject any new elements into the DOM after ko.applyBindings(); was called, then knockout won't recognize these new elements. I can understand why this is happening - they are just not indexed by knockout. So, at first I thought this would be solved by just calling ko.applyBindings() again, af...
Christian Engel
3

votes
3

answer

Java Observer Update function

I have a class that implements observer, and of course it needs to have the update function: public void update(Observable obs, Object obj); Can someone please explain what do the two parameters stand for? Observable is my observable of course, but, how can I access my observable fields through this...
TheNotMe
2

votes
3

answer

Update violates primary key

My update receives the following error when updating to the database: ORA-00001: unique constraint (DONALDBURY.BARS_ID_PK) violated I am using the following code as my update. I am not wanting to get rid of the constraint but to find out a workaround for it. I want to stop the duplicates values bein...
209

votes
4

answer

git submodule update

I'm not clear on what the following means (from git submodule update docs): ...will make the submodules HEAD be detached, unless --rebase or --merge is specified... How does --rebase/--merge change things? My main use case is to have a bunch of central repos, which I will embed via submodul...
deepblue
2

votes
0

answer

Planner - Update task: UnknownError

I'm trying to update a task in planner using beta graph api. My call is PATCH: https://graph.microsoft.com/beta/tasks/dBwDqUFHpkCetYiUluQlnJYACAzh The json object looks like this: { 'bucketId': 'Tbi8MJwWwEu4SUYdrqt235YAEkke', 'title': 'New Title' } And the response: Status Code: 412 { 'error': { 'co...
Marian Toader
3

votes
1

answer

Reagent component doesn't update

The 'add' and 'remove' items of shoppinglist ratom updates the 'shopping-list' component, but the 'update' doesn't. I used cljs REPL for updating the shoppinglist ratom. add: shopping.app=> (swap! shoppinglist assoc 3 {:id 3, :name 'Coke', :price 25}) WARNING: Use of undeclared Var shopping.app/sh...
tkircsi
2

votes
4

answer

Update value in array()

For exemple I use this array: Array ( [0] => Array ( [id] => 39584 [quantity] => 1 ) [1] => Array ( [id] => 39584 [quantity] => 3 ) [2] => Array ( [id] => 39574 [quantity] => 1 ) [3] => Array ( [id] => 39586 [quantity] => 1 ) ) My question is: How can I update 'quantity' if the 'id' is similar to th...
2

votes
0

answer

Update datagridview cell

I am trying to update a cell in a DataGridView but it's giving me an Exception with message: parameter @Description has no default value If I click enter into cell it's giving me: Index or primary key cannot contain a Null value in insert query. AccountNumber is my primary key but right now the whol...
Atul
3

votes
2

answer

Automatically Update Query SQL

I'm trying to have my query auto-update every year, so that a certain 'Debt' fee would increase every year, however it's not working properly, no matter what method I try. My goal is to make it auto-increase by 75000 every year. Here are a few things I tried that did not work. CASE WHEN DATENAME(dy,...
Patrick Younes
13

votes
2

answer

PHP UPDATE prepared statement

Hi I'm trying to learn the proper way to use prepared statements to avoid SQL injections etc. When I execute the script I get a message from my script saying 0 Rows Inserted, I expect this to say 1 Rows Inserted and of course update the table. I'm not entirely sure on my prepared statement, as I've...
001221
4

votes
1

answer

Anaconda update broke Spyder?

I ran the Anaconda Launcher (Windows 7) and clicked 'Update' next to each thing, and now Spyder doesn't work. It pops up this error message: --------------------------- Spyder --------------------------- Please check Spyder installation requirements: PyQt4 4.6+ (or PySide 1.2.0+) is required. -----...
endolith
2

votes
1

answer

Javascript update functions

I'm getting into game developing online. I am trying to make an online FPS game, and I've only gotten to the point where I need to update my character. I am trying to keep my code simple, using only a draw and update function. When the html loads, I execute both: (Is this necessary?) The draw functi...
Taylor Brown
8

votes
2

answer

sqlite, UPDATE OR REPLACE

I do something like UPDATE OR REPLACE someTable SET a=1, b=2 WHERE c=3 I expect if it doesnt exist it will be inserted into the DBs. But nothing happens and i get no errors. How can i insert data, replace it if it already exist and use a where for the condition (instead of replacing BC of a unique I...
3

votes
2

answer

Update TextView before sleeping

I'd like to do setText() on a TextView and make the activity sleep just after. Here is the code : tv.setText('myText'); tv.invalidate(); // Doesn't work pause(1000); // French for sleep And my function pause : public void pause(int seconds) { synchronized(this) { try { this.wait(seconds); } catch...
thomas-hiron
2

votes
3

answer

NHibernate update reference

Entities We have an entity called Product which is loaded using NHibernate. Product has a category which NHibernate happily populates for me. Database In the database, Product has a foreign key for category. Scenario User edits this Product (via a web interface) and chooses a different category (say...
Jon Hilton
2

votes
2

answer

Update android app version

Where do I have to change app version in code (androidManifest.xml I guess) to make an update? I am having problems because I always get the same message from google.
Biribu
3

votes
1

answer

Hibernate Save/Update Cascade

There is a class A like: class A { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) @Basic(optional = false) @Column(name = 'DBId') private Long DBId = null; @OneToMany(cascade = CascadeType.ALL) @LazyCollection(LazyCollectionOption.FALSE) List list; } and a class B like class B { @Id @Genera...
Shayan
4

votes
1

answer

Bulk update in MYSQL

I have a table containing data about some users. Many of them use our in house email system at OLDHOST.com. We have updated to a newer system at NEWHOST.com. All the users usernames are the same, so if you had [email protected], you are now [email protected] Is there a better way to change all the ema...
Rich Bradshaw
1

votes
2

answer

TFS update a project

I am a software developer working on a webshop. We are using nopCommerce 3.30 with custom plugins. The whole project is checked in on a TFS server. (Visual studio 2013, Team Foundation server 2012) The problem is the following: nopCommerce 3.40 was released, we downloaded the ZIP with the source cod...
Luka Kusulja
0

votes
0

answer

VBA missing update value

I have ran into a problem i cant seem to solve. I am working on a summary sheet in excel which pulls data from fields in multiple sheets and all the values shown are correct in the summary except one. If a date value is inserted in one of the spreadsheets and is pulled by the summary sheet, the whol...
Oluwa O.
1

votes
1

answer

Trigger update during animation

I am animating a div (id='ani') using the following CSS code. #ani { width: 100px; height: 100px; background: red; color:white; position :relative; animation: mymove 5s infinite; } @keyframes mymove { 0% {left: 0px;} 25% {left: 250px;} 50% {left:500px;} 75% {left: 250px} 100% {left: 0px;}...
Deepankar Arya
1

votes
1

answer

Derby live update

I asked a question about meteor updating the view if a 3rd party updates the database directly. I've been playing with the derby examples and noticed that the view doesn't get updated if I change the data in mongo. Is derby able to change the view based on the data changing in the database (ie editi...
Gevious
1

votes
2

answer

Update List Concatanate string

I have a class public class RoomAvail { public int OCCUPANCY { get; set; } public int ChildCount { get; set; } public string ChildAges { get; set; } } I have List of RoomAvail i.e List rooms; rooms = { new RoomAvail{OCCUPANCY =1,ChildCount =1,ChildAges ='1' } new RoomAvail{OCCUPANCY =2,ChildCount =2...
palak mehta
3

votes
2

answer

Update old android project

I am following this tutorial and I can make it work just fine, but when I try to update the UI to fit the new Holo.Light in android 4.2 the app crashes at launch, and I don't know why. I have been searching for a way to update the UI but I could not get it to work. I wonder if anybody could help me?...
magnuskahr
2

votes
2

answer

MongoDB update multiple collections

My mongo db contains following collections name like 10.9.40.46 10.9.40.47 10.9.40.48 10.9.40.49 10.9.40.50 10.9.40.51 10.9.40.52 In all collections having N numbers of documents and every documents had common key name as 'status' by default all documents had 'status' 1, When I update my collection...
Yogesh
2

votes
1

answer

Escaping jquery update div

I have a tag that updates on .keyup from a textarea. $('textarea').keyup(function(e) { var newtext = $('textarea').val().replace(/\n/g,''); $('p').html(newtext); }); How do I escape javascript that a user enters. I don't want to escape the html just the javascript.
Anthony Gainor
2

votes
1

answer

Maven release update policy

I see that the releases setting in the maven settings has got an updatePolicy as the snapshots setting has. I was always under the impression released artifacts won't/shouldn't change, so there can't ever be a question of update policy when it comes to releases. Or am I wrong? Does releases having...
mystarrocks
4

votes
2

answer

Line Chart Live update

Live update Line Chart I want to modify this simple example of Line Chart and add live update. import javafx.application.Application; import javafx.scene.Scene; import javafx.scene.chart.LineChart; import javafx.scene.chart.NumberAxis; import javafx.scene.chart.XYChart; import javafx.stage.Stage; pu...
Peter Penzov
1

votes
4

answer

Update table in SQL

I need to update two tables, I just try following two cases. case 1: Update the two tables in one single query as, UPDATE tableName1,tableName2 SET tableName1.column1 = 12, tableName2.column1 = 12 WHERE tableName1.column2 = 13 AND tableName2.column2 = 13; case 2: Update by two separate qu...
Rakesh KR
4

votes
1

answer

CoreData update problems

My app makes updates in background thread then saves context changes. And in main context there is a table view that works with NSFetchedResultsController. For some time updates work correctly, but then exception is thrown. To check this I've added NSLog(@'%@', [self.controller fetchedObjects]); to...
kpower
2

votes
2

answer

Mercurial auto update problem

We are starting to use Mercurial for source control. We have configured the HGRC configuration file to do an auto update after we push to the 'central' repository. With some PCs we get this error msg: warning: changegroup hook exited with status -1 HGRC looks like this: [ui] username=ADMIN verbose=...
Ezequiel
2

votes
5

answer

UPDATE sql String Error

been learning php for 3 weeks now and i find myself with a simple error that does not make sense: I cant see what is wrong with this code. Could someone please point me to why this is happening. Its a simple insert and set sql query which is like this: code: $insertresults = 'UPDATE usage SET messag...
Robert
1

votes
2

answer

Update core data

I relased version 1 in appstore that contain coredata database , in version 2 I added new fields to the database how to modify dynamically the old database , with keeping the data I already did without versioning and don't have the old version , and the application will crash on the customer ipad...
AMH
1

votes
1

answer

How to update NSManagedObject?

I have this code: -(void)didEditCard:(NSMutableArray*)theArray { // Create a new instance of the entity managed by the fetched results controller. NSManagedObject *newManagedObject = [[self fetchedResultsController] objectAtIndexPath:theSIndePath]; // If appropriate, configure the new managed object...
cocos2dbeginner
3

votes
1

answer

update a jfreechart

I have a jfreechart which appears after the user clicks a button. When the user clicks the button again with a different dataset the graph should be repainted. My problem is that even the new graph is displayed once the user clicks the button for the second time, it disappears and the previous graph...
gishara
6

votes
6

answer

Update Database Android

Can anyone tell me how to update the database in android. I created an app with an embedded database. I changed the version of the database in the manifest and created the on update method. I wanted to test it to see if the database was updating properly but when I use the adb command only the -r wi...
user237259
2

votes
2

answer

Update ValidationSummary after UpdateSource

I'm forcing an update of every textBox in a silverlight page: this.txtName.GetBindingExpression(TextBox.TextProperty).UpdateSource(); Everything works fine (the textbox shows its error, etc...) but ValidationSummary is not refreshed... Any idea?? Edit: After some tests I've realized it was because V...
zapico