HNHacker News
TopNewBestAskShowJobs

markerz

664 karma · joined January 30, 2015

submissionscomments
markerz··on Show HN: Uncurl.dev – Convert curl commands to a shareable, executable UI
Definitely reset your password/account even if you can delete it from their website. Otherwise, you are trusting a stranger with no privacy policy or reputation.
markerz··on My Browser WASM't Prepared for This. Using DuckDB, Apache Arrow and Web Workers
It’s also terrible copy-pasting and CMD+F experience.
markerz··on AI/Math Puzzle
All roads lead to Rome right?
markerz··on Using fake deadlines without driving your engineers crazy
I’ll go against the grain and say that fake deadlines are incredibly useful. They highlight unexpected costs, they force the team to bring forward hard decisions and push towards action.

It’s the same as time boxing or pomodoro. You tell yourself it’ll take an hour. An hour later, you ask yourself what did you actually do and whether it makes sense how you spent your time.

I don’t think fake deadlines should be external. Hard deadlines is for external teams depending on you like marketing or sales or a customer.

Fake deadlines are for you to check in with yourself if things still make sense or if new decisions should be made because things didn’t turn out as expected.

> If you think that a prototype might take a month, why not challenge the team to see what they can deliver by the end of the week? You will be surprised, and so will they.

This is a great thought experiment but terrible for maintainability. It’s good to discuss what happens if we need it sooner, or what we could accomplish if we had more time. It’s bad to waste a week and commit to the bad decisions we make to meet a 1-week deadline when we all think 1 month is more reasonable.

Young people have a tough time pushing back. This technique is great for senior people, but juniors are just going to burn out. You have to be super careful with your language and be pretty clear that the pressure here is hypothetical.

markerz··on Show HN: "Git who" – A new CLI tool for industrial-scale Git blaming
Ideally, you find the context for why a change was made
markerz··on Show HN: A big tech dev experience for an open source CMS
Super weird behavior for me too. When I double tap to zoom into the text, I get some weird nested scroll bar state and can only read the first few paragraphs.
markerz··on Hard problems that reduce to document ranking
I want to hear more about your point of view, because I disagree and am curious if there's another definition of "reduce". In my CS world, reduce is a term that you use to take a list of stuff and return a smaller list or instance of stuff. For example: [1, 2, 3].reduce(+) => 6. The title would go like [hardProblem1, hardProblem2, hardProblem3].reduce(...) => documentRanking. I think this mental model works for the non-CS world. So I'm curious what your viewpoint is.
markerz··on Microplastics in the human brain
Perhaps you're thinking our body is at equilibrium with the amount of plastic in our environment, but the reality may be that our body accumulates microplastics from the environment and they become concentrated over time. Kind of like how we can't get rid of heavy metals from our body, so eating lots of fish accumulates mercury to toxic levels. But eating fish is a conscious decision whereas microplastic exposure is an unavoidable fact of life now.
markerz··on Google Pixel 4a's old firmware is gone, trapping users on buggy battery update
Initially they silently under-clocked CPUs for phones with aged batteries. https://www.pcmag.com/news/apple-does-slow-iphone-speeds-but...

Then they announced a $29 battery replacement program for phones that were affected by this battery issue. https://www.pcmag.com/news/report-apple-is-refusing-to-repla...

markerz··on Two F-14 fighter jets were diverted to USS Midway
Also the article has been around since 2023. Either an article date or the event date should be included in the headline. Or sticking to the original headline “That time…” would make it clear it’s not current. At the moment it feels like a clickbait submission.

https://web.archive.org/web/20230415000000*/https://theaviat...

markerz··on Caltrain's electric fleet more efficient than expected
Electric does help with getting cars to run quieter and faster though. With the old diesel engines, they needed more headway because of slower cold start times so there's more frequency and can hit the speed limit faster. Electric engines have high torque and are naturally much quieter.
markerz··on A phishing attack involving g.co, Google's URL shortener
But how did they MITM the verification code? Was the first two presented to the attacker, and the rest was presented to the email? Or were they able to MITM the whole email/code and just shared the first two to gain trust?
markerz··on You should write "without bugs"
There are two examples that come to mind:

