Wednesday, April 06, 2011

Great quote from Kung Fu Panda

you are too concerned with what was and what will be. Yesterday is history, tomorrow is a mystery, today is a gift, that's why it's called the present

Need to reference a JAR for your app in Tomcat 6.x?

One way is to place the JAR in the lib directory and then add the reference to the shared.loader property.

For example:

shared.loader=C:\Apache\Tomcat\apache-tomcat-6.0.32-windows-x86\apache-tomcat-6.0.32\lib\.jar

That was it...

Tuesday, March 29, 2011

Don't forgot about iptables if certain ports are blocked

Sometimes you might encounter a internal network configuration setup by your local network admins where certain ports are blocked.

If you can't access a certain port though and the network admins say everything is open you might want to see what iptables is doing.

I'd forgotten that iptables can limit certain ports from being used if you're trying to access you're Linux server from another server.

Here were some command I had to use to stop iptables and permanently disable it - if I needed to reboot my Linux box:


1006 netstat -ln -A inet
1007 ifconfig
1008 iptables --list
1009 /etc/init.d/iptables stop
1010 iptables --list
1011 chkconfig --list
1012 chkconfig --list | grep iptables
1013 chkconfig --help
1014 chkconfig --level 2345 iptables off
1015 chkconfig --list | grep iptables
1016 history

Friday, February 25, 2011

ATDD with Cucumber

Did a day long session exploring Cucumber for Acceptance Test Driven Development.

Seems pretty cool so far.

Seems we'll be using feature files to create scenarios and then coding step files in Java using Selenium with tie ins to cuke4duke libraries.


Tuesday, January 25, 2011

brazier, brassserie and brassiere

Easy to confuse these words. Especially if you hear them with the novice ear.

brazier - container for fire

brasserie - literally, a brewery in French, but in actuality, a more informal restaurant. Some put restaurant, then bistro and then brasserie and finally cafe...

brassiere - bra in French

Forvo makes it easy to learn the ways to pronounce these words too.

Monday, January 24, 2011

Tomcat should not be confused with the Apache web server

If it's been awhile since you've been in the Apache tool space you may have wrapped up Apache into Tomcat.

They're still a separate product offering and NOT bundled together. Wikipedia even mentions it here.

If you're looking for httpd.conf and configure files, those only are for the Apache web server, NOT in Tomcat...

I used the Apache server for a lot of Perl programs I wrote in the late 90s and early 00s; especially when I first started at Sun and had to maintain some legacy Perl scripts.

While I was an intern at Sun, Tomcat had been introduced by one of Sun's engineers and I began using it (in addition to JRun) for hosting JSP/Servlet applications.

Wednesday, January 19, 2011

Agile

There's a few tenets to agile programming/development.
  • Customer satisfaction by rapid delivery of useful software
  • Welcome changing requirements, even late in development
  • Working software is delivered frequently (weeks rather than months)
  • Working software is the principal measure of progress
  • Sustainable development, able to maintain a constant pace
  • Close, daily cooperation between businesspeople and developers
  • Face-to-face conversation is the best form of communication (co-location)
  • Projects are built around motivated individuals, who should be trusted
  • Continuous attention to technical excellence and good design
  • Simplicity
  • Self-organizing teams
  • Regular adaptation to changing circumstances

Maybe it should be made into a rhyme like, "Jack be nimble, Jack be quick...," just for easier memorization of some of the tenets.

That rhyme could be updated for agile methodologies!

Exploring ELK (Elastic) Stack for hack-a-thon

At my current gig, our group finally got to do hack-a-thon week and I joined a team project that tied together a few of the technologies I...