Posts

java - JSF and f:ajax for hiding/showing div -

i thinking of making hidable/showable menu on web application. before this, used php , ajax extensively purpose. however, since html element id regenerated in jsf framework found out method no longer feasible @ least in scope. i have read f:ajax tag in jsf , tried implement it. apparently no luck me. looks easy still not find out did wrong. i have prepared prototype test f-ajax tag functionality no luck. here code ` <h:body> <h:outputlabel> <h:outputtext value="click a" /> <f:ajax event="click" render="texta"/> </h:outputlabel> <h:outputlabel> <h:outputtext value="click b" /> <f:ajax event="click" render="textb"/> </h:outputlabel> <h:outputlabel> <h:outputtext value="click c" /> <f:ajax event="click" render="textc"/> </h:outputlabel> ...

MATLAB: Function that computes the coefficients of the polynomial that is formed by multiplying 2 other polynomials -

i need come matlab function computes coefficients of polynomial formed multiplying 2 other polynomials. i know need somehow use conv(a,b) or need create function somehow. please! is homework? anyway, want use conv , , solves problem. problem beyond that?

c# - Youtube video upload/download along with captions/ transcript files -

i aware of youtube api .net , this question . the problem facing want upload youtube video captions or more importantly transcript file , if download them well. know how in c# (silverlight) ? developers guide: data api protocol – captions for c# bit, it's writing bit of http.

java - which tool should be used in order to measure performance of a program unit? -

i need measure performance of program unit. using hibernate orm tool. want tool capable enough measure time taken per method invoked , excluding database loads??? please help this profiler does. visualvm free one, if want mroe detail timings , behaviour of jdbc queries suggest @ yourkit can anlyse queries in more depth.

testing - Passing custom Python objects to nosetests -

i attempting re-organize our test libraries automation , nose seems promising. question is, best strategy passing python objects nose tests? our tests organized in testlib bunch of modules exercise different types of request operations. this: testlib \-testmoda \-testmodb \-testmodc in cases test modules (i.e. testmoda) nothing test_something(), test_something2() functions while in cases have testmodb class in testmob test_anotherthing1(), test_anotherthing2() functions. cool thing nose finds both. most of test functions request factory stuff can share single connection our server farm. lot of test_something1(cnn), testmodb.test_anotherthing2(cnn), etc. currently don't use nose, instead have hodge-podge of homegrown driver scripts hard-coded lists of tests execute. each of driver scripts creates own connection object. maintaining scripts , connection minutia painful. i'd take free advantage of nose's beautiful discovery functionality, passing in connec...

Is duplicating data in SQL and Document store (like MongoDB) a legit idea or should be avoided? -

i have question. considering using data store type of objects (e.g. products data). criteria using document store if object has detail page, fast read of entire object necessary (example - product attributes, images, comments etc). criteria using sql displaying lists (e.g. n newest, popular etc). some objects meet both criteria. products example. normal practice store info used in rendering lists on index pages in sql database, , other data in document store? the main idea mongodb created denormalization , embedding. @ 1 of past projects i've done sql denormalization better performance, don't sql denormalization because many dublicated data( if have 1 many relation example). second step rewriting data access layer mongodb. , in mongodb difficult pages need load multiple documents i've created denormalized document(with embeded collections , plain data different documents) fit page content. no problem pages work fast, facebook ;). but here possible problem...

ios - iPhone: Click view behind transparent UIScrollView -

i have uiscrollview set have clear background. part of scrollview have content, part not (so shows other views behind it). able click through uiscrollview , mkmapview behind, transparent portion of uiscrollview. i have found code having real hard time understanding how working: - (void)touchesbegan:(nsset *)touches withevent:(uievent *)event { if (![self yourmethodthatdeterminesinterestingtouches:touches withevent:event]) [self.nextresponder touchesbegan:touches withevent:event]; } could me wrap mind around how forward touch event view behind view? can call - (void)touchesbegan:(nsset *)touches withevent:(uievent *)event uiviewcontroller? what did subclass uiscrollview , implement logic passes responsibility down views under it, if touch happens inside of transparent area. in our case transparent area defined contentoffset of 120 on y axis, meaning our content starts 120 points below start of uiscrollview, , code looks this: - (bool)pointinside:...