C# – Convert output of a Web request into an object list

Author - Neha Mishra
|
0 Comments
|

WebRequest gives response in the form of Stream. In order to use it further in the form of c# object, I have used below code:

Sample code :

WebRequest requestHttp = WebRequest.Create(reqURL);
using(WebResponse responseHttpRequest = requestHttp.GetResponse()) {
Stream responseStream = responseHttpRequest.GetResponseStream();;
StreamReader reader = new StreamReader(responseStream);
string text = reader.ReadToEnd Read more…

Java | Achieving Immutability using Final keyword

Author - Rita
|
0 Comments
|

Problem: What is the difference between using the final keyword with a primitive versus an object? What is immutability and can final assure that?

Final: Final is a keyword in java which is used to make variable, methods, classes immutable. It means we can’t change Read more…

Docusign: Save docusign FormData in CSV

Author - Kiran Preet
|
0 Comments
|

Platform: DocuSign

Problem: How to download form data (i.e. Data filled by the client in docusign document) in csv?

Solution: For downloading the Docuform data as CSV file follow these steps:

1. Open your docusign account.

2. From the Documents page locate the Read more…

Cakephp 3.3 |How to execute script using Console

Author - Parminder Kaur

In Cakephp, console applications are useful in running background processes and can be run without access to web browser. The CakePHP console provides a framework for creating shell scripts.To run the cakephp functions, first of all create a shell to use in console.

For example, create a TestShell in Read more…

C# Salesforce.Common.ForceAuthException

Author - Neha Mishra
|
0 Comments
|

C# – Exception in salesforce login with valid credentials

Stacktrace :
Exception thrown: ‘Salesforce.Common.ForceAuthException’ in Salesforce.Common.dll
Exception thrown: ‘Salesforce.Common.ForceAuthException’ in mscorlib.dll
at Salesforce.Common.AuthenticationClient.d__1.MoveNext()

Description :
I am using oauth-rest api to login into salesforce. I have passed valid consumer key, secret Read more…

How to use Random Emails while testing Registration forms

Author - Webner
|
0 Comments
|

While testing Registration form, the best way is to use automation script rather than manual testing which is time consuming. Automated script helps to get better results in shorter time. Like we can generate random users with the script and test the form with multiple hits at the same time Read more…

Call to undefined function mcrypt_encrypt()

Author - Manju Kashyap
|
0 Comments
|

Error: Call to undefined function mcrypt_encrypt()

Description: In one of our project, I was trying to save a field value in encrypted format in the database, using PHP, which could be retrieved back to its normal value, where we need to display it.

So for that Read more…

AWS cli installation, configuration and stopping/starting EC2 machines

Author - Navneet Kashyap

Install the AWS CLI Using the MSI Installer (Windows)
Download the AWS CLI MSI installer for Windows (64-bit) click-here or directly access https://s3.amazonaws.com/aws-cli/AWSCLI64.msi.
Run the above downloaded MSI installer. Follow the instructions that appear:
The CLI installs to C:\Program Files Read more…

Correct way to post a form in cakephp 2.* with client side validation in JavaScript

Author - Kailash
|
0 Comments
|

If we follow cakephp rules to create a form then we can use cakephp inbuilt functionality like we don’t need to assign labels to form fields. Cakephp automatically creates a label for each form field also in case of update/insert validation error messages, the message is automatically shown Read more…

Overview of DevExtreme components

Author - Neelam
|
0 Comments
|

DevExtreme is a commercial application framework created by DevExpress. DevExtreme framework uses html5 and javascript code and targets today’s most popular smartphones and tablet devices. Devextreme supports both mobile application and web application.

In devextreme there are three flavors of the core functionality that we can use in our Read more…

Salesforce: Save docusign (PowerForms) FormData in Salesforce

Author - Kiran Preet
|
0 Comments
|

Problem: Get data filled by user from docusign FormData and pass it into Salesforce.

Description: We have docusign account integrated with Salesforce account. We want to use the functionality of power forms of docusign and get all the data filled by user in power form back Read more…

How to make the image background transparent using gimp editor

Author - Kajal Marwaha
|
0 Comments
|

There are two different ways for making the image background transparent in Gimp:

For white color background:

1. Open the required image in Gimp:

2. Go to layer > Transparency>color to alpha as given below in the screenshot:

3. Above steps makes the image transparent as Read more…

Anonymous Inner Classes in Java

Author - Richa
|
0 Comments
|

Using Anonymous Inner Classes in Java:

Before getting into the depth of Anonymous inner classes, let’s understand a bit about inner classes first. As the name implies, a class which is declared and defined inside another class just like a normal member function or variable is called Read more…

Java | Static and Non-Static Inner classes

Author - Komal
|
0 Comments
|

Static and Non-Static Inner classes:

Static Nested Classes:

Static Nested Classes are the static classes in Java which are created inside another outer class. As these are declared inside another class with keyword ‘static’, therefore they are treated like the static member of its outer Read more…

Slider Revolution Plugin : Stop slider on hover

Author - Webner
|
0 Comments
|

Sometimes Slider Revolution slider does not stop moving the slides even if the user is typing the data in the input box on the slides .

Solution : We can stop the Slider on hover or after some time in slider revolution plugin by following these steps:

1. Click on the Slider Read more…

Taking Database Backup And Moving that backup from one server to another using PHP

Author - Deepika
|
0 Comments
|

While working on two servers, we can take the backup of database on one server using mysqldump command in php.

Example :
exec(‘mysqldump –host ‘.$dbhost.’ –user ‘.$dbuser.’ –password=’.$dbpass.” “. $dbname.’ > ‘.$dbname.’.sql’);

After creating dump of database, user can move the dump database file from one server to another Read more…

Web crawlers, Robots.txt and Googlebot

Author - Navneet Kashyap
|
0 Comments
|

What are web crawlers?

Web crawlers are programs or scripts which search engines use to gather certain types of data from the websites and check links and update the indexes, so that search engines can show up-to-date results. Most of the search engines like Google and Yahoo, use Read more…

Scaffolding in CakePHP

Author - Ishpreet Kaur

Scaffolding in CakePHP

Application scaffolding in CakePHP is a technique that allows the developer to define and create a basic application that can create, retrieve, update and delete objects. Basically CRUD (create, Read, Update, Delete) data operations are common in most of the applications.

Scaffolding basically provides temporary structure or Read more…

Jquery | Check if image exists for the url created at runtime

Author - Harleen Kaur
|
0 Comments
|

Suppose a website page displays the list of subjects along with information and corresponding image. Html “div” with classname “.subjects” are generated dynamically in accordance with database records of subjects with custom attribute assigned as “data-subjectid” to each div which represents the unique id of each subject.

Suppose we Read more…

Add virtual field in cakephp 2.* in find methods

Author - Kailash
|
0 Comments
|

How to specify an extra field (not existing in the table) while fetching data from database using find method? Solution is explained below.

Assign value to virtual field before find function call:

$this->virtualFields[‘virtual_field_name’] = ‘any value’;

Use virtual field in find function:

$result = $this – > find(‘all’,
array(
‘fields’ => array 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 Next page ›
Send your message