Language Selection

English French German Italian Portuguese Spanish

Development

Python Programming

Filed under
Development
  • Django Weblog: DjangoCon Australia 2020: Schedule live and tickets on sale

    The 8th DjangoCon AU was scheduled to be run in Adelaide, South Australia this year. It's been moved to an online event and will take place on September 4th.

    DjangoCon AU is organized as a specialist track as part of PyConline AU. The schedule — though shorter than in previous years — is packed with talks about best practices, communities, contributions, and the present and future of Django.

    Since the event was due to run in Adelaide, the event is running in Australian Central Standard Time, UTC+9:30, and DjangoCon AU will start at 3:45pm ACST. This link shows when the DjangoCon AU Opening address starts for all the DjangoCon timezones..

  • Return how many times each letter shows up in the string by using an asterisk (*)

    Hello people, in this article we will solve the below python problem.

    You receive the name of a city as a string, and you need to return a string that shows how many times each letter shows up in the string by using an asterisk (*).

  • The Real Python Podcast – Episode #22: Create Cross-Platform Python GUI Apps With BeeWare

    Do you want to distribute your Python applications to other users who don't have or even use Python? Maybe you're interested in seeing your Python application run on iOS or Android mobile devices. This week on the show we have Russell Keith-Magee, the founder and maintainer of the BeeWare project. Russell talks about Briefcase, a tool that converts a Python application into native installers on macOS, Windows, Linux, and mobile devices.

  • Python vs R: Which is Good for Machine Learning?

    If you want to build a machine learning project and are stuck between choosing the right programming language to build it, you know you have come to the right place.

    This blog will not only help you understand the difference between the two languages namely: Python and R; but also help you know which language has an edge over one another in multiple aspects. So without wasting a single moment, let’s dive into it!

  • Freezegun - Real Joy for Fake Dates in Python

    If you've ever tested code involving dates and times in Python you've probably had to mock the datetime module. And if you've mocked the datetime module, at some point it probably mocked you back when your tests failed.

  • Mastering the SQLite Database in Python

    In this tutorial, we shall see some advanced tasks associated with the SQLite database from Python. We shall see topics such as inserting images, Listing the tables, Backup a database, Dumping Rollback in SQLite, Deleting records from a table, Dropping a table, SQLite database exceptions, and more.

  • PSF GSoC students blogs: Week 6 Blog Post
  • Top 10 Important Uses cases of Python in the Real World

    These top 10 Python uses cases in the real world prove how effective the programming language is. Read the real life uses of Python and implement it in your organization.

Programming Leftovers

Filed under
Development
  • Self-publishing and the 2nd edition of Ansible for DevOps

    Five years, 834 commits, and 24 major revisions later, I've just published the 2nd edition of Ansible for DevOps, a book which has now sold over 60,000 copies and spawned a popular free Ansible 101 video series on YouTube.

  • Open Standards Are Simple

    If you want to create a truly open standard, you _need_ to make it simple.

    There are no exceptions to this rule. When a standard becomes harder to fully implement than what your average motivated programmer can do in two months (max!), it _shouldn't_ be considered "open" anymore.

    Why?

  • In Which COVID-19 Misinformation Leads To A Bunch of Graphs Made With Rust

    A funny — and by funny, I mean sad — thing has happened. Recently the Kansas Department of Health and Environment (KDHE) has been analyzing data from the patchwork implementation of mask requirements in Kansas. They came to a conclusion that shouldn’t be surprising to anyone: masks help. They published a chart showing this. A right-wing propaganda publication got ahold of this, and claimed the numbers were “doctored” because there were two-different Y-axes.

    I set about to analyze the data myself from public sources, and produced graphs of various kinds using a single Y-axis and supporting the idea that the graphs were not, in fact, doctored. Here’s one graph that’s showing that:

    In order to do that, I had imported COVID-19 data from various public sources. Many states in the US are large enough to have significant variation in COVID-19 conditions, and many of the source people look at don’t show county-level data over time. I wanted to do that.

  • Basics of Working with the SQLite Database in Python

    A database is one of the most useful and popular files for storing data; they can be used to store any kind of data, including text, numbers, images, binary data, files, etc. SQLite is a relational database management system based on the SQL language. It is a C library, and it provides an API to work with other programming languages, including Python. It does not require a separate server process to be run as needed in large database engines like MySQL and Postgresql.

    It is swift and lightweight, and the entire database is stored in a single disk file, which makes it portable like CSV or other data storage files. Many applications use SQLite for internal data storage, mainly in environments like mobile devices or small applications.

  • Perl 7 By Default

    Perl 7 has been announced as the next direction of Perl development. My previous blog post explored at a high level the risks and benefits of the announced direction, as well as those of a more incremental proposal. The primary and critical difference between these two approaches is the decision to change interpreter defaults in an incompatible manner. I would like to explore each of the arguments presented for this design choice.

  • CY's Recent Submission for PWC(068-073)

    Skipped blogging on Perl Weekly Challenge(PWC) for a few weeks!

  • SSH vs. kubectl exec

    There’s a lot of similarities between SSH and kubectl, and both have their strengths and weaknesses. While SSH is architecturally set in stone, higher-level software can learn a thing or two from Kubernetes about centralized configuration when managing a fleet of machines. See Teleport for an example of how this can be done. SSH could also borrow the credential management approach from kubeconfigs (i.e. “put all my client creds and server info into one file that I can copy around”).

    kubectl could improve on its non-shell features like port forwarding and file transfer. It’s raw data throughput is also lacking, which precludes it from becoming a transport-layer protocol like SSH. In practice, these tools are complementary and get used for different tasks, it’s not “one or the other”. I hope this post helped you learn something new about both!

  • Can we do better than our C compiler?

    Today, I wanted to become a C compiler. I added a hand-compiled assembly version of echo from our previous coding exercise and added a new make target, make asm, that will assemble it. Let's look at our hand-compiled assembly and compare it to our C compiler and ask whether or not it was worth it.

  • Benign Data Races Considered Harmful

    The series of posts about so called benign data races stirred a lot of controversy and led to numerous discussions at the startup I was working at called Corensic. Two bastions formed, one claiming that no data race was benign, and the other claiming that data races were essential for performance. Then it turned out that we couldn’t even agree on the definition of a data race. In particular, the C++11 definition seemed to deviate from the established notions.

  • Micronaut 2.0 Full-Stack Java Framework Released

    The Micronaut framework uses Java's annotation processors, which work with any JVM language that supports them, as well as an HTTP server and client built on the Netty non-blocking I/O client server framework. To provide a programming model similar to Spring and Grails, these annotation processors pre-compile the required metadata to perform DI, define AOP proxies, and configure applications to run in a low-memory environment, the company says. Many of the APIs in Micronaut were "heavily inspired" by Spring and Grails," which was by design and aids in bringing developers up to speed quickly," the company says.

  • Understanding computer vision and AI, part 1

    An active area in the field of computer vision is object detection, where the goal is to not only localize objects of interest within an image but also assign a label to each of these objects of interest. Considerable recent successes in the area of object detection stem from modern advances in deep learning, particularly leveraging deep convolutional neural networks. Much of the initial focus was on improving accuracy, leading to increasingly more complex object detection networks such as SSD, R-CNN, Mask R-CNN, and other extended variants of these networks. While such networks demonstrated state-of-the-art object detection performance, they were very challenging, if not impossible, to deploy on edge and mobile devices due to computational and memory constraints. This greatly limits the widespread adoption for a wide range of applications such as robotics, video surveillance, autonomous driving where local embedded processing is required.

    [...]

    Model Evaluation is an integral part of the model development process. It helps to find the best model that represents our data and how well the chosen model performs on unseen data.

    To improve the model we tune the hyper-parameters; parameter that determines the network structure (number of neurons in the network, network activation functions) or training parameter (gradient descent learning rate, adding parameters like momentum in the weight update rule). Tuning those parameters is an inevitable and important step to obtain better performance. Methods like GridSearch and RandomizedSearch can be used to navigate through the different parameters.

  • Qt Design Studio 1.6 Beta released

    We are happy to announce the beta release of Qt Design Studio 1.6

    Qt Design Studio is a UI design and development tool that enables designers and developers to rapidly prototype and develop complex UIs. Both designers and developers use Qt Design Studio and this makes collaboration between the two a lot simpler and more streamlined. To get an impression, you should watch this video.

Python Programming

