Shared Hosting | Absolute location of a file

Author - Webner

If you want to access a file on a shared hosting server by specifying its absolute location it may not work. The reason is what we see on shared hosting as root folder actually may have more before it that is not visible to us for security reasons (as machine Read more…

Mobile App development | Flipper view not showing some images

Author - Webner
|
0 Comments
|

When mobile developers create an application, whether in Android or iOS, they often face challenge of mobile device fragmentation. Mobile device fragmentation in simple words means when an application is not able to run on some devices while it runs fine on others. One such problem developers encounter is where Read more…

Salesforce – To Fetch and process more than 50000 records

Author - Webner
|
0 Comments
|

To Fetch and process more than 50000 records in Salesforce

Problem

We want to fetch more than 50000 contacts and want to process them but are not able to do that due to salesforce Query limit.

Solution

Batch apex is Read more…

PHP Code | Connect to remote SFTP location on Windows

Author - Webner

We need to use the phpseclib library to connect to SFTP server:
$sftp = new Net_SFTP(‘www.webnersolutions.com’);
if (!$sftp->login(‘user_name’, ‘password’))
{
exit(‘Login Failed’);
}
$this->downloadfiles($sftp->nlist());
//to download all files on remote root folder Read more…

Amazon S3 and PHP | How to list only top level folders in a bucket

Author - Webner

Sample code:

$result= $client->listObjects(array(“Bucket” => $bucket,”Delimiter” => “/”));
$files = $response2->getPath(‘Contents’);
foreach ($result[‘CommonPrefixes’] as $object)
{
echo $object[‘Prefix’]’;
}

This will list only the top level folder. If we do not use delimiter with listObject function then it will give list of all the Read more…

Salesforce | How to recover data deleted by mistake

Author - Webner
|
0 Comments
|

Salesforce provides facility to create multiple copies of organization’s data in different environments for testing and training purpose without affecting the original data. Sandboxes are of three types – Configuration Only Sandbox, Developer Sandbox, Full Sandbox. Configuration only Sandbox is a read only sandbox containing objects, reports, dashboards etc having Read more…

Salesforce to Amazon S3 file upload – Heap Limit Exceeded

Author - Webner
|
0 Comments
|

How to resolve “Heap Limit Exceeded” error while uploading large files to Amazon S3 from within Salesforce.
Amazon Toolkit from Force.com has inbuilt classes and methods that facilitate connecting to Amazon S3 from Salesforce and uploading files to Amazon S3 from within Salesforce. For that we generally write a Read more…

How to get all the checked values from the Table view in iOS

Author - Webner
|
0 Comments
|

Table view is not like listview on which you can iterate over cells and get values. Tableview in iOS has reusable cells i.e. every time you scroll it, old cells don’t go up or down but the existing cells are reused to show new data. You can’t Read more…

Apache – Use a custom domain name instead of localhost

Author - Webner

By following these steps you can run your local machine’s website using a custom domain name instead of localhost:

1. Edit apache configuration file:

sudo gedit /etc/apache2/sites-available/000-default.conf

 

add ServerName property as follows (you can add it just below DocumentRoot, make sure DocumentRoot Read more…

How to display Courses on dashboard In Moodle/Totara

Author - Webner
|
0 Comments
|

To display any course on Dashboard of Administrator or a Student, Admin/Student must be enrolled with the course. Following are the steps for Administrator to enroll himself or some other user to a course in Moodle/Totara:

Open the course that you want to see on your Dashboard
Now Read more…

Providing technical support to Salesforce clients without their credentials

Author - Webner
|
0 Comments
|

When clients install managed package developed by us into their Salesforce Organization, if they face a technical problem and need us to debug our package in their Organization, we need their Salesforce login credentials. But most of the times clients do not want to share their credentials.

Solution to this Read more…

zoho creator | How to Lookup Specific Data from a CRM Module

Author - Webner
|
0 Comments
|

Lookup of a CRM module from Creator Form based on some criteria – One of our clients required lookup to Contacts module in Zoho CRM on a Creator form to select a contact. Lookup to Contacts module can be placed in a Creator form. But the Read more…

Safari downloading files in .csv.html format | Workaround

Author - Webner

Problem

In one of the software we are developing, we faced a strange problem in Safari browser on Mac machine. A link on webpage was provided to download a file in .CSV format (server side code written in CakePHP). In Safari, downloaded file was being given the extension Read more…

How to Remove Empty Objects From Array In CakePHP

Author - Webner

In CakePHP, to remove empty or ‘false’ values from an Array, use CakePHP’s static ‘filter’ method contained in ‘Hash’ class:

$sampleArray =
[
,
false,
true,
0,
[‘one, ‘two, ‘three’]
]
$sampleArray = Hash::filter($sampleArray);

Here’s the array after filter method call:
$sampleArray =
[
true,
0,
[‘one, ‘two, ‘three’]
]

 
Webner Solutions is Read more…

How to Optimize Layout for Different iOS Screen Sizes

Author - Webner
|
0 Comments
|

We were stuck on a problem with new auto layout interface while trying to adjust contents within the screen but changing the property for a single element was disturbing whole layout. Optimized layout was working only for one device for which we were testing the change in properties. For other Read more…

Zoho CRM Editions Comparison Table

Author - Webner
Editions

Free Edition
Standard Edition
Professional Edition
Enterprise Edition
CRM Plus Edition

Pricing Read more…

Zoho CRM Editions and Limitations

Author - Webner

What you cannot do in which type of Zoho CRM license
Zoho CRM is available in many editions and each edition has different set of features.  In this article we are trying to cover each edition and list corresponding key limitations. At the end we Read more…

SFDC Apex – Get list of all the file names from Amazon S3 bucket

Author - Webner
|
2 Comments
|

I have two buckets in AWS S3. For one of the buckets, code given below returns all the file names (more than 1000) but the same code returns only 1000 file names for 2nd bucket:
ObjectListing objects = s3.listObjects(“bucket.new.test”);
do {
for (S3ObjectSummary objectSummary : objects.getObjectSummaries()) {
String key Read more…

How to Recover Removed Files From 1and1.com Shared Hosting

Author - Webner
|
0 Comments
|

If you removed files from 1and1.com shared hosting server by mistake and you need them back then following steps can help you to recover a prior version of the lost files:

1) Log in to the 1&1 Control Panel using your Customer Read more…

Importance of Website for Business – Part 3

Author - Webner

In previous 2 posts in this series we covered benefits of having a website for your business and difference between Responsive and Non-Responsive website. We also shared some stats on how small business presence on Internet is going up.

In this third and final post of “Importance of Website 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