HN user

neillyons

575 karma

Software Engineer https://neillyons.io

Posts0
Comments213
View on HN
No posts found.
[GET] "/api/user/neillyons/stories?hitsPerPage=30&page=0": 500 Failed to fetch user stories

When visiting Ayers Rock in Australia I stayed in Alice Springs. While I was there I learnt that Alice Springs exists because it was a repeater station for a telegraph line that stretched from Southern Australia all the way to London. There would be people listening to morse code, and tapping it out again to the next repeater station. Blew my mind that there was a wire that went all the way to London from Australia!

Calendar 7 months ago

Can anyone recommend a native macOS app with a calendar like this that supports .ics calendars?

Bitcoin doesn't take into account that humans are forgetful.

If you forget your bank card pin code they would post you a new card and pin, if you phone them up. I've done this a couple times in the past pre-smartphone banks.

If you forget your bitcoin password you are never getting access back.

ChatGPT Atlas 9 months ago

If you imported from Safari/Chrome in the onboarding. Go to Settings -> Personalization -> Browser Memories.

It has summarized my browsing habits and interests. Very impressive.

- "The user has a routine of checking their Fastmail inbox daily around 08:27"

Crunchbang was such a good distro! I ran linux for about seven years. Ubuntu and then Crunchbang. Had my 2012 MacBook Pro dual boot into Crunchbang. Battery life was awful. It had no automatic fan control, so the laptop got so hot I could barely touch it. I ended up writing a bash script to manually control the fans using function keys https://gist.github.com/nwjlyons/b29ee6f7e26595f55a2a

As cool as it was, I can't be bothered with any of that these days. Just give me a Macbook Pro, as I know it will work and have amazing battery life!

Golang will panic with a runtime error index out of range if you index out of bounds. There doesn't seem to be a nice built in way to do `arr.get(3)` like in Rust.

    slice := []int{1, 2, 3}
    i := slice[3]
    fmt.Println(i)
Why Clojure? 1 year ago

really hard to cultivate a community of people who have a deep love for something, but for some reason can't see what is actually wrong with it that drives ppl away

Elm is another example

I looked at the Apple watch but choose Garmin as it has a physical button to start and stop my run. I don't know if this is still the case but with the Apple watch I think you have to tap the touch screen. Takes too long, especially when every second counts on a 400m lap round the track :-P

Cognitive load example in Go. It is common to give variables single letter names. Now you have to build up a mapping in your head that for example `a` means `Auction`. You could skip this mapping if you just named the variable `auction`.

Yep, Django's on_delete behaviour being implemented in Python instead of SQL has caught me out a few times over the years.

I often do `on_delete=models.DO_NOTHING, db_constraint=False` and add the on delete cascade constraint manually to the migration file. https://stackoverflow.com/a/78668897/288424

Same goes for `default. Prior to `db_default` I'd often edit the migration file and set the default in SQL.

I much prefer Elixir's Ecto now.

Swift 6 2 years ago

I recently started learning Swift and Swift UI and was surprised at how complicated the language is. Especially regarding reactive instance variables. eg. @observableObject. Didn't understand it. There are like five different ways to do it. Ended up playing whack a mole until it worked.

Mixtral 8x22B 2 years ago

We had issues with consistent JSON ouput [solved]

It says the JSON output is constrained via their platform (on la Plateforme).

Does that mean JSON output is only available in the hosted version? Are there any small models that can be self hosted that output valid JSON.