What is Heroku Command Line:
The heroku command-line tool is an interface to the Heroku Platform API and includes support for things like creating/renaming apps, running one-off dynos, taking backups, and configuring add-ons. It is generally installed in your local development operating system.
Installing Read more…
Base64 Encoding/Decoding with javax.xml.bind.DatatypeConverter in java 6 and 7.
Solution: javax.xml.bind.Datatypeconverter class is the built in class inside JRE. We don’t need any third party library as we need in case of Cipher encoding/decoding method. javax.xml.bind.DatatypeConverter Read more…
CakePHP Security Component is very useful and provides an easy way to enable very tight security in our application:
1. It can restrict which HTTP methods our application accepts.
2. It provides Form Tampering Protection.
3. It can force to require that SSL must be used.
4. It Read more…
How to create/edit Jquery Datatable dynamically?
<div class=”col-md-12 col-sm-12 col-xs-12″>
</table Read more…
In Selenium Webdriver script how to open a new browser tab and then switch between first browser tab and 2nd browser tab?
Solution: This is the script to achieve it, go through comments in the code to understand how the code works:
public static void main(String args Read more…
In Totara how to add custom HTML elements (checkboxes, input boxes etc) and then access the value selected by user on server side:
1. Adding custom elements.
2. Accessing values of custom elements.
Each problem is discussed below: Overview:
In Totara, for blocks, we have some Read more…
Problem: I want to enroll audience in course/program and I do not know that how we can enroll audience in course/program. To enroll audience in course/program, I have followed the below steps:
1.Click Audiences link. To click on Audience link go Read more…
Retrieve the list of objects from salesforce in iOS native mobile app
Description: Using the salesforce mobile iOS-native SDK we can retrieve the list of objects using “requestForDescribeGlobal” SDK method. This method will return the data of all the objects from your salesforce org.
In your Read more…
In our Shopify store we have an order creation webhook that points to a cakephp action URL. The action that webhook points to fetches the order data and then saves this to the database.
The problem that we were facing with this webhook was that it was getting invoked multiple Read more…
While fetching data from database, in SQL query I had ‘order by’ clause but the results were not sorted when the data was in alphanumeric form. The reason for this is that SQL sorts character by character from left to right. So it places c10 before c2 as 1< Read more…
Surprisingly, over 90% of the data in the world today has been created only in the last couple of years. With the revolution in mobile industry, social media networks, sharing of digital photos and videos online we are continuing to grow the world’s data at lightning speed. To manage Read more…
Let us take an example:
We have table employees with following fields:
id int primary key,
We have following records in the table:
(1, isha, amr);
(2, Hamlet’s, ghy);
(3, éhjj, amr);
2nd and 3rd records have special characters in their Read more…
You may receive receive error in Salesforce Data Loader Application about upgrade of TLS 1.1 or Higher. To resolve this issue follow these steps:
Step 1: Install latest version of Java.
Step 2: Goto setup in Salesforce > type Data Loader in Quick find and download and install the latest Read more…
Sometimes we have a choice to use <table> tag or <div> tag but there are many advantages of using <div> tag over <table> tags.
Firstly when browser loads a table it waits for entire table text to reach browser side so it Read more…
IT support has become important for every business company, no matter what is the size of business. Some companies do not tie up with any IT company for maintaining their IT infrastructure as they feel they can take care of it themselves (or Read more…
Steps to create a connection to a local postgres database in pgAdmin ||| :
1. Make sure PostgresSql and its components should be installed in ubuntu system.
2. Check what databases are available in postgresSql through terminal
3. Login to PostresSql server in terminal using following command:
sudo -u postgres psql
With Read more…
European characters like è é å ñ ü ,à, è, ì, ò, ù – À, È, Ì, Ò, Ù, ™, © ,• , ∑, α, β, «, » do not get inserted correctly in MySQL by default. To fix it, we need to change the character set (fixed collection of symbols) and collation (set of rules that determine how data is sorted and compared).
To insert and retrieve european characters change character set to utf Read more…
Suppose we want to have columns created_date and last_modified_time with default timestamp in any table in MySQL/Phpmyadmin.
Let us take an example of Students table.
Create table Students using following query :
CREATE TABLE students(
id INT AUTO_INCREMENT PRIMARY KEY ,
first_name varchar(20) NOT NULL,
last_name varchar(20) NOT NULL Read more…
To implement Internationalization, CakePHP will pick all your strings which start with “__(“ double underscore ) and generate a default file for you.
For Example: one of the strings defined in our project is as below:
echo __ ( ‘ Gift Cards Not available’ );
Replace all your normal string with (__ Read more…
In this post I will give an example of how to perform search with Selenium script on a webpage. Below is the screenshot of the webpage:
Code to automatically enter a keyword “paint” in the textbox and then click Search button (or enter key) is given below. Go through the Read more…