Quick reminder on CodeBox-ing
Every once in a while one of us logs on and would like to post some code... then we forget how to make it pretty, so here are some quick instructions for posting code here... (most of this is taken directly from the codebox plugin page.
In the "HTML" or code view of posting here in wordpress, add " <pre lang="LANGUAGE" line="1" file="download.txt" colla="+">" and then start coding (or paste your code in), when finished end it with a "</pre>" and you'll be set. I'm not sure if it's fixed or a bug or what, but if you are coding on the HTML tab, and put in your pre-tag and then switch to Visual, it'll break the pre-tag. So be careful with that... For options (parameters), use the following:
lang="LANGUAGE"-LANGUAGEis a GeSHi supported language syntax.file="download.txt"- Thefilewill create a code downloading attribute.line="N"- TheNis the starting line number.colla="+/-"- The+/-will expand/collapse the codebox.line,file,collais optional.
the GeSHi langs are:
- Actionscript
- ADA
- Apache Log
- AppleScript
- ASM
- ASP
- AutoIT
- Backus-Naur
- Bash
- BlitzBasic
- C
- C for Macs
- C#
- C++
- CAD DCL
- CadLisp
- CFDG
- ColdFusion
- CSS
- Delphi
- DIV
- DOS
- Eiffel
- Fortran
- FreeBasic
- GML
- Groovy
- HTML
- Inno
- IO
- Java
- Java 5
- Javascript
- LaTex
- Lisp
- Lua
- Microprocessor
- mIRC
- MySQL
- NSIS
- Objective C
- OCaml
- OpenOffice BASIC
- Oracle 8 SQL
- Pascal
- Perl
- PHP
- PL/SQL
- Python
- Q(uick)BASIC
- robots.txt
- Ruby
- SAS
- Scheme
- SDLBasic
- Smalltalk
- Smarty
- SQL
- T-SQL
- TCL
- thinBasic
- Uno IDL
- VB.NET
- Visual Basic
- Visual Fox Pro
- Winbatch
- X++
- XML
- z80 ASM
Enjoy...
Print This Post
httpSpy for Firefox!
This morning I stumbled onto a real treat for those developers that are using Firefox. Backstory: A while ago Ninja had suggested that we use a little program called "httpSpy" for debuging the header information that was being served/requested by our server/browser (very useful to find obscured links, what items are really being loaded on a page, and what connections are being secured). The problem is that while the program is awesome (and extremely hard to find as there are 3 or 4 variants on a google search that are all different), it only works with IE. Naturally, this is undoubtedly causing a shudder and a distinct feeling of betrayal to surge up from the depths of your soul
. The time of IE only debugging is at an end... Introducing "Live HTTP headers", a fantastic little tool that pops up in a different window that will show you your requests and let you resend them ( with some modifications) and logs everything being passed to and from the server/browser. While I haven't really played with it for more than a few minutes, it seems like a good tool, and I'd recommend throwing it in the arsenal.
Live HTTP headers - can be downloaded here (link goes to the mozilla add-on site, as I did not grab the xpi file). It also works with FFox3RC1
.
Print This Post
Weekly Training – Debugging
It's time to learn how to get the bugs out. This week we covered basic debugging (from starting the server) to using some external tools (such as the fantastic Firebug plug-in). For the full show you can check the audio clip at the end (I'll post it when I'm done 'cleaning' it).
Highlights:
- Rational debugging mode
- Firebug (for both CSS editing and javascript debugging)
- Drew's fantastic commentary as nothing works the way he intends (for the first 20-ish minutes)
- My extremely long pause... that I think I may still be on.
On a side note, there are two other tools that are very helpful when trying to debug or develop on IE, Safari, Linux browsers, etc. They are XRAY and Aardvark, and both are bookmarklets (meaning you bookmark the javascript itself and run it when you need it, similar to a bookmark).
XRAY can be found here http://www.westciv.com/xray/.
Aardvark can be found here http://karmatics.com/aardvark/bookmarklet.html.
Audio clip will be here when I'm done editing it... UPDATE: Or it won't, looks like my sansa destroyed the file, I mean it's still there, just not in a format that any program can read... I may still play with this, but I'm thinking it's a lost cause... sorry
Print This Post