用 Go 語言實現用戶一鍵登錄,有哪些可靠的方案
一鍵登錄是現代應用中提升用戶體驗的關鍵功能,本文將深入探討 Go 語言實現一鍵登錄的幾種可靠方案,並提供完整的代碼實現和對比分析。方案一:短信驗證碼登錄(最常用)實現原理用戶輸入手機號 服務器發送短信驗證碼 用戶輸入驗證碼完成登錄 完整代碼實現package mainimport(“crypto/rand”“fmt”“math/big”“net/http”“time”“githu ⌘ Read more
用 Go 語言實現用戶一鍵登錄,有哪些可靠的方案
一鍵登錄是現代應用中提升用戶體驗的關鍵功能,本文將深入探討 Go 語言實現一鍵登錄的幾種可靠方案,並提供完整的代碼實現和對比分析。方案一:短信驗證碼登錄(最常用)實現原理用戶輸入手機號 服務器發送短信驗證碼 用戶輸入驗證碼完成登錄 完整代碼實現package mainimport(“crypto/rand”“fmt”“math/big”“net/http”“time”“githu ⌘ Read more
3Blue1Brown talks solving math problems in the 1500s while “heretics” were being disemboweled 🧐 ⌘ Read more
Tackling the Biggest Unsolved Problems in Math with 3Blue1Brown ⌘ Read more
Thanks to @kat@yarn.girlonthemoon.xyz and her shelf I finally spent several hours in the woodshop. I wanted to build two drawers for the workbench and thought that I will complete this project in no time. I’ve been so wrong again. ;-)
I didn’t draw any plans, just measured a few times and then went to cutting a bunch of particle board leftovers at the table saw. I routed rebates on the sides, fronts and backs to lap the boxes and sink in the bottom. It turned out that having no plans was a stupid idea. I cut exactly on the lines as I calculated and measured, however, the math in my head fell apart when it eventually met reality. The bottoms are too short, so I gotta glue on some strips. Also, with the longer fronts, the sides won’t work either, I have to fix them as well. :-D
Finally, the lid of my cyclone bucket broke when the negative pressure got too large. Oh well. It was just an old wood glue bucket, I’ve got another empty one, so I can use that lid but strengthen it first with some plywood. Something for future Lyse to deal with.
All in all, it was still good fun. Wood (haha) do it again, but at least with some sketches on paper. ;-)
@eapl.me@eapl.me @bender@twtxt.net @prologic@twtxt.net Not including a photo was a stupid move, sorry. There you go:
This particular one is 95mm wide and 185mm high. Fairly compact.
I can only use it figure out distances to other dates and to do some basic calendar math. I’m not able to actually schedule anything. But I grew up with a month calendar like you have there where all appointments of the entire family was recorded.
By far most of my paper use is drawing random stuff on scratch paper during meetings. :-D
@lyse@lyse.isobeef.org I am a big fan of “obvious” math facts that turn out to be wrong. If you want to understand how reusing space actually works, you are mostly stuck reading complexity theory papers right now. Ian wrote a good survey: https://iuuk.mff.cuni.cz/~iwmertz/papers/m23.reusing_space.pdf . It’s written for complexity theorists, but some of will make sense to programmers comfortable with math. Alternatively, I wrote an essay a few years ago explaining one technique, with (math-loving) programmers as the intended audience: https://www.falsifian.org/blog/2021/06/04/catalytic/ .
what the hell is math? 🤔 ⌘ Read more
Neil deGrasse Tyson & 3Blue1Brown Answer Your Cosmic Math Questions ⌘ Read more
yarnd
does for example) and equally a 5x increase in on-disk storage as well. This is based on the Twt Hash going from a 13 bytes (content-addressing) to 63 bytes (on average for location-based addressing). There is roughly a ~20-150% increase in the size of individual feeds as well that needs to be taken into consideration (on the average case).
(#2024-09-24T12:44:35Z) There is a increase in space/memory for sure. But calculating the hashes also takes up CPU. I’m not good with that kind of math, but it’s a tradeoff either way.
Where’s the Calculator on iPad? Use Spotlight!
Calculators are wildly useful tools for various obvious reasons, whether you need to perform simple math or complex calculations. One of the more curious iPad oversights on Apple’s behalf is the lack of a built-in Calculator app, which is missing on iPad, but has been included on the Mac, iPhone, and Apple Watch, since the … Read More ⌘ Read more
@movq@www.uninformativ.de Haha! yeah sounds about like my HS CS program. A math teacher taught visual basic and pascal. and over on the other end of the school we had “electronics” which was a room next to the auto body class where they had a bunch of random computer parts scavenged from the district decommissioned surplus storage.
The advanced class would piece together training kits for the basic class to put together.
Golang 如何有效限制併發數?
Go 語言目前很火熱,一部分原因在於自身帶 “高併發” 的標籤,其本身就擁有優秀的併發量和吞吐量。1 協程可以無限創建嗎?我們在日常開發中會有高併發場景,有時會用多協程併發實現。在高併發業務場景,能否可以隨意開闢 goroutine 並且放養不管呢?畢竟有強大的 GC 和優越的 GMP 調度算法。看下面的代碼:package mainimport ( ”fmt” ”math” ” ⌘ Read more
@xuu@txt.sour.is Despite that these AoC math text problems are rather silly in my opinion (reminds me of an exercise in our math book where somebody wanted to carry a railroad rail around an L-shaped corner in the house and the question was how long that rail could be so that it still fits — sure, we’ve all carried several meter long railroad rails in our houses by ourselves numerous times…), these algorithms are really neat!
So today’s #adventofcode was solved with no programming. Just a bit o maths and wolfram/alpha
How a 400-Year Old Math Problem Solved Spaceflight ⌘ Read more
I’d like to garbage-collect some symbols in the math I’m currently writing, help
So… Just out of curiosity (again), back of paper napkin math. Based on Vultr pricing, running my infra in the “Cloud”™ would cost me upwards of $1300 per month. That’s about ~10x more than my current power bill for my entire household 😅 (10 VMs of around ~4 vCPUS and 4-6GB of RAM each + 10TB of storage on the NAS)
Math support in Markdown
Mathematical expressions are key to information sharing amongst engineers, scientists, data scientists, and mathematicians. Today we are pleased to announce that math expressions can be rendered in Markdown on GitHub using $$ as a delimiter for code blocks with math content or the $ delimiter for inline math expressions. ⌘ Read more
@niplav@niplav.github.io “adrationalism” is probably better. “irrationalism” sounds like a pie-appreciation club for math nerds.
being able to render TeX math equations to PNG files is pretty empowering, because it allows me to write about more technical things here that would otherwise be more difficult to communicate in plaintext.
Posted to Entropy Arbitrage: Colors for Programmers https://john.colagioia.net/blog/2020/03/11/colors.html #techtips #programming #design #color #format #math
Posted to Entropy Arbitrage: Happy (Orthodox?) Pi Day, Tomorrow! https://john.colagioia.net/blog/2020/03/04/pi.html #holiday #math #dissent #pi #radix #programming #techtips
Nice explanation of the difference between 1/0 and 0/0: https://blog.plover.com/math/division-by-zero.html
A Feud Between Two Popular Statisticians, Nassim Taleb and Nate Silver, on Election Forecasting http://nautil.us/blog/nassim-talebs-case-against-nate-silver-is-bad-math
I think DEVO might have got their math wrong in We’re Through Being Cool. Have I met 2 dozen members of any social group? That’s like 20% of my dunbar allocation.
@adiabetic@www.frogorbits.com You can’t argue with math. My math told me to eat a Balisto.
@adiabetic@www.frogorbits.com You can’t argue with math. My math told me to eat a Balisto.
I did math. The math told me to eat more protein, so I had a whey-and-milk shake with vanilla extract and honey.
This is math-heavy but the idea that ‘keys are meta-taxonomic dimensions’ reminds me of ZigZag & other elements make me think of parallel prolog-likes like mycroft – should re-read carefully later: http://www.vpri.org/pdf/m2009002_qod.pdf
Topology of Numbers http://pi.math.cornell.edu/~hatcher/TN/TNpage.html
Sci-Fi Writer Greg Egan and Anonymous Math Whiz Advance Permutation Problem | Quanta Magazine https://www.quantamagazine.org/sci-fi-writer-greg-egan-and-anonymous-math-whiz-advance-permutation-problem-20181105/
Lost in Math: Beauty != truth | Ars Technica https://arstechnica.com/science/2018/04/lost-in-math-beauty-truth/
Mathematical Illustrations http://www.math.ubc.ca/~cass/graphics/manual/
Band name of the day: moon math
Band name of the day: math not politics
How to Read Mathematics http://www.people.vcu.edu/~dcranston/490/handouts/math-read.html
GitHub - Jam3/math-as-code: a cheat-sheet for mathematical notation in code form https://github.com/Jam3/math-as-code
200 Terabyte Proof Demonstrates the Potential of Brute-Force Math - Motherboard https://motherboard.vice.com/en_us/article/padnvm/200-terabyte-proof-demonstrates-the-potential-of-brute-force-math
A Path Less Taken to the Peak of the Math World | Quanta Magazine https://www.quantamagazine.org/a-path-less-taken-to-the-peak-of-the-math-world-20170627/