HNHacker News
TopNewBestAskShowJobs

ydant

759 karma · joined May 15, 2010

Email is <username>@<username>.com
submissionscomments
ydant··on Regex character "$" doesn't mean "end-of-string"
For me, Perl hit me at exactly the right time in my development. One or more of the various O'Reilly Perl books caught my attention in the bookstore, the foreword and the writing style was unlike anything else I'd read in programming up to that point, and I read the book and just felt a strong connection to how the language was structured, the design concepts behind it, the power of regex being built in to the language, etc. The syntax favored easy to write programs without unnecessary scaffolding (of course, leading to the jokes of it being write-only - also the jokes I could make about me programming largely in Java today), and the standard functionality plus the library set available felt like magic to me at that point.

Learning Perl today would be a very different experience. I don't think it would catch me as readily as it did back then. But it doesn't matter - it's embedded into me at a deep level because I learned it through a strong drive of fascination and infatuation.

As for the regex themselves? It's powerful and solved a lot of the problems I was trying to solve, was built fundamentally into Perl as a language, so learning it was just an easy iterative process. It didn't hurt that the particular period of time when I learned Perl/regex the community was really big on "leetcode" style exercises, they just happened to be focused around Perl Golf, being clever in how you wrote solutions to arbitrary problems, and abusive levels of regex to solve problems. We were all playing and play is a great way to learn.

ydant··on Regex character "$" doesn't mean "end-of-string"
Exactly the same here, re: Perl.

My brain thinks in Perl's regex language and then I have to translate the inconsistent bits to the language I'm using. Especially in the shell - I'm way more likely to just drop a perl into the pipeline instead of trying to remember how sed/grep/awk (GNU or BSD?) prefer their regex.

ydant··on PostgreSQL is eating the database world
HN link to above: https://news.ycombinator.com/item?id=39711863
ydant··on Steam Families
It sounds like the big change here is allowing for playing a game from a family member's library even while they are playing some other game. Currently accessing one game from a family member's library locks that family member out of playing anything at all, requiring offline mode shenanigans to circumvent.

This was the big limitation we run into constantly in my house - if that's removed, this is pretty awesome news.

ydant··on We were wizards – a foreword to Learning Perl (1993)
Perl was my first programming language love. While we've largely gone our separate ways, we still keep in touch and occasionally we still spend some time together.

One such case is adhoc small scripts mid pipeline. There's just certain Perl syntax that's so deeply embedded in me that no matter how much I try to learn sed/awk/tr, I can't help but reach out to my old love in times of weakness and need. I just know how to talk to Perl in the most intimate of ways that's been hard to reproduce in other languages.

I still feel a little like I've betrayed Perl a bit every time I use Python.

Perl, Larry Wall, Randal Schwartz, Tom Christiansen, brian d foy, O'Reilly, and the many other participants of comp.lang.perl.* had such a lasting influence on my programming career. I wouldn't be who I am today as a programmer without having experienced all the Perl community put out into the world.

ydant··on Show HN: Tech jobs on the command line
Here's some with tech jobs listed:

https://workday.wd5.myworkdayjobs.com/Workday https://shipt.wd1.myworkdayjobs.com/en-US/Shipt_External

It doesn't seem like there's a global listing across myworkdayjobs.com sites - each company using it has its own sub-domain. Which sort of makes sense - Workday is an internal HR/employee portal tool licensed to companies.

ydant··on Show HN: React Geiger – performance profiling using sound
Cool idea.

This makes me wonder if there's something similar for log files. I sometimes find myself doing adhoc analysis of live logs using visual cues, but auditory ones are really powerful - just never think of using sound for diagnosis/debugging purposes.

ydant··on The Man in Seat 61
He mentioned that different wording choices causes problems with bulk search and replace. This is the kind of thing LLMs can be really useful for. That and other recently hyped related technologies are all about understanding and processing natural language text and this is exactly what the original stated problem is about.

A CMS likely just moves the text into a different storage medium and doesn't address the stated problem.

ydant··on The Man in Seat 61
He should add AI to his site!

Not really - the site is great as-is and there's nothing wrong with this approach. It looks like it works really well for Mr. 61.

But I'd imagine it'd be pretty helpful to write tools to help with maintaining the site which do leverage LLM models. Do a combination of search + AI to rewrite + reviewing the individual edits (e.g. through selective git adds). That's actually a plus in favor of flat files - it's all just code and the tools are plentiful. It's very "Unix" and hacker friendly.

I'm imagining a tool like https://github.com/paul-gauthier/aider (which I haven't tried yet, but it looks useful for this kind of effort).

ydant··on The Man in Seat 61
This is impressive. I poked around and for the (few) routes I'm aware of it has excellent information. I can see using this for future planning/dreaming.

