Hacker Newsnew | past | comments | ask | show | jobs | submit | Doohickey-d's commentslogin

You can do this all in fly.io, no cloudflare container needed.

The whole selling point of fly is lightweight and fast VMs that can be "off" when not needed and start on-request. For this, I would:

Set up a "peformance" instance, with auto start on, and auto-restart-on-exit _off_, which runs a simple web service which accepts an incoming request, does the processing and upload, and then exits. All you need is the fly config, dockerfile, and service code (e.g. python). A simple api app like that which only serves to ffmpeg-process something, can start very fast (ms). Something which needs to load e.g. a bigger model such as whisper can also still work, but will be a bit slower. fly takes care of automatically starting stopped instances on an incoming request, for you.

(In my use case: app where people upload audio, to have it transcribed with whisper. I would send a ping from the frontend to the "whisper" service even before the file finished uploading, saying "hey wake up, there's audio coming soon", and it was started by the time the audio was actually available. Worked great.)


That's a good trick (the "get ready" ping). It reminds me of how early Instagram was considered fast because they did the photo upload in the background while you were typing your caption so that by the time you hit "upload" it was already there and appeared instantly.

It may be even easier to not even leave a vm in off. Using either the fly command or their api, you can kick off a one-off machine that runs an arbitrary script on boot and dies when that script ends.

yanked from my script:

    cmd = [
      "fly", "machine", "run", latest_image,
      "--app", APP_NAME,
      "--region", options[:region],
      '--vm-size', 'performance-1x',
      '--memory', options[:memory] || '2048m',
      "--entrypoint", "/rails/bin/docker-entrypoint bundle exec rake #{rake_task}",
      "--rm"
    ]
    
    system(cmd)
or a 1-1 transliteration to their api. You can of course run many of these at once.

For at least some codebases, I'm not sure this is a useful metric. Because you don't usually put the whole codebase in your context at the same time.

For example in my current case, there are lots of files with CSS, SVG icons in separate files, old database migration scripts, etc. Those don't go in the LLM context 99% of the time.

Maybe a more useful metric would be "what percentage of files that have been edited in the last {n} days fit in the context"?


Another option for anonymous mobile service: https://silent.link/

eSIM, global, variable pricing per country with per-GB billing, anonymous crypto payments and no KYC. Although it seems to not have some of the additional security features of the OP.


For another "clothing patterns as code" approach, see https://freesewing.dev/ - also with a more complete UI and editor.



This looks interesting but I’m struggling to find any examples of what this actually entails/produces/looks like. Most of the guides are about setting up your environment, checking out code, etc.


So I've actually built patterns using their system. Basically you define a layout using JS and defining a series of points and offsets and lines. You can refer to variables such as body measurements or other dimensions for bags. https://freesewing.eu/ is their more "consumer" facing site where you can enter your measurements and then download sewing patterns sized for you specifically.

One of the other nice things they do as part of the pattern design process is testing the pattern makes sense at many "scales" and so you can actually define a "body" the size of a doll and use this for defining dolls clothing, or make really size inclusive clothing, there are members of the community with varying disabilities such as forms of dwarfism who otherwise struggle to find appropriately sized clothes.


This does happen: for example in Macbook repair, it is common to buy defective motherboards, in order to salvage the chips off them (which are apple-specific, hence not purchasable elsewhere). Those boards often come from China, and often have holes drilled in them, I guess exactly to prevent them from being repaired.

It's a shame, because some of those boards could (and would, they are valuable enough) be fully repaired by a skilled repair person. Instead, the chips are picked off and the rest goes to waste.

I did buy a batch once that didn't have holes drilled, and they all turned out to have all sorts of strange, often random issues, so I suspect those were RMAs that somehow "fell off the back of a truck" and escaped the drilling.


Why do you think the ones with holes didn‘t have the same defect?


There is this insane video where someone actually does repair one of the prototype boards that have been drilled

https://www.youtube.com/watch?v=reQq8fx4D0Q


Openai has a "flex" processing tier, which works like the normal API, but where you accept higher latency and higher error rates, in exchange for 50% off (same as batch pricing). It also supports prompt caching for further savings.

For me, it works quite well for low-priority things, without the hassle of using the batch API. Usually the added latency is just a few seconds extra, so it would still work in an agent loop (and you can retry requests that fail at the "normal" priority tier.)

https://developers.openai.com/api/docs/guides/flex-processin...


That's interesting but it's a beta feature so it could go away at any time. Also not available for Codex agentic models (or Pro models for that matter).


With ADSL: broken waterproofing somewhere along the line, water gets into the cables or connections == broken while it's raining.

Then you call their customer support, tech comes out, it's not raining anymore and everything works, and the problem doesn't get fixed.


Exactly what I am suspecting! I called so many times: nothing found all works as expected.

As for the starlink: I noticed that clouds or weather ( rain snow ) does not have a true effect. Must be the frequency is not absorbed by the water in the air or similar effects. Only hard blocking with construction or big canopies of trees is struggling.


It's an interesting form of spam how theres a link for an online gambling site just inline in the text.


£2,589 for an all-inclusive 50-day bus-cruise, even today, doesn't seem that overly expensive. (~£50/day).

So it's not just inflation, it's "that used to be cheaper".

I guess on the flipside, travelling by plane in 1957 (or even 1974), would have been much more than £2,589.


About twice as much. https://www.indianairmails.com/ai-bombay-to-london.html 1948 price was £141 one-way. This likely did not change much in the early years.


> travelling by plane in 1957 (or even 1974), would have been much more [expensive]

Not to mention a lot more dangerous.


Hmm. A long trip by a 1957 bus vs. a 1957 airliner? It’s not immediately obvious what would be safer to be honest.


Sorry I was unclear, I mean 50s or 70s air travel compared to present day air travel. (Which on reconsideration might not be particularly relevant haha)


Lot of hijackings still to come in 1950...


Do you really think there are enough hijackings to meaningfully affect safety statistics?


Not very much but there were some years where hijackings were 5% to 10% of air travel deaths.

https://ourworldindata.org/grapher/global-fatalities-from-av...


The problem is that the suspension would not be great back then.


(some android phones: my Pixel can, Samsung can't, although it seems that other Samsungs do have it.)


I installed another app on my S10 to enable this. It's called "Wi-Fi Hotspot" and it works pretty well


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

Search: