Language Selection

English French German Italian Portuguese Spanish

Programming: Rust, Django, Flask/Heroku and PyCharm

Filed under
Development
  • This Week in Rust 303

    Hello and welcome to another issue of This Week in Rust! Rust is a systems language pursuing the trifecta: safety, concurrency, and speed.

  • Develop with Django 2 and Python 3 in a container with Red Hat Enterprise Linux

    In my previous article, Run Red Hat Enterprise Linux 8 in a container on RHEL 7, I showed how to start developing with the latest versions of languages, databases, and web servers available with Red Hat Enterprise Linux 8 even if you are still running RHEL 7. In this article, I’ll build on that base to show how to get started with Django 2 using the current RHEL 8 application stream versions of Python 3 and PostgreSQL 10.

    From my perspective, using Red Hat Enterprise Linux 8 application streams in containers is preferable to using software collections on RHEL 7. While you need to get comfortable with containers, all of the software installs in the locations you’d expect. There is no need to use scl commands to manage the selected software version. Instead, each container gets an isolated user space. You don’t have to worry about conflicting versions.

    In this article, I show you how to create a Red Hat Enterprise Linux 8 Django container with Buildah, and run it with Podman. The code is stored on your local machine and mapped into the container when it runs. You can edit the code on your local machine as you would any other application. Because it is mapped via a volume mount, the changes you make to the code are immediately visible from the container, which is convenient for dynamic languages that don’t need to be compiled.

  • Deploying a Flask Application to Heroku

    In this tutorial you will learn how to deploy a Flask application to Heroku. The app can be as simple as a "Hello World" app to a social media monitoring platform!

    Nowadays there is no business that doesn't have a web app to help it a reach greater audience, or maybe provide its services through an online portal.

    Today you are about to learn how to make an API using Flask as a case study for how to deploy your app on Heroku.

  • Real Python: Python vs C++: Selecting the Right Tool for the Job

    Are you a C++ developer comparing Python vs C++? Are you looking at Python and wondering what all the fuss is about? Do you wonder how Python compares to the concepts you already know? Or perhaps you have a bet on who would win if you locked C++ and Python in a cage and let them battle it out? Then this article is for you!

  • PyCharm 2019.2.2

    PyCharm 2019.2.2 is now available. This version solves regression issues and improves Jupyter Notebook configuration experience.

More in Tux Machines

today's howtos

Programming Leftovers

  • Top 10 Natural Language Processing Tools For Today's Demand
  • The Rust Programming Language Blog: Call for 2021 Roadmap Blogs Ending Soon

    We will be closing the collection of blog posts on October 5th. As a reminder, we plan to close the survey on September 24th, later this week.

  • Python Practice Problems: Get Ready for Your Next Interview

    Are you a Python developer brushing up on your skills before an interview? If so, then this tutorial will usher you through a series of Python practice problems meant to simulate common coding test scenarios. After you develop your own solutions, you’ll walk through the Real Python team’s answers so you can optimize your code, impress your interviewer, and land your dream job!

  • Learn to Code Free — Our Interactive Courses Are ALL Free This Week!

    Exciting news: for the next week, all courses are free. Yup, every single course in every learning path is free from Sept 21-28. This free week includes all of our courses in R, Python, SQL, machine learning, Git, the command line, and much more! Even more exciting: complete at least one mission during this week and you'll unlock an additional prize: a downloadable data science career resources pack sent to your email! Now, it’s easier than ever to go from total beginner to job-qualified using Dataquest. The paywall is down!

  • Molfile "S SKP"

    In the last couple of essays I described some of the parts of a SDF record then pointed out some of the ways to break simple SDF record tokenizers. In this essay I'll point out an documentation curiosity which makes it even harder to parse a molfile with simple tools, though until I wrote this essay I had never seen it in actual use.

Games: Unity, Super Slap Sisters, Ayo the Clown and Steam News Hub

  • Unity 2020.2 Bringing Some Hefty Performance Optimizations [Ed: Microsoft Mono unfortunately]

    Not only did Unity Software experience a successful IPO last week but they also rolled out the Unity 2020.2 engine into public beta and with that comes some "major speed-ups" for performance.

  • Super Slap Sisters [Ed: Requires WINE]

    These are some great additions that allow for an even wider variety of playstyles, keeping your opponent guessing as to when the best time to strike is. For example, not only can the clutch be used during an attack to throw your opponent off, it can also be a lifesaver just as you’re about to reach the blastzone (knockout boundaries) after getting hit. The clutch will reverse your momentum, meaning that the sooner you perform the clutch after flying, the closer you’ll get to the stage and therefore have a more successful recovery. Players who are new to this type of fighting will not be left in the dark here, as there is a great tutorial mode. The tutorial is very interactive with the player, giving them everything they need to get a basic grasp on how the game works. You can also read about the various mechanics that are available in-game, what they do, and how to do it, as well as get a bio on each character and what their moves entail.

  • Go on an epic quest as a not-so-average clown trying to find their dog in Ayo the Clown

    Ayo the Clown is an upcoming adventure platformer from developer Cloud M1, it should be releasing this year and it looks so full of charm it could pop like a balloon at any moment. Funded on Kickstarter back in September 2019 with 475 backers pledging $20,397 we totally missed this, it even had a Linux demo back then too. Cloud M1 said their take on the busy platformer genre is one that's supposed to "reintroduce you to the incredibly fun platformer games of the ‘90s where platforming is accompanied by an inspiring and memorable story". It has a pretty amazing style, one you can easily say is quite Nintendo-like.

  • Valve rolls out News Channels onto Steam to follow your favourite curators - like us!

    Over time Steam continues to grow as much more than just a games store, and Valve are showing how today with their next Steam Labs experiment to let you get your news. Steam Labs Experiment 009 announced here is an addition to the News Hub, which is now hooked up with the Steam Curator system. Valve said it's now nearing completion and it's a big stop towards the full launch. This will presumably replace the old Steam news feed.

Vulkan Graphics: Vulkan Portability Extension and More

  • Vulkan Portability Extension 1.0 Now Shipping For Expanding Vulkan's Reach

    The Vulkan Portability Extension (VK_KHR_portability_subset) has been released as part of the effort by The Khronos Group in getting Vulkan running on as many platforms as possible, including the likes of Apple macOS/iOS. The VK_KHR_portability_subset extension is about getting Vulkan up and running on non-Vulkan APIs, as opposed to the success we have already seen in areas like getting OpenGL or Direct3D atop Vulkan. The VK_KHR_portability_subset extension makes it easier for the likes of GFX-RS and MoltenVK for getting Vulkan running on platforms like Apple's operating systems where Vulkan is not supported and thus having to reside on top of say the Apple Metal API.

  •  
  • Mike Blumenkrantz: Dynamism

    In Vulkan, a pipeline object is bound to the graphics pipeline for a given command buffer when a draw is about to take place. This pipeline object contains information about the draw state, and any time that state changes, a different pipeline object must be created/bound. This is expensive. Some time ago, Antonio Caggiano did some work to cache pipeline objects, which lets zink reuse them once they’re created. This was great, because creating Vulkan objects is very costly, and we want to always be reusing objects whenever possible. Unfortunately, the core Vulkan spec has the number of viewports and scissor regions as both being part of the pipeline state, which means any time either one changes the number of regions (though both viewport and scissor region counts are the same for our purposes), we need a new pipeline.