I've found train travel sites can be fairly hard for non-locals to find / navigate through and you get waylaid by third parties that aren't as good for the actual booking as the less SEO optimized first-party carrier sites. Ends up being frustrating. I appreciate this site just gives you the facts rather than trying to do everything.

Everything about this is tastefully "old school". So much information density, and none of life story fluff most train travel blogs throw in.

I appreciate the advertising through fairly non-intrusive banners/links embedded in the pages (seriously, coming back in the HTML and not injected by JavaScript - who does that anymore?) that bypasses the adblocker. I was curious enough by the ones I saw that I disabled my adblocker to see if that was it - unfortunately there are also Google ads on top, but at least not cranked up to ridiculous levels.

I've "pinned" it in Kagi so now it comes up when I'm searching for train travel in the future.

ydant··on The case against caffeine
I'll take this opportunity to plug an instant decaf that recent surprised me (very pleasantly). Our hotel offered this for free in the lobby on a recent trip and I ended up buying some for travel purposes.

https://treelinecoffee.com/collections/on-the-go/products/in...

It's a swiss water method decaf instant that rivals some of the best cafe regular coffees I've had.

At stores/roasters, most will tell you the decaffeination method somewhere on the bag. If they don't it's probably not a brand that cares much about their decaf, so skip it. Make sure you go for as close to roast as possible - decaf goes off a lot quicker than regular coffee.

ydant··on The case against caffeine
The point I really liked about that video is that decaf drinkers are probably the most passionate coffee lovers. We're drinking it for ONLY the taste/experience. It's a shame coffee roasters and coffee shops tend to not take it seriously. I know when I'm traveling I often want to stop in a coffee shop and get a nice decaf and relax for a bit, but most shops make it pretty clear it's not going to be a good experience by not putting any effort into featuring/caring about the decaf options.
ydant··on The case against caffeine
I stuck with 7 or so months of dandy blend and roibos to make sure it wasn't just an addiction to the caffeine - and I eventually came back to decaf coffee. The problem is I want hot drinks with body and complexity - and dandy blend comes close, but is so flat compared to a coffee or a black tea. :(
ydant··on The case against caffeine
For what it's worth, my wife and I also sit and drink coffee in the morning together (although not as a consistent daily ritual). Ours is just decaf. (good) Decaf can taste very good. I've certainly had decaf that was better than most caffeinated coffee I've had. But it's harder to find serious attempts at decaf roasts, sadly.

I can also say that after quitting caffeine (8-9 months ago) my sleep improved dramatically for about 5 months. Then I started getting sloppy and mixed in light-caff (like chocolate and decaffeinated teas/coffees) and other factors in my life also kicked in and sleep got worse again. Unfortunately I don't have the drastic caffeine cut to fall back on now.

For me, the change 9 months ago was entirely one change - unsweetened caffeinated drinks to unsweetened purely non-caffeine drinks (like "dandy blend" and rooibos).

Anxiety didn't decrease noticeably when I made the change, but sleep improved a lot. Now if I drink caffeinated teas (3 times in the past 2 months) or eat a lot of chocolate I definitely feel the anxiety and just general discomfort. So there's a link of some sort. It feels uncomfortable now...

ydant··on Zigbee and Z-Wave are the best part of my smart home
Have you found LED bulbs that dim nicely with the Caseta?

It's been a few years since I've tried, but in the past I went through so many bulbs that whine when dimming that I gave up and put in smart bulbs where I can conceivably hear the bulb. Which means I've got switches that don't work properly if the hub is down.

I love the Caseta otherwise. We use it for recessed cans and the whine is just not quite noticeable. But, e.g. over my bed it's very noticeable. Maybe newer models of Caseta solved something and the bulbs aren't the solution?

ydant··on Doorway effect
This is exactly why I've eventually ended up with almost no notifications on my phone. I am way too susceptible to being distracted mid-task, and the only way I've found to effectively combat that is by aggressively removing those distractions.

Now if only I could turn off the "you must investigate X" shouting my brain randomly throws at me WITHOUT external stimuli.

ydant··on Responses to unicycling
I assume you mean electric unicycle?

I can't imagine delivering food on a regular unicycle - it's a lot of work.

The linked article was from 2007. He was definitely talking about a regular unicycle, and I doubt speed was a factor. The "unsafe" perception from others would be from the inherent wobbling associated with someone learning how to ride - it takes a while to get really smooth.

ydant··on Responses to unicycling
Mirrors mine, too. Although I didn't get to the travel stage on unicycle (never got outside parking lots), so most of my experience with other people was on electric unicycle early in their arrival into our area.

(in the US) The one constant was that overwhelmingly older men and women were interested and impressed and had genuine questions or compliments without making jokes.

The younger you got with males, the more aggressive and posturing the questions and behavior. Younger females were non-memorable - mainly just looked or ignored. Pre-teen, kids of both genders are just curious.

