Search update

60548 results
2

votes
2

answer

Update MySQL (using regexp?)

I would like to update values which look like 'someSubdomainInfo.mydomain.com' to 'mydomain.com' (the .com is just an example, I'd like to catch everything else - basically clean the subdomain info) Thought of using ^([a-z].*.)?([a-zA-Z0-9_-].[a-z]) as RegExp (missing domain that start with a digit,...
ranshe
13

votes
3

answer

android ArrayAdapter items update

I have ArrayAdapter with this items structure: And add this adapter so: mAdapter = new ArrayAdapter(this, R.layout.item, R.id.itemTextView, itemsText); All is fine but I want to update text in adapter's items. I found a solution mAdapter.notifyDataSetChanged(); but do not understand how to use it....
Leo
3

votes
1

answer

Drupal failed after update

I just updated Drupal core from 7.4 to 7.26. After running update.php site stopped working – both public and admin part. When I load it fatal error occurs: Fatal error: Call to undefined function _system_default_theme_features() in /[drupal_path]/includes/theme.inc on line 1422 and when I reload i...
mszostek
7

votes
4

answer

Composer auto self-update

It is frequently that every 30 days I will get this warning message: Warning: This development build of composer is over 30 days old. It is recommended to update it by running 'composer.phar self-update' to get the latest version. Then, I have to repeatedly do the update every 30 days. Is there anyw...
user1995781
3

votes
1

answer

SVN post-update hook

I searched on the web for info about how to implement a post-update hook in my local machine but i didnt found anything! In particular I would like to fire that hook after I update my svn copy from PHPStorm 3.0. I wrote a phing build.xml that will handle a task that i want to be performed after the...
oloN3rd
18

votes
3

answer

Android - Update a contact

I'm trying to update a contact of my phone book directly from my app. I'm able to add and delete the contacts but the update just does nothing! After the insert or when I grab the contacts, I collect the CONTACT_ID (Aka _ID). Here is my code for the update: public void update(Relation r) { Log.e('',...
Manitoba
3

votes
3

answer

Google tasks update error

I am attempting to update a task with the following code: function updtsk(task,id) { var url = 'https://www.googleapis.com/tasks/v1/lists/@default/tasks/'+id; var req = { 'method': 'PUT', 'headers': { 'Content-type': 'application/json' }, 'body': JSON.stringify(task) }; var addDone = function(resp,...
jbills
2

votes
1

answer

Meteor update timestamp

I've successfully implemented a 'created' time stamp using the UMFAQ (pronounced um-fack), but I can't get the 'updated' timestamp working (which the UMFAQ alludes to but does not provide a code sample for). Here's my code: Posts.deny({ insert: function (userId, doc) { doc.created = new Date(); // t...
kevinharvey
4

votes
2

answer

activerecord find and update

Is there a method find_and_update method on ActiveRecord::Base that will basically find a record by it's id and update a given key? This will avoid having to query and then update resulting in 2 queries instead of 1. Thanks
0xSina
1

votes
1

answer

Django signal post_save update

I have an Article model that has a OnetoOne relationship with a Catalog model. My current functionality has the Article model, on post_save, create a Catalog model with the same name. I would like to do another bit of functionality where the Article FK goes from being null to updating to the now av...
byrdr
3

votes
2

answer

sqlalchemy concurrency update issue

I have a table, jobs, with fields id, rank, and datetime started in a MySQL InnoDB database. Each time a process gets a job, it 'checks out' that job be marking it started, so that no other process will work on it. I want a single process with a session to be able to: Find the job with the highest...
lollercoaster
3

votes
1

answer

Update UADetector resources

UADetector last version is from Nov 2014, it's uses a XML file uas.xml which contains all the User-Agents known to him. The latest obviously doesn't recognize Edge browser, and categorize it as Chrome. The format of uas.xml for example - 2 0 SeaMonkey seamonkey.png /list-of-ua/browser-detail?browse...
Karnimrod
2

votes
3

answer

JQuery form update listener

I want to trigger a javascript function when one of the elements in a specific form has been changed. Is this possible using jquery? Does anybody has an example how to do this?
Fortega
2

votes
1

answer

Doctrine 2 flush update

I want to update an entity with Doctrine. To remove or add, I have no problems, just to update. To do this I use the following code: $type = $app['em']->getRepository('\Model\Type')->find($id); $type->setCode('C2'); $app['em']->persist($type); $app['em']->flush(); echo $type->getCode(); // I get 'C...
Melodies
7

votes
1

answer

Dart pub update failed

I am getting the following error when trying to do a pub update to get the web_ui package installed. Dart Editor version : 0.2.10_r16761 Dart SDK version : 0.2.10.1_r16761 The 'Help > About > Check for Update...' also gives me 'Unable to get latest revision'. Is it a proxy problem maybe? Is there a...
Geert
2

votes
1

answer

Meteor .versions file update

I am developing a small meteor package, and I know that, to be consistent with the builds, meteor will create a .versions file in my package when I publish it. That's fine, and I understand that, but, as the .versions should go in my version control (git) and I would like to commit the release befor...
Oliver
2

votes
1

answer

Draw and update PictureBox

I created a simple example,to draw on image which assigned to a Picturebox. I handle the MouseDown and MouseUp events, getting the current mouse position,and drawing a line in the end of a MouseUp event. private void Form1_Load(object sender, EventArgs e) { Bitmap image = new Bitmap('myImage.png');...
Slashy
2

votes
5

answer

Update composer.phar on Openshift

I have an application written in PHP using Fuelphp 1.6.3 and want to deploy it on Openshift As the framework required composer, when I access my app at http://audit-manhthang.rhcloud.com/public/, it showed the error Composer is not installed. Please run 'php composer.phar update' in the root to ins...
Thang Nguyen
2

votes
1

answer

self.scene.view.paused = YES within update

I am making a game in which when 2 objects (object A and B) collide, the game gets over. Object A's position changes each time update is called. Object B's position is the same. The code is: [self enumerateChildNodesWithName:@'objA' usingBlock:^(SKNode *node, BOOL *stop) { if ([objB intersectsNode:n...
user3529575
2

votes
2

answer

Error creating update procedure

I am currently working on an update procedure. I have checked other stack posts, and Youtube, but I can't seem to run the code. Here's one code that I have found and tried to make it work: UPDATE db_owner SET Street = ISNULL(@Street, street), WHERE Street = @Street I get these errors: Invalid obje...
Trush Patel
1

votes
5

answer

Variable will not update

Made my very first program for school using a basic calculator program but added a variable, not sure if it should be global or local. It calculates fine, but does not return 'tribble' as a new integer. tribble = 1 def buy(): x=int(raw_input('How many?')) return (tribble + x); def sell(): x=...
Kyle Adcock
2

votes
1

answer

$.fn.yiiListView.update doesn't update ClistView

I'm trying to update my ClistView in Yii 1.1.15, using $.fn.yiiListView.update. I do get it to echo the proper results back, but it doesn't update the list. in my JS var ajaxRequest = 'lat='+position.coords.latitude+'&lng='+position.coords.longitude; $.fn.yiiListView.update('store-list', {data:ajaxR...
user2636556
10

votes
1

answer

composer update “process killed”

I tried to execute: composer.phar update And received: Fatal error: Allowed memory size of 94371840 bytes exhausted (tried to allocate 71 bytes) in phar:///home/xxxxxxx/bin/composer.phar/src/Composer/DependencyResolver/RuleSetGenerator.php on line 123 The xxxxxxx is the user. And then I tried to exe...
xpto
1

votes
5

answer

update problem in sql

i have an update statement,which gives an error 'Failed to convert parameter value from a String[] to a String.' SqlCommand comm1 = new SqlCommand('UPDATE count set [email protected] WHERE Id IN ( ' + itemIDs + ')', connection); comm1.Parameters.Add('@ETR', System.Data.SqlDbType.VarChar, 50); comm1.Parameter...
Mishigen
5

votes
2

answer

Can't update eclipse

Trying to update existing eclipse indtallation ...following error. Can someone help ? Why no repository ? An error occurred while collecting items to be installed session context was:(profile=epp.package.jee, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=). No reposit...
Jigar Shah
13

votes
2

answer

IntelliJ: Automatically update resources

I am using IntelliJ IDEA to develop AngularJS app with Java back-end. HTML/JS is server from Tomcat. Whenever I changed HTML/JS file, I hit CMD+F10 and select Update resources, then refresh my browser and everything is OK. I'd like to ask if there is a way that IntelliJ would do this automatically f...
Xorty
6

votes
2

answer

Update Height with ViewFlipper

I want to be able to update height on every child of the ViewFlipper. Is this possible as I could never find any API documentation for ViewFlipper and updating the height or width.
JamesD31
2

votes
3

answer

Hibernate and Batch Update

Although I can see a lot of discussions around Hibernate and Batch Update, here is my specific scenario I hope to get comments from you all experts. I am iterating through a list of Document objects and for each of the document, I need to update a DOCUMENT_METADATA table with a property from Docume...
phewataal
3

votes
4

answer

MySQL Update Query issue

I know it has something to do with the syntax, but I'm looking for a way to do the following: UPDATE modules SET ServerID = boards.ServerID FROM boards,modules WHERE modules.ID = boards.ID this doesnt work. I'm using MySQL
snoofkin
2

votes
1

answer

Update and Filter listpicker

I have two list pickers with same databinding(from XML), When first listpicker have selection changed it should filter data of second listpicker and hide item which selected in first listpicker, same as second listpicker. 2 listpicker XAML... DataBinding with XML code public Customize() { Initializ...
Shahzeb Khowaja
3

votes
2

answer

SQL Server query update

I have 2 tables. I need to update data the data in tableB, populate it with data from tableA. But the problem is the design (note: I can't change the design because its a ready made system. I'll just have to deal with the fail). Lets say tableA (2 columns) the data source is structured like so: ID |...
nambla
5

votes
3

answer

MySQL Update Error 1093

This works in a table where doc_id is the primary key: select count(*)+1 from doctor where exp > (select exp from doctor where doc_id='001'); +------------+ | count(*)+1 | +------------+ | 2 | +------------+ But when I'm using the same select query to set a field in the table, it reports t...
2

votes
4

answer

Python: Update list parameters

For string we can have msg = 'successfully returned with msg: %s' msg %= 'Elegant'; Can we do the same for list, For instance , cmd = [ 'Message %s', 'Param %s' ] cmd %= (msg, param)
Dipak Ingole
2

votes
3

answer

chef automatically update configuration

I use chef-server and chef-client configuration. There is a one recipe that I want to rerun on every hosts that contains it on every change in hosts configuration (new hosts added by bootstrapping or the old one was deleted), there is no changes in recipe itself. By now, I simply run chef-client e...
com
2

votes
5

answer

Make seconds update automatically?

I'm trying to just display the date and time on this website, and right now you have to refresh the page in order for it (the seconds, etc.) to update. How do I make the seconds update automatically? JavaScript Testbed Javascript will find out the date and the browser. var currentTime = new Date();...
ccaley
2

votes
1

answer

Multiple server update architecture

i'm using AWS for my application. current configuration is: Load balancer --> Multiple EC2 instances (auto scaled) --> all mount a NFS drive with SVN sync Every time we want to update the application we login to the NFS server (another EC2 instance), and execute svn update to the application folder....
Danny Valariola
4

votes
2

answer

Update in PostgreSQL

Platform PostgreSQL 9.2 I am very new to PostgreSQL. I have this scenario, which I have been able to address in MSSQL, but the same approach does not work with Postgres. I have this table CREATE TABLE TEST( ID INT, Value1 INT, Value2 INT ); INSERT INTO TEST VALUES (1,10,0), (2,20,0), (3,50,0), (4,10...
Raj
1

votes
2

answer

Using `git submodule update`

Let's say I have project_a (git repo), which contains files & another project_b (git repo). project_a --> files --> project_b As the git-scm book demonstrates, I can run: cd project_a git submodule init git submodule update // clones project_b repo specified in '.gitsubmodules' to populate the initi...
Kevin Meredith
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
1

votes
3

answer

Update Matrix Haskell

I will represent matrices in a project by a list of lists [[a]] Is this a good idea or should I better use Arrays? How do I change the element on place with index (i,j)
Jeremy Knees