SVNAnt does not work
If using SVNAnt, make sure subversion is installed on the system. In case, there is a way to use SVNAnt without it please let me know.
Tech Tips and Tricks
If using SVNAnt, make sure subversion is installed on the system. In case, there is a way to use SVNAnt without it please let me know.
There are couple of ways to do so: Send a HTTP request To invoke a servlet that requires authentication, in addition to creating the URL object, you need to pass authentication cookies too. URL url = new URL(“http://blah”); URLConnection con Continue reading Invoke a servlet from a servlet
It has been more than an hour or so, I am unable to access gmail. I get the following error. I wonder what made this happen! Update: Found the problem what caused this mess on gmail’s blog
1. Create Database Backup: You can use mysqldump to create a simple backup of your database using the following syntax. mysqldump -u [username] -p [password] [databasename] > [backupfile.sql] [username] – this is your database username [password] – this is the Continue reading MySQL database backup and restore
Generate server key openssl genrsa -des3 -out server.key 4096 Create certificate signing request openssl req -new -key server.key -out server.csr Sign the certificate signing request with the server key openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt Continue reading Create self signing SSL Certificate
mod rewrite should be enabled on apache. Add the following to your apache config file. ######################################### #### XXX: BEGIN EDIT FOR MOD_REWRITE #### #### This is intended to force HTTPS #### #### for all inbound HTTP requests #### #### # Continue reading Force SSL on apache
If you are using xterm, open ~/.xsession file $ cd $ vi .xession Append the following line: xset b off Save and close the file. If you are using bash shell, open ~/.inputrc file $ cd $ vi .inputrc Append Continue reading Linux Disable Hardware Beep Sound For Terminal
In order to clean up the SVN checkout, you can do #deletes all .svn files/folders find . -name “.svn” -exec rm -rf {} \; OR #deletes all .svn folders find . -name “.svn” -type d -exec rm -rf {} \;
Using JNDI javax.naming.Context context = new javax.naming.InitialContext(); javax.sql.DataSource ds = (javax.sql.DataSource) context.lookup(“java:comp/env/jdbc/XXXJNDINAMEXXX”); java.sql.Connection con = ds.getConnection();
CWE-20:Improper Input Validation CWE-116:Improper Encoding or Escaping of Output CWE-89:Failure to Preserve SQL Query Structure CWE-79:Failure to Preserve Web Page Structure CWE-78:Failure to Preserve OS Command Structure CWE-319:Cleartext Transmission of Sensitive Information CWE-352:Cross-Site Request Forgery CWE-362:Race Condition CWE-209:Error Message Information Continue reading TOP 25 Most Dangerous Programming Errors