CakePHP Time formatting: year of "week of year"

While jumping between PHP and JavaScript - one of the most annoying things is dates handling. Recently, one of the clients reported that, while using our app for appointments and work schedule - they lost one of the working days. Client’s worker was supposed to work on the 31st of December 2019. Firstly, working on the 31st is an achievement. Since we can’t affect it, “bug report” was filled on our end....

December 7, 2018 · 1 min · anvyst

Code Churn: post-release defect elimination

Among numerous metrics on code evaluation (like CRAP index) in product lifecycle, code churn seems to be the one to look for while dealing with post-release and legacy code elimination. Code churn helps you to evaluate file changes across builds. Code churn is a good predictor of post-release defects. Thus, it’s a warning sign if you approach a deadline while your code churn increases. That’s a sign that the code gets more and more volatile the closer you get to your deadline....

December 5, 2018 · 2 min · anvyst

Dashboards with GraphQL & ElasticSearch

Here’s an example of creating Dashboards with GraphQL and ElasticSearch from React community. As a big fan of VueJS framework, it’s still nice to check what’s happening on the other side of the fence from React community fellow coders. Mitch Clay published an article on how you can utilise GraphQL with ElasticSearch to design dashboards for the your projects. The stack is pretty common for JS environment: NodeJS 2. React 3....

December 4, 2018 · 1 min · anvyst

AdminLTE Midnight theme: customising templates

AdminLTE is by far one of the great examples of what Bootstrap CSS can do and consists of pre-defined UI elements used for Admin control panels. Similarly we have ElementUI, Bulma, and Bootstrap CSS in its core. Right now, there’s a massive amount of various admin panels on the net. AdminLTE Midnight Theme So, I made a quick Proof of Concept on how we can easily convert default AdminLTE layout into a dark theme, with a bit of help from grunt and yarn....

October 19, 2018 · 1 min · anvyst

VueJS.London - Jest for Vue testing

Images Copyright www.edtelling.com In September, I was lucky to attend VueJS London conference. It was an amazing experience, with lots of interesting talented people from different corners of the EU and the States. I’ll slowly start assembling the info on the talks that took place there. Once the slides become available I will start adding them here as well. One of the greatest talks at the conference was by Roman Kuba....

October 10, 2018 · 1 min · anvyst

Psalm - static analysis of PHP

Once every blue moon, I dive into Github repositories to check for something useful for my everyday routines. This time, I stumbled upon Psalm from Vimeo. Psalm is designed to understand that complexity, allowing it to quickly find common programmer errors like null references and misspelled variable names. vimeo Psalm documentation I’ve been using phpstan for basic code static analysis for a while. I was running it with various rule levels, depending on the complexity of the codebase....

October 9, 2018 · 1 min · anvyst

Video to Text: Amazon Transcribe with S3

A quick story on how to do video to text conversion using Amazon S3. How lazy can you possibly get? Well, that’s my story on how to transcribe text from boring videos, and checking for the keywords, before even checking the video/audio. For the start, first cornerstone was to actually get the video. Most of the Streaming Players use HLS media player that heavily rely on m3u8 extension (those who remember playlists in WinAmp, might remember it), that sets base URL for all the video segments that will be streamed....

August 7, 2018 · 2 min · anvyst

#delete campaigns: social solidarity vs privacy

Uber: Travel ban January 2017, we witnessed #deleteuber social media campaign. The movement erupted after Trump’s ban on travel ban from Muslim-majority countries, when NYC taxi drivers went on strike. At the very same moment Uber announced “surged pricing on JFK airport” being turned off. February 2017 benchmarks shown 200,000 accounts being deleted as an act of solidarity against US President decision. Cambridge Analytica: Elections March 2018, Christopher Wylie, whistleblower from Cambridge Analytica (has nothing to do with famous university), gives an interview to Guardian on how the company was collecting Facebook user profiles and presumably helped targeting elections campaign for Republican Party to win the elections....

April 9, 2018 · 3 min · anvyst

What's after senior developer by Christian Heilmann

It is painful to see how clumsy companies are in trying to keep their techies happy. We do team building exercises, we offer share options. Also, we pay free lunches and try to do everything to keep people in the office. We print team T-shirts and stickers and pretend that the company is a big, happy family. We pay our technical staff a lot and wonder why people are grumpy and leave....

April 5, 2018 · 1 min · anvyst

CakePHP CsvMigrations: prototype in 3 2 .. Done!

Every programmer is tired of coding yet another login form. Yet another CRUD view module. So today I’ll show you an example where our laziness can get you building prototype systems without a single line of extra code. One of the tasks, that we had to face when developing Qobrix CRM, was fast prototyping of the system. The result of ultimate laziness and DRY concept resulted in cakephp-csv-migrations plugin that we try to use pretty much everywhere, while delivering the system....

February 2, 2018 · 4 min · anvyst