I’ve caught multiple production bugs in code review by just carefully reasoning about the code and changing some variable names to match my mental model. I didn’t quite understand how bad it was, but I could tell it wasn’t right so I left a comment saying “this seems wrong”. What happened after? It was merged without addressing and it triggered a P1 regression in production two weeks later. Like the author said, it takes time and energy to truly understand a program and think through all the modes of execution. BUT I think it’s a worthwhile exercise. It just doesn’t really get rewarded. In my experience, this happened at least twice a year over my last 10 years of working in software.

The other example is blindly accepting AI generated code, which I think is an extension of copying template / boilerplate code. You take a working example and massage it to do what you want. It includes so many things that either aren’t needed or don’t make sense, but it works at first glance so it’s submitted and merged. For example, build configs, JSON or YAML configs, docker container build files, helm charts, terraforms, gradle builds. It takes a lot to learn these things so we often just accept it when it works. It’s exhausting to learn it all but if you do, you’ll be much better at catching weird issues with them.

I think the problem is we trick ourselves into thinking we should spend more time coding than anything else, but it’s everything else that causes us more problems and we should build the muscles to handle everything else so that we waste less time on those mistakes. We’re often already really good at shipping features but terrible at finding and handling bugs or configs or builds or infrastructure or optimizing for performance.

markerz··on Uv's killer feature is making ad-hoc environments easy
Yeah, it unifies the whole env experience with the package installation experience. No more forgetting to activate virtualenv first. No more pip installing into the wrong virtual env or accidentally borrowing from the system packages. It’s way easier to specify which version of python to use. Everything is version controlled including python version and variant like cpython, puppy, etc. it’s also REALLY REALLY fast.
markerz··on AI companies cause most of traffic on forums
Can't every webserver crash due to being overloaded? There's an upper limit to performance of everything. My website is a hobby and has a budget of $4/mo budget VPS.

Perhaps I'm saying crash and you're interpreting that as a bug but really it's just an OOM issue cause of too many in-flight requests. IDK, I don't care enough to handle serving my website at Facebook's scale.

markerz··on AI companies cause most of traffic on forums
One of my websites was absolutely destroyed by Meta's AI bot: Meta-ExternalAgent https://developers.facebook.com/docs/sharing/webmasters/web-...

It seems a bit naive for some reason and doesn't do performance back-off the way I would expect from Google Bot. It just kept repeatedly requesting more and more until my server crashed, then it would back off for a minute and then request more again.

My solution was to add a Cloudflare rule to block requests from their User-Agent. I also added more nofollow rules to links and a robots.txt but those are just suggestions and some bots seem to ignore them.

Cloudflare also has a feature to block known AI bots and even suspected AI bots: https://blog.cloudflare.com/declaring-your-aindependence-blo... As much as I dislike Cloudflare centralization, this was a super convenient feature.

markerz··on OKRs for Evil and Good
I don’t think objectives need to be complex or grandiose. Sometimes they can be but rarely do they need to be. In the end of the day, engineers are just employees solving business problems. The main business problem is driving shareholder value. Everything else is a means to achieve that. Fetishizing complexity leads to unnecessarily complex systems to achieve our personal objective of promotions and raises.

At my previous company, there was a strong drive to make OKR’s complex because it looks better on a performance review package, but it just caused us to spend so much time creating and finding complex problems rather than solving the ones in front of us.

