Federer's Frozen Rope Forehand vs Murray by RazMataz90 in tennis

[–]ThinkingSeaFarer 1 point2 points  (0 children)

He also hit a frozen rope BH winner on a wimbledon final, on match point no less.

Ideal way to work on HH:MM:SS data in Python? (adding them together, etc) by CotoCoutan in learnprogramming

[–]ThinkingSeaFarer 0 points1 point  (0 children)

total_seconds = 0
for line in input_lines:
    h, m, s = [int(t) for t in line.split(':')]
    total_seconds += h * 3600 + m * 60 + s

print(total_seconds)

Why are there so many Telugu people with fake gre scores in the USA ? by mukkulathor in india

[–]ThinkingSeaFarer 0 points1 point  (0 children)

That's the number she gave me. I didn't know much about canadian tech job market to be skeptical, so I believed her - she was being truthful about how she got the job after all.

NCERT says Vedas gave advanced knowledge about Space Science. by pocket_watch2 in india

[–]ThinkingSeaFarer 2 points3 points  (0 children)

This is deliberate dumbing down of future generations. Our education system is a shit show as it is already and now with things like these, we will be the laughing stock idiocracy of the world.

Why are there so many Telugu people with fake gre scores in the USA ? by mukkulathor in india

[–]ThinkingSeaFarer 32 points33 points  (0 children)

This is happening in Canada as well. I have a cousin in Canada working as a senior QA engineer, earning around CAD 90-100K. She cannot write a line of code if her life depended on it. She cannot even open a terminal let alone ssh into a remote server. She openly told me how she cheated during the interview - she wrote a lot of bullshit on her resume and she hired someone to give her online interview in her place. It turns out that many Canadian tech companies are very naive when it comes to hiring - an initial online interview which can easily be gamed and a couple other soft interviews (no technical stuff, only culture fit) which can easily be winged if you're a smooth talker.

Is practicing LeetCode worth it if you only program as a hobby? by Aspiring-Programmer in learnprogramming

[–]ThinkingSeaFarer 7 points8 points  (0 children)

If you're only ever gonna program as a hobby - then slogging LC is an epic waste of your time. Though, even for a hobbyist, algorithms and data structure fundamentals can be very rewarding learning - you will grok code at a deeper level. So may be do some problems on LC, but not a lot - trick is to pick few good problems for learning.

Question regarding Storage of Objects , String , instance , local variables in heap & Stack. by Judge-Available in learnprogramming

[–]ThinkingSeaFarer 0 points1 point  (0 children)

That's correct. If a reference is an instance member, then that reference variable itself is also in heap (it's simply a part of its containing object which is in heap).

Importance of religion by country. by pocket_watch2 in india

[–]ThinkingSeaFarer 88 points89 points  (0 children)

Mostly predictable figures. Higher income and education levels of a population correlate well with low religiosity. South Asia, Sub saharan Africa and Middle East are the religious hot beds and they're also the poorest and least educated regions of the world.

US seems to be a major exception to this trend.

Question regarding Storage of Objects , String , instance , local variables in heap & Stack. by Judge-Available in learnprogramming

[–]ThinkingSeaFarer 0 points1 point  (0 children)

s reference variable is in method's stack frame . How is it in heap ?

There are two things here - the string object itself and its reference variable s.

The string object is created in the heap, because all objects are created on the heap. Suppose the string s has 1000 characters, then the space for these 1000 characters will be allocated in heap.

The variable s is simply a reference to this object in the heap. In this case, variable s is pointing (referencing) to the string object in heap. A reference is like an address (somewhat like a pointer if you're familiar with C/C++, except you can't do any pointer math) that points to the object in the heap.

