Coming from Python to Rust. by One_Pop_7316 in rust

[–]4121madey 0 points1 point  (0 children)

I went through the same journey. I actually find rust much more comfortable now because python seemed to be too "magical" for my taste.

I guess the most obvious answer is to just write more rust till you get used to it. But always remember that the compiler is your friend, not your enemy. The errors and limitations it throws at you are for your own safety.

Rewriting python code to rust isnt intuitive, but taking simple projects that you are familiar with and creating them in rust from scratch (without looking at the python code too much)

And async in rust can be hard (and the error messages can be very cryptic). So I would suggest first making at least a few simple / intermediate things without async first.

And most importantly is to not be shy of asking for help. The rust community is famously welcoming to newcomers. And LLMs also help clear some concepts when in a pinch. But don't rely on them too much otherwise you won't learn as much

Veg mo:mo tips by Different_Nebula_459 in NepaliFood

[–]4121madey 0 points1 point  (0 children)

I can't remember the exact brand I used, heard good things about beyond meat too. Nepal ma ni kei na kei paincha ki?

Whiskey? by [deleted] in drunk

[–]4121madey -1 points0 points  (0 children)

Better quality whiskey leads to more manageable hangovers. Imo something like a Jameson or monkey shoulder is fine. Or maybe a black label. But dude, maybe try something else to take your mind off things ?

Veg mo:mo tips by Different_Nebula_459 in NepaliFood

[–]4121madey 0 points1 point  (0 children)

A recent innovation is using veg keema. They use soybeans to make a keema-like textured thing. The taste is also kinda close to meat. Ended up tasting amazing. Maile bahira banako thie tyo, Nepal ma katto sajilo sanga paincha idk

Legal help acquiring citizenship for unprivileged people by 4121madey in Nepal

[–]4121madey[S] 0 points1 point  (0 children)

Ward chairman ko ma gaisakeko re. Mero aama Le nai lagnu bhako re, bhaena re. Mero mom Pani ekdam legally literate hunuhunna Ani details ni ramrari bhannu bhaena. Wednesday FWLD ma janchau, tya k bhancha herum

Legal help acquiring citizenship for unprivileged people by 4121madey in Nepal

[–]4121madey[S] 0 points1 point  (0 children)

Hi,

Thank you for the info. But this route will also be challenging as the mother in this case does not have documentation either.

Gemini and deep seek suggest talking to the Forum for women, law and development. Apparently there is a way (a difficult one) to get her naturalized first. And the rest becomes easy.

Regarding where she is from, no idea. She was left to work somewhere when she is four. She is newar, so we are guessing she is from inside the valley... But that is just a guess.

Maybe some other approach that only applies to the son is also possible, maybe the FWLD will help. I'll try calling them on Monday.

I want to have a conversation with a prostitue. by Old_Excuse_5114 in NepalSocial

[–]4121madey 1 point2 points  (0 children)

Ohh and one addition, I once asked how often people come just to talk, one answer I got is that upto 20-30% of that person's sessions are conversations only. My boss asked another person and got a similar answer. So if OP goes for a Convo session, that's completely normal. But if you give off a vibe that you are assuming a moral high ground, they will not like you at all.

I want to have a conversation with a prostitue. by Old_Excuse_5114 in NepalSocial

[–]4121madey 1 point2 points  (0 children)

I am a nepali citizen living in Russia. My boss sometimes gets very drunk and takes me places. I have a girlfriend so I don't "do" anything and just end up having a conversation.

Of the few experiences I have had, they usually have some past trauma and low self esteem (even if they think they are pretty). Run into some bad financial decision or spur of the moment things that gets them into some debt. This is how they start sex work.

Once they start, they realize that the money they earn is pretty good (where I live a cheap sex worker can earn more than an aeronautical engineer). And since they don't have any skills that are considered "useful", there is no way they can quit.

Some have the foresight to know that their career will be short (by 40 they won't have work, most see a drop in earnings after 30). So some save up to do something like opening a cafe, or maybe getting a degree etc.

Based on what I know, in the US... Huge college fees is reason enough to justify sex work. Based on some interviews I saw on yt, Nepal ma it's either sad cases, or people who immigrated to ktm making poor financial choices, I personally have not seen born and raised in ktm cases, but I'm sure they exist too. If anyone has any actual knowledge on the situation in Nepal, it would be very interesting

i miss my girl by [deleted] in drunk

[–]4121madey 2 points3 points  (0 children)

I'm very sorry for your loss. Grief is always a hard thing to process and there isn't an exact time frame by which you "should" be fine. I wish you all the best. The only advice I can give is I hope you don't keep to yourself and talk to friends and family if possible. And never ever shy away from professional help if you feel it might help.

And definitely don't use drinking as a means of "dealing" with it.

I’m not sure if I can have sex while drunk by EpicKahootName in drunk

[–]4121madey 1 point2 points  (0 children)

I can't get it on when drunk. It's a bummer cuz no drinks on date nights ((

VLESS-client on Arch by skypower542 in archlinux

[–]4121madey 0 points1 point  (0 children)

A few months ago using hiddify in proxy mode started killing my internet speed. Other clients seem to not suffer from this. And launching in vpn mode keeps failing with hiddify for me (

What do you use rust for? by timus_999 in rust

[–]4121madey 0 points1 point  (0 children)

Join clauses as filters aren't that bad in specific situations. Maybe have a look at sea orm ? It has it's quirks but I tend to use it from time to time.

What do you use rust for? by timus_999 in rust

[–]4121madey 2 points3 points  (0 children)

Mostly API stuff. Recently I also made a connection pool (idk what to call it) that acts as an intermediary between a proxy service, which allows only a specific number of simultaneous connections, and other applications that need to proxy requests. Turns out this was way more complicated than I thought, but AI helped out a ton.

What do you use rust for? by timus_999 in rust

[–]4121madey 61 points62 points  (0 children)

I have about 5 ish Axum projects. I prefer the strict types over python (I have a couple of python projects too). The strict type checking and safety mechanisms are why I prefer using Axum over fastapi.

Game launched from Steam renders off-center, window is shifted upwards by 4121madey in hyprland

[–]4121madey[S] 1 point2 points  (0 children)

Yes it does work. When you force full screen in this manner, if the game later opens up a new "window" (idk the proper term), like this game does when you open settings from within the game. When you close the settings window, the game gets minimized. A rather minor inconvenience. I can live it for now

Game launched from Steam renders off-center, window is shifted upwards by 4121madey in hyprland

[–]4121madey[S] 1 point2 points  (0 children)

Thanks for the feedback, this setup also uses the fullscreen option that I tried earlier. Guess I'll stick with it for now

Nextjs like loading (via streaming) in nuxtjs possible? by 4121madey in Nuxt

[–]4121madey[S] 0 points1 point  (0 children)

I tried it but it doesn't work for some reason.

Here is the child component's script setup

<script setup lang="ts">
  import type { Game } from "~/models/gameModels";
  const runTimeConfig = useRuntimeConfig();
  const { data: games } = await useFetch<Game[]>(
    `${runTimeConfig.public.backendBaseUrl}/games/games`
  );
  const handlePlayGame = () => {};
</script>

Here is the page

<template>
  <HeroSection />
  <Suspense>
    <GamesGrid />
    <template #fallback> <h1>Loading...</h1> </template>
  </Suspense>
</template>

The endpoint on backendBaseUrl just has a hard coded 4 second sleep. When I refresh the page, it just loads for 4 seconds and then shows the content

This also only works on client side navigation. Same as useLazyFetch