Settings -> Editor -> Language Injections
--force, -f
Ignore all errors; continue even if an SQL error occurs during a table dump.
One use for this option is to cause mysqldump to continue executing even when it encounters a view that has become invalid because the definition refers to a table that has been dropped. Without --force, mysqldump exits with an error message. With --force, mysqldump prints the error message, but it also writes an SQL comment containing the view definition to the dump output and continues executing.
If the --ignore-error option is also given to ignore specific errors, --force takes precedence.
autorestart=true — перезапуск воркера, если тот по какой-то причине упал;
stopsignal=KILL — сигнал остановки (убийства) процесса. Если не определяется, то используется команда по умолчанию — TERM;
In general, you cannot modify a table and select from the same table in a subquery.
curl -A "<USER_AGENT>" https://i.instagram.com/api/v1/users/<USER_ID>/info/
{
"user": {
"username": "<OWNER_USERNAME>",
"pk": <OWNER_PK>,
"profile_pic_url": "<OWNER_PIC_URL>"
},
"status": "ok"
}
{ "message": "useragent mismatch", "status": "fail" }
$record = geoip_record_by_name($address); // хост или IP-адрес
Array
(
[continent_code] => NA
[country_code] => US
[country_code3] => USA
[country_name] => United States
[region] => CA
[city] => Marina Del Rey
[postal_code] =>
[latitude] => 33.9776992798
[longitude] => -118.435096741
[dma_code] => 803
[area_code] => 310
)
Це́лостность ба́зы да́нных (database integrity) — соответствие имеющейся в базе данных информации её внутренней логике, структуре и всем явно заданным правилам.
Embed
Set the stream to unlisted or public
Go to the “Watch page” (View on watch page link (lower right) in https://www.youtube.com/live_dashboard)
Click Share -> Embed to get the embed HTML code
example:
<iframe width="560" height="315" src="https://www.youtube.com/embed/XYZ123" frameborder="0" allowfullscreen></iframe>
Now the problem is: every time the stream stops and restarts, the ID changes.
To get a permanent URL, you need to change the link to use the Channel ID (12345 in this example):
<iframe width="560" height="315" src="https://www.youtube.com/embed/live_stream?channel=12345" frameborder="0" allowfullscreen></iframe>
Get the Channel ID from https://www.youtube.com/account_advanced. Not the User ID!
Add this into your website HTML, and open the website in anonymous browser window to check if the stream displays without error message.
class Foo
{
public $quux;
}
class Bar
{
private $quux;
public function setQuux(Quux $quux)
{
$this->quux = $quux;
}
}
class Quux
{
}
$foo = new Foo();
$foo->quux = 'text'; // Work
$foo = new Bar();
$foo->quux = 'text'; // Member has private access
class Foo
{
public Quux $quux;
}
Closing the API allows design flaws to be found more easily and gives you the opportunity to evolve your code by creating well defined extension points.