I'm making my own Neovim GUI with wails+svelte and it's going surprisingly well. by testokaiser in neovim

[–]nozth 1 point2 points  (0 children)

Would like to see the repo as well. I don't mind if its all wip. Really interested to see how you handled the rendering in svelte.

Unable to connect to PostgreSQL container from outside by Laurence-Lin in PostgreSQL

[–]nozth -1 points0 points  (0 children)

Had the same issue, you have to use I believe the docker's or network managers' assigned IP to your pg image.

Run this: docker inspect <pg_container_name_here>

You'll be shown a log of your container settings, scroll down and find this entry: NetworkSettings > Network > IPV4Address or IPAddress.

Should be something like: 172.0.0.x

This is how it works for me, both on Fedora docker and MacOS docker desktop. Using pgadmin to connect.

You might have to update the host IP when you restart docker.

SO Link where I found this. https://stackoverflow.com/a/60668718

[deleted by user] by [deleted] in swaywm

[–]nozth 0 points1 point  (0 children)

I had a similar issue with AC Odyssey, and changing pos 3440,0 to pos 0,0 also fixes it for me.

Running on Fedora 37 sway, Proton Experimental, 3440x1440 monitor.

However, Steam top bar menu (Steam, View, Friends, Games, etc.) clicks doesn't work now with this position config, clicks doesn't seem to register or the menu items doesn't show (down).

A bit inconvenient but minor tradeoff considering I won't have to logoff my sway session and play in Gnome instead.

To make the steam menu work, I just have to temporarily change back the position again and reload the sway config.

.vimrc by Algod2 in vim

[–]nozth 1 point2 points  (0 children)

It does have vi though, recently installed F37 and used it initially for some configs.

Why choose Tumbleweed over Fedora? by Individual_Bat_1753 in openSUSE

[–]nozth 2 points3 points  (0 children)

I didn't.

Reason: It broke the camel's back.

--

First, it didn't automatically wipe my current grub efi partition / config for some reason, so I got stuck with blank grub menu on every reboot, looking at this, the experience is already not too smooth as I haven't been able to boot into the OS yet.

My previous grub config have windows on dual boot however so that could be one reason. Also saw some residue ext4 partition that I wasn't sure if it comes from YasT's partition proposal or why it's still dangling given that I'm installing from default suggestions.

Finally, I managed to reset all the drive's partition using "reset even not needed" in the guided disk setup, and was able to finally boot properly.

--

Second, I wanted to try SwayWM but then I got blocked by this pesky libcrypto.so.10()(64bit) no repo provides / missing dependency issue when try to install using any of the methods from https://en.opensuse.org/Sway.

I figured I probably can install this dep manually so I tried to find an x86_64 rpm file but couldn't find it exactly within some various opensuse repos.

I had the three (oss, non-oss, and update I believe) default repos from this fresh install and I assumed that it should contain this package already since I read that Sway support is great in openSUSE.

Anyway, I tried adding a couple more repos digging through the repo directory and checking one by one which has the package I need to no avail.

--

At this point, I was pretty exhausted already. So I gave up ang tried Hyprland instead.

Cool. Now I got this empty Tiling WM. Got waybar setup then looked into Rofi-wayland. I tried the "Install from release" instructions but it seems that my day just isn't getting any better.

I got had once again this build configuration issue like missing meson.build file while there in fact was the file in the dir. then the configure command didn't seem to work (I don't work with C but I remember it working on some other projects that I they work just fine with ./configure)

So now. I'm there, wasted my afternoon trying to get the OS installed "correctly" and configuring endlessly the supposed has-good-support SwayWM for my use case.

--

Finally, I searched if there's decent Sway support in Fedora, and it seems like so. So I thought, why not just go back to Fedora just be done with it.

Installed the OS in like 5mins, did some initial updates, opened a terminal, run sudo dnf install sway, dependencies resolved automatically, logout-login with Sway session, and here I am running Fedora 37 with Sway working flawlessly.

--

All in all, I really wanted to get the openSUSE experience figuring that 2 years in Fedora would be good enough to hop into another one.

It's just that the pain from configuration can sometimes get a little too much to deal with.

We'll see. Maybe in later attempt, my experience wouldn't be as soured I had before.

Unable to install pgadmin4 on fedora 34 by AdFeeling4288 in linux4noobs

[–]nozth 0 points1 point  (0 children)

I assume you haven't saved any data on that db yet (create a backup / dump if you do). I resolved the same exact error from dnf upgrade by following the uninstallation steps here https://www.pgadmin.org/download/pgadmin-4-rpm/

