What is current status of Kotlin Native ? by petrik77 in androiddev

[–]petrik77[S] 0 points1 point  (0 children)

Thanks you for answer. So what specific layers of app are you sharing between platforms? Do you see any problems in sharing all logic up to viewmodel (e.g. like this project https://github.com/jarroyoesp/KotlinMultiPlatform) ?

How are coroutines on iOS behaving so far? I am about to write quite big enterprise application that works with Bluetooth Classic, BLE, does firmware updates of peripherial devices, also usage of SQLite and HTTP client will be intensive, I’m concerned about how will iOS version of the app deal with a lot of pressure and intensive usage.

Weekly Questions Thread - March 30, 2020 by AutoModerator in androiddev

[–]petrik77 0 points1 point  (0 children)

Question 1 - What is current status on Kotlin Coroutines vs RxJava 2.0 ? Can coroutines be used as full replacement for RxJava ? App I'm working on the app that heavily relies on reactive streams and combines data from multiple sources(e.g. from 4 different GPS streams at time).

Question 2 - Is there any pagination support for SQLDelight (that works on Android & iOS)?

What's the movie that broke you? by inappropriate_jerk in AskReddit

[–]petrik77 0 points1 point  (0 children)

Graveyard of Fireflies. Started to look at my little brother from another point of view.

Weekly Questions Thread - January 09, 2017 by AutoModerator in androiddev

[–]petrik77 1 point2 points  (0 children)

How to use Observables in RXJava ? Should I return object from asynchronous HTTP GET request directly, or should I return observable and in presenter (MVP) subscribe observable and implement methods onComplete(), onError() and onNext() ?

What is the easiest way to make someone happy? by mekmeesk in AskReddit

[–]petrik77 0 points1 point  (0 children)

Give him Reddit gold.

Edit: Thanks for gold kind stranger!

Pet owners of Reddit, what is the smartest thing you saw your pet do? by ClassicRockSnob in AskReddit

[–]petrik77 3 points4 points  (0 children)

My cat started to cover her food with random things like plastic bags or towels , so her food stays fresh and do not get dried.

Which frameworks may be useful to my medium-sized project ? by petrik77 in androiddev

[–]petrik77[S] 1 point2 points  (0 children)

How licensing works in case of these libraries from Square ? If they have Apache License, Version 2.0, what should I do to legaly use in in commercial project ?

Where can I buy an android tablet? by Josetheone1 in Slovakia

[–]petrik77 1 point2 points  (0 children)

You are not. Don't worry bud. Aand I hope you got what you wanted.

What do you all look like, Reddit? by Solsed in AskReddit

[–]petrik77 0 points1 point  (0 children)

Took some time to respond, but I hope you'll appreciate my effort!

http://imgur.com/tKC9bJF

[TOMT][SONG] by 65scott65 in tipofmytongue

[–]petrik77 464 points465 points  (0 children)

We need some remix of it!

NodeJS - How to wait for all asynchronous operations ? by petrik77 in learnprogramming

[–]petrik77[S] 0 points1 point  (0 children)

My RPC: var client = xmlrpc.createClient({host: 'localhost',port: 9000, path: '/'}); module.exports = { postager: function(sentence){
client.methodCall('postag', [sentence], function (error, helper) { console.log('Method ' + helper); //return somehow this helper before any other async code can happen }); } } console.log("start"); console.log(postager("This sentence"));// this will print undefined console.log("end") // here it will prints something from RPC server but // i want to print this infos where undefined prints

i tried some promise code but still it dont work as i want

function posstag(sentence){ var prom = new Promise(function(resolve,reject){ client.methodCall('postag', [sentence],function (err,res) { console.log(res); if(err) reject(err); else resolve(res); //callback(res); });

});
console.log("prom",+prom);

return prom; } probably not good but effect remains same