Laravel cache ttl – how to set cache for day
Param ttl is quite confusing in laravel cache. So here how we handle it: So basically we just pass carbon instance and add amount of time we want cache to expire.
Read More »Disallow file extension in robots.txt
To disable search engine crawling of specific extension files (txt, csv, etc) use:
Read More »AWS lambda (serverless) read CSV file in stream
Greetings! I had a task on some project to read large csv files on lambda. As you may know csv is better to read from stream and I was wondering if there’s a way to do that on…
Read More »Yii1 AR model select associative array
Just a quick snippet on preparing models into assoc array:
Read More »Support Ukraine
My homeland suffering from unfair and ruthless war. Ukrainians die every day on both frontline and in the rear. My hometown Zaporizhya is suffering from rocket strikes. Cities like Soledar and Bakhmut are wiped off the face of…
Read More »Moving existing Vue2 app to TypeScript
I’ve got some situation when I was wanted to update my current Vue app to TypeScript. I considered on only updating it partially: update store to typescript update components to typescript So for that I did the following…
Read More »Why it is impossible to decode hashed value
Hashing algorithms are widespread used in software development. But usually people don’t know, how they work and why you cant to decrypt hash value. I’ll try to explain it in this article. FYI: Bcrypt is based on symmetric…
Read More »Large pivot table tool
Hi everybody! Recently I had an interesting discussion: my friend who is a head of analytics team was complaining about low speed processing on large amount of data when you making pivot tables and/or do filtering in Excel….
Read More »Simple template engine on PHP
A short tutorial about how to write a simple php-based template engine (similar to what they use in Yii) To make it comfortable to use, lets write it by using OOP and php7. As the first thing to…
Read More »Need Yii’s gridview in Laravel?
It was a pleasure to work with this flexible and powerful component in yii! But, when I started coding on laravel, I was unable to find a good analog. I spend some time on the previous job with…
Read More »