The concept of DevOps has been around for more than 10 years. It’s no longer viewed as a fancy buzzword or a passing fad—today, it’s a mainstream work culture that’s applied by millions of software developers around the world every day. Nevertheless, DevOps still has some rough edges especially around how businesses adjust their departments […]
Programming
PHP Image resize Example Using Intervention Image Library.
Today’s article we are showing, how to resize and upload an image in PHP using Intervention image library. As a web developer, you will have an encounter with image, upload and resize in various applications. Why is image resizing? As you know already speed is a key factor for the website ranking in Google. A […]
How to detect request type in PHP?
When you working with forms or APIs, you will have to use GET, POST, PUT or DELETE. So how to detect which type the form actually submit. By using below snippet you can detect the request type in PHP $_SERVER[‘REQUEST_METHOD’] For example if ($_SERVER[‘REQUEST_METHOD’] === ‘POST’) { // The request is using the POST method […]
What is Laravel Mass Assignment, Guarded or Fillable?
When you work with Laravel you may have heard Mass Assignment, Guarded or Fillable. In this article, we will go through each term in detail.
React native app examples
React native apps dominating in the arena of Hybrid mobile apps. There are a plethora of big establishments creates react native app for their mobile presence. Find below list for react native powered mobile apps. Facebook Facebook Ads Manager Instagram F8 Bloomberg Pinterest Skype Tesla UberEats Walmart Labs Wix.com Baidu Mobile Delivery.com Discord SoundCloud Pulse
Laravel Image Intervention Tutorial With Example
How to use Intervention Image in Laravel 5 with Example. In this tutorial we will show how to use Intervention image manipulation package in Laravel. Basically we use this package to upload an image and resize it in the server. Common use cases are upload users photo or upload a product image etc. Laravel Image […]
Tips For Building A Scalable Technology Stack
Technology and the way the world works is constantly evolving, and as a result, so are businesses. Nowadays, businesses are creating and maintaining several different web and mobile applications, and these require a well thought out tech stack to work. This tech stack comprises of a framework of different programs and pieces of software, that […]
Manually Install APK Files In Android Studio Emulator
This tutorial illustrates how to install the apk files manually in Android Studio Emulator.
How to remove file preview on the right side of Visual Studio Code Editor
Click on the View menu and look for Toggle Minimap, switch that off.
Add FTP/SFTP in Visual Studio Code
When you work with a PHP project, you want to upload a file to server time to time. Just imagine if you have the FTP in your code editor That’s what I am talking about. Follow the below instructions to add a FTP/SFTP in visual studio code editor. Search for the suitable extension in the […]
How to get all days and date for a given month?
This is to get all days and date for choosen month. Just follow the code to display all the dates for a month. $month = “07”; $year = “2018”; $startDate = “01-“.$month.”-“.$year; $startTime = strtotime($startDate); $endTime = strtotime(“+1 month”, $startTime); for($i=$startTime; $i<$endTime; $i+=86400) { $list[] = date(‘Y-m-d-D’, $i); } print_r($list);
Magento1: Get list of all Categories
In Magento there are many ways to get the categories. In this snippet we are showing different method to display categories.
Magento 1: How to get the Order Id from Shipping Tracking Id
How to get the Order Id from Shipping Tracking Id. This code would work only if the shipment has created.
Install Apache2, MariaDB, And PHP 7.1 (LAMP) On Ubuntu 16.04 LTS Server
In this article we are showing how to create a development environment for your PHP + MySQL projects. LAMP is acronym for Linux, Apache2, MariaDB, PHP. I would suggest LAMP stack for the development of powerful CMS such as WordPress, Drupal, Magento. So this tutorial make sure you have the development environment ready for your […]
Magento – get product id by sku
To get the product id from the SKU in magento1 $sku = 90909; // use your sku $productId = Mage::getModel(“catalog/product”)->getIdBySku( $sku );
10 Most Famous Software Programs Written In Python
Python is a incredible language to build web applications large scale or small scale. There are plenty of the websites or tools you use everyday is built on Python. If you are not a tech savvy person, you may not know that. Here are some most famous sites to use python and Django as a […]
How to Use reCAPTCHA in Laravel 5 Forms For Validation
There are plenty of options to prevent spam, but captcha is one of the best to use. When talking about captcha, the first thing will be in mind is weird characters seen on the online forms. Here we talk about Google’s Recapthca integration to your Laravel application.
Magento1:How to list all the products by a attribute value
In this tutorial we are showing how to list all the products related to a attribute value. For example you need to list out all those products with age group 3 year+. Required things are attribute code and attribute value ID. Let’s move to the source code that fetches all the products with in the […]
Magento1 :Programmatically add new customer address
Every developer does like to do things using programs. They don’t like the web interfaces made for common people. You can add customer address through a form located in your my account area. If you have bunch of address from an old system, it is not possible add one by one. Let’s add customer address […]
Magento 1: Delete Customer Address programatically
Have a look at this piece of code, which deletes the customer address based on the address ID in Magento.
Magento1: Getting thumbnail image of product from order
In this article I will show you how to get thumbnail of a product from order object.
Magento 1: How to get the country and region collection?
This article shows how to get the country list and region list in Magento1 and write to a select box. Get collection of all countries <?php $countryCollection = Mage::getModel(‘directory/country_api’)->items(); ?> <select name=’customer[country_id]’ > <?php foreach($countryCollection as $country) { ?> <option value=”<?php echo $country[‘country_id’] ?>” ><?php echo $country[‘name’] ?></option> <?php } ?> </select> Get country name […]
Magento1: How to get all addresses for a cusotmer based on email ID
In this article we are showing how to get list of billing address and list of shipping address based on customer’s email. $customer = Mage::getModel(‘customer/customer’)->loadByEmail($email); //Load the customer object using email foreach ($customer->getAddresses() as $address) { print $address->getFirstname(); print $address->getLastname() } You can get customer details based on customer ID, just use the below code […]
Get An Array of Country Names/Codes in Magento
$countryList = Mage::getResourceModel(‘directory/country_collection’) ->loadData() ->toOptionArray(false); echo “<pre>”; print_r( $countryList);
How To Start An E-commerce Store Using Magento
Gone are the days when Brick and Mortar used to be the only way of doing business. Now, more than ever, an ecommerce stores has become the way to go and almost everyone can now create an online store to market and sell their products and services. Though, the real question is: How to start […]
Get Uploads Directory Path in WordPress
The following code will print the uploads directory path in WordPress $upload_dir = wp_upload_dir(); print $upload_dir[‘baseurl’]; It will return the path of WordPress upload directory such as http://yourdomain.com/wp-content/uploads Basically this function will print a output like below You can write this as a function in your functions.php to retrieve the uploads directory path. function tp_wordpress_uploads_directory_path() […]
Redirect urls to HTTPS in Laravel 5
Modern internet equipped with more tools for security and easiness. Today we are learning how to redirect a url to HTTPS in laravel 5. So we are forcing the users to use https urls throughout application. We can use middleware for redirect all non-https urls to https url. 1) Creates a middleware, you can create […]
Codeigniter Insert Data into Database
In this tutorial we will learn how to post data from a form and insert in to a database table in Codeigniter. Following steps will explain you briefly how to insert data in to database table using Codeigniter. Here we go with an example of Employee database. Create a form to fill in employee details, […]
Create RSS Feed For Website Using PHP
You may have seen a button in many website says “subscribe to RSS”. What is mean by RSS?. Short for Really Simple Syndication or Rich Site Summary, using for interacting content online. Instead of checking back every day to any website to see any new content online, just subscribe to their RSS feeds. This will give […]
How to insert inline JavaScript in the footer of your page with WordPress
You can add inline JavaScript code in to the footer of the page by using hooks in functions.php. Open your functions.php file located in the current theme. Add the below code to functions.php.