October 13, 2009 at 7:38 pm
· Filed under JavaScript
mini dictionary is a bookmarklet with some simple tools you can use on any website.
To Install
For IE Browser (version > 6.0)
- Drag this to your bookmarks bar (favorites bar or links bar): mini dictionary
- 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()})})})})})()
- 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
- Drag this to your bookmarks bar: mini dictionary
To Use
- Go to a website.
- Click the “mini dictionary” bookmark.
- Double-click on any word on the page, and a mini dictionary will pop up.
- Click anywhere outside of the pop-up to close the mini dictionary.
Permalink
September 3, 2009 at 7:56 am
· Filed under Browser, css
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.
Permalink
August 27, 2009 at 8:25 am
· Filed under 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
Permalink
August 15, 2009 at 8:37 am
· Filed under Browser
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!
Permalink
June 22, 2009 at 7:41 am
· Filed under Java Appication, Uncategorized
set JAVA_OPTIONS=-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=8001,server=y,suspend=n
in IntelliJ IDEA:
- add new Configurations – Remote
- change the port to 8001
Permalink
May 7, 2009 at 8:10 am
· Filed under 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
Permalink
April 15, 2009 at 12:15 pm
· Filed under JavaScript, html
IE:
- Create a bookmark in the browser
- Copy the following code in the url
javascript:’<xmp>’ + window.document.body.outerHTML+ ‘</xmp>’
- Every time you want to see the page source code including Ajax, click it.
FireFox:
Select the content and “View selection source”
Permalink
February 21, 2009 at 4:54 pm
· Filed under mySQL
It is in my.ini.
C:\Documents and Settings\All Users\Application Data\MySQL\MySQL Server 5.1\data
Permalink
December 11, 2008 at 9:56 am
· Filed under 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;
Permalink
October 25, 2008 at 6:48 pm
· Filed under Java Appication, Tomcat
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
Permalink
Older Posts »