I have recently pushed out a small update to my Profanity Detector C# / .NET Library. There are no functionality changes, but I renamed some of the functionality in the library. A central feature was the ability to add words to a ‘white-list’ if you want them excluded from the main list of profanities. With the recent Black Lives Matters protests, there has been a push to remove any language from software that could cause any racial offence.
The term white-listing and black-listing is a common idiom used in software development, but the naming could be better, such as block-lists and allow-lists. In the profanity detector library, I have renamed the ‘white-list’ feature and associated documentation to ‘Allow Lists’. Nothing has functionally changed, but if you update to the latest NuGet package, you may need to update any class name references from WhiteList to AlowList.
I have also updated the branch in GitHub that the code lived in from ‘master’ to ‘main’ as I discussed in my tutorial on branch renaming in GitHub. Thank you to all the people who use the Profanity Detector in their systems. I hope you continue to get good use from the library.
In this tutorial, I want to show you how to rename your master branch in Git, or GitHub specifically, to something other than master. I am going to show you how to do this with the GitHub website as not everyone likes using the command line. If you want to use the command line, then Scott Hanselman has a great tutorial on how to do that.
The idea of renaming the master branch in Git has come about after the recent Black Lives Matters protests in 2020. It is about removing any references to slavery with the terms master used as the default branch name. This tutorial isn’t here to argue whether you agree with this or not. If you don’t agree, then you can stop reading. If you do agree, then this tutorial will show you how to do the rename without using the command line, and it is straightforward to do.
First of all, load up your repository in GitHub, so you are on the main page for that repository. Then click on the ‘Branch: master’ dropdown box.
Then in the text box type in the name of the new branch you want to use. In my case I called it ‘main’, but you can call it anything you want. When you have typed in a name, click the ‘Create branch: main from master’ button as shown in the screenshot.
Then on your main repository page, you will see you have two active branches (or more branches if you have created feature or release branches). At this point, you have created a new branch called ‘main’ that duplicates the master branch, so it contains the entire commit history, but ‘master’ is still the default branch.
From your main repository screen, click on the branches tab again. Next to the ‘master’ branch, there is a button that says, ‘Change default branch’. Click this button.
This will bring up the default branch screen as you can see above. Select the newly created main branch.
You will receive a warning; if you are happy to proceed then click the ‘I Understand’ button. If you have a build pipeline setup to build your code and run tests automatically, this will be most likely to break at this point.
Now ‘main’ is the default branch, but the old master branch is still around as a secondary branch, but you can delete it now if you wish. You can do this by hitting the little red trash can icon next to the master branch.
Once you have done that you will only see the new ‘main’ branch. If you don’t have any automatic builds setup with something like GitHub Actions, Travis, Azure Pipelines, or your build system of choice them your new branch is good to go. You need to reclone that branch to your work machine and carry on working. In the example repository I used for this tutorial; I had a Travis build setup.
To remedy the build process, I logged into my Travis dashboard, and I had to click on the ‘More Options’ drop-down menu for a build and select ‘Trigger Build’.
This brings up the ‘Trigger a custom build’ window. In the branch text box, type in the name of your new branch, in this case, ‘main’, and then select that branch. Then press the ‘Trigger custom build’ button, and this will change the build trigger to look for changes on the main branch.
And, that’s it. It is a little more convoluted than using the command line, but not everyone likes using the command line, so if that’s the case these instructions should see you through.
In a rapidly changing world, a few surprises in your daily flow are expected. Whether you are starting a new position, or your current job is changing scenarios, you might have found yourself as a new work-from-home employee. While it can seem like a dream to wear your pajamas or work from bed at first, things can become unproductive quickly if you’re not properly managing your time.
Working remotely is more popular now than ever before. Technology has given us the opportunity to take workplaces we never thought possible. Do you want to work in your pajamas from your bed? Do you want to work on the beach while on vacation? Working remotely can make these things possible.
It seems like a dream to have opportunities like this, but in reality, it can become challenging quickly. While working from your pajamas or even on a beach seems luxurious, these are still experiences that you can’t do all the time. These beneficial scenarios can be reserved for sick days or times when you might not have much work, but for the most part, it’s best to stick to a structured schedule.
For someone who is used to working in an office, or just someone lacking motivation in general, working from home isn’t the dream many believe it to be.
Whether it’s barking dogs, energetic kids, or even another partner in the house working remotely that has you distracted, there are some saving graces. As a remote working newcomer, you don’t have to be afraid of your life being chaotic the entire time your home doubles as your office.
Through the actionable advice I go over in this article, you can be not only efficient, but happy as you navigate your new “office.” Everyone is different, and what methods work for you might not for someone else. Go at your own pace and remember the most important thing is that you are getting your work done as needed.
Nearly 16,000 managers were surveyed in two separate studies by leadership development consultancies, one by Zenger and the other by Folkman. It might come as a shock to you that 44% of the managers responded that they find the act of giving feedback stressful, especially when it is negative. One-fifth of the managers avoid it entirely, which raises the question if our employees aren’t giving 100% to their work, can we, as managers, be at fault? Imagine dealing with an unproductive, unpunctual and irresponsible employee on your team who hasn’t been told about these traits yet. Picture him/her coming up to you and asking you for a raise? Shocking as it may seem, it is you who is at fault for not ever pointing out the worst.
Criticism, like evaluations, is an important aspect of being a manager. As managers, it is imperative that we understand the importance of giving and receiving feedback. Feedback, especially constructive feedback, is a respectful way of helping employees better themselves. It is a means of guiding them with honesty, directness, and dignity while not damaging their feelings and ego. When delivered in the right manner, it doesn’t create uneasy spaces within the four walls of the office but rather strengthens interpersonal bonds, which ultimately boosts the productivity and efficiency of employees.
The majority of managers find it hard to offer constructive criticism when it comes topointing out areas of improvement. They struggle with finding the right balance between advising and criticizing, they fear their words might hurt the feelings of their employees, they worry if it will negatively impact their productivity by demoralizing them, etc.
But here’s a fact—you are going to have to get comfortable delivering constructive criticism. Really, really, really comfortable! Although it is hard enough to deliver it to anyone, it is the hardest when giving it to someone who always gets on your nerves or to an underperforming employee. To say the least, such situations require mastering the art of giving constructive criticism.
Therefore, in this article, together we shall learn how to give constructive criticism in a way that doesn’t hurt the receiver’s feelings as well as learn the differences between constructive and non-constructive criticism and how to use empathy to improve the impact of the criticism.
For many people, offering up criticism isn’t always pleasurable or appreciated, no matter if it’s from a family member, good friends or a work colleague. Whether it’s taken as constructive or it causes personal turmoil, criticism can be quite difficult to receive and process. The result can often be helpful if that was the intention, or it can be one of those difficult things to accept and forget.
Being criticized at work has been known to have a significant positive or negative impact on employee morale and, in turn, productivity. Whether it’s handed out verbally, in an email, direct messaging systems or even a social media platform, more often than not, the one given the task of providing feedback, often fails to consider how it might be received, especially when it’s unfavorable.
The goal is usually to improve results at work, without considering the connection between morale and productivity.
Some research has shown that criticism of any kind actually closes down the same brain centers that are otherwise activated when talking about positive things. So, it’s simple to understand how being criticized by a manager or colleague might evoke negative thoughts, embarrassment and humiliation. When a group of employees are put on the defensive and feeling dejected from negative performance reviews, it can be devastating to a company’s bottom line.
Receiving criticism at work, whether it’s called “feedback”, “performance reviews” or “advice”, likely won’t go away. As a cornerstone of corporate culture, more often than not, its how companies get things done. So, if your chances of avoiding criticism at work are slim, it’s in your best interest, as both giver and receiver, to understand what it is and how best to harness its capacity for productive output and positive people.
I have been using the original AirPods for a few years and liked them. They did have a few flaws like bad passive noise isolation and a slightly loose fit, but the ease of use and convenience outway the problems. I also thought these sounded reasonably good for listening to podcasts and occasional music. Apple has responded to the criticisms with AirPods Pro, and to cut a long story short, they are fantastic.
The main differences are they have a rubber ear tip to help with the fit in your ears. They now provide an excellent reliable seal with no danger of slipping out. They have also introduced active noise canceling that works very well. Granted, they won’t be as good as a larger set of over the ear headphones, but they are not far off. I have used these on a 4-hour flight, and they did a fantastic job of cutting out the engine noise and making my music sound great. They were also very comfortable for the duration of that flight. If I were doing a long haul flight to the US, then I would use over-ear headphones as the AirPods Pro only give 4.5 hours battery on a single charge, but for short-haul, these are perfect.
Have you ever wondered how Picasso or van Gogh painted masterpieces on such a small canvas? How could they be so creative within such limited space?
Technology has come so far so fast that there’s little incentive to be creative with so many resources available. Sometimes those resources are so plentiful that they can be overwhelming.
Think about something as simple as taking a picture of a child playing with a ball. Before the age of photo imaging, pictures were innocent, and with that innocence came creativity. The shot was snapped, and candid memories were treasured. Today, it’s hard to see a photo that hasn’t been altered in some way. There’s no need to worry about how the picture will come out because whatever is needed will happen with a computer and a photo editing program.
Imagine taking a step back in time to when simplicity bred creativity. It can happen for you, and we’ll explain how.
Have you ever watched a toddler open a present on Christmas morning? So often, the contents, which are often toys, are tossed aside, and the child will stay occupied for hours playing with the box. My seven-year-old son still does this as he likes turning boxes into robots. There can be many shiny, new toys surrounding the child that remain untouched as the box is center-focus.
If all of the toys were removed, and all that was left was a large box, what would the child do? Most likely, they will climb inside and pretend it’s a truck, a spaceship, or even a robot. With or without many options, a child will limit his or her choice by choosing the most imaginative.
Lack of motivation is something most everyone has experienced at some time in their lives. We can often jump into action if we are prompted by someone else, but when it comes to self-motivation, we must be both the motivator and the motivatee.
This isn’t always easy, as we can be prone to procrastination and, let’s face it, laziness. True, we can be too lazy to do something we need to do. It’s so much easier to ask someone else or convince ourselves that it’s not worth the effort to perform a specific task or go to a particular place.
I should write a book, but I doubt anyone would read it.
I’d love to become an teacher, but going back to college… no way.
The boss wants me to represent him at the award ceremony tonight, but I’d probably say or do something stupid.
I’m too tired to go to the gym today. Maybe tomorrow.
Demotivators are continually looking for an excuse to avoid doing what they need to do to succeed, to reach their goals, or to simply do something or go somewhere. As shown in the above examples, there can be varying reasons for a lack of motivation. Whether it’s a headache or other physical ailment, a lack of self-confidence, or a lack of desire, you’ve probably been guilty of at least one instance of demotivation.
We all have. And that’s why this article was written. We’ll explore some tips and techniques that will help you to get up and go, do the unthinkable, and conquer the world.
Okay, so maybe you won’t conquer the world, but you can conquer your world. So, let’s get started!
If you are interested in improving your interpersonal relationships at work but have always found it difficult, then you might like my Pluralsight course, Building Healthy Interpersonal Relationships at Work, where I talk about how to build, and maintain effective relationships, how to manage conflict and how to increase diversity and inclusion in the workplace.
Having a great day at work is one of the top ways to boost your mood and self-confidence. When things are going right in the workplace, you feel a sense of security that just cannot be duplicated elsewhere. Most of us need this type of workplace stability to become successful and productive. If you have ever felt that you love your job and you don’t mind the work involved, but there is still something out of place, consider the relationships that you have built with your coworkers. Interpersonal connections are essential in your daily life, and this includes your professional side.
When you work in an environment where you feel that you can be heard and understood, you are more likely to succeed. Those with hostile work environments tend to not only be more stressed out on an average daily basis but also find ways to take this stress out on loved ones or other uninvolved people. Getting along with your coworkers and supervisors can make all the difference between a great day and a terrible one.
Consider the way that you communicate with your peers. Is the interaction healthy? Productive? Do you feel that you lack something? This course is meant to help you dissect your interpersonal relationships at work while striving toward more robust connections.
In my previous article, I talked about a simple profanity detector that I opened sourced on GitHub. Since launching that code example I have had a lot of people get in touch with some suggestions for new features as they wanted to make use of the library. There were some really good suggestions, so I have implemented them all. In this post, I will walk through what was requested and what I have added to the library.
Using the Library via Nuget
The first suggestion was to have NuGet support for the library as some people don’t want to clone repositories and deal with the source directly, so I have made the compiled Profanity Detector library available.
You can include the library directly from your package manager in Visual Studio, Visual Studio for Mac, VS Core, or Rider. The documentation for using the library is available on the Profanity Detector GitHub page.