HNHacker News
TopNewBestAskShowJobs

vdm

607 karma · joined November 18, 2007

submissionscomments
vdm··on Just Simply – Stop saying how simple things are in our docs
please add "blazing fast" to this list
vdm··on Google Cloud Europe service disruption
I could not find the GCP equivalent to this from AWS:

"AZs are physically separated by a meaningful distance, many kilometers, from any other AZ, although all are within 100 km (60 miles) of each other."

https://aws.amazon.com/about-aws/global-infrastructure/regio...

vdm··on Learn Vim (2021)
you had me at

> 'ok, understand but Ide competent, knows many things, need more info before can do the thing'

vdm··on tcpdump is amazing (2016)

   tcpflow stores all captured data in files that have names of the form:

   [timestampT]sourceip.sourceport-destip.destport[--VLAN][cNNNN]
   where: timestamp is an optional timestamp of the time that the first packet was seen
https://github.com/simsong/tcpflow/blob/master/doc/tcpflow.1...

   .B t
   Prepends each filename with a Unix timestamp (seconds since epoch).
   .B T
   Prepends each filename with an ISO-8601 timestamp.
vdm··on tcpdump is amazing (2016)
https://tcpreplay.appneta.com
vdm··on SQLite-based databases on the Postgres protocol
ICYMI, similar concept for python https://dataset.readthedocs.io/
vdm··on “Expect tests” make test-writing feel like a REPL session
A similar approach with pytest and pdb https://simonwillison.net/2020/Feb/11/cheating-at-unit-tests...

This does get me writing tests sooner.

vdm··on Fake it until you automate it
looks like "Do-Nothing Scripting: the key to gradual automation" https://news.ycombinator.com/item?id=29083367
vdm··on AWS Permission Boundaries for Dummies
Thanks for sharing this perspective.

AWS IAM does have resource condition keys which allow matching resources by account, org, org path, and tag. Resources in a Cloudformation stack would be automatically tagged, for example.

https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_p...

vdm··on The Fundamentals of Control Theory
Feedback Control for Computer Systems

Philipp K. Janert

https://janert.me/books/feedback-control-for-computer-system...

vdm··on Have lots of AWS accounts
Chrome user profiles each have their own cookies and work quite well for this.
vdm··on TensorStore for High-Performance, Scalable Array Storage
TileDB?
vdm··on Emacs’s Builtin Elisp Cheat Sheet
What machine does not have /bin/bash
vdm··on AWS Lambda now supports up to 10 GB Ephemeral Storage
> lambda being stateless

/tmp is ephemeral in the sense that it dies with the Lambda instance, but it is also persistent between multiple serial invocations landing on that instance, even if the instance is frozen and thawed between some of those invocations.

The process memory state on the instance (set up during the Init phase) is also available between invocations.

https://docs.aws.amazon.com/lambda/latest/dg/runtimes-contex...

vdm··on U Chicago students demand Prof. Mearsheimer change views on Russia vs. Ukraine
https://andrewsullivan.substack.com/p/john-mearsheimer-on-ha...
vdm··on AWS S3: Sometimes you should press the $100k button
The warning should say "you have N million objects technically eligible for an archive storage class and hitting the button to transition them will cost $M".

Also S3 should no-op transitions for objects smaller than the break-even size for each storage class, even if you ask it to.

vdm··on AWS S3: Sometimes you should press the $100k button
https://www.google.com/search?q=site%3Ahttps%3A%2F%2Fdocs.va...

I gave vantage.sh 5 minutes and did not see anything for S3 that is not already available from the built-in Cost Explorer, Storage Lens, Cost and Usage Reports, and taking 1 hour to study the docs https://docs.aws.amazon.com/AmazonS3/latest/userguide/Bucket...

Most "cloud optimisation" products want to tell you which EC2 instance type to use, but can't actually give actionable advice for S3. Happy to be corrected on this.

vdm··on AWS S3: Sometimes you should press the $100k button
Athena supports regexp_like(). By loading in an S3 inventory this can match what a wildcard would. Then a Batch Operations job can tag the result.

Not easy, but is possible and effective.

vdm··on AWS S3: Sometimes you should press the $100k button
DeleteObjects takes 1000 keys per call.

Lifecycle rules can filter by min/max object size. (since Nov 2021)

vdm··on Store SQLite in Cloudflare Durable Objects
sqlite vfs on browser indexeddb: https://jlongster.com/future-sql-web
vdm··on Deleting an S3 Bucket Costs Money
This is not a "Transition cost", because it is not a transition lifecycle policy, rather an expiration lifecycle policy.

"Minimum storage duration charge" along with "Minimum capacity charge per object" is a property of an S3 Storage Class, not a lifecycle policy. Therefore this cost needs to be considered before selecting a storage class.

The charges for deleting before the minimum storage duration are documented for each storage class at https://docs.aws.amazon.com/AmazonS3/latest/userguide/storag...

Refer to the "Performance across the S3 Storage Classes" table at https://aws.amazon.com/s3/storage-classes/

vdm··on Deleting an S3 Bucket Costs Money
S3 Batch Operations list of Supported Operations[0] does not include DeleteObject or DeleteObjects.

0. https://docs.aws.amazon.com/AmazonS3/latest/userguide/batch-...

vdm··on Deleting an S3 Bucket Costs Money
This.

If you can select your objects with a lifecycle policy (by object tag or prefix) you don't need the LISTs either. The prefix can be "" to select all objects. Just be careful with that.

vdm··on Deleting an S3 Bucket Costs Money
"Requests & data retrievals" tab footnote, above the grid:

> LIST requests for any storage class are charged at the same rate as S3 Standard PUT, COPY, and POST requests.

I read this as LISTs do not cost double for infrequent access, even though other Tier 1 requests do.

vdm··on Deleting an S3 Bucket Costs Money
> you can also get an export of all objects in a bucket using S3 Inventory and run the output through AWS Batch in order to delete those objects

"S3 Batch Operations" sends S3 requests based on a csv file, which can but does not have to be from S3 Inventory. But S3 Batch Operations supports only a subset of APIs and this does not include DeleteObject(s). [0]

An AWS Batch job could run a container which sends DeleteObjects requests but only when triggered by a job queue which seems redundant here.

If I can't use an expiration lifecycle policy because I need a selection of objects not matching a prefix or object tags, I would run something with `s5cmd rm` [1]. Alternatively roll your own golang which parses the CSV and sends many DeleteObjects requests in parallel goroutines.

0. https://docs.aws.amazon.com/AmazonS3/latest/userguide/batch-...

1. https://github.com/peak/s5cmd#delete-multiple-s3-objects

vdm··on How MDN's Autocomplete Search Works
https://react-spectrum.adobe.com/blog/building-a-combobox.ht...
vdm··on Linux Hypervisor Setup (Libvirt/QEMU/KVM)
qemu on its own is indeed faster to iterate and learn with.

In production you probably want the host-vm and vm-vm confinement provided by svirt https://libvirt.org/drvqemu.html#driver-security-architectur...

vdm··on Elegant Bash Conditionals
I had this problem as well until I learned to use `type time`, to help me decide whether I need `man time` or `help time` (documenting the built-in)
vdm··on Spotify Optimized the Largest Dataflow Job Ever for Wrapped 2020
https://dataintensive.net/
vdm··on Kitty – A fast, featureful, GPU based terminal emulator
Do you have a browser? Clipboard? They're the things that keep me using X.
← PreviousPage 3 of 19Next →