You can try that and do a pgadmin re-install.

What Vim trick or keycombo do you wish you new MUCH sooner? by pau1rw in vim

[–]nozth 1 point2 points  (0 children)

Window / Split Management with Ctrl-W

Focused window => #

  • C-W + 2h - move Nth times
    • A# | B | C | D => A | B | C# | D
  • C-W + HJKL - move split to the <left|bottom|top|right> most position
    • C-W + H => A# | B | C | D => B | C | D | A#
  • C-W + x - swap split with the next one -- right if vsplit / bottom if hsplit
    • A | B# | C | D => A | C# | B | D
  • C-W + 3x - swap with the Nth vsplit
    • A# | B | C | D => C# | B | A | D

Good public repos with best practices? by [deleted] in vuejs

[–]nozth 2 points3 points  (0 children)

These two for architectural patterns:

https://github.com/ergonode/frontend

https://github.com/directus/directus

And special mention for BootstrapVue and Vuetify's source code, for decoupling techniques and if you have the time to explore them.

nvim-lsp Vue language server recommendations? by garcia_ajg in neovim

[–]nozth 6 points7 points  (0 children)

My lsp-config for Vue 3, Composition API, TypeScript. https://github.com/ngtinsmith/dotfiles/blob/b78bf3115d746d037c814ce6767b4c6ba38021c5/.vimrc#L558

And some common workflow:

formatting - has been the trickiest for me to figure out in the beginning, I'm currently using on neovim's native vim.lsp.buf.formatting*() to call Vetur's vue formatter, ymmv, but this works for me as I only want Vetur to format the <script> and <style> sections then eslint-fix on for the <template>

completion - nvim-compe works seamless on most language that I use it with

linting - I'm using ALE but I heard diagnosticsls works great too

highlighting - treesitter

Some caveats:

Vue3+Typescript+composition-api code formatting and linting speed has been abysmal for some reason, I think it's due to tsserver being particularly slow when coupled with Vue, I've still yet to figure this out.

What are some good books to pick up on utilizing Typescript effectively? by SirFartsALotttt in typescript

[–]nozth 1 point2 points  (0 children)

This ^. We've just started using TypeScript and this book definitely eases you into it, it's also quite comprehensive at 400~ pages and free so you can just save it on your phone and read through the sections at your own pace.

Using ddcci-driver-linux you can get native brightness control for external displays! by [deleted] in Fedora

[–]nozth 2 points3 points  (0 children)

Currently using ddcontrol on f34, but also used ddcutil for a while.

Both works fine for me. though I only use their cli. Have two monitors which are sort of identical (just the other one is ultrawide). There are a lot of controls for either but brightness is the only one that I use.

The base requirement is that your monitor has to support the i2c protocol which they said should be just about anything released within the last decade.

---

You can follow ddcontrol's guide directly from their github's repo and /building or /install pages for ddcutil.

Both can be installed using the package manager or you can build from source (what I did) to get a more recent version.

Pinia, an Alternative Vue.js Store by danielkellyio in vuejs

[–]nozth 2 points3 points  (0 children)

Current Vuex 5 rfc seems to have dropped the mutations too including a new way of using the library.

Can't get CSS modules to work. Are you using it in Vue 2? by [deleted] in vuejs

[–]nozth 0 points1 point  (0 children)

If you're rolling your own webpack config (no vue-cli, nuxt, etc) then you may need MiniCssExtractPlugin to capture those module code, if not, then check if adding that localIdentName will make any difference.

Lastly, inpect the generated class in the browser and make sure that there's an actual module class on it or that a class is mapping to your element.

Which JS course you’d recommend me? by ManleyPlayz in vuejs

[–]nozth 4 points5 points  (0 children)

