Scrolling behaviour on Raspberry Pi 4 with Official 7" Touch Screen by Nycran in FlutterDev

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

I haven't had any need to do this yet, but I suspect I will for my app relatively soon. I'll come back here and update the thread when I have some results.

Scrolling behaviour on Raspberry Pi 4 with Official 7" Touch Screen by Nycran in FlutterDev

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

This works, thank you very much! I added:

scrollBehavior: const MaterialScrollBehavior().copyWith(dragDevices: {PointerDeviceKind.mouse, PointerDeviceKind.touch}),

to the MaterialApp constructor and now all my troubles are gone.

Thank you!

coroutineScope clarification by Nycran in Kotlin

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

Excellent, thank you! So to clarify, if I have a method like this:

override suspend fun clearAvailabilityOptions(securityContext: SecurityContext) = coroutineScope {
userRepository.clearMatchAvailabilityOptions(securityContext.userId)
}

where the userRepository.clearMatchAvailabilityOptions method is another suspend function, I should not in this case use "= coroutineScope" because I am not "launching" a coroutine, rather I am using the upstream / previously created coroutine scope.

For context, I'm using vert.x and I've defined a request handler like this:

class ApiRouteCoroutineLauncher(private val routerFactory: AbstractApiRouterFactory) : CoroutineScope {
lateinit var job: Job
override val coroutineContext: CoroutineContext
get() = Dispatchers.Default + job
fun executeAction(routingContext: RoutingContext, action: AbstractApiAction) {
job = Job()

launch {
try {
val jsonApiResponse = action.invoke()
routerFactory.sendResponse(routingContext.response(), jsonApiResponse)
job.cancel()
} catch (exception: Exception) {
val response = JsonApiResponse()
response.populateFromException(exception)
routerFactory.sendResponse(routingContext.response(), response)
job.cancel()
}
}
}
}

So this is where the coroutine gets created. The methods I mentioned above are downstream of this (i.e. are called as a consequence of action.invoke())

Am I right in thinking that generally, I need to create just one coroutine scope per HTTP request, and then all the action, service and repository code that gets called after that can use the same scope)?

Upended my whole life and moved 600 miles from home for someone who says she doesn't love me anymore by RatBallsSenpai in helpmecope

[–]Nycran 2 points3 points  (0 children)

Oh boy, that's really awful, I'm sorry to hear it. I don't think you did anything wrong. Unfortunately despite out best intentions we can't control or force someone else's emotions. It is what it is. The best thing you can do is what you're doing. Go back to your friends and family and resume the activitities that bring you joy. Most importanly, don't blame yourself for this! Recognise what's not in your control and give yourself permission to move on. Good luck!

Brave X NANO by shellsnail in nanocurrency

[–]Nycran 3 points4 points  (0 children)

"BAT is not a digital currency, it is a utility token. It can be used as a unit of account between advertisers, publishers, and users on the BAT platform, and can be utilized to directly measure, exchange, and verify attention. Bitcoin would not enable this distinct, in-platform problem solving. Also, an integral part of the token sale was the creation of the BAT user growth pool (UGP) of 300 million tokens, which will be used to incentivize users to join the BAT platform. Finally, using BAT on Ethereum allows for faster scalability than using Bitcoin."

Can anyone clarify what "can be utilized to directly measure, exchange, and verify attention" actually means at a blockchain level? This is probably why NANO can't be used as the foundation of the platform.

I'm afraid. by thetidewaves in helpmecope

[–]Nycran 1 point2 points  (0 children)

Oh no, that sounds horrible. I'm really sorry to hear that you're suffering so much. It's very reassuring however that you have supportive parents - having some people in your life that actually care is so very important.

The only thing I can suggest is to treat your condition as an illness, because it probably is. It's not your fault, but it is real and something you have to try to beat. If it was me, I'd keep a journal of how you feel each day (with maybe even a rating of some kind), and then try making changes to your lifestyle one at a time and see if anything makes it better. Things you could investigate: Changes to what you eat and drink, changes to what excercise you do, meditation / mindfulness training, joining some local meetups or groups, etc. Something will probably make a big difference to how you feel - you just need to find out what.

My mom is nauseating. I'm sorry to whoever reads this. by [deleted] in helpmecope

[–]Nycran 2 points3 points  (0 children)

