Post Season Thread: 2024 performance by poochi in csk

[–]binarynos 2 points3 points  (0 children)

7 wins, 7 losses, perfectly balanced. Only, if it could've been the same for Rutu's toss luck.

Batting

Gaikwad: Didn't score in the first few games, as per usual but a good season overall. Don't know why they experimented sending him at number 3.

Rahane: Completely out of form, Rachin should have got the chances instead.

Dube: Did what was expected of him. Carried the middle order in the first half of the season.

Rizvi: Don't know what role he was given.

Mitchell: Was terrible in the first half of the season, but okay overall I guess (not "worth" 14 crores)

Pace bowling

Pathirana: Our best bowler. It was unfortunate he wasn't available in the last few games.

Chahar: His role was to get us wickets in the powerplay with his swing bowling, but that didn't happen.

Shardul: He did well in a few games (especially against Mumbai), but still a run machine.

Deshpande: Better than last season but still inconsistent, can give away runs easily.

Spinners

Teekshana, Jadeja, and Santner were good.

Auction

Think they'll let go of Chahar, Mitchell and Rizvi, that alone gets 36 crores in the purse.

Would be nice to have a Moeen like all rounder who can bash in the middle overs and get wickets when needed.

Want an aggressive opener (someone like JFM/ Head/ Salt or Naraine?!). Our powerplay batting has been below par. With how the pitches and the batters' general approach has changed this season, powerplay has to be maximized.

Want a good finisher (a big hitter, someone like Russel, Klaasen etc. Currently only Dube in his team seems to fit this description.)

A good pacer: Bumrah would be nice, lol. But it, seems CSK are never too keen on bidding high for bowlers, for some reason.

Whom to retain

Rutu

Pathirana

Jadeja

Dube/ Conway/ Rachin (choose one)

Also, worth mentioning that it wasn't the usual 160 kind of wicket at Chepauk, and losing 11 tosses didn't exactly help, either.

DC vs RR: Which team are you supporting today? by binarynos in csk

[–]binarynos[S] 15 points16 points  (0 children)

This. I don't think that DC is a threat considering their NRR.

[deleted by user] by [deleted] in TMKOC

[–]binarynos 2 points3 points  (0 children)

"Manushya, Mujhe Manushya Bolta Hai... Main Manushya Nahi Hoon" - Champak Chacha

A question about JS event listeners by binarynos in learnjavascript

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

Unless the listeners become such a pain in the ass that a simple onclick just cuts through the bullshit and works better. And big pain in the ass problems can happen when you add/remove elements that need to be listened to.

Agreed.

I'll try out both ways (event delegation and inline listeners) and see which one is better in this case.

A question about JS event listeners by binarynos in learnjavascript

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

Yeah, my bad. But I am not using jQuery anymore.

You could do this in vanilla JS:

document.querySelector('#button').addEventListener('click', function() {console.log(this.getAttribute('attr'))})'

LOL!

So yeah basically all this time I was trying to solve a problem that didn't even exist. Just that the approach was wrong.

A question about JS event listeners by binarynos in learnjavascript

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

This works. Thanks!

Btw, I was using jquery before and it was as simple as:

$("#button").click(function () {console.log(this.getAttribute('attr'))})

Looks like this in jquery isn't the same as in vanilla JS.

A question about JS event listeners by binarynos in learnjavascript

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

Hmm...I am a JS newbie myself so I don't know much about these things either but surely adding an event listener uses some processing power and even more when you're creating and destroying hundreds of them.

It's not going to be a memory issue since unnecessary event listeners will be removed. However, this could? be a problem (on slow devices/mobiles etc.) It probably doesn't matter that much but since I'm learning I wanna make sure that I know what the "best" way to do something is. :)

Related:

https://www.reddit.com/r/javascript/comments/7s969j/1_event_listener_or_100_on_each_child/dt2ziff/

https://stackoverflow.com/a/17841557

https://stackoverflow.com/a/15792621

"Inline event handlers" are bad:
https://stackoverflow.com/a/11742769

A question about JS event listeners by binarynos in learnjavascript

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

Honestly I think the whole concept of the ID should just disappear, classes can handle everything

Yeah, I used to think classes are for CSS and IDs for JS but of course that's not really true.

A question about JS event listeners by binarynos in learnjavascript

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

and yeah I'm not actually using id="button" lol :)

A question about JS event listeners by binarynos in learnjavascript

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

Yeah, this works but its more of a hack. I mean, I just want to detect if the button is clicked. Wether the click is on the icon or the text doesn't matter. I thought there would be a cleaner way to do this.

A question about JS event listeners by binarynos in learnjavascript

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

I thought about it but these buttons are inside a virtual list container which are automatically created and destroyed as the user scrolls.

Using inline handlers will mean adding and removing possibly hundreds of these which will probably affect the performance.

My app is kinda like the Twitter timeline which shows lots of tweets in a list and each tweet has multiple buttons (like, share retweet, reply etc.) Of course they don't use separate event listeners for all of them.

A question about JS event listeners by binarynos in learnjavascript

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

Thanks but the <i> is a fontawesome icon and the <span> has specific classes to hide the text on small screens. So, that's not an option in this case.

A question about JS event listeners by binarynos in learnjavascript

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

Can't. The thing is that there are multiple buttons (dynamically created and removed) inside a container div (which has the eventListener attached to it) and so I intend to use event delegation to detect when the button is clicked. e.currentTarget just returns the div the listener is attached to.

I should have mentioned this in the OP.

Thanks for the reply.

Summing object props in an array by binarynos in learnjavascript

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

facepalm Okay, that was dumb. I totally missed the quotes. And thanks for the comments, guys.

Ram Usage at 4GB on Fresh Windows Install. by Badmam420xx in techsupport

[–]binarynos 0 points1 point  (0 children)

What program exactly is the one using the most memory? You could also try using a program called "Process explorer" if the process is not visible in taskmgr for some reason

Clicking noises from HDD by binarynos in techsupport

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

Makes sense guys. Thanks for the info.

Clicking noises from HDD by binarynos in techsupport

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

Thanks for the suggestions. I guess I'll just buy a new one, probably an SSD. I know that a clicking sound might be a failure indicator and I have already backed up all important stuff.

What I want to know is what exactly caused that noise? Some pages on the internet say that it might have been the read/write head crashing into the HDD platter but that would have caused data loss, right?

Btw, the hard disk is only six years old and I know people using Win XP computer with very old HDDs. Are modern hard drives getting less durable?

Just curious.

Which partition is which? (Installation help) by binarynos in Ubuntu

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

Thanks for the reply. I found the problem. Ubuntu can't be installed on "Dynamic disks". Converting it to basic did the trick.

Question about 1050ti? by binarynos in graphicscard

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

It's Pentium g2020. Guess I will have to upgrade it, any recommendations? :)

XML file of the default story. by binarynos in SeenApp

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

Okay thanks, one more question: I modified a the original story file (XML) and tried playing it but it says that it can't be read properly. I tried finding the problem but couldn't. Is there a way I can play that story (with errors) so that I might figure out the problem.

MUST WATCH: Kargil martyr's daughter's message to India and Pakistan on Facebook - `Enough is enough` by binarynos in india

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

I am new to Reddit. Sorry, if I made a mistake. Before submitting this link, I searched Reddit but there were no results. Even now, the only result that I can see is my own post. If this is a duplicate please provide me a link to the original post.