Language Selection

English French German Italian Portuguese Spanish

Programming/Development Leftovers

Filed under
Development
  • The Qt Company Details The Graphics Stack Changes With Qt 6.0

    If all goes well Qt 6.0 will make its official debut in December. One of the areas much talked about for Qt 6 development has been the graphics architecture changes and better supporting more APIs besides OpenGL.

    Qt developer Laszlo Agocs has written a blog post outlining some of the fundamental graphics changes that have made the cut for Qt 6.0...

  • Javascript Confirm Method – Linux Hint

    Javascript is the most known language of the web. Javascript is widely used in front-end development as well as in the back-end. Javascript provides a lot of built-in objects, functions, and methods to help in web development. In this article, we are going to learn one of the javascript’s built-in confirm() method, which is used to show pop-ups over the screen and get the user’s response. The confirm box is a bit different if we try to compare it with the alert box. It is a pop-up that contains a message/text with two buttons, “OK” and “Cancel”. The user won’t be able to do any task while a confirm box is over the screen, and he/she clicks the “OK” or “Cancel” button. This is the reason behind not recommending it’s often used. So, let’s have a look at what is a confirm box and what are the different ways to use it.

    The confirm() is basically a method, which is used to show a pop-up box over the web page, and it contains a message or text and two buttons, “OK” & “Cancel”. On the click of the “OK” button, the confirm method returns “true”. Similarly, on the click of the “Cancel” button, it returns false.

  • Applying JavaScript’s Splice Function – Linux Hint

    JavaScript is a lightweight programming language, and as with any programming language, when developing JavaScript programs, we often need to work with arrays to store data. In this article, we will introduce JavaScript’s built-in splice function and discuss how we can use it to manipulate an array. As data are generated, the structures used for storage must be updated. For this reason, a programmer must often add elements to or remove elements from an array.

  • Javascript Trim String – Linux Hint

    Javascript is a scripting or programming language, which is used both on the client-side and back-end of the web. Just like any other language, strings are an important type of the variables, and we often need to manipulate or alter strings as per our needs. While getting data from the user in the form fields, a programmer has to take care of a lot of things. In this article, we will have a look at javascript’s trim() function. We will learn how this function helps in beautifying the strings in javascript and how can we get rid of extra spaces. So, let’s take a look at what is a string and how we can trim the strings.

  • Exploring ELF files using pyelftools | by Roman Storozhenko | Oct, 2020 | Medium

    There are many tools for exploring executable files of ELF format. Most of them intended for providing sole piece of information extracted from a binary in the mentioned format. They are great, but sometimes we need a kind of an universal and yet highly specialized tool allowing to do much more than standard tools are able to. This is a moment when pyelftools come into play.
    In this article I would like to show some usage examples of of pyelftools. I don’t show how to use pyelftools itself, that is, its classes and other features, as you can find it in the documentation and source code itself. Instead I concentrate on applications of this tool for particular purposes.

  • How to Get Current Date & Time in JavaScript? – Linux Hint

    Javascript has become a massively used programming language due to the expansion of the internet and the web at an unbelievable pace. In the modern world of the web, we can do almost every task in one single browser, and Javascript is used in every single website we see in our daily routine life. We frequently used to see the date and time at almost every website. In this article, we are going to have a look at how we can get the current time in Javascript and what are the different ways to get the date and time according to our requirement.

    Javascript provides a built-in object Date, which helps in managing all the date and time. Later, we can extract whatever we want according to our needs using different built-in methods. So, let’s just straight jump into the process and learn the different techniques to extract the current date and time.

  • How to use PHP Null Coalescing Operator – Linux Hint

    The null coalescing operator (??), one of the new features of PHP 7, can be used as an alternative to the ternary operator and isset() function. It is used to check whether a value is assigned to a variable, and it returns a default value when no value is defined for a variable. This operator can also be used to see if $_GET[] and $_POST[], which receive user inputs, are set. Furthermore, it can check the value of more than one variable via chaining.

    In this article, the differences between the ternary and null coalescing operators are discussed, and the null coalescing operator is used as an alternative to the ternary operator and isset() function.

  • Seaborn Scatter Plot - Tutorial and Examples

    In this tutorial, we'll go over how to plot a scatter plot in Seaborn and Python. We'll go over simple plotting examples, as well as multi-faceted plotting of multiple plots and 3D plots using Seaborn and Matplotlib.

  • What Does "if __name__ == __main__:"" Do in Python?

    if __name__ == "__main__" is used to control the behavior of our Python code when it's executed directly or imported as a module. This tutorial explains how.

  • Python round() Function – Linux Hint

    Python is a very versatile high-level programming language that is most widely used in Data Sciences, Machine Learning, and Artificial Intelligence. Python provides great support through built-in modules and functions where we need to play with the numbers. The Python round() function rounds off the floating-point number to the stated number of decimals and returns it.For example, we have a floating-point number 6.677, and we need to round it off to the 2 decimal points, then the round() function will do the job and round off the number to 6.68.

More in Tux Machines