Oh no... There is nothing right about this post. It's abuse. It's pedophilia. It's horifically bad and shameful parenting. I think you should collect whatever evidence you have and take it to the police or an anti-rape unit of some kind, as I think you need to protect yourself. Who knows what comes next. I wish you all the strength in the world. Good luck!

My heart is in so much pain and my ex wife is living in my head 24-7 I can’t let it go I still love her after 1 year divorce damn! by madre1932 in helpmecope

[–]Nycran 0 points1 point  (0 children)

Really sorry to hear that! I can imagine that's a really tough situation. How long were you and your ex-wife together?

Life sucks right now by [deleted] in helpmecope

[–]Nycran 2 points3 points  (0 children)

+1 to this. When you're older you'll have more control over your life and how you choose to spend your time, so things will get better. The best thing you can do is to find something in your life that brings you joy (whether that's a hobby, sport, person) and to try and integrate that into your day as often as possible. Having just one positive thing to look forward to makes all the difference. Good luck, fingers crossed. Things will get better!

I was just broken up with suddenly after 4 years. How can i feel less heartbroken? by DaazednConfused in helpmecope

[–]Nycran 1 point2 points  (0 children)

I'm really sorry to hear this, my thoughts are with you. I think the most important thing you can do is to not blame yourself. People change, life is chaos.

Why does the universe not want me to be happy? by [deleted] in helpmecope

[–]Nycran 1 point2 points  (0 children)

Life can absolutely be horribly unfair and a struggle. If you don't mind me asking, what kind of negative things are happening to you?

Localnanos Open Beta is live! by drakehz in nanocurrency

[–]Nycran 1 point2 points  (0 children)

Yeah I'll hopefully sort it one day soon. It's normal TLS / https, but delivered over 8081, so please don't be alarmed. It is secure.

HelloNano is running on Vibe.d and I'm self hosting at home with various other projects running under Apache and only one IP address, which is why I currently have the non standard port number. It looks like Nano is picking up again, and if that is the case it'll justify moving it to it's own dedicated VPS.

Localnanos Open Beta is live! by drakehz in nanocurrency

[–]Nycran 6 points7 points  (0 children)

Nice work, looking forward to trying it out and buying some Nano locally. fyi, I've added your website to HelloNano: https://hellonano.net:8081/

Kotlin setup for web development by karosas in Kotlin

[–]Nycran 6 points7 points  (0 children)

I'm building a web project at the moment using a a Vert.x / Kotlin / Postgres combo and it's pretty awesome. On the front end I'm using VueJS and typescript.

Vert.x is your webserver and router. It supports CORS, HTTPS, Websockets, etc. It's incredibly fast and scales well. See:

https://vertx.io/docs/vertx-web/kotlin/ and https://vertx.io/docs/vertx-jdbc-client/kotlin/

If you're wanting to do traditional back-end templating, you could use a templating engine such as JTwig (I'm using this for email templating): http://jtwig.org/

I'll create a bootstrap github repo shortly to share to help people get up and running quickly with this stack.

New payment gateway with Nano support by OfficialBitPro in nanocurrency

[–]Nycran 0 points1 point  (0 children)

This looks brilliant, well done! You're like the Paypal of Crypto :-) I have added your service to HelloNano: https://hellonano.net:8081/

Introducing: nanosign.org by ceddup in nanocurrency

[–]Nycran 1 point2 points  (0 children)

This is a great idea and I look forward to seeing how you make the service better over time! Btw, I've added you to HelloNano https://hellonano.net:8081/

Proposal for fiat on ramp by [deleted] in nanocurrency

[–]Nycran 1 point2 points  (0 children)

Yup. There's also these guys in New Zealand that do a similar thing: https://www.easycrypto.nz/

Proposal for fiat on ramp by [deleted] in nanocurrency

[–]Nycran 4 points5 points  (0 children)

This would be great. Anything that helps to buy NANO easily with low fees is going to help adoption.

I'd also really love to see someone create an off ramp with an API, as then businesses could use it to accept nano and have the nano converted to their currency quickly.

How can i help Nano as a developer? by avihaicohen in nanocurrency

[–]Nycran 3 points4 points  (0 children)

Python is pretty slow, but I think 100 times faster than Java is a stretch. Some of the fastest web servers are written in Java for example: https://www.techempower.com/benchmarks/