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…

Importance of Website for Business – Part 2

Author - Webner

In our previous post in this series of articles explained the importance of having a website for your business.

In this post we will cover some more benefits of websites and features your website can provide in case you want to sell your products/services online. We will also go Read more…

Importance of Website for Business – Part 1

Author - Webner
|
0 Comments
|

Changing times need change in business strategies. Today’s business strategies and processes are far different from the strategies which were used in past. Earlier people used to rely on newspapers classifieds or references but now huge mass types it into Google search engine for their needs. There are many Read more…

Digital Signature using Zoho Creator

Author - Webner
|
0 Comments
|

Digital signatures/online signatures, as we all know, play a very important role in online industry. The simple idea of using a digital signature results in reducing the paperwork and saves time.

 Zoho Creator has provided “signature” feature for online signing of documents. In one of Read more…

YUI3 Panel background shading and position problems

Author - Webner
|
0 Comments
|

By default YUI3 assigns yui3-widget-mask class for background shading. To override that we need to change its style properties. Similarly for position of the panel, it can be changed by specifying position property of .yui3-panel class. These are the methods to accomplish this:

Y Read more…

Eclipse – Stop auto jumping to the file in project explorer (disable link with editor)

Author - Webner
|
0 Comments
|

When you switch among opened files in eclipse, project explorer moves to the currently active file (in left pane). This can be annoying several times. To disable this just make sure icon with double arrows in Project Explorer (top right of Project explorer – see image below) is not pressed (this Read more…

iFrames, Javascript events and IE problems

Author - Webner
|
0 Comments
|

Several hours wasted while debugging this. We have a, HTML page and within this page is a hyperlink to open another page in iFrame. While iFrame page is loaded we display WAIT message overlay on parent page so as to make that inaccessible. So wait message overlay is behind iFrame Read more…

Connection Pool with Tomcat6 and Mysql

Author - Webner

Inside $tomcat_home/conf/context.xml add this inside <Context>
<Resource name=”jdbc/datasourcename” auth=”Container” type=”javax.sql.DataSource” maxActive=”100″ maxIdle=”30″ maxWait=”1000″ username=”dbuser” password=”dbpwd” driverClassName=”com.mysql.jdbc.Driver” url=”jdbc:mysql://localhost:3306/exodus”/>
Now restart tomcat

Inside Read more…

ORA-28001: the password has expired

Author - Webner
|
0 Comments
|

That’s the error you get for oracle user for whom password is expired.

One Solution – Connect using sqlplus to set new password, you can even use the same password you had earlier.

$ sqlplus

SQL*Plus: Release 11.2.0.1.0 Production on Mon Dec 13 01:12:07 Read more…

Oracle Privileges to Import/Export data into any tablespace

Author - Webner
|
0 Comments
|

Generally we can have a single user with DBA rights to import/export (using imp/exp utilities) data into any tablespace instead of assigning these privileges to every user account.

Suppose you have an oracle user appdba. Grant DBA role to appdba and you can use this Read more…

Apache Config Steps – Run multiple domains on same ip

Author - Webner
|
0 Comments
|

Suppose you want to point abc.mydomain.com and mydomain.com to same machine/ip, but to different applications. There are multiple ways to achieve this (basically with same config settings but in different files). I am giving one way here that worked for me:

* Go to /etc/apache2/sites Read more…

Generating ssh keys – steps

Author - Webner
|
0 Comments
|

These are the steps:

Suppose you want to connect from machine X to machine Y as userme.

* login to X as userme
* At /home/userme run this command:

ssh-keygen -t rsa

This will generate 2 files in /home/userme/.ssh folder

id_rsa
id_rsa.pub

* open id_rsa.pub file and Read more…

Send email using gmail in Perl

Author - Webner
|
0 Comments
|

Here’s sample code to send email via Gmail SMTP server, which uses TLS (transport layer security):
#!/usr/bin/perl -w
use Net::SMTP::TLS;

my $mailer = new Net::SMTP::TLS(
‘smtp.gmail.com’,
Hello => ‘smtp.gmail.com’,
Port => 587,
User => ‘gmail userid’,
Password=&gt Read more…

Installing Perl Modules – Ubuntu

Author - Webner
|
0 Comments
|

Execute this command on a command line:
sudo perl -MCPAN -e shell
It will install CPAN if not already installed. Then it will take you to CPAN prompt.

On CPAN prompt, execute this command to install Perl module:
CPAN> install module name
For example 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 Next page ›
Send your message