Categories
Development Linux

Behaviour of new line character in awk printf

I have this csv table: 2007,Apple,iOS,micro 1981,Microsoft,DOS,n/a 1986,IBM,AIX,mono 2008,Google,Android,mono 2016,Google,Fuchsia,micro 1985,Microsoft,Windows,n/a 1993,Microsoft,WinNT,hybrid 1987,IBM,OS/2,hybrid 2001,Apple,macOS,hybrid 2015,Apple,watchOS,hybrid 1982,QSS,QNX,micro 1992,Sun,Solaris,mono 1988,SGI,IRIX,mono And I need to print out number of operation systems by Google, Apple and Microsoft. Desired output should look like this: OS count by Apple: 3 OS count by Google: 2 OS count by Microsoft: 3 So […]

Categories
Development Linux Ubuntu

Installing Ubuntu alongside Windows 10 installer does not see the disk that Win10 (or partition made for Ubuntu) is installed on

Fresh install of Windows 10 Pro, BIOS/MBR boot 150GB drive on a SATA connector, with 4 partitions (system, windows, ubuntu, recovery tools). Second disk for data (two 500GB drives mirrored raid). Using USB install of 18.04. When selecting install alongside Windows, the installer does not list the system drive with Windows and the partition I […]

Categories
Development

BOCU-1 for internal encoding of strings

Some languages/platforms like Java, Javascript, Windows, Dotnet, KDE etc. use UTF16. Some others prefer UTF8. What is the reason that no language/platform uses BOCU-1? What is the rationale for JEP 254 and JEP 254 equivalent for Dotnet? Is the reason that BOCU-1 is patented? Are there any technical reasons also? Edit My question is not […]

Categories
Development

PySide2 + QML : QApplication: invalid style override passed, ignoring it

I’m building a simple app using QML + PySide / Python as backend. I’m trying to use “Universal” qml style. I’m subclassing QApplication and adding -style Universal argument : class MyApp(QApplication): def __init__(self, args): qt_args = [args[0], ‘-style’, ‘Universal’] + args[1:] super(MyApp, self).__init__(qt_args) It works (my app uses Universal style) but it throws the following […]

Categories
Development Linux

Set output of cmatrix as live wallpaper

I have triple boot for Arch Linux, deepinOS, Windows, I would like to assign the output of cmatrix as the live wallpaper for my deepinOS (For the aesthetics) or any Linux distro for that matter, is it possible to do so?

Categories
Development Linux Ubuntu

How to edit grub.cfg in /boot/efi/EFI/ubuntu to boot direct to Windows 10 if Ubuntu not detected?

I’m fairly new to Linux and English is not my native language, so forgive me if I can’t formulate my question correctly, but I’ll try my best. I have a Windows 10 laptop and decided to install Ubuntu on an USB Flash Drive. The installation created a folder named Ubuntu inside the EFI Partition on […]

Categories
Development Linux

Editing the output of fslint with shell tools awk | grep | sed

The task is to transform this text file, output of the utility fslint, into a bash script with rm command lines for the duplicate files to delete and commented lines for file(s) to keep, according to a set of rules. The goal is to cleanup about 1 TB of duplicates accumulated over the years on […]

Categories
Development Linux

Editing the output of fslint with shell tools awk | grep | sed

The goal is to cleanup about 1 TB of duplicates accumulated over the years on several OS (Mac OS X, Windows, Linux). All data has been copied to a Linux drive. The output of the utility fslint has been saved to a text file. Here is a sample: #3 x 697,612,024 (1,395,236,864) bytes wasted /path/to/backup-100425/file_a.dat […]

Categories
Development Linux

Editing the output of fslint with shell tools awk | grep | sed

The goal is to cleanup about 1 TB of duplicates accumulated over the years on several OS (Mac OS X, Windows, Linux). All data has been copied to a Linux drive. The output of the utility fslint has been saved to a text file. Here is a sample: #3 x 697,612,024 (1,395,236,864) bytes wasted /path/to/backup-100425/file_a.dat […]

Categories
Development Linux Ubuntu

How can I make my mouse scroll

**I’m highly new to everything except, umm, “windows”, but I dual boot with Ubuntu 19.10 now and love it so far – except I know nothing of code or??? LOL So possibly I’ll somehow slowly learn? I always wanted to anyway I can find no way to make my mouse srollable using the center […]