TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: What did you learn last week?

36 点作者 estebandalelr超过 2 年前
I finally got around to CSS animations. Built some cool things for my project.

32 条评论

joshmn超过 2 年前
I learned that my dad isn&#x27;t my father. He didn&#x27;t even know he wasn&#x27;t my father. My mom passed away a few years ago and took this secret to the grave with her.<p>I took an Ancestry.com DNA to try to answer the question of: &quot;what, in my ancestry, if anything, results in me not being able to tan well at all?&quot; (compared to my mother&#x2F;father). In doing so, I was also greeted with another surprise: my mother happened to do one of these tests herself! She showed up on my list of matches. This made it really easy to determine who all was on her side via the &quot;shared matches&quot; feature — you can see a list of names&#x2F;usernames of people who have opted in to this feature and share some DNA with you.<p>This meant that it was very easy to distinguish who was on my (biological) fathers side.<p>I&#x27;m cool with it, though it&#x27;s an itch I&#x27;m insatiably trying to scratch. Oddly enough, someone who I share a considerable amount of DNA with has an uncle who worked in the same town as my mother did the year I was conceived — otherwise, the entire family has no relation to the region my mom hung around in that year (or any prior year). However, for all my fruitful digging (and I&#x27;m usually very good at the finding-people-on-internet part), I cannot turn up any solid email address or phone number for the guy. Coincidentally, I can see his old law office from my patio, and he lives a few blocks away from my partner.<p>World is weird.
评论 #32804315 未加载
sdwolfz超过 2 年前
For tech things that I learn and want not to &quot;forget&quot; I create a snippet here: <a href="https:&#x2F;&#x2F;www.codrut.pro&#x2F;snippets&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.codrut.pro&#x2F;snippets&#x2F;</a><p>Last week was:<p>- Git refined diff output: <a href="https:&#x2F;&#x2F;www.codrut.pro&#x2F;snippets&#x2F;git-refined-diff-output&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.codrut.pro&#x2F;snippets&#x2F;git-refined-diff-output&#x2F;</a><p>- Test for Emacs compiler warnings: <a href="https:&#x2F;&#x2F;www.codrut.pro&#x2F;snippets&#x2F;test-for-emacs-compiler-warnings&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.codrut.pro&#x2F;snippets&#x2F;test-for-emacs-compiler-warn...</a>
评论 #32802951 未加载
评论 #32806174 未加载
okhuman超过 2 年前
Last week felt like I finally understand how webauthn and passkeys work - now my auth server has a &quot;passwordless&quot; login flow <a href="https:&#x2F;&#x2F;github.com&#x2F;authcompanion&#x2F;authcompanion2" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;authcompanion&#x2F;authcompanion2</a>
评论 #32802954 未加载
gr1zzlybe4r超过 2 年前
I learned that it&#x27;s ok to be working a job or on something just because it can be stable and it pays the bills. I think I&#x27;ve looked to work maybe too much for purpose, and if you&#x27;re not working for yourself it&#x27;s going to be very hard to find fulfillment when doing that.<p>So basically learned to be ok with not seeing work as a purpose driver for me at the moment.
dmkirwan超过 2 年前
I&#x27;ve been learning a lot, fast, by trying to build out the same (very simple) full-stack web application in using different frameworks. Different backends, different frontends and different databases. Admittedly, I&#x27;ve been doing this for slightly more than one week. It&#x27;s been a lot of fun, I must admit. It&#x27;s interesting to see the different quality levels in documentation, availability of help on StackOverflow, and tooling.<p>I&#x27;m not approaching it with any real goal other than to see how some other frameworks work but it feels very worthwhile.
评论 #32803013 未加载
ozzythecat超过 2 年前
I learned that I put my faith and trust in some people who were never sincere and were simply using me.<p>Sometimes you flock to someone because you see them being kind, considerate, and overall a strong leader.<p>It turns out that some people know how to fake these qualities. They’ll use you, and while you look up to them, they see you as a pawn in a chess game.<p>Assuming that people make mistakes and everyone actually just means “well” or has good intentions, it’s extremely naive. People will sell you that shit and take advantage of you.<p>I got gaslighted enough times and finally saw what was happening.
评论 #32805628 未加载
smcn超过 2 年前
I&#x27;ve been trying to learn how to properly use Twitter to market my startup, and I found out that hashtags are better than cashtags when tweeting about stocks. That is, #AAPL is better than $AAPL.<p>This is the reverse of what I had expected because there seems to be vastly more people using cashtags but my theory is that 1) people still search for hashtags and 2) more volume means your tweet is visible for less time.<p>However, the best is obviously mixing them. I have a thread during premarket trading hours where I discuss stocks that the algorithm has decided is interesting and I&#x27;ll print out the current score using hashtags, but use cashtags for quick discussion on stocks.<p>Example here: <a href="https:&#x2F;&#x2F;twitter.com&#x2F;0xsmcn&#x2F;status&#x2F;1568155410191851521" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;0xsmcn&#x2F;status&#x2F;1568155410191851521</a>
nope96超过 2 年前
I learned that Stable Diffusion can read! It&#x27;s called a &quot;typographic attack&quot;. <a href="https:&#x2F;&#x2F;www.theguardian.com&#x2F;technology&#x2F;2021&#x2F;mar&#x2F;08&#x2F;typographic-attack-pen-paper-fool-ai-thinking-apple-ipod-clip" rel="nofollow">https:&#x2F;&#x2F;www.theguardian.com&#x2F;technology&#x2F;2021&#x2F;mar&#x2F;08&#x2F;typograph...</a><p>For example, this site lets you create variations on an image that you upload: <a href="https:&#x2F;&#x2F;47725.gradio.app&#x2F;" rel="nofollow">https:&#x2F;&#x2F;47725.gradio.app&#x2F;</a><p>Feed it an image of text (type text in a paint program and save as PNG), and it seems to understand some words. <a href="https:&#x2F;&#x2F;i.imgur.com&#x2F;aXELmHo.png" rel="nofollow">https:&#x2F;&#x2F;i.imgur.com&#x2F;aXELmHo.png</a>
评论 #32803303 未加载
dhsysusbsjsi超过 2 年前
I learned that in SwiftUI if you don’t want a view to re-render when one of its properties changes, but you need it to have that property&#x2F;state because it needs passing to children, you can just make it a regular variable without the @PropertyWrapper.<p>Seems pretty obvious in hindsight!!
评论 #32802937 未加载
SecurityMinded超过 2 年前
I learned not to trust any home services contractors&#x27; word. Have been left out to dry by 3 of them in one week after confirming appointments a day or two before.<p>On the flipside, I learned how not to paint walls, i.e. learned doing it the wrong way.<p>I learned a sump-pump advertised to pump 500 gal water per hour will take 3-4 days to pump the muck out of my swimming pool in 4-5 days, i,.e. not to trust those ratings.
评论 #32804428 未加载
hifikuno超过 2 年前
I learnt to double check that an image will actually work on my device. Tried flashing a newer version of DD-WRT to a router I was using as a wireless bridge. That device is now an ugly paperweight and I have two computers without internet.
dpkirchner超过 2 年前
I learned that my favorite pizza place, that I&#x27;ve been disappointed with lately, is getting a lot of 1 star ratings from folks these days. Guess I&#x27;m not the only one disappointed.<p>It&#x27;s a huge bummer. It took a while to find a good option!
评论 #32807135 未加载
satisfice超过 2 年前
Last week I learned that Sextus Empiricus argued that learning is impossible.
Triangle9349超过 2 年前
I saw a man with a device similar to a gameboy, it was a M8 Tracker. He showed a little and talked about music trackers. As a person far from music production, my mind was blown away. All week I searched on youtube everything about: Music Trackers(M8, Renoise, Milky Tracker, SunVox), Ableton, VSTs, Pure Data, Touch Designer, Synthesizers, etc I don&#x27;t know what to do with this information, but it seems I will have a new hobby.
cgreerrun超过 2 年前
Stereo Reconstruction<p>It&#x27;s the algorithm(s) for how to compute a depth map when you have images from two cameras spaced some distance apart (for e.g., our eyes). It&#x27;s gotten really good recently and it&#x27;s fascinating on a technical level. Check out this YT video&#x2F;playlist if interested: <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=6hr6xpOU-uw" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=6hr6xpOU-uw</a><p>Also, great question! Should do it every week.
martin_a超过 2 年前
The special software we&#x27;re using for automation in the print industry switched to TypeScript with the last major release.<p>I finally found the time to get into that and wrote my first two scripts with TypeScript and the overall new system to do scripting.<p>Still struggling with the finer bits, but access to npm et al. really helps with getting done what needs to be done without reinventing the wheel.
kradeelav超过 2 年前
Writing notes from this amazing 11 part series on anime layouts&#x2F;storyboarding &gt; <a href="https:&#x2F;&#x2F;note.com&#x2F;masuyama56&#x2F;m&#x2F;m94192fe5c85e" rel="nofollow">https:&#x2F;&#x2F;note.com&#x2F;masuyama56&#x2F;m&#x2F;m94192fe5c85e</a><p>even run through google translate it&#x27;s better than some courses I&#x27;ve paid for. that 2x2 grid is a game changer alone.
orsenthil超过 2 年前
I created 3 projects with Javascript. Maintained my C language project. Learn about infrastructure, aws and kubernetes. Continued my fintech and stock trading learning. Experienced an entrepreneur challenge with focus that is required to continue evolving a project, while facing people challenges.<p>Discussed with friends regarding economics.
marak830超过 2 年前
<i>Became alot more knowledgeable about using Jira and our clients expectations<p></i>Bookmarklets haha I didn&#x27;t even know they existed(was always using tampermonkey and such), in addition adjusting html on the fly for our logging system<p>*13 days is a long week, next time you put your hand up for OT, specify that you meant either day, not both xD
tsol超过 2 年前
Turns out it&#x27;s pretty easy to do a multiple long day fast if you spend a few weeks cutting out carbs first
hereyougo2超过 2 年前
From a comment here yesterday I learned the [2n] [2n+1] array layout for a binary tree is also known as the &quot;Etyzinger&quot; layout.<p><a href="https:&#x2F;&#x2F;algorithmica.org&#x2F;en&#x2F;eytzinger#the-eytzinger-layout" rel="nofollow">https:&#x2F;&#x2F;algorithmica.org&#x2F;en&#x2F;eytzinger#the-eytzinger-layout</a>
roydivision超过 2 年前
I learned that S3 buckets don’t have a concept of directories, even though a lot of clients make it look like they do. It is possible and valid to store an object such as<p>&#x2F;foo&#x2F;bar<p>Without &#x2F;foo existing.<p>This can cause problems in certain circumstances. Beware.
PaulHoule超过 2 年前
Found an answer to this problem<p><a href="https:&#x2F;&#x2F;www.dpreview.com&#x2F;forums&#x2F;post&#x2F;66442643" rel="nofollow">https:&#x2F;&#x2F;www.dpreview.com&#x2F;forums&#x2F;post&#x2F;66442643</a><p>which I detail at the end of the thread
8note超过 2 年前
I learnt that api gateway templates don&#x27;t have a good stringify function. You can turn a string into json and do stuff with it, but you can&#x27;t write it back without having your own function for it
thebeastie超过 2 年前
More webgl &#x2F; three.js. There seems to be a lot to learn. Starting to look into shaders. It’s hard because my math sucks and alot of it is maths, albeit basic matrix calculations and geometry.
oschvr超过 2 年前
I learnt how to backup data from Prometheus stored in a Persistent Volume in Kubernetes. many ways of doing this but the one I found backs up a tar to a bucket, which is pretty convenient.
RonaldOlzheim超过 2 年前
Sometimes you know that uou are not the problem, but your response is a habbit and the habbit is the reason that you experience the feeling of having a problem.<p>The union
rad_gruchalski超过 2 年前
Went through The Art of Prolog and Prolog starts clicking on.
altilunium超过 2 年前
Dig dive into OpenStreetMap ecosystem by reading weeklyOSM archives.<p>[1] : <a href="https:&#x2F;&#x2F;weeklyosm.eu" rel="nofollow">https:&#x2F;&#x2F;weeklyosm.eu</a>
givemeethekeys超过 2 年前
I finally understood the difference between references and pointers and now the reason for Box pointers in Rust makes more sense.
bwb超过 2 年前
Pumkin pie is not made of pumpkin, rather butter nut squash… why???
评论 #32804135 未加载
BOOSTERHIDROGEN超过 2 年前
Grafana and InfluxDB