Saturday, March 21, 2020

Where to find space to Steam games on small user home

Usually, Linux user have limited space on their home for data, but not for large binaries what shipped with Steam. I have found an option to change steamapps folder to separate large volume belong to the user.






Steam library folders allow to setup location for games and finally I can enjoy new Life is Strange episode for me.

Monday, March 9, 2020

Install OpenCl Neo on Oracle Linux

I found it is easy to install opencl to Oracle Linux as one, two, three.

curl http://registrationcenter-download.intel.com/akdlm/irc_nas/11396/SRB5.0_linux64.zip > SRB5.0_linux64.zip
unzip SRB5.0_linux64.zip

yum install intel-opencl-cpu-r5.0-63503.x86_64.rpm    
yum install intel-opencl-devel-r5.0-63503.x86_64.rpm      
yum install intel-opencl-r5.0-63503.x86_64.rpm              


yum provides "*/libOpenCL.so"











Produced output with path to the lib:

intel-opencl-r5.0-63503.x86_64 : OpenCL ICD loader and ICD for Intel Iris Graphics
Repo        : @System
Matched from:
Filename    : /opt/intel/opencl/libOpenCL.so

Then test opencl runtime directly in .Net Core

git clone https://github.com/lecode-official/opencl-dotnet.git
cd opencl-dotnet
cd OpenCl.DotNetCore.Tests
dotnet run 


Supported Platforms & Devices:
+--------------------------------------------------+----------------+----------------------+-----------------------------------------+----------------+----------------+----------------+----------------
| Platform                                         | OpenCL Version | Vendor               | Device                                  | Driver Version | Bits           | Memory         | Clock Speed    | Available      |
+--------------------------------------------------+----------------+----------------------+-----------------------------------------+----------------+----------------+----------------+----------------
| Intel(R) OpenCL                                  | 2.0            | Intel(R) Corporation | Intel(R) Core(TM) i3-8100 CPU @ 3.60GHz | 1.2.0.475      | 64 Bit         | 3.43 GiB       | 3600 MHz       | ✔              |
+--------------------------------------------------+----------------+----------------------+-----------------------------------------+----------------+----------------+----------------+----------------
| Intel(R) CPU Runtime for OpenCL(TM) Applications | 2.1            | Intel(R) Corporation | Intel(R) Core(TM) i3-8100 CPU @ 3.60GHz | 1.2.0.475      | 64 Bit         | 3.43 GiB       | 3600 MHz       | ✔              |
+--------------------------------------------------+----------------+----------------------+-----------------------------------------+----------------+----------------+----------------+----------------



Sunday, March 8, 2020

MySql is good choice for EF Core

In my case, I want to continue store data in CSV. Storage engine in MySql will help me do that and simply integrate my apps directly to data. It also helps to storage al data directly in memory for a cache. Of course, only InnoDB supports transactions, but I only consumer.

SHOW ENGINES

this command shows what  I have 9 store engines out of the box.

MEMORY    Hash based, stored in memory, useful for temporary tables    InnoDB    (DEFAULT)    Supports transactions, row-level locking, and foreign keys
PERFORMANCE_SCHEMA    Performance Schema
MyISAM    MyISAM storage engine
MRG_MYISAM    Collection of identical MyISAM tables
BLACKHOLE    YES    /dev/null storage engine (anything you write to it disappears)
CSV    CSV storage engine
ARCHIVE    Archive storage engine

It has workaround for enable storage engine in DataContext in EF code first solution using migration.

Solution:
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.Sql("SET default_storage_engine=INNODB");
//Another migration code is generated here
}

But then, you can generate  data with EF fluent interface code and only one command will be mode all this data to in memory database to fast performance calculations.

ALTER TABLE mytable ENGINE=MEMORY

Thank you, Oracle for this convenience.



It is look like a point in strategy where I can to upload normalized graph data from Arango DB to csv and then to the memory to load all data in GPU.

Saturday, March 7, 2020

Audio is enough to study English

When I started to find good screen recording tool for Oracle Linux, I found only black screen recorded. But ffmpeg can record audio from game I can translate then to study.

There are steps to install ffmpeg

sudo dnf -y install https://download.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
sudo dnf localinstall --nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-free-release-8.noarch.rpm
sudo dnf install --nogpgcheck https://download1.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-8.noarch.rpm
sudo dnf install http://rpmfind.net/linux/epel/7/x86_64/Packages/s/SDL2-2.0.10-1.el7.x86_64.rpm 
sudo dnf install ffmpeg
sudo dnf -y install ffmpeg-devel
 
Then I have to run x11grab to record audio, command look like
 
ffmpeg -y \
-video_size 800x600 \
-framerate 30 -f x11grab -i :0.0 \
-f pulse -ac 2 -i default \
/tmp/screen1_recording_`date '+%Y-%m-%d_%H-%M-%S'`.mp4 \
&> /tmp/screen1_recording_`date '+%Y-%m-%d_%H-%M-%S'`.log 
  
  

Free music from Argentina

Every year i donated for archive.org because of a Common Creative music that lives there through decades. Its belongs to unknown authors, but within a years I listen selective albums day by day.

It is hard to find them on netlabels, catch with their covers, and hat I have for today:












They like another universe in music without brands and dictated motives by people.

debug magazine archive

  71 jounals still available on issuu with great story of netlabels time.  debug_mag Publisher Publications - Issuu