Posts

codeigniter - Using Code Igniter active record in Wordpress -

need move code code igniter wordpress. heavily using codeigniter's db classes handle database. use them this, instead of translating wp's wpdb. is there way of using code igniter active record/db classes , keep nice ci db usage in wordpress? thanks if using wordpress 3.3 , above, can make use of following library wordpressigniter usually, it's not straight forward think, because both of them have own code structure. many have tried , successful. depends on features want use , depth. following links may come handy you: so - ci wodrepress integration http://www.marketingadept.com/blog/integrating-codeigniter-and-wordpress/

Bamboo plan branching with different JDK version -

i'm working on bamboo, in plan configuration there task build maven project (maven 3.x configuration). when configuring plan branching there way change build jdk version specific branch? sadly, not possible of now. (see https://answers.atlassian.com/questions/67887/run-branchplan-with-different-build-configurations ) no, it's not possible. branches inherit build configuration master, there few things can modified or overridden. cannot create new jobs or tasks in branches. this shame imagine not uncommon use bamboo various versions of software might have build different jdks. simple (but unsatisfactory) workaround clone build plan , modify tasks accordingly :(

Quick help on Uncaught SyntaxError: Unexpected token ILLEGAL javascript Function -

i have following piece of code, <script type="text/javascript"> $(document).ready(function(){ $(".slidingdiv_rm").hide(); $(".show_hide_rm").show(); $('.show_hide_rm).click(function(){ $(".slidingdiv_rm").slidetoggle(); }); }); </script> however don't understand why i'm having following error: uncaught syntaxerror: unexpected token illegal index.php:222 line 222 $('.show_hide_rm).click(function(){ i'll appreciate help, thank much! you forgot closing quotes ' $('.show_hide_rm').click(function(){...

go - Undefined Error in Golang -

i have following structure: /*gotime.go*/ package gotime type struct { dnow int ynow int mnow time.month } and there function like: /*gotime.go*/ func (n now) daynow() int { n.dnow = time.now().day() return n.dnow } i'm getting following error when want call package: /*main.go*/ package main import ( "fmt" "./gotime" ) blah := fmt.println(blah.daynow()) i errors: # command-line-arguments .\main.go:5: imported , not used: "_/c_/users/ali/desktop/test/gotime" .\main.go:10: undefined: you can @ of package on github: link package how can solve problem? since now struct, need struct composite literal create value of type. also since package, need qualified name : blan := gotime.now{} also since modifying it, should / need use pointer receiver: func (n *now) daynow() int { n.dnow = time.now().day() return n.dnow }

sql server - Birt filter data set -

i have sql code select id1, ' ' id2, balance1, 0 balance2 table 1 union select ' ' id1, id2, 0 balance1, balance2 table 2 table 1 , table 2 have no relations, cannot use join. in report template have created table binded data set columns sql code outputs. i have put 2 detail rows in table this head: id balance detail1: [id1] [balance1] detail2: [id2] [balance2] i need filter out data table2 in detail1 , filter out data table1 in detail2. how do this? also table report results crossing data this: [id1] [balance1] [id2] [balance2] [id1] [balance1] [id2] [balance2] and need 1 detail reuslt on top , 1 on bottom : [id1] [balance1] [id1] [balance1] [id2] [balance2] [id2] [balance2] how should set report template? i think need query...

sql - use of outer joins in where clause if the value is defaulted -

in clause used column_name(+)=some value , use of right outer join column ex: deptno(+)=30 please explain thanks ex: deptno(+)=30 without other table join meaningless. the join against constant involves join event in constant being compared 1 of columns. error outer-join must include outer-join construct in constant test. without it, join can fail complete row. pervasive miscoding of outer-join because behavior of constant test when considered part of join event of outer-join different behavior when stands alone. have included sample of behavior difference 2 seemingly semantically equivalent queries not equivalent because 1 uses true join , 1 not. point being outer-join constructs give meaning when being used in join. solution have seen, code missing outer-join constructs. see common errors seen when using outer-join your query valid this: select <column_list> t1, t2 t1.c1 = t2.c1(+) , t1.c2(+) = ‘y’;

java - EntityManager becomes null -

i have curious error when using entitymanager. here extract of code. @persistenceunit entitymanagerfactory factory; @resource usertransaction transaction; entitymanager em; inside method: try{ datos.creardatos(docentrada); ctx.setdatosmensajes(datos); factory=persistence.createentitymanagerfactory("ealia"); transaction = (usertransaction)new initialcontext().lookup("java:comp/usertransaction"); entitymanager em = factory.createentitymanager(); //do whatever does, works fine. // here entity manager not null } catch (exception e){ } finally{ // here entity manager null try { svcsmensajes.grabarmensajesalida(datos, constantes.mensaje_salida_ws_usuarios_gestion, constantes.nombre_servicio_ws_usuarios_gestion, constantes.mensaje_entrada_ws_usuarios_gestion, em, ctx,transaction); } catch (cecaexception e) { // no devolvemos error en este caso } em.close(); factory.close(); } i don't ...