Hard Reset / Rebooting a Soekris Net 5501
May 5th, 2008
If you have a Soekris Net5501, sometimes they will not reboot when you tell them to. Hanging just after the memory test. Here is how you force them to reboot.
Read the rest of this entryTip #15 - Read Other People's Code
April 26th, 2008
It is a great tip, and one I do fairly often, go download some code and read it until you understand it.
Read the rest of this entryTip #14 - Custom Error Messages in Validations
April 23rd, 2008
If you use Rails, you sometimes get a situation where the custom error messages just don’t work, here is how you can fix it…
Read the rest of this entryTip #13 - BangBang Transformations!
April 22nd, 2008
Ruby is marvelous, everything evaluates. Which means a lot of the time, you can get away with things like ‘if @user…” and just depend on the existence of the @user var. But what if you just really need a Boolean true or false? Here is a little pattern you can use to do this…
Read the rest of this entryTip #12 - HTML and HTTP are Your Friends
April 21st, 2008
What is an <em> tag? How do you manually make a select box? What about a multi value select box? Do you know the difference between a <submit> tag and a <button> tag? Can you hand code a form to make a restful post to one of your Rails controllers? If you can’t do all the above with plain HTML and no rails helpers or don’t know the difference between a GET and POST request and when you use either, then you need to read on. If you can, feel free to skip to the next section.
Read the rest of this entryBloggers Unite
April 20th, 2008
This year on May 15th there is going to be a world wide bloggers unite on the subject of Human Rights.
This is a great opportunity to raise public awareness on the subject of Human Rights. We all have them, but in the modern world of pending global governments (which I think are just another way to remove power from the people) It is time for all of us to become away of what it means to be living on this planet, what it means to be a member of this society, what it means to have a family and what it means to just be you.
Read the rest of this entryTip #11 - Transact Your Migrations!
April 19th, 2008
If you are using Rails, you are most likely using migrations. Have you ever had a migration fail half way through? Have you ever then had to figure out how to find each change and revert it in the database? Would you like to never have to do that again? Here is how…
Read the rest of this entryTip #10 - The Ruby Language
April 18th, 2008
Learning Rails is hard enough without also facing the task of learning Ruby at the same time. Here I go over some of the must knows in Ruby so that you get some basic understanding of how to do Rails.
Read the rest of this entryApple Release the APPLE-1 - Upgradable to 32k (When Available)
April 17th, 2008
I know it is a bit late, and all the other cooler technology blogs have already covered this…
Read the rest of this entryTip #9 - Learn Programming Theory
April 17th, 2008
Being a Rails developer means that, yes, you too need to learn how to (gasp) program! No, seriously! Here are my tips on that subject.
Read the rest of this entryTip #8 - Must Know Facets of Ruby on Rails
April 17th, 2008
Sometimes it is easy to forget that when you take the plunge to learn something as encompassing as ruby on Rails, you forget just how MUCH you need to learn, and it can all seem a bit overwhelming at first. Here is a good way to go about learning it.
Read the rest of this entryTip #7 - Shell Shortcuts You Should Know and Love
April 17th, 2008
Face it, you use Ruby, you use Rails, you are going to use the shell, either in the console or directly, here are some shortcuts I can’t live without.
Read the rest of this entryPostgreSQL on Windows - Startup Errors
April 16th, 2008
If you are using PostgreSQL on Windows and you get: FATAL: pre-existing shared memory block is still in use Or you get: HINT: Check if there are any old server processes still running, and terminate them. errors, here is how you fix it.
Read the rest of this entrySo, in the last two tips, I have shown how to check the format of the email and save the actual address only in the database. But how to check that the email domain name is valid? Easy!
Read the rest of this entryTip #5 - Cleaning Up an Email Address with Ruby on Rails
April 15th, 2008
So you have an email address field on a form in Rails, but how are you going to make sure that all those users enter a sane and well formatted email address? Here is a simple fix to that problem.
Read the rest of this entry