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

Articles found under tag: scripts

grep vs AWK vs Ruby, and a uniq disappointment

By

In my data-cleaning work I often make up tallies of selected individual characters from big, UTF-8-encoded data files. What's the best way to do this? As shown below, I've tried grep/sort/uniq, AWK and Ruby, and AWK's the fastest. The trials also revealed an unexpected problem with the uniq program…

Read Article

Scripting an arithmeticker

By

I've just built my own GUI calculator (script below). OK, you're probably thinking "WHY? There are plenty of perfectly good GUI calculators for Linux. Why build another one?" And my answer is "Because the available calculators are way too powerful and don't do what I want on-screen." I manage my…

Read Article

Tips for tpp and patat

By

You might be surprised to learn that there are programs for running presentations in a terminal. No, I don't mean opening PowerPoint or Impress slides one after the other, as images in a frame-buffered console. I mean presenting slides coded for the terminal, in a terminal. Interesting idea? It…

Read Article

Scottish Country Dancing stats

By

My wife has been in the same Scottish Country Dancing group for many years, and back in 2005 she began keeping a record of the dances done at each meeting. She lists a fair bit of information in her "dances done" spreadsheet (screenshot below). She recently asked me "Would it be possible to get a…

Read Article

A script to log what my GPS tells me

By

I carry a Garmin Etrex 10 when I go bug-collecting. It's a handheld GPS receiver without many frills, and I only use it to record the latitude and longitude of each of my collecting sites as a waypoint. At the start of a field trip I delete all previous waypoints. When I do this, the trip's…

Read Article

Eek! My rounding is biased!

By

I've written several BASH scripts that use GNU AWK's printf function to round off decimal numbers. Now I've learned that the rounding is biased, and I need to re-do the scripts. For me the desirable way to round off a decimal is to round up if the bit to be discarded is greater than one half, and…

Read Article

Scripting a DNA sequence viewer

By

SANITY WARNING: Please don't read this article unless you're a compulsive shell scripter, like me. Seriously. There are some excellent FOSS sequence viewers in the distro repositories, with great GUIs and lots of features. Why would you want to build a less capable viewer that only works in a…

Read Article

Hunting gremlin characters

By

When cleaning UTF-8 text files I sometimes come across invisible characters that I call 'gremlins'. These aren't the usual non-printing characters, like whitespace and (horizontal) tab, which are non-printing characters I expect to find in the plain text files I work with. Gremlins are weird things…

Read Article

Teach your Grandmother to write scripts

By

It says here that people 65 and older have poorer vision, poorer dexterity and poorer memory than people 21-55 years old. Sounds right to me. My wife and I are 70, and there's no smartphone in our house because we can't read a smartphone screen easily and an on-screen keyboard is way too small for…

Read Article

How to manage alternating lines of text on the command line

By

In this article I've pulled together some command-line tips for alternating lines of text. Questions about alternating lines turn up regularly on online help forums, and they sometimes get complicated answers. Here I've tried to keep things simple. Interleaving lines For demonstration purposes I'll…

Read Article

News Elsewhere

Linuxtoday.com

Why and how to handle exceptions in Python Flask

Learn more in this lesson in Python exception handling and how to do it in a secure manner.

Linux Kernel 4.10.7 Released with AMDGPU and Networking Improvements, Bug Fixes

Surprisingly, Linux kernel 4.10.7 comes only three days after the Linux 4.10.6 kernel release

The 6 Best Free Dropbox Alternatives for Linux

Dropbox is arguably the most popular cloud storage service

Google Opens Up on Open Source

Google's new website might well become "Open Source 101" for DevOps considering moving into open source.

Superb Ways To download rpm package Without installing

Quick way to download rpm package.

MAME 0.184 Improves Agat-7 Apple II Clone Emulation, Supports New Arcade Games

Among the improvements implemented in the MAME 0.184 release, we can mention emulation improvements

