Skip to content

Instantly share code, notes, and snippets.

View aktolu's full-sized avatar

Muhammed Aktolu aktolu

View GitHub Profile
2021-08-19 14:32:22 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2021-08-19 14:32:22 0 [Note] InnoDB: Uses event mutexes
2021-08-19 14:32:22 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2021-08-19 14:32:22 0 [Note] InnoDB: Number of pools: 1
2021-08-19 14:32:22 0 [Note] InnoDB: Using SSE2 crc32 instructions
2021-08-19 14:32:22 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2021-08-19 14:32:22 0 [Note] InnoDB: Completed initialization of buffer pool
2021-08-19 14:32:22 0 [Note] InnoDB: Starting crash recovery from checkpoint LSN=300288
2021-08-19 14:32:22 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2021-08-19 14:32:22 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
Humm, I am curious
The generator does not perform any authentication, so you must ensure that all referenced Hydra paths for your API are accessible anonymously. If you are using API Platform this will at least include:
I've been experimenting more and more with DeepL and I must say, I like it most of the time. It's quite robust.
QPJZ3O2SYRSCMFL3364FH64IJ5IX6NXBFDKVXTR2NQWMYZVR4KQQ
@aktolu
aktolu / pagination.php
Last active August 29, 2023 12:56
PHP Pagination
<?php
function pagination(int $totalResults, int $activePage, int $resultsPerPage = 12, int $maxPage = 5):stdClass {
// return için hazırlık yapıyoruz
$return = new stdClass();
$return->totalResults = $totalResults;
$return->activePage = $activePage;
$return->resultsPerPage = $resultsPerPage;
// Toplam sayfa sayısını hesaplıyoruz, ve küsüratlı olması durumunda yukarı yuvarlıyoruz
$return->numberOfPages = (int)ceil($totalResults / $resultsPerPage);