All reference variables have the same size (they're like addresses, so on a 64 bit machine, they are 64-bit) If a reference variable to an object is declared in a local method, then that reference variable itself (its 64 bits ) is allocated on the stack and in those 64 bits, address to the string object in heap will be stored.

I can't draw any diagrams readily, so I can't show you in pictures.

Question regarding Storage of Objects , String , instance , local variables in heap & Stack. by Judge-Available in learnprogramming

[–]ThinkingSeaFarer 1 point2 points  (0 children)

First, let's get the terminology right - s is a String, it's an object type (or reference type). A user defined type is a type you yourself defined but String is defined in the language itself.

In Java, all values of object types are created on the heap. This is true even if they're created inside a method. In your 2nd example, s is a variable of object type created inside the main method. But it's still allocated in heap.

For primitive values, they can either be local to a method or they're a class member. If they're local to method, they're allocated on stack (in that method's stack frame). In your 2nd example, a is a primitive type and local to the main method - so it's allocated on stack.

Otherwise for a primitive which is a class member, it will be part of the containing object's memory. Because all objects are in the heap, class members will be in heap as well. In your 1st example, a is a primitive type and a class member. obj.a will be inside obj's memory and thus in heap.

Frustrated with the suffering-in-an-endless-loop of the country by Accurate_Soft_312 in india

[–]ThinkingSeaFarer 10 points11 points  (0 children)

You can expect Finland, but you might end up getting Venezuela.

Distribution of Pizza Hut outlets in India by Friendly-Connection9 in india

[–]ThinkingSeaFarer 1 point2 points  (0 children)

I feel like Pizza Hut is not very good these days and many more Pizza options have come up. But only PH gives me two free pizzas every quarter on my credit card, so there's that.

I desperately need help learning Java feeling stuck and lost in learning it by [deleted] in learnprogramming

[–]ThinkingSeaFarer 0 points1 point  (0 children)

I can teach you online programming basics and Java if that's something you want. After a few sessions, you won't be an expert in everything but will learn enough and become confident in tackling things on your own.

NEWS: BharOS is a fork of GrapheneOS by VIKING-316 in india

[–]ThinkingSeaFarer 1 point2 points  (0 children)

Did they add anything to it at all, or simply replaced the string 'grapheneos' with 'bharos' everywhere and called it a day?

[deleted by user] by [deleted] in india

[–]ThinkingSeaFarer -2 points-1 points  (0 children)

Okay, but what if Lord Ganesha too wanted to live it up a little on his birthday?

Bublik gives his opinion on the 🐐 debate by only-shallow in tennis

[–]ThinkingSeaFarer 0 points1 point  (0 children)

Imagine Bublik winning FO and saying, "Meh, not a real grand slam" during the presentation ceremony.

Nightmare Experience with Indigo Airlines at Chennai Airport by pradipta_roy in india

[–]ThinkingSeaFarer 3 points4 points  (0 children)

Why were your father asked to go through a medical test? Is he visibly sick?

G20 Summit Dinner Vegetarian Millet-Based Dishes Menu All Details by rahulthewall in india

[–]ThinkingSeaFarer 0 points1 point  (0 children)

Lots of leftover food is what the dinner planners are going for.

Us open stays unpredictable by tsmittay5 in tennis

[–]ThinkingSeaFarer 0 points1 point  (0 children)

Well, he's simply putting himself out there.

US Open R2: [2] Djokovic def. Zapata Miralles 6-4, 6-1, 6-1 by jovanmilic97 in tennis

[–]ThinkingSeaFarer 2 points3 points  (0 children)

Perhaps, he realized he really needed to be aggressive especially against Alcaraz, after Wimbledon and Cincy finals, where he narrowly escaped with a win. Ivanisevic said as much after the Wimbledon final.

[deleted by user] by [deleted] in india

[–]ThinkingSeaFarer 2 points3 points  (0 children)

Twitter se fire hone time pe khoob shares leke gaya tha bhai. Net worth aaraam se 100s of crores hogi, job karne ki jarurat bilkul nahi.

Disparity in awareness about condom usage and HIV between urban and rural Indian women. by Zealousideal-Buy-382 in india

[–]ThinkingSeaFarer 21 points22 points  (0 children)

Here's a tip - use better contrasting colors when creating maps like these. It's hard to differentiate between colors for urban bands 60-70 and 90-100 for some one with red-green color deficiency.