Posts

Wordpress ignoring page template from drop down -

i struggling appears easy, page templates. have read plently posts on this, people seem forget put comment @ top of page , can't show in drop down menu on pages. can this, problem next stage. i have written basic template (custom-page.php): <?php /* template name: test template */ ?> <?php get_header(); ?> <h1>teams!</h1> <?php get_footer(); ?> it shows , can select on new page sidebar. when visit new page seems have defaulted archive page using content template include. thanks in advance. if put following in footer, should able grok further information how template being selected (and know might happening). <?php global $template; echo(basename($template)); ?> then template name in footer. it's possible (like @adomnom said) have slug conflict. there handful of other strange scenarios caused plugins, custom functions, or other factors well.

jquery - Ajax Live Search multiple response at a time -

according question, use deboucing make live search facebook facebook style ajax search but here case, when set timeout 300ms, first type query , wait 300ms ajax request triggered, when waiting server response query a, query b, , after 300ms, response query shows up, , response query b shows too, see 2 results flashing, how prevent this? (cancel first request or something?) depending on how many results return see 2 possible actions: don't make new request wait old 1 complete , filter new search value cancel first request , start one. the first method work when first request returns more items displayed.

hadoop - Interoperability of pig 0.9.0 with cdh3u1? -

softer version of cdh3 client interoperable apache hadoop server 0.20.xx? we have java app runs series of pig scripts (it injects variables in them, it's driver/client running them). need macro features of pig 0.9.0 cdh comes pig 0.8.1. following idea? we try working with: <dependency> <groupid>org.apache.hadoop</groupid> <artifactid>hadoop-core</artifactid> <version>0.20.2-cdh3u1</version> </dependency> with <dependency> <groupid>org.apache.pig</groupid> <artifactid>pig</artifactid> <version>0.9.0</version> </dependency> instead of <dependency> <groupid>org.apache.pig</groupid> <artifactid>pig</artifactid> <version>0.8.1-cdh3u1</version> </dependency>

exception - NotImplemented Attribute C# -

a simple question: why there isn't notimplementedattribute in c#? you can throw exception, think nice work obsoleteattribute -> warning using method. ok, have method attribute, , when implement have remove attribute hand, think safer using methods throw new notimplementedexception() inside...and wait them called. i remember reading obsolete hard coded compiler, maybe there spare room 1 :) this opinion, maybe wrong. it's see. thanks

Ruby: Mildly 'exotic' inheritance doesn't work? -

i factor bunch of common code subclasses superclass method. superclass method must refer nonexistent (in superclass) method defined in subclasses. can't work. this 1 try out of many multiple variations have tried: class superclass def chunk_of_code # <code...> nonexistant_superclass_method_defined_in_subclass params # <more code...> end end class subclass < superclass def nonexistant_superclass_method_defined_in_subclass params # whatever... end end subclass.new.chunk_of_code params this doesn't work. other variations don't work either. kind of coding possible in ruby (i thought was)? did kind of thing time working in smalltalk. any way achieve want? please avoid advising me use "mix-ins" or "modules," i'd just learn , use ruby's inheritance right now. *running latest version of ruby. thanks. edit: in rails app. superclass applicationcontroller. edit: he...

c# - MonoTouch connect to Azure ACS, Azure SQL / Azure WCF -

Image
i'm going make ios application , wondering on differences between development new language objective c cocoa or old language c# mono-touch the requirement of application should work azure , store/retrieve information store on local device frequently, content browsing , token login portal, deadline 2 month today , never develop iphone / ipad application previously. may know easier start , there resources mono ? while find it's great if use old programming language seem there're no such thing support monotouch azure development... thank reply. first of have asked lots of things in 1 post. first question answer subjective. objective c/cocoa native language ios development using monotouch, require depend on whatever provided monotouch. if not part of monotouch wouldn't able it. here can find lots of opinions other fellow users: monotouch & c# vs objective c iphone app i can give guidance on windows azure development mobile device. connecting differen...

javascript - Knockout.js: adding elements to observable-array -

i have problem loading element items observable-array - event. viewmodel = (function () { var items = ko.observablearray([]), removeitems = function (element) { items.remove(element); }, saveall = function () { return ko.tojs(items); }, additem = function (element) { items.push(element); return false; // no page-reload after button-klick }; return { items: items, // call additem dummy object (for testing) clicksave: additem(new customer(1, "tfsd", "tfsd")) }; })(); ( fiddle ) why additem function called, without clicking button? because of () @ end of function? additem = function (element) { items.push(element); return false; // no page-reload after button-click }; what can make event only? or problem somewhere else? use return { items: items, clicksave: additem }; ...