🌘 Hengefinder:尋找太陽與街道對齊的時刻
➤ 從幾何糾偏到精準搜尋:如何用程式碼鎖定懸日時刻
https://victoriaritvo.com/blog/hengefinder/
本文分享了開發者如何打造「Hengefinder」工具的歷程。這項計畫的核心在於計算曼哈頓懸日(Manhattanhenge)這類天文景觀出現的時間。作者透過解析街道方位角(Bearing)與太陽方位角(Azimuth),克服了地球曲率帶來的幾何誤差,並利用二分搜尋法精準鎖定太陽觸及地平線的時刻。這不僅是一個技術專案,更是一次將地理直覺與球面三角幾何實踐結合的探索。
+ 這篇文章展示瞭如何將枯燥的球面幾何應用在實際生活,特別是處理經緯度誤差的那段說明非常清晰,解決了我一直以來的盲點。
+ 使用二分搜尋法來尋找太陽高度角的臨界值,這個思路非常巧妙,比單純的暴力遍歷高效且優雅得多。
#軟體開發 #天文學 #幾何運算 #Python
Hengefinder: Finding When the Sun Aligns With Your Street

@Goffi thanks for the tip! Sure i'm gonna try again... and contribute with some feedback.
Hopefully it may very well guiding our classrooms next course.

#python powered #xmpp + #activitypub à-la #fediverse networks , such a great formula 

How to extract a tarball with #Python in FOUR lines of code! 🐍🚀

Pythonkväll

kulturskolan Kiruna, torsdag 11 juni kl. 17:00 CEST

Nu är det

Pythonkväll!

  • Vill du lära dig Python?

  • Vill du se vad andra gör med det?

  • Vill du visa dina Pythonprojekt?

Dagens ämnet är equations as code.

Välkommen till Pythonkväll hos hacKRNspace!

https://evenemang.inorrbotten.se/event/pythonkvall-7

Delivery Solutions Architect at Databricks

Databricks is hiring Delivery Solutions Architect

New #blog on #BurgeonLab ✍️

➡️ https://burgeonlab.com/blog/url2md-how-to-batch-convert-url-links-to-markdown-links/

See how I batch convert links for my #weeknote link roundup quickly, with auto-fetching link titles and site name using a Python script: URL to Markdown link.

This is post 45 of #100DaysToOffload
📈 https://burgeonlab.com/tags/100daystooffload/

#blogging #blogs #guides #newpost #blogpost #smolweb #techblog #techguides #python #scripts #markdown #url #linkdump #links #beautifulsoup

url2md: A URL to Markdown Link Converter using Python Script

Learn how to batch convert plain URL links from a TXT file into a list of Markdown links using Python, handy for link dumps or link lists.

BurgeonLab
In this multi-part series, I aim to reflect on my actions. There's no reason why we can't have a useful retrospective in LLM-assisted projects. https://hackernoon.com/a-time-lapse-of-the-seasons-the-foundations #python
A Time Lapse of the Seasons: The Foundations | HackerNoon

In this multi-part series, I aim to reflect on my actions. There's no reason why we can't have a useful retrospective in LLM-assisted projects.

The most common place we use super() in #Python? __init__:

class Child(Parent):
def __init__(self, a, b, c):
super().__init__(a, b) # Parent sets a + b
self.c = c # Child sets c

c = Child(10, 20, 30)
print(vars(c)) # {'a':10, 'b':20, 'c':30}

#Python ist bei Ausgaben auf stdout schneller als #rust ? Python flushed seltener: https://blog.strangerthanusual.de/blogposts/to_flush_or_not_to_flush
To flush() or not to flush()

Bei I/O sollte man vorsichtig sein, wie oft man flushed. Insbesondere, wenn die Programmiersprache eigene Ideen hat, wann geflushed werden soll.

Stranger Than Usual

#python #algorithm #technology #risk #volatility #investing #finance
#fintech
#energy #banking #renewable
#defense
Beyond the Headlines: How These Four Sectors Are Holding Strong Amid Market Volatility

An in-depth quantitative financial analysis of oil and gas, big banks, defense, and renewables during geopolitical shocks: cycles, strength, and nuance

#exploremore 👇

https://medium.com/@alexzap922/beyond-the-headlines-how-these-four-sectors-are-holding-strong-amid-market-volatility-23348447e11e?sk=fb3b717ed491882d803545eeb4699dcb