today's howtos

  • How to Install XFCE Desktop Environment in Linux Mint

    XFCE is a well know desktop environment for Linux, Solaris, and BSD systems. It is a fast, lightweight, user-friendly, GTK toolkit based desktop environment. It comes with a wide range of applications and Linux users find it very useful and appealing. You can download Linux Mint 20, in three editions Cinnamon, MATE, or Xfce. Here I will show you how to install Xfce 4.14 (GTK3 based) desktop environment on Linux Mint 20 Ulyana.

  • How to get system hardware details on CentOS 8

    When working on a Linux distribution, the user may need to know about hardware and basic system information of the current working system. Regardless of whether you are a software developer or a normal Linux user, it might be necessary to check software and hardware system compatibility. The command-line Linux system provides built-in commands through which a user can get the details about the currently used system and hardware platform. In this article, you will find a brief description of all commands, which will help you easily get details about your system and hardware.

  • [Old] The Finfisher Tales, Chapter 1: The dropper

    Amnesty International finally dropped the bomb and released a report about FinSpy spyware made by FinFisher Gmbh.

    The most interesting thing was the revelation of Mac and Linux versions, something that was missing from previous reports on this commercial malware (Kaspersky, Wikileaks).

    Their report summarizes the most important features but isn’t technically deep. This got me interested in verifying if FinSpy for Mac was any good malicious software or just the same kind of bullshit commercial malware like HackingTeam (they finally went kaput, oh so many crocodile tears!).

  • How To Install Zoom on CentOS 8 - idroot

    In this tutorial, we will show you how to install Zoom on CentOS 8. For those of you who didn’t know, Zoom is a cross-platform video communication tool that works on Windows, Mac, Android, and Linux systems. With Zoom, you can host webinars, organize online meetings, and create conference rooms. 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 through the step by step installation of Zoom client on CentOS 8.

  • How To Install OpenLiteSpeed on CentOS 8 - idroot

    In this tutorial, we will show you how to install OpenLiteSpeed on CentOS 8. For those of you who didn’t know, OpenLiteSpeed is an open-source HTTP server developed by LiteSpeed Technologies. OpenLiteSpeed is a high performance and lightweight HTTP server which comes with a Web Gui administration interface. As far as Linux web servers are concerned, OpenLiteSpeed has some interesting features that make it a solid choice for many installations. It features Apache compatible rewrite rules, a web administration interface, and customized PHP processing optimized for the server. 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 through the step by step installation of the OpenLiteSpeed web server on a CentOS 8.

  • How to Install Gibbon LMS on Ubuntu 20.04

    Gibbon is a free and open-source school management system specially designed for teachers, students, parents and leaders. It helps teachers to find, contact and help their students. It allows teachers to plan, teach, collect, assess and return work in one streamlined process. It is an excellent and one-stop-shop efficient tool that makes all information available in one place. It comes with a simple web-based interface that helps teachers to access all student details on the go.

Games: Aerofly FS 2 Flight Simulator, Amnesia: Rebirth, Vintage Story

  • Aerofly FS 2 Flight Simulator from IPACS is now available on Linux | GamingOnLinux

    Need to take to the skies? We can possibly help with that. Aerofly FS 2 Flight Simulator from IPACS recently quitely released a Linux version. They don't seem to have announced it in a news post but it's up and live on Steam right now. A reader emailed in about this, and the developer has confirmed it on their Steam forum. Looks like quite a detailed flight sim too with a number of aircraft included like the A320, B737-500, F-15, F-18, Aermacchi MB-339, King Air C90 GTx, Learjet 45, ASG 29 and Swift S1 gliders and more. After being released in Early Access in 2016, then a full release in 2017 it's continued being supported for a long time now. Most recently, it had a big update adding in the EC135 helicopter along with a bunch of optimizations to the game.

  • Amnesia: Rebirth is easily one of the scariest and best games of 2020

    After a rough launch, Frictional Games have nicely fixed up Amnesia: Rebirth and overall the experience is one we're not going to forget any time soon. "In Amnesia: Rebirth, you are Tasi Trianon, waking up deep in the desert of Algeria. Days have passed. Where have you been? What did you do? Where are the others? Retrace your journey, pull together the fragments of your shattered past; it is your only chance to survive the pitiless horror that threatens to devour you." While our livestreamer did a full playthrough live on our Twitch Channel cheered on by viewers which you can watch through on-demand on our YouTube Channel, I was spending it entirely alone in a dark room with no one but myself to count on. Not the best idea, because I am a complete wimp. I'm at least honest about that though and Amnesia: Rebirth was, in a word, terrifying. Okay, not all the way through, but plenty of it was. Amnesia: Rebirth might be Frictional's weirdest yet too. All of their games are strange in their own way but it feels like they really went hard on the darkness in Amnesia: Rebirth. It worked well though, not many games have made me terrified to look at a tiny window on a door before while I search a room for anything useful to keep me going that little bit longer.

  • Deep survival game Vintage Story has my full attention with the latest expansion

    Vintage Story has a huge new version almost ready to release, with a couple of Release Candidates going up for the 1.14 release and it's looking awesome. This is the survival game for those of you who love the blocky style of Minecraft but want something deeper, something much more complex and exciting. With full Linux support, Vintage Story is a good choice and the developer is definitely dedicated to their idea. With the 1.14 update pulling in lots of often requested features including character customization, the "Steel Age" along with assorted items to build like a metal door and a mechanical powered Pulverizer building that can grind down things for you which looks awesome. Your body temperature now matters more too with clothing giving warmth, frost damage during harsh winters, lots of new blocks, new graphics with shader effects and lots more.

Today in Techrights

Android Leftovers