Hacker News new | past | comments | ask | show | jobs | submit | more nknealk's comments login

If you’re open to it, can you share what resources you used to learn Django and htmx?


The Django docs are all you need. ChatGPT can help too.


What is your deployment setup like? Installing it all yourself on a VM, or using something more managed?


Personally, I have my own service I created for CI that builds and deploys my projects directly on VMs.

But you can package a Django app in docker and deploy on Fargate etc.


Can you please update the terraform docs for google batch? In [1] it’s really difficult to know what everything in the json configuration is under the base64encode() call. What levers can I pull? How do I run something more complex than hello world? Do I need my CICD to upload scripts to GCS and have the instance download them at runtime and hardcode that path into the batch script?

[1] https://cloud.google.com/batch/docs/create-run-job-using-ter...


It seems as though Google Batch does not have a native Terraform resource. The document in [1] seems like a workaround that leverages the Cloud Scheduler Terraform resource, but submit a job using the JSON configuration. The various fields that can be used in the JSON are within [2]. Regarding using GCS there is an example in [3]. I found more samples in [4]

[2] https://cloud.google.com/batch/docs/reference/rest/v1/projec... [3] https://cloud.google.com/batch/docs/create-run-job-storage#u... [4] https://github.com/GoogleCloudPlatform/batch-samples/tree/ma...


I think it’s slightly more complex than that. Apple included in their processor design custom extensions to ARM that alter things like memory order to make emulation easier [1]. It’s not just control over the software stack that makes Rosetta so performant.

[1] https://github.com/saagarjha/TSOEnabler


Nvidia could do the same


Which would only help them if they'd roll their own emulation layer instead of relying on what Microsoft has.

Nvidia is a software company, but i doubt they want to deal with making decades of windows binaries work.


Microsoft and NVidia have a history of collaborating to adapt Windows APIs to NVidia hardware. DirectX 10 was practically designed to NVidia's next-gen hardware spec.

If Microsoft is serious about ARM, there's no reason they couldn't work together to ensure the CPU is optimized for Microsoft's emulation layer.


In general Microsoft are in favour of doing anything that sells more copies of Windows and I have no doubt supporting an extremely fast Nvidia CPU on ARM is possible. It might never run software as well as x86 but maybe if it ends up being faster for games (which could be possible with MS and NVDA support) then people will buy it.


> Nvidia is a software company, but i doubt they want to deal with making decades of windows binaries work.

Isn't Nvidia already doing this with their drivers? Games are notorious for suboptimal or downright incorrect graphics API calls that get patched in the graphics driver on a per-game basis - at least for the AA games in the past.


In most financial models, the return investors demand on risky assets like stocks depends on the opportunity cost of the risk free rate [eg 1]. As the risk free rate goes up, the return investors expect on risky assets also goes up which pushes their price down.

[1] https://www.investopedia.com/terms/c/capm.asp


Yes. And I am questioning whether those models make sense.

Maybe they are from before 2008 when printing money was considered a "slight background noise" and not a doubling every few years like we see now?

https://fred.stlouisfed.org/series/BOGMBASE


All I want for Christmas is the ability to set multiple timers on my iPhone.


Can you seriously not do that?

There's a lot of shit I don't appreciate about Android, but setting as many timers as you want is a total no-brainer.


It’s been so long either they’re too embarrassed to add the feature after all these years or there’s some weird deeply embedded technical obstacle too scary to touch.


I guarantee it's a third option: When Apple has a bizarre, unexplainable limitation, it's because of a highly opinionated hyper-pure UX design decision.

Having multiple timers running is inelegant and sometimes confusing. So instead of giving users any agency in that situation, they just ban the very concept as a whole.

If they feel enough pressure, and they can come up with a satisfactorily simple UX, they will usually eventually fix the hole.


> So instead of giving users any agency in that situation, they just ban the very concept as a whole.

Of course, many apps on the app store offer this feature.


Annnd they just announced multiple timers.


Hilariously, you can set multiple timers on the Apple Watch, where screen real estate and battery are even more constrained.


Not ideal, but fairly easy to hand roll this with the new web push notification support. I support it as a component of a site I'm working on.

The main annoying part is iOS PWA's kill their service workers when off screen even when explicitly told not to via the `waitUntil` command, so you need to have a server running which handles keeping track of the ongoing timeouts and calls the push notification endpoints accordingly.

Code for that is here, https://github.com/JacksonKearl/push-simple. There's a Dockerfile, currently deployed via fly.io.


Timers requiring a connection to the internet are a non-starter IMO.


I agree it sucks, but iOS's service worker policy gave me no other option. Every other browser is just fine having the timeout running in the background, and I in fact have both codepaths running simultaneously so any other browser can work offline.

Funny that I provide a fully working code sample of how to do what the parent wants, explain the caveats associated with it, and get downvoted because Apple crippled their service workers... ok then, Hackers.


I think you’re getting downvoted because what you propose isn’t an adequate solution to what people find lacking in the iOS built-in apps. As you say, it sucks.


If I were on "People Who Only Are Willing To Use Built In Apps News" that would make sense.


Welcome to HN


I'd wager that this solution is definitely not in the "just works" department.


“Siri, remind me to check noodles (or whatever) in ten minutes” works when you’ve got another timer going.


Similarly “wake me up in 12 minutes”. But you get alarms instead of “timers”


I pay $70 for 1 Gb/s but I usually end up getting 800-900 mbps up/down when I run a Speedtest which is fine by me. I switched to centurylink fiber during the pandemic. Before that I was paying comcast $65 for 100 down / 10 up.

Seattle WA


Soccer.

For those in the Seattle area there are multiple adult leagues (Seattle RATS is what I play in). We play year round on turf, rain or shine. They’ve got beginners divisions and over 30s divisions. They also host a free Saturday skills clinic.


I live in Seattle, having moved from California. The thing that helped me more than anything was playing soccer outdoors year round. Rain or snow. Several times a week. The exercise more than anything helped me get over the dark and the grey. The fact that it’s a team sport and 10+ other people are counting on me to show up helps keep me accountable.


There’s a LAST_VALUE statement for this kind of thing that most databases support. Partition by sale person name order by number of products.


I actually think the yield is concerning. For fun, you can plug in your own assumptions to this calculator [0], but with assumptions below, the yield on bonds due 2028 implies a 20% chance of default.

Market price is 0.7/face value of 1/coupon of 3.375 (from the article), payments per year = 1 with 7 payments remaining (you could also do 6, depends on whether they've made a payment this year which I didn't bother looking up), recovery rate of 60% (assumption, the model is really sensitive to this input), and the 5 year treasury rate is around 2.97 percent which I used as the risk free rate.

[0] https://quantwolf.com/calculators/bonddefaultcalc.html


Thank you for quantifying that. I was thinking it meant about a 10% chance of default and about a 10% chance of bankruptcy, and I appreciate the correction.

10% or 20% is "concerning" from some points of view, but what I meant was that creditors still think Coinbase is more likely to be in business 5 years from now than to be bankrupt.


Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: