-
Apache Kafka

Apache Kafka is a distributed event-streaming platform used to send, store, and process large volumes of data in real time. Example: Invoice Processing Application Producer: A Python FastAPI application publishes an invoice_created event. Kafka Topic: Stores the event in an invoices topic. Consumer: A Python worker reads the event and validates the invoice. Result: The… Continue reading
-
How to run Laravel without Artisan?
inside htdocs / run following command $ laravel new myblog After successfully creation run following and do following sudo chmod -R o+w storage/ Change server.php to index.php (@ root directory) copy .htaccess from public to root directory (optional) in Resources / app.blade.php –> Change to run following http://localhost/myblog/ Continue reading
-
html select only one checkbox in a group
This snippet will: Allow grouping like Radio buttons Act like Radio Allow unselecting all // the selector will match all input controls of type :checkbox // and attach a click event handler $(“input:checkbox”).on(‘click’, function() { // in the handler, ‘this’ refers to the box clicked on var $box = $(this); if ($box.is(“:checked”)) { // the… Continue reading
-
Loading state button in Bootstrap 3
<button type=”button” data-loading-text=”Loading…” class=”btn btn-primary”> Loading state </button> body { padding: 10px; } $(“button”).click(function() { var $btn = $(this); $btn.button(‘loading’); // Then whatever you actually want to do i.e. submit form // After that has finished, reset the button state using setTimeout(function () { $btn.button(‘reset’); }, 1000); }); Continue reading
-
Virtual private network (VPN)
A virtual private network (VPN) extends a private network across a public network, and enables users to send and receive data across shared or public networks as if their computing devices were directly connected to the private network. Applications running across a VPN may therefore benefit from the functionality, security, and management of the private… Continue reading
-
CSRF Protection in PHP
Cross-site request forgery [CSRF] is a type of attack where a user is tricked/forced into performing an unwanted action on a friendly website that they are authenticated with. For example, if a user is logged into their bank and then visits a malicious site, it is possible that the malicious site can use the user’s… Continue reading
-
Composer
Composer is a tool for dependency management in PHP. It allows you to declare the libraries your project depends on and it will manage (install/update) them for you. Dependency management Composer is not a package manager in the same sense as Yum or Apt are. Yes, it deals with “packages” or libraries, but it manages them on… Continue reading
-
Basic Usage Of Doctrine With CodeIgniter
Lets do a contact form example to understand how to use doctrine ORM within CodeIgniter. Lets create a table on our MySQL database named ‘pd_contact’ as like follows: This will generate and entity class as like follows: <?php /** * PdContact * * @Table(name=”pd_contact”) * @Entity */ class PdContact { /** * @var integer $id… Continue reading
-
Gas ORM
A lightweight and easy-to-use ORM for CodeIgniter. Gas was built specifically for CodeIgniter app. It uses CodeIgniter Database packages, a powerful DBAL which support numerous DB drivers. Gas ORM provides a set of methods that will map your database tables and its relationship, into accessible object. Continue reading
-
ORM for codeigniter
An Object Relational Mapper written in PHP for CodeIgniter. It is designed to map your Database tables into easy to work with objects, fully aware of the relationships between each other. Continue reading