10

cross-posted from: https://lemmy.world/post/41297887

I really wanted a HTML live reload plugin that has statusline integration and does not depend on entire chromium to create a simple web server. I couldn't find anything I'd like so I've decided to make my own plugin. I was kinda afraid that implementing websockets in lua would be terrible task but it turns out I didn't need to, because SSE exists. HTTP is simple, watching for file changes as well so I got to work. Result: Very small (Less than 500 lines of code) plugin that launches in 0.1-0.2ms! (It's amazing what you can do when you don't need to load whole V8 from Chromium to serve a simple webpage. I also made support functions for statusline of two popular distors: NvChad and AstroNvim but you can also launch it from cmds if you prefer.

Since I'm kinda new to nvim & lua scripting I'd appreciate any feedback on what could be improved or just done better. For now I plan to add more features inspired vscode's live-server extension although it most likely won't be exact copy of that extension.

Link:

GitHub Repository

14
submitted 3 months ago by hypertown@lemmy.world to c/neovim@sopuli.xyz

I really wanted a HTML live reload plugin that has statusline integration and does not depend on entire chromium to create a simple web server. I couldn't find anything I'd like so I've decided to make my own plugin. I was kinda afraid that implementing websockets in lua would be terrible task but it turns out I didn't need to, because SSE exists. HTTP is simple so, watching for file changes as well so I got to work. Result: Very small (Less than 500 lines of code) plugin that launches in 0.1-0.2ms! (It's amazing what you can do when you don't need to load whole V8 from Chromium to serve a simple webpage. I also made support functions for statusline of two popular distors: NvChad and AstroNvim but you can also launch it from cmds if you prefer.

Since I'm kinda new to nvim & lua scripting I'd appreciate any feedback on what could be improved or just done better. For now I plan to add more features inspired vscode's live-server extension although it most likely won't be exact copy of that extension.

Link:

GitHub Repository

1143
Local bus (lemmy.world)
17
submitted 11 months ago by hypertown@lemmy.world to c/eternityapp@lemdro.id

Most instances now support video upload.

986
Dream job! (lemmy.world)
12

Hello, for a while now I try to figure out very poor performance in Ghostwire: Tokyo when ray tracing is on.
I tried to run this game on both Windows and Linux and the RT performance difference is huge. (45 FPS vs 15 FPS).
My hardware is R5 2600 6c12t CPU and RX 6700 XT so not too old not too new. I was hoping for someone with the same GPU could confirm the same issue and/or maybe point to solution.
There's also a few very weird things I also noticed that happen when I turn on ray tracing:

  1. When I move (or open game) the CPU spikes to 100% and game often freezes for a 2-6 seconds. CPU spike also happens when I break some objects or just environment changes. It feels like the issue is with textures loading but how could this be connected to ray-tracing?
  2. Trying to just hold still for a few minutes will result in normal CPU usage. GPU goes to 99% but power draw is around 150W. (Card under heavy load can pull 195W and it does so in Windows). But still performance is bad. No more than 15 FPS compared to running game on Windows 45 FPS with same settings.
  3. Very laggy in start menu. Like 4 FPS.

More detailed info about my system:

OS: Manjaro Linux x86_64
Kernel: Linux 6.13.5-2-MANJARO
CPU: AMD Ryzen 5 2600 (12) @ 3.40 GHz
GPU: AMD Radeon RX 6700 XT 
Memory: 31.27 GiB
Mesa: 24.3.4-arch1.1
Proton: I tried GE, Experimental, Hotfix.
137
submitted 1 year ago by hypertown@lemmy.world to c/privacy@lemmy.ml

cross-posted from: https://lemmy.world/post/26233189

"Android System SafetyCore’ claims to be a ‘security’ application, but whilst running in the background, it collects call logs, contacts, location, your microphone, and much more making this application ‘spyware’ and a HUGE privacy concern. It is strongly advised to uninstall this program if you can. To do this, navigate to 'Settings’ > 'Apps’, then delete the application."

If you don't want to navigate android settings you can also simply uninstall it from the Play Store https://play.google.com/store/apps/details?id=com.google.android.safetycore

Additionaly you can install this placeholder app to prevent Google from reinstalling it every time it updates: https://github.com/daboynb/SafetyCore-placeholder

141

"Android System SafetyCore’ claims to be a ‘security’ application, but whilst running in the background, it collects call logs, contacts, location, your microphone, and much more making this application ‘spyware’ and a HUGE privacy concern. It is strongly advised to uninstall this program if you can. To do this, navigate to 'Settings’ > 'Apps’, then delete the application."

If you don't want to navigate android settings you can also simply uninstall it from the Play Store https://play.google.com/store/apps/details?id=com.google.android.safetycore

Additionaly you can install this placeholder app to prevent Google from reinstalling it every time it updates: https://github.com/daboynb/SafetyCore-placeholder

[-] hypertown@lemmy.world 34 points 1 year ago

I still can't understand how I can install modern Windows or Linux on a 20 year old PC but the same can't be done with 4 year old phone... 8 year is cool but it's nothing compared to 20 years.

324
Assignment rule (lemmy.world)
399
Minecraft rule (lemmy.world)
426
2
[-] hypertown@lemmy.world 60 points 1 year ago

I honestly didn't know what else this could be until the guy said it's tooth 💀

[-] hypertown@lemmy.world 42 points 1 year ago

Renting a PC is insane in itself but on such terms it's even worse. I hope the FTC or some other regulatory institution will look into this.

[-] hypertown@lemmy.world 65 points 2 years ago

I love the fact that summery is longer than original message.

[-] hypertown@lemmy.world 100 points 2 years ago

It's just very unfortunate timing. Google removed some library Firefox depended on in NDK and it meant developers need to make significant changes to their packaging system. At the same time critical vulnerably was discovered in Firefox. On top of that, everything happened when main developer of Fennec was away from home and short on time. But from what I've seen on Fennec gitlab most of the work is done so you should expect update soon.

[-] hypertown@lemmy.world 32 points 2 years ago

I read that "from 2007". 2017 was like 3 years ago right? Right????

[-] hypertown@lemmy.world 197 points 2 years ago

Piracy is going to be as popular as ever.

[-] hypertown@lemmy.world 60 points 2 years ago

If translation layer can be banned with EULA how is wine not dead yet? M$ loves Linux or what?

[-] hypertown@lemmy.world 39 points 2 years ago

This reminds me of the story about some old dude's dog that always shits on my neighbor's sidewalk. One day neighbor saw that and run to that guy with scary look on his face. He started scolding old guy that he should clean after his dog and old guy respond he's too old to do that, his back hurt and stuff. The dog saw the whole thing and in a shame he just ate his own shit so poor old man didn't have to clean it up.

[-] hypertown@lemmy.world 41 points 2 years ago

I drive 25 years old car. It was pretty expensive when it was new so it has all the features I care about. I will not buy a new car until I'm forced to. Also the option to just turn on seats heating without having to pay monthly is quite a bonus.

[-] hypertown@lemmy.world 105 points 2 years ago

Well discord could offer P2P option with no limit...

view more: next ›

hypertown

0 post score
0 comment score
joined 2 years ago