1
Polar Aligment (mander.xyz)
submitted 8 months ago* (last edited 8 months ago) by [email protected] to c/[email protected]

I'm thinking about an IoT Polar Aligner. The main idea is to use a Raspberry Pi W with the camera module to find and detect the North Star and display it on the mobile phone. The final goal is to connect it with servos so that it can automatically align itself. Does anyone know of a similar open source project?

Crosspost: https://mander.xyz/post/20076533

8
Polar Aligment (mander.xyz)
submitted 8 months ago* (last edited 8 months ago) by [email protected] to c/[email protected]

I'm thinking about an IoT Polar Aligner. The main idea is to use a Raspberry Pi W with the camera module to find and detect the North Star and display it on the mobile phone. The final goal is to connect it with servos so that it can automatically align itself. Does anyone know of a similar open source project?

Croaspost: https://mander.xyz/post/20076877

80
submitted 10 months ago by [email protected] to c/[email protected]

iPhone 15 Pro ISO 80, 24 mm, f 1.78, 1/4310 s

1
PyConEs 2024 (mander.xyz)
submitted 10 months ago by [email protected] to c/[email protected]

Web de la PyConEs 2024. Este año en Vigo, los días 4, 5 y 6 de octubre.

https://2024.es.pycon.org/

1
submitted 10 months ago by [email protected] to c/[email protected]

Explicación del patrón de diseño Singleton y como implementarlo en Python

https://blog.xurxia.net/xurxia/el-patron-de-diseno-_singleton_

40
submitted 11 months ago by [email protected] to c/[email protected]

As always with these news it is still too early to draw conclusions: more analysis and tests are necessary.

https://www.nasa.gov/missions/mars-2020-perseverance/perseverance-rover/nasas-perseverance-rover-scientists-find-intriguing-mars-rock/

[-] [email protected] 7 points 11 months ago

I agree. It is more a curiosity thing than a real life project. But it helps to show the potential of this SoCs and it is a good practice for a lot of things.

13
submitted 11 months ago by [email protected] to c/[email protected]

I found this tutorial about how to use a raspberry pi to add a digital panel to old cars (canbus port needed)

[-] [email protected] 3 points 2 years ago

Yes, you can. Python has Email package to manage email through STMP protocol. I use it daily in my scripts. Attached link is a tutorial of Real Python:

https://realpython.com/python-send-email/

10
submitted 2 years ago by [email protected] to c/[email protected]

I have developed a project in #python to follow #RSS feeds and send an email with daily news. It is more an excuse to practice python, git and design patterns than a real project, but feel free to use it if you find it useful. Suggestions, opinions and feedback are welcome.

https://github.com/xurxia/newswave

[-] [email protected] 2 points 2 years ago

Fluent Python is another good book to learn Python. It is very clear and it has a lot of examples.

[-] [email protected] 3 points 2 years ago

Thanks! I will try it. I was an user of this sw but recently I have moved to Pyto as it has more libraries (OpenCV, etc), pip support and a newer Python version. Pythonista has its pros too.

[-] [email protected] 4 points 2 years ago

I find it very interesting and I want to do one with my kids. The guide is good from a step by step point of view about how to make one, but I think a couple of examples about what kind of data can someone get with it and what can someone expect to "view" could be very helpfull too

5
submitted 2 years ago by [email protected] to c/[email protected]

I have just created a new community in Lemmy about Generative AI like GPT or Midjourney. The subjects are diverse: from news to development

[-] [email protected] 15 points 2 years ago* (last edited 2 years ago)

After preview it will be a paid subscription additional to Office365, the same strategy as Office Copilot. I hate this policy of pay for a product then still paid for more functionalities... at the end of the year you will have paid a lot.

Microsoft says Python in Excel will be included in a Microsoft 365 subscription during the preview, but “some functionality will be restricted without a paid license” after the preview ends.

[-] [email protected] 9 points 2 years ago

I fully agree with the post. Except for a fast prototyping or a short personal script where it could be not necessary, type hint is a must. The subject is not only to guarantee that the program now runs without errors, but it will be still working right in the future too, even after a developer (either the original or other) make changes to the code.

17
submitted 2 years ago by [email protected] to c/[email protected]

Since the last update, half of the times I open the app I see All posts but in my preferences I have set Subscribed. The rest of the times it woks fine.

I want to thanks one more time to the developers who are making this great app 👏🏻👏🏻👏🏻 I really love it!

[-] [email protected] 8 points 2 years ago

Hi,

I have used goto instruction a lot when I started to program in Basic ( an Amstrad CPC 🥹). In this context goto had logic. But in modern languages like python I think it is a very bad idea:

  • Understand the logic is more complex
  • Functions and methods are a better and more powerfull alternative
  • It is dangerous: add or remove a new line of code could have bad consequences

Regards

[-] [email protected] 2 points 2 years ago* (last edited 2 years ago)

The bug to set NEW as the default sort option for posts in the config menu is still alive

[-] [email protected] 2 points 2 years ago

The most probably! Thanks a lot!

6
submitted 2 years ago by [email protected] to c/[email protected]

I have just installed the last version and it comes with some errors:

  • I can't set NEW as default option for sort posts in config
  • I can't see communities wich I am subscripted
  • When I search the communities section is always empty
[-] [email protected] 3 points 2 years ago* (last edited 2 years ago)

You can use global variables, it is true, but I prefer singleton because I have all config variables and logic encapsulated in a class. The first time the singleton object is created it reads all the config variables from a file, and with its methods get and set manages them. The Config class doesn't know the parameters names of the config file neither the number, it dynamically reads the file and creates the attributes, so It is a very reusable code that when you program using OOP is a more natural way than implementing like a module.

Related to this, I group config variables by sections so it is more clearly for me, then the singleton object dynamically creates an array for each section, and a variable into the array for every variable in this section of the config file. Access to the config info is as easy like this:

   conf = Config()
   conf.get('DB', 'server')
   conf.get('DB', 'login')
   conf.get('DB', 'password')
[-] [email protected] 7 points 2 years ago* (last edited 2 years ago)

I use a singleton class called Config (some times I use it as a Cache too)

Singleton pattern: https://www.geeksforgeeks.org/singleton-pattern-in-python-a-complete-guide/

Config class using Singleton pattern: https://charlesreid1.github.io/a-singleton-configuration-class-in-python.html

2
submitted 2 years ago by [email protected] to c/[email protected]

I introduce myself: I am Galician and citizen of the World. Proud father. I love science (specially astronomy), technology, nature and photography. I play padel and surf and whenever I can I escape with my camper van.

view more: next ›

xurxia

0 post score
0 comment score
joined 2 years ago
MODERATOR OF