<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>FDUCAT Notebook</title>
    <link>https://notes.ducatillon.net/docs/productivity/</link>
    <description>Recent content on FDUCAT Notebook</description>
    <generator>Hugo</generator>
    <language>en</language>
    <atom:link href="https://notes.ducatillon.net/docs/productivity/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Convert PDF to Docx</title>
      <link>https://notes.ducatillon.net/docs/productivity/pdf_to_doc/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://notes.ducatillon.net/docs/productivity/pdf_to_doc/</guid>
      <description>&lt;h1 id=&#34;convert-pdf-to-docx&#34;&gt;Convert PDF to Docx&lt;a class=&#34;anchor&#34; href=&#34;#convert-pdf-to-docx&#34;&gt;#&lt;/a&gt;&lt;/h1&gt;&#xA;&lt;h2 id=&#34;prerequesites-for-macos&#34;&gt;Prerequesites for macos&lt;a class=&#34;anchor&#34; href=&#34;#prerequesites-for-macos&#34;&gt;#&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;brew install pipx&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;pipx install pdf2docx&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id=&#34;cli-usage&#34;&gt;CLI usage&lt;a class=&#34;anchor&#34; href=&#34;#cli-usage&#34;&gt;#&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;pdf2docx convert file.pdf file.docx&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id=&#34;sources&#34;&gt;Sources&lt;a class=&#34;anchor&#34; href=&#34;#sources&#34;&gt;#&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;p&gt;(&lt;a href=&#34;https://github.com/ArtifexSoftware/pdf2docx%29[https://github.com/ArtifexSoftware/pdf2docxe]&#34;&gt;https://github.com/ArtifexSoftware/pdf2docx)[https://github.com/ArtifexSoftware/pdf2docxe]&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Google Spreadsheet Tricks</title>
      <link>https://notes.ducatillon.net/docs/productivity/google-spreadsheet-tricks/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://notes.ducatillon.net/docs/productivity/google-spreadsheet-tricks/</guid>
      <description>&lt;h1 id=&#34;google-spreadsheet-tricks&#34;&gt;Google spreadsheet tricks&lt;a class=&#34;anchor&#34; href=&#34;#google-spreadsheet-tricks&#34;&gt;#&lt;/a&gt;&lt;/h1&gt;&#xA;&lt;h2 id=&#34;remove-characters-from-a-string-in-a-cell-with-google-spreadsheet&#34;&gt;Remove characters from a string in a cell with Google spreadsheet&lt;a class=&#34;anchor&#34; href=&#34;#remove-characters-from-a-string-in-a-cell-with-google-spreadsheet&#34;&gt;#&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;h3 id=&#34;goal&#34;&gt;Goal&lt;a class=&#34;anchor&#34; href=&#34;#goal&#34;&gt;#&lt;/a&gt;&lt;/h3&gt;&#xA;&lt;p&gt;Remove the first 2 characters from a string in cell D1 :&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt; =RIGHT(D1,LEN(D1)-2)&lt;/code&gt;&lt;/pre&gt;&lt;h3 id=&#34;explanations&#34;&gt;Explanations&lt;a class=&#34;anchor&#34; href=&#34;#explanations&#34;&gt;#&lt;/a&gt;&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;LEN(D1)&lt;/code&gt; returns the length of the string in a cell.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;RIGHT(D1, X)&lt;/code&gt; returns a substring from the end.&#xA;First argument is the string.&#xA;Seconde argument is the length of the substring to return.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Alternatively, to remove the last 2 characters, use :&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt; =LEFT(D1,LEN(D1)-2)&lt;/code&gt;&lt;/pre&gt;</description>
    </item>
    <item>
      <title>Mac Screen Record with Audio</title>
      <link>https://notes.ducatillon.net/docs/productivity/mac-screen-record-with-audio/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://notes.ducatillon.net/docs/productivity/mac-screen-record-with-audio/</guid>
      <description>&lt;h2 id=&#34;mac-os-screen-record-with-audio-for-free&#34;&gt;Mac OS Screen record with audio for free&lt;a class=&#34;anchor&#34; href=&#34;#mac-os-screen-record-with-audio-for-free&#34;&gt;#&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://km.support.apple.com/kb/image.jsp?productid=124912&amp;amp;size=240x240&#34; alt=&#34;Quicktime&#34; /&gt;&lt;/p&gt;&#xA;&lt;p&gt;This &lt;a href=&#34;https://www.youtube.com/watch?v=prUVS0HF2gU&#34;&gt;video&lt;/a&gt; explains very clearly how to record your screen with audio on mac os for free.&lt;/p&gt;&#xA;&lt;p&gt;Without audio just use quicktime:&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://notes.ducatillon.net/img/quicktime_screen_recording.png&#34; alt=&#34;Screen REcord With Quicktime&#34; /&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;sources&#34;&gt;Sources&lt;a class=&#34;anchor&#34; href=&#34;#sources&#34;&gt;#&lt;/a&gt;&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://github.com/ExistentialAudio/BlackHole/wiki/Multi-Output-Device&#34;&gt;https://github.com/ExistentialAudio/BlackHole/wiki/Multi-Output-Device&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;</description>
    </item>
    <item>
      <title>Save Storage: PDF, Images and Videos</title>
      <link>https://notes.ducatillon.net/docs/productivity/save-storage-pdf-images-videos/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://notes.ducatillon.net/docs/productivity/save-storage-pdf-images-videos/</guid>
      <description>&lt;h2 id=&#34;compress-pdf-offline&#34;&gt;Compress PDF offline&lt;a class=&#34;anchor&#34; href=&#34;#compress-pdf-offline&#34;&gt;#&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://www.ghostscript.com/images/logos/ghostscript-plus-text.png&#34; alt=&#34;Ghoscript_logo&#34; /&gt;&lt;/p&gt;&#xA;&lt;p&gt;I found this great tool to compress pdf (python script) from the command line.&lt;/p&gt;&#xA;&lt;h3 id=&#34;requirements&#34;&gt;Requirements&lt;a class=&#34;anchor&#34; href=&#34;#requirements&#34;&gt;#&lt;/a&gt;&lt;/h3&gt;&#xA;&lt;h4 id=&#34;python&#34;&gt;Python&lt;a class=&#34;anchor&#34; href=&#34;#python&#34;&gt;#&lt;/a&gt;&lt;/h4&gt;&#xA;&lt;p&gt;Check your python version&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;➜  ~ python --version&#xA;Python 3.8.9&lt;/code&gt;&lt;/pre&gt;&lt;h4 id=&#34;ghoscript&#34;&gt;Ghoscript&lt;a class=&#34;anchor&#34; href=&#34;#ghoscript&#34;&gt;#&lt;/a&gt;&lt;/h4&gt;&#xA;&lt;p&gt;Check your ghoscript version&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;➜  ~ gs&#xA;GPL Ghostscript 10.0.0 (2022-09-21)&lt;/code&gt;&lt;/pre&gt;&lt;h3 id=&#34;setup&#34;&gt;Setup&lt;a class=&#34;anchor&#34; href=&#34;#setup&#34;&gt;#&lt;/a&gt;&lt;/h3&gt;&#xA;&lt;p&gt;Add this command in your &lt;code&gt;.bash_profile&lt;/code&gt; or &lt;code&gt;.zshrc&lt;/code&gt; file&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;# Usage: spdf [input file] [output file] [screen*|ebook|printer|prepress]&#xA;spdf() {&#xA;    gs -sDEVICE=pdfwrite -dNOPAUSE -dQUIET -dBATCH -dPDFSETTINGS=/${3:-&amp;#34;screen&amp;#34;} -dCompatibilityLevel=1.4 -sOutputFile=&amp;#34;$2&amp;#34; &amp;#34;$1&amp;#34;&#xA;}&lt;/code&gt;&lt;/pre&gt;&lt;h3 id=&#34;usage&#34;&gt;Usage&lt;a class=&#34;anchor&#34; href=&#34;#usage&#34;&gt;#&lt;/a&gt;&lt;/h3&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;spdf BigFile.pdf SmallFile.pdf ebook&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;image-command-lines&#34;&gt;Image command lines&lt;a class=&#34;anchor&#34; href=&#34;#image-command-lines&#34;&gt;#&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;h3 id=&#34;batch-resize-image&#34;&gt;Batch resize image&lt;a class=&#34;anchor&#34; href=&#34;#batch-resize-image&#34;&gt;#&lt;/a&gt;&lt;/h3&gt;&#xA;&lt;h4 id=&#34;usage-1&#34;&gt;Usage&lt;a class=&#34;anchor&#34; href=&#34;#usage-1&#34;&gt;#&lt;/a&gt;&lt;/h4&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt; ~ sips -Z 720 *.jpg&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Adjsut max image ratio examples: 640,720,1024,1280 etc.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
