Hi!
I would like to dynamically create XPath expressions in an XSL determined by data in an XML file. (i.e. the XML data is "concatenated" to create an XPath expression).
Example of XML data:
<criteria>
<criterion>AAA</criterion>
<criterion>BBB</criterion>
<criterion>CCC</criterion>
</criteria>
Example of how I would lik...
In the past I've used a Singleton Pattern to load the connection string when the application starts via the global.asa file.
I have a project now where each user has a unique connection string to the database. I would like to load this connection string once. The issue is that the singleton pattern will not work for me since each use...
I have the following snippet of java code:
final Class<?> junitCoreClass = AccessController.doPrivileged(
new PrivilegedAction<URLClassLoader>() {
@Override
public URLClassLoader run() {
return new URLClassLoader(new URL[] { junitJarUrl });
}
}).loadClass("org.junit.runner.JUnitCore");
System.out.print...
Does anyone know how to achieve a dynamic multi-level page menu for Wordpress? I have found a couple scripts but none of them put the subpages directly under the parent page or some will show every subpage to the entire menu
Example:
page1 (selected)
–subpage1-1
–subpage1-2
page2
page3
This code comes close by inserting the subpages ...
I have two ordered lists next to each other.
When I take a node out of one list I want to insert it alphabetically into the other list. The catch is that I want to take just the one element out and place it back in the other list without refreshing the entire list.
The strange thing is that when I insert into the list on the right, it...
Could any experienced users of Dynamic Data comment on whether there are issues with it in:
Internet Explorer 6
Safari
Chrome
Opera
We are looking to use it on a public facing website and good old IE6 has many important users in government departments and large companies so it has to work there. The other browsers could also become a...
Is there an equivalent for the C# 4 'dynamic' keyword when using 'type safe VB.Net', i.e. with Option Strict On?
...
I've built a generic config system for an HttpModule that allows pluggable HTTP header inspectors. For reference, here is the basic layout of the code -- this should be enough to get a feel for what I'm doing:
public interface IHttpHeaderInspectingAuthenticatorFactory<T>
where T: HttpHeaderInspectingAuthenticatorConfigurationElemen...
There are several questions out there that ask the same question. However the answers they received I cannot understand, so here goes:
Similar questions:
http://stackoverflow.com/questions/1874277/dynamically-load-assembly-and-manually-force-path-to-get-referenced-assemblies ;
http://stackoverflow.com/questions/22012/loading-assemblies-...
I have a code chunk of html:
<div id="chunk-1" class="chunk">
<div class="chunkText">Text<div>
<button class="addChunk">Click Me</button>
</div>
<script>
$(".addChunk").click(function(){create_chunk(this.parentNode)})
function create_chunk(after_this){
$(after_this).after(chunk_html)
var i = 0
$("div.chunk...
I juste installed mysql on my ubuntu box (lycid lynx) and try to connect to mysql trough java.
Mysql is configured to allow only local connection. I can connect to mysql server with the mysql client locally and also i can with PHP. But from java no!
I get this error "Host '....' is not allowed to connect to Mysql server". The address ip...
I know the standard answer for a linker error about missing typeinfo usually also involves vtable and some virtual function that I forgot to actually define.
I'm fairly certain that's not the situation this time.
Here's the error:
UI.o: In function boost::shared_ptr<Graphics::Widgets::WidgetSet>::shared_ptr<Graphics::Resource::GroupBy...
Hello guys,
I'm using this function on my website to transform user input into acceptable URL:
function urlize($url) {
$search = array('/[^a-z0-9]/', '/--+/', '/^-+/', '/-+$/' );
$replace = array( '-', '-', '', '');
return preg_replace($search, $replace, utf2ascii($url));
}
function utf2ascii($string) {
$iso88591 = "\\xE0\\x...
Hey,
I got a europe map designed in flash (1 movieclip, 1 frame, really simple), which contains the map as drawing objects directly inside the scene and in addition some specific countries as clickable buttons. So far it's working fine. What I need now is to make all the other drawing objects clickable without having to edit and script ...
I am creating a WPF form. One of the requirements is that it have a sector-based layout so that a control can be explicitly placed in one of the sectors/cells.
I have created a tic-tac-toe example below to convey my problem:
There are two types and one base type:
public class XMoveViewModel : MoveViewModel
{
}
public class OMoveViewMo...
Is there any functionality in IDL that will allow it to evaluate a a string as code?
Or, failing that, is there a nice, dynamic way of including /KEYWORD in functions? For example, if I wanted to ask them for what type of map projection the user wants, is there a way to do it nicely, without large if/case statements for the /Projection_...
Yeah, it's a homework question, so givemetehkodezplsthx! :)
Anyway, here's what I need to do:
I need to have a class which will have among its attributes array of objects of another class. The proper way to do this in my opinion would be to use something like LinkedList, Vector or similar. Unfortunately, last time I did that, I got fire...
Hello all
I would like to know your opinions on how to handle this.
I need to create a link or advertisement that offers a phone app to be downloaded.
I need that users who are viewing the page with their blackberry receive the download when they click the button but everyone else who would be viewing the page would get a form which a...
Newbie question. Given the following html.
<div id="mycontainer1" class="container">
<input type="text" class="name"/>
<input type="text" class="age"/>
</div>
<div id="mycontainer2" class="container">
<input type="text" class="name"/>
<input type="text" class="age"/>
</div>
I'm trying to create a function where I can pass an element...
I am trying to create a Single Table Inheritance.
However, the Controller must be able to know which class to find or create. These are based on another class.
For example, ContactEvent with type = Letter needs to grab attributes from a corresponding Model called Letter.
Here's what I've tried to do and hit a snag, labelled below.
I...