HNHacker News
TopNewBestAskShowJobs

Ayesh

3,618 karma · joined March 16, 2017

Reach out at https://aye.sh :)
submissionscomments
Ayesh··on The Curse of Markdown
Almost all of the blog posts and articles I write nowadays are in Markdown, and it sure is painful sometimes when you need formatting that you just need a liiiitle bit of tweaking to get right.

My solution is to fork the markdown tool I use to add my own tweaks. Some of the changes I added are:

- Vertical padding: Typically, `---` and `*` get converted to `<hr>` tags. I use `*` for `<hr class="small">` that has different padding top/bottom.

- Code examples with syntax highlighting.

- Block quotes with class names: `> {.warning}`

- Headers and table rows with support for setting a specific anchor ID: `# Header {#myId}`

- `<img>` tags with CSS URL matching to apply certain styles. For example, match `<img>` tags URLs ending with `#screenshot` will have drop shadow.

Ayesh··on Show HN: Get any domain's brand data via API
How do you handle bigger brands like Yamaha, Samsung, etc that have businesses in a wide range? Yamaha music branding is much different from Yamaha motorbikes, for example.
Ayesh··on Upcoming Hardening in PHP
FWIW, core PHP functions do throw an ArgumentCountError when passing fewer OR more parameters than the signature allows.
Ayesh··on Upgraded Docker Plans
Notable changes:

- 40 pulls/hr/user (from 200 pulls per 6 hour period)

- 10 Docker Hub pulls/hr/IP address (from 100 pulls per 6 hours per IP address)