There's a definite similarity in the behaviors of people as they get older and the very young in how they approach new and interesting things like a (e)unicycle. As people get older they seemed to lose all need to posture and prove themselves and they seemed more comfortable exposing the vulnerability of being curious and ignorant.

Men absolutely love to ask the cost.

ydant··on The growing inequality of who gets to work from home
I was never "can't function" level, but stopping caffeine did open my eyes to how much of a fog I was in until the caffeine was dripped in. After a month or so of no caffeine I started realizing I could just wake up and feel instantly as alert as I normally would an hour or so into my day when taking caffeine.

But ultimately it comes down to sleep. Caffeine just masked sleep problems. If I don't sleep well, I still crave it. If I sleep well, I don't think about it anymore.

ydant··on Show HN: Weeks of Your Life
It can also be encouraging.

It's important to think about the things you have done and accomplished in life (happiness is more meaningful if you focus on celebrating what you have rather than chasing= what you don't have), and if you use this as an exercise to remind yourself of what you have accomplished/done, it might be helpful.

It could also be motivating. Perhaps you see all the things you've done and you're proud of and it encourages you to set out and do more things. Or the things you haven't done enough of, but are within your control to do more of in the future.

I quite like this kind of view on my past.

ydant··on Show HN: Weeks of Your Life
Most of "enjoying time with your kids" is less about what you do and the fact you're there to do it.

It's about building the memories and the trust (in both directions) that anchors the family together. That'll pay off as they grow older and come into their own identities and start to drift away from you into their own lives.

It's partly about setting up opportunities for the big events that people idealize and have nostalgia for. If you're not there, you can't have those great experiences.

It's partly about having the bad experiences. Sometimes those matter more in the long run for building the deep, meaningful, and lasting relationship.

The day-to-day often sucks and often isn't "enjoyed". But the cumulative results of the time and the good and the bad - that takes long-term investment.

ydant··on Adfree Cities
Looks like it's built in on Flipper:

https://blog.flipper.net/infrared/

> To use the Universal Remote mode, navigate Infrared -> Universal library and select the type of device you want to control.

ydant··on Adfree Cities
I noticed the same when I drove around the San Francisco Bay Area, except targeted at IT professionals. Just like with DC, it makes sense - target the eyes of the people who can influence decisions that actually financially matter.

Get outside of these bubbles, though, and it's all lawyers, casinos, car dealerships, and sex shops.

ydant··on Adfree Cities
Virginia has a very small number of billboards, and it's definitely one of the nice things about this area.

I haven't worked out exactly why some exist, but almost none do. The law is here:

https://law.lis.virginia.gov/vacode/title33.2/chapter12/

Regardless, the general feel of driving here is very different from many other states because of this rule. It's one of the first things I notice when I drive somewhere else in the US.

ydant··on What We Watched: A Netflix engagement report
Exactly what I downloaded the report to look for -

For Jan-Jun 2023, it was 278th most viewed on the platform with 51,800,000 hours of view. It was released in 2022-11-17.

It just makes me wonder what sort of views it would have had to get to get continued for another season.

Definitely a shame - it was a fun show.

ydant··on We don't have official RSS feed support for now, but we're working on a solution
https://github.com/GAM-team/GAM

> GAM is a command line tool for Google Workspace admins to manage domain and user settings quickly and easily.

I need this about once per year, but every time it's invaluable.

ydant··on Google Maps now looks more like Apple Maps
Having directions take you on a route that runs you by an advertising company could conceivably make them a lot of money. I am not suggesting and have no evidence they do that now, but it's not outside the realm of possibility.
ydant··on Paperless-Ngx v2.0.0
One feature that isn't mentioned on this release that I was looking for before actually got added in the RC1 for 2.0.0:

https://github.com/paperless-ngx/paperless-ngx/releases/tag/...

    * Feature: Implement custom fields for documents @stumpylog (#4502)
ydant··on Paperless-Ngx v2.0.0
I don't know if it has a specific meaning. There have been multiple forks:

paperless (https://github.com/the-paperless-project/paperless) -> paperless-ng (https://github.com/jonaswinkler/paperless-ng/) -> paperless-ngx (https://github.com/paperless-ngx/paperless-ngx/)

ydant··on Paperless-Ngx v2.0.0
There was a pretty big discussion about paperless-ngx a couple of months ago:

https://news.ycombinator.com/item?id=37800951 (183 comments)

I tested it out then and am considering migrating from my current system (Google Drive) to using a self-hosted approach. Paperless seems to have a good approach for minimizing the mental overhead of ingesting and categorizing new documents - which is what ultimately leads me to stacking documents up for months before processing them. My initial pilot run was promising, but I haven't gotten around to switching yet.

From the changelog, it's not really clear to me what's notable about this release, especially as a new/potential user.

This page is a better introduction to the product, although it doesn't mention the v2 release yet:

https://docs.paperless-ngx.com/

← PreviousPage 2 of 14Next →