Tech Rocks

Coldfusion
Java
JQuery

An online resource for latest web technologies like Coldfusion, JRun, Pro*C, JQuery, HTML5, PHP, W3C, Java, J2EE, C, C++, ORACLE, PL/SQL, MySql, Ajax, Coldbox, Fusebox, UNIX, JavaScript, NodeJS and much more... contact@tech-rocks.org

Tuesday, December 17, 2013

Enabling SSL on the ColdFusion

Open a command prompt.

 

Execute the following command:
cd C:\ColdFusion8\runtime\jre\bin

Create the keystore with this command:
keytool -genkey -dname "cn=127.0.0.1, ou=CF, o=jeetu, L=Decatur, ST=GA, C=US" -keyalg rsa -keystore mykey

 

If you have previously configured a keystore you might run into this error:
keytool error: java.lang.Exception: Key pair not generated, alias already exists

If you got the “already exists” error run this command to list the keystores:
keytool -list -v | more

If you got the “already exists” error run this command to delete the keystore:
keytool -delete -alias mykey

If you got the “already exists” error re-run the command to create the keystore.

 

Enter in a password when prompted (2 times)

 

Move the keystore file (mykey) to C:\ColdFusion8\runtime\lib\

 

Edit the config file C:\ColdFusion8\runtime\servers\coldfusion\SERVER-INF\jrun.xml with an xml editor of choice. This file is VERY sensitive so be sure to not screw up the syntax of it. You should probably make a copy of it before you edit it.


<!-- Uncomment this service to use SSL with the JRun Web Server
Note that you MUST create your own keystore before using this service -->
<service class="jrun.servlet.http.SSLService" name="SSLService">
<attribute name="enabled">true </attribute>
<attribute name="interface">* </attribute>
<attribute name="port">9100 </attribute>
<attribute name="keyStore">{jrun.rootdir}/lib/mykey </attribute>
<attribute name="keyStorePassword">mypassword </attribute>
<attribute name="trustStore">{jrun.rootdir}/lib/trustStore </attribute>
<attribute name="socketFactoryName">jrun.servlet.http.JRunSSLServerSocketFactory </attribute>
</service>


Restart the ColdFusion application service.

 

Create a test page in the ColdFusion 8 wwwroot and opening it in a web browser using: https://127.0.0.1:9100/testpage.cfm

Wednesday, November 27, 2013

Google Chrome vs Chromium

Google Chrome Chromium Notes
Logo Colorful Blue
Crash reporting Yes, if you turn it on None Please include symbolized backtraces in bug reports if you don't have crash reporting
User metrics Yes, if you turn it on No
Video and audio tags AAC, MP3, Vorbis and Theora Vorbis and Theora by default May vary by distro
Adobe Flash custom (non-free) plugin included in release supports NPAPI plugins, including the one from Adobe
PDF support custom (non-free) plugin included in release downloads and displays with system PDF viewer The Chrome PDF plugin uses 3rd-party non-free code; no Free Software PDF plugin exists that supports all the PDF features we'd like (such as filling in forms). :(
Code Tested by Chrome developers May be modified by distributions Please include distribution information if you report bugs
Sandbox Always on Depending on the distribution (navigate to about:sandbox to confirm)
Package Single deb/rpm Depending on the distribution
Profile Kept in ~/.config/google-chrome Kept in ~/.config/chromium
Cache Kept in ~/.cache/google-chrome Kept in ~/.cache/chromium
Quality Assurance New releases are tested before sending to users Depending on the distribution Distributions are encouraged to track stable channel releases: see http://googlechromereleases.blogspot.com/ , http://omahaproxy.appspot.com/ and http://gsdview.appspot.com/chromium-browser-official/
Google API keys Added by Google Depending on the distribution See http://www.chromium.org/developers/how-tos/api-keys

Monday, November 11, 2013

URL Encoding Codes

Character

Character Name

URL Encoding

ASCII

 

Space

+ or %20

32

a-z

Lower case letters

-

97-122 (&61-&7A)

A-Z

Upper case letters

-

65-90 (&41-&5A)

0-9

Numbers

-

48-57 (&30-&39)

`

Accent Grave

%60

96

~

Tilde

%7E

126

!

Exclamation

%21

33

@

At

-

64 (&40)

#

Number Sign

%23

35

$

Dollar Sign

%24

36

%

Percent

%25

37

^

Circumflex

%5E

94

&

Ampersand

%26

38

*

Asterisk

-

42 (&2A)

(

Open Parenthesis

%28

40

)

Close Parenthesis

%29

41

-

Hyphen

-

45 (&2D)

_

Underscore

-

95 (&5F)

=

Equals

%3D

61

+

Plus

%2B

43

\

Back Slash *

%5C

92

|

Bar

%7C

124

[

Left Bracket

%5B

91

]

Right Bracket

%5D

93

{

Left Brace

%7B

123

}

Right Brace

%7D

125

;

Semi-colon

%3B

59

:

Colon

%3A

58

'

Single Quote

%27

39

"

Double Quote *

%22

34

,

Comma

%2C

44

.

Period

-

46 (&2E)

<

Less Than

%3C

60

>

Greater Than

%3E

62

/

Forward Slash

-

47 (&2F)

?

Question Mark

%3F

63