Author Archive

How to Solve This Oracle Error ORA-28000: the account is locked

When I try to connect to my Oracle Database, I got this error message: ORA-28000: the account is locked The easiest solution for this ORA-28000 issue is simply execute this SQL as SYSDBA from SQL Plus or any other SQL Editor: alter user <username> account unlock; Don’t forget to change the bold part <username>.

How to Add Virtual Directory Alias on Apache Xampp

Do you want to create some alias or you can call it virtual directory on Apache Xampp? I’m using Windows Xampp as an example here. If you’re using Linux, you just need to adjust the path. Why do you need an alias or virtual directory? Supposed you have installed Xampp on some directories, like:

How to Update Squidoo Lenses (Semi) Automatically using iMacros for Firefox

Due to Squidoo Terms of Service violation, this post has been taken down forever.

How to Solve XPCOMGlueLoad Error – Couldn’t load XPCOM – Mozilla Firefox – Debian

When I started my newly upgraded latest version of Mozilla Firefox 13.0.1 on my Linux Debian 6, I got these error messages: XPCOMGlueLoad error for file /opt/firefox/libxpcom.so: libxul.so: cannot open shared object file: No such file or directory Couldn't load XPCOM. What I’m trying to do is quite simple. I just need to chmod

Unbound Classpath Variable M2_REPO in Eclipse

So here’s the situation, I just checked out new project from SVN (Subversion) and when I open up my Eclipse, there are lots of Java Build Path Problems. The error says something like this: Unbound classpath variable: 'M2_REPO/...' If you get those errors, it means you haven’t set M2_REPO variable in your Eclipse. How

How to Ignore Outdated Plugins in Google Chrome / Chromium

When I try to access some website that requires some plugin, e.g. Java, Google Chrome / Chromium is always check whether the plugin is updated or outdated. We’re recommended to always update the plugins whenever it’s available. But, in this case, I don’t want to update the Java plugin. So I decided to ignore

How to Monitor Squid3 Traffic using SARG in Ubuntu

I’ve installed proxy server using Squid3 on my Ubuntu. Now I want to know “where” my users are going to on the Internet. Therefore we need SARG – Squid Analysis Report Generator is a tool that allow you to view many informations about Squid users activities: times, bytes, sites, etc. First, we need to

How to Prevent Javascript Error When Using console.log in Internet Explorer

Whenever I code some Javascript, for debugging purpose I’m using console.log statement. It runs well on my Chrome and Firefox (with Firebug add-on installed). But when it comes to Internet Explorer, my script will throws some exceptions. The new version of Internet Explorer is bundled with Developer Tools (by pressing F12 button). When the

How to Deploy and Redeploy a Maven Web Application in Tomcat7

First, we need to set up a simple Maven web application as an example. mvn archetype:create -DarchetypeGroupId=org.apache.maven.archetypes -DarchetypeArtifactId=maven-archetype-webapp -DarchetypeVersion=1.0 -DgroupId=id.web.el -DartifactId=mywebapp -Dversion=1.0-SNAPSHOT By using above command, we have created a very simple Maven web application, named mywebapp. Then we need to edit the pom.xml file, located inside the mywebapp directory. Add these lines below,

How to Pass Function Name as Variable in Javascript

Imagine that we have a javascript function named functionCaller that accept function name as its parameter. Let’s call it callBackFunction. Then, from the inside of functionCaller, we will call the callBackFunction. function callBackFunction() { alert("I'm the callBackFunction.."); } var functionCaller = function(functionName) { functionName(); } functionCaller(callBackFunction); Look at how we call the functionCaller. Just