Archive for the 'Code' Category

Jul2

Update on some things

It’s obviously been a while since I’ve posted, so I wanted to provide an updated. I’ve been inured with too many things that have distracted me from my Rails project for a time, though I hope to return to it soon as I hope it will be profitable for me in more ways than […]

Continue Reading »

Filed in: Candor Code Rails Grails

Apr6

Rails Tip: Overriding Defaults in ActiveRecord

Have you ever wish you could tell Rails the name of the table that mapped to your model class?  Perhaps you want a model to represent a legacy table (which could be any table that already exists which is either too painful to recreate or over which you have no control).  Or perhaps you just […]

Continue Reading »

Filed in: Code Rails


Mar24

There’s a reason it’s called Paginating Find

I got tired of seeing the deprecation warnings about the old Rails pagination helpers, so I decided to seek out a better approach, but of course I wasn’t going to implement it myself.  With all of the skilled Rails pros out there, I had every intent of leveraging someone’s else’s success.
I succeeded, thanks to Ilya […]

Continue Reading »

Filed in: Code Rails

Mar24

Asserting a Rails controller response doesn’t contain certain content

I need to be able to assert that a response from a Rails controller doesn’t contain certain content, for example when the same action will respond to both GET and POST methods.  In my case I’m writing a register method in a LoginController and I want it to render the same view, but if the […]

Continue Reading »

Filed in: Code Rails


Mar23

Fixing broken functional tests on Rails scaffolding

I recently resumed work on a Rails project I started a few months ago only to find that some of the functional tests that Rails generated for some scaffolding code were failing. These tests were failing on a fresh checkout from Subversion, so it was obvious that I’d neglected to run the functional tests […]

Continue Reading »

Filed in: Code Rails

Nov18

How to Get JAD Java Decompiler Working in Ubuntu

The JAD Java Decompiler is a handy tool for Java developers, both for academic use and for recovering your own code on those (hopefully) rare occasions when you lose the source but have the .class files.
I used to use JAD via the Jadclipse plugin for Eclipse in Windows. I switched to Ubuntu a few […]

Continue Reading »

Filed in: Code


Nov10

Rails vs Django: New Project

I’m in the early stages of starting a new web application project for public use.  I’m currently trying to determine what language I want to use for the application.  Initially I considered Java, since I am a Java developer by profession.  But for the same reason I may choose not to use it.   […]

Continue Reading »

Filed in: Code

May22

Mac & PC Together

I recently bought a Mac Mini because I’ve wanted a Mac ever since Apple released Mac OS X and I’ve wanted one even more ever since they moved to the Intel platform. The Mini is an inexpensive way to get a Mac so I finally took the plunge (the $100 rebate from Micro Center […]

Continue Reading »

Filed in: Code


Dec15

YUI and Aptana

The Yahoo! User Interface Library (YUI) is a robust set of JavaScript controls and utilities for building interactive web applications. The library is released under the BSD license so it is free for use in all kinds of applications. Some of the available utilities include drag and drop, eventing, animation and a connection […]

Continue Reading »

Filed in: Code



 

Popular Categories

Grails Mac Rails Bible Code Coffee Candor

About

I’m a software engineer by day and even busier by night.  This blog contains my thoughts on subjects from the Bible to lines of code.  I write (and drink) Java, I’m learning Ruby and Rails and I read the King James Bible.  I’m hoping to move the country and buy a farm and stay home with my family to bring them up in the nurture and admonition of the Lord.