Better HN
topnewbestaskshowjobs
Log inSign up

css

4,161 karma · joined Jan 22, 2016 (10y ago) · 497 submissions

https://chrissardegna.com
Submissions

comment 3mo ago · link · parent

I like the concept. I maintain something similar [0], a daemon-backed supervisor where each task is one command in its own PTY (builds, servers, agent sessions), rather than a persistent shell workspace.

[0]: https://github.com/reagentX/fleetcom

comment 11mo ago · link · parent

What's wrong with `imessage-exporter`?

https://github.com/ReagentX/imessage-exporter

comment 1y ago · link · parent

I love the concept of lexical differential highlighting [0] (discussed here [1]). It makes reading math so much easier, especially in dense code. However I don't know of any editor that implements a feature like this.

If you paste the following code into the example block in [0] you can see how useful this can be:

    while (b - a).abs() > EPSILON {
        let c = a + (a - b) * f_a / (f_b - f_a);
        let f_c = J(c);
        if f_c * f_b == 0.0 {
            a = b;
            f_a = f_b;
        } else {
            f_a /= 2.0;
        }
        b = c;
        f_b = f_c;
    }
[0]: https://wordsandbuttons.online/lexical_differential_highligh...

[1]: https://news.ycombinator.com/item?id=20414528

comment 1y ago · link · parent

I ran into this issue recently [0]. Apparently the integrated VSCode terminal sets its own (very high) cap by default, but other shells don't, so all of my testing in the VSCode shell "hid" the bug that other shells exposed.

[0]: https://github.com/ReagentX/imessage-exporter/issues/314#iss...

comment 1y ago · link · parent

Semi-related, one of the `imessage-exporter` contributors provided a great write-up on reverse engineering the handwritten and digital touch message protobufs [0]. The reconstructed proto files are [1] [2].

[0]: https://github.com/trymoose/handwriting2svg/blob/0eb56cf4582...

[1]: https://github.com/ReagentX/imessage-exporter/blob/beeb853b2...

[2]: https://github.com/ReagentX/imessage-exporter/blob/beeb853b2...

comment 1y ago · link · parent

The plist is probably a binary plist (header bytes `bplist00`) generated by NSKeyedArchiver, and then the specific data you need is encoded inside. Edited iMessages are stored in the exact same way. Luckily the plist itself is not that complex–but typedstream is pesky to work with.

comment 1y ago · link · parent

iMessage uses a very strange amalgamation of typedstream (message content), keyed archives (app messages, sticker data), and protobufs (Digital Touch, handwriting) for different features. I wonder what motivated all of those design decisions.

comment 1y ago · link · parent

Apple provides Messages for Business [0], but if you have a machine that can read the iMessages as they come in, you could use the library [1] that powers `imessage-exporter` as a bridge.

[0]: https://register.apple.com/messages

[1]: https://docs.rs/imessage-database/latest/

9.

Reverse Engineering Apple's typedstream Format(chrissardegna.com ↗)

127 points · by css · 1y ago · 25 comments

comment 1y ago · link · parent

Yes, or use the entry api: https://doc.rust-lang.org/beta/std/collections/hash_map/enum...

comment 2y ago · link · parent

If you want something a bit more robust and cross-platform, including support for the undocumented TypedStream-stored text data, you can use my open source software: https://github.com/ReagentX/imessage-exporter

comment 2y ago · link · parent

"666" is a slang term: https://en.wikipedia.org/wiki/Chinese_Internet_slang

comment 2y ago · link · parent

You can probably do this using the library: https://docs.rs/imessage-database/latest/imessage_database/

comment 2y ago · link · parent

The California Poppy release [0] of `imessage-exporter` is the biggest update yet. Most notably, it implements a novel `typedstream` deserializer [1], allowing it to understand the data stored in `NSAttributedString` binary data that is stored in the iMessage database.

I've spent a long time reverse engineering nearly every aspect of Apple's iMessage SQLite tables to build this program. As far as I know, there are no other tools that support the full corpus of iMessage features [2], including edited messages, app messages, reactions, text range formatting, and threads.

[0]: https://github.com/ReagentX/imessage-exporter/releases/tag/2...

[1]: https://docs.rs/imessage-database/latest/imessage_database/u...

[2]: https://docs.rs/imessage-database/2.0.1/imessage_database/me...

15.

Show HN: iMessage-exporter: a comprehensive CLI app and library(github.com ↗)

24 points · by css · 2y ago · 4 comments

comment 2y ago · link · parent

Awesome to see someone using my library [0] in the wild! Very cool use case.

[0]: https://github.com/ReagentX/imessage-exporter

comment 2y ago · link · parent

Cheers! It was fun to build.

comment 2y ago · link · parent

Hey, this sounds like an interesting problem. I am always looking for edge cases to test, if you have time would you mind checking if https://github.com/ReagentX/imessage-exporter works for you and if it crashes in that spot?

comment 2y ago · link · parent

Thanks for sharing my work!

comment 2y ago · link · parent

I wrote a tool for this: https://github.com/ReagentX/imessage-exporter
12345
17