Author Archives: Michael

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, dot.com 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

AngularJS – Format Cents As Monetary Unit (Dollars, Rand etc)

1. Create a filter app.filter(’MonetaryUnit’, function () { return function (amount) { return (amount / 100).toFixed(2); } });app.filter(‘MonetaryUnit’, function () { return function (amount) { return (amount / 100).toFixed(2); } }); 2. Apply filter to field {{someField | MonetaryUnit}}{{someField | … Continue reading

Posted in Programming | Tagged | Leave a comment

May Jozi JUG – Code Dojo and Open Source Contributions

The Jozi JUG is hosting their May event on Monday the 26th. There will be two tracks on the evening, so there’s something for everyone. What are you waiting for? RSVP today! A big thank to Oracle for hosting and … Continue reading

Posted in IT, Programming | Leave a comment