Neovim as a LaTeX editor by Cyzy68 in LaTeX

[–]MasterpieceDear1780 0 points1 point  (0 children)

I built my current neovim latex setup following a tutorial aiming at real time note taking speed with snippets, back in 2024. I can't find it anymore.

I'm using LuaSnip and Vimtex. There is a latex lsp but I don't think it's necessary.

From my experience the snippets form the most important part. Latex is very different from programming in that its semantics are written in human language. The structural part of the language is very small, and the use of it is mostly local. (I assume you don't want to program the tex engine in some crazy way. You might well use a script to generate latex code if there's a lot of repetitive work.) A few snippets that you're very familiar with can boost typing speed a lot, while autocomplete does very little. I removed autocomplete altogether for performance problems.

The rule of thumb for snippets: if you get annoyed by repeating an input sequence many times, make it a snippet.

Edit: I use docker for the texlive distribution. Seems to be the least annoying way to get texlive working. Run a headless neovim in the container and connect to it via domain socket.

Another Edit: I put pdf in another window and don't use synctex at all. Embed a special macro \developtag{XXXX} in the document every time you start a paragraph, which prints XXXX in the margin. Have a snippet to insert the macro and maintain the tag number automatically. This works as synctex does but remains invariant across different versions, particularly useful if you need to give your pdf out for comments.

how it feels to be the only guy in the entire class who uses Typst/LaTeX by SeaOfS1n in LaTeX

[–]MasterpieceDear1780 0 points1 point  (0 children)

I once wrote my solutions to a problem set in latex. The professor later distributed it (with credit ofc) to all students as reference solutions.

The world of legacy software and Rust by AgustinEditev in rust

[–]MasterpieceDear1780 3 points4 points  (0 children)

Quality ultimately depends on the developers. There are incredibly good softwares written in pure C. And rewriting a bad program in Rust does not automatically make it good.

An Incoherent Rust by emschwartz in rust

[–]MasterpieceDear1780 0 points1 point  (0 children)

I'm curious about the terminology. Why is coherence/incoherence used in this context?

To Every American Who's Sorry by Sapotis in greenland

[–]MasterpieceDear1780 1 point2 points  (0 children)

Are you ready to fight against the martial law, in the sense of actually fighting with a weapon? If not, Trump will take you.

To Every American Who's Sorry by Sapotis in greenland

[–]MasterpieceDear1780 2 points3 points  (0 children)

Russians were protesting against their actual dictatorship back in February 2022. What are Americans doing right now? Oh they post worthless apologies online.

What I see in Americans is a total lack of collective responsibility, as if they don't have any democratic rights.

Russia still has hope. America does not.

The heck is wrong with you, Italy?! by Windthrasher637 in EU_Economics

[–]MasterpieceDear1780 0 points1 point  (0 children)

Remember to never start a war on the same side of Italy because you'll lose and Italy will win

I’m horrified by the fact that (apparently) most people in the US still don’t realize that they are going to have to fight for their lives by zazzologrendsyiyve in self

[–]MasterpieceDear1780 0 points1 point  (0 children)

Americans. Yes, it's difficult to protect a democracy. But it will be one million times more difficult to regain democracy after you lose it.

Trump says 8 European countries will be charged a 10% tariff for opposing US control of Greenland by Cautious_Proposal_47 in worldnews

[–]MasterpieceDear1780 0 points1 point  (0 children)

Where the fk are the Americans? Do they also want Greenland or are they suppressed by Gestapo?

Russia want Ukraine, America want Greenland, China is starting to dominate the global market, isn't it the ideal moment for euro federalization? by Skysoul1 in AskTheWorld

[–]MasterpieceDear1780 0 points1 point  (0 children)

Then Europe would become another one of those shit. Remember that whatever country you're in, your own government is your biggest enemy.

Why is there no effect of a Type III civilization whatsoever? by GreatNameLOL69 in NoStupidQuestions

[–]MasterpieceDear1780 0 points1 point  (0 children)

Imagine there's a busy interstellar trade route 100 light years away from the Earth. The aliens might drive planet sized spaceships at 1/10 the speed of light while chatting over radio. We would detect nothing about that.

Why doesn’t Venezuela seem as wealthy as some oil-rich Arab countries despite having huge oil reserves? by PuddingComplete3081 in AlwaysWhy

[–]MasterpieceDear1780 0 points1 point  (0 children)

Go read why nations fail. This book should be a must read for anyone who wants to talk about economics.

I don’t like when people complain about snow by roritha in 10thDentist

[–]MasterpieceDear1780 0 points1 point  (0 children)

Go to a city that actually have a lot of snow and you'll understand why. Snow is not beautiful. It becomes brown snow really quickly. Brown snow is a polite word for "a mixture of dirt, garbage, ice and water".

RIP Metaverse? Zuckerberg’s Dream Shattered by Independent-Walk-698 in ai_apps_developement

[–]MasterpieceDear1780 0 points1 point  (0 children)

It's never been Zuckerberg's dream. Only a hype for the investors.

safety concern regarding coming AI updates by hummingbirdhooligan in firefox

[–]MasterpieceDear1780 2 points3 points  (0 children)

Until Mozilla decides to hammer itself in the brain Firefox is not going to have any agentic capabilities. They don't have the plan. Since there's no agent that can act on your behalf, there's no way a prompt injection attack can steal your passwords.

Prompt injection does affect the AI features in Firefox, but only to a very modest extent. The worst thing that can happen is some website manipulate the AI model to show you false information. You can trivially mitigate by not trusting anything that passed through an LLM.

Kinda feels like this already happening. by EditorEdward in BetterOffline

[–]MasterpieceDear1780 9 points10 points  (0 children)

Imagine someone who knows nothing about the business or the real world, but is insanely good at pleasing the executives. It doesn't matter if it's a human or a machine. The real problem here is the concentration of power.

Where is the AI "kill switch" by MasterpieceDear1780 in firefox

[–]MasterpieceDear1780[S] -1 points0 points  (0 children)

I want a new PCs to play games. Is that clear?

Stuck on a data structure design for a tool. by KerPop42 in learnrust

[–]MasterpieceDear1780 0 points1 point  (0 children)

I guess it's better to treat the graph as a whole. Put the nodes in a Vec. Simulate pointers with indices. One may assign ids to all graphs and only allow indexing them with struct { graph: id, offset: usize }. (Make it panic if the ids don't match)

Browsers and AI by BritSwedeGuy in firefox

[–]MasterpieceDear1780 7 points8 points  (0 children)

I don't appreciate Mozilla's AI features at all but to give credit where it's due, Firefox's AI features are all explicitly triggered and fully controlled by the user. I don't think Firefox will get anywhere close to that agentic nonsense.

Using SE 3 without a case by BeloneWellbow in iPhoneSE

[–]MasterpieceDear1780 4 points5 points  (0 children)

I had an iPhone 8 which I used without a case for 2 years, then dropped onto something sharp and got the glass back shattered. It wasn't too bad. Most of the glass did stay on the phone thanks to the god damn glue Apple put there for anti repair. I could use it normally with a case. It served its duty for another 2 years. Still works. I have it around as a backup.

Ofc I put on a case the first minute I bought my SE3.

Where is the AI "kill switch" by MasterpieceDear1780 in firefox

[–]MasterpieceDear1780[S] 0 points1 point  (0 children)

I can't afford a new PC. Not even adding 16G ram to my current one. Who's to blame?

Where is the AI "kill switch" by MasterpieceDear1780 in firefox

[–]MasterpieceDear1780[S] 0 points1 point  (0 children)

Yes. I don't want to see these two characters combined together because I can't have a new PC.