Posts

Delete to tab boundaries in IntelliJ IDEA 13.1 -

Delete to tab boundaries in IntelliJ IDEA 13.1 - when press tab intellij inserts 2 spaces (which want), when press delete intellij removes 1 space @ time. how create delete tab boundaries instead of 1 @ time? i tried solve problem too, appears not possible @ moment. the closest solution problem smart backspace feature, nowadays in intellij thought 14. according comment in blog post mentioned below seems same functionality planned delete key, not implemented yet. http://blog.jetbrains.com/idea/2014/07/the-backspace-key-gets-smarter-in-intellij-idea-14-eap/ https://youtrack.jetbrains.com/issue/idea-87318 intellij-idea

MySql PHP select count of distinct values from comma separated data (tags) -

MySql PHP select count of distinct values from comma separated data (tags) - how can select count of distinct values info stored comma separated values in mysql? i'll using php output info mysql in end. what's in there, tags each post. in end, i'm trying output info way stackoverflow it's tags, this: tag-name x 5 this how info in table looks (sorry content, it's site recipes). "postid" "tags" "category-code" "1" "pho,pork" "1" "2" "fried-rice,chicken" "1" "3" "fried-rice,pork" "1" "4" "chicken-calzone,chicken" "1" "5" "fettuccine,chicken" "1" "6" "spaghetti,chicken...

r - replace with NA -

r - replace <NA> with NA - i have info frame containing entries; appears these values not treated na since is.na returns false. convert these values na not find way. the 2 classes issue character , factor. should loop on dtaframe , convert "na" values true <na> 's 2 classes: make.true.na <- function(x) if(is.character(x)||is.factor(x)){ is.na(x) <- x=="na"; x} else { x} df[] <- lapply(df, make.true.na) (untested in absence of info example.) utilize of form: df_name[] effort retain construction of original dataframe otherwise lose class attribute. see ujjwal thinks spelling of na has flanking "<>" characters might seek functions more general: make.true.na <- function(x) if(is.character(x)||is.factor(x)){ is.na(x) <- x %in% c("na", "<na>"); x} else { ...

javascript - Tab cursor when character inputed -

javascript - Tab cursor when character inputed - here js fiddle example: http://jsfiddle.net/t3u8q5vr/1/ html: <input type="text" maxlength="1" size="1" /> <input type="text" maxlength="1" size="1" /> <input type="text" maxlength="1" value="e" tabindex="-1" size="1" readonly /> <input type="text" maxlength="1" size="1" /> <input type="text" maxlength="1" value="r" tabindex="-1" size="1" readonly /> <input type="text" maxlength="1" size="1" /> <div> <button class="buttons">á</button> <button class="buttons">é</button> <button class="buttons">í</button> <button class="buttons">ó</button> <button class="buttons">ú...

c# - Can LINQ construct and return a multidimensional array -

c# - Can LINQ construct and return a multidimensional array - yes, know difference between jagged array [][] , multidimensional array [,]. yes, have looked duplicates , found these: how utilize linq on multidimensional array 'unwind' array? convert 2 dimensional array c# linq homecoming multidimensional array linq the lastly 1 of these contains function job. question still: there way (no matter how contorted or contrived) persuade linq build , homecoming result in form of multidimensional array (and not jagged array)? it's not relevant question, problem led here 1 of little jobs looked "made linq", except function needed phone call had been defined multidimensional array parameter. linq code produce reply jagged array took 5 minutes write, , what? did miss something, or there no way linq job? i supposed should say: other writing chunk of code old way , embedding lambda or calling extension method. if linq can neither produce nor consume ...

node.js - MongoDB References how to? -

node.js - MongoDB References how to? - i have 2 collections in mongodb (i utilize node js) first: { _id: "france", color: "red", refid: { "1": "fra1", "2": "fra2"}} second: { _id: "fra1", color: "blue", info : "country"} { _id: "fra2", color: "white", info : "country"} how can display info in illustration console.log show me reference beetwen collections? info displayed in way(when type db.first.find().pretty()): { _id: "france", color: "red", refid: { "1": "fra1", color: "blue", info : "country", "2": "fra2", color: "white", info : "country"} } } node.js mongodb

log4j custom pattern in otroslogviewer -

log4j custom pattern in otroslogviewer - hi tried using otroslogviewer viewing application logs.but everytime seek loading logs otroslogviewer gives error message regarding log4j custom pattern parsing my log4j pattern property log4j.appender.file.layout=org.apache.log4j.patternlayout log4j.appender.file.layout.conversionpattern=%-5p: %d{dd-mmm-yyyy hh:mm:ss,sss}: %c.%m(): %m%n can tell me right pattern format need specify in pattern property file in otroslogviewer if logs looks like: info : 10-oct-2014 11:30:09,178: com.tcs.sgv.acl.service.accesscontrolserviceimpl.getalluserelement(): in global service loggedinpost---100016 info : 10-oct-2014 11:30:09,179: com.tcs.sgv.acl.service.accesscontrolserviceimpl.getalluserelement(): userid...103002 info : 10-oct-2014 11:30:09,180: com.tcs.sgv.acl.service.accesscontrolserviceimpl.getalluserelement(): locale...en_us – you can utilize next log pattern (menu tools-> show log4j pattern parser editor): type=...