GNOME 3.26 "Manchester" Desktop Environment Slated for Release on September 13

Softpedia: It looks like the GNOME development team has no time to waste as they put together the roadmap for the next series, which will be developed during the next six months under the GNOME 3.25.x umbrella.

How to Install, Configure and Use Redis on Ubuntu 16.04

Redis is an in-memory data structure store primarily used as a database and cache.

Android: Enabling mainline graphics

Android uses the HWC API to communicate with graphics hardware.

GamingOnLinux.com Latest Articles

X-Plane 11 is now officially available with day-1 Linux support

Tags: SimulationThe advanced flight simulator X-Plane 11 [Steam, Official Site] is now available and the developers put out day-1 Linux support. It…

Glittermitten Grove is now available on Linux, go collect some berries and something about frogs and fractions

Tags: SteamGlittermitten Grove [Steam], a game I had never heard of until today has launched on Linux. Oh, it also apparently contains Frog Fractions…

Adventure game 'Thimbleweed Park' has officially released with day-1 Linux support

Tags: Adventure, GOG, Point & Click, SteamThimbleweed Park [Steam, GOG, Official Site], from Ron Gilbert and Gary Winnick has officially released…

Mad Max meets Vulkan in a new fully public beta for Linux, benchmarks and OpenGL vs Vulkan comparisons

Tags: Steam, Feral Interactive, VulkanMad Max [Feral Store, Steam] from Feral Interactive has been updated with a public beta as the Linux version is…

Rise to Ruins (formerly Retro-Pixel Castles) has another massive content update

Tags: Early Access, Indie Game, Simulation, Steam, Strategy Rise to Ruins [Steam, Official Site] update 'InDev 25' will see your villagers get a bit…

Nongünz, an action platformer with a clever visual style will come to Linux

Tags: Action, Coming Soon, PlatformerWe certainly aren't short on action platformers, but Nongünz [Official Site] looks like it could easily…

Lil Tanks, an action-packed side-scroller will release for Linux next week

Tags: Arcade, Coming Soon, Early Access, SteamI've been sent in details about 'Lil Tanks' [Steam, Official Site], which is an action-packed…

Mantis Burn Racing, an awesome looking top-down racer could come to Linux with enough support

Tags: Indie Game, Racing, SteamI was pointed towards Mantis Burn Racing [Steam, Official Site] as the developers are considering a Linux port of…

Strategy game 'Cossacks 3' will have a Linux beta on Friday and I have a key for one lucky person

Tags: Steam, Strategy Even though it was supposed to be delayed until April, GSC Game World have announced that there will be a public beta of the…

HEVN, a first-person sci-fi adventure game should have Linux support

Tags: Indie Game, Unity3D, AdventureHEVN [Official Site] was pointed out by GOL follower micha and after taking a look I was impressed, so I spoke to…

Game engine 'Construct 3' is now in open beta, check out my example game

Tags: Toolkit, BetaConstruct 3 [Official Site] is a game engine that requires little to no programming knowledge as it relies on stringing events…

Oxenfree is a clever, narrative driven supernatural thriller you should check out, my review

Tags: Adventure, Steam, Indie Game, GOG, ReviewI finally set aside some time to play the supernatural thriller Oxenfree [Steam, GOG,Official Site]…

Meganoid, a challenging platformer with roguelike elements releases soon with Linux support

Tags: Action, Coming Soon, Indie Game, Itch.io, Platformer, Roguelike, SteamThe latest game from Orangepixel, Meganoid [Official Site, itch.io,…

RUNNING WITH RIFLES has a major update and a DLC announcement

Tags: RUNNING WITH RIFLES [Steam, Official Site] is the rather excellent top-down shooter with RPG elements that has Linux support. A major patch was…

Blazing Chrome, a classic co-op run ‘n gun plans Linux support

Tags: Action, Coming SoonBlazing Chrome is a new co-op run ‘n gun being developed by JoySmasher [Official Site] and they are planning a Linux…