Language Selection

English French German Italian Portuguese Spanish

Programming: Pascal, Java, Perl and Python

Filed under
Development
  • Excellent Free Tutorials to Learn Pascal

    Pascal is an imperative and procedural programming language designed in the late 1960s by Niklaus Wirth to teach structured programming using subprograms called procedures and functions. The language is a direct descendant from ALGOL 60, and takes programming components from ALGOL 68 and ALGOL-W. Pascal was named in honour after the French mathematician, physicist, and philosopher Blaise Pascal who helped to pioneer computer development.

    Pascal is a popular teaching language to introduce structured programming techniques to students. There are many benefits from this type of programming such as code reusability, partitioning code into readable modules and procedures, and help programmers work together on code simultaneously. The language also lends itself to teaching with its easy syntax. Pascal is a strongly typed language, procedural, case insensitive, with extensive error checking. It has built in data types such as arrays, records, files and sets. There are also user defined data types. Pascal supports object oriented programming.

  • Interfaces in Java

    We have already learned about the class. A class is a way of defining how an object would look and behave. A class contains variables and methods. Variables define how an object looks and feels. Methods inside a class define how an object behaves.

    An interface is a special type of class. We need to understand what makes an interface special. An interface is a way of defining that the object that will be made using this interface will have to have the methods with its implementation declared in the interface. The interfaces do not accept the implementation of the methods. That means when a class implements this interface, that class will have to provide the implementation for all the methods already declared in the interface. Below is an example of an Interface.

  • 2020.01 20/20 Foresight

    It’s the time of the decade to be looking forward! 2020 will be the first full year of the Raku Programming Language. Yours truly predicts that more people will be using Raku in the twenties than ever before! That Raku will become faster and will have quite a number of features added. Please insert your own predictions here

  • Modern functions in a post-modern language

    The new _modern function variants in Time::Local have come up a few times lately. I have some thoughts on them, but presenting my position dispassionately enough to be persuasive demands an essay of unfortunate length… so let’s get on with it.

    Let me lead with the positive: it is a problem with the traditional functions that they would sometimes add 1900 to the year and sometimes a different value and sometimes nothing. This heuristic in the interface is bad. Doing something about it is a good idea.

    Let me also lay out some simple statements of fact: Perl ships with gmtime and localtime functions which return a datetime represented as a list of numbers. Time::Local supplies inverse functions which take such a list and return the Unix epoch time that corresponds to that datetime. The Perl functions, among other things, return the year as the number of years since 1900. A correct inverse of the core functions would therefore simply add 1900 to the year passed.

    The traditional Time::Local functions do not do this: they only do it if the year number is just big enough but not too big.

  • Pandas drop_duplicates(): How to Drop Duplicated Rows

    In this post, we will learn how to use Pandas drop_duplicates() to remove duplicate records and combinations of columns from a Pandas dataframe. That is, we will delete duplicate data and only keep the unique values.

    This Pandas tutorial will cover the following; what’s needed to follow the tutorial, importing Pandas, and how to create a dataframe fro a dictionary. After this, we will get into how to use Pandas drop_duplicates() to drop duplicate rows and duplicate columns.

    Note, that we will drop duplicates using Pandas and Pyjanitor, which is a Python package that extends Pandas with an API based on verbs. It’s much like working with the Tidyverse packages in R. See this post on more about working with Pyjanitor. However, we will only use Pyjanitor to drop duplicate columns from a Pandas dataframe.

  • About my Qt times, and a Qt for Python voice assistant

    I spent a short time @Qt, but a fruitful one. I was lucky to work with the great Qt for Python team that made me feel very welcomed. I was also lucky to have had a great mentor, Cristián Maureira-Fredes, that was super supportive and cool to work with.

    Besides helping to spread the word about Qt for Python in the Open Source community by going to conferences and events, during my time in Qt I added a few features to the Qt ecosystem to make Qt for Python more visible and interesting to beginners like adding new templates and the example tab in QtCreator, I also wrote a translation tool to convert Qt code for Qt for Python and translate our docs, wrote a tutorial and an example to present at the Qt World Summit 2019: a voice assistant using open source technologies. This blog post will explain a little bit about this example and it's going to show you a thing or two about this it in case you want to experiment with it.

  • Top 10 Most Read Mouse vs Python Articles of 2019

    2019 was a good year for my blog. While we didn?t end up getting a lot of new readers, we did receive a small bump. There has also been a lot more interest in the books that are available on this site.

  • How I use Python to get Salesforce data

    After writing about "How I built a Python script to read e-mails from an Exchange Server" and “How I access Microsoft SharePoint in my Python scripts” and getting great feedback on the articles, I decided to write a little more about accessing business software data from Python. This time I moved out of the Microsoft world and explored the Salesforce and Python combination.

  • Python 3.7.5 : Post class and migration process.
  • Reuven Lerner: Looking back at 2019, looking forward to 2020

    Hi, and welcome to 2020! The last year (2019) was quite a whirlwind for me and my work — and I thus wanted to take a few minutes to summarize what I’ve done over the past year. But the coming year looks like it’ll be just as exciting, if not more so, and I wanted to fill you in on what you can expect.

    Let me start off by saying that I’m extremely grateful to have the opportunity to teach Python to so many people around the world, both in person and online. Thanks so much for your interest in my writing and work, and (for so many of you) for taking the time to e-mail me with corrections and suggestions. It means a lot to me.

