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…

Android Jumble Challenge

Author - Webner
|
0 Comments
|

Jumble Challenge has seen a really good start with more than 115 downloads in initial few days of launch. If you like to unjumble words this is the game for you. With 3 different levels Jumble Challenge is ideal for kids, young and experienced alike. Jumble Challenge is absolutely free Read more…

mongod cannot execute binary file

Author - Webner
|
0 Comments
|

mongod: cannot execute binary file

Most probable reason – you are using 64-bit mongodb, switch to 32-bit for quick solution….or find the compatible 64 bit package

apt-get install subversion – Package subversion is not available

Author - Webner
|
0 Comments
|

On Ubuntu:
$apt-get install subversion
Reading package lists… Done
Building dependency tree
Reading state information… Done
Package subversion is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or is only available from another source
Read more…

WordPress paste/type – how to avoid double space

Author - Webner
|
0 Comments
|

Use + Key instead of just Read more…

SCEA 5 – My 2 cents

Author - Webner
|
0 Comments
|

I recently became SUN certified Enterprise Architect after clearing all 3 parts of SCEA. It is hard to get answers to all questions one may have regarding SCEA but SCEA forum on javaranch.com is great!! I have shared my experience here for each part to help SCEA seekers.

Part Read more…

Tomcat – java.lang.Unsupported Class Version Error: Bad version number in .class file

Author - Webner

This is because your class files were compiled with a Java compiler not compatible with JVM in use within tomcat. If you compiled on the same machine on which you have tomcat running, you must be having 2 JDKs (or a JDK and another JRE) with different versions. Solution to Read more…

Javascript – extract Year from Date

Author - Webner
|
0 Comments
|

If you want to extract the year from Date in Javascript, try getFullYear() method instead of getYear(), see the output below on Firefox and Chrome:

Here’s the code:
<html>
<head>
<script langauge=”javascript”>
var date1 = new Date();
var browser Read more…

MuleStudio – No option to Create New Mule Project

Author - Webner

installed MuleStudio community edition on Ubuntu 11.04. MuleStudio was starting but showed no option to create new Mule Project. Since I have multiple versions of JDK installed, so before starting mule studio I was explicitly exporting JAVA_HOME to point to JDK 1.6 in same terminal window from which Read more…

Dravid

Author - Webner
|
0 Comments
|

Legendary Indian cricketer Rahul Dravid announced his retirement from international cricket today. Although Rahul Dravid is a cricketer, his influence over those who watched him in last 16 years of his career goes beyond that of a sportsman.

Cricket is a game but like any other game, performance and politics Read more…

Online Certifications

Author - Webner
|
0 Comments
|

StudySection.com is the only site which gives you a chance to get certified online in just 30 minutes. Tests on all subjects are absolutely free with unlimited re-attempts. THE CERTIFICATION CENTER for online certifications. Get certified today!
http://www.studysection.com

‹ 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 ›