How do you ensure API security and avoid data leakage
Ensuring API security and preventing data leakage is critical in any Salesforce integration. Whether you’re exposing or consuming APIs, you must follow best practices around authentication, authorization, encryption, data validation, and monitoring. Key Strategies to Secure Salesforce APIs & Prevent
Eclipse – Stop auto jumping to the file in project explorer (disable link with editor)
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
iFrames, Javascript events and IE problems
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
Connection Pool with Tomcat6 and Mysql
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 you web.xml add this before </web-app>: <resource-ref> <description>My DB Connection</description> <res-ref-name>jdbc/datasourcename</res-ref-name> <res-type>javax.sql.DataSource</res-type> <res-auth>Container</res-auth> </resource-ref> Java code to connect: Context
ORA-28001: the password has expired
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
Oracle Privileges to Import/Export data into any tablespace
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
Apache Config Steps – Run multiple domains on same ip
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
Generating ssh keys – steps
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
Send email using gmail in Perl
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=> ‘gmail password’); $mailer->mail(‘from@domain.com’);
Installing Perl Modules – Ubuntu
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