More in Tux Machines

digiKam 7.7.0 is released

After three months of active maintenance and another bug triage, the digiKam team is proud to present version 7.7.0 of its open source digital photo manager. See below the list of most important features coming with this release. Read more

Dilution and Misuse of the "Linux" Brand

Samsung, Red Hat to Work on Linux Drivers for Future Tech

The metaverse is expected to uproot system design as we know it, and Samsung is one of many hardware vendors re-imagining data center infrastructure in preparation for a parallel 3D world. Samsung is working on new memory technologies that provide faster bandwidth inside hardware for data to travel between CPUs, storage and other computing resources. The company also announced it was partnering with Red Hat to ensure these technologies have Linux compatibility. Read more

today's howtos

  • How to install go1.19beta on Ubuntu 22.04 – NextGenTips

    In this tutorial, we are going to explore how to install go on Ubuntu 22.04 Golang is an open-source programming language that is easy to learn and use. It is built-in concurrency and has a robust standard library. It is reliable, builds fast, and efficient software that scales fast. Its concurrency mechanisms make it easy to write programs that get the most out of multicore and networked machines, while its novel-type systems enable flexible and modular program constructions. Go compiles quickly to machine code and has the convenience of garbage collection and the power of run-time reflection. In this guide, we are going to learn how to install golang 1.19beta on Ubuntu 22.04. Go 1.19beta1 is not yet released. There is so much work in progress with all the documentation.

  • molecule test: failed to connect to bus in systemd container - openQA bites

    Ansible Molecule is a project to help you test your ansible roles. I’m using molecule for automatically testing the ansible roles of geekoops.

  • How To Install MongoDB on AlmaLinux 9 - idroot

    In this tutorial, we will show you how to install MongoDB on AlmaLinux 9. For those of you who didn’t know, MongoDB is a high-performance, highly scalable document-oriented NoSQL database. Unlike in SQL databases where data is stored in rows and columns inside tables, in MongoDB, data is structured in JSON-like format inside records which are referred to as documents. The open-source attribute of MongoDB as a database software makes it an ideal candidate for almost any database-related project. This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo‘ to the commands to get root privileges. I will show you the step-by-step installation of the MongoDB NoSQL database on AlmaLinux 9. You can follow the same instructions for CentOS and Rocky Linux.

  • An introduction (and how-to) to Plugin Loader for the Steam Deck. - Invidious
  • Self-host a Ghost Blog With Traefik

    Ghost is a very popular open-source content management system. Started as an alternative to WordPress and it went on to become an alternative to Substack by focusing on membership and newsletter. The creators of Ghost offer managed Pro hosting but it may not fit everyone's budget. Alternatively, you can self-host it on your own cloud servers. On Linux handbook, we already have a guide on deploying Ghost with Docker in a reverse proxy setup. Instead of Ngnix reverse proxy, you can also use another software called Traefik with Docker. It is a popular open-source cloud-native application proxy, API Gateway, Edge-router, and more. I use Traefik to secure my websites using an SSL certificate obtained from Let's Encrypt. Once deployed, Traefik can automatically manage your certificates and their renewals. In this tutorial, I'll share the necessary steps for deploying a Ghost blog with Docker and Traefik.