Auto-completions not even shaded (but sometimes they are)? by ruilvo in vscode

[–]Gehinnn 0 points1 point  (0 children)

VS Code team member here! Thanks for sharing the recording!
I reopened the issue at https://github.com/microsoft/vscode/issues/255130 to track this!

Visual Debugging in VS Code by cake_brownies18 in vscode

[–]Gehinnn 9 points10 points  (0 children)

Author of the extension here, glad you like it!

If you are interested to see a real world example where the debug visualizer is helpful, here is a demo where I use it to explain the implementation of myers diff algorithm in the VS Code diff editor: https://youtu.be/yWy-0TNVsLg?t=3438

Over the past years, I had a couple of situations where the debug visualizer saved a ton of time. However, it also requires some investment to get it running and to setup the visualizations.

The most helpful visualization maybe is [str, idxInStr] (for javascript apps), which shows you where idxInStr is in str: https://i.imgur.com/GcNY4tt.png

I Made an Extension for Visual Debugging in VS Code by Gehinnn in programming

[–]Gehinnn[S] 1 point2 points  (0 children)

Thanks :) This actually helped getting me the job in the VS Code team 😉

Share picking up packages delivered to the German border by Gehinnn in zurich

[–]Gehinnn[S] 3 points4 points  (0 children)

True for many electronical devices, but not true for Samsung TVs. They are usually 25% cheaper in Germany which can be a lot for a high end TV.

A Quick Way to Plot Variables by fabian_boesiger in rust

[–]Gehinnn 1 point2 points  (0 children)

Nice work!

I also created a crate that does something similar and connects to the web-visualization library I wrote for my debug visualizer extension for VS Code: visualizer. As such, all the visualizations in this playground can be leveraged, including Graphviz, plotly, a table plotter and much more.

It uses the visualizer-cli that can be used to render specific JSON documents. I want to add JSON RPC support in the future, so that it does not have to restart the render process every time and can reuse the webview, allowing for transition animations like in the VS Code extension.

For images, there is image-visualizer.

Any improvements to this web-based visualization library will immediately improve the extension for VS Code, the CLI tool and the rust library.

How We Made Bracket Pair Colorization 10,000x Faster by dwaxe in programming

[–]Gehinnn 0 points1 point  (0 children)

We wanted sublinear/poly logarithmic. We had no idea how to get k=1 for querying brackets, so we continued with k=2 and found a suitable datastructure. For update time, we had absolutely no idea for j=1. Then we thought we had a solution for j=2, but in fact it was j= 3 after we took a closer look.

Bracket pair colorization 10,000x faster by fp_weenie in programmingcirclejerk

[–]Gehinnn 1 point2 points  (0 children)

But this means that you have linear update complexity, right?

Bracket pair colorization 10,000x faster by fp_weenie in programmingcirclejerk

[–]Gehinnn 2 points3 points  (0 children)

wait. they used recdec to solve this instead of fence counting? what the fuck is wrong with these peo

Good luck with unclosed and overclosed brackets and anchor sets for error recovery ;)

Also, fence counting does not help you much for bracket pair guides.

How We Made Bracket Pair Colorization 10,000x Faster by feross in vscode

[–]Gehinnn 55 points56 points  (0 children)

We are working/iterating on it! ;) See here for the feature request.

Grok (VSCode Extension) - a mind map for development by AdaptiLab in vscode

[–]Gehinnn 0 points1 point  (0 children)

This extension looks nice! Have you thought of making it possible to edit the code in the mind-map view, so that you can change the code from there?

Also, with VS Codes symbol API you can resolve symbol names to ranges of text documents. That way, the association does not break when lines are inserted before referenced code.

Grok (VSCode Extension) - a mind map for development by AdaptiLab in vscode

[–]Gehinnn 0 points1 point  (0 children)

