HN user

jiaaro

465 karma

- jiaaro.com - twitter.com/jiaaro - www.google.com/search?q=jiaaro

[ my public key: https://keybase.io/jiaaro; my proof: https://keybase.io/jiaaro/sigs/84K3fWqzsAqdiBr3x5QcOetIRCsprEfDL6ltJ6V46ac ]

Posts29
Comments197
View on HN
neon.com 10mo ago

Neon PostgreSQL Tutorial

jiaaro
1pts0
franz.defn.io 2y ago

Franz: Native Kafka Client for macOS, Windows and Linux

jiaaro
3pts0
github.com 4y ago

Show HN: Dynamesa – A Simple DynamoDB Client

jiaaro
4pts1
gist.github.com 10y ago

Show HN: Python/Swift interop

jiaaro
5pts0
www.jiaaro.com 10y ago

Blocking Content Blocking

jiaaro
1pts0
news.ycombinator.com 11y ago

Show HN: Simple Predictive Grocery App (in Swift)

jiaaro
1pts0
understandinglifeandpeople.wordpress.com 12y ago

How to Get Busy, Not Bored.

jiaaro
1pts0
www.ruddwire.com 12y ago

Software is for little people

jiaaro
1pts0
gist.github.com 12y ago

Show HN: Retirement Calculator in 8 lines of Python

jiaaro
1pts0
www.jiaaro.com 13y ago

The myth of pervasive Internet & why “offline mode” is the best free marketing…

jiaaro
1pts0
www.jiaaro.com 13y ago

Machine Learning for Humans: K Nearest-Neighbor

jiaaro
2pts1
www.jiaaro.com 13y ago

Machine Learning for Humans: K Nearest-Neighbor

jiaaro
4pts0
www.thewhicher.com 13y ago

7 Deadly Sins of A/B Testing

jiaaro
1pts0
shpaml.com 13y ago

Shpaml - A DSL (in python) for HTML generation

jiaaro
1pts0
jiaaro.com 13y ago

The Good Idea Lottery

jiaaro
3pts1
www.thewhicher.com 13y ago

Show HN: The Whicher: A/B test the Real World

jiaaro
20pts12
compile.ehotaru.com 14y ago

Coffeescript/Sass in the cloud - Compiled, minified, and concatenated

jiaaro
2pts0
www.iphone5specs.org 14y ago

Apple holding off on the iPhone 5?

jiaaro
1pts0
jiaaro.com 14y ago

Google+ is good, but don't switch [from Facebook] to it

jiaaro
8pts4
news.ycombinator.com 15y ago

Ask HN: Review My Questionnaire - Is this Good Market Research?

jiaaro
7pts8
jiaaro.com 15y ago

OS X Devs Fail Usability: Tabbing Hotkeys

jiaaro
3pts3
answers.yahoo.com 15y ago

Is JavaScript Strongly Typed or Loosely Typed?

jiaaro
1pts0
www.zurb.com 15y ago

Shadow Experiments: Super-fast Faux-3D CSS Animations

jiaaro
2pts0
news.ycombinator.com 15y ago

Ask HN: How do I take advantage of a competitor closing down?

jiaaro
24pts16
news.ycombinator.com 15y ago

Meebo looking for Node.js Developers?

jiaaro
1pts0
jiaaro.com 15y ago

Python/Javascript - Deferred Processing trick/hack

jiaaro
2pts1
sugru.com 16y ago

Sugru, the magical glue/sealer/rubber-coating

jiaaro
27pts6
deathbyprotools.com 16y ago

IPad has 1/2 the features I wanted in 2008

jiaaro
1pts1
moritheil.wordpress.com 16y ago

Google Hypocrisy and Its Defenders

jiaaro
1pts0

Exists is a useful tool that you should certainly know how to use. Whether or not it's faster than distinct depends on the rest of the query. I've optimized queries where distinct is faster than exists. It's been some time, but I think it boils down to the relative sizes of the tables and how many of the exists queries actually find something (and how often they find more than one something).

Also, some databases (like clickhouse) allow for `any` joins which avoid producing duplicate rows. For example:

    select author.*
    from author
    inner any join book on (
        book.author_id = author.id 
        and book.title like 'Book%'
    )

Random and round robin partitioning are the configurations being discussed.

The main point of the article is that low message volumes mean you can get unlucky and end up with idle workers when there is still work to be done

The linked article says, in reference to Oracle relocating its HQ to Austin:

Oracle, which was founded in Santa Clara, Calif., in 1977, later had its headquarters in Redwood City. The software giant, at the time of its move to Texas, said that relocation was to allow a more flexible approach to its workforce

The company had neither asked for nor received economic incentives from Austin to relocate, said city officials. Nashville pledged $175 million in incentives and the state of Tennessee $65 million to help build the Oracle campus in 2021

`str(queryset.query)` does not give you executable SQL. Query parameters are not escaped or encoded in that representation of the query. That escaping/interpolation of query parameters is performed by mogrify. I agree the name is odd, and I don't know why they use it other than "transmogrify" being an obscure word for "magically transform".

debug_toolbar and silk are both tools that show you what queries were executed by your running application. They're both good tools, but neither quite solves the problem of giving you the executable SQL for a specific queryset (e.g., in a repl).

If you use postgres, psycopg provides `cursor.mogrify(query, params)` which returns the actual query that will be executed . For example:

    cursor.mogrify(*queryset.query.sql_with_params())
Alternatively, you can set the log level of the `django.db.backends` logger to DEBUG to see all executed queries

On the other hand, these things see a lot more annual miles than consumer vehicles so the payback period should be shorter. I agree though, that probably it would require some kind of government involvement to get broad adoption.

Also, I imagine it's easier to find extra space for batteries in the the trailer than the tractor.

Regenerative breaking seems like a more important improvement though.

The blog post mentions that partitions are too low-level an abstraction to program against. Does that mean WarpStream doesn't use partitions?

Do you provide any ordering guarantees like Kafka does at the partition level?

And this is even true for some more exotic indexes where you might not expect it like exclusion constraints with gist. It’s much more expensive to maintain with a range as the first column and a highly selective id for the second column than the other way around (you want the highly selective column first)

Freedom Clock 3 years ago

As an American I can confirm that, not only do we say “4th of July,” both phrasings are in common use for any date of the year.

March 5th is more commonly heard in USA than 5th of March, but nobody would look at you funny either way.

One could argue that for some content, how to style it is just a suggestion anyway. Ie you could think of “our style guide for text content can be found at this address” as metadata for semantic HTML documents

Yeah - It does seem like the author is trying to apply too many lessons learned from managing computers and software to managing people.

Lots of people have already written programs in Python. Now their programs will run a little faster without any work. It’s like the barista saying, “coffee’s on me today.”

I live in Austin, and I frequently have to tell people I know, especially people from New York, that hardly anyone here talks the way they expect (I lived in New York for a long time before Austin). A related misconception: thinking it’s a desert.

Triangle Grids 4 years ago

I’m working on a triangle-grid board game, probably for playdate (wip builds: https://jiaaro.itch.io/3nclosure)

I was surprised to find play testers had a hard time internalizing the grid - e.g. making mistakes that result in losing the game in the opponents next turn.

Also, I used simple x, y coordinates for each cell with even-numbered indexes being the upward-pointing triangles and odds being the downward-pointing ones. Similarly odd-indexed rows were offset right by half a triangle to make them align properly

[edits]: added details

Author here - I wrote this to reduce the amount of time I was spending looking up simple things in the boto3 docs.

I don't use dynamo at my current job, but I hope this might prompt folks to think more about ergonomic client libraries. Also, if you're interested in dynamodb specifically, I'd be open to adding maintainers :)