Saturday, March 26, 2022

Thursday, March 24, 2022

Zed editor hotkeys

Best hotkey is Ctrl+. it opens dropdown with visual themes and other settings I did not know how to fill properly.

 Zendapp still availeble in Google App Store:


https://chrome.google.com/webstore/detail/zed-code-editor/pfmjnmeipppmcebplngmhfkleiinphhp


==============
Zed editor
==============
Where web site located

http://zedapp.org.s3-website-us-east-1.amazonaws.com/features/edit-remote-files/

Where GitHube page

https://github.com/zedapp/zed

-----------
To start editing files in this project press `Ctrl-E`.
If you prefer a tree view of your files, press `Ctrl-T`.
To find all available commands and keyboard shortcut press `Ctrl-.`

Useful keys
-----------

* `Ctrl-E`: Open or create a new file. Inside the picker:
    * In an empty box, press space to complete the directory of the currently open document.
    * Press `Up`/`Down` or `Tab`/`Shift-Tab` to walk over results.
    * Pressing `Return` either opens the selected file, or creates a new file with the name you typed in if none currently exists.
* `Ctrl-.`: Run an editor command.
* `Ctrl-T`: Show file tree. Keys used with tree active:
    * `Up`: Move up in the tree
    * `Down`: Move down in the tree
    * `Left`: Collapse node
    * `Right`: Expand node
    * `Enter`: Open file
* `Ctrl-F`: Find within file, after pressing `Enter` to select thie first match, use `Ctrl-G` to find next match, or `Ctrl-Alt-F` to put cursors on all.
* `Ctrl-1`: 1 split
* `Ctrl-2`: 2 vertical splits (press repeatedly to cycle between split sizes)
* `Ctrl-3`: 3 vertical splits
* `Ctrl-P`: Preview split (press repeatedly to cycle between split sizes)
* `Ctrl-0`: switch focus from one split to the next.
* `Tab` (following an identifier): complete code. In completion mode:
    * `Tab`/`Down`: Select next completion
    * `Shift-Tab`/`Up`: Select previous completion
    * `Enter`: Pick selected completion
    * `Esc`: Close completion box
* `Command-,`: open the preferences UI.

=======================
Zedrem server
=======================

http://zedapp.org.s3-website-us-east-1.amazonaws.com/features/edit-remote-files/

Tuesday, March 22, 2022

Saturday, March 19, 2022

Kafka on Ubuntu 20.04

I used this post:

https://www.digitalocean.com/community/tutorials/how-to-install-apache-kafka-on-ubuntu-20-04

but I downloaded latest Kafka for me:

 https://downloads.apache.org/kafka/3.1.0/

Then I started to install zookeeper with simple article, but service was not started:

https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-an-apache-zookeeper-cluster-on-ubuntu-18-04

Then I found this Knowledge Base with script:

https://kb.altinity.com/altinity-kb-setup-and-maintenance/altinity-kb-zookeeper/install_ubuntu/

Screept looks good, but zookiper command was not waitlisted, a fix is from answer:

https://stackoverflow.com/questions/62667788/how-do-i-initialize-the-whitelist-for-apache-zookeeper

A configuration should be in sub folder:

cat <<EOF | sudo tee /opt/zookeeper/zookeeper.properties

initLimit=20

syncLimit=10

maxSessionTimeout=60000000

maxClientCnxns=2000

preAllocSize=131072

snapCount=3000000

dataDir=/var/lib/zookeeper/data

dataLogDir=/var/lib/zookeeper/logs # use low-latency disk!

clientPort=2181

#clientPortAddress=nthk-zoo1.localdomain

autopurge.snapRetainCount=10

autopurge.purgeInterval=1

4lw.commands.whitelist=*

EOF

The latest for enable Kafka is disable auto generated cluster to use simple mode:

https://stackoverflow.com/questions/67705738/problem-with-kafka-failed-with-result-exit-code-status-1-failure



CudaText

 


Fix for warning:

Gtk-Message: Failed to load module "canberra-gtk-module"
sudo apt-get install libcanberra-gtk-module libcanberra-gtk-module:i386

Notepadqq is Notpad++ for linux

 


Guitar

 


https://github.com/soramimi/Guitar/releases

GitVine

 


https://insanesharpness.gitlab.io/GitVine/

Gitnu

 





Gantt Mono Tracker

 






Friday, March 4, 2022

Connect to local bare metal with ssh and vnc

1. Open your router admin panel and go to status of LAN connection to see IP of your bare metal.

2. Setup PuTTY and login by ssh

vncserver -localhost no


Starting applications specified in /etc/X11/Xvnc-session

Log file is /root/.vnc/evgeniy-X9SCL:1.log


Use xtigervncviewer -SecurityTypes VncAuth -passwd /root/.vnc/passwd :1 to connect to the VNC server.


3. Open log file to see a port to connect

cat /home/evgeniy/.vnc/evgeniy-X9SCL:7.log

Xvnc TigerVNC 1.10.0 - built Apr  9 2020 06:49:31
Copyright (C) 1999-2019 TigerVNC Team and many others (see README.rst)
See https://www.tigervnc.org for information on TigerVNC.
Underlying X server release 12008000, The X.Org Foundation


Thu Mar  3 20:36:42 2022
 vncext:      VNC extension running!
 vncext:      Listening for VNC connections on all interface(s), port 5907
 vncext:      created VNC server for screen 0
xrdb: No such file or directory
xrdb: can't open file '/home/evgeniy/.Xresources'

New 'evgeniy-X9SCL:8 (evgeniy)' desktop at :8 on machine evgeniy-X9SCL

Starting applications specified in /home/evgeniy/.vnc/xstartup
Log file is /home/evgeniy/.vnc/evgeniy-X9SCL:8.log

Use xtigervncviewer -SecurityTypes VncAuth,TLSVnc -passwd /home/evgeniy/.vnc/pas


Thu Mar  3 20:36:45 2022
 TcpSocket:   unable to get peer name for socket
 TcpSocket:   unable to get peer name for socket
 Connections: accepted: ::0
 TcpSocket:   unable to get peer name for socket
 VNCSConnST:  closing ::0: write: Connection reset by peer (104)
 EncodeManager: Framebuffer updates: 0
 EncodeManager:   Total: 0 rects, 0 pixels
 EncodeManager:          0 B (1:-nan ratio)
 TcpSocket:   unable to get peer name for socket
 Connections: closed: ::0
 ComparingUpdateTracker: 0 pixels in / 0 pixels out
 ComparingUpdateTracker: (1:-nan ratio)

Thu Mar  3 20:37:59 2022
 TcpSocket:   unable to get peer name for socket
 TcpSocket:   unable to get peer name for socket
 Connections: accepted: ::0
 TcpSocket:   unable to get peer name for socket
 VNCSConnST:  closing ::0: write: Connection reset by peer (104)
 EncodeManager: Framebuffer updates: 0
 EncodeManager:   Total: 0 rects, 0 pixels
 EncodeManager:          0 B (1:-nan ratio)
 TcpSocket:   unable to get peer name for socket
 Connections: closed: ::0
 ComparingUpdateTracker: 0 pixels in / 0 pixels out
 ComparingUpdateTracker: (1:-nan ratio)
Warning: VNC extension does not support -reset, terminating instead. Use -norese

Thu Mar  3 20:40:53 2022
 ComparingUpdateTracker: 0 pixels in / 0 pixels out
 ComparingUpdateTracker: (1:-nan ratio)

Xvnc TigerVNC 1.10.0 - built Apr  9 2020 06:49:31
Copyright (C) 1999-2019 TigerVNC Team and many others (see README.rst)
See https://www.tigervnc.org for information on TigerVNC.
Underlying X server release 12008000, The X.Org Foundation


Fri Mar  4 21:50:24 2022
 vncext:      VNC extension running!
 vncext:      Listening for VNC connections on all interface(s), port 5907
 vncext:      created VNC server for screen 0
xrdb: No such file or directory
xrdb: can't open file '/home/evgeniy/.Xresources'

4. Install tigervnc

5. Connect with vnc client

"C:\Program Files (x86)\TigerVNC\vncviewer.exe" -FullScreen  -SecurityTypes VncAuth 192.168.1.109::5907



Saturday, February 26, 2022

LazPaint tiny Gimp alternative

In these difficult days for Ukraine, any computer might help to write code and edit images. But most computers in Ukraine are very weak for Gimp. A program written in Pascal LazPaint run wery fast on week and outdated hardware.

Thursday, December 23, 2021

Access to Arasaka ‎– telinit 6

 New 2021 release for artist Rob Lioy. I did not know what is telinit before but the sequence of songs with signals I have remembered. POSIX is a foundation API. SIGINT... interrupt from current task, SIGTERM.. terminate a process gracefully, SIGKILL.. kill zombies' process, SIGPWR.. immediate shutdown

Same sequence for  poweroff and..  telinit 6 .. reboot



Saturday, November 13, 2021

Friday, November 12, 2021

EPS artboard with free Inkscape

To modify canvas size(artboard) in Inkscape for EPS files: 1. Install ghostscript 2. Add bin and lib for gc folder to environment variables 3. Run Inkscape and open EPS file Change Document properties to resize your vector graphiscs and canvas properly. For example shutterstock requies at least 4 mega pyxels artboard. Thank you for instructions: How to Open and Edit an EPS File in Inkscape HOW TO MAKE YOUR INKSCAPE CANVAS LOOK LIKE ADOBE ILLUSTRATOR’S ARTBOARD

Wednesday, September 29, 2021

Nuget sources for MAUI workload

  dotnet nuget add source https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json


 dotnet nuget add source https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json


 dotnet nuget add source https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet6/nuget/v3/index.json


 dotnet workload install maui


dotnet tool install -g Redth.Net.Maui.Check


dotnet tool update -g redth.net.maui.check

Then Run As Administartor Powershell console:

maui-check

Follow fixes and enjoy this gerat NZ Herald article about Māui hero culture.

Friday, September 24, 2021

nats-steaming-server (STAN) on Ubuntu

 git clone https://github.com/nats-io/nats-streaming-server.git

 

 go run nats-streaming-server.go -DV -cid stan

debug magazine archive

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