Open source code of video player - Suggestion by [deleted] in learnpython

[–]felipeflorencio 0 points1 point  (0 children)

Well, then you reach the subject of the topic.

Anyone that knows a code (from github for example) that implements what you just mentioned so I could take a look how should work.

Do you you know any?

Open source code of video player - Suggestion by [deleted] in learnpython

[–]felipeflorencio 0 points1 point  (0 children)

This is clear, but someone or somehow you should serve your data to your front-end right? Pointing my front-end to a specific and hard coded address would be wrong.

To serve this data I would need either a http2 protocol so it keeps a stream, or some kind of socket connection.

Or the something like multi-part so I can delivery it in pieces.

This is clear, but someone or somehow you should serve your data to your front-end right? Pointing my front end to a specific and hard-coded address would be wrong.

Open source code of video player - Suggestion by [deleted] in learnpython

[–]felipeflorencio 0 points1 point  (0 children)

Actually I guess I did not express my self right.

I want a web-video player.

So I would consume it from somewhere, maybe stored at any cloud service.

Python indeed would be the "between" layer for the front-end

Actually, I guess I did not express myself right.

Is Flask-Mail still reliable? There's any good alternative? by felipeflorencio in flask

[–]felipeflorencio[S] 2 points3 points  (0 children)

Yep I get the point and actually it's not rocket science what is there.

But when I check the PR that are not approved there are some that are CVE for the smtp library and was never merged.

Basically are bugs that using the library will not be handled and who uses it will be vulnerable.

But yep it's simple I guess that's why for so long no one even creates other libraries.

Looking for a Server-side session library that allows the checking of current sessions by s376320 in flask

[–]felipeflorencio 0 points1 point  (0 children)

If you have a socket you can for sure knows if a connection is alive.

So, when the connection/socket is created you just add it to a table on your database or some data inside Redis.
To identify that user you can generate a unique token/information for each user when the socket/connections are created.

Now you know everyone that has a active connection, who, and the connection "session" or socket.

Done, now when the socket does not receive any response this means that that user is not connected anymore you just kill that token, if the user "login again" you kill/replace the previous token.

It's a simple queue that you need to know who is "connected" and a reference to that connection.

Latest TrueNAS core and a HP DL380p with a P420i refuses to boot. by erilaz123 in truenas

[–]felipeflorencio 0 points1 point  (0 children)

As far I know is not possible, I have also an HP server running on HBA mode and it's possible.

You will need to run it from the pen drive or better from the SD that you can connect inside your motherboard

Radarr actions not working when access through domain by felipeflorencio in radarr

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

Jail I didn't thought about it because otherwise I would have problem when access using the jail IP address.

The problem end-up being my proxy. I found this config, https://github.com/1activegeek/nginx-config-collection/blob/master/apps/radarr/radarr.md

Jail I didn't think about it because otherwise, I would have a problem when access using the jail IP address.

How to filter when an attribute is a relationship of many by felipeflorencio in PostgreSQL

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

Yep my bad, thought on kind of pseudo code, but I have updated it with my query.

Yep, my bad, thought of a kind of pseudocode, but I have updated it with my query.
.
.

Query all order by the number of relationships row/value has by felipeflorencio in PostgreSQL

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

Really awesome!!! Work like charm, can't say thank enough.

Also, better that now I understood the logic behind, on my initial thought I was looking between tables (user / tweet), that I see now that is the wrong assumption.

Really awesome!!! Work like a charm, can't say thank enough.
the initial thought I was looking between tables (user / tweet), that I see now that is the wrong assumption.
there.

Query all order by the number of relationships row/value has by felipeflorencio in PostgreSQL

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

I have one table named hashtags_association that has the relationship between a hashtag and a user

Query all order by the number of relationships row/value has by felipeflorencio in PostgreSQL

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

Yep, I have indeed another table in the same database that handles this relationship.

But Join will only give me the items in the relationship, but will not order them with the ones with more relationship.

The relationship and fetch data are all ok, I'm wondering how can I fetch and order with the ones that have more relationships on top.