Ruby on Rails Programming Tips

RoR and Text Editors Part-2

More on text editors that are used with RoR and we not discuss VIM or Vi Improved. Vim like Emacs is quite efficient and easy to use with RoR provided it is set-up properly. The nice about Vim is that it has the nifty way of highlighting syntax in ruby making it easy to trace and debug. It features advanced features such as having a selective command and insert mode with the first being the default mode upon startup. It is not a word processor so fonts and other word processor features are not to be expected.

TextPad
One of the quickest and easiest to use as a text editor for making RoR programs with straightforward interface and features mostly adept to windows users. Though considered a text editor it is capable of syntax highlighting, search , spell check and macro recording which makes it a choice of many developers.

ArachnoRuby
Is deployable on both windows based and Unix based systems and is considered to be the native editor of RoR. It was not too user friendly so it quickly lost favor of many developers who turned to the other specified editors for programming code.

September-Ruby on rails programming roundup

The news just kept showing every day, what a great Ruby on Rails for September. Since it was launched it was being supported and its just getting bigger and bigger. There are many list of programmers who featured Ruby on Rail (ROR), there are new blogs studies and resource tutorials or software.

Debugging Rails

gif_rails_debugging1.gif

You can always debug your application and get it back on the rails if ever it something goes wrong. You have to check the application log files. See to it that “tail –f” commands are running on the server.log and development.log. Rails will then show debugging and runtime information to these files and debugging information will also be displayed in the browser on requests from 127.0.0.1.

Using the Ruby logger class from inside your controllers, you can also log your own messages directly into the log file from your code like:

