Posts

javascript - Multiple tbodys and scroll inside the 1st & column width issue -

im'm trying scrollable first tbody inside table fixed header, divided in 4 tbodies witch : http://scr.hu/0ei9/k2tqx here's fiddle https://jsfiddle.net/yb5sob07/ (sorry html it's lot of code generated angular , difficult clean fiddle...) in short looks : <table class="planning shifts"> <thead> <!-- les jours du mois--> <tr class="bg-active"> <th>coursier|jour</th> <th class="monthday">days 1 31 </th> </tr> </thead> <tbody id="shiftstable"> <tr> <td class="coursiertd"> <a href="#">{{user.name}}</a> </td> <td>user/day </td> </tr> </tbody> <tbody ng-repeat="city in cities"> <tr class="citymanquesheader"> <th colspan="{{cal...

websphere - Deploying ear file to IBM WEBSPHERE8 with wsadmin.sh -

i new websphere , found many answers *.ear file deployment. of them use format similar " ./wsadmin.sh -host vmllkb056933n.myspace.com -port 5000 -c '$adminapp> install /apps/test-app.ear' i getting errors like: wasx8011w: admintask object not available. wasx7015e: exception running command: "$adminapp install /apps/cdm-fi.ear"; exception information: com.ibm.ws.scripting.scriptingexception: wasx7206w: application management service not running. application management commands not run. i in rhel 6 environment , runing ibm websphere 8.5.5.3 what easiest way deploy ear file ibm websphere 8.5.5 make sure using deployment manager wsadmin.sh , dmgr process running. port reference should soap_connector_address of dmgr. referencing cluster or server name in federated environment tells dmgr put code, in 2 examples below. $adminapp install "myapp.ear" {-cluster clustername} or $adminapp install app_server_root/installab...

access singleton and inner classes each other in javascript -

i'm kind of new javascript. i'm confused javascript objects!! my code skeleton bellow... var jcanvas = new function(){ this.init = function(canvasid){ ... }; var drawingmanager = new function(){ drawinfos = []; // drawinfo objects pushed this.mousestate = mousestate.released; ... }; function drawinfo(bm, cl, id, x, y){ ... } function point(x, y){ ... } var mousestate = new function(){ ... }; var color = new function(){ ... }; var brushmode = new function(){ ... }; }; i want jcanvas singleton class object. in jcanvas object, there many singleton classes such drawingmanager, mousestate, color, brushmode. , 2 more classes not singleton classes(point, drawinfo) what want that, in drawingmanager, want access other classes , singleton class objects. problem browser gives error "mousestate undefined". i think i'm famili...

memory management - Java, what is the cost if I pass a heavy object as argument to some function -

suppose have object classroom, in classroom there many student object (50 objects) more 20 properties, many teacher object (10 objects) more 20. classroom has other properties classno, seatcapacity, etc. is pass object of classroom object argument method. suppose need 3-4 properties of classroom , 1-2 properties of each students. if bad cost passing heavy object. in java passing a reference object . , there's no cost difference when pass string instance or complex class instance, classroom class.

java - PircBotX Private Message -

when user executes command, send output user, not channel. i'm using pircbotx framework. my code: public void onmessage(messageevent<pircbotx> event) { if (event.getmessage().equalsignorecase("!test")){ event.respond("test successful."); }else if (event.getmessage().split(" ")[1].equalsignorecase("!test2")){ event.getchannel().send().message("this response works"); event.respond("this response works"); event.getuser().send().message("but not work"); } } according documentation , event.getuser().send().message("xyz"); should private message. the documentation states bot.sendmessage should private message, doesn't work either. for both of these, console output looks normal. one thought have origin of issue: i'm building twitch.tv chat bot. possible (although their api page not mention this) private messages disabled. ...

Android service stop working after I run another app/game -

do have idea can bee root cause of android app service stop working when run random app/game? i not have code available, need causes. thank you. service runs in app process. if app garbage collected, service stop until: you start service in new process via manifest file declaration you make service sticky (recommended). go ahead , research above 2 , let me know if more explanation or code update if see official documentation of service , google explains why , when service destroyed. useful in scenario: a started service can use startforeground(int, notification) api put service in foreground state, system considers user actively aware of , not candidate killing when low on memory. (it still theoretically possible service killed under extreme memory pressure current foreground application, in practice should not concern.) using startforeground ensure service keeps running in same process. pointers: a service attached client not destroyed on low mem...

Where do the Android app Crazy Stone (Go playing program) store saved games? -

i guess rather specific question bit outside programming spectrum of stack overflow, have been thinking developing game parser/viewer games in sgf (there few already, in java midlet, android) , in format used crazy stone app. however, when try locate files created app, can't find them. have searched thru both sd-card , internal memory of phone without finding files. i tried google this, not find answer. the app itself, there no mistake, developed unbalance: https://play.google.com/store/apps/details?id=jp.co.unbalance.android.igoen&hl=en could point me in right direction?