Posts

ace editor - Meteor ShareJS document update/snapshot wipes out other values -

i'm using meteor sharejs package concurrent editing. trying write additional values items in docs collection. things titles, etc. seems work until document edited in ace editor point new snapshot created. @ point of fields cleared. i'm maintainer of meteor-sharejs package. the recommended way use package keep metadata in meteor collection, , not in sharejs docs collection. because separate software stacks not talk each other. it's possible using docs collection documents same name sharejs collection; overwriting each other. if you'd see sharejs not head in direction of being compatible derby, i'd encourage chip in @ https://github.com/share/sharejs/issues/277 .

Memory transfer between host and device in OpenCL? -

consider following code creates buffer memory object array of double's of size size: coef_mem = clcreatebuffer(context, cl_mem_read_write | cl_mem_copy_host_ptr, (sizeof(double) * size), arr, &err); consider passed arg kernel. there 2 possibilities depending on device on kernel running: the device same host device the device other host device here questions both possibilities: at step memory transferred device host? how measure time required transferring memory host device? how measure time required transferring memory device's global memory private memory? is memory still transferred if device same host device? will time required transfer host device greater time required transferring device's global memory private memory? at step memory transferred device host? the guarantee have data on device time kernel begins execution. opencl specification deliberately doesn't mandate when these data transfers should happen, in order allo...

css - Chrome not rendering correct DIV width and Inspector changes layout -

i'm working div containers supposed make site 900 pixels wide, on development page chrome (v34, on mac) not rendering page expected, it's stretching site 1020 pixels wide. chrome screenshot when turn on code inspector, layout corrected without input me. how can fix problem if inspector changes output of page? does else encounter inspector problem on page? firefox (v28) , safari rendering page should look; page content contained within 900 pixel width.

.htaccess - How to 301 Redirect url include particular value -

i want redirect htaccess file url include my_value.aspx main page for exmple if there url url: mydomain.com/blablabla/blabla/my_value.aspx or mydomain.com/myvalue.aspx?id=3343234&type=blabla or different way include my_value.aspx redirect 301 http://mydomain.com how can that? you can try: rewriteengine on rewriterule ^(.*)/(.*)/my_value.aspx http://mydomain.com? [l,r=302,nc] rewriterule ^myvalue.aspx http://mydomain.com? [l,r=302,nc] the above should redirect: mydomain.com/blablabla/blabla/my_value.aspx mydomain.com/blablabla/blabla/my_value.aspx mydomain.com/myvalue.aspx?id=3343234&type=blabla mydomain.com/myvalue.aspx?id=3343234&type=blabla to http://mydomain.com the nc flags tells ignore case, mean can use my_value.apsx or my_value.apsx or my_value.apsx , still redirect. change r=302 r=301 when sure redirect works.

windows - Template Error: The template file must be given (or the template could not be opened) -

please need help, ive asked web hoster no help. on laptop. template error: template file must given (or template not opened). dont know how fit it. cant on dashbroad too. dont understand how on laptop works on else. hope can kind regards john

asp.net - UpdatePanel and Timer not working -

i have code: <form id="form1" runat="server"> <div> <asp:scriptmanager id="scriptmanager1" runat="server"> </asp:scriptmanager> <asp:timer id="timer1" runat="server" interval="1000" ontick="tickevent"></asp:timer> <asp:updateprogress id="updateprogress1" runat="server"> <progresstemplate> <img src="http://jimpunk.net/loading/wp-content/uploads/loading18.gif" /> </progresstemplate> </asp:updateprogress> <asp:updatepanel id="updatepanel1" runat="server"> <triggers> <asp:asyncpostbacktrigger controlid="timer1" eventname="tick" /> </triggers> <contenttemplate> <asp:label id="label1" runat="server" text="label...

java - Some elements are just magically not removed from ArrayList -

ok here's block of code wrote : public arraylist<location> possiblemoves() { arraylist<location> a1 = new arraylist<location>(); // array contain possible locations board testb = new board(); // test board test if locations valid or not // locations have x & y coordinates a1.add(new location(getcurrentlocation().getx() - 1, getcurrentlocation().gety() + 1)); a1.add(new location(getcurrentlocation().getx() + 1, getcurrentlocation().gety() - 1)); a1.add(new location(getcurrentlocation().getx() - 1, getcurrentlocation().gety() - 1)); a1.add(new location(getcurrentlocation().getx() + 1, getcurrentlocation().gety() + 1)); (int = 0; < a1.size(); i++) { try { tower testtower = testb.getgrid()[a1.get(i).getx()][a1.get(i).gety()]; }catch(arrayindexoutofboundsexception e) { a1.remove(a1.get(i)); ...