Category : java

Please I need help. This data is stored in Redis using Java Spring MVC ["com.qt.huobi.model.HbTradeOrderDetail",{"id":112,"uid":21,"type":1,"symbol":"xrpusdt","num":["java.math.BigDecimal",9.040000],"price":["java.math.BigDecimal",0.000000],"amount":["java.math.BigDecimal",5.000000],"rate":["java.math.BigDecimal",0.093769],"createTime":["java.util.Date",1616412790000],"status":2,"usetid":21,"bcNum":0}] I have read the data with laravel using $redis = Redis::rpop(‘key’) but I’m unable to access id, uid etc. I tried this lines $redis = Redis::rpop(‘mq’); $obj = json_decode($redis); if($obj!= null){ $key = ‘profit:’ + $obj->uid + ‘:’ + $obj>id; ..

Read more

TL;DR How do I upload images as an array to a request body with other request parameters using HttpUrlConnection? Hello, I’m developing an app that surveys the deadweight of a vessel. To survey the weights of a room, each item’s weight needs to be recorded along with other attributes of the item. The user should ..

Read more

Am using datatable to display my data so i want to scan one of the data and if is available then can be added automatically to anther table. Example of dataTable so instead of click that button [+] i want also to have another function to add into another table, this D_Number_id the second table ..

Read more

we are students university students doing a project name Home Automation system.I want to build an Android app that anybody can use to light, fans, and other equipment.We have decided to use Java and Android studio and Arduino, relays to control electric stuff. would anybody recommend the best tools, frameworks for making the frontend and ..

Read more

MY API/ProductController this is controller for api class ProductController extends Controller { public function all(Request $request) { $id = $request->input(‘id’); if($id) { $product = Product::with(‘galleries’)->find($id); } } MY ModelsProduct namespace AppModels; class Product extends Model { use HasFactory; use SoftDeletes; protected $fillable =[ ‘name’, ‘type’, ‘description’, ‘price’, ‘slug’, ‘quantity’ ]; public function galleries(){ return hasMany(ProductGallery::class, ..

Read more

I am developing an android app and am using laravel 6 as my backend for building api for the app. I am trying to get the full path of the storage folder but it not working for me. storage_path(‘video/filename’); it is give me this C:xampphtdocsfelkenmyappstoragevideo/videos/2020_07_31_rDSoT40X83hDCDwgSv3p.mp4 which actually does not locate the file. Sourc..

Read more

In firebase database i have two columns names user_id Bookondatetime user id like 1001,1002,1003… and Bookondatetime like – 2020-01-06 06:35:57 ,2020-01-07 07:35:57,2020-01-10 09:35:57…. I just want to hit a api like – http://demo.com/api/driver/1001 with user_id when any date and time match with current date and time from firebase Please give suggestions or any alternate any ..

Read more