Filed under
Development
  • Announcing the new Jupyter Book

    Jupyter Book is an open source project for building beautiful, publication-quality books, websites, and documents from source material that contains computational content. With this post, we’re happy to announce that Jupyter Book has been re-written from the ground up, making it easier to install, faster to use, and able to create more complex publishing content in your books. It is now supported by the Executable Book Project, an open community that builds open source tools for interactive and executable documents in the Jupyter ecosystem and beyond.

  • Holdgraf: Announcing the new Jupyter Book

    On the Jupyter blog, Chris Holdgraf announces a rewrite of the Jupyter Book project. LWN looked at Jupyter and its interactive notebooks for Python and other languages back in 2018; Jupyter Book extends the notebook idea.

  • EuroPython 2020: Live Stream Recordings available

    We’re happy to announce the public availability of the live stream recordings from EuroPython 2020. They were already available to all conference attendees since the sprint days.

  • Learn Any Programming Language with This Learning Plan

    All it takes to master any programming language is the right learning plan.

    If you know anything about programming you should be aware that often you can’t tell whether what you are doing is wrong until it’s too late. That’s what makes programming a frustrating skill to master — long hours doing the wrong things.

    But hey, whether you want to make programming your full-time job or just a hobby, you can always make the learning curve less steep. The secret to getting it right with coding is this: have a learning plan! While the plan will not do the hard lifting for you, it will definitely provide the much-needed elbow grease to keep you grounded and focused as you learn programming.

  • Deploying Django to AWS ECS with Terraform

    In this tutorial, we'll look at how to deploy a Django app to AWS ECS with Terraform.

  • Matt Layman: Rendering Calendars - Building SaaS #68

    In this episode, I worked on rendering a calendar of important events in a school year. We built out the appropriate data structures, and I wrote some new model methods and added tests. On the last stream, I created a new model to track breaks in the school year. The app now shows the calendar for the school year, and I want to display the breaks on the calendar. Before digging too far into the code, I provided my thoughts about using Docker for development from a question that came from the chat.

Programming Leftovers

Filed under
Development
  • Go filesystems and file embedding

    The Go team has recently published several draft designs that propose changes to the language, standard library, and tooling: we covered the one on generics back in June. Last week, the Go team published two draft designs related to files: one for a new read-only filesystem interface, which specifies a minimal interface for filesystems, and a second design that proposes a standard way to embed files into Go binaries (by building on the filesystem interface). Embedding files into Go binaries is intended to simplify deployments by including all of a program's resources in a single binary; the filesystem interface design was drafted primarily as a building block for that. There has been a lot of discussion on the draft designs, which has been generally positive, but there are some significant concerns.

    Russ Cox, technical lead of the Go team, and Rob Pike, one of the creators of Go, are the authors of the design for the filesystem interface. Cox is also an author of the design for file embedding along with longtime Go contributor Brad Fitzpatrick. Additionally, Cox created YouTube video presentations of each design for those who prefer that format (the filesystem interface video and the file-embedding video).

  • a Piece of Note on Unicode Encoding for CJK characters (with my simple Caesar encoding script)
  • Plasmoid with C++

    So the goal is pretty simple, and all I have to do is to find a way to share information from KClock to the plasmoid. However the solution isn’t that trivia. As it turned out, DBus is perferred for IPC(Inter-process communication). Before start working on plasmoid, I need to expose some of the class of KClock to DBus first. Since KClock is built upon Qt, I choose to using Q-DBus as it will save a lot of effort than using low level interface. Now the problem is - I don’t know how to use Q-DBus. As usual, I went to the Qt documentation and to my surprise, it spent most content to describe the concept of DBus and compared to Qt’s signal/slot machinism. Although useful as it is, lack of examples meaning I still didn’t know how I can use it in my code. Thankfully, KDE has its own tutorial about DBus and it provides multiple examples. You can find it here.

  • How to use printf to format output

    When I started learning Unix, I was introduced to the echo command pretty early in the process. Likewise, my initial Python lesson involved the print function. Picking up C++ and Java introduced me to cout and systemout. It seemed every language proudly had a convenient one-line method of producing output and advertised it like it was going out of style.

  • Ceph – the practical storage solution for companies of all sizes

    Ceph was conceived by Sage A. Weil, who developed it while writing his dissertation and published it in 2006. He then led the project with his company Intank Storage. In 2014, the company was acquired by RedHat, with Weil staying on as the chief architect, in charge of the software’s development.

    Ceph only works on Linux systems, for example CentOS, Debian, Fedora, RedHat/RHEL, OpenSUSE, and Ubuntu. Accessing the software through Windows systems cannot be done directly, but is possible through the use of iSCSI (Internet Small Computer System Interface). As such, Ceph is particularly suitable for use in data centers that make their storage space available over servers, and for cloud solutions of any kind that use software to provide storage.

    We have complied a list of the most important features of Ceph: [...]

  • "Structural pattern matching" for Python, part 1

    We last looked at the idea of a Python "match" or "switch" statement back in 2016, but it is something that has been circulating in the Python community both before and since that coverage. In June it was raised again, with a Python Enhancement Proposal (PEP) supporting it: PEP 622 ("Structural Pattern Matching"). As that title would imply, the match statement proposed in the PEP is actually a pattern-matching construct with many uses. While it may superficially resemble the C switch statement, a Python match would do far more than simply choose a chunk of code to execute based on the value of an expression.

  • Federico Mena-Quintero: "Rust does not have a stable ABI"

    These are extremely valid concerns to be addressed by people like myself who propose that chunks of infrastructural libraries should be done in Rust.

    So, let's begin.

    The first part of this article is a super-quick introduction to shared libraries and how Linux distributions use them. If you already know those things, feel free to skip to the "Rust does not have a stable ABI" section.