class WeblogController < ActionController::Base
def destroy
@weblog = Weblog.find(params[:id])
@weblog.destroy
logger.info(“#{Time.now} Destroyed Weblog ID ##{@weblog.id}!”)
end
end

On the High Rails with Ruby

Ruby on Rails (ROR) is the recent addition to the Internets DIY (Do it Yourself) Magic Kit. It is an open source web application development framework based on the Ruby Programming Language. Like its parent, it is highly user friendly, much simpler to learn & apply & has time proven outputs to justify its unearthed position in the market. If you have dreamt of putting up your website online with all that interactive thingies, now is the chance.

Buy your own domain & your web space. You can find a lot of cheap web hosting services online, after a small research of course. Find out the services they offer you, the bandwidth, the email accounts, the security features & so on. With a good & cheap web hosting services and Ruby on Rails to assist you, you can set up a cyber wonder in no time.

Though Ruby on Rails embodies a lot of libraries (like Prototype and others) developed in Javascript for Ajax, it is much simpler than Java itself. If you assume learning all the tricks & codes of core Java in a period of two months, Ruby on Rails will give you the same power in a couple of weeks, thanks to its easy to use “snippets”. Plus, the output can be derived in the globally acclaimed HTML & XML formats. The latest release (3.0.7) carries forward the “Convention over Configuration (CoC)” Legacy of the Rails Core Team. Thanks to the third party developers, many plug-ins have been devised for various platforms.

Maintenance is Important

Computers are essential today. If you work, in a company or on your own, even if you do not and just want to stay connected to family and friends, you need a computer. This is necessary because a lot of communication is not conducted online. That said, making sure your computer is taken care of should be on your list of regular things to do.

cleaning computers
credit

Care for the computer is not only about firewalls and anti-virus software. It is also about the maintenance of hardware. So here are some quick basics. Make sure your computer area is always clean. Do not eat, drink, or smoke around the computer as this increases dirt and risk of damage. Make sure you clean inside your computer by moving and dusting regularly. You need to be unplugged form the power source, unscrew the case, and use an air device of some sort for dusting. Finally, make sure the case itself is wiped with a clean, soft, and dry cloth regularly.

These simple steps will lengthen the life of your hardware.

Checking for Dependencies

There should be a constant check done to ensure all patches and updates issued are configured and integrated properly to prevent issues. Passwords should never be stored as plain text in databases, so include some form of encryption whenever possible. Parameters and other settings that can be saved onto logfiles (for obvious activity auditing) should be screened for any that can give unwelcome access to the app.
Do check for code injections that is a common occurrence in today’s dangerous internet environment.
These and a couple more security checks should be included in your security audit to ensure you have a reasonably secure application that will surely make itself apparent should you need to look for issues in the near future.

List of Rails Web Hosts

web_servers.jpg

Here is a list of web hosting services which support Ruby on Rails in case you might be looking for one for your website:

America:

• A2 Hosting
• AVLUX
• BILES ONLINE Ruby on Rails Hosting
• BlueHost
• Crucial Paradigm
• Dedicated Hosting
• Domain Gurus
• Hosting Rails
• JaguarPc
• SpeedyRails
• Zowes Web Hosting

Asia:

• Exaltinfo
• GVT.hk
• RailsFactory
• Web Development India
• Web Hosting Delhi

Australia:

• Anchor Systems
• Avial Web Design and Hosting
• Crucial Australia
• Hostcentral

Europe:

• 600host.net
• Blacknight Solutions
• Brightbox
• GPcom Media
• Media72 Hosting

For the complete list of Rails web hosts, visit: http://wiki.rubyonrails.org/rails/pages/RailsWebHosts

Learn Your Hashtags Manner

Hashtags popularity is definitely taking over the internet world and has become an integral part of the whole social media experience. Since twitter introduced it back in the 2008, the former ‘pound sign’ was never the same again. Now people hashtag as many as they can in any gadgets they have. Facebook also has already jumped in the bandwagon and supports hashtags. And even on other social networking sites that doesn’t support hashtags, people are still using it too. However, no matter how great we want our hashtags experience would be, some hastags are misused and can be so annoying for your friends, fans and followers. Most people who are guilty of breaking the hashtags etiquette are marketers but sometimes, even ordinary people do break the rules. Mind your manners! Here are some hastags etiquette you should bear in mind.

#donotstringtoomanywordstogether
You can put multiple words together but don’t put too much (it’s just not an unpleasant sight) and be sure to omit spaces if you do and capitalize the first letter of each new word to make it easier on the eyes.

#do #not #tag #every #word #you #think #of
I know some pictures and statuses are hard to describe in one hashtag so sometimes you have plenty of them. But please not too many hashtags in one post please. This is common in facebook where there is no character limit.

dont jump on a trend without actually relating your post to the topic
Marketers are the ones guilty of this. Just because you want to spread your brand awareness doesn’t mean you should include a tag surrounding the latest celebrity gossip.

Avoid overusing descriptive synonym tags at the end of a post
#my2cents #idea #thought are the same in meaning. So you dont need to add all of those hashtags. It seems messy and unnecessary.

Should we get the Windows Tablet?

There are so many gadgets in the market today it is head-spinning trying to figure out the best one to get, the best in terms of value for money. There are smart phones, tablets, laptops, desktops, you name it and there is probably a gadget in the market for it. Since this is the case, the question then is what gadget to spend hard earned money on?

computer
credit

Consider that the rate of obsolescence is quite fast, you should get something that will serve your objectives in getting a gadget to begin with and one that can be upgraded as much as possible. Take a look at the Windows 8 tablet. This was released last year so enough time has passed for users to give some good feedback as to whether this is a reasonable and good gadget. Promising the features of a tablet with the ease and use of a laptop, this detachable tablet and keyboard appears to be a popular choice. It is versatile, up-to-date, and uses an OS that is compatible with most offices still today and easily updatable.

Reasons to own a Smart Phone

When we think about the things we need in life today, gadgets are probably the last on the list, if they even make the list at all. A lot of folks would think that this is just a desire, a frivolity that really can be done without. What most do not realize is how the world is wired today. Here are some reasons why a gadget- most probably a smart phone- has become a necessity.

1. Most offices now have processes that are linked to online connectivity, storage online, payment methods online. If you are working, you will need a smart phone to at least be able to access work-related documents or to do work processes,
2. Payment methods are now faster and a lot cater more to online transactions. Especially in a world ruled by credit, being able to buy and pay online has become essential to daily activity.
3. Being in contact or contactable is absolutely important whether this be by family, or work, or for freelance projects.

So when making your list of ‘must have’s', stop and think hard if a mobile phone really isn’t one of them