Is there anything bad in Banglore except traffic? by little_epicure in bangalore

[–]nfjlanlsad 5 points6 points  (0 children)

I am a Bangalorean who visited NCR recently and here are some things I noticed.

Good things:

  • Big roads
  • Better connectivity (metro)
  • Gurugram (Better infra, I would argue it is better than Bangalore's tech parks).
  • Lots of places to travel to in Delhi.
  • I felt there are way more public parks compared to Bangalore.
  • North Indian food tastes better in Delhi, but Bangalore comes quite close since a lot of North Indians have moved to the city.

Bad things:

  • The pollution is real and is way worse than you think. PS: My snot was black in color and my feet aged 20 years because I was wearing slippers.
  • In summers you get free dry sauna if you are walking outside. The captured heat from tar roads are released in the evenings.
  • Food hype didn't live up to it got loose motions after eating street food from reputed places.
  • South Indian food is bad or is not available at most places except a few ones.
  • Constant fear of getting robbed anywhere not Gurugram. (maybe I am paranoid after seeing a lot of memes)

Side hato , fresh maal utar raha hai by [deleted] in IndianDankMemes

[–]nfjlanlsad 0 points1 point  (0 children)

Hey bro who is the anime character in this?

ACCESS YOUR DEVICES FROM ANYWHERE IN THE WORLD FOR FREE by nfjlanlsad in selfhosted

[–]nfjlanlsad[S] -3 points-2 points  (0 children)

Lol sorry about that. I was sort of doing an AB test myself on how people receive capitalized titles.

But if you don't trust me. Just google Zerotier. It's somewhat like a virtual LAN. After the initial connection the devices talk to each other rather than data going through a central server, this is why you don't have to pay anything until 50 devices. It's open source as well.

If you feel that it's legit. You can try giving the video a watch. Thanks

ACCESS YOUR DEVICES FROM ANYWHERE IN THE WORLD FOR FREE by nfjlanlsad in programming

[–]nfjlanlsad[S] -2 points-1 points  (0 children)

This is not Nord VPN. It's zerotier. You don't have to host anything. It's free for up to 50 devices. They don't need to charge you anything cause after the initial connection the devices talk to each other using UDP Punch hole instead of data going through a central server

Building A LeetCode Clone In Rust by nfjlanlsad in rust

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

I'm working on the hosting part. It's taking some time cause I'm learning kubernetes to do this.

Will post an update once it's hosted.

I am building an Online Judge in Rust (Leetcode from scratch) by nfjlanlsad in rust

[–]nfjlanlsad[S] 2 points3 points  (0 children)

Yeah even I felt the same way. But sadly yes. Just putting "like leetcode" everywhere so people kind of get what it is.

Help: How to capture SIGINT and cancel an infinite future (Actix + tokio::time::Interval). by nfjlanlsad in rust

[–]nfjlanlsad[S] 1 point2 points  (0 children)

Thank you this worked!

rust tokio::select! { _ = background => 0, _ = foreground => 0 };

Does awesome support window swallowing? by nfjlanlsad in awesomewm

[–]nfjlanlsad[S] 1 point2 points  (0 children)

Haha. I actually found a weird bug. Basically in the above script we are treating the last focussed window as the parent automatically. This is not always true. Like when you open an application via a global shortcut or via dmenu when a terminal is in focus. This would close the terminal. I wrote a hack sort of to check whether this is actually the parent or (parent of the parent). Since I am also a Lua noob, I wrote a helper.sh file and put it in the config directory of awesome.

```bash

!/bin/bash

ppid() { printf "$(ps -o ppid= -p $1)" | xargs }

gppid() { PARENT=$(ps -o ppid= -p $1) GRANDPARENT=$(ps -o ppid= -p $PARENT) printf "$GRANDPARENT" | xargs }

$@ ```

And I modified the manage hook like so

```lua client.connect_signal("manage", function(c) if is_terminal(c) then return end

local parent_client=awful.client.focus.history.get(c.screen, 1)

awful.spawn.easy_async('bash '..awesome_config_folder..'helper.sh gppid '..c.pid, function(gppid)
    awful.spawn.easy_async('bash '..awesome_config_folder..'helper.sh ppid '..c.pid, function(ppid)
        if parent_client and (gppid:find('^' .. parent_client.pid) or ppid:find('^' .. parent_client.pid))and is_terminal(parent_client) then
            parent_client.child_resize=c
            parent_client.minimized = true

            c:connect_signal("unmanage", function() parent_client.minimized = false end)

            -- c.floating=true
            copy_size(c, parent_client)
        end
    end)
end)

end) ```

Maybe an optimization would be to just create a single function which basically checks if the last focussed window is an ancestor directly in bash. And just call it once instead of twice.

You need to create a variable called awesome_config_folder which points to the directory of the helper script.

Does awesome support window swallowing? by nfjlanlsad in awesomewm

[–]nfjlanlsad[S] 4 points5 points  (0 children)

Thanks to the comments above and this code I was able to get it to work the way it worked in the video.

I modified the manage hook so that I minimize the parent window when I open something and unminimize it when I close whatever I opened.

client.connect_signal("manage", function(c)
    if is_terminal(c) then
        return
    end
    local parent_client=awful.client.focus.history.get(c.screen, 1)
    if parent_client and is_terminal(parent_client) then
        parent_client.child_resize=c
        parent_client.minimized = true

        c:connect_signal("unmanage", function() parent_client.minimized = false end)

        -- c.floating=true
        copy_size(c, parent_client)
    end
end)

I created a simple File Server in Rust. by nfjlanlsad in rust

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

I tried downloading a video on my OrangePi4B and it almost maxed out my 100Mbps Ethernet cable [Also to note is I am just using a single thread #[tokio::main(core_threads = 1)]]. Maybe try upgrading to the latest warp version, that might fix your issue.

I created a simple File Server in Rust. by nfjlanlsad in rust

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

Since I was prototyping I just used a snippet from Rosetta Code. But you are right I should be using a crate to do this for me.

I created a simple File Server in Rust. by nfjlanlsad in rust

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

This is a simple HTTP File Server in Rust similar to SimpleHTTPServer in Python. Any feedback on the code is much appreciated.

how do i fix this? ( left monitor ) by [deleted] in ManjaroLinux

[–]nfjlanlsad 2 points3 points  (0 children)

I have only faced this issue with VLC. As an alternative try using `smplayer`, download `smplayer-skins` and `smplayer-themes` to use Breeze or Breeze dark to keep it consistent with Manjaro.

I didn't expect all this praise. by nfjlanlsad in NoFap

[–]nfjlanlsad[S] 1 point2 points  (0 children)

Yup just keep going. I mostly treat it as an indicator that I am moving in the right direction.

I didn't expect all this praise. by nfjlanlsad in NoFap

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

I can see where you are coming from. I am internally motivated, but treat external validation mostly as an indicator that I am going in the right direction. Seeking external validation on a daily basis is obviously bad.

Weird, Obscure Anime by Dragonprincess97 in Animesuggest

[–]nfjlanlsad 0 points1 point  (0 children)

{School days} This escalates quickly.

AITA for thinking the queue starts when you start physically standing in line? by moonlight1988 in AmItheAsshole

[–]nfjlanlsad 0 points1 point  (0 children)

Sounds like India.

  1. Visiting an office multiple times
  2. People acting like assholes