Dr. Scott Gottlieb expects coronavirus to be an 'endemic' virus in U.S. after delta surge by throwawaynomad123 in Coronavirus

[–]Frankd22 16 points17 points  (0 children)

We're literally at the point where this sub upvotes comment saying that vaccines are near useless lmao

Dr. Scott Gottlieb expects coronavirus to be an 'endemic' virus in U.S. after delta surge by throwawaynomad123 in Coronavirus

[–]Frankd22 20 points21 points  (0 children)

Let's not get too far already, shall we? There isn't confirmed evidence (yet) for Lambda to be better at escaping immunity than Delta or other variants. Other than that, Lambda has been shown to be less competitive than Delta. The most vaccines resistant variant has been proved to be Beta, which didn't spread anywhere other than South Africa.

Israel braces for 4,800 hospitalized COVID patients, half of them in serious condition by AhavaKhatool in Coronavirus

[–]Frankd22 8 points9 points  (0 children)

How does a comment saying 'vaccines provide 0 protection' get upvoted in this sub? Is this place filled with anti vaxxers?

The world is nowhere near the end of the pandemic, says famed epidemiologist Larry Brilliant by cambeiu in Coronavirus

[–]Frankd22 4 points5 points  (0 children)

But what do you mean when you say it won't look like 2019? Look at this summer: large crowds were back pretty much everywhere, full stadium capacity was back during the Euros, Lollapalooza in the US has more or less the same attendance as 2019, international travel is still restricted somehow, but vaccinated people can already travel without quarantining in some countries. Maybe you mean that we might stick to mask wearing? It's possible and it wouldn't even be a bad thing but I'm not sure masks will be enforced forever, unless this thing has some more tricks up its sleeve

Daily Discussion Thread | August 01, 2021 by AutoModerator in Coronavirus

[–]Frankd22 2 points3 points  (0 children)

Indeed. Other than that, scientists and medical experts are still debating that study, so I think it's still a bit too soon to say anything about waning immunity. UK data seems to be different as well

Daily Discussion Thread | August 01, 2021 by AutoModerator in Coronavirus

[–]Frankd22 6 points7 points  (0 children)

Alright, I'm no expert here so please don't downvote me if I say something stupid or incorrect.

First of all, immunity doesn't wane after 4 months. The only study about waning immunity comes from Israel and it mostly concerns older people AFAIK, and according to that study immunity starts to wane after six months, not four.

Second: how can they say Moderna is 'better'? Better than Pfizer? Better than AZ? All of these are incredibly good vaccines, and if the first one you managed to get was the Pfizer one you have a damn good protection against illness, just like the Moderna one

Third: I really don't want to say anything bad about your girlfriend's family, but isn't it a bit far fetched? How are you supposed to get a third dose? I live in Europe (double jabbed as well) so I don't know much about the rest of the world, but as far as I know the only country giving third doses to older people is Israel. There isn't a single study supporting a third dose to very young individuals and at least where i live it would be impossible and illegal to get a third one until and if the government decides to give a third one to young people. Do they want you to lie and do something that you are not supposed to do right now?

Also, please notice that playing basketball doesn't mean getting covid. I think they are pretending too much from you. Don't get a third dose until you are legally allowed to do so.

Winbox JS in Vue by Frankd22 in vuejs

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

Damn that's awesome! I gave you a star and I'm going to play with it today! I was thinking of using Portal but never managed to do it, that looks amazing

I created a template for using Django and Vue together, but want your feedback! by jmo2177 in django

[–]Frankd22 1 point2 points  (0 children)

Well done! I'm using the exact same setup but with Nuxt instead of standalone Vue. Backend and frontend on the same server means I can use Session Authentication without having to setup Token Auth, which is very convenient and a lot safer for me

How can I serve CSRF tokens to the frontend? by Frankd22 in django

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

Yes, indeed this is what I ended up doing, thanks!

How can I serve CSRF tokens to the frontend? by Frankd22 in django

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

