martes, 30 de julio de 2024

ocrmypdf unix command tool

 This tool help me to ocr my pdf documents I'm running fine when joined the images and choose a resolution, but when resolution is high, file is heavy and program terminate itself. So after quick searching found this post about tool performance and the first post parameters for the tool helped me to do the job.

https://github.com/ocrmypdf/OCRmyPDF/issues/509

ocrmypdf --output-type pdf --jobs 8 --optimize 0 -l eng a.pdf b.pdf

May some of the paramters make t he work

--jobs - > per recommendation if you didn't set it it will use all the cores.

--optimize -> 0 no optimize

-l eng -> maybe I save some thinking time for the language

viernes, 28 de junio de 2024

Prometheus First Steps

set up & run prometheus

https://youtu.be/OxZmn4svOyA

Follow that video and previous one in the playlist to catch up on the intro

Sharing two reports I created with help of the video instructor






Screen my mirror from laptop with Debian into a tablet

 Following this step by step guide ... here 


My notes


My tablet has different resolution

eDP connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 382mm x 215mm

1920x1080    144.03*+ 120.04    96.02    72.01    60.02    50.01    48.01    60.01


HDMI-A-0 disconnected (normal left inverted right x axis y axis)

DP-1-0 disconnected (normal left inverted right x axis y axis)

DP-1-1 disconnected (normal left inverted right x axis y axis)


Screen size (real pixels) tablet:

1920 x 1200 landscape



  # 1920x1200 @ 60.00 Hz (GTF) hsync: 74.52 kHz; pclk: 193.16 MHz

  Modeline "1920x1200_60.00"  193.16  1920 2048 2256 2592  1200 1201 1204 1242  -HSync +Vsync

  

  xrandr --newmode "1920x1200_60.00"  193.16  1920 2048 2256 2592  1200 1201 1204 1242  -HSync +Vsync


  HDMI-A-0

  DP-1-1

xrandr --addmode HDMI-A-0 1920x1200_60.00


xrandr --output HDMI-A-0 --mode 1920x1200_60.00 --left-of eDP


x11vnc -clip 1920x1200+0+0


28/06/2024 11:27:39 Autoprobing TCP port 

28/06/2024 11:27:39 Autoprobing selected TCP port 5900

28/06/2024 11:27:39 Autoprobing TCP6 port 

28/06/2024 11:27:39 Autoprobing selected TCP6 port 5900

28/06/2024 11:27:39 listen6: bind: Address already in use

28/06/2024 11:27:39 Not listening on IPv6 interface.

28/06/2024 11:27:39 Xinerama: number of sub-screens: 2

28/06/2024 11:27:39 Xinerama: sub-screen[0]  1920x1080+1920+0

28/06/2024 11:27:39 Xinerama: sub-screen[1]  1920x1200+0+0

The VNC desktop is:      ASUS-AMD-ROG:0

PORT=5900

3: wlp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000

    link/ether 48:e7:da:10:12:09 brd ff:ff:ff:ff:ff:ff

    inet 192.168.1.136/24 brd 192.168.1.255 scope global dynamic noprefixroute wlp3s0

       valid_lft 82761sec preferred_lft 82761sec

    inet6 2001:569:5310:fd00:20b5:57fa:14c8:5752/64 scope global temporary dynamic 

       valid_lft 6413sec preferred_lft 6113sec

    inet6 2001:569:5310:fd00:4ae7:daff:fe10:1209/64 scope global dynamic mngtmpaddr noprefixroute 

       valid_lft 6413sec preferred_lft 6113sec

    inet6 fe80::4ae7:daff:fe10:1209/64 scope link noprefixroute 

       valid_lft forever preferred_lft forever

When I try to connect from my tablet I got below error which I need to figured it out
The other option in the original post is trough adb, it works, but for me it is kind a slow, no working fine, too lag, maybe more tuning is needed, but I left for now.



martes, 25 de junio de 2024

Remove title bar from Brave on Debian linux

 In this article explain for Firefox

https://linuxconfig.org/how-to-remove-firefox-title-bar-on-linux

I follow similar instructions for Brave and it has same option to disable it, let me show:

settings > appearance > Use system title bar and borders



miércoles, 8 de mayo de 2024

DDD - Design Domain Driven

 This is draft about DDD, starting with this article

I learn the coding with DDD approch implies that every stakeholders need to understand each other, starting from strategic design and thinkg in domains in order to classify them like core and the others.

 

to be continued ...

lunes, 6 de mayo de 2024

flatpak package manager

 I've been reported by debian system to upgrade Brave browser, but no able to find the app to removed with apt, I was forgot how I installed, so surfing for internet I found the package manager I used.

Per my understanding:

apt is the default package manager of debian OS

snap is another P.M.

flatpak is another one.


So I found in flatpak using this post

 esteban@ASUS-AMD-ROG:~$ flatpak list
Name                         Application ID                        Version    Branch      Installation
Brave Software               com.brave.Browser                     1.65.126   stable      system
Enes Hecan                   com.github.eneshecan.WhatsAppForLinux 1.6.5      stable      system


Thanks and see you then

sábado, 4 de mayo de 2024

Installing rclone and rclone browser in debian 12

 let's start pointing out to source of steps https://rclone.org/install/


1. step 1, get the shell script 

sudo -v ; curl https://rclone.org/install.sh | sudo bash

setup your accout with

rclone config

 

2. install rclone browser

Pre steps

Install appimage from deb as in this tutorial

Download appimagelauncher_2.2.0-travis995.0f91801.bionic_amd64.deb

Get rclone browser installer appimage

https://kapitainsky.github.io/RcloneBrowser/


rclone-browser-1.8.0-a0b66c6-linux-x86_64.AppImage

No errors, it looks like