I am trying to use xmldiffpatch when comparing two Xmls(one from a stream, the other from a file) and writing the diff patch to a stream.
The first method is to write my xml to a memory stream.
The second method loads an xml from a file and creates a stream for the patched file to be written into. The third method actually compares the two files…
I have a WCF service setup to control a USB fingerprint reader from our .Net applications. This works fine and I can ask it to enroll users and so on.
The reader allows identification (it tells you that a particular user has presented their finger, as opposed to asking it to verify that a particular user's finger is present), but the device must…
How are applications providing import / export (or backups) of data in SaaS based multi-tenancy applications, particularly single database designs?
Imports:
Keeping things simple I think basic imports are useful, ie CSV to a spec (or a way of providing a mapping between CSV columns and fields in the database.
Exports:
In single database…
Im not sure why, but my UITableView, which isnt anything fancy, is showing repeating rows when it shouldnt be.
It seems that the rows that get added when the user scrolls (i.e. the rows that are off the screen to start with) are getting the data for the wrong row index. Its almost like when a new cell is de-queued, it's using a cell that…
I have a large graph that I am generating in matplotlib. I'd like to add a number of icons to this graph at certain (x,y) coordinates. I am wondering if there is any way to do that in matplotlib
Thank you
I was just curious what coding standards people followed.
I for one use the following:
Brackets ALWAYS go on the next line. For instance:
int main()
{
//Blah...
}
I never use code folding. (Yes my IDE's do support it (Xcode and Eclipse).
Put related functions/methods single-spaced, otherwise double space. …
I have just found this page indicating the support for Silverlight mouse cursors:
http://msdn.microsoft.com/en-us/library/system.windows.input.cursor(VS.95).aspx
Is that it!!! :-| what are they thinking, at least there is stylish looking Eraser!
Is there aany other way to use custom cursors? How efficient/usable would it be to hide…
Like the title says, I want to parse XML in my iPhone application, but there is no NSXMLParserDelegate protocol like there is in the System Foundation framework.
Can I just add a reference to the /System/Library/Frameworks/Foundation.framework in my iPhone application?
What kind of hashing algorithm used to generate 12 character length alphanumeric?
for example stackoverflow use 2 keys to store cookies
t=IhweorwSw6K7
s=............ (#intentionally replace with . because its a session cookies)
How does that hashing algorithm looks like?
I'm playing around with get_iplayer (fantastic) it's running every few hours to grab any new episodes of whatever....
After it has finished grabbing anything new i'd like to change the emblem of ~/Videos to add a plus or star (nautilus emblem preferably)
Do i go about this via nautilus?
Do i need to change something in gnome-config?…
I need to import a zipped csv into a mongo collection, but there is a catch - every record contains a timestamp in Pacific Time, which must be converted to the local time corresponding to the (longitude,latitude) pair found in the same record.
The code looks like so:
def read_csv_zip(path, timezones):
with ZipFile(path) as z,…
I have a JApplet (MainClass extends JApplet), a JPanel (ChartWindow extends JPanel) and a Grafico class.
The problem is that the Grafico class instance has 2 JPanel that should show 2 images (1 for each panel) but the images are shown and after a little while they disappears: instead of them i get a gray background (like an…
What is the correct way to use socket_select within PHP to send and receive data?
I have a connection to the server that allows for both TCP & UDP packet connections, I am utilizing both. Within these connections I'm both sending and receiving packets on the same port, but the TCP packet will be sent on one port (29999)…
What's the maximum length of an HTTP GET request? Is there a response error defined that the server can/should return if it receives a GET request exceeds this length?
Hi,
I have just finished converted a vb.net app to c# and one of the lines is to get @ReturnValue from the parameter.
I ended up having to CAST a lot of things..
Is there not a easier way
here is what i have
int rc =…
I am trying to load a file (http://domain.com/v2/inc/review.php) from a subdomain (http://resort.domain.com) using jquery. Although I use the full location it refuses to load.
Does anyone know how to get it to work?
…
In Python 2.x, using backticks to get decimal string from int object is Horrible?
Because backticks are repr(), not str()? I have noticed that when I answering this question.
In Python source, they have same…
I have seen a few examples of how to create RSS feeds using ASP.NET MVC, either by creating an Action or through an HttpHandler.
I need to authenticate feeds and am wondering how this is to be done (and…
I have recently been getting my feet wet in MongoDB using Mongoid w/ Rails 3, but I'm now interested in learning the low level MongoDB features using only the Ruby driver, and trying some map/reduce that…
I have an msi file that I am trying to install in a place other than C:\Program Files.
The directory table shows that ProgramFilesFolder is used as the default install directory. From reading this blog…
I'm trying to draw a circle in WP7 Silverlight using EllipseGeometry instead of Ellipse. The sample XAML in MSDN does not display anything on the canvas in Visual Studio. If I run the app, it does…
I want to save a user's IP address to my database just in case any legal issues come up and we need to track down who performed what action. Since I highly doubt I will ever actually need to use…
I have a string like this:
<![CDATA[<ClinicalDocument>rest of CCD here</ClinicalDocument>]]>
I'd like to replace the escape sequences with their…