Building real-time chat app using WebSockets with AWS API Gateway and Lambda
We can build many real-time applications such as chat applications, multiplayer games, financial trading platforms, and collaboration platforms using WebSockets with AWS API Gateway, Lambda, and dynamoDB. In this blog we will learn how to build real-time applications using WebSockets
MySql | Show only columns as rows which have specific value
Sometimes, we want to show only those columns which have specific value. Let’s assume we have following table : In the above table, value of 1 in a column represents that corresponding service is provided by organization and 0 represents
CakePHP | Get user profile information through Gmail API (2.2.0)
Steps to extract user profile information through Gmail API (2.2.0) in CakePHP: 1. Set up developer test account inside google API developer console: Use https://console.developers.google.com/ link to open developer console. Add new project inside your developer console and enable the
WordPress | How To Add Custom Color Picker in WordPress Custom Options Panel
While building options panel in functions.php of your child-theme, we can create our custom color picker without using any plugins. We have to follow these steps and for this color picker : 1. Add Canvas <canvas id=”image_canvas” width=”246px” height=”210px”></canvas> 2 .
Salesforce | Roll back changes or delete unused classes/triggers from Production
There are two most common ways to revert your changes back to Salesforce sandbox from production: 1.) Force.com IDE 2.) Salesforce Migration tool (ANT) Using Force.com IDE : If you are already using force.com IDE then you can go for
Some Useful Features from jquery and Html5
1. Data attribute : This is the new attribute in html5. Using data attribute we can store custom data in any of the html elements. Data attribute consists of a prefix “data-” and a unique name appended to the prefix.
CakePHP | Date format translation using internationalization
In Cakephp, To translate the application language into another, we use internationalization and localization. To display the correct translated date string on change of locale, we need to use right classes. use Cake\I18n\I18n; use Cake\I18n\Time; I18n::Locale(‘es’’); // es locale is
Moodle | Totara | Create bulk enrollments from command line
1. Go Home ► Site administration ► Development ► Debugging and set Debug messages with “DEVELOPER: extra debug messages for developers”. 2. Create a testcourse.bash file in root directory with : for i in {1..100} do var=”Course_from_script_$i” echo $var php
MySql Multi-table Join Query using Cakephp 3
Below is a mysql query joining three tables. SELECT c.course_path, t.sf_name FROM courses c JOIN modules m ON c.id = m.course_id JOIN topics t ON m.id = t.module_id WHERE t.topic_name = ‘test_topic’. This Query will return Course_path and Sf_name from
How to create Subscriptions in cybersource Payment Gateway
Basically subscription in Cybersource is the customer profile that holds its details like customer details, billing and shipping details, customer payment information like card type, expiration date, account number etc. We have to pass all these details to Cybersource with
