Puppeteer tricks to write a bot/scrapper

I wrote a bot recently that does some actions after it authenticates with an account using puppeteer and it was incredibly easy.
In case you don't know what puppeteer does, well, it is simply a Node library to control Chromium or Chrome programmatically, now such a library can have many uses but I'll focus on what you need to know when writing a scrapper/bot.

The first thing to know is what kind of website you are dealing with, it is a traditional website or is more like a SPA type of website? A...

View full article

Simplest way to reduce the page number links in Laravel

Recently and currently(Laravel 5.6) Laravel is using Bootstrap-4 and they've updated all their views accordingly, and when you want to use Laravel's pagination feature you may have a bit of a problem in the mobile world as there are too many page links to be shown in an esthetic way on a mobile screen.

So you can do a lot of things to resolve this problem but the simplest way available is to change the view which defines the links listening.
First, we need to publish that view, this will force L...

View full article

How Twitter has become a monolith of censorship #ShadowBanned

I mainly use 2 social media platforms, as these 2 until now seemed useful enough. One of them is YouTube, on which you can easily follow your preferred content creators and you can get a lot of news from both political spectrums. And the other is Twitter which seemed very good for micro public debates and discourse on many topics, but lately, I now consider it to be one monolith censorship.

From November 2017 I started to use Twitter my account was old is now 10 years old but I didn't use it mu...

View full article

Example of Language System in an Ionic 3 Application

When you want to create a language system and add multiple languages to your Ionic APP you have various designs available, but in a simple APP, there are 2 major ones.

The first design is where the UI design and APP functionality remain the same for both languages, in this case, you can use some javascript objects for every component you have.
This design is suited when you want to have consistency and implies a bit less work.

The second option is to clone each of your components for every langu...

View full article