-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path50_0_informatica.adoc~
256 lines (172 loc) · 8.05 KB
/
50_0_informatica.adoc~
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
== Appunti di informatica
////
:doctype: book
:encoding: utf-8
:lang: it
:toc: left
:toclevels: 4
////
=== Scripts
==== ((Asciidoc))
I riferimenti a link mancanti uccidono
.Python + FOP
--------------------------------
Scaricare asciidoc.zip
Esploderlo
Andare nella cartella asciidocx.x.x
C:\> "path\python.exe" asciidoc.py -b html -d article book.adoc
C:\> "path\python.exe" asciidoc.py -b docbook -d article book.adoc
Scaricare ultima versione di FOP
andare nella cartlella di FOP
C:\> fop -xml foo.xml -xsl foo.xsl -pdf foo.pdf
C:\> fop -xml foo.xml -xsl foo.xsl -rtf foo.rtf
--------------------------------
Seguono alcuni codici risultati funzionanti da Linux
--------------------------------
a2x -f chunked -D chunk -v -k _book.adoc
--------------------------------
Funziona con gli indici
a2x -D render -f xhtml _book.adoc
a2x -D render -f chunked -v _book.adoc
a2x --fop -D render -v _book.adoc
==== ((Asciidoctor))
.Installation
-------------------------
installa la versione java
gem install asciidoctor
gem update asciidoctor
gem install --pre asciidoctor-pdf
gem install coderay pygments.rb <1>
asciidoctor-pdf -v <2>
-------------------------
<1> per sottolineare il codice sorgente
<2> test pdf working
.Asciidoctor-latex
--------------------------
$ git clone https://github.com/asciidoctor/asciidoctor-latex.git
$ cd asciidoctor-latex
$ gem build asciidoctor-latex.gemspec
$ gem install *.gem
$ git clone https://github.com/jxxcarlson/asciidoctor-make-index
$ https://github.com/asciidoctor/asciidoctor-latex
$ cd asciidoctor-latex
$ rake install
--------------------------
.EPUB3
--------------------------
git clone https://github.com/asciidoctor/asciidoctor-epub3
cd asciidoctor-epub3
gem install bundle
bundle install
rake build
gem install pkg/asciidoctor-epub3-1.0.0.dev.gem
--------------------------
.Update
--------------------------
gem update asciidoctor
gem cleanup asciidoctor
gem update asciidoctor-pdf
gem cleanup asciidoctor-pdf
--------------------------
==== ((FFMPEG)) ((AVCONV))
===== Eliminare una traccia audio footnote:[fonte: http://unix.stackexchange.com/questions/6402/how-to-remove-an-audio-track-from-an-mp4-video-file]
First run
ffmpeg -i file.mp4
Stream #0.0: Video: mpeg4, yuv420p, 720x304 [PAR 1:1 DAR 45:19], 23.98 tbr, 23.98 tbn, 23.98 tbc
Stream #0.1: Audio: ac3, 48000 Hz, 5.1, s16, 384 kb/s
Stream #0.2: Audio: ac3, 48000 Hz, 5.1, s16, 384 kb/s
Per togliere la prima traccia audio
avconv -i file.mp4 -map 0:0 -map 0:2 -acodec copy -vcodec copy new_file.mp4
Per convertire dal formato ((yuv))
avconv -f rawvideo -pix_fmt yuv420p -s 1280x720 -i test4.yuv -i 01_mic_mmp_nel_cast_felici.ogg' test4.avi
===== Creare un video da immagini
Crea out.flv della durata di 10 secondi da un'unica immagine
avconv -loop 1 -i img000.jpg -t 10s out.flv
Per più immagini
avconv -r 10 -start_number 8 -i filename_%d.png -b:v 1000k test.mp4
Senza _-start_number 8_ parte di default da 0
===== Codec H264
ffmpeg -i input -c:v libx264 -crf 23 -preset medium -c:a libfdk_aac -vbr 4 movflags +faststart -vf scale=-2:720,format=yuv420p output.mp4
-crf: Quality. Range is logarithmic 0 (lossless) to 51 (worst quality). Default is 23. Subjective sane range is ~18-28 or so. Use the highest value that still gives you an acceptable quality. If you are re-encoding impractically large inputs to upload to YouTube or similar then try a value of 18 since these video services will re-encode anyway.
-preset: Encoding speed. A slower preset provides better compression (quality per file size) but is slower. Use the slowest that you have patience for: ultrafast, superfast, veryfast, faster, fast, medium (the default), slow, slower, veryslow.
-movflags +faststart: Allows video to playback before it is completely downloaded in the case of progressive download viewing. Useful if you are hosting the video, otherwise superfluous if uploading to a video service like YouTube.
-vf scale=-2:720,format=yuv420p: A filtergraph using scale and format video filters. Scale to 720 pixels in height, and automatically choose width that will preserve aspect, and then make sure the pixel format is compatible with dumb players.
-vbr 4: Audio quality for libfdk_aac AAC encoder. Range is 1-5. Higher value is higher quality.
===== Concatenare più files
avconv -i filename_%d.flv -c copy output.flv
==== ((Blender))
Informazioni basilari:
- numpad 0 camera, 1 front, 5 ortogonale, 3 side.
- Shift: s menu per portare il cursore al centro.
- *w* menu specials
- Nel menu graph premere *h* per mostrare le opzioni per le maniglie dei nodi
- Traking oggetti CTRL T
===== Paths - come far seguire la telecamera
- Aggiungere una curva path al progetto
- Per aggiungere Puntare all'ultimo punto in edit mode e premere *e* per aggiungere punti,
- per aggiungere sottosegmenti selezionare due segmenti e premere *w*
- Si chiude una curva path premento *C* in edit mode
- Transform windows (*n*) rendere lunghe o invisibili le freccette
- Per ruotare l'asse delle frecce direzionali selezionare in edit mode i punti di controllo e premere *CTRL+T* (tilt nel menu tools)
- Nella sezione object properties selezionare Object Data (simbolo Bezier a due punti) e spuntiamo follow
- Selezionare poi la telecamera
===== Impostare un'animazione:
- SU preferences - add ons mettere spunta su "Import images as planes"
- premere Shift S - porta il cursore al centro
- Importare le immagini (as planes) con le opzioni *Shadeless, user alpha (premultiplied), ztransparent*
- Ruotare i pannelli selezionati premento in sequenza *r* (rotate) *x* (su asse x) *90* (gradi) invio
- view- align view - align camera to panel
- Assembla il personaggio nuovendo con G [x,y,x] e assemblare il personaggio, scalando con S
- Cambia il centro di rotazione degli arti con TAB (edit mode), poi G (allinea al nuovo fulcro), poi TAB nuovamente e G per riposizionare l'arto.
- Nella testa seleziona tutti gli elementi (testa per ultima) e premi crtl+P - object per unire il gruppo
- Ora portare l'immagin nel punto di partenza del video
e premere *i* (insert key frame)
===== Rendering footnote:[http://www.blenderguru.com/articles/4-easy-ways-to-speed-up-cycles/]
. Switch to GPU rendering -> File>User Preferences>System
. Reduce the amount of bounces
. The optimal tile size for GPU is 256 x 256. For CPU it’s 16 x 16. And if those don’t work for you, try to keep it in the power of 2s (eg. 128, 256, 512, 1024), as the processor handles these faster.
===== Video editor
-FX stip color - nero
- *K* taglia la striscia nel punto selezionato
Per esportare
Impostare risoluzione
Controllare il range
Selezionare il fule di output
==== ((Git))
allungare le credenziali sul git
git config --global credential.helper cache
git config --global credential.helper 'cache --timeout=360000'
installare repository locale
# creazione repository
cd path/above/repo
git init --bare my-project.git
#prima clonazione
cd /dir/to/clone/
git clone path/above/repo/my-project.git
git push --set-upstream origin master
==== ((ImageMagik))
Convertire un psd mmyk in rgb per editing con GIMP
convert input.psd -channel RGBA -alpha Set -colorspace rgb output.png
=== ((Inkscape))
.Scorciatoie
|===
| Effetto | Scorciatoia
| Align and Distribute | Shift + Ctrl +A
| Layers | Shift + Ctrl +L
| Document Preferences | Shift + Ctrl +D
| Trace Bitmap | Shift + Alt +B
| Rulers | Ctrl + R
| Bars | Ctrl + B
|===
===== MKVToolNix
You first have to import my public GPG key because all of my pools are signed. Run this once:
wget -q -O - https://mkvtoolnix.download/gpg-pub-moritzbunkus.txt | sudo apt-key add -
===== SOX
Crea un file vuoto di 2 secondi
sox -n -r 44100 -c 2 /tmp/silence.wav trim 0.0 2
Mergia più files con 2 secondi di pausa
sox $(for f in *.wav; do echo -n "$f /tmp/silence.wav "; done) output.wav
=== Python
* Registrare COM objects: Lib\site-packages\win32com\client\makepy.py
* Pycharm
** os.environ["PATH"] += ";" + os.path.dirname(PyQt4.__file__)