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

Will you send me an invite to tildes?

This tmux config turns F12 into a button to toggle the local leader key. You remote into tmux and hit F12, and now your leader key gets sent to the remote tmux instead of the local.

I don't use tmux locally anymore; but I still use the same leader key as tmux in wezterm, and I have a wezterm script to toggle it with F12 just like tmux.

Maybe you'll like it too?

  bind -T root F12  \
    set prefix None \;\
    set key-table off \;\
    set status-style "fg=$color_status_text,bg=$color_window_off_status_bg" \;\
    set window-status-current-style "fg=$color_dark,bold,bg=$color_window_off_status_current_bg" \;\
    if -F '#{pane_in_mode}' 'send-keys -X cancel' \;\
    refresh-client -S \;\

  bind -T off F12 \
    set -u prefix \;\
    set -u key-table \;\
    set -u status-style \;\
    set -u window-status-current-style \;\
    set -u window-status-current-format \;\
    refresh-client -S


Check out https://typst.app/ if you're looking to write a book yourself.

https://hypermedia.systems/ was written with it.


edit: the github page directly includes an example of PDF output, so maybe the site is just out of date.

----

I'm a bit confused; the site claims HTML and PDF outputs are "Coming soon"

what export formats are supported? HTML and PDF seem very significant to me, and are how I'd likely share most documents with non-tech inclined people.


I started using it a few days ago, but I've been under the impression that PDF has been possible in Typst since mid-2023 at least.

As of 0.4.0, Typst supports PDF, SVG and PNG outputs. The Typst team seem to be rapidly adding features, but I don't think HTML support is coming soon.


There is currently work done to support basic HTML support. PDF is supported since day one of the public release in march 2023 (before v0.1). The roadmap mentions tagged PDF which is mainly needed for accessibility.


Browsing this website gives me the urge to poop for some reason.


All You Need Is Kill is a great read. The movie, Edge Of Tomorrow, was based on this book.


You should give cinnamon a try. I think you would prefer it over gnome.


I actually use Linux Mint for this reason - Cinnamon is just awesome (except the random crashes every once in a while)

Docking support is great, but sound output needs to be swapped manually sometimes.


Will Cinnamon be fast and responsive on an old laptop with a 2nd-gen Intel Core i5 processor and 4 GB of RAM? And how is the support for NVidia GPUs?


check out chromebrew https://skycocker.github.io/chromebrew/ It's a package manager for chrome os (requires dev mode). It's intel cpu only though; but it has a lot of the dev packages you need.


Since debugging is over a TCP connection, you only have to start the nodejs process with the debug flag, and then plug the address and port into whatever debugger you're trying to use.


Also, visual studio community edition is free[1] can debug nodejs with an extension[2]. And the capability is integrated into VS Code[3] which works cross-platform.

Those and webstorm/intellij are the ones I have experience with. But most of the time, I just use the CLI debugger -- it's not hard.

[1] https://www.visualstudio.com/en-us/products/visual-studio-co...

[2] https://github.com/Microsoft/nodejstools

[3] https://code.visualstudio.com/


Which CLI debugger are you talking about? I thought one didn't exist


It has a built-in debugger that you start using `node debug /path/to/script`. See more here: https://nodejs.org/api/debugger.html


Jamie, I am getting about 10 errors a second in my console:

  Uncaught TypeError: Object sufio._xdWatchInFlight(); has no method 'apply' reader-29b4dd587f1ca6b5f0d639aac64ce9bf.js:1 e.(anonymous function) reader-29b4dd587f1ca6b5f0d639aac64ce9bf.js:1
Pretty print the error location from chrome:

  e.setInterval = function() {
        var e = t.call(arguments, 0), n = e[0];
        return e[0] = function() {
            try {
                n.apply(this, arguments)
  Uncaught TypeError: Object sufio._xdWatchInFlight(); has no method 'apply' (repeated 1589 times)
            } catch (e) {
                throw TraceKit.report(e), e
            }
        }, r.apply(this, e)
    }
The proxy at my work doesn't allow web sockets, and I think this might be related.

Also, I noticed that there are at least 3 different third party services being called (superfish, pusherapp and intercom). All of these are ancillary to the main functionality, right?

I haven't even got my feeds imported yet, and the app is already pulling down 2 MB. superfish in particular is super heavy. I think I would prefer a lighter payload.


Superfish? I'm not even using superfish. Intercom is so users can contact me and pusher is so I can push you new entries without requiring a reload.


yikes. It was a browser extension that uses superfish to inject ads. the extension allows you to disable this feature, but it still pulls in superfish. https://chrome.google.com/webstore/detail/orbvious-interest/...

I removed the extension and the payload is more like 1MB. Still seems hefty but not as much of a concern to me.

I also noticed that content wasn't gzipped. should be a simple matter to add that to nginx.


Good catch, will do!


What Pusher plan are you subscribed to and how's that working out considering the spike in traffic/simultaneous users?


Join us for AI Startup School this June 16-17 in San Francisco!

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

Search: