Zobrazit příspěvky

Tato sekce Vám umožňuje zobrazit všechny příspěvky tohoto uživatele. Prosím uvědomte si, že můžete vidět příspěvky pouze z oblastí Vám přístupných.


Příspěvky - Jakonu

Stran: [1]
1
Software / Re:.docx do .pdf v Bash
« kdy: 25. 09. 2025, 11:46:46 »
Jsem zapomnel uvest detaily dokument.docx

"docProps\app.xml"

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Properties xmlns="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties" xmlns:vt="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes">
 <Template>Normal.dotm</Template>
 <TotalTime>14</TotalTime>
 <Pages>2</Pages>
 <Words>764</Words>
 <Characters>4361</Characters>
 <Application>Microsoft Office Word</Application>
 <DocSecurity>0</DocSecurity>
 <Lines>36</Lines>
 <Paragraphs>10</Paragraphs>
 <ScaleCrop>false</ScaleCrop>
  <HeadingPairs>
   <vt:vector size="2" baseType="variant">
    <vt:variant>
     <vt:lpstr>Title</vt:lpstr>
    </vt:variant>
    <vt:variant>
     <vt:i4>1</vt:i4>
    </vt:variant>
   </vt:vector>
  </HeadingPairs>
 <TitlesOfParts><vt:vector size="1" baseType="lpstr"><vt:lpstr></vt:lpstr></vt:vector></TitlesOfParts>
 <Company></Company>
 <LinksUpToDate>false</LinksUpToDate>
 <CharactersWithSpaces>5115</CharactersWithSpaces>
 <SharedDoc>false</SharedDoc>
 <HyperlinksChanged>false</HyperlinksChanged>
 <AppVersion>16.0000</AppVersion>
</Properties>


    16.0000 = Word 2016 ??


$ file document.docx
dokument.docx: Microsoft Word 2007+

2
Software / Převod dokumentu z .docx do .pdf v řádce
« kdy: 25. 09. 2025, 11:02:30 »
dokument ve formatu docx se v MS O365 zobrazuje na 2 strankach A4,
konverze v O365 do PDF ma samozrejmne taky dve A4 stranky.

Na Debian 13 zkousim defaultni LibreOffice 25.2.3.2 520(Build:2)
libreoffice --headless --convert-to pdf --outdir pdf document.docx
a jsou to 3.

Kdyz ten samy dokument otevru v LO GUI tak ma taky 3 stranky.


