Author Archives: Michael

Almost Useless Top Tip for Today: Lombok @RequiredArgsConstructor

Wiring up Spring Components using @Autowired is convenient but makes testing harder. A better solution is passing dependencies in through a constructor. However, that means creating a constructor. Lombok to the rescue with the @AllArgsConstructor annotation which will create a … Continue reading

Posted in Programming | Tagged , , | Leave a comment

Spring Slueth Stops JMSListener Consuming Messages

Adding the following dependency causes JMS messages to stop being consumed. <dependency> <groupId></groupId> <artifactId>spring-cloud-starter-sleuth</artifactId> <version>2.1.0.RELEASE</version> </dependency><dependency> <groupId></groupId> <artifactId>spring-cloud-starter-sleuth</artifactId> <version>2.1.0.RELEASE</version> </dependency> The issue is that Spring Sleuth prevents the JMSListener from being registered as per: Jms listeners not running To fix … Continue reading

Posted in Programming | Tagged , , | Leave a comment

On Ubuntu 16.04 running pharo, from the Moose Technology download, results in the following error: unknown option: -plugins To fix, change: # execute exec “$LINUX/pharo” \ -plugins “$LINUX” \ -encoding utf8 \ -vm-display-X11 \ “$image” To: # execute exec “$LINUX/pharo” … Continue reading

Posted in Programming | Tagged , , | Leave a comment

Error on ‘inverse_transform’ of LabelEncoder

If you get the following error when calling inverse_transform on sklearn.preprocessing.LabelEncoder ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all() You could be passing in a numpy.ndarray of strings, not numeric … Continue reading

Posted in Programming | Tagged , , | Leave a comment

October Jozi JUG – [Super Awesome Speaker] Nitsan Wakart presents JVM Profiler Mechanics

Don’t miss this one! Nitsan will take us through all manner of dark JVM arts: A blogger and a coder with a pedantic passion for performance. My work has spanned army intelligence systems, era startups, financial institutions and innovative … Continue reading

Posted in Uncategorized | Leave a comment

Grails Bootstrap Form Field Error Template

Define a Grails template in /layouts/_formFieldError.gsp <div class=”form-group has-error”> <g:hasErrors bean=”${fieldModel}” field=”${fieldName}”> <div class=”errors”> <g:eachError bean=”${fieldModel}” field=”${fieldName}”> <span class=”help-block”><g:message error=”${it}”/></span> </g:eachError> </div> </g:hasErrors> </div> Usage <g:render template=”/layouts/formFieldError” model=”[fieldModel: myModelObject, fieldName: ‘myFieldName’]” />

Posted in Programming | Tagged , , | Leave a comment

Making Sure Our Technical Communities Are Safe Spaces For All

The number of technical user groups in South Africa has grown and we’ve now got several vibrant communities. Which is awesome! If we want to make sure our communities continue to be as awesome and welcoming as they are, we need … Continue reading

Posted in Event, Programming | Leave a comment

August Jozi JUG – Docker and MongoDB

Want to learn all about Docker? Then come to the August Jozi JUG! RSVP and details on Meetup. New to Java and keen on learning about MongoDB? The Next Gen talk is just for you! RSVP and details on Meetup.  

Posted in Event | Tagged , | Leave a comment

June Jozi JUG – Javascript, Nashorn and Project Avatar

The June Jozi JUG will take place on 30 June at BBD from 18:00. So come through for great presentations as well as free food and drink. To RSVP please go to the groups Meetup page. Next Gen : The … Continue reading

Posted in Uncategorized | Leave a comment

My Latest Venture – Space For Africa

What do you do if you’re an entrepreneur, design professional or the like without permanent offices but a coffee shop just won’t do for your next meeting? You go to Space for Africa where you can: Find meeting rooms, private offices, … Continue reading

Posted in Business | Leave a comment