Show newer

With Mastodon, you can add an additional link to your project's official documentation and make it appear as "verified" 💯. Here's how to add a verified link to your #Sphinx project ⬇️

Is there a simpler way to print the path of a Python package than the following one-liner?

python3 -c "import os, PySide6; print(os.path.dirname(PySide6.__file__))"

許多事情無法以金錢衡量。只是在搞清楚如何用金錢衡量其它事情之前,很難分辨兩者之間有何差別。

Stating a request clearly needs a lot of efforts but is an undervalued skill. Sometimes it’s easier to just code it up.

Want to help redesign one of the most popular and widely-used tools for researchers?

Zotero is hiring a designer: zotero.org/jobs/ui_designer

Would do it if I could. Ideal for someone else who has great UX / product design chops.

Every time the students are surprised by the consequences of calling shared pointer constructor multiple times with the same raw pointer.

"Most texts on Differential Geometry pay scant attention to such practical matters ... In sharp contrast, in this book we urge you to explore the ideas by all means possible: theoretical contemplation, drawing, computer experiments, and (especially!) physical experiments with actual surfaces. Your **local fruit and vegetable shop** can supply your laboratory with many interesting shapes."

I love this book.

I may be a right way to virtual reality.

學生在初學使用 github 交作業的時候,常常只提交結果,而未包含產生結果的程式碼。版本控制的目的在於紀錄工作內容,程式碼或指令稿是重要的過程,應該儘量納入,以便往後追蹤問題。

這個現象或許來自學校教育強調記憶的特性。強記是正確的學習方法,但專業程式員要寫的程式數以萬行計,很難不靠版本控制就記得下來,同時還需要大量練習,才能有效掌握。

一點觀察,希望多少能夠幫助初學軟體開發的朋友。

I have the same nostalgia. And it seems that the right way to "retoot" is to copy a link?

g0v.social/@weiping/1093676996

Users are simple. They want problems get solved and do not care about the physics, math, politics, architecture, technologies, and programming languages. If they don't even care about the cost, and thus the price of the solutions, they are perfect users.

Do you write "if (0 == value)" or "if value == 0"?

In code mixing C++ and Python I use the constant-first style universally so that a reader knows that I want to have better detection of typos by the compilers.

Interested in packaging your C/C++ Python extension simple, standard way? Join us for the first scikit-build community meeting Nov. 18th, at 12:00 PM EST. meet.google.com/dvx-jkai-xhq
I will be discussing my work on the next-gen PEP-centered scikit-build-core! #python #scikitbuild #cmake

#Python 3.6 is the new 2.7 in terms of people not being willing to let go. 😅

Python 3.6 is no longer supported upstream, so unless you're paying someone for Python support you are not getting security fixes (and haven't since last year). And if you're thinking of upgrading to 3.7, understand that you're so far behind at this point that 3.7 reaches EOL in about 8 months (June 2023), so you should probably target Python 3.8 at minimum if you're still on 3.6.

TIL: everything needs a wrapper, including libm

Now I know it is the fediverse and get ready to reside on mastodon. This post introduces myself.

I write code to crunch numbers. I like and the community, and enjoy seeing through the abstraction to the making of the circuit. I hope more and more people code for engineering and science in and around the world, and would like to invite you to check out the events we hold with : sciwork.dev .

🎉 #Mastodon 4.0 is out now! This server software update includes a ton of improvements, like following hashtags, translating posts, editing, an improved filtering system, customizable user roles for administration, but also some important security fixes.

Check out the full changelog:

github.com/mastodon/mastodon/r

Show older
Python Asia Mastodon

Python Asia Mastodon is a community of Python users and developers within the Asia region.