HNHacker News
TopNewBestAskShowJobs

Humphrey

686 karma · joined September 30, 2014

submissionscomments
Humphrey··on Gold price rises above $2k for first time
Or just buy the real thing? The problem is since we can't know the future, it's hard to tell if it's a dip or not. I've bought a small amount in the past year by deciding on a price that I'll buy at if it drops below that. It worked out for me, buy it could have equally not dropped or plunged. #prettyMuchGambling
Humphrey··on Gold price rises above $2k for first time
Whoops! As long as it's less than the rate of return I guess?

I managed to find a company that offers "pool allocated storage" for free, with an option to "cast" it to a shippable product for a small fee. Perhaps it's worth you shopping around for cheaper storage?

I wonder if that's where the programming term cast comes from.

Humphrey··on Gold price rises above $2k for first time
I guess it depends on whether the company with your precious metal in a vault chooses to honour your piece of paper or not. I guess the trick is to tap the "ship me my gold now" button before Mr Robot wipes their database.
Humphrey··on Gold price rises above $2k for first time
I bought some about 10 months ago as a practice investment, as I figured it was easier to understand than the share market and it had given an average 10%/year return over the past 10 years (well at least in Australian dollars). Kinda wish I bought more though, but who would have predicted a worldwide shutdown?

That said, the gold price has barely moved compared to how much silver has skyrocketed the past few weeks.

The question I'm pondering is, is the value of gold/silver skyrocketing, or is the real tangible value of the USD crashing? I guess only time will tell ️

Humphrey··on Changes to SameSite Cookie Behavior – A Call to Action for Web Developers
Please explain how service workers relate to third party cookies?

Surely service worker https requests are bound by the exact same cookie rules as any third party script, resource, etc?

Humphrey··on Changes to SameSite Cookie Behavior – A Call to Action for Web Developers
I got caught out by this when upgrading all our sites to Django 2.1, as that version sets SameSite: Lax by default.

So, I'm assuming that any Django 2.1+ site will already be compatible with this.

Humphrey··on Gitqlite: Query Git Repositories with SQL
This post reminds me of a product idea I've been pondering for a while: A versioned database backed by git.

It would only be useful for data that made sense to be represented in individual files (perhaps json files with the file name as the id), with an API that allowed the data to be accessed and written to in a similar way to other databases. Perhaps similar to a nosql database, but because it's in git, everything is versioned and can be reverted.

Humphrey··on Time to Upgrade Your Monitor
For me it all comes down to display size and density, and therefore out of all the monitors I've tried, I'd go 27" at either 5k or 2.5k resolution.

For me 27" is the perfect display size: - Any bigger and I find I have to move my head to much to be comfortable in the long term and I get a stiff neck. - Any smaller and I can't fit enough on the screen at once and my productive decreases.

2.5k (1440x2560) on a 27" monitor has pixels at a good size that most apps scale by default beautifully on.

5k is exactly double the density of the already perfect 2.5k, so (at least of MacOS) everything displays exactly as it does with 2.5k except really crisp!

Therefore, I now run the 27" LG 5k as my primary screen, and my old 27" 2.5k vertically on the side for all those status like things that it's good to see but don't require my focus. Also, since the size and "looks like" resolution is the same, I can drag windows between them without any changes and size/scale. It just works!

Humphrey··on Snowpack 2.0
I believe they are saying O(1) since it only builds the single file that you just changed and will never just build all your files. They also mention that it only builds the files as requested by the browser, so in terms of the compiler it would be O(1), however it would effectly become O(n) the first time you use it if you include all the individual requests the browser makes as a single unit.
Humphrey··on COVIDSafe
Yeah, that'd be great but according to [1] they have chosen to not release the cloud code for security reasons. It does appear that they are just uploading encounter data to s3, so I suspect it's not necessarily a complicated system.

[1] https://www.dta.gov.au/news/dta-publicly-releases-covidsafe-...

Humphrey··on Porting a React Front End to TypeScript
I'd disagree with that - and say this scenario is where TypeScript saves me time.

I just want to add a property to an object. All I have to do is add it to the definition, and TS will show me every location I have forgotten to set the Bar property, which means I can be confident it is set, so I do not need to write extra code that tests whether Bar is set.

Humphrey··on Porting a React Front End to TypeScript
Yes - there are some pain points - but my experience is that the 2x is worst case. It gets MUCH closer to 1x with experience, and I'd dare to say it will be closer to 0.75x over the long term.
Humphrey··on Python programming is drowning in red tape
Yes, Poetry is best-in-class package manager. I liked the idea of Pipenv, but in practice it just didn't work well. FYI, Poetry is just a fancy tool for managing your virtualenvs
Humphrey··on FCC will require phone carriers to authenticate calls by June 2021 [pdf]
Australian here.

