Free online mini dictionary

mini dictionary is a bookmarklet with some simple tools you can use on any website.

To Install

For IE Browser (version > 6.0)

  1. Drag this to your bookmarks bar (favorites bar or links bar): mini dictionary
  2. Select the following code then press Ctrl+C
    javascript:(function(){function%20loadScript(a,b){var%20c=document.createElement(’script’);c.type=’text/javascript’;c.src=a;var%20d=document.getElementsByTagName(‘head’)[0],done=false;c.onload=c.onreadystatechange=function(){if(!done&&(!this.readyState||this.readyState==’loaded’||this.readyState==’complete’)){done=true;b()}};d.appendChild(c)}loadScript(‘http://ajax.googleapis.com/ajax/libs/prototype/1.6.1.0/prototype.js’,function(){loadScript(‘http://www.usitd.com/wia/js/effects.js’,function(){loadScript(‘http://www.usitd.com/wia/js/dragdrop.js’,function(){loadScript(‘http://www.usitd.com/wia/js/bm.js’,function(){test()})})})})})()
  3. Right-click on the bookmark made in step 1 and select “Properties”. In the “URL” field of the “Web Document” tab, press “Ctrl-V” to paste the copied link. Press “OK” to finish.

For Other Browsers

  1. Drag this to your bookmarks bar: mini dictionary

To Use

  1. Go to a website.
  2. Click the “mini dictionary” bookmark.
  3. Double-click on any word on the page, and a mini dictionary will pop up.
  4. Click anywhere outside of the pop-up to close the mini dictionary.

Leave a Comment

position:relative and overflow in Internet Explorer

I’ve been working on this layout that had a relatively positioned element inside a container with overflow. Everything looked good until I switched to IE7 and noticed that my positioned element remained fixed.

To solve this, I added position:relative to the container. This seems to work for both IE6 and 7.

Leave a Comment

Alternate Row Color in Crystal Report

In “Section Expert” select “Color” tab, then select “Background color” and put the following code:

if RecordNumber mod 2 = 0 then Color(233,233,233) else crNoColor

Leave a Comment

Speed Firefox Up

1.Type “about:config” into the address bar and hit return. Scroll down and look for the following entries:

network.http.pipelining network.http.proxy.pipelining network.http.pipelining.maxrequests

Normally the browser will make one request to a web page at a time. When you enable pipelining it will make several at once, which really speeds up page loading.

2. Alter the entries as follows:

Set “network.http.pipelining” to “true”

Set “network.http.proxy.pipelining” to “true”

Set “network.http.pipelining.maxrequests” to some number like 30. This means it will make 30 requests at once.

3. Lastly right-click anywhere and select New-> Integer. Name it “nglayout.initialpaint.delay” and set its value to “0″. This value is the amount of time the browser waits before it acts on information it receives.

If you’re using a broadband connection you’ll load pages MUCH faster now!

Leave a Comment

Remote debug setting

set JAVA_OPTIONS=-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=8001,server=y,suspend=n

 

in IntelliJ IDEA:

  1. add new Configurations – Remote
  2. change the port to 8001

 

 

Leave a Comment

Reset record number by group in Crystal Report

numberVar numSlno = 0;

IF PREVIOUSISNULL({PAC_METRIC_SUMM_PROCESS_TIME_PACPROC.SEC}) THEN
numSlno := 1
else IF Previous ({PAC_METRIC_SUMM_PROCESS_TIME_PACPROC.SEC})<>{PAC_METRIC_SUMM_PROCESS_TIME_PACPROC.SEC} THEN
numSlno := 1
ELSE
numSlno := numSlno + 1

Comments (2)

View Ajax Souce Code

IE:

  1. Create a bookmark in the browser
  2. Copy the following code in the url
    javascript:’<xmp>’ + window.document.body.outerHTML+ ‘</xmp>’
  3. Every time you want to see the page source code including Ajax, click it.

FireFox:

Select the content and “View selection source”

Leave a Comment

Data folder for MySQL 5.1

It is in my.ini.

C:\Documents and Settings\All Users\Application Data\MySQL\MySQL Server 5.1\data

Comments (4)

Setting privileges for executing stored procedures in MySQL

GRANT EXECUTE ON PROCEDURE yourdbname.sp_yourspname TO theuser@’localhost’;
GRANT EXECUTE ON FUNCTION yourdbname.fn_yourfunctionname TO theuser@’localhost’;

use mysql
GRANT SELECT ON mysql.proc to theuser@’localhost’ IDENTIFIED BY ‘paswd’;
GRANT SELECT ON mysql.func to theuser@’localhost’ IDENTIFIED BY ‘paswd’;

FLUSH PRIVILEGES;

Leave a Comment

SEVERE: Error listenerStart

When you start tomcat server and get the error “SEVER: Error listenerStart”… “SEVERE: Context [/xxxxxxxxxx] startup failed due to previous errors”, it is because you have multiple apps under webapp/ folder. You need add the following lines in every app’s web.xml

<context-param>
<param-name>webAppRootKey</param-name>
<param-value>xxxxxxxxxx.root</param-value>
</context-param>

It is Log4jWebConfigurer’s requirement…

http://opensource.objectsbydesign.com/spring-1.1.4/org/springframework/web/util/Log4jWebConfigurer.html

Leave a Comment

Older Posts »