Compare commits
5 Commits
master
...
e59538a3bd
| Author | SHA1 | Date | |
|---|---|---|---|
|
e59538a3bd
|
|||
|
a9f7fd7f75
|
|||
|
3adc7ce3a7
|
|||
|
131e9a1c3f
|
|||
|
|
44871e36ff |
65
slides/algebragrupe/algebragrupe.md
Normal file
65
slides/algebragrupe/algebragrupe.md
Normal file
@@ -0,0 +1,65 @@
|
|||||||
|
---
|
||||||
|
title:
|
||||||
|
- Algebra (Grupe)
|
||||||
|
|
||||||
|
theme:
|
||||||
|
- Warsaw
|
||||||
|
colortheme:
|
||||||
|
- orchid
|
||||||
|
---
|
||||||
|
|
||||||
|
# Uvod
|
||||||
|
- Skupovi
|
||||||
|
- Celi brojevi (beskonacni)
|
||||||
|
- Ostatci pre deljenju (konacne)
|
||||||
|
- Operacije
|
||||||
|
- mnozenje (binarna)
|
||||||
|
- negacija (unarna)
|
||||||
|
|
||||||
|
# Grupe
|
||||||
|
- Rezlutat ostaje unutar skupa
|
||||||
|
- Neutral
|
||||||
|
- Inverz
|
||||||
|
- Asocijativnost
|
||||||
|
- Abelove grupe (komutativnost)
|
||||||
|
- Ciklicne grupe (ostatak pri deljenju)
|
||||||
|
|
||||||
|
# Podgrupe
|
||||||
|
- Celi/Racionalni brojevi
|
||||||
|
- Red grupe
|
||||||
|
- Red podgrupe deli red grupe
|
||||||
|
|
||||||
|
# Kriptografija
|
||||||
|
- Skup poruka m odredjene velicine
|
||||||
|
- Operacija sifrovanja/potpisivanja $\oplus$
|
||||||
|
- jednosmerna (kao i hash funkcije)
|
||||||
|
- Neutral (e)
|
||||||
|
- Inverz kljuceva (k1, k2)
|
||||||
|
- $k1 \oplus k2 \equiv e$
|
||||||
|
- Sifrovanje/Potpisivanje ( $c \equiv m \oplus k1$ )
|
||||||
|
- Desifovanje/Provera ( $c \oplus k2 \equiv m$ )
|
||||||
|
- Asocijativnost
|
||||||
|
- $c \oplus k2 \equiv (m \oplus k1) \oplus k2 \equiv m \oplus (k1 \oplus k2)$
|
||||||
|
- $m \oplus (e) \equiv m$
|
||||||
|
|
||||||
|
# Kljucevi
|
||||||
|
- Jedan kljuc (simetricna)
|
||||||
|
- $k1 \equiv k2$
|
||||||
|
- $1 \oplus 1 \equiv 0 \mod 2$ (komplement)
|
||||||
|
- Dva kljuca (asimetricna)
|
||||||
|
- $2+3 \equiv 0 \mod 5$
|
||||||
|
|
||||||
|
# Razmena kljuceva
|
||||||
|

|
||||||
|
|
||||||
|
# Razmena kljuceva
|
||||||
|
- Diffie–Hellman (DH)
|
||||||
|
- parametri (g,n,...)
|
||||||
|
- Abelova grupa (komutativnost)
|
||||||
|
- $g \oplus a \oplus b \equiv g \oplus b \oplus a$
|
||||||
|
- $(g \oplus a) \oplus b \equiv (g \oplus b) \oplus a$
|
||||||
|
- $A \oplus b \equiv B \oplus a$
|
||||||
|
|
||||||
|
# Sifrovanje/Potpisivanje
|
||||||
|
- Direktno sifrovanje (RSA)
|
||||||
|
- DH + simetcina = asimetricna (EC)
|
||||||
@@ -10,13 +10,21 @@ colortheme:
|
|||||||
|
|
||||||
# Uvod
|
# Uvod
|
||||||
- Šta je ekonomija?
|
- Šta je ekonomija?
|
||||||
|
- istorija
|
||||||
|
- trampa
|
||||||
|
- kovanice i papirni novac
|
||||||
|
- "slobodna" trgovina
|
||||||
- raspodela resursa
|
- raspodela resursa
|
||||||
- efikasnost
|
- efikasnost i evektivnost
|
||||||
|
|
||||||
|
|
||||||
# Uvod
|
# Uvod
|
||||||
- Šta je novac?
|
- Šta je novac?
|
||||||
|
- banke
|
||||||
|
- ponuda i traznja
|
||||||
- moć odlučivanja u raspodeli resursa
|
- moć odlučivanja u raspodeli resursa
|
||||||
- likvidnost
|
- likvidnost
|
||||||
|
- bruto domaci proizvod (BDP eng GDP)
|
||||||
|
|
||||||
# Štednja
|
# Štednja
|
||||||
- Štednja
|
- Štednja
|
||||||
@@ -47,6 +55,7 @@ colortheme:
|
|||||||
- Brokeri
|
- Brokeri
|
||||||
- domaći
|
- domaći
|
||||||
- strani
|
- strani
|
||||||
|
- wall street
|
||||||
|
|
||||||
# Kripto
|
# Kripto
|
||||||
- Novac
|
- Novac
|
||||||
@@ -62,10 +71,33 @@ colortheme:
|
|||||||
- iluzija sposobnosti
|
- iluzija sposobnosti
|
||||||
- zakoni
|
- zakoni
|
||||||
|
|
||||||
|
# Uspesi sistema
|
||||||
|
- Uspesi sistema
|
||||||
|
- brz napredak u poljima interesovanja (profita)
|
||||||
|
- masovna proizvodnja
|
||||||
|
- poslovi i obucavanje naroda
|
||||||
|
-
|
||||||
|
|
||||||
|
# Neuspesi i kritika sistema
|
||||||
|
- Kritika
|
||||||
|
- planirano zastarevanje
|
||||||
|
- ciklicna potrosnja
|
||||||
|
- ekoloska katastrofa
|
||||||
|
- automatizacija
|
||||||
|
- besmisleni poslovi
|
||||||
|
- robovanje profitu
|
||||||
|
- kompetitivnost i ratovi
|
||||||
|
- sve na prodaju
|
||||||
|
- kriza u ciklusima
|
||||||
|
- najbogatijih 1%
|
||||||
|
- maltuzianizm
|
||||||
|
|
||||||
|
|
||||||
# Kako da se obogatim?
|
# Kako da se obogatim?
|
||||||
- Kako zaraditi?
|
- Kako zaraditi?
|
||||||
- roditi se bogat
|
- nasledstvo
|
||||||
- krasti
|
|
||||||
- rad i štednja
|
- rad i štednja
|
||||||
|
- investicije
|
||||||
|
- kradja
|
||||||
- sreća
|
- sreća
|
||||||
|
|
||||||
|
|||||||
13
slides/makefiles/examples/fort_1
Normal file
13
slides/makefiles/examples/fort_1
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
|
||||||
|
forts/big_fort.txt: forts/short.txt forts/long.txt
|
||||||
|
cat forts/short.txt forts/long.txt > forts/big_fort.txt
|
||||||
|
|
||||||
|
forts/:
|
||||||
|
mkdir forts
|
||||||
|
|
||||||
|
forts/short.txt: forts/
|
||||||
|
fortune -s > forts/short.txt
|
||||||
|
|
||||||
|
forts/long.txt: forts/
|
||||||
|
fortune -l > forts/long.txt
|
||||||
|
|
||||||
15
slides/makefiles/examples/fort_2
Normal file
15
slides/makefiles/examples/fort_2
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
|
||||||
|
forts/big_fort.txt: forts/short.txt forts/long.txt
|
||||||
|
cat $^ > $@
|
||||||
|
|
||||||
|
forts/:
|
||||||
|
mkdir $@
|
||||||
|
|
||||||
|
forts/short.txt: forts/
|
||||||
|
fortune -s > $@
|
||||||
|
|
||||||
|
forts/long.txt: forts/
|
||||||
|
fortune -l > $@
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -rf forts
|
||||||
158
slides/makefiles/makefiles.md
Normal file
158
slides/makefiles/makefiles.md
Normal file
@@ -0,0 +1,158 @@
|
|||||||
|
---
|
||||||
|
title:
|
||||||
|
- Making Makefiles
|
||||||
|
author:
|
||||||
|
- Malin
|
||||||
|
|
||||||
|
theme:
|
||||||
|
- Warsaw
|
||||||
|
colortheme:
|
||||||
|
- orchid
|
||||||
|
---
|
||||||
|
|
||||||
|
# Intro
|
||||||
|
|
||||||
|
The fundamental problem:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
git submodule update --init soundscape
|
||||||
|
cargo build --release
|
||||||
|
install -pm755 target/release/tap /usr/local/bin/
|
||||||
|
```
|
||||||
|
|
||||||
|
You can't type this after every test.
|
||||||
|
|
||||||
|
***
|
||||||
|
|
||||||
|
## First Solution
|
||||||
|
|
||||||
|
```bash
|
||||||
|
#!/bin/sh
|
||||||
|
git submodule update --init soundscape
|
||||||
|
cargo build --release
|
||||||
|
install -pm755 target/release/tap /usr/local/bin/
|
||||||
|
```
|
||||||
|
|
||||||
|
At this point, every test takes 10 minutes.
|
||||||
|
|
||||||
|
## Second Solution
|
||||||
|
|
||||||
|
```bash
|
||||||
|
#!/bin/sh
|
||||||
|
[ -f soundscape/.git ] || git submodule update --init soundscape
|
||||||
|
[ -f target/release/tap ] || cargo build --release
|
||||||
|
[ -f target/release/tap ] || \
|
||||||
|
install -pm755 target/release/tap /usr/local/bin/
|
||||||
|
```
|
||||||
|
|
||||||
|
***
|
||||||
|
|
||||||
|
# Makefile Solutions
|
||||||
|
|
||||||
|
- input, process, output.
|
||||||
|
- automatic idempotence
|
||||||
|
|
||||||
|
```bash
|
||||||
|
INSTALL_DIR = /usr/local/bin
|
||||||
|
|
||||||
|
soundscape/.git:
|
||||||
|
git submodule update --init soundscape
|
||||||
|
|
||||||
|
/usr/local/bin/tap: target/release/tap
|
||||||
|
install -pm755 target/release/tap $(INSTALL_DIR)
|
||||||
|
|
||||||
|
target/release/tap: src soundscape/.git
|
||||||
|
cargo build --release
|
||||||
|
```
|
||||||
|
|
||||||
|
***
|
||||||
|
|
||||||
|
# Basic
|
||||||
|
|
||||||
|
- *Gotcha*: directories
|
||||||
|
- This, that, and these
|
||||||
|
|
||||||
|
***
|
||||||
|
|
||||||
|
## Repetition, Repetition, Repetition
|
||||||
|
|
||||||
|
```make
|
||||||
|
.PHONY: output
|
||||||
|
output: release/index.html
|
||||||
|
|
||||||
|
release/: backups.zip
|
||||||
|
mkdir $@
|
||||||
|
|
||||||
|
release/index.html: index.html release/
|
||||||
|
cp $< $@
|
||||||
|
|
||||||
|
index.html: backups.zip
|
||||||
|
unzip $<
|
||||||
|
```
|
||||||
|
|
||||||
|
***
|
||||||
|
|
||||||
|
# Variables
|
||||||
|
|
||||||
|
- From your shell.
|
||||||
|
- New variables.
|
||||||
|
- Filenames as variables.
|
||||||
|
- *Gotcha*: no shell variables, only make!
|
||||||
|
|
||||||
|
## Equality
|
||||||
|
|
||||||
|
- Variables with '=', never ':='.
|
||||||
|
- *Gotcha*: one shell per line.
|
||||||
|
- Variables as shell output.
|
||||||
|
|
||||||
|
|
||||||
|
***
|
||||||
|
|
||||||
|
|
||||||
|
# Phonies, and the Problems with Lies
|
||||||
|
|
||||||
|
- clean (common)
|
||||||
|
- check (excellent)
|
||||||
|
|
||||||
|
***
|
||||||
|
|
||||||
|
|
||||||
|
## Non-Compiling Checks
|
||||||
|
|
||||||
|
- `make` -n
|
||||||
|
- *Gotcha*: shell output variables.
|
||||||
|
|
||||||
|
***
|
||||||
|
|
||||||
|
|
||||||
|
# The Fourth Sigil: `%`
|
||||||
|
|
||||||
|
- Standard rules, e.g. ImageMagick, copying, et c.
|
||||||
|
- *Gotcha*: intermediaries are deleted.
|
||||||
|
|
||||||
|
***
|
||||||
|
|
||||||
|
# Bling: make2graph
|
||||||
|
|
||||||
|
- *Gotcha*: completely outdated.
|
||||||
|
|
||||||
|
***
|
||||||
|
|
||||||
|
# Inclusivity
|
||||||
|
|
||||||
|
- `include dir/Makefile`
|
||||||
|
- *Gotcha*: directory has not changed
|
||||||
|
- `$(MAKEFILE_LIST)`
|
||||||
|
|
||||||
|
|
||||||
|
# Special Commands
|
||||||
|
|
||||||
|
- dir
|
||||||
|
- `DIR = test -d $(dir $@) || mkdir $(dir $@)`
|
||||||
|
- patsubst
|
||||||
|
- Wildcards (or not?)
|
||||||
|
|
||||||
|
# Maintanance
|
||||||
|
|
||||||
|
- backups
|
||||||
|
- saving files
|
||||||
BIN
slides/stajedecentrala/qrcode.png
Normal file
BIN
slides/stajedecentrala/qrcode.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.7 KiB |
@@ -33,7 +33,8 @@ Ekipa koju interesuje :
|
|||||||
|
|
||||||
# Lokacije
|
# Lokacije
|
||||||
|
|
||||||
- DC Krov hacklab
|
- DC Krov
|
||||||
- KC Grad radionce
|
- KC Magacin
|
||||||
- Matematicki Faklutet (cekamo)
|
|
||||||
- Drugi fakulteti, skole?
|
# Kontakt
|
||||||
|

|
||||||
|
|||||||
Reference in New Issue
Block a user