templates

WPF Templates error - "Provide value on 'System.Windows.Baml2006.TypeConverterMarkupExtension' threw an exception."

I've just started experimenting with WPF templates vs. styles and I'm not sure what I'm doing wrong. The goal below is to alternate the colors of the options in the menu. The code works fine with just the , but when I copy and paste/rename it for the second segment of "MenuChoiceOdd" I get the following error: > Provide value on 'Syst...

What is the JQuery equivalent of YUI buttons?

http://developer.yahoo.com/yui/button More specifically, I want radio buttons. that can be checked/unchecked. ...

Data contained in an array/json, want to inject into page via DOM, does jQ have templates?

Say I have an array, that contains data that I want to display in a html table. (sort of how gmail has all the data in js objects) I have this data in an array so I can do ajax type operations like updating/deleting/sorting of the data. Does jQuery have templates where I can create a template for a given row, and then just loop through...

GAE Django Table Records Pagination?

Anyone have sugestion or example on how displaying Google Datastore records table with pagination on Google App Engine django template? Something like Gmail pagination. ...

How to make a new eclipse project template?

I am using a kind of framework where every time I make a new java project, I have to arrange the files in the appropriate packages and reference the appropriate external jar libraries. So now I am asking on how to make a new project template like in the New Project dialog under a new folder. ...

IPhone compilation of ported code problems: calling a static templated function that's inside a templated class == fail

template<typename T> struct AClass { public: template<typename T0> static void AFunc() {} }; template<typename T> void ATestFunc() { AClass<T>::AFunc<int>(); } this works on other platforms, but not on the iPhone I get an error " expected primary-expression before 'int' " on the line where I call the function. it ...

Ad Rotator - to download templates.

Hi, I have a page from which user can download import templates. The proposed design is...three out of nine templates will be displayed to the user at a time... and user can click next/previous arrows to move to next/previous templates. And when the user click on one template, that particular template should get downloaded. Can I use...

implement rotating downloadable templates in asp.net

Hi, Look at : http://in.yahoo.com... In this you can see a rotating images(along with text). And on click of this image...a server side code will get execute. Can anybody tell me how can I implement the same in asp.net 2.0 Thanks in advance! ...

Template mutual dependence

Hello, this code: template <class tB> struct A{ typedef float atype; typedef typename tB::btype typeB; }; template <class tA> struct B{ typedef float btype; typedef typename tA::atype typeA; }; struct MyB; struct MyA: public A<MyB>{}; struct MyB: public B<MyA>{}; int main(int argc, char *argv[]) { } does not compile because ...

Using typedefs from a template class in a template (non-member) function

The following fails to compile (with gcc 4.2.1 on Linux, anyway): template< typename T > class Foo { public: typedef int FooType; }; void ordinary() { Foo< int >::FooType bar = 0; } template< typename T > void templated() { Foo< T >::FooType bar = T( 0 ); } int main( int argc, char **argv ) { return 0; } The problem is ...

How can I make gcc understand this template syntax?

I'm trying to use a delegate library in gcc http://www.codeproject.com/KB/cpp/ImpossiblyFastCppDelegate.aspx but the "preferred syntax" is not recognized by gcc 4.3. I.e. howto make compiler understand the template < RET_TYPE (ARG1, ARG2) > syntax instead of template ?? TIA /Rob ...

NSString or NSMutableString category for templating

Is anyone aware of a category on NSString or NSMutableString that allows for templating? I'd like to create a template and use tags for variables, then "apply" a KVC-compliant object against the string to have the variables replaced. Or another way of asking... How is templating currently done in the iPhone / Objective-C universe? Is ...

Drupal: Template Files, Modules and Content Types for Advanced Theme

Intro I am in the process of trying to convert my first HTML/CSS design into a theme for Drupal. I have used ModX for quite a few designs and appreciate the ability to create different page templates and custom variables to be assigned to those templates. However I seem to be having some issues making the transition. The site I am work...

Magento layout without category image

hi, i want to remove a category image from a content section and let the subcategorys be displayed with their category images in a small: http://magento.hamburg-eyewear.de/index.php/eyeglasses.html the top category should be removed and the two subcategory underneath should be small images. how can i fo that? thank & regards. ...

if an object property is another object, how do i access that object-property's property or method in smarty?

class A { public $property1; public $objB; public __construct(){ $this->property1 = 'test'; $this->objB = new B(); } } class B { public $title; public __construct(){ $this->title = 'title1'; } } so now i do this in the .php file $a = new A(); in my .tpl i want to display $a->objB->title how do i do that...

C++0x atomic implementation in c++98 question about __sync_synchronize()

I have written the followin atomic template with a view to mimicing the atomic operations which will be available in the upcoming c++0x standard. However, I am not sure that the __sync_synchronize() call I have around the returning of the underlying value are necessary. From my understanding, __sync_synchronize() is a full memory barr...

LostFocus Binding doesn't work on template

I have a TabControl that is data bound to a list. (Two data items in the list) The TabControl has a DataTemplate which contains two TextBox controls bound to two string properties on my data class. If I type some text on Textbox1 on the first tab and then click onto Tab2, no update is made to the data source and the change is lost. Thi...

Uses of a C++ Arithmetic Promotion Header

I've been playing around with a set of templates for determining the correct promotion type given two primitive types in C++. The idea is that if you define a custom numeric template, you could use these to determine the return type of, say, the operator+ function based on the class passed to the templates. For example: // Custom nume...

One template specialization for multiple classes

Let's assume we have a template function "foo": template<class T> void foo(T arg) { ... } I can make specialization for some particular type, e.g. template<> void foo(int arg) { ... } If I wanted to use the same specialization for all builtin numeric types (int, float, double etc.) I would write those lines many times. I know that ...

Is using macros to abbreviate long winded boost template names a bad practice?

I am tired of writing shared_ptr<>, it's lengthening the code lines tremendously. Any reason not to do this? ...