We often mistake the job we see managers doing with the job they are really doing. We’ve all asked, at one time or another, “What does my boss actually do?”. We see them go to countless meetings, ask questions, or send around documents. We then equate those activities with the actual job of being a manager. Until I was promoted into my current role, the perception I had of what my boss had been doing […]
When there are bugs in your code, there are many mechanisms for understanding the issue and creating a fix. Your computer will tell you when you’ve made a mistake, give you feedback and await your next command. So as a developer you learn to live in this constant cycle of feedback. Constantly making mistakes, and constantly making changes. It becomes second nature. But it’s through these constant mistakes that we learn what does and doesn’t […]
As I have gotten older and my career has grown, a lot of my thoughts and opinions on topics around software development, management and leadership have changed. Reading back through some of my posts from ten years ago, I see a lot of the same thoughts and ideas that come up in discussions with more junior team members. And it’s not that they are wrong, but how the effects of experience and having a different […]
When you have sports coaching, whether that be for martial arts or tennis etc, often the coach will look at your technique and say “you’re doing it all wrong!”. And then you find that each coach has their own theory on how it should be done, even claiming other coaches don’t know what they’re talking about. But when you look at all these different theories and techniques, and put them into practice, at that moment […]
The best developers I have worked with have all been incredible in self-directed learning. And yet a common pattern that I see more junior developers get stuck on is not knowing what to learn to progress their skills as a developer. I spend a lot of time reading, whether that be blog posts or books, watching talks or listening to podcasts, I have never found myself short of topics to look into more or things […]
While trying to setup a new Rails 5.2 app in Intellij it would continually be detected as a web project and give no way of adding the Ruby on Rails module. The solution is to delete the node_modules folder before creating the new project.
Working with a SOAP API with Spring Boot WS. I was getting the following error trying to create the request. I was originally directly using the JAXB generated classes to form my requests: The correct way is to use the provided JAXB ObjectFactory: But to prevent marshalling errors you need to wrap your object in a JAXBElement object: [crayon-5f706f027e97f428382540/]
One of my bad habits is constantly buying computing books. This wouldn’t be so bad if I read them, but I have amassed a huge backlog of books that will most probably never be read and which ends up being a waste of money. A couple of posts I read recently have led me to the decision that I should stop, or at least drastically cut down on, buying computing books. The first post talked […]
Trying out chruby and ruby-install and installing Ruby 2.2.2 with ruby-install was giving be the error: [crayon-5f706f0286dbe384572159/] Setting the LDFLAGS env var solved this for me: [crayon-5f706f0286dc5971630921/]
To run Alacritty without spawning a new terminal window you can use Automator to create a new application wrapper. Create a new application document and choose Run Shell Script as the action. Then simply add the path to your built Alacritty and save the document to your Applications folder.
Made this mistake today while writing some code to delete data out of Redis. [crayon-5f706f0286e2d557424903/] The mistake was in the final method keep_keys. Every check to see if a key should be rejected I was adding an element to the flattened_keys array over and over again, causing my deletion to slow down over time. A simple change to memoize the keep keys made the process go from never finishing to, completing in a few seconds. […]
Copying files to a Synology NAS was painfully slow with Carbon Copy Cloner. Following the official help of ejecting the volume in Finder made all the difference. Syncs now happen as fast as they should do.
Text in iTerm looked a little fuzzy after moving to a non-retina 4K monitor. I discovered that setting thin strokes to always be on has made text look a lot crisper.
Being able to recommend products to shoppers is a vital part of any online store. The “Customers Who Bought This Item Also Bought” section can lead to a lot of extra sales if done well. The Jaccard Index is a way of measuring similarity between items. Using some custom SQL we can extract the values we need: [crayon-5f706f0286e94806711369/] With these values we can then calculate the affinity between sold products: [crayon-5f706f0286e99736259185/]
Since my last post about generating random email addresses in TextExpander, I’ve move from using Ruby to Applescript to do so. Here is my script which essentially does the same thing. [crayon-5f706f0286f05643261953/]