Quantcast
Channel: Linux Guides, Tips and Tutorials | LinuxScrew
Browsing all 314 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Rounding Numbers Up with the PHP ceil() Function, with Examples

This short tutorial will cover how to use the PHP ceil() function to round numbers UP – and provide some code examples. The PHP ceil() function rounds a number up (and only up!) to the nearest integer....

View Article


Image may be NSFW.
Clik here to view.

TwisterOS For Raspberry Pi Does It All [Screenshots/Review]

Here’s a screenshot-heavy review of Twister OS – a weird, kitchen-sink included Linux OS for Raspberry Pi with tools for emulation, gaming, and overclocking.  It even comes with Windows and macOS...

View Article


Image may be NSFW.
Clik here to view.

Rounding Numbers Down with the PHP floor() Function, with Examples

This short tutorial will cover how to use the PHP floor() function to round numbers DOWN – and provide some code examples. The PHP floor() function rounds a number down (and only down!) to the nearest...

View Article

Image may be NSFW.
Clik here to view.

Calculating the Absolute Value in JavaScript with Math.abs()

This article will explain what absolute values are, how they are used, and how the JavaScript Math.abs() function can be used to calculate the absolute value of a number. What is the ‘Absolute Value’...

View Article

Image may be NSFW.
Clik here to view.

XOR (Exclusive Or) in Python

This article explains XOR (Exclusive Or) – what it is, why it’s used, and how to implement it in the Python programming language. What is XOR / Exclusive OR XOR – Exclusive Or – is a logical operation...

View Article


Image may be NSFW.
Clik here to view.

How to Update/Upgrade Python in Linux [Ubuntu/RedHat]

This article will show you how to update Python to the latest version on your Linux Operating system. Python is updated yearly with new features and big upgrades – these are called major updates. In...

View Article

Image may be NSFW.
Clik here to view.

What is the $_SERVER Superglobal Variable in PHP?

This article will explain what the $_SERVER superglobal variable is in the PHP programming language. What is a ‘Superglobal’ Variable? A superglobal variable is a variable that is available to all...

View Article

Image may be NSFW.
Clik here to view.

JavaScript substr() and substring() – What’s the Difference?

JavaScript has two similar-looking methods for extracting substrings from strings – substr() and substring(). This article explains the difference. These two functions perform almost the same function...

View Article


Image may be NSFW.
Clik here to view.

PHP_SELF – What It Is, and Why It’s Too Dangerous to Use [WARNING]

This article outlines the PHP_SELF attribute of the $_SERVER system information variable and why you should never, ever use it. What is _$SERVER? Check out our full article on $_SERVER here – but in...

View Article


Image may be NSFW.
Clik here to view.

JavaScript: Remove the First/Last Character from a String [Examples]

This tutorial will explain a few ways to remove the first or last character (or both!) from a string in the JavaScript programming language. This can be useful if you need to capitalize names or...

View Article

Image may be NSFW.
Clik here to view.

Converting Object to an Array Recursively in JavaScript

The Object.entries() method in JavaScript can be used to convert an object to an array – but it doesn’t work recursively. So here’s a function to accomplish that. I can’t think of a reason why you’d...

View Article

Image may be NSFW.
Clik here to view.

Snowflake/Muon: the Best GUI SSH Connection Manager on Linux

Secure, powerful remote access is one of the cornerstones of Linux’s functionality. The SSH protocol powers this, and Snowflake/Muon is an excellent tool for managing SSH connections. The flexibility...

View Article

Image may be NSFW.
Clik here to view.

How to Convert an Object to an Array in JavaScript [Examples]

This article will show you the ways to convert an object to an array in JavaScript – quickly and easily. There are many ways to convert objects to arrays, but these (should) be the most straightforward...

View Article


Image may be NSFW.
Clik here to view.

Why Using the Right Variable Type is Important (Especially in Javascript)

Variable types are a fundamental programming concept that often confuses beginners – especially those learning JavaScript. This article will show you the consequences of using the wrong variable types....

View Article

Image may be NSFW.
Clik here to view.

JavaScript: Compare Strings (Optionally Ignoring Case), With Examples

This quick tutorial will show you how to compare two or more strings in the JavaScript programming language – optionally ignoring case – with code examples. What are Strings? Strings are a series of...

View Article


Image may be NSFW.
Clik here to view.

Ruby vs Python – Which Programming Language to Learn in 2022?

Learning to program but aren’t sure which language to choose? Python and Ruby are popular choices. This article will provide info to help you decide. What is Python? Python is a general-purpose...

View Article

Image may be NSFW.
Clik here to view.

Why Use The Terminal [Linux/BSD]?

Lots of people choose to use the terminal instead of a graphical interface for coding, system administration, and even day-to-day computing – but why? Here’s a bunch of reasons. If you’re confused...

View Article


Image may be NSFW.
Clik here to view.

JavaScript vs Python – Which Should I Learn in 2022?

If you’re looking to learn how to program, Python and JavaScript are obvious choices – but which one would be most useful to you? Python and JavaScript are probably the most popular programming...

View Article

Image may be NSFW.
Clik here to view.

Java vs Python – What are They and Which Should I Learn/Use in 2022?

Java and Python are versatile programming languages used for thousands of projects – so, which one should you learn for your projects? Below, I’ll look at what Python and Java are, what they’re best...

View Article

Image may be NSFW.
Clik here to view.

What is Bash/The Terminal/Linux Shell? What Do They Mean?

New to Linux and confused about the terminology surrounding the terminal, shells, bash, and the command line? This article explains what they are. The terms terminal, shell, command line, and Bash are...

View Article
Browsing all 314 articles
Browse latest View live