Laravel for Programming (New Series)

Filed under
Development
  • Why Should I Use Laravel Framework
  • Composer Error while installing Laravel “Failed to decode response: zlib_decode(): data error
  • Mysql update or insert multiple rows – Raw Laravel SQL
  • Laravel update model with unique validation rule for attribute

    I have a Laravel User model whre I added unique validation rule on username and email. Now when I update my User through my Repo, and I want to re-validate my model, I get an error.

  • Laravel – Eloquent “Has”, “With”, “WhereHas”

    with() is generally used with eager loading, which is a quick way to pull related models. Basically, it means that, along with the main model, Laravel will preload the listed relationship(s). This is beneficial when you need to load additional data and want to avoid making N+1 DB bad practices. With eager loading, you run only one additional DB query instead of potentially hundreds of additional queries.

  • Getting a 500 Internal Server Error on Laravel 5+ Ubuntu 14.04

    This is the first time I am installing Laravel on Ubuntu and I am already running into issues, 500 errors. I have done it before, numerous times on Windows OS and never had an issue.

    This 500 internal server usually happens when your “mod_rewrite” module is not turned on.

  • Ajax Laravel 419 POST Error

    I would really be thankful if someone could help me with this. I am trying to make an Ajax call but I am getting 419 POST error.

  • Creating a Radio Button Input Field

    You want to create a radio button field for your Blade template.

  • Decoding HTML Entities to a String
  • 13 Best Laravel Helpers To Consider Using

    Laravel comes with a ton of useful global helper functions. If you haven’t used them so far, this is the best time to start. Over the years of me using the Laravel, 10 of those emerged as the most useful, making the development a lot easier. Sometimes we don’t really see how we can apply some methods until we see an example. So let’s get down to it and see the top 10 helpers I often use the most.

    These go for Laravel 5.*, however those on Laravel 6.* can bring these back using the following package https://github.com/laravel/helpers.

    You can also check out the official documentation for all laravel helper functions.

  • How to use Laravel with Socket.IO

    Websockets are cool. They are really helpful if you want to show real-time activities from your users (or perhaps some queue jobs).

    Now, if you are afraid of the word “Websockets”, don’t be. I will lay down the instructions on how you can use it and will be around to answer your questions if you need to.

    I had this challenge where I needed it to show a list of people who are currently viewing a specific URL in Laravel. So I started thinking. Part of me wanted to do a quick hack (luckily that’s not the strongest side of mine). Whilst the other wanted to build something cool, reusable and long-lasting.

  • Guide To Injecting Dependencies Into Controllers

    Laravel’s facades present a simple interface to the most useful classes in Laravel’s codebase. You can get information about the current request and user input, the session, caches, and much more.

    But if you prefer to inject your dependencies, or if you want to use a service that doesn’t have a facade, you’ll need to find some way to bring instances of these classes into your controller.

    All controller methods (including the constructors) are resolved out of Laravel’s container, which means anything you typehint that the container knows how to resolve will be automatically injected.

  • How to Upload Multiple Files via Ajax (VueJs and Laravel 5.5) - File Management

    When I first started using VueJs, it was a nightmare to find a decent tutorial on how to upload a single file using Ajax, let alone a tutorial explaining how to manage multiple files.

    I have been dealing a couple of years with file management, mostly using VueJs and Laravel, so I thought writing a tutorial like this could help a lot of developers implement one of the coolest things in applications, which is real-time asset management.

    First off, you will find many solutions online that are good but those who are early beginners will definitely struggle.

    What I will cover here is writing your frontend and backend code that will allow you to upload multiple files. Additionally, I will give you a few tricks on how to apply this stuff to different situations.