Jeste jsem zkousel JODConverter
libreoffice --headless --accept="socket,port=8100;urp;"
jodconverter input-document output-document
a vysledek ma take 3 stranky A4 namisto 2 A4 v O365 :(

Da se nejak na Linuxu v CLI provest konverze docx do pdf bez toho aby to rozbilo
format ktery ten document ma a misto 2 stranek to byly 3?

3
Software / Jak stáhnout video ze Stream.cz
« kdy: 28. 03. 2025, 13:20:50 »
Existuje nejaky nastroj, kterym se da stahnout video ze stream.cz?

Zajima mne tohle video
https://www.stream.cz/adam-ondra-posunout-hranice/adam-ondra-posunout-hranice-65109840

Ty titulky co tam maji Adam_Ondra_Posunout_hranice_1080p2520_CZ.srt
a v F12 jsou jako 3e993047.vtt, jsou rozdelene na nekolik sekci a nebo je to chyba a maji tam jen prvnich 32min?

4
Testuji Debian SID,
a uz je to asi tyden kdy systemd hlasi ze mam 2 procesy degradovane....
a nefunguje BT



Kód: [Vybrat]
sudo systemctl --failed
  UNIT                        LOAD   ACTIVE SUB    DESCRIPTION                   
● blueman-mechanism.service   loaded failed failed Bluetooth management mechanism
● unattended-upgrades.service loaded failed failed Unattended Upgrades Shutdown

Legend: LOAD   → Reflects whether the unit definition was properly loaded.
        ACTIVE → The high-level unit activation state, i.e. generalization of SUB.
        SUB    → The low-level unit activation state, values depend on unit type.

2 loaded units listed.



Zkousim restart a status, ale konci to chybou,
a uz nevim co s tim ....

Kód: [Vybrat]
sudo systemctl restart blueman-mechanism.service
sudo systemctl status blueman-mechanism.service

blueman-mechanism[4242]:   File "/usr/libexec/blueman-mechanism", line 6, in <module>
blueman-mechanism[4242]:     from blueman.main.MechanismApplication import MechanismApplication
blueman-mechanism[4242]:   File "/usr/lib/python3/dist-packages/blueman/main/MechanismApplication.py", line 8, in <module>
blueman-mechanism[4242]:     from gi.repository import GLib, Gio
blueman-mechanism[4242]:   File "/usr/lib/python3/dist-packages/gi/__init__.py", line 40, in <module>
blueman-mechanism[4242]:     from . import _gi
blueman-mechanism[4242]: ImportError: cannot import name '_gi' from partially initialized module 'gi' (most likely due to a circular import) (/usr/lib/python3/dist-packages/gi/__init__.py)
systemd[1]: blueman-mechanism.service: Main process exited, code=exited, status=1/FAILURE
systemd[1]: blueman-mechanism.service: Failed with result 'exit-code'.
systemd[1]: Failed to start blueman-mechanism.service - Bluetooth management mechanism.




Kód: [Vybrat]
sudo systemctl restart unattended-upgrades.service
sudo systemctl status unattended-upgrades.service

unattended-upgrade-shutdown[4770]: Traceback (most recent call last):
unattended-upgrade-shutdown[4770]:   File "/usr/share/unattended-upgrades/unattended-upgrade-shutdown", line 29, in <module>
unattended-upgrade-shutdown[4770]:     import dbus
unattended-upgrade-shutdown[4770]:   File "/usr/lib/python3/dist-packages/dbus/__init__.py", line 71, in <module>
unattended-upgrade-shutdown[4770]:     import dbus.types as types
unattended-upgrade-shutdown[4770]:   File "/usr/lib/python3/dist-packages/dbus/types.py", line 10, in <module>
unattended-upgrade-shutdown[4770]:     from _dbus_bindings import (
unattended-upgrade-shutdown[4770]: ModuleNotFoundError: No module named '_dbus_bindings'
systemd[1]: unattended-upgrades.service: Main process exited, code=exited, status=1/FAILURE
systemd[1]: unattended-upgrades.service: Failed with result 'exit-code'.




Protoze Python 3.13 je nova verze a potrebuji na systemu 3.12 mam nastaveno tohle:

Kód: [Vybrat]
~$ ls -l /usr/bin/python*
lrwxrwxrwx 1 root root       7 Jun 13  2023 /usr/bin/python -> python3
lrwxrwxrwx 1 root root      10 Mar 28 11:13 /usr/bin/python3 -> python3.12
-rwxr-xr-x 1 root root 8061624 Feb  5 01:31 /usr/bin/python3.12
lrwxrwxrwx 1 root root      34 Feb  5 01:31 /usr/bin/python3.12-config -> x86_64-linux-gnu-python3.12-config
-rwxr-xr-x 1 root root 6808112 Mar 13 14:29 /usr/bin/python3.13
lrwxrwxrwx 1 root root      34 Mar 13 14:29 /usr/bin/python3.13-config -> x86_64-linux-gnu-python3.13-config
lrwxrwxrwx 1 root root      17 Mar 22 22:19 /usr/bin/python3-config -> python3.12-config
-rwxr-xr-x 1 root root     263 Mar 25 18:05 /usr/bin/python-argcomplete-check-easy-install-script
-rwxr-xr-x 1 root root   14244 Nov 19 18:09 /usr/bin/python-mkdebian




~$ python -V;
Python 3.12.9

~$ python3.12 -V
Python 3.12.9

~$ python3.13 -V
Python 3.13.2

~$ pip -V;
pip 25.0.1 from /usr/lib/python3/dist-packages/pip (python 3.12)




Poradi nekdo kde je chyba a jak to opravit?













Stran: [1]