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

Articles found in "Tutorials" category:

How to read a file N lines at a time in BASH: 3 methods

By

The file I'll be using for this demonstration is called demo and looks like this: demo is plain text with 2 tab-separated columns. The first column is sorted alphabetically, but the second column isn't sorted. What I want to find out is how many different letters are in the second column for each…

Read Article

Split a table and number the pieces: two methods

By

I worked on these bits of code to simplify a shell script of mine. You really wouldn't want to see the script's original commands here — they're way too ugly! The new commands are much prettier and work well. The problem To simplify the story, here's a comma-separated table called demo, sorted on t…

Read Article

Some baby name problems

By

No, these aren't homework problems from a computer science class. They're interesting head-scratchers based on a data-analysis project I worked on recently, with the data 'reimagined' here for simplicity but with the underlying problems intact. We'll start with boys and girls, which are text files…

Read Article

A "Track Changes" script for data cleaning

By

The complicated-looking script at the end of this article is in two parts. The first part detects the changes made when a data table is edited, and reports the changes as a plain-text logfile. It's a straightforward bit of shell scripting based on the diff command. The second part of the script…

Read Article

Linux, HP and the avoidance of Windows

By

Having a TL;DR day? In a nutshell, I just replaced a 2011 HP Mini netbook with a 2014 HP mini-notebook. Both run Linux. Thank you, HP. The netbook I bought a 2011 HP Mini 110-3744TU in early 2012 (specs below). It came with Windows 7 'starter', which I replaced with CrunchBang Linux. The Mini is…

Read Article

How to garble

By

In 2003 a strange paragraph made the rounds on email. It read: Aoccdrnig to rscheearch at an Elingsh uinervtisy, it deosn't mttaer in waht oredr the ltteers in a wrod are, olny taht the frist and lsat ltteres are at the rghit pcleas. The rset can be a toatl mses and you can sitll raed it wouthit a…

Read Article

DMS to DD to KML with AWK and sed

By

In a 2014 Linux Rain article I describe a fast 'points plotter' for Google Earth. First I copy a list of latitude/longitudes (lat/lons) from a spreadsheet to the clipboard, then I launch a shell script with a keyboard shortcut. The script builds a KML file from the copied list and opens the KML for…

Read Article

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

News Elsewhere

Linuxtoday.com

GNOME's Photos App to Receive Editing, Import, and Sharing Features

 softpedia: The GNOME developers are working to improve the functionality and looks of some of the core apps in the stack

There is No 'New Microsoft': Under Nadella, Patent Extortion Against Linux/Android Carries on

techrights: Kyocera is again being targeted by Microsoft, using patent aggression, with a secret settlement being reached whose negative impact on Android remains to be seen

Privacy Is Personal

LinuxJournal: Try to nail two boards together with your bare hands.

New Android Malware Sprouting Like Weeds

LinuxInsider: Perhaps the one most effective strategy to minimize the risk of Android malware infection is to avoid discount app stores.

How to set up your Raspberry Pi in Linux

TechRadar: Linux from Linux - easy!

New Features Of The Linux 4.2 Kernel

Phoronix: With the Linux kernel rapidly getting bigger, Linux 4.2 is yet another exciting update.

Mozilla Fixes Flaws With Firefox 39, Previews Firefox 40

eWEEK: The Logjam SSL/TLS vulnerability is among the 13 security advisories in latest stable release of the open-source Firefox Web browser.

Hubstaff lets you manage your remote employees- Installation on Linux is Easy

 LinuxPitStop: Hubstaff provides software application for remote team management.

What to know before transitioning your team to Git

 opensource.com: OSCON 2015 speaker Emma Jane Hogbin Westby offers a preview of her Git talk

GamingOnLinux.com Latest Articles

Having FPS Problems In ARK: Survival Evolved? Try This Simple Fix

A user in our IRC channel pointed out a very simple fix to help massively boost your FPS in ARK: Survival Evolved. We don't usually point out such…

Opinion: Can Linux Be A Viable Gaming Platform? Thoughts From A Sympathetic Game Developer

In the beginning, a brief historical overview. While PC was the platform that enabled mass-scale game development as we know it now, its Golden Age…

Opinion: Why We Want Native Ports Only

I have noticed a very scary drift towards accepting wrapper based ports. Working as a developer and also a long term Linux user I can only believe…

MegaSphere, A Seriously Good Looking Sci-fi Platformer With A Big Gun

It's not often that I see a game trailer and it instantly has my attention, but MegaSphere has managed to do this. Now, tell me you're not excited…

Nightside, The Fancy Looking RTS Updated With More Missions

Nightside is one of the coolest looking RTS games I've seen in years, and it had another big update recently. In the latest Early Access update the…

Anno Online From Ubisoft & Blue Byte Comes To Steam For Linux, Thoughts Included

Anno Online is getting destroyed by the reviews on Steam, so naturally I need to see what all the fuss is about for this Linux game from Ubisoft…

Pajama Sam Collections Now On GOG With Linux Support

GOG have boosted their children's collection with two volumes of Pajama Sam pount and click adventure games. It's really good to see games aimed at…

Happy Birthday To GamingOnLinux, Six Years In The Making

Well that came fast. Six years ago I started tinkering with the first iteration of GamingOnLinux, and here we are still going strong. You can see a…

Point-And-Click Adventure 'Anna's Quest' Released On GOG And Steam For Linux

Daedalic Entertainment's latest game, Anna's Quest, got a same-day release for Linux earlier this week, both on Steam and DRM free on GOG. I've…

Brushfire Games On Their Linux Sales For Shipwreck & Their Thoughts On Linux

A recent article about Jon Blow has spurred other developers getting in touch, and one developer is Brushfire Games, the developer of Shipwreck.…

Low Linux Sales Of Democracy 3 Leads To Jonathan Blow, Developer Of Braid Commenting On Linux

Updated: Article updated with more data. I am always wary of posting articles like this, but sometimes what developers with influence say needs…

7 Days To Die Completely Broken For Mac & Linux

Just a little warning if you were thinking of picking up '7 Days to Die', they just release Alpha 12 which has completely broken Mac & Linux…

Project Zomboid Build 32 Is Live, Steam Integration Coming Soon

Project Zomboid is easily one of the best Zombie survival games around, build 32 adds a lot of new stuff, and Steam integration is coming soon.New in…

Trine Enchanted Edition Now Available On GOG For Linux

It's been a while, but Trine Enchanted Edition is finally available for Linux users on GOG. It's well worth checking out, so hopefully a few more of…

Guess What, It's Friday Again, Stream At 5 PM UTC!

Another week has passed and it's time for our weekly livestream with games and generally mediocre commentary. So clear up your schedule, hide your…