The Linux Rain Linux General/Gaming News, Reviews and Tutorials

Articles found under tag: tutorial

Grouping things with AWK

By

In this article I explain one way to group data items with AWK arrays. The code is a little mysterious but the results are impressive, especially in my second example! Case 1: Cricket stats The table 'runs' is tab-separated and lists the 86 national team cricket players who scored (or have so far…

Read Article

Building sequences of numbers on the command line

By

There are two easy-to-use tools for generating numerical sequences. 'Brace expansion' is a BASH shell built-in, while the seq command is included in the GNU/Linux 'coreutils' package. Each tool has its peculiarities and advantages, as shown below. Simple sequences One difference between the two…

Read Article

Building a Desktop Wikipedia Checker

By

I often look something up in Wikipedia when reading non-browser documents, like PDFs, ODTs and emails. I wanted to have a little desktop window for those look-ups - somewhere I could check Wikipedia without opening a browser and without leaving the document I'm reading. This article describes how I…

Read Article

How to repeat a script, or not

By

I have a data-entry script which adds records to a plain-text data table. It's a fairly complicated script with a GUI dialog, and until recently it added one record at a time. To add another record, I had to launch the script again. Was there a simple way (I asked myself) to re-run the script, or…

Read Article

On dates and stuffed non-dates

By

Nothing gives my wife the Screaming Meemies like dates in spreadsheets. Unless she formats the target cell in advance as text, the spreadsheet will turn a perfectly innocent, non-date string like 23/2/6 into '23-Feb-2006'. When she types 6420-11-3, according to both LibreOffice Calc and Gnumeric,…

Read Article

The header line: how to add, delete and ignore it

By

In a plain-text table, the first or header line usually contains the names of the fields. In this article I've pulled together a variety of ways to add and delete a header, and also how to do things with the rest of the table while leaving the header intact as the first line in the file. Add a…

Read Article

Joining Tables on the Command-Line

By

This article compares 3 different ways to join tables on a common field. All 3 work OK on small tables, but there's a big difference in speed when the tables to be joined are large, as shown below. Table joining isn't something you need to do if you store data in a simple, flat-file database like a…

Read Article

Splitting a File Elegantly

By

In a previous Linux Rain article I compared different ways to delete blank lines, and showed that the AWK way was the simplest and most thorough. Here I show how to split a text file into multiple text files using a surprisingly simple AWK command. Background In 2013 I published an article in Free…

Read Article

Tips on getting (and suggesting, and editing) user input

By

In a previous Linux Rain article I explained how to use the YAD dialog to do multiple-item data entry in a GUI. Here I show one way to allow users to check and edit what they've entered in YAD. I also explain how to offer default, editable inputs in terminal-based data entry, and how to color the…

Read Article

How to get nowhere in particular

By

In this tutorial I explain one way to generate a random geographical location, using simple command-line tricks. Latitude and longitude: decimal degrees Latitude runs from 0 to 90 degrees from the Equator to the North Pole, and 0 to 90 degrees from the Equator to the South Pole. Longitude in…

Read Article

News Elsewhere

Linuxtoday.com

Seeing the cloud through Ubuntu-colored glasses

 ZDnet: Ubuntu cloud users see OpenStack rising, Docker getting more talk than traction, and companies moving to the hybrid cloud.

Official Google Drive Linux Client Screenshots Leaked

 webupd8: It has been almost three years since Google Drive launched and we have yet to see an official client for Linux.

Apache HTTP Server 2.4.12 Patches 4 Vulnerabilities

InternetNews.com: While some in the security community are chasing GHOSTs this week, there is another update that needs attention.

SCALE Prep Continues; Will Dell Get It Right?

 FOSSforce: A call to Dell Customer Service resulted in four customer service reps, including a manager, who couldn't answer why there was a discrepancy in availability, let alone understanding why I didn't just want the Windows laptop in the first place.

CIOs: It's time to reinvent yourself and your teams, says Weather Company CIO

 EnterprisersProject: The CIO of the Weather Company explains why open source software is an 'uncomfortable' conversation that CIOs need to be having because it could be the key to innovation.

How to Upgrade Linux Kernel to Stable 3.18.4 on CentOS 7.x

Linoxide: How to upgrade your current version of linux kernel to the latest stable version 3.18.4 on CentOS 7.0.

Explaining the Big Data Productivity Gap

 The VAR Guy: The slow adoption and lack of productivity associated with Hadoop and other big data technologies likely stems from poor planning and lack of big data training and expertise, among other factors.

WordPress, PHP Apps, Subject to Ghost glibc Attacks

 Threatpost: Less than 48 hours after the disclosure of the Ghost vulnerability in the GNU C library (glibc), researchers have uncovered that PHP applications, including the WordPress content management system, could be another weak spot and eventually in the crosshairs of attackers.

Linux Foundation's AllSeen IoT Alliance Opens up IP Policy

Datamation: The patent issue is finally dealt with at the open source Internet of Things group.

GamingOnLinux.com Latest Articles

Feral Interactive Are Teasing Another Linux Port

Even though we still haven't found out what game we teamed up with Feral Interactive to do a competition for, they have unleashed a new radar blip for a new Linux port.

Friday Livestream Time! Join Us At 6 PM UTC!

It has been an eventful week and to wrap it up we have our traditional Friday Livestream where we chill out, play games and talk about gaming on Linux in general.

Dying Light Patch Released, Our Thoughts On It, Still Terrible

Techland has begun their patching of Dying Light for Linux & Windows in their effort to clean up the rather botched release, and we took a look.

Dying Light Is Almost Playable On Linux, If You Do Some Tinkering (Updated)

Thanks to pointers from our community member xpander69, we have found that Dying Light can be played almost acceptably on Linux with some messing around with the files. Updated.

Starbound's Massive Stable Update Released, It's On Sale, And We Have A Server

Starbound is a fantastic game, and the stable update has been long overdue, but that wait ends right now. The stable update is absolutely massive, and it's really worth trying out.

Aspyr's Fahrenheit: Indigo Prophecy Remaster Is Real And It's Out, We Have Keys For You

Few days ago the remaster of Fahrenheit popped up on Amazon with Aspyr logos and penguins. Well, it seems that Aspyr is indeed behind the remaster and the Tux was put on there for a purpose. Behold, the next Aspyr Linux port is here!

Outlast, That Really Scary Game Looks Like It's Still Heading To Linux

Good news folks, thanks to a comment on a recent article we were poked about taking a look at the progress of porting Outlast to Linux, and it seems to have a new private Linux build in testing.

GOL Cast: Fragging Bots And Testing New Maps In Xonotic

We would like to interrupt our stream of news about AAA games and bring you some critique on the new Xonotic 0.8 version. So, enjoy!

Out There: Omega Edition, A Hard Sci-fi Space Exploration Game Now In Beta For Linux, My Thoughts

Out There: Omega Edition has landed on Linux in the form of a beta, and it's a game we have been eagerly waiting for. Thankfully I've had some time to test before the official release, and here are some thoughts.

Darksiders Linux Port Looks Like It Is Still Happening

Darksiders is another big game we are excited about, and sadly the current people in charge of the port haven't replied to our messages, but thanks to SteamDB we can see it's still happening.

The Witcher 2 Has A New Beta For Linux, The Improvements Are Staggering

We know how some of you feel about wrappers, but that's an old argument now. The game is here, and the developers are still working on improving it. The Witcher 2 had a new beta a few days ago, and we took a look and just how much of an improvement it is.

Scirra’s 'Construct' Game Creation Editor To Support Linux With Construct 3

I love the idea of game creation tools that require no programming knowledge, as they enable hobbyists to have fun, quick prototyping and much more. Construct 2 is one of the finest around, and the developers have laid out plans for Construct 3.

Borderlands: The Pre-Sequel New DLC ‘Lady Hammerlock The Baroness Pack’ Lands On Linux

Borderlands: The Pre-Sequel the latest in the Borderlands series that is available on Linux has gained another DLC titled ‘Lady Hammerlock the Baroness Pack’, and this new DLC is available for Linux thanks to Aspyr Media.

Two Worlds II Is Not Coming To Linux, Well Maybe, We Aren't Sure Anymore

Sadly sometimes people go on auto-pilot, and the developer of Two Worlds II and Raven's Cry has confirmed to me they didn't read my previous emails correctly, so Two Worlds II is not coming to Linux, but it might be, confused? I am.

Unfurl Your Scythes, Grim Fandango Is Now Available

Double Fine's remastered version of Grim Fandango has launched and is now available for Linux on Steam, GOG and the Grim Fandango Remastered website.