markerz··on AI Guesses Your Accent
Doubt it. I'm traveling in Hawaii right now and am Chinese-American who can speak Spanish, but it labeled me as Hindi/Urdu.
markerz··on My Red Hot ADHD Programming 'Affliction'
I encourage you to get diagnosed. I got it via the IVA-2 test, remotely. It cost me around $300 out of pocket and two hours of my time to finally get confirmation that I’m neurodivergent and access medication that has changed my life. Obviously I’m not perfect anymore but meds are easy coping tools. I personally take half the minimum dose (5mg pills of Adderall or Ritalin cut in half) whenever it feels like a hard day.
markerz··on Show HN: A Marble Madness-inspired WebGL game we built for Netlify
> The company enables building, deploying, and scaling websites whose source files are stored in the version control system Git and then generated into static web content files served via a content delivery network.

That’s the meat of it. It’s Heroku for statically generated websites or websites that can run as lambdas. Pretty limited but very fast for those purposes cause everything is handled by edge servers rather than primary data center servers.

markerz··on Automatic braking systems save lives. Now they’ll need to work at 62 MPH
I'm pretty impressed by Toyota (2024 Prius Prime). Braking has only ever kicked in when I parallel-park between two very close vehicles and it was very easy to override. Just press the break and let go. Lane-keeping assist is a bit wonky sometimes but it's very understandable why, like train tracks that veer off away from the road or poorly painted lanes.

They do just the right amount of "help" without really getting in your way.

markerz··on Organizing Recipes with ML for Creative Cooking
That's me! For context, my old Google Doc started crashing during search because it's too big. I tried some existing recipe management apps and they all were a little disappointing, especially for search. I’m a very flexible cook but I use recipes for inspiration so I really want fuzzy search. So I built it!

Highlights:

* searching for shrimp will suggest prawns, seafood, fish…

* searching for “tomatoes and eggs” will suggest “tomato and egg” to be more inclusive

* searching for “ratatouie” will suggest “ratatouille” cause my spelling is mid and I cook a lot of languages that are romanized inconsistently (chow mein, chao main)

* it’ll show related recipes – “Red Braised Pork” suggests “Orange and Milk Braised Pork Carnitas”, “Sukiyaki Ginger Pork”, “Brown Sugar Bourbon Apple Pork Chops”

* supports searching through linked content (youtube subtitles, descriptions, comments section). Just drop a link and it’ll be searchable!

This links to my blog discussing how it works and features I dropped, but you can [play with it here in read-only mode: (https://recipes.href.cat/recipes.

markerz··on 20 years of Google Scholar
I am 100% sure this is a bot to farm link reputation. I have flagged it.
markerz··on A mistake that killed Japan's software industry? (2023)
I agree with you. Samsung is probably their only global software exporter. Their other top companies are exclusively local: Naver, Kakao, Daum. Pretty much no one outside of SK (or Japan) knows of them.

I will say they come out with some dank video games like Lineage, Guild Wars, MapleStory, Black Desert Online, PUBG

markerz··on Delivering actionable feedback
I recommend “Thanks for the Feedback: The Science and Art of Receiving Feedback Well”.

It talks about the point of feedback and how there are different categories of feedback: appreciation, coaching, and evaluation. The frame bad feedback or poorly received feedback as “crossing the wires” where the receiver wants affirmation but gets coaching or evaluation. This throws them into a spiral. Recognizing this can make you better at receiving feedback and giving as well.

There’s a bunch of little things like “publicly praise, privately criticize” and that it’s way better to make time for feedback rather than waiting for the right time. Feedback is best fresh, where you can talk about concrete examples or incidents.

markerz··on All the data can be yours: reverse engineering APIs
Maybe reverse it from the web app.

I deleted a tweet and saw this request:

    HTTP POST https://x.com/i/api/graphql/VstuveVgh5q5jk7lmnVopqr/DeleteTweet
    {
        "variables": {
            "tweet_id":"12344567899123",
            "dark_request":false
        },
        "queryId":"VstuveVgh5q5jk7lmnVopqr"
    }

You can execute these from javascript in the browser if the auth part is too complicated.

### Update, this is the pure javascript console way, if you don't want to write your own client doing HTTP posts

I played with the console more and got these parts:

// Find all tweets on screen (this gives you the tweet IDs too)

    document.querySelectorAll('a > time')
// Click the "more" button on the first tweet

    document.querySelectorAll('a > time')[0].parentElement.parentElement.parentElement.parentElement.parentElement.parentElement.parentElement.parentElement.parentElement.parentElement.parentElement.querySelector('button').click()
// Click delete on the tweet

    document.querySelectorAll('[data-testid="Dropdown"]')[0].children[0].click()
// Confirm delete

    document.querySelectorAll('[data-testid="confirmationSheetConfirm"]')[0].click()
markerz··on Five minutes of exercise a day could lower blood pressure
Somewhat related is Betteridge's law of headlines:

> Any headline that ends in a question mark can be answered by the word no. It is based on the assumption that if the publishers were confident that the answer was yes, they would have presented it as an assertion; by presenting it as a question, they are not accountable for whether it is correct or not.

I like to swap out any of these maybe-headlines with the exact opposite. It may help us, or it may not.

https://en.wikipedia.org/wiki/Betteridge%27s_law_of_headline...

From the article:

> Just five minutes of activity a day was estimated to potentially reduce blood pressure, while replacing sedentary behaviours with 20-27 minutes of exercise per day, including uphill walking, stair-climbing, running and cycling, was also estimated to lead to a clinically meaningful reduction in blood pressure.

Sounds like 5 minutes of exercise is where it has a statistically significant measurable impact in blood pressure, but 20-27 minutes is where it's a meaningful impact.

markerz··on Ask HN: Who wants to be hired? (November 2024)

  Location: San Francisco, California, USA
  Remote: Open to anything, but I prefer hybrid
  Willing to relocate: Must be within commutable distance within San Francisco or along BART.
  Technologies: TypeScript (Node, Next.js, React), Python (Django), Postgres, Cassandra, OpenSearch, Kafka.  I'm backend-leaning but happy doing fullstack work.  I also dabble in AI/ML on the side (see side projects on resume).
  Résumé/CV: https://href.cat/resume [pdf] or https://www.linkedin.com/in/markersss/ for a short summary
  Email: m.hireme [at] href.cat or see my resume
Hi! I'm a generalist software engineer with 10 YOE working on many things: android, operating systems, internal tools, microservices, distributed systems, frontend/backend web dev, high scale storage and search. As you can see by my experience, I love learning. I'm looking for a product role that is backend-leaning in the SF area. I have experience at 20 person startups (Procore/Airtable) up to 15k+ engineers at Apple. I prefer a smaller company where I can wear more hats and have a larger impact on the product.
markerz··on Show HN: I built an app to use a QR code as my doorbell
Sure, I think if a doorbell exists, it's fine to press it. For me, I just don't want to get overwhelmed by their barking dogs or greeting 4 other people. Sometimes, I'm just not in the mood and just want to see my friend one-on-one. I'm not doing it for other people. I'm doing it for myself because I find the experience of calling someone when I arrive to be a lot more pleasant in some cases. Those cases happen to occur more often when my friends are young. i.e. living with lots of other people or with their parents and family dogs.
markerz··on Show HN: I built an app to use a QR code as my doorbell
Wow that’s a surprisingly aggressive comment. I’ll share why I used to text and call “I’m here”. I’ve had many experiences where the residents had dogs that would absolutely lose their minds and bark non-stop or go crazy when you ring the doorbell. It’s just a better experience when their owner opens the door and there’s a guest. Other times, my friends lived in a multi-unit apartment and I didn’t want to bother 5 other people who I didn’t know. Other times they lived with their family and, again, just didn’t want to talk to them that time. -shrug- but I guess these are examples of not being able to think without a device.

For you, if you’re expecting guests, just tell them to ring your doorbell. Get rid of the ambiguity and give them comfort in knowing the “right” thing to do. You clearly gave it some thought and have strong opinions about it. I’m sure other people are just trying to be considerate in a generation where they mostly grew up living with lots of other people.

← PreviousPage 3 of 5Next →