Click to search Andy Jarrett.co.uk RSS feed

Loading Twitter

Googles Closure Linter

Style guides are a nice way of maintaining good code, even ColdFusion has one laying around albeit a little neglected nowadays anyone interested in looking over it with me?). Recently Google shared their Javascript coding guide which although is not earth shatteringly new it proves to be a great developer resource especialy if you work in a team of any size.

[More]

Comments Comments (1) | Print Print | Send Send | 352 Views

Visualize JSON

Working a little bit like <CFDUMP >, JSON Visualization allows you to quickly view your structures outline. Also from the left hand menu there are some basic options to manipulate/preserve the data futher.

If you want to test it out below is a block of JSON from Wikipedia

view plain print about
1{
2"firstName": "John",
3"lastName": "Smith",
4"age": 25,
5"address": {
6"streetAddress": "21 2nd Street",
7"city": "New York",
8"state": "NY",
9"postalCode": "10021"
10},
11"phoneNumber": [
12{ "type": "home", "number": "212 555-1234" },
13{ "type": "fax", "number": "646 555-4567" }
14],
15"newSubscription": false,
16"companyName": null
17}

Comments Comments (2) | Print Print | Send Send | 1312 Views

My blog has moved

Please update your bookmarks and feeds for my site.

I now have a Mango Blog at:

http://www.andyjarrett.com/blog

Feed URL: http://feeds.feedburner.com/andyjarrett

Comments Comments (0) | Print Print | Send Send | 1261 Views

Minify your Javascript and CSS

I've just came across scriptalizer.com which is well worth sharing with all.

This site takes your multiple CSS files or Javascript files and compresses them into just one file.

So your CSS goes from:

view plain print about
1<link rel="stylesheet" href="/style/longstylesheet.css" type="text/css" />
2<link rel="stylesheet" href="/style/anotherlongstylesheet.css" type="text/css" />

to:

view plain print about
1<link rel="stylesheet" href="/style/scriptalizer.css" type="text/css" />

Or your Javascript from:

view plain print about
1<script type="text/javascript" src="/js/jquery/jquery.js"></script>
2<script type="text/javascript" src="/js/jquery/jquery.form.js"></script>
3<script type="text/javascript" src="/js/myOwnScriptFile.js"></script>

to this:

view plain print about
1<script type="text/javascript" src="/js/scriptalizer.js" ></script>

Comments Comments (7) | Print Print | Send Send | 1684 Views

Eclipse local help system

Update: This appears to be on a different port for others. As Jax pointed out you can go: Eclipse, select Help -> Help contents to get there as well :o)

I was just going into some help files of Aptana when I came across the local address for the Eclipse Help system at: http://127.0.0.1:58041/help/index.jsp

In there was a wealth of information I just didn't know was on my hard drive ... though I suppose it depends on what plug-in's you've got installed but for me I had:

[More]

Comments Comments (2) | Print Print | Send Send | 3836 Views

Javascript form validation

If any of you have used 's validation along with your own validation you know how buggy it can be. Though even if you have been lucky to not of had that experience you should now be aware of the limitations. Either way i HIGHLY recomend qForms from Pengo works for all your form field validation. The documentation is also well worth a good read and not just a skimming over.

Comments Comments (0) | Print Print | Send Send | 1426 Views

BlogCFC by Raymond Camden + Twitter @AndyJ + ColdFusion jobs + Contact Me + Snippets/Downloads + RSS .