Python Leftovers

Filed under
Development
  • sphinxcontrib-spelling 5.2.1

    sphinxcontrib-spelling is a spelling checker for Sphinx-based documentation. It uses PyEnchant to produce a report showing misspelled words.

  • Python Community Interview With Bruno Oliveira

    Welcome to Real Python, Bruno. I’m glad you could join us. Let’s start in the same manner we do with all our guests: How’d you get into programming, and when did you start using Python?

  • How to use AJAX with Django

    AJAX is an acronym for Asynchronous JavaScript and XML. It is a group of inter-related technologies like JavaScript, DOM, XML, HTML, CSS etc. AJAX allows you to send and receive data asynchronously without reloading the web page.

    At some point in your project development process, you will need AJAX to execute some task. One fine example could be checking username availability on the signup form.

    We will discuss the same scenario here and will guide you through the step by step process of using AJAX with Django.

  • How to create management commands in Django

    You must have used createsuperuser command in your Django application at one or another time. If not then I am sure you must have used makemigrations or migrate commands in your project. Yes? Yes.

    So these commands, also called as management commands are used to execute some piece of code from the command line.

    In this article, We will see how to create your own command.

  • Python Development Environment on macOS Mojave & High Sierra

    While installing Python and Virtualenv on macOS Mojave & High Sierra can be done several ways, this tutorial will guide you through the process of configuring a stock Mac system into a solid Python development environment.

  • How to Learn Python for Data Science In 5 Steps

    Before we explore how to learn Python for data science, we should briefly answer why you should learn Python in the first place.

    In short, understanding Python is one of the valuable skills needed for a data science career.

    Though it hasn’t always been, Python is the programming language of choice for data science.

  • Conservancy and PyPy's great work together

    PyPy joined Conservancy in the second half of 2010, shortly after the release of PyPy 1.2, the first version to contain a fully functional JIT. In 2013, PyPy started supporting ARM, bringing its just-in-time speediness to many more devices and began working toward supporting NumPy to help scientists crunch their numbers faster. Together, PyPy and Conservancy ran successful fundraising drives and facilitated payment and oversight for contractors and code sprints.

    Conservancy supported PyPy's impressive growth as it expanded support for different hardware platforms, greatly improved the performance of C extensions, and added support for Python 3 as the language itself evolved.

  • A new chapter for PyPy: Transitioning away from a Charitable Model

    PyPy has been a member project of Software Freedom Conservancy since 2010 and although it's been a mutually successful partnership, nothing lasts forever — especially in software. Today, Conservancy and PyPy announce that they are winding down their ten year relationship. PyPy will remain free software, but the community's structure and organizational underpinnings will change. Conservancy provides a fiscal and organizational home for projects that find the freedoms and assurances that come along with a charitable home advantageous for their community goals. While this framework was a great fit for the early PyPy community, that community has changed such that this is no longer the case. PyPy's leadership are exploring non-charitable options for its next phase of growth.

  • PSF GSoC students blogs: Week 9
  • PSF GSoC students blogs: Week 11 Check in!
  • PSF GSoC students blogs: Weekly Check In - 10

Java Programming

