Posts

android - React native debugger transtions are very slow on windows 10, but very fast on linux ubuntu -

i have real device samsung galaxy core, 1.5 gb of ram. make test debugging same app on windows 10, debugger on , transitions , animations slow. on linux ubuntu 64 bit transitions , animations fast. debugging adb reverse. react native debugger slow if use wi-fi in both os. not able understand problem on windows because work fine , fast debugger adb reverse.

processing - Capture RGB image using Kinect V2 with size 512* 424 -

i using kinect v2 acquisition data save rgb, ir, depth, raw , registered images in each capture. problem images have size (512*424) except rgb image has (1920*1080). have (512*424) not want save (1920*1080) resize (512*424) because think there problems coordinates using processing library work kinect idea how can save required size? here code using save the information each capture ... hope might explain problem import org.openkinect.freenect.*; import org.openkinect.freenect2.*; import org.openkinect.processing.*; kinect2 kinect2; printwriter output; void setup() { size(1024, 848, p2d); kinect2 = new kinect2(this); kinect2.initvideo(); kinect2.initdepth(); kinect2.initir(); kinect2.initregistered(); // start data kinect2.initdevice(); output = createwriter("raw_data.txt"); } void draw() { background(0); image(kinect2.getvideoimage(), 0, 0, kinect2.colorwidth*0.267, kinect2.colorheight*0.267); image(kinec...

Error with Admin Backup/Transfer DirectAdmin -

i have scheduled mysql backups admin backup/transfer. everytime there message errors databases on server (not all): <17:00:02> error while backing database k001d08_tm error while backing database k001d08_tm: sql file 0 bytes in size: /home/admin/database_backups/k001d08/backup/k001d08_tm.sql mysqldump error output: mysqldump: got error: 2002: "can't connect local mysql server through socket '/var/run/mysqld/mysqld.sock' (2)" when trying connect but when go backup, backup made well. error messages wrong in opinion. how can fix messages? because wrong messages can not monitor way want. thanks in advance.

node.js - TypeError('app.use() requires middleware functions') in session in express js -

while using session in express js, getting following error. app.use(cookieparser()); app.use(session({secret:'xyz'})); typeerror: app.use() requires middleware functions @ eventemitter.use (d:\lms-node\node_modules\express\lib\application.js:210:11)

java - What is a good IF statement to use in my Appium code -

new site , still trying hang of asking questions. update ok after making changes code have if statement in code, problem if if statement true proceeds page won't click on button. code correct or missing parts? driver.findelement(by.id(redbutton)).click(); driver.findelement(by.id(good)).click(); driver.findelement(by.id(locator)).click(); //if statement variable named "viewdets" //if "view details & pay" button pops click if (!driver.findelements(by.id(viewdets)).isempty()) { driver.findelement(by.id(viewdets)).click(); //app closes , doesn't click pay button driver.findelement(by.id(pay)).click(); driver.findelement(by.id(conpay)).click(); //if not continue stall , check in } else { thread.sleep(7000); driver.findelement(by.id(stall)).click(); driver.findelement(by.id(two)).click(); driver.findelement(by.id(three)).click(); driver.findelem...

php - Need to compare two rows from the DB in Laravel -

i have table users in laravel. a user has, among other things, id , owner_id . i want perform query owners. means, id equal owner_id . users::where('id','owner_id')->get(); something this. didn't work obviously. any suggestions? use wherecolumn instead. users::wherecolumn('id','owner_id')->get(); with where , you're looking literal string 'owner_id'.

javascript - Dynamically generated form submits only the last row ID of the mysql table -

i have dynamically generated form.it has 1 text input value id dynamically fetched database table (table_one). aim submit id table(table_two). on page can see these ids fetched table_one say: 1, 2, 3, 4 ,5, when submit of these ids '2', last id '5' submitted table_two. how can amend code when submit row 2, id '2' submitted not '5'? below code. html <form> <input type="text" id="name" name="name" value="<?php echo $name_id;?>" > <button type="submit" onclick="return chk()">edit</button> </form> javascript function chk(){ var name = document.getelementbyid('name').value; var datastring = 'name='+ name; $.ajax({ type:"post", url:"test.php", data:datastring, cache:false, success: function(html){ $('#msg').html(html); } ...