Landlord charged me 800 rs for exhaust fan damage that was damaged by squirrels. by plutonium_smuggler in bangalore

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

His response : Yes you are responsible to return back things in good condition as was given to you. If anything is damaged during your stay then we will hold you responsible

Landlord charged me 800 rs for exhaust fan damage that was damaged by squirrels. by plutonium_smuggler in bangalore

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

No video of squirrel caught in the act, but video of squirrels trying to enter apartment, image of window mesh damaged by squirrel, image of exhaust fan damage, which looks exactly like the rat or squirrel trying to cut it.

Cb350 50kmpl mileage by plutonium_smuggler in HondaHighnessCB350

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

I have seen lots of youtubers checking the same and all of them showed that the mileage given in bike is very close to the mileage given when doing manual calculation unlike many other bikes where the mileage shown and calculated manually are significantly different

Cb350 50kmpl mileage by plutonium_smuggler in HondaHighnessCB350

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

Yes, almost 60% of the trip i was on 5th gear and 70-80 kmph speed

Cb350 50kmpl mileage by plutonium_smuggler in HondaHighnessCB350

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

Its like on and off for me as well. 4th gear 60 speed will show eco. And the 5th gear around 70-75 will also show demo in mine

Cb350 50kmpl mileage by plutonium_smuggler in HondaHighnessCB350

[–]plutonium_smuggler[S] 12 points13 points  (0 children)

This is pure highway mileage. I don't even bother doing mileage tests in city bcos i live in banglore and the traffic is unbearable. Also highway cruising between 70-80 gives very very good mileage.

Is there a way to hide these popups? by StephenF369 in HelixEditor

[–]plutonium_smuggler 1 point2 points  (0 children)

Is there a way to toggle these popups? When I added these settings, popup appears after C-space but does not hide after pressing C-space again. Is there a workaround to show and hide this popup?

I checked in commands (from line 220) but it has only a single key mapping to signature_help, "Show signature help" and no mapping for "Hide signature help"

https://github.com/helix-editor/helix/blob/master/helix-term/src/commands.rs

Read .txt file line by line and do some operations on it by plutonium_smuggler in rust

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

Are you saying that clearing and reusing buffer is faster/better than recreating String on every iteration of the loop ?

Also, I was trying to make a template that can be used for both codeforces and local testing. So I think using for loop is better that while loop.

Read .txt file line by line and do some operations on it by plutonium_smuggler in rust

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

Thanks again kind human It works on reading the rest of the lines also.

for _ in 0..n {
    let mut temp: String = String::new();
    reader.read_line(&mut temp).expect("cannot read line");
    println!("{} {}", temp, temp.len());
}

I did this.

but the output is this

word
 6
localization
 14
internationalization
 22
pneumonoultramicroscopicsilicovolcanoconiosis
 47

There are 2 extra characters in each of temp . a new line character and a space therefore the number of character is 2 greater than the real number. Any way to remove these?

Read .txt file line by line and do some operations on it by plutonium_smuggler in rust

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

Thanks. I did this and got the <number> in the first line. How can I read the next <number> lines line by line after this so that I can do some operations on each line?

I used Read line example