HNHacker News
TopNewBestAskShowJobs

patrickdavey

1,366 karma · joined October 2, 2012

snowpool.org, blog.psdavey.com
submissionscomments
patrickdavey··on Phobos's orbit and its apparent motion across the Martian sky
That's no moon
patrickdavey··on A hacking and disinformation team meddling in elections
Did you read Mindf*ck? Fascinating book. I'd be so so angry about Brexit after reading it if I'd been affected.
patrickdavey··on 7.8 magnitude earthquake hits Turkiye
Having lived through the Christchurch quake, this was the thing I hadn't properly appreciated. It's a sequence, so, you can expect literally thousands of quakes after a big one like this.

It's completely and utterly headwrecking! Every time one happens you don't know whether it's going to build into a big one.

My heart goes out to them.

patrickdavey··on U.S. military shoots down suspected Chinese surveillance balloon
Yip, I just stopped reading news for a year 2 years ago. Then I restarted again last year, and now I've stopped again. Definitely better for my mental health! (and you see enough headlines here and other places that I still feel pretty informed)
patrickdavey··on ChatGPT Plus
I find it slightly interesting that it's US only to begin with.

Imagining a future where use of technology like this was restricted by geography. It'd give US workers an _insane_ advantage.

patrickdavey··on An Overview of Ruby on Rails 7.1 Features. Part III
Attributes do support defaults. You can absolutely do:

   attribute :my_time_at, :datetime, default: -> { Time.now }
   attribute :persisted, :boolean, default: false

What I like about the types is that it will automatically coerce the messy user data automatically (this is what AR is doing under the hood anyway right?), you can just be more intentional about it.

Anyway, glad you're happy with portrayal :) I definitely agree with you on the "freeze, read-onlyness" etc. being good things to have!

patrickdavey··on An Overview of Ruby on Rails 7.1 Features. Part III
Have you looked at ActiveModel::Attributes ? That coupled with ActiveModel::Model makes for simple form objects quite nicely. Also, you can write your _own_ ActiveModel::Type so you can require that a particular attribute is a particular (business) model. I've been finding it a very nice way to write form objects.

It's a bit dated now, but, I did a short presentation for my local ruby meetup and the slides are here [1]

1. https://slides.com/patrickdavey/rails-5-2-attributes-api#/25

patrickdavey··on Ask HN: What is your new year's resolution?
Firewatch I enjoyed, I'll have a look at the others.

Thanks :) happy new years

patrickdavey··on Ask HN: What is your new year's resolution?
Stop reading 24 hour news.
patrickdavey··on Ask HN: What is your new year's resolution?
Hah! Love your nick! I haven't played games in years, but, I really enjoyed half life and the bioshock series (and portal, absolute classic).

Any others to recommend in that vein?

patrickdavey··on Tech execs who raise their kids tech-free or limit their screen time (2020)
Love this idea. Could you just expand a little on PlayOS? It's this running an underlying OS which then boots into a bash console running your repl?

Just curious, would love to do something similar (or use yours if it was available!)

patrickdavey··on On the insanity of being a Scrabble enthusiast
Also, consider just printing out the legal two letter words and leaving them there for anyone to check ... Saves on the "win by memory" and allows more tactical play by all.

I've been playing like that with my parents (in their 80s) and it makes for a much more fun game!

patrickdavey··on Ask HN: What to do with a coffee plantation with about 8000 trees?
How do you end up in a situation where your dad, knowing nothing about coffee plantations, ends up buying one and then leaving it to you?
patrickdavey··on What happens to a smartphone when it gets stolen?
This was great! It prompted me to check what the story is for Android/Google. I hadn't realised there's https://www.google.com/android/find which lets me find/lock/wipe it.

Also extra handy: I can make it ring _even if silent with my one-plus physical silent switch on_. I'd not actually worked out how to do that before, and it has been very annoying the odd time I lose it and it's silent.

Very good.

patrickdavey··on What happens to a smartphone when it gets stolen?
Just curious - what's wrong with backup codes?
patrickdavey··on Lastpass Security Incident
That is a neat enumeration, but, the question did ask for classes and inheritance which this definitely isn't.

Would you really just ignore the requirements and give the simplest starter as a way to start a conversation?

patrickdavey··on Keyboard shortcuts for GNU Readline
If you don't already know about it: combining fzf with Ctrl-r is _amazingly good_ https://github.com/junegunn/fzf it's a fuzzy finder combined with reverse history search..
patrickdavey··on Top 70000 educational YouTube channels in 20 languages by category
Awesome - wish it had Dutch!
patrickdavey··on Linode Outage in Dallas, Fremont, Atlanta, Newark, and Toronto Data Centers
We ended up rebooting our server, that brought everything back up again.
patrickdavey··on reMarkable 2
I own an rm2 and love it. However, I also love my Kindle and if I had to choose I'd choose the Kindle.

When my Kindle (or RM) dies, I'll almost certainly replace it with the new writable Kindle, especially as I assume it's backlit which I feel is something really missing from the RM.

patrickdavey··on Show HN: The Unix Pipe Card Game – teach kids basic Unix commands
I would love a Kickstarter (or something similar) with this. Would totally buy a nice set.
patrickdavey··on Airbnb on Android just send a “Test, Test dev" push notification message
Got it in Italy
patrickdavey··on Twitter says Musk’s spam analysis used tool that called his own account a bot
If I bought Twitter shares today ($42) would Musk be forced to also buy my shares at $52 if the sale was forced through?
patrickdavey··on Ask HN: How to deal with children's online habits?
? How did you pull that off? Can they not just set their own DNS so you can't block them finding sites, and then if they're communicating over tor how do you even know what they're looking at?

Most impressive!

patrickdavey··on Ask HN: How to keep my daughter busy while tickling her curiosity
Oh that looks amazing! I just ordered a yoto [1] but that looks a lot more fun!

[1] https://us.yotoplay.com/

patrickdavey··on The math behind mind-reading tricks
The way I think about it (which I hope is correct): when you first chose your probability of guessing correctly was 1 in 100. It doesn't magically become 1 in 2 when the other 98 doors are opened.
patrickdavey··on Twitter CEO fires two top executives, freezes hiring
Tens of millions is only "pretty close to financial security". Wow.
patrickdavey··on One Humanity – DOOM 2 Level
This is probably a terribly silly question, but, to do this do I just buy DOOM2 on steam -> https://store.steampowered.com/app/2300/DOOM_II/ find the doom2.wad _somewhere_ and then run it as above?

And one more possibly even sillier question, on steam on OSX can you even download the files (because it's only available on windows platform?)

patrickdavey··on How I learned French in 12 months (2020)
Anyone know of this for Dutch?
patrickdavey··on Chris Lattner left Swift core team
I guess my question is: why is this tolerated? Isn't it just simple harassment so management have to actually do something (even if they don't want to?)
← PreviousPage 4 of 15Next →