CakePHP | Call to a member function schema() on a non-object

Author - Manju Kashyap
|
0 Comments
|


Error:
Call to a member function schema() on a non-object
File: /home/user/git/!defaultRepo!/Appname/lib/Cake/Model/Datasource/Database/Postgres.php

Line: 404

Description: I was trying to execute the following cake query to fetch the records:
$records = $this->find ( ‘all’, array Read more…

Stripe Signature Verification for Webhook urls using Spring

Author - Rita
|
0 Comments
|

Stripe payment gateway provides different webhook events like customer_created, customer_source_updated, customer_deleted and so on. By setting up our webhook urls to the events provided by Stripe, we can capture the Stripe event requests and can write our own customer code. Now there is a problem with security. If our url Read more…

Regular expressions to allow UTF characters through Jquery

Author - Parminder Kaur
|
0 Comments
|

Regular expressions provide a powerful way of adding validations to the web forms.

To allow UTF encoded characters (Letters) either UTF -8 or UTF -16 like Á á É é Í ÑÓ ¿ € ₧ å ∫ ç ∂´ƒ ©˙ ∆˚ ¬µ ˜ø π œ ® ß † ¨√ ∑ ≈ ¥ Ω ¡™ £ ¢¡™£¢∞§ ¶

Use Regex expression \p{L}

Here L stands for ‘Letter’ from any language. It includes all the utf encoded characters from all Read more…

Ubuntu | How to automatically mount the encrypted drive at startup of system?

Author - Navneet Kashyap
|
0 Comments
|

Solution: When you have a drive which is encrypted and password protected and you want the drive to be mounted automatically at startup below are the steps that you can use:

Step 1. Open the encrypted drive as you usually do and mount it to any location.

Read more…

Selenium | Unable to launch the latest Firefox browser 54.0 with Selenium 3

Author - Namisha
|
0 Comments
|

Problem: I was unable to launch the latest Firefox browser 54.0 with Selenium 3

Solution: Earlier I was using the Firefox version 43.0 and I was able to launch the Firefox properly with my selenium script. But recently I have updated my Firefox browser from 43 to latest Read more…

WordPress | Dynamic database prefix and wpdb

Author - Komal
|
0 Comments
|

SOLVING DATABASE TABLE PREFIX ISSUE IN WORDPRESS

When we create WordPress plugins then we generally need to create new tables for storing some data. As plugin should generally work on any WordPress site so it is important to keep in mind that the queries must work on all Read more…

Windows Azure | 2 ways to view deployed files on Azure Server

Author - Harleen Kaur
|
0 Comments
|

Two ways to see deployed app files on Azure server.

1. Azure scm
2. Ftp publish settings file.

1. Azure scm:

Azure has its service site scm where you can view your deployed files. For that you must have the azure credentials where the Web app is deployed Read more…

Heroku | Heroku cron jobs and CakePHP code

Author - Tanuj
|
0 Comments
|

Use Heroku cron jobs to run CakePHP code at fixed intervals of time.
Cron is a time-based scheduler used to run commands periodically at fixed intervals. Cron means time. It is used for scheduling repetitive tasks. In order to use it in Heroku, you just need to install the Read more…

Salesforce | Creating Customer Portal step by step

Author - Sahil
|
0 Comments
|

Create a new Salesforce customer portal:

1. Go to quick find box and type customer portal.
2. Click on customer portal settings.
3. Click edit and enable customer portal.
4. click save.

Now after enabling customer portal feature, we can create a customer portal:

=> Go Read more…

How to use image sprite in html

Author - Neelam
|
0 Comments
|

What is the importance of image sprite in html and how these Sprite images can be used in html and css?

Image sprite is a collection of different images put into a single image. Image sprites are are used in web pages to lower down the bandwidth and the page Read more…

Alternative Solution for Adding Horizontal Scrollbar to jQuery Datatable

Author - Ishpreet Kaur
|
0 Comments
|

Suppose have a data table as below:

Screenshot 1

HTML for table is:

<table id=”productsTable” class=”table table-striped table-bordered table-hover dataTable no-footer table-custom-style”>

<thead>

<tr>

<th>#</th>

<th>Product Name&lt Read more…

HTML | Show horizontal scroll bar on select list

Author - Kritika Sood
|
0 Comments
|

In one of our projects, we needed to add horizontal scroll bar on select list so that we could see the wider text of some values:

For that, I tried all the possible solutions to add horizontal scroll bar but none of them resolved my problem. I tried adding Read more…

FileZilla | A file with that name is already being transferred

Author - Shalini
|
0 Comments
|

FileZilla open/edit file error: A file with that name is already being transferred.

This error occurs when you remove queued file from the queue using the “Remove Selected” before download completion.

I was editing my code directly on server in some php files using the view/edit operation. For Read more…

Linux | Manage emails of Cron Jobs

Author - Navneet Kashyap
|
0 Comments
|

Stop sending cron job email notification & managing the notifications.

We mostly use cron jobs for recurring tasks like batch payments, server startup/shutdown, system updates etc. Most of the cron jobs send email notifications. If you want to stop those notifications or want to send notifications to Read more…

Salesforce | Skip focus from the input box on VF page

Author - Kiran Preet
|
0 Comments
|

We have a VF page containing apex:inputField which contains date value so it shows calendar whenever we focus on the inputField. The problem is it is the first inputField on the page so whenever we open the page by default, the focus goes on this particular field, therefore, it Read more…

Show Processing image on web page for Synchronous Ajax

Author - Ashish
|
0 Comments
|

Problem: When we fire a Synced ajax call it blocks all the other functionality of that tab of the browser and fires/executes other event or code only after the synced ajax gets back with its response. Also the code fires the ajax call very quickly that’s Read more…

Heroku | RabbitMQ Installation and Setup in Heroku

Author - Kritika Sood
|
0 Comments
|

Following are the steps to install RabbitMQ in Heroku App:

1. Install RabbitMQ (bigwig) on Heroku using find more add-ons like shown in the following screenshot:

2. Search for rabbitmq using search bar as shown in the screenshot below:

3. Click on RabbitMQ Bigwig from the search Read more…

Background Processes using RabbitMQ

Author - Kritika Sood
|
0 Comments
|

Whenever we need to execute a block of code which may take long time to run then instead of executing them in real time we can put this code in the background process as it may timeout if we wait for its completion in real time.

What is RabbitMQ?

RabbitMQ Read more…

AWS | Cloudfront for S3 using same domain name placed behind cloudfront

Author - Navneet Kashyap
|
0 Comments
|

How to set up a CloudFront for S3 bucket containing images for the website, using the same domain name that is already placed behind CloudFront.

1. Open CloudFront from a menu:

2.  Click Create Origin:

3.  Now, click in box and select the s3 bucket URL from this list. Click Read more…

Zoho | How to insert or update Zoho product in Shopify

Author - Webner
|
0 Comments
|

We can insert or update Zoho CRM product in shopify by creating a custom function in zoho. Below is the custom function which can create a product in shopify. We can invoke it when we create or update a product in Zoho:
void getProductData (int Product_id )
{
response_from_shopify=map();
requestHeader=map Read more…

‹ Prev page1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 Next page ›