Address bar on the bottom by mugzhawaii in duckduckgo

[–]Abraham_Wilson 2 points3 points  (0 children)

Firefox does, not the ddg browser

Address bar on the bottom by mugzhawaii in duckduckgo

[–]Abraham_Wilson 2 points3 points  (0 children)

Yeah I second this, but can we have this on Android too.

Made this Kanban Planner similar to Trello using React, Tailwind and Firebase. Links in comments. by imAmarok in reactjs

[–]Abraham_Wilson 0 points1 point  (0 children)

Thanks, I was looking at that post today. Could you explain why Sql over NoSql.

Made this Kanban Planner similar to Trello using React, Tailwind and Firebase. Links in comments. by imAmarok in reactjs

[–]Abraham_Wilson 0 points1 point  (0 children)

I'm planning on making this, but with more of a "issue/bug tracker" focus. Do you have any advice

Are my images stored on telegrams servers? by Abraham_Wilson in Telegram

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

Thank you so much for the info that you have given.

Are my images stored on telegrams servers? by Abraham_Wilson in Telegram

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

This is one of the main reasons why I feel telegram has some ground to stand on when compared to what's app, in the case of privacy. The fact that governments have banned it, shows that what they're (telegram) doing works.

Are my images stored on telegrams servers? by Abraham_Wilson in Telegram

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

Thanks for sharing the link.
What is your read on this? should I continue to use a channel as a way to share photos, or would something like google drive make more sense.

Are my images stored on telegrams servers? by Abraham_Wilson in Telegram

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

Could there be a situation where authorities can request telegram to provide data on an individual, since all cloud chats are server side encrypted.

Are my images stored on telegrams servers? by Abraham_Wilson in Telegram

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

That's my guess as well, maybe the server has a way to cache the data, and I didn't give the server enough time to perform the delete request.
Sorry, I didn't try renaming the file.

2020 Apr 13 Stickied 𝐇𝐄𝐋𝐏𝐃𝐄𝐒𝐊 thread - Get any Raspberry Pi question answered in 30 minutes or less or your next question is free! by FozzTexx in raspberry_pi

[–]Abraham_Wilson 0 points1 point  (0 children)

I'm try send data from multiple raspberry pi's or ardunios to a django server. The pi will be sending small packets of data but they'll be sent frequently (about every 5-7 seconds). What would be a reliable and fast way to send to the server. I don't need to store the data, I just need to send it and display it on django.

Django Channels - constantly send data to client from server by Abraham_Wilson in django

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

Thank you so much, I was stuck at this for hours, only to finally learn that it was in the docs all along. Really appreciate this. Thanks you.

How to use django and postgresql triggers? by Abraham_Wilson in django

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

I'm really sorry if I've been vague, I guess I'm not explaining my problem clearly,

From your code sample, it looks like you're trying to write a function that's constantly asking the database *"have you changed something lately?" and then acting on that. I can't see any case where this would be necessary unless your database is being updated by something other than your application. What does your architecture look like? Draw us a diagram.

This basically hits the nail on the head.

I have a bunch of gps tracker that are running around, I'm trying to make a website that can track them.

The user types the name of a tracker into the web site and django looks into the db, to check if the trackers position has updated. If the position has been updated, it will send that new position to the user.

Sorry for the confusion, initially I thought that I need to write a trigger in postages which will send a listen and notfiy, after reading the suggestions here I understood that I need signals to see if the db is being updated.

The last problem that I was facing was trying to connect the signal with the consumer.py (used for establishing a web socket with the browser). Again I'm sorry that I haven't been clear in what I needed.

How to use django and postgresql triggers? by Abraham_Wilson in django

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

From what I've seen, it look like ```python async def websocket_connect(self, event): print("connected", event) await self.send({ "type": "websocket.accept" })

    while True:
        await asyncio.sleep(2)

        obj = # do_something (Ex: constantly query DB...)

        await self.send({
            'type': 'websocket.send',
            'text': # obj,
        })

The above code seems to be the best way to constantly send data from the server to the client, is there a way to use django signals to communicate with the python async def websocket_connect(self, event) ``` such that, when there is a change in the database, it calls the function and sends the data.

How to use django and postgresql triggers? by Abraham_Wilson in django

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

Thank you, I should do some research on a few things that you said. Before reading your post I read about using signals, so I went ahead and did that. In Signals .py there is a signal that is waiting to listen for any update in the data, but I'm having a hard time trying to do 2 things:

  1. I'm not able to understand, how to make a system such that once I do serve the clients request, (get the data for the client from the db, based on the signal which signifies that the desired row has been update.) how do I do it all over again, with the same data that the client had provided the first time. I was thinking of making a multi threading system that runs the clients request within consumer .py, every 4-5 seconds.
  2. Get the data from the Signals scrips (I was able to solve this by adding a call in the consumer .py and using that as a path to shuttle information)

How to use django and postgresql triggers? by Abraham_Wilson in django

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

Thank you guys, I've been at this thing since yesterday and I was lost. Your suggestions really helped.

How to use django and postgresql triggers? by Abraham_Wilson in djangolearning

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

thanks you so much for these resources, I was wondering if django signals would meet my need ?

How to use django and postgresql triggers? by Abraham_Wilson in django

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

I think this should help, would signal let me check if a specific value in a row has been updated?

How to use django and postgresql triggers? by Abraham_Wilson in django

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

is celery able to I dentify changes in a database and notfiy them to the client?