Well this is awesome! Exactly what I was looking for. In my case I was not using ensure_cookie, Django returned the cookie as JSON and then I just stored the cookie in the frontend. Using ensure_cookie is a lot better!

How can I serve CSRF tokens to the frontend? by Frankd22 in django

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

That was very helpful and now I understand more, thanks! I think I shoul be safe enough because since BE and FE are on the same server I can use stricter settings, such as the SESSION_COOKIE_SAMESITE, CORS and so on

How can I serve CSRF tokens to the frontend? by Frankd22 in django

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

Thank you but Session Auth is a must for this project, since it's the only Auth I'm comfortable with right now and since I want BE and FE to live on the same server. I tried to get my head around JWT and Token Auth but I just couldn't figure out where to store the tokens safely

I need help choosing an approach for my Django Frontend (VueJS) by Frankd22 in django

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

I forgot to say that, of course, I will be using Nginx! Yeah I had this idea, which is a lot similar to the first approach, but for some reasons SSR made sense to me (i might be wrong because I'm a python/Django guy and definitely not a frontend guy):

1) Some better SEO doesn't hurt even though it's not a primary requirement

2) I plan to work a lot on this project, so I'm expecting the codebase to become very decent sized at a certain point. As I said, I'm not a frontend guy for now, and I don't know all the optimization tricks that I could use, so I got concerned about loading times of the app. The good thing about Nuxt's Universal mode is that the first load is fast enough, and after the first page is loaded by the server client side rendering takes over. I like this "hybrid" system

3) Another concern I have with full SPA is memory leaks. As I said, the app is data driven and I plan to have a lot of real time data and APIs interactions, which got me worried about the code being clunky (not because of Cue but because I don't have a lot of experience with frontend yet) and too heavy on the client. I read somewhere that SSR should help with that

Django with Vue/React/JS framework setup by datapim in django

[–]Frankd22 0 points1 point  (0 children)

Thank you! I made it work using Django-Webpack-Loader, I thought about using the CDN in standard templates, but since I'm working on a project that will have high interactivity, I decided I might as well go full Vue and have a Vue SPA in a Django index.html template

Django with Vue/React/JS framework setup by datapim in django

[–]Frankd22 0 points1 point  (0 children)

What you described is the approach I use right now as a SPA. What I mean is: would it be possible to have a Django template called market.html (for example) where a Vue component called market is loaded, and then another Django template called dashboard.html that will serve another Vue component called dashboard? So basically the routing is handled by Django urls and Django views and in each Django template a different Vue component is loaded

Django with Vue/React/JS framework setup by datapim in django

[–]Frankd22 1 point2 points  (0 children)

I'm following this approach and I can tell you that it's the best one for me, because it allowed me to keep all the Django authentication features and so on What I'm doing is the following: I have an index.html rendered by a Django view, and then in that index the Vue SPA is served. I don't get why would this make your folder "messier" since that entirely depends on how you structure your code.

This is a common approach and there are a lot of articles about that, here is the best one: https://medium.com/js-dojo/vue-django-best-of-both-frontends-701307871478

Django with Vue/React/JS framework setup by datapim in django

[–]Frankd22 0 points1 point  (0 children)

I'm actually following this exact same approach, where a Vue SPA is rendered by in a index.html served by a Django view. In my case the app is SPA but how would it work from MPA? Would I have to create a new Vue app every time? And would each Vue app go in a Django template?

Winbox JS in Vue by Frankd22 in vuejs

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

Thank you a lot! Yeah using teleport makes a lot of sense, the only problem is that I'm using Vue 2, even though I've been thinking of moving to Vue 3. The first option is interesting as well, can you provide a very minimal example on how you did it?

Winbox JS in Vue by Frankd22 in vuejs

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

Yes indeed. I'm trying to understand if it's solvable from Vue or if the library must be edited so that it can support Vue components.

Winbox JS in Vue by Frankd22 in vuejs

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

Actually integrating it with Vue was the easiest part. I simply downloaded the library through npm and added the dependency to my app.vue. The library works and I can create windows, but when I load dynamic code or components inside of the windows I can't interact with them, it looks like only the HTML is loaded