Scaling Magento presentation with 60 slides and notes, which was then reviewed by Alan Storm.
<?php | |
/** | |
* Class that validate and retrieve data from PESEL number in object-oriented style | |
* | |
* Example: | |
* $pesel = new Pesel('85042510356'); | |
* $pesel->getBirthday()->format("d-m-Y") | |
* $pesel->getSex() | |
* $pesel->getAge("%a") |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
TLDR: The cascade={"remove"}
is like a "software" onDelete="CASCADE"
, and will remove objects from the database only when an explicit call to $em->remove()
occurs. Thus, it could result in more than one object being deleted. orphanRemoval
can remove objects from the database even if there was no explicit call to ->remove()
.
I answered this question a few times to different people so I will try to sum things up in this Gist.
Let's take two entities A
and B
as an example. I will use a OneToOne relationship in this example but it works exactly the same with OneToMany relationships.
class A
sysctl -w fs.file-max=12000500 | |
sysctl -w fs.nr_open=20000500 | |
ulimit -n 4000000 | |
sysctl -w net.ipv4.tcp_mem='10000000 10000000 10000000' | |
sysctl -w net.ipv4.tcp_rmem='1024 4096 16384' | |
sysctl -w net.ipv4.tcp_wmem='1024 4096 16384' | |
sysctl -w net.core.rmem_max=16384 | |
sysctl -w net.core.wmem_max=16384 | |
wget http://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb | |
sudo dpkg -i erlang-solutions_1.0_all.deb |
# filter by request host header | |
varnishlog -q 'ReqHeader ~ "Host: example.com"' | |
# filter by request url | |
varnishlog -q 'ReqURL ~ "^/some/path/"' | |
# filter by client ip (behind reverse proxy) | |
varnishlog -q 'ReqHeader ~ "X-Real-IP: .*123.123.123.123"' | |
# filter by request host header and show request url and referrer header |
... | |
# Prometheus | |
config :prometheus, MyApp.PhoenixInstrumenter, | |
controller_call_labels: [:controller, :action], | |
duration_buckets: [10, 25, 50, 100, 250, 500, 1000, 2500, 5000, | |
10_000, 25_000, 50_000, 100_000, 250_000, 500_000, | |
1_000_000, 2_500_000, 5_000_000, 10_000_000], | |
registry: :default, | |
duration_unit: :microseconds |
0-mail.com | |
007addict.com | |
020.co.uk | |
027168.com | |
0815.ru | |
0815.su | |
0clickemail.com | |
0sg.net | |
0wnd.net | |
0wnd.org |