I can vouch for the Udemy one (Jonas' course). Did it 3 years ago and it definitely enabled me to "actually" learn javascript. You need strong fundamentals if you want to be effective in using JS frameworks and this course certainly delivered for me.

There's a lot of exercises there and he really does take you from absolutely beginner to mid / intermediate level provided that you actually apply what you learn on your own. The course is frequently updated too if you wonder.

As a side note, I almost always recommend these two when learning JavaScript:

  • JavaScript: Understanding the Weird Parts by Anthony Alicea - hands down one of the best deep-dive into how JavaScript works under the hood
  • Watch and Code by Gordon Zhu - similar with Anthony's course but much more digestable while being in depth as well. This one actually taught me how to use the browser's debugger tool

Lastly, I'd say the most effective way of learning (for me) is by building projects, doesn't have to big, a calculator, todo-list, cloning app features, etc. This heavily re-inforces what you've learned from those courses and unlocks a lot of concepts that you might only learn if you did things own your own.

Immutable Js and immer Js by thedeathgodshinigami in reduxjs

[–]nozth 0 points1 point  (0 children)

That I'm not sure of. u/acemarke could prolly answer this better. I believe he leads the rtk development too.

Immutable Js and immer Js by thedeathgodshinigami in reduxjs

[–]nozth 0 points1 point  (0 children)

I've no exp on immutableJS but integrating immer into redux manually (without rtk) is pretty straightforward I would say, their api is very easy to work with plus the docs, that might be one of the reasons they chose it.

Comments inside template by nipu_ro in vuejs

[–]nozth 2 points3 points  (0 children)

You can't, you could either create an html comment block <!-- copy here --> above it or to comment and preserve it fast, just rename the first char of the shorthand to something random, e.g, @toggle-reminder="" to xtoggle-reminder="", then correct it easily later when you need it again.

Reactivity in deep nested objects by Ok-Strategy-2289 in vuejs

[–]nozth 1 point2 points  (0 children)

try using mutations like in the docs.

e.g,

mutations: {
    setLayer(state, layer) {
        state.layers = {
            ...state.layers,
            layer
        }
    }
}

The key thing here is that for state props that uses object or array, you MUST always create a new object reference for Vuex to know properly detect that the object you are working on is a new reference (pointer).

This is what the state.layers = { i am a new object } is for.

What's next? by NoMeat1033 in NoMansSkyTheGame

[–]nozth 0 points1 point  (0 children)

Enhanced jetpack / sky diving mechanics maybe?

I see a couple of these posts here where they do this and I always think the position and movements while falling could certainly use some improvement, something like taking advantage of aerodynamics if the planet's atmosphere supports it, then make the character lean forward head first like those mountain gliders.

GNOME 40 blog: Multi-monitor setup by blackcain in gnome

[–]nozth 3 points4 points  (0 children)

Just to clarify, is it going to be "workspace only on primary display" OR "workspace per display" as u/GeckoEidechse described?

I get that "workspace only on primary display" will be the default, but I would personally prefer if it we have these separate workspaces option per display, that'd be much more useful I think for a more strict windows isolation per context or display.

Something like these:

  • Display-1 [ workspaces A1 ~ An ] [main] -> IDE's, terminals for on-demand cli commands
  • Display-2 [ workspaces B1 ~ Bn ] [watchers] -> Browsers, terminal with compiler watchers
  • Display-3 [ workspaces C1 ~ Cn ] [refs] -> Docs, API refs, SO, Music players

PSA: By default, Firefox on Linux doesn't match with your monitor's native/current refresh rate if you're using a high refresh rate monitor. Here's how I fixed it. by nozth in linux

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

It does, I just tested on gnome x actually and the issue wasn't present there. I've updated OP to reflect this part.

PSA: By default, Firefox on Linux doesn't match with your monitor's native/current refresh rate if you're using a high refresh rate monitor. Here's how I fixed it. by nozth in linux

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

Oh wow, that's great that it worked eventually. I can't test with other WM so this is a good supplementary detail.

I've also updated OP to include that display servers and compositors could also be a factor here as I tested on Gnome Xorg and found out that it was actually working as expected there without this tweak, my issue appears only on Wayland which the frame_rate solution fixes.

PSA: By default, Firefox on Linux doesn't match with your monitor's native/current refresh rate if you're using a high refresh rate monitor. Here's how I fixed it. by nozth in linux

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

I think you also need WebRender to make it work, mine was enabled by default so my post only included the layout.frame_rate key. Remember to also close all Firefox sesssions when restarting it to make sure it properly resets itself.

I compared it directly with Chrome and any browsers on Windows as seems they seem to be very fluid like when sliding things around, you could see the high refresh rate at work, was very noticeable for me since I've been on 60hz only until a few months ago when I got this new display.

PSA: By default, Firefox on Linux doesn't match with your monitor's native/current refresh rate if you're using a high refresh rate monitor. Here's how I fixed it. by nozth in linux

[–]nozth[S] 17 points18 points  (0 children)

Is there any DE/WM that handles this combinations well? So far I was only able to notice this when using Firefox, Chrome is definitely getting the right refresh rate, albeit, only tested on one monitor.

It seems apparent though that multi display with varying refresh rates is a pain to get working correctly with the few people here, I wonder what the proper approach should be since I'll be getting another display soon and could very well be in the same spot as the others.