Posts

kineticjs drag & drop - no release inconsistency -

first of drag , drop works correctly in stages in version 4.3.0, want understand why following problem 4.3.3. i have 3 stages. 1 sits in container in document in iframe. others sit in containers in iframe's parent document, 1 displaying complex layout of shapes , other single simple shape testing. document in iframe controls action has viewfinder overlay drags , drops correctly. shapes in layout , test stages not release on mouseup. any idea what's going on appreciated ... try , keep date. well, since can't see of code can much, try doing following. for each shape have, add attribute: dragontop: false example: kinetic.rect({ fill: 'blue', dragontop: false });

jquery - Having trouble getting to the JSON response after promises resolve -

i'm sorry, guys. hate having ask question; promise, i've been through many other questions tangentially related patience allow. following code following questions: jquery when each completed, trigger function jquery ajax solution inside each() loop how return response asynchronous call? i've got following: var xhr = []; //this parses selections on screen, which, in turn, informs url inside loop. $("#list > input:checkbox:checked").each(function(){ result = []; var list = $(this).val(); xhr.push($.ajax({ type:'get', url:"https://a-place.com/subsite/webapp/_api/web/lists/getbytitle('"+list+"')/items?$select=" + select + "&$filter=" + filter + "&$expand=" + expand + "&$top=10000", datatype: "json", headers: {accept:"application/json;odata=verbose"}, complete:function(data){} })); }); $.when(xhr...

c++ - Why does an overloaded assignment operator not get inherited? -

this question has answer here: trouble inheritance of operator= in c++ 5 answers operator= , functions not inherited in c++? 3 answers why code: class x { public: x& operator=(int p) { return *this; } x& operator+(int p) { return *this; } }; class y : public x { }; int main() { x x; y y; x + 2; y + 3; x = 2; y = 3; } give error: prog.cpp: in function ‘int main()’: prog.cpp:14:9: error: no match ‘operator=’ in ‘y = 3’ prog.cpp:14:9: note: candidates are: prog.cpp:8:7: note: y& y::operator=(const y&) prog.cpp:8:7: note: no known conversion argument 1 ‘int’ ‘const y&’ prog.cpp:8:7: note: y& y::operator=(y&&) prog.cpp:8:7: note: no known conversion argument 1 ‘int’ ‘y&&’ wh...

linux - Root Account Compromised In Unknown Fashion -

Image
i have server running ubuntu 14.04-64 running openssh 5.9 started acting strangely on last few days. ssh , http connections timing out. in addition, ssh key no longer working. having use password login. got notice our hosting provider server had used 400% of allotted bandwidth month (5 days month) when go on 10%. suspected server had been compromised. i saw no strange cpu activity in htop. saw no strange network activity in iftop. however, there strange executable set service in of rc.xd directories: s90.777{1452022308. called executable in / directory called .777{1452022308. process running high priority , causing other connections time out. file binary executable. i examined server logs , found this: jan 3 09:08:32 dev1 sshd[19757]: accepted publickey root x.x.x.x port 41394 ssh2: rsa 31:1c:bd:a0:d0:56:1b:e0:fd:a3:05:cc:9e:96:4e:8c we've never put public keys on of our servers root , never would. user on server approximately 8 minutes , disappeared. auth...

regex - MySQL REGEXP string not followed by another -

in mysql, need select registers table containing string in field not followed string. have tried using: select * table field regexp "(desired_string(?non_desired_follow_up))" however, get: got error 'repetition-operator operand invalid' regexp can right sentence doing that?

mysql - Inserting data into table SQL server -

if have 2 tables , table 1 has primary key(userid) autoincrement , table 2 has foreign key(userid) table 1's (userid) when insert new row table 1 first row have userid = 1 then if insert again, userid = 2. so how go keeping table 2's userid same when inserting in table 1. instance, in table 2, adding password table. my question should add autoincrement table 2(userid) , insert new value both tables when create user or there way? you have manually insert data correct id in table2. there no such built-in functionality in mysql. the algorithm follows: insert row in table1. get id of new row. insert row new id in table2.

C# .Net framework strings encoding from utf-8 bytes -

Image
i have application wrote in c#, , application receives data through network server using sockets (udp libenet). in application have function process raw bytes sent in packet. 1 of functions reading string, delimited \0. my problem i'm sending utf-8 encoded string server c# application, when use these strings display them in controls, gibberish instead of polish letters. function reads strings buffer: public override string readstring() { stringbuilder sb = new stringbuilder(); while (true) { byte b; if (remaining > 0) b = readbyte(); else b = 0; if (b == 0) break; // here problem. checked other encodings etc., still same sb.append(encoding.utf8.getstring(new byte[] { b }, 0, 1)); } return sb.tostring(); } function overrides, 1 from: public class bitreader : binaryreader in application get: you can't read utf-8 byte wise single character might take mo...