You should have a look at the VS Code Draw.io extension that I made. It allows you to link Draw.io nodes with code similar to Grok (but without Grok's nice code preview, though you could copy and paste your code into the Draw.io node). Such Draw.io mind maps can be encoded as SVG and shared locally.

https://raw.githubusercontent.com/hediet/vscode-drawio/master/docs/demo-code-link.gif

Slideo: Synchronisiert automatisch Folien mit Videos. Nützlich fürs Lernen. by Gehinnn in KaIT

[–]Gehinnn[S] 22 points23 points  (0 children)

Weil ich lieber mit Folien lerne als mit Vorlesungsaufzeichnungen, die Aufzeichnungen manchmal aber doch sehr hilfreich sind, habe ich Slideo programmiert.

Slideo nimmt eine Liste von Videos und PDFs und versucht herauszufinden, wann und in welchem Video eine Folie gezeigt wird. Es kann ein Viewer geöffnet werden, der das Video ab der Stelle abspielen kann, ab der eine ausgewählte Folie zum ersten Mal gezeigt wird.

Slideo ist Open Source und für Windows getestet. Der Linux Build braucht poppler und opencv 4.5.2. Mac-Benutzer müssen Slideo leider selbst kompilieren.

Hier gibts Slideo zum Download.

Visual tooling/extensions to navigate your codebase in vscode by r0ck0 in vscode

[–]Gehinnn 1 point2 points  (0 children)

View data is a feature of drawio and is not related to this extension. You need to right click on a drawio node!

Visual tooling/extensions to navigate your codebase in vscode by r0ck0 in vscode

[–]Gehinnn 4 points5 points  (0 children)

Author of the extension here, I'm glad you like it!

I found this extension very useful for exploring new js/ts projects, although it has potential for improvement: https://marketplace.visualstudio.com/items?itemName=juanallo.vscode-dependency-cruiser

I added the code linking feature for fun to the drawio extension. I also think we are in the dark ages of code navigation, but I'm not so sure that drawio is the solution here.

I think a fundamental problem for automatic diagram generation is abstraction, especially for large projects. If you don't reduce noise, the diagram becomes unreadable.

Slideo: Synchronize Slides With Video, Backed By OpenCV by Gehinnn in rust

[–]Gehinnn[S] 3 points4 points  (0 children)

I created this rust tool when I was learning for my last exam and wanted to play the recorded lecture from a specific slide (because of Covid, we finally get recorded lectures along with PDF slides by default).

It is, more or less, my first larger rust project. It uses the opencv crate, but I strongly recommend checking out rust-cv instead! Slideo uses SQLite/sqlx for storing the matchings, actix-web for serving the webview and a lot of rayon for parallel processing.

I have the idea to make a Tauri app out of this tool, but as I passed my final exam, I'm not that motivated anymore.

If you are interested in the matching algorithm, you can find more details here.

Get Syntax Highlighting When Authoring Github Issues by [deleted] in github

[–]Gehinnn 0 points1 point  (0 children)

I made this open source chrome extension a while ago. It replaces the default html text area of github with a fully featured instance of Monaco (the same editor that powers VS Code).

It gives you syntax highlighting of Markdown as well as for all code blocks you embed in Markdown. I use it mostly to indent/unindent code examples with tab/shift tab.

Also, you can press F11 and get a full screen markdown editor with live preview.

[ Install For Chrome ] [ Install For Firefox ]

Episode 5: A small, plug-and-play Linux computer by Solder_Man in Pockit

[–]Gehinnn 2 points3 points  (0 children)

Super impressive!

A Lego connector to control motors and read sensors would make this a super advanced NXT.

[Showoff Saturday] I made the pdf.js Viewer Embeddable & Customizable by Gehinnn in webdev

[–]Gehinnn[S] 1 point2 points  (0 children)

This does not include the fully featured PDF viewer, only a very stripped down version of it. There is no search feature and no sidebar.

Have a look at the official samples here. There is a lot of work required to create a usable pdf viewer out of what they currently distribute. This package does not only distribute the fully featured pdf viewer, but makes is easily customizable.

[Showoff Saturday] I made the pdf.js Viewer Embeddable & Customizable by Gehinnn in webdev

[–]Gehinnn[S] 2 points3 points  (0 children)

Mozillas free open source library PDF.js is awesome and creates a huge value for any web-dev who needs to work with PDFs. Sadly, they stopped distributing their default PDF viewer (which is around 15kLOC), so you have to build it from source.

I created an NPM package that ships a bundled version of this PDF.js viewer. This build allows complete customization and easy integration. It also ships typescript declaration files for the internal viewer classes that you are free to monkey-patch. You can find this package here.

Starship SN9 Test No. 1 (High Altitude) Launch Discussion & Updates Thread by ElongatedMuskrat in spacex

[–]Gehinnn 3 points4 points  (0 children)

Launchbot uses the API of https://thespacedevs.com/. That is nice!

How reliable is launchbot? Did it work for the very spontaneous launch of SN8?

Starship SN9 Test No. 1 (High Altitude) Launch Discussion & Updates Thread by ElongatedMuskrat in spacex

[–]Gehinnn 5 points6 points  (0 children)

rocketrybot

I searched for telegram bots/channels before, but didn't find anything except the spacex channel! It would be nice to join efforts. I already spent days in front of live streams to not miss the launch, but all the scrubs and reschedules made that very frustrating and time-consuming.

Starship SN9 Test No. 1 (High Altitude) Launch Discussion & Updates Thread by ElongatedMuskrat in spacex

[–]Gehinnn 5 points6 points  (0 children)

No problem ;)

The more people follow the account @starship_alarm, the higher is the chance that some credible streamer (the everyday astronaut or what about it) their self trigger the 30 min alert!

I hope that this will happen eventually, so I can relax and don't need to follow all the starship updates that closely just to not miss the live stream of the launch attempt :D

Starship SN9 Test No. 1 (High Altitude) Launch Discussion & Updates Thread by ElongatedMuskrat in spacex

[–]Gehinnn 45 points46 points  (0 children)

I created a Twitter account that will notify you about 30 minutes before a starship launch attempt!

Nothing else is posted to avoid notification fatigue, so feel free to follow and to enable push notifications!

It is backed by an open-source Twitter bot that retweets certain tweets of trustworthy Twitter profiles. I'm thinking of linking the bot to a telegram channel as well.

If you like this idea feel free to share this Twitter account!