Skip Navigation
xurxia

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.

www.xurxia.net

Posts
10
Comments
19
Joined
2 yr. ago
  • Thanks!

  • raspberrypi @lemmy.ml
    xurxia @mander.xyz

    Polar Aligment

    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

  • You're right. In fact, in the place there are many more eroded stones with shapes that recall strange and ancient beings (or parts of them). Although the pareidolia will have a lot of the blame 😅

  • Yes, it is the same kind if stone and the same “sculptor”

  • Photography @lemmy.ml
    xurxia @mander.xyz

    Erosion as a sculptor

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

    Python en Español @mander.xyz
    xurxia @mander.xyz

    PyConEs 2024

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

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

  • I have used CircuitPython in some projects, especially with my children. Python was easier for them than C. For small projects (domestic sensor, remote control car,...) there is no difference in performance. For those use cases that are more demanding and squeeze the possibilities of the SoC to the maximum, obviously, it is not worth it. Taking this into account, I think it is an alternative for many DIY projects that are being done out there

  • Python en Español @mander.xyz
    xurxia @mander.xyz

    El Patrón de Diseño "Singleton"

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

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

  • 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.

  • raspberrypi @lemmy.ml
    xurxia @mander.xyz

    Digital Panel for your old car

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

  • There are free IoT cloud solutions to send and receive data and that work with MQTT protocol for this purpose.

  • I don't use conda actually (I did in the past), but I think you could try:

    conda shell.bash activate project0

    You must see the paths and config used to activate the environment. Check all is fine.

    Source: https://docs.conda.io/projects/conda/en/latest/dev-guide/deep-dives/activation.html

  • What command did you use to activate project0?

  • 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/

  • Yes, the idea is use in the future Output.status as a way to route to different pages depending of the model result. For example, when /list endpoint is called I could return 1 to show the feed list, and 2 to render a page with a message and suggestions when the feed list is empty. The same with negative numbers but for errors.

  • Python @programming.dev
    xurxia @mander.xyz

    NewsWave - An RSS feed agregator

    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

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

  • 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.

  • Mander @mander.xyz
    xurxia @mander.xyz

    New community - Generative AI

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

  • 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.

  • 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.

  • Memmy - An iOS client for Lemmy @lemmy.ml
    xurxia @mander.xyz

    BUG - Preferences are randomly ignored

    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!

  • 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

  • Memmy - An iOS client for Lemmy @lemmy.ml
    xurxia @mander.xyz

    Errors in v0.1.0

    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
  • 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

  • Introductions @mander.xyz
    xurxia @mander.xyz

    Hello, Science lovers!

    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.