Code Magazine: Learn Python with Visual Studio

On the July/August issue of Code Magazine, available both printed and online, you can find my article Learn Python with Visual Studio. From the incipit: In the Stack Overflow Developer Survey for 2018, Python sits comfortably in the first place as the most wanted programming language, with JavaScript and Go coming second and third. Python also ranks third in the “most loved” category. Despite the age (20 years and counting), Python’s popularity keeps growing, and for good reasons. »

Author image Nicola Iarocci

Eve 0.8 has been released

I am pleased to announce that the latest version of Eve, v0.8, has been released. As always, this release has been carefully crafted with love and passion by yours truly, with the help of a fantastic bunch of contributors. Highlights include data-validation-on-steroids thanks to the full support for Cerberus 1.x, also recently released, partial media requests (think media streaming), new hooks which allow you to attach custom callbacks to aggregation and soft deletion events, some new query operators, support for the mongo decimal type, and more. »

Author image Nicola Iarocci

Mac Notification Center does not work: the Quick Fix

I had this happen to me a few times already. Notification Center on the Mac goes completely numb: no more notifications and the list is empty. I’m writing down the fix, so I do not have to google the forums once again the next time. Open the Terminal, then: # this usually fails, as the notification server is already running launchctl load -w /System/Library/LaunchAgents/com.apple.notificationcenterui.plist # kills and restarts the notification center - fixed! »

Author image Nicola Iarocci

Announcing my first online course

I am super excited to announce the launch of Eve: Building RESTful APIs with MongoDB and Flask, a brand new TalkPython Training course. Authoring this course has been a new experience for me, and I must say that I very much enjoyed every minute of it. Finding myself in the exciting position being at the same time both the project author and the instructor, I did my best to focus on the typical issues I know from experience most people face when they start setting up their first RESTful web service with Flask and Eve. »

Author image Nicola Iarocci

Quick fix: MongoDB fails when saving Decimal fields

So today I was trying to store some decimal fields on a MongoDB 3.4 instance and I kept failing, miserably. In Compass I was getting a somewhat obscure “connection lost” message on every save attempt. Upgrading to Mongo 3.4.10 (I was on 3.4.4) improved things, as the error message was now hinting at the setFeatureCompatibilityVersion setting which, apparently, was preventing some features to be made available. Now that made sense, as this specific database had been upgraded all the way from up Mongo 2. »

Author image Nicola Iarocci