Posts

ios - Close and Re-open or refresh downloaded database -

This summary is not available. Please click here to view the post.

drupal - drupal_write_records() doesn’t work for those fields which was created by hook_update_n() -

currently have created table using install schema in drupal 7. after table alter add new column using hook_update_n(). now drupal_write_records() doesn’t work fields created hook_update_n(). regards, raj. hook_schema or hook_update_n ? drupal provides powerful , structured way of upgrading sites , making ddic changes. 2 important hooks hook_schema() provides structured, db independent way of defining table schema. when new module installed, hook_schema() automatically invoked (yes that's case in drupal 7, while in drupal 6 had explicitly used create tables) , tables created. now tables created , module being used, decide change in table, let's decided add new field. how change reach system , upgrade seamlessly module / code depending on field not break. drupal provides hook called hook_update_n() n numerical value indicating version of schema e.g. mymodule_update_1() first change , mymodule_update_2() second change , on. coming our example, suppose need...

html - whitespace nowrap on span -

in case: <td> text <span class="icon"></span> </td> i want line break when necessary on text don't want span on new line, want stick part of text. how can it? thanks, how solved problem <table style="width:100px"> <tr> <td> showing <span style=" white-space: nowrap;">i meant <span> blah blah </span></span> </td> </tr> http://jsfiddle.net/v86tvqn0/

ios crash before launch - black screen on simulator -

Image
2014-11-18 16:33:01.840 record-upload[2077:112380] *** terminating app due uncaught exception 'nsunknownkeyexception', reason: '[<viewcontroller 0x7f84b3076400> setvalue:forundefinedkey:]: class not key value coding-compliant key pausebuttontapped.' *** first throw call stack: ( 0 corefoundation 0x00000001049cbf35 __exceptionpreprocess + 165 1 libobjc.a.dylib 0x00000001042bbbb7 objc_exception_throw + 45 2 corefoundation 0x00000001049cbb79 -[nsexception raise] + 9 3 foundation 0x0000000103a4a7b3 -[nsobject(nskeyvaluecoding) setvalue:forkey:] + 259 4 corefoundation 0x0000000104915e80 -[nsarray makeobjectsperformselector:] + 224 5 uikit 0x000000010507dc7d -[uinib instantiatewithowner:options:] + 1506 6 uikit 0x0000000104edcf98 -[uiviewcontroller _loadviewfr...

java - No valid constructor error in EJB -

recently changing machine , had work creating new workspace environment. using eclipse kepler. code worked on previous machine don't know went wrong , tried recreating workspace again , again on previous machine. when running web application(primefaces,jsf,jpa 2.1 eclipselink 2.5,tomee 7,java 6,mojarra 2.1.6), "no valid constructor error" in ejb working on other machines. error : com.sun.faces.renderkit.clientsidestatehelper dogetstate severe: com.magnus.sessionejb.util.fiscalyrejb$$localbeanproxy; com.magnus.sessionejb.util.fiscalyrejb$$localbeanproxy; no valid constructor java.io.invalidclassexception: com.magnus.sessionejb.util.fiscalyrejb$$localbeanproxy; com.magnus.sessionejb.util.fiscalyrejb$$localbeanproxy; no valid constructor @ java.io.objectstreamclass.checkdeserialize(unknown source) @ java.io.objectinputstream.readordinaryobject(unknown source) @ java.io.objectinputstream.readobject0(unknown source) @ java.io.objec...

php - Searching through multidimensional array to get information? -

i working on multidimensional array shows information riotgames's (the creators of league of legends) api. request api searched username , summonerid (playerid) returns information looks : array ( [summonerid] => 34943406 [playerstatsummaries] => array ( [0] => array ( [playerstatsummarytype] => aramunranked5x5 [wins] => 273 [modifydate] => 1416009440000 [aggregatedstats] => array ( [totalchampionkills] => 5808 [totalturretskilled] => 298 [totalassists] => 9025 ) ) [1] => array ( [playerstatsummarytype] => ascension [wins] => 2 [modifydate] => 1415466770000 [aggregatedstats] => array ( ) ) [2] => array ( [playerstatsummarytype] => cap5x5 [wins] => 41 [modifydate] => 1416177610000 [aggregatedstats] => array ( [totalchampionkills] => 562 [totalminionkills] => 9087 [totalturretskilled] => 79 [totalneutralminionskilled] => 2371 [totalassists] => 475 ) ) and goes on, depending on how many gamemodes p...

lisp - Using entities from parent function -

usually obvious use entities of parent function function called within parent function. if have, (defun fun1(x)(let ((y nil))(fun2))) (defun fun2 () (print y))) then (fun1 2) complains y. how use entities parent function child function, fun2 able access entities of let scope of f1. you descritption , code wrong, i'll answer understanding want do. to such thing need declare variable special : (defun parent-fun (x) (let ((y nil)) (declare (special y)) (child-fun x))) (defun child-fun (x) (declare (special y)) ;; without declatation it'll work `(,x ,y)) ;; you'll warning cl-user> (parent-fun '(a b c)) ((a b c) nil)