My learning diary

reCaptcha on-error

Polling wasn’t effective because: Hot reloading didn’t happen because of some heap limit error. I called the wrong function to check if the reCaptcha errored. To deal with the heap limit, my buddy suggested updating the docker-dev script in package.json to: { "scripts": { "docker-dev": "export NODE_OPTIONS=\"--max-old-space-size=4096\" && ..." } } As for checking if the reCaptcha errored, neither on-expire nor captchaService.isValid worked. A possible explanation for the former would be that the reCaptcha didn’t expire.

Continue reading "reCaptcha on-error"

Reaping the Benefits

Section 3: “Reaping the Benefits” This section connects better listening and information management to better decision-making and benefits that can span entire organisations. Chapter 12: “Connecting Better Listening to Better Judgment” Learning from others and constantly reconstructing ideas leads to discoveries and insights. Chapter 13: “Changing Your Organisation through Listening” “Foster a more disciplined and productive organisation.” The example raised was the organisation of organisation-wide meetings. In these meetings, speakers need to be well-prepared and adhere to strict requirements.

Continue reading "Reaping the Benefits"

Sorting the Chaos

Section 2: “Sorting the Chaos” This section breaks down information from general business problems into suggested components. It also lists the questions to ask ourselves so that we remain focused and productive. Suggested information compartments: Mandate Plan Team Execution Personal Chapter 7: “What Is the Mandate?” “Why are we here?” (Vision, mission, agenda, etc.) So that we don’t lose track and get mesmerised by less important things “Are there any misalignments?

Continue reading "Sorting the Chaos"

Power Listening by Bernard T Ferrari

I’ve been borrowing ebooks from NLB ever since I bought my Kobo. I find it difficult to listen in Zoom meetings, so I hope to learn something from this book named “Power Listening” by Bernard T. Ferrari. I also have difficulty remembering things, so I summarised my takeaways below. I recommend reading the book and penning down notes so that you can appreciate the art of listening based on real-world examples and remember what you need to do to be a good listener.

Continue reading "Power Listening by Bernard T Ferrari"

pip uninstall All

I found a one-liner which can uninstall all pip packages: pip3 freeze | grep -v "^-e" | xargs sudo pip3 uninstall -y I used to do the following: pip3 freeze > reqs.txt sudo pip3 uninstall -r reqs.txt I didn’t realise I could do pip uninstall -r reqs.txt -y and get rid of those confirmation questions. And I’m pretty sure I messed up the actual requirements file at least once when adopting this approach.

Continue reading "pip uninstall All"