Filed under
Development
  • Java date format

    Date value needs to format for various programming purposes. One of the essential reasons to format the date is to represent the date value in a human-readable format. Many classes exist in Java to format the date value. DateTimeFormatter and SimpleDateFormat are two of them. These classes can be used to format date values in different ways. How these two classes can be used to format the date in Java is explained in this tutorial.

  • Java Enum Tutorial

    Java enum is a special Java type that defines by a Java class. It is also called the Java enumeration type. It is introduced in Java version 5 first, which is mainly used to define the collection of constants. The compile type of safety is ensured by using the enum type. So, when all possible values of the variable are known before compile time, then it is better to use enum type. It defines a class that always extends from java.lang.Enum. How enum type can be declared and used in Java are shown in this tutorial.

  • Java Abstract Class

    The concept of the abstraction is to highlight the task of the object instead of highlighting, “how the object does the task”. This type of concept can be implemented by using two ways in Java. These are the abstract class and interface. Abstract class contains the keyword abstract. This class can not be initiated like other normal classes, but a subclass can be derived by inheriting the abstract class. The features of the abstract class can be accessed by creating the object of the subclass. An abstract class can also contain the constructor that can be accessed by creating the object of the subclass class. How you can use an abstract class in Java is shown in this tutorial.

  • Java exception handling

    When the normal flow of the program execution interrupts for any error, then it is called an exception. This type of event can be handled by using a try-catch-finally block. An exception is an object that is used to catch the error and run the statement based on the error condition that is called exception handling. Mainly two types of error are handled by exception handling. These are compiled time errors and run-time errors. The run-time errors are handled by exception handling. How you can handle exceptions in Java is explained in this tutorial.

Programming Leftovers

Filed under
Development
  • RcppSimdJson 0.1.1: More Features

    A first update following for the exciting RcppSimdJson 0.1.0 release last month is now on CRAN. Version 0.1.1 brings further enhancements such direct parsing of raw chars, working with compressed files as well as much expanded querying ability all thanks to Brendan, some improvements to our demos thanks to Daniel as well as a small fix via a one-liner borrowed from upstream for a reported UBSAN issue.

    RcppSimdJson wraps the fantastic and genuinely impressive simdjson library by Daniel Lemire and collaborators. Via very clever algorithmic engineering to obtain largely branch-free code, coupled with modern C++ and newer compiler instructions, it results in parsing gigabytes of JSON parsed per second which is quite mindboggling. The best-case performance is ‘faster than CPU speed’ as use of parallel SIMD instructions and careful branch avoidance can lead to less than one cpu cycle use per byte parsed; see the video of the talk by Daniel Lemire at QCon (also voted best talk).

  • Jonathan Dowland: Generic Haskell

    When I did the work described earlier in template haskell, I also explored generic programming in Haskell to solve a particular problem. StrIoT is a program generator: it outputs source code, which may depend upon other modules, which need to be imported via declarations at the top of the source code files.

    The data structure that StrIoT manipulates contains information about what modules are loaded to resolve the names that have been used in the input code, so we can walk that structure to automatically derive an import list. The generic programming tools I used for this are from Structure Your Boilerplate (SYB), a module written to complement a paper of the same name.

  • 9 reasons I upgraded from AngularJS to Angular

    In 2010, Google released AngularJS, an open source, JavaScript-based frontend structure for developing single-page applications (SPAs) for the internet. With its move to version 2.0 in 2016, the framework's name was shortened to Angular. AngularJS is still being developed and used, but Angular's advantages mean it's a smart idea to migrate to the newer version.

  • [Old/Odd] 5 news feautures of PHP-7.2

    Before PHP 7.2 the object keyword was used to convert one data type to another (boxing and unboxing), for example, an array to an object of the sdtClass class and/or vice versa, as of PHP 7.2 the object data type can be used as parameter type or as function return type.

  • This Week In Rust: This Week in Rust 351

Laravel Programming

Filed under
Development

Python Programming Leftovers

