I need to save WPF FlowDocuments to SQL Server. What is the best format for doing that? String? Blob? Does it matter in a document less than 5K words or so?
Hi folks,
Since disable-output-escaping doesn't work on firefox (and isn't going to), whats the next best way of including raw markup in the output of an XSTL transform?
(Background: I've got raw HTML in a database that I want to wrap in XML to send to a browser to render. I've got control of both the XML and the stylesheet, but no control of the HTML, which may be badly formed (even for HTML!))
Thanks
So I have a random of strings and I need to parse them, let's take an example:
This string - DeleteMe please and some other text
So I want to find DDeleteMe please and some other text and remove it, because all I need is This string
Best Regards,
The XWiki FAQ gives an example for XWiki 1.0 syntax:
{graphviz:type=dot}digraph G {Hello->world}{graphviz}
My XWiki is properly set up to display this.
But I'm not able to translate this into XWiki 2.0 syntax. I tried this
{{graphviz type=dot}} ... {{/graphviz}}
and other variations, but the best I got was about "graphviz" not being a valid macro.
What's the correct syntax?
Hi guys,
I need to build a ruby daemon that will use the freeswitcher eventmachine library for freeswitch.
Since few days I as looking the web for the best solution to build a ruby daemon that will integrate my rails environment, specailly my active record models. I've take a look to the excellent Ryan Bates screencast (episodes 129 custom daemon) but I'm not sure that is still an actual solution.
Does anyone known a good way to do that ?
Thanks all for your help.
What's the best way for loading a dll from a dll ?
My problem is I can't load a dll on process_attach, and I cannot load the dll from the main program, because I don't control the main program source. And therefore I cannot call a non-dllmain function, too.
i wonder if one should create a helper function in a class as a static function or just have it declared as a procedural function?
i tend to think that a static helper function is the right way to go cause then i can see what kind of helper function it is eg. Database::connect(), File::create().
what is best practice?
I am using class.upload.php to handle an image upload from a form that submits employee details to a MySQL database. class.upload.php does EXACTLY what I want it to do, resize the image and rename it - what I am now trying to accomplish is to upload via Ajax after the user selects the file and then display it in the form while they continue entering details. How would this best be accomplished with jQuery?
I am confused about how best to design this algorithm. A ship has x pirates, where the age of the jth pirate is aj and the weight of the jth pirate is wj. I am thinking of a dynamic programming algorithm, which will find the oldest pirate whose weight is in between twenty-fifth and seventy-fifth percentile of all pirates. But I am clueless as to how to proceed.
I have an AST generated via ANTLR, and I need to convert it to a DLR-compatible one (Expression Trees). However, it would seem that i can't use tree pattern matchers for this as expression trees need their subtrees at instantiation (which i can't get). What solution would be best for me to use?
Hi all,
We have developed a multithreaded server that recieves data from multiple client and calls different WCF services.
There are many cases that two (or more) different clients call the server at the same and the server tries to call the remote WCF from two different threads simultaneously.
We have encountered some issues, especially when the remote WCF service is down.
Are we doing things correctly? is there a best practice for this scenario?
thanks,
Guy.
Our application fetches the correct database server from a pool of database servers. So each query is really 2 queries, and they look like this:
Fetch the correct DB server
Execute the query
We do this so we can take DB servers online and offline as necessary, as well as for load-balancing.
But the first query seems like it could be cached to memory, so it only actually queries the database every 5 or 10 minutes or so.
What's the best way to do this?
Thanks.
In our COM project, we need to choose between best string class implementation so that BSTR (used for COM interfaces) and elegant string class like CString provides many string manipulation APIs.
Are there any better way to handle the strings and string operations so that it can be BSTR complaints as well as we can have naive CString operations?
There are several good Javascript editors for Markdown / Textile (e.g.: http://attacklab.net/showdown/, the one I'm using right now), but all I need is a Javascript function that converts a string from Markdown / Textile - HTML and back.
What's the best way to do this? (Ideally it would be jQuery-friendly -- e.g., $("#editor").markdown_to_html())
Edit: Another way to put it is that I'm looking for a Javascript implementation of Rails' textilize() and markdown() text helpers
I have a tab delimited file where each record has a timestamp field in 12-hour format:
mm/dd/yyyy hh:mm:ss [AM|PM].
I need to quickly convert these fields to 24-hour time:
mm/dd/yyyy HH:mm:ss.
What would be the best way to do this? I'm running on a Windows platform, but I have access to sed, awk, perl, python, and tcl in addition to the usual Windows tools.
I'm developing application with GWT 2 and would like to add float panel that stick to the bottom of the page (like in facebook). What is the best way to make that kind of panel?
Hey guys Im having trouble with iAds in landscape mode This is part of my code:
banner = [[ADBannerView alloc]init] ;
banner.currentContentSizeIdentifier = ADBannerContentSizeIdentifier480x32;
[self.view addSubview:banner];
[banner release];
But is not working for me, it gives me error, gives me a SIGABRT error in the second line of the code. I am not having problems with the portrait mode... please help.
Best Regards
Carlos Vargas
I have a set of vertices(called A) and I want to find all the border vertices such that this border vertices set is an outline of the shape.
Many of the vertices in A are redundant because they are inside the shape, I want to get rid of these vertices.
My question is similar to http://stackoverflow.com/questions/477867/best-algorithm-to-find-the-edges-polygon-of-vertices but i need it to work for a non-convex polygon case.
What is the best crossbrowser way to make anchor without href (javascript-driven) behave like real anchor? The most obvious one is to use # as anchor but it makes page jump...
What is the best practice to set a background image centered and 100% (so that it fills the screen, but still retains the aspect ratio) in all browsers?
Hi,
I am programming an IE-Toolbar.
Now I have the problem that I want to save some
user specific and
application specific data
First I have tried to use IsolatedStorage but I am only getting a ComException.
Which is the recommended way to save some files when programming IE-Toolbars?
Thanks in advance for your advice!
Best regards
Stefan
Hi,
i was planning to use jquery autocomplete for a site and have implemented a test version. Im now using an ajax call to retrieve a new list of strings for every character input. The problem is that it gets rather slow, 1.5s before the new list is populated. What is the best way to make autocomplete fast? Im using cakephp and just doing a find and with a limit of 10 items.
Cheers
Bjorn
Possible Duplicate:
Which is the best algorithm to “Estimate and Visulize 2d skeleton using Opencv” from the drawn contour
Opencv functions or stepts for 2d skeleton estimation
Is it possible to create an AlertDialog, or custom Dialog wit an EditText box?
If not, how do I make an activity window floatable.
What I want to do is show a screen with some text, a small box for the user to enter a couple digits, and then a submit and cancel button, and am trying to find out the best way to do this.
consider that i have 100 perl modules in 12 directory . but looking into main perl script . it looks like 100 use p1 ; use p2 ; like this .. How originzw to best way to slove this issue