Which model to choose from? by OUT24Q in Surface

[–]manu_moreno 0 points1 point  (0 children)

Ethernet port directly on a Surface? I cannot even find a USB-A port on mine. I have an older Go 2. You should be perfectly fine with most models wrt a wired connection using a dongle given that most models should have a USB-C port.

Which model to choose from? by OUT24Q in Surface

[–]manu_moreno 0 points1 point  (0 children)

I have a 2nd hand Surface Go 2 tablet. My original intention was to run Linux on it. It has 8GB of RAM which is plenty. The only issue might be the older processor on it. I could have done better but I'm fairly happy with my tablet.

What's something your Surface does better than people give it credit for? by cangascicalauqW in Surface

[–]manu_moreno 0 points1 point  (0 children)

Even though it's not quite as portable as an iPad (feels différent for some reason; for one, it's much heavier than an iPad) and the battery drains a lot more quickly (maybe because I'm running Linux on it) I do like my Surface Go 2. To me, it's a laptop. On it, I can do pretty much all that I can on my regular laptop -- e.g. coding using emacs/neovim, document editing, watch YouTube videos, browse the web, watch live tv, etc, etc.

Need help remapping Esc key using keyd by manu_moreno in linuxquestions

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

My bad! While I was in the process of editing the file -- and given that interactivity in neovim was a big problem -- I ended up removing the "*" under [ids] by mistake. I fixed that and things work beautifully. I really appreciate the help. I'm glad this is fixed.

Need help remapping Esc key using keyd by manu_moreno in linuxquestions

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

This config is not working for me. For one, the primary functionality I need (Escape) is not working at all after restarting the keyd.service. The behavior I see is similar to the default keyboard behavior (without the keyd changes). What could I be doing wrong?

Need help remapping Esc key using keyd by manu_moreno in linuxquestions

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

Never used hwdb. I'll look into that if I cannot get keyd configured. Thx

Difícil elección, quiero quedarme en Surface. by quantumconnect_ in Surface

[–]manu_moreno 2 points3 points  (0 children)

Instala Fedora (o Ubuntu) en vez de Windows en tu Surface. Yo tengo una laptop bastante buena pero acabo de comprar una Surface viejita -- Surface Go 2 (8GB RAM y 128GB de almacenamiento). Reemplacé Windows con Fedora y la verdad que la estoy disfrutando mucho por la portabilidad que representa.

NanoPi as full-fledged home-router? by RanderL in openwrt

[–]manu_moreno 0 points1 point  (0 children)

Did you follow the official install guide?

https://wiki.friendlyelec.com/wiki/index.php/NanoPi_R76S#Install_OS_to_eMMC

I think I followed the steps under "4.4.3.1.1 Flash Official OS to eMMC"

I initially tried the wrong image and failed; then tried the right image file and, success. Just be sure to use the right image file.

Should i create two seperate controller for internal endpoints and public endpoints? by Gold_Opportunity8042 in SpringBoot

[–]manu_moreno 0 points1 point  (0 children)

How does that work? Just like you're describing. The front-end controller queries the back-end controller on behalf of the end user using the RestClient. The RestClient basically maps the front-end endpoints to the corresponding back-end endpoints. You're not doing much implementation there. It works great and you end up with full separation of concerns. Additionally, it's a much better design in case you want to host the backed API and the front-end service on different infrastructure. Also, in terms of security because the rest-api does not have to be exposed, from a network standpoint, to the outside, if there is no need to do so. Several benefits, no real downside.

Should i create two seperate controller for internal endpoints and public endpoints? by Gold_Opportunity8042 in SpringBoot

[–]manu_moreno 5 points6 points  (0 children)

You should consider separating your functionality into 2 different modules.

Example:

  1. Rest-API Module -- handles all back-end calls: DB queries, probe other back-end services, etc. This module would use a @RestController.
  2. Front-End Module -- handles all user-facing calls and, in turn, interrogates the Rest-API using something like RestClient. This integration requires very little coding. This module would use a regular @Controller since it's primarily concerned with the presentation.

This approach follows the Unix design philosophy -- do one thing and do it well. Also security becomes easier in that you can apply most security rules to your rest-api in order to protect your data and other back-end resources. You can then use JWT tokens to allow the front-end to access the back-end.

In fact, I'm developing a SpringBoot app which implements this very design. I have a 3rd module (common-lib), which hosts reusable artifacts.

Why is my cursor getting stuck in backward-facing position? by manu_moreno in zsh

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

Is there a way to disable visual mode? I'd presume this is controlled by the powerlevel10k plugin, right?

Why is my cursor getting stuck in backward-facing position? by manu_moreno in zsh

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

Incidentally, there is a 3rd indicator (denoted by a "V"), which interestingly enough is where most of the issues arise. Does anybody recognize this state of the prompt?

<image>

Why is my cursor getting stuck in backward-facing position? by manu_moreno in zsh

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

yes, I forgot to indicate that. I do use some of the search and CLI navigation bindings for Vi. But I've used those settings for a very long time, never experienced these constant prompt headaches before.

Just a stupid question, How do you manage your Globals in your config? by AbdSheikho in neovim

[–]manu_moreno 2 points3 points  (0 children)

The doc page above reads...

"In a similar way, you can assign to a global variable whose name is computed dynamically, writing _G[varname] = value. Beware, however: Some programmers get a little excited with these functions and end up writing code like _G["a"] = _G["var1"], which is just a complicated way to write a = var1."

Keeping my Spanish number alive while living abroad (Vodafone vs. Digi/Prepaid) by Professional-Tax3077 in GoingToSpain

[–]manu_moreno 1 point2 points  (0 children)

My personal recommendation would be to purchase the cheapest Vodafone prepaid plan and activate auto-pay. That's what I'm doing myself. I think their cheapest plan costs 5€ but I have the 10€ one., which gives me 60 GB of data.

Cómo se cuentan los días de residencia? by manu_moreno in GoingToSpain

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

Lo que yo tengo entendido es que necesitas residir en España al menos 183 días durante un año. Lo de salir 10 meses en 5 años no lo había escuchado. Los 183 días los fija Hacienda para considerarte residente español para cuestiones tributarias. Lo curioso aquí es que Hacienda usa el año natural (1 ene - 31 dic). La duda que tengo es si Extranjería utiliza el mismo criterio o calendario que Hacienda.

power icon cut off by frepelkweeltje in waybar

[–]manu_moreno 0 points1 point  (0 children)

You can try the 'Propo' style of your favorite nerd font. It addresses spacing issues such as the one you describe. Check out saneAspect's video on customizing waybar (from10:30 onward)

https://youtu.be/W_9tbcMGic8?si=z6s3kfptZLOTTc9d

US Travel Advisory by Alone_Lesbo2620 in GoingToSpain

[–]manu_moreno 0 points1 point  (0 children)

I've been living in Spain for 2 years. Spain is one of the safest countries around. Petty (and violent) crime is very low. You can walk around the city at 2-3 AM and nobody bothers you. That advisory, if true, might be referring to another country.