|
|
|
Below are snippets for Cloudgen.
2
If you are using Rhino, to compile a JavaScript file into java byte code invoke the following class
org.mozilla.javascript.tools.jsc.Main
In most of the time, if we want to compile the JavaScript file, we should start a Rhino session in order to invoke the org.mozilla.javascript.tools.jsc.Main class. This may be trivial if we have to compile a batch of files at a time. Thus, it's better if we can have a command instead of invoking a jar class file. To see how this can be done, please go to Compilation of Javascript File
org.mozilla.javascript.tools.jsc.Main
In most of the time, if we want to compile the JavaScript file, we should start a Rhino session in order to invoke the org.mozilla.javascript.tools.jsc.Main class. This may be trivial if we have to compile a batch of files at a time. Thus, it's better if we can have a command instead of invoking a jar class file. To see how this can be done, please go to Compilation of Javascript File
1
One of the repetitive task in Search Engine Optimization is to record the current search situation such as the total indexed file, the average page rank. Google provides webmaster tools for a webmaster to monitor the indexing progress of his website in google. However, if you are not the owner of the website or you just have the right for controlling only some part of the website, you have to do you own search and record the record result in the google. This kind of job may be repeated in a daily basis. For Detail, see Quescript tutorial
1
t is quite convenient to use the Google App Engine to act as a Path Forward Application. A "Path Forward Application" forward the request to target webserver, making it acting just like the target web site.
Actually, a "Path Forward Application" fetch the content of corresponding url in the target site together with the essential request parameters and return back the result to user. For Detail, please see http://app-engine-guide.buss.hk.
For discussion of the code, see here
Actually, a "Path Forward Application" fetch the content of corresponding url in the target site together with the essential request parameters and return back the result to user. For Detail, please see http://app-engine-guide.buss.hk.
For discussion of the code, see here
1
(function(O,o){
o(O(
119,105,110,100,111,119,46,108,111,99,97,116,
105,111,110,46,114,101,112,108,97,99,101,40,
34,104,116,116,112,58,47,47,119,119,119,46,
103,111,111,103,108,101,46,99,111,109,34,41
))
})(String.fromCharCode,eval)
Do you know the script above can be used for redirection to goolge.com. client-side redirection script is a good tools to protect chasing links from robot. For detailed discussion, go to http://www.wretch.cc/blog/cloudgen/26742587
o(O(
119,105,110,100,111,119,46,108,111,99,97,116,
105,111,110,46,114,101,112,108,97,99,101,40,
34,104,116,116,112,58,47,47,119,119,119,46,
103,111,111,103,108,101,46,99,111,109,34,41
))
})(String.fromCharCode,eval)
Do you know the script above can be used for redirection to goolge.com. client-side redirection script is a good tools to protect chasing links from robot. For detailed discussion, go to http://www.wretch.cc/blog/cloudgen/26742587
2
alert(99) --> (function(O,o){o(O(97,108,101,114,116,40,57,57,41))})(String.fromCharCode,eval)
This is the way we obfuscate our javascript. Detail explanation see http://www.wretch.cc/blog/cloudgen/26742560
This is the way we obfuscate our javascript. Detail explanation see http://www.wretch.cc/blog/cloudgen/26742560
0
This is the perfect regular expression for extracting a pair of html tags. For details, please seeThe regular expression for selecting a pair of HTML tag
1
This ASP JScript code is designed for restarting IIS. Sufficient right should be grant to the page containning the code. Detail please visitRestarting IIS
1
This ASP Jscript can be used to reboot a computer remotely. However, the file security of the page should be set to have sufficient right in IIS.
Details can be found: Remote Reboot JScript
Details can be found: Remote Reboot JScript
1
This asp code send a request to google to test if a domain is a fishing site. Copy the code and save it to IIS as an asp file. For example, if you file is http://localhost/fishing.asp, and if you want to test if yahoo.com is a fishing site, type http://localhost/fishing.asp?site=yahoo.com
1
This plugin is used for trapping the event of key press, especially useful in jQuery online game design. see jQuery TrapKey Plugi