Ayesh··on Bitwarden SDK relicensed from proprietary to GPLv3
I used Firefox password manager for years, and moved to Bitwarden for: - Passkey syncing - Bitwarden on Android works properly, compared to Firefox's dedicated password app that's abandoned. - TOTP support (to use with some apps I don't want the strongest security)

But you are maybe right, if the only browsers you use are Firefox desktop/mobile.

Ayesh··on Response to DHH
WordPress coding standards is also full of padding. Spaces `like_this( foo, bar )`, curly braces on new lines, etc.

Plus, WordPress bundles all JS and PHP dependencies, including a whole userland PHP polyfill for libsodium.

Ayesh··on How I Experience Web Today (2021)
This is brilliant! I like how it slowly drives you mad.
Ayesh··on Wordpress.org Login: "I am not affiliated with WP Engine in any way"
Similar to that post on WordPress.org, WordPress is not PHP.
Ayesh··on Why Gumroad Didn't Choose Htmx
Yeah, I expected a bit of a rant or sarcastic post, but I'm genuinely happy it's a good post with good points. I use htmx in a couple of my projects and it's been great! Posts like these give me more confident about using htmx because they seldom show where they excel and where they fall short.
Ayesh··on CSSnano
Chrome Dev tools has this feature. It's not as useful because when you navigate to another page, it resets the used CSS rules.
Ayesh··on Git Bash is my preferred Windows shell
The post is about the shell; Windows terminal is only... Well ... A terminal.
Ayesh··on The Fall of StackOverflow: A Data-Driven Analysis
I think StackOverflow/StackExchange has served their purpose, and are now rightfully in a decline.

There are some niches sites in the network like bicycling, English, Mathematica, Academia, etc. They contain extremely high quality answers. But for programming, it's nowadays much more easier on GitHub and relevant issue trackers. I think it's good, because there are many questions in those sites that contain often outdated answers. Some lucky questions get a comment there saying the answer is outdated, but there are many outdated answers.

Perhaps, JavaScript has a lot to do with this. JS evolves at a much faster rate than sites like StackOverflow can keep up.

Ayesh··on Google Pixel 9 Pro
Sony flagships fit these requirements (micro SD card slot, swim, flagship chip, esim, etc) but they unfortunately don't feel as polished in the software end. Not to mention Sony phones being very difficult to find.
Ayesh··on Google Pixel 9 Pro
Yes it's new hardware. Pixel 8 also had it.
Ayesh··on Apple Maps on the web launches in beta
Links like https://beta.maps.apple.com/abc still work.
Ayesh··on "GitHub" Is Starting to Feel Like Legacy Software
The only reason holding me from using granular PATs is that they _must_ have an expiration date and the maximum is one year.
Ayesh··on Batteries: How cheap can they get?
> do you need to to become a mad-scientist electrician and DIY?

I did my own a couple years ago, and it worked quite well on the first go. I got someone else to build the LiFePo4 battery pack (16 CATL cells for 48v with a JK BMS).

It was fairly easy to build. Mount panels on the roof, and wire everything (PV, battery, grid electricity if you want it, and the output) to the inverter. I added some extra steps to monitor usage and output, and a smart MCB. I also have a small shop that I can feed from solar power if the battery is almost charged and the sunset time hasn't reached yet.

See if you quotation is to export electricity to the grid. Those kinds of setups usually require a certified company to do the installation (to make sure the inverter syncs with the grid), but for off-grid setups, you can definitely DIY.

Ayesh··on Twilio confirms data breach after hackers leak 33M Authy user phone numbers
In fairness, you cannot. It requires a backup password.
Ayesh··on Htmx does not play well with content security policy
https://htmx.org/essays/htmx-sucks/#xss-vulnerabilities
Ayesh··on Htmx does not play well with content security policy
HTMX always assumes that the incoming HTML is properly sanitized. If it isn't, the application is already vulnerable.

HTMX triggers do in fact use JavaScript eval(), which will get blocked with a CSP that does not allow it. But you can use standard JS scripts to add events. The same goes for inline CSS.

Ayesh··on Neofetch developer archives all his repositories: "Have taken up farming"
I'm don't think the author didn't literally went farming. But I have a story to share...

Many moons ago, I also romanticized the idea of doing something completely unrelated to computers, and started my own bakery. We hired a chef and someone to manage the operations. Started exclusively for deliveries, and we shortly opened it to dine-in orders too.

My contribution was mostly money, ideas, some logistics, and... marketing. I still had a knack for programming, so I spent hours setting up order delivery software (we deliver cakes to parties, etc), automatic Uber Eats orders to KOTs, and of course social media, Facebook ads, etc. Apart from social media and ads, the rest felt fun.

It was tedious work and we simply had competitors that had years of experience, good connections, and great suppliers. We were nearly breaking even, and I think I was more stressed than I was ever at programming related work.

My two cents if that if you feel like being a carpenter or farmer or to live in a small village running a cozy homestay, they all come with significant challenges. Starting from zero isn't that easy.

Ayesh··on Htmx 2.0.0 has been released
I knew about Htmx and that HN loves it. But this post is what I actually got to take a good look, and oh my god it felt like such a fresh breath!

We have a few jQuery-era websites (that still work today because why not), and Htmx could be where we trim hundreds of lines.

Ayesh··on French court orders Google, Cloudflare, Cisco to poison DNS to stop piracy
Hilarious how the article mentions the domain names at the end. It's like Google showing links of DMCA-striken lists, so you can easily find out the actual places to pirate.
Ayesh··on Edit PDFs for Free with Firefox PDF Editor
I appreciate there is good PDF support in Firefox now, but "Edit PDFs" is a bit misleading because it's only annotations. You cannot, for example, remove or edit existing text.
Ayesh··on A deep dive into email deliverability in 2024
I'm using NextDNS with AdBlock list, which is effectively a Pi-hole on the cloud.

The most annoying this is when email senders use click tracking on domains that are blocked by those AdBlock lists. I keep a separate browser instance to copy-paste those links into, but then I have to login again.

I prefer sending unsubscribe emails instead of clicking links. Gmail can automate it.

Ayesh··on A deep dive into email deliverability in 2024
Why will it no longer work?

When you forward an email, unless the email forwarder modifies the message content, it should still match the DKIM signature, so it still passes.

Ayesh··on Show HN: Curl2Url
The difference is that the Curl call is made in a remote server. Similar to a Proxy, but I suppose the proxy is configured at this website rather than the callsite.
Ayesh··on Passkeys – Under the Hood
> [Firefox on] Windows

I've been using Passkeys for many weeks now. Bitwarden can provide its own implementation as well (albeit it being a bit "hacky")

Ayesh··on Tell HN: NetworkSolutions.com lost the ability to update root DNS w/ custom DNS
Probably the best "Solution" is to just move to another registrar.

As someone with dozens of domains, unaffiliated, I can recommend:

- PorkBun: No-bullshit UI, no absurd first-year promotions to trick you with a higher renewal fee, and support for DNSSEC and Glue records. Domain transfer auth codes are shown in the UI, not emailed to you. Free URL redirects with HTTPS.

- SpaceShip: From Namecheap, but with none of Namecheap stuf. Slow UI, modern UI, easier for bigger portfolios. DNSSEC and Glue records.

No matter the registrar, I recommend not to use their (free or otherwise) Authorative DNS service, URL redirects, email hosting, etc.

Unlike what it may look like, DNS hosting, emails, etc. are value-adds registrars provide. The only things you need registrars are to buy/renew the domains, set nameservers (and optionally Glue records), update DNSSEC records, and update WHOIS.

Ayesh··on Why I use Firefox
I'm glad to see posts like this. Some of my favorite features not mentioned in the article:

- User Styles: I can customize pretty much everything about the browser UI using CSS.

- Containers: Shared history, form data, bookmarks,etc. But containerized cookies.

- Separate search field next to the address bar.

← PreviousPage 3 of 32Next →