You can order gifts now and add a note to your gift message to have it arrive on a special date (such as Christmas). Or why not just treat yourself? After all, you deserve it.
And, as if that's not enough, every subscription gets a FREE tea infuser ball.
As with our coffee, just add a note in with your gift message to have it arrive on before or after Christmas - or for another occasion. Or for yourself. Or for when friends and family visit.
Chris Owens posted: " Hey everyone, I'm currently setting up a mysql database on DigitalOcean and hit the following error when connecting: failed to connect to the database: default addr for "DATABASE_CONN_STR" network unknown Luckily this turned out to be a pretty "
Respond to this post by replying above this line
New post on What I Broke – JavaScript, C#, AWS and General Development
I'm currently setting up a mysql database on DigitalOcean and hit the following error when connecting:
failed to connect to the database: default addr for "DATABASE_CONN_STR" network unknown
Luckily this turned out to be a pretty easy fix. In the mysql driver repo you can see that the only scenario where this error is shown is when the network doesn't match "tcp" or "unix".
// Set default network if empty if cfg.Net == "" { cfg.Net = "tcp" } // Set default address if empty if cfg.Addr == "" { switch cfg.Net { case "tcp": cfg.Addr = "127.0.0.1:3306" case "unix": cfg.Addr = "/tmp/mysql.sock" default: return errors.New("default addr for network '" + cfg.Net + "' unknown") } } else if cfg.Net == "tcp" { cfg.Addr = ensureHavePort(cfg.Addr) }
To fix it, all that was required was to wrap part of the connection string in tcp or unix.
Note that the host name and port on the second line is now wrapped in "tcp(...)". In my case I didn't have either set so I find it a bit strange that the "set default address if empty" check was triggered.
Thanks to this stackoverflow post and github link for the info:
Unsubscribe to no longer receive posts from What I Broke – JavaScript, C#, AWS and General Development. Change your email settings at Manage Subscriptions.
Chun Lin posted: " This month marks the beginning of my 3rd year of working as a software engineer in National University of Singapore (NUS). Hence, at this juncture, I would like to give myself an opportunity to broaden my horizon so that I can live up to the expectat"
This month marks the beginning of my 3rd year of working as a software engineer in National University of Singapore (NUS). Hence, at this juncture, I would like to give myself an opportunity to broaden my horizon so that I can live up to the expectations of the team and continue to grow professionally.
Coincidentally, it's NUS Well-Being Day in the beginning of the month. All the staff and students can have a long holiday to rest and re-energise.
7 PitStop Principles for Mental Wellbeing
In the beginning of Well-Being Day, NUS introduced the 7 PitStop Principles to aid everyone in the campus in stress management and self care. The seven principles are as listed below.
Personal Skills;
Interactions;
Time Out;
Sleep;
Thoughtful Eating;
On the Move;
Purpose.
In order to make my life better by enhancing my mental wellbeing, I have tried to adopt the principles as a part of my lifestyle during the long holiday.
Personal Skills
As Eduardo Briceño shared in his Ted talk, in our life, there are two key zones, i.e. the Performance Zone and the Learning Zone. The Performance Zone is where we apply our knowledge and skills to carry out our tasks. The Learning Zone on the other hand is all about improving our current skills and learning new skills.
The problem why many people don't improve much is that they spend all of their time in their performance zone. They simply do, do, do but seldom reflect on it. Hence, in his talk, Eduardo Briceño suggested that we should frequently switch between the two zones.
During the NUS Well-Being Day long holiday, it's also coincidentally the launch of Visual Studio 2022 and .NET 6. Both of them are the key tools in my career. Hence, I took the opportunity to learn what's new during the launch event.
I have been focusing more on desktop and mobile app development in my past two years of working in NUS. Before that, I had always been working on web development projects which required skills in cloud computing.
Hence, in order to keep my skill relevant, I also took 6 to 7 hours per day to take some modules on Microsoft Learn to enhance my knowledge in designing, building, testing, and maintaining cloud applications and services on Microsoft Azure.
Interactions
Social isolation and loneliness can affect one's physical and mental health. Hence, family and friends play an important role in our healthy life.
I'm glad to have the opportunity to have a talk with Riza Marhaban, my friend and my mentor, in one of the evenings. This is a type of happiness especially in the current situation of pandemic because meeting friends is not as easy as the good old days.
In addition, during the holiday, I attended Dato Yeo Kok Hwa's session about Disrupting Negative Thoughts. Dato Yeo shared with us the symptoms and causes of negative thoughts as well as how we can apply strategies to disrupt those negative thoughts.
Dato Yeo talked about how some of us have Automatic Negative Thoughts (ANTs). For example, it could be because some people overgeneralise things in their life in such a way that they view a negative event as a never-ending pattern of defeat. It also could be because some people dwell on the negatives and ignore the positives. Hence, it's important to have alternative thinking which helps us to change the way we think.
Time Out
I'm not sure about the rest of NUS staff, but I find that the working life in NUS research centre is challenging. Hence, it's important for me to take time out for myself.
Before the holiday, Riza was telling me that Queen's Gambit is a must-watch miniseries on Netflix. So I took the chance to watch it during the holiday. I haven't stopped thinking about the series since finishing it because it was just that good.
Besides watching movie, I also played Command and Conquer 3 which is one of my favourite RTS games during the holiday. This video game was released in 2007. After 14 years have passed, I finally got the time to play it.
When I was working in startups, I lost a night or two of sleep especially when there is a deadline to meet. This is normal because sleep is undervalued in a startup culture where being busy and working beyond capacity is celebrated. Now in my current work life, I decide to sleep more.
Thoughtful Eating
Even though I'm not allowed to cook in the place I rent, I still try my best to avoid unhealthy food. It has been more than one year I stop consuming fast food.
Currently, I am still trying to exercise for at least 20-minutes, 3 times a week.
My friend Jon introduced me a home workout video for beginner like me. You can refer to the video below if you are also finding ways to stay healthy during the lockdown period.
I have been volunteering in National Library Board until the volunteering opportunity was cancelled in May 2021 due to the Covid-19 situation. So, there is nothing much to share about this until the volunteering programme is back.
That's all for how I celebrate both my 3rd year of working in NUS and the NUS Well-Being Day. I hope reading this brought you some inspiration.