Until this HN post it never occurred to me that you could spoof phone calls. While landlines used to get lots of spam calls, perhaps I've had just two of these calls to my mobile in my life. Each time I typed the number into google and found reports of that number being spam. And maybe less than 20 spam sms's.

Does this mean that other countries (such as Australia) do not allow spoofing of numbers?

Humphrey··on Chrome phasing out support for User-Agent
Interesting. We don't use UA to track customers, but it has been invaluable information for trying specific bugs. Eg, twice in the past 2 months, I've had to fix weird bugs that didn't make sense. The only way I was able to solve them was to look for patterns in which browsers and versions those who reported the bugs were using. Both turned out to be to do different iOS Safari cookie related bugs that only occurred in specific versions. Without logging the UA there would have been no way I would have been able to discover those bugs and create workarounds for those iphone users.

I'm all for preventing tracking, but I can't imagine a time where all browsers behavior so similarly that we won't have to write workarounds for browser bugs and differences. As a developer I can't imagine caring about Edgium vs Chrome, but it's important to know what the underlying engines are.

Humphrey··on Moto Razr 2019: A foldable smartphone with no display crease
Did anybody else remember calling these Gatorolla's?
Humphrey··on Electron apps cannot be submitted to the Apple store
Mozilla recently published a good write up on why they started using these undocumented CALayer API's in Firefox 69. The TLDR is that that these private API's allowed them to get up to 3x better battery usage in Firefox. The article also mentions that Chrome uses these same Core Animation API's.

https://mozillagfx.wordpress.com/2019/10/22/dramatically-red...

Humphrey··on TypeScript 3.6
I agree in part. I've also had the type battle with HoC... and with Redux is still pretty painful. I don't know if this is Typescripts fault though, or more to do with some of js magic that goes on. But, once you win the battle... having typed redux and HoC works great!
Humphrey··on TypeScript 3.6
Typescript feels like it's own language. Whereas python types are just optional extra information you can add (more like Flow does), and they are rather verbose and clunky compared to Typescript
Humphrey··on TypeScript 3.6
Yes -- so I've reverted back to putting my types in docblocks. The python type system makes code too messy.
Humphrey··on TypeScript 3.6
I've been using Typescript for the past year and it's definitely one of the best typing systems I've used (Rust might be up there too - once I've conquered the battle of the borrow checker). The way it handles nullable references and understands code to ensure I'm using values correctly, and the editor integration. Microsoft, I'm impressed!

Yes it takes me "slightly" longer to write code initially, but that time is recouped almost straight away by the intellisense suggestions, refactoring, and code checking. My code often "just works" the first or second time.

Therefore after using Typescript for a couple of projects, I was excited to start adding type hints into our backend Python code, but I was quite disappointed by the value that they added. Perhaps I'd just become spoilt by Typescript.

Humphrey··on Coffee Cups Are Next
Most of the coffee shops that I frequent offer an AUD 50c (US 35c) discount if you bring your own reusable cup. It works well!
Humphrey··on When to Use TypeScript – A Detailed Guide Through Common Scenarios
Recent Typescript convert here: I find Typescript a GREAT tool for those experimental projects. They are the ones that need constant refactoring as you build, which is where Typescript shines.
Humphrey··on 2018 Mac Mini Review
Many people. This is targeted at professionals who need a max with good performance. Eg. Software developers. I can imagine this being a popular device.
Humphrey··on Ask HN: Best alternate client to web-based Gmail? Now that it sucks
The main issue is performance -- so janky -- animations shudder. There is even a delay waiting for text to appear while I'm typing an email.
Humphrey··on Ask HN: Best alternate client to web-based Gmail? Now that it sucks
Alright -- I've got thunderbird running -- lets see how this goes!
Humphrey··on Ask HN: Best alternate client to web-based Gmail? Now that it sucks
> Which parts get in your way?

The slowness, lag, ugly font. Even scrolling is laggy. I'm just waiting for it to respond often. Sitting around waiting for the collapsible sidebar to collapse.

Humphrey··on Ask HN: Best alternate client to web-based Gmail? Now that it sucks
ha ha! Man that brings back memories!! It's weird how it "feels" faster, although, I think it actually takes longer for each page load.
Humphrey··on Ask HN: Best alternate client to web-based Gmail? Now that it sucks
Absolutely! I get that they have added in some cool new features under the skin (the auto suggest as you type is cool) but it's too many steps backwards to be worth it!
Humphrey··on Ask HN: Best alternate client to web-based Gmail? Now that it sucks
Sure -- FastMail seems like the way to go if you get to choose these things!
← PreviousPage 7 of 8Next →