Skip to main content

Home/ HealthcareMetadata/ Group items tagged codes

Rss Feed Group items tagged

Malcolm McRoberts

Vermongo · thiloplanz/v7files Wiki · GitHub - 0 views

  • Placing a document under version control is very unintrusive. Vermongo only adds a version number property (an int32 called _version) to the document. It does not touch any other fields. In particular, it also does not place any requirements on the contents of the _id field. Older revisions are stored in a separate collection that shadows the original collection. They are MongoDB documents themselves, and can be queried.
  • When creating, updating, or deleting documents, you just have to follow the Vermongo protocol outlined here. There will be (at least) a Java library to facilitate this. The only major downside is that documents have to be updated one-by-one (no bulk updates possible), and that there is some overhead in retrieving and copying the old version. Query operations can just proceed as normal.
  • After inserting into collection 'foo' a document { a=>"x"}, updating it to { a: "y"}, then to { a: "z" }, and finally deleting it, the shadow collection will contain the following (the original collection will not contain the document anymore, as it has been deleted): > db.foo.vermongo.find() { "_id" : { "_id" : ObjectId("4c78da..."), "_version" : 1 }, "a" : "x", "_version" : 1 } { "_id" : { "_id" : ObjectId("4c78da..."), "_version" : 2 }, "a" : "y", "_version" : 2 } { "_id" : { "_id" : ObjectId("4c78da..."), "_version" : 3 }, "a" : "z", "_version" : 3 } { "_id" : { "_id" : ObjectId("4c78da..."), "_version" : 4 }, "_version" : "deleted:4" }
Malcolm McRoberts

Getting a diff of two JSON strings using Java code - Stack Overflow - 0 views

  • I had the exact same problem and ended up writing my own library: https://github.com/algesten/jsondiff It does both diffing/patching. Diffs are JSON-objects themselves and have a simple syntax for object merge/replace and array insert/replace. Example: original { a: { b: 42 } } patch { "~a" { c: 43 } } The ~ indicates an object merge. result { a: { b: 42, c: 43 } }
Malcolm McRoberts

design - Best Practice for CouchDB Document Versioning - Stack Overflow - 0 views

  • It's more typical to keep older versions of your document inside your current revision (either as JSON or, often, as an attachment). For the JSON case; { "_id":"foo", "_rev":"3-fsfsfsdf", "foo":"current value of foo", "history": { "2": { "foo":"previous version of foo" }, "1": { "foo":"initial version of foo" } } }
  • t's often simpler to push the full old version of the document into an attachment instead. This pattern is common enough that CouchDB ships with a library, jquery.couch.js, that implements it (in the saveDoc(doc) function).
Malcolm McRoberts

This is Stuff: JavaScript Testing with JSTestDriver - 0 views

  • Js-test-driver is an open source JavaScript unit tests runner written in Java. The project was started at Google and is under active development. It is available under Apache License 2.0 license
  • s-test-driver is able to run from command line and reports results to the standard output. As a result, it is possible to fully automate JavaScript tests and run them on a continuous integration server.
  • s-test-driver is able to run from command line and reports results to the standard output. As a result, it is possible to fully automate JavaScript tests and run them on a continuous integration server.
  • ...8 more annotations...
  • s-test-driver is able to run from command line and reports results to the standard output. As a result, it is possible to fully automate JavaScript tests and run them on a continuous integration server
  • Continuous Integration and MavenIntegration with Jenkins continuous integration server (previously known as Hudson) was described by Christian Johansen on his blog.
  • Continuous Integration and MavenIntegration with Jenkins continuous integration server (previously known as Hudson) was described by Christian Johansen on his blog.
  • Continuous Integration and MavenIntegration with Jenkins continuous integration server (previously known as Hudson) was described by Christian Johansen on his blog.
  • Maven integration can be achieved with jstd-maven-plugin. The plugin assumes that the server with captured browsers is already running somewhere. It is not able to start the server by itself.
  • Maven integration can be achieved with jstd-maven-plugin. The plugin assumes that the server with captured browsers is already running somewhere. It is not able to start the server by itself.
  • Maven integration can be achieved with jstd-maven-plugin. The plugin assumes that the server with captured browsers is already running somewhere. It is not able to start the server by itself.
  • Maven integration can be achieved with jstd-maven-plugin. The plugin assumes that the server with captured browsers is already running somewhere. It is not able to start the server by itself.
Malcolm McRoberts

optimization - Schema design for privacy settings in MongoDB - Database Administrators ... - 0 views

  • { _id: ..., public: true, groups: ['group1', 'group2',...], users: ['user1','user2',...], } You could now query for all documents visible to user X if you have a list of groups user X belongs to by querying: db.documents.find( { $or : [ { public : true }, { users : X }, { groups : { $in : [list-of-X's-groups] } } ] } )
Malcolm McRoberts

LearnBoost/expect.js · GitHub - 0 views

  • Code Issues 56 Pull Requests 18 Pulse Graphs Network HTTPS clone URL Subversion checkout URL You can clone with HTTPS or Subversion. Clone in Desktop Download ZIP Minimalistic BDD-style assertions for Node.JS and the browser.
Malcolm McRoberts

javascript - Event listeners & js-test-driver? - Stack Overflow - 0 views

  • You can use jQuery's load() function to load the HTML page you want to test. In your JSTestDriver test function: $('html').load('pageToLoad.html', function() { // load was performed - run your asserts here now }); However, since this uses a callback function, you might have to use an Async Test Case.
Malcolm McRoberts

Physician Quality Reporting System - Centers for Medicare & Medicaid Services - 0 views

  • rting System  >  Physician Quality Reporting System Physician Quality Reporting System Spotlight How To Get Started CMS Sponsored Calls Statute Regulations Program Instructions ICD-10 Section Measures Codes Registry Reporting Electronic Health Record Reporting CMS-Certified Survey Vendor Qualified Clinical Data Registry Reporting Group Practice Reporting Option GPRO Web Interface Maintenance of Certification Program Incentive Analysis and Payment Payment Adjustment Information Educational Resources Help Desk Support 2011 Physician Quality Reporting System 2012 Physician Quality Reporting System 2013 Physician Quality Reporting System Physician Quality Reporting System Physician Quality Reporting System (Physician Quality Reporting or PQRS) formerly known as the Physician Quality Reporting Initiative (PQRI)
Malcolm McRoberts

jsonengine - Simple and ultra-scalable JSON storage on Google App Engine. No server-sid... - 0 views

  • Supports Google account and OpenID authentication and access control on each JSON document. Provides admin console for setting the access control.
Malcolm McRoberts

Sikuli Script - Home - 0 views

  • Why Sikuli? Sikuli automates anything you see on the screen. It uses image recognition to identify and control GUI components. It is useful when there is no easy access to a GUI's internal or source code.
  • Why Sikuli? Sikuli automates anything you see on the screen. It uses image recognition to identify and control GUI components. It is useful when there is no easy access to a GUI's internal or source code.
Malcolm McRoberts

My Library - 0 views

  • I was having the same issue recently with IE10, added a timeout and got the result I wanted, the iFrame printed out instead of the parent page: <script type="text/javascript"> function selfPrint(){ self.focus(); self.print(); } setTimeout('selfPrint()',2000); </script> share|improve this answer answered Jan 23 at 23:14 James Moberg 30927 the timeout doesn't even have to be that long. – gawpertron Jan 24 at 14:08 1   This solved my problem too, but can someone explain why it works? – Todd Gibson Feb 7 at 18:19
  • Print iframe in IE
Malcolm McRoberts

Implementing Row-Level Security with User Filters at the Active Directory Group Level |... - 0 views

  • Right-click in the Data window and then select Create Calculated Field. Name the field, use the following formula but replace <group name> with your user group name, and then click OK : ISMEMBEROF('[<group name>]')
Malcolm McRoberts

General ledger - Wikipedia, the free encyclopedia - 0 views

  • A general ledger contains user-defined account codes and related dimensional codes for recording transformed different types of vouchers including on-balance-sheet, off-balance-sheet, post-balance sheet, financial and non-financial natures.
Malcolm McRoberts

java - Do you need JPA when using MongoDB? - Stack Overflow - 0 views

  • There is however Morphia, an Object Document Mapper for MongoDB + Java which closely emulates the JPA model but using MongoDB appropriate semantics
  • DataNucleus already supports MongoDB, for JPA and JDO, the standardised APIs in Java.
  • clipseLink is planning support for MongoDB from JPA.
Malcolm McRoberts

The MongoDB NoSQL Database Blog, The AGPL - 0 views

  • To say this another way: if you modify the core database source code, the goal is that you have to contribute those modifications back to the community.
Malcolm McRoberts

Home · thiloplanz/v7files Wiki · GitHub - 0 views

  • Installation There has not been a release build yet. You will have to compile v7files from its source code, using Maven.
Malcolm McRoberts

Google Groups - 0 views

  • There are several common strategies for document versioning. The strategy you select will depend on the trade-offs you want to make. Please note that MongoDB does not have any support for triggers. So a few of these methods will require that you be able to do multiple writes.
  • === Strategy 1: embed history === In theory, you can embed the history of a document inside of the document itself. This can even be done atomically.
  • === Strategy 2: write history to separate collection ===
  • ...2 more annotations...
  • ----- Both strategies can be enhanced by storing only the diffs.
  • Embedding:  + atomic change (especially with findAndModify)  - can result in large documents, may break the 16MB limit  - probably have to enhance code to avoid returning full hist when not necessary Separate collection:  + easier to write queries  - not atomic, needs two operations and Mongo doesn't have transactions  - more storage space (extra indexes on original docs) Hopefully that gets you working in the right direction.
Malcolm McRoberts

Using Sikuli to test legacy Flash | Technical Testing - Hints, walkthroughs and how-to'... - 0 views

  • With loads of legacy Flash/Flex code where test automation support is limited or in most cases even non-existing there is only so much that can be done in forms of automation.
  • In short, unless you want to read it from Project Sikuli. Sikuli can match a predefined image to a section of the screen that is VERY similar to predefined image, ‘best fit’. So for example if you take a small screenshot of an object in you Flash implementation and save it as an image Sikuli can then be used to interact with this object, clicking on it, dragging it, checking if it can find it on the page asf..
1 - 20 of 33 Next ›
Showing 20 items per page