Filed under
Development
  • How To Build A Simple Virtual Assistant Using Python

    Virtual assistants are everywhere from Alexa, to Google Home, to Apple Siri. They help us check the weather, make phone calls, control the thermostat, door locks, and other smart home devices e.t.c

    In this article, I will be walking you through how to create a simple virtual assistant using Google Speech Recognition and IBM Watson Text to Speech in Python.

  • Deep Learning in Keras - Building a Deep Learning Model

    Deep learning is one of the most interesting and promising areas of artificial intelligence (AI) and machine learning currently. With great advances in technology and algorithms in recent years, deep learning has opened the door to a new era of AI applications.

    In many of these applications, deep learning algorithms performed equal to human experts and sometimes surpassed them.

    Python has become the go-to language for Machine Learning and many of the most popular and powerful deep learning libraries and frameworks like TensorFlow, Keras, and PyTorch are built in Python.

    In this series, we'll be using Keras to perform Exploratory Data Analysis (EDA), Data Preprocessing and finally, build a Deep Learning Model and evaluate it.

    In this stage, we will build a deep neural-network model that we will train and then use to predict house prices.

  • Return modified string with Python

    Hello and welcome back, today I have solved another python related problem on CodeWars and would like to post the solution here.

    The question is as follows:-

    Given 2 strings, a and b, return a string of the form short+long+short, with the shorter string on the outside and the long string on the inside. The strings will not be the same length, but they may be empty ( length 0 ).

  • Python 3.9.0rc1

    This is the first release candidate of Python 3.9

    This release, 3.9.0rc1, is the penultimate release preview. Entering the release candidate phase, only reviewed code changes which are clear bug fixes are allowed between this release candidate and the final release. The second candidate and the last planned release preview is currently planned for 2020-09-14.

  • Python 3.9.0rc1 is now available

    Python 3.9.0 is almost ready. This release, 3.9.0rc1, is the penultimate release preview. You can get it here:

    https://www.python.org/downloads/release/python-390rc1/

    Entering the release candidate phase, only reviewed code changes which are clear bug fixes are allowed between this release candidate and the final release. The second candidate and the last planned release preview is currently planned for 2020-09-14.

    Please keep in mind that this is a preview release and its use is not recommended for production environments.

  • The Inner Workings of: Arq

    The main point of (what I colloquially call) a job library is, essentially, to execute a function (i.e. job) somewhere else, and potentially at a different time. When using a sync approach to web services (such as when using non-async Django or Flask), the limitations of the synchronous IO model basically require the use of a job library to execute logic outside of the context of a single request handler - if you don't want to do the logic in the scope of a request (and make the request take longer), you need to do it somewhere else, so you need a job library like Celery. A simple example might be an HTTP interface to send an email to a lot of recipients. You might not want the request to wait until all the emails have been sent to return a response since that might take a long time, so you would just schedule a job to run somewhere else to do the work.

    Job libraries like Celery basically require you to run special worker processes in addition to your web handler processes, and the worker processes use a database to get instructions to run functions, and then they run them.

  • PSF GSoC students blogs: Weekly Check-In | GSoc | #11
  • PyCoder’s Weekly: Issue #433 (Aug. 11, 2020)
  • Pysa: An Open-Source Tool To Detect & Fix Security Issues In Python Code

    Facebook has open-sourced Pysa, an internal tool used on Instagram to detect and fix bugs in the huge Python codebase of the app. Pysa can automatically identify vulnerable code snippets written by Facebook engineers before they are integrated into the social network’s systems.

    It is a static analyzer tool meaning it works by scanning code in a “static” form before the code is compiled. It hunts for common patterns that are usually observed in bugs and flags the potential issues in the code.

  • Facebook Open Sources Analysis Tool for Python Code

    The security-focused tool relies on Pyre, Facebook’s type checker for Python, and allows for the analysis of how data flows through code. It can be used to identify issues related to the protection of user data, as well as flaws such as XSS and SQL injection.

    In addition to making Pysa available in open source, Facebook released many of the definitions that it leverages when looking for security bugs, making it readily available for others to start analyzing their own Python code.

Syndicate content

More in Tux Machines

Type Title Author Replies Last Postsort icon
Story Open Hardware: Arduino, RISC-V and 96Boards Roy Schestowitz 15/08/2020 - 2:23am
Story Audiocasts/Shows: Linux in the Ham Shack and Linux Headlines Roy Schestowitz 15/08/2020 - 1:56am
Story Python Programming Roy Schestowitz 15/08/2020 - 1:53am
Story today's howtos Roy Schestowitz 15/08/2020 - 1:51am
Story IBM/Red Hat/Fedora Leftovers Roy Schestowitz 15/08/2020 - 1:49am
Story Wine 5.15 and Beyond Roy Schestowitz 15/08/2020 - 1:20am
Story Wandboard IMX8M-Plus SBC debuts AI-enabled i.MX8M Plus Roy Schestowitz 15/08/2020 - 12:46am
Story Kernel: Linux 5.9 Changes and Linux Plumbers Passes Roy Schestowitz 15/08/2020 - 12:13am
Story Linux Foundation Broadens Relationship With Surveillance Roy Schestowitz 3 15/08/2020 - 12:11am
Story today's howtos Roy Schestowitz 15/08/2020 - 12:03am