Codxplore.com

Latest news:

Quran ul karim is a free Quran application for android. This application is advertisement free application for android smartphone. Download from https://play.google.com/store/apps/details?id=com.akramhossain.quranulkarim&hl=en

190
Views
Installing Git and GitHub Desktop

Installing Git and GitHub Desktop

GitHub desktop provides us an efficient way of working to run the gitHub work flow as graphical user interface mode,  GitHub desktop is available both windows and macOS platform.  For Windows: We can install github desktop in windows platform using browser also using windows power-shell  To install via browser you need to follow this steps Go to desktop.github.com Download for windows
168
Views
Installing Homebrew for macOS

Installing Homebrew for macOS

Homebrew is a command-line interface based package manager for macOS,  This can be used for automated software installation, removal and upgradation.  To install Homebrew on macOS, you will need to run a command shell. Launch Spotlight Search Type in terminal Execute the following command in the Terminal to install the Homebrew package manager: $ /usr/bin/ruby -e "$(curl -fsSL
137
Views
How to creating a new Angular Service

How to creating a new Angular Service

Angular Service any code that touches outside of the boundaries of a component should exist in a service this includes inter-component communication,  unless there's a parent-child relationship and API calls of any kind and any code that cache or retrieve  data from a cookie or the browser's localStorage. This is a critical architectural pattern that keeps your  application maintainable in
148
Views
Install Chocolatey for Windows

Install Chocolatey for Windows

Windows chocolatey is a command-line interface based package manager.  Chocolatey can be used for automated software installation, remove and upgrade.  To install Chocolatey on Windows, you will need to run an elevated command shell: Launch the Start menu Start typing in PowerShell You should see Windows PowerShell Desktop App as a search result Right-click on Windows PowerShell and sele
165
Views
Install Node.js on Ubuntu 20.04

Install Node.js on Ubuntu 20.04

Initiation  Node.js is an open-source, cross-platform, back-end JavaScript runtime environment  that runs on the V8 engine and executes javaScript code outside a web browser Prerequisites for installing Node.js If you are using Ubuntu 20.04. Before we start, we should have an user account with sudo privileges set up on the system. We will learn how to do this by following these steps for Ub
1428
Views
Typeorm findAndCount relational table filter

Typeorm findAndCount relational table filter

To filter relational table in TypeORM using findAndCount there is a workaround. To filtering based on relation fields for findAndCount. We need to use ObjectLiteral-style where using this style conditions are works perfectly. Assume that we have Three entities – products,attributeSet and woodType. products belongs to one attributeSet and one woodType,  attributeSet and woodType has many prod
1109
Views
Generates models for TypeORM from existing databases

Generates models for TypeORM from existing databases

Typeorm is an ORM Which run in NodeJS, PhoneGap, Cordova, Ionic, Browser, NativeScript, Expo, React Native and Electron platforms.  We can use TypeORM with TypeScript and JavaScript (ES5, ES6, ES7, ES8). TypeORM is highly influenced by other ORMs such as Entity Framework, Hibernate, Doctrine. To generate model using TypeORM from existing database we need to install typeorm-model-generator. To
2135
Views
Pagination in react by react-paginate

Pagination in react by react-paginate

react-paginate is a ReactJS component to implement pagination to react js project. By installing this component and writing only a little bit of CSS code we can accomplish pagination. Installation: to Install react-paginate with npm please run the following command in terminal$ npm install react-paginate --save Usages: To use this feature we need to import it in top of our class as likeimport
2336
Views
Usages of PHP date, strtotime and mktime functions

Usages of PHP date, strtotime and mktime functions

To customize date and time PHP provides us some important functions such date, strtotime and mktime. In this post i will demonstrate some usages for these functions. Example 1: Get year start and end date for the current year we can use $yearStart = date("Y-m-d", strtotime('this year January 1st')); $yearEnd = date("Y-m-d", strtotime("this year December 31st")); Example 2: Get month start a
3027
Views
php export csv utf 8

php export csv utf 8

While generating a CSV using PHP sometimes we stumbled upon one common problem  where any special character like £ becomes ASCII in generated CSV file,  the reason behind this is the encoding of generated CSV is wrong and  we need to output CSV in UTF8 format, so we will be able to use special ASCII characters in CSV file. Using example below we can encode UTF8 generated CSV file,  We ne
2193
Views
Yii2 Scenarios validate only create Action

Yii2 Scenarios validate only create Action

Yii2 model scenarios can be used differently. Lets say, we have a model as Customer Which can be used to store customer sign-in inputs, but it can be also used for the customer sign-up purpose. In different scenarios, Yii2 model can be used in multiple business rules and logic.the email attribute may be required during customer sign-up, but not required customer sign-in. Yii2 model uses the y
2373
Views
 Yii2 - Get Current Action ID in main.php

Yii2 - Get Current Action ID in main.php

Yii2 web application project, sometimes we need to current controller ID, action ID. Specially when we need role based access control, we need to check the controller ID as well as action ID. Using Yii2 view context api we can get these data. for example if we need controller ID we can use below code $controller = $this->context->action->controller->id; if we need action ID only we can use as

Subscribe Us


Follow Us