Using Vim as a Complete Ruby on Rails IDE

When coding in Ruby on Rails, you’ll usually be switching between files and running scripts a lot. It can be time-consuming and frustrating coding Rails using a traditional text editor designed for working on big files individually. Vim lets you hop around within a file with enough speed to activate the cosmic treadmill - but without a plethora of hacks and custom key mappings, it’s weak as a Rails IDE. Fortunately, for those of us who are reluctant to kick the vim habit, Tim Pope comes to the rescue with rails.
lire la suite

Lien du post: http://biodegradablegeek.com/2007/12/using-vim-as-a-complete-ruby-on-rails-ide/

Sur le même thème que "Using Vim as a Complete Ruby on Rails IDE"

Expanding List of Ruby on Rails Sites, Editors, Tutorials, Cheat Sheets and More

Most of these Ruby on Rails related links are right out of my bookmarks. I checked for 404s and added more recent entries, but this list is far from complete. New blogs, sites, tutorials and tools are released on a daily basis. Just leave a comment or contact me if you want your link(s) or anything related added, or have spotted any broken links. (Updated 02/22/2008. Keep the suggestions coming!) Installation Guides These are to help you get Ruby and Rails installed and configured, ready for Hello World. · GettingStartedWithRails - A page on the official Wiki · Fear of Fish - Getting Started with Ruby on Rails · Installing Ruby on Rails with Lighttpd and MySQL on Fedora Core 4 · Building Ruby, Rails. [lien] [EN]

Expanding List of Ruby on Rails Sites, Editors, Tutorials, Cheat Sheets and More

Most of these Ruby on Rails related links are right out of my bookmarks. I checked for 404s and added more recent entries, but this list is far from complete. New blogs, sites, tutorials and tools are released on a daily basis. Just leave a comment or contact me if you want your link(s) [...] [lien] [EN]

Understanding Basic Database Relationships in Rails

This short tutorial will be beneficial for you if database relationships and keywords like belongs_to and has_many confuse you, or if you’re trying to find out how relationships are implemented in Rails. As we create a small demonstration project, you’ll see that one beauty of Rails is how it does most of the work gluing everything together, after you’ve supplied it with information about your database’s structure. But first — why bother learning about relationships? Very simply, they eliminate a major problem called an update anomaly, and they will probably save you disk space. Having info repeated in multiple entries can be problematic. How would you update a mass misspelling? Would you even notice a misspelled entry? Database normalization and multiple intertwined tables (via relationships) can curb this problem. [lien] [EN]

Navy Rail Gun Test DESTROYS Everything It Touches at 5,640 mph [Rail Guns]

The US Navy has just completed a 10-megajoule test fire of their huge rail gun. For the first time ever, they fired a projectile with a velocity of 8,270 feet per second. That's an amazing 5,640 mph,... [lien] [EN]

New Rails for PHP Developers Website

Rails for PHP Developers is a new website that’s a companion to the new book by the same name. Like the book, it’s aimed towards PHP developers who have an interest in Rails and Ruby. The website features articles that alternate between Ruby and PHP focus, so PHP developers that aren’t interested in [...] [lien] [EN]

Simple Way to Populate a Database in Rails

This is how I populate my database when I have a lot of data but can’t be bothered to write more than a quick throw-away hack. This doesn’t use fixtures, nor migrations (nothing wrong with them, I wuv migrations). Just a ruby file and the Rails console (this is optional actually). I create a new rb [...] [lien] [EN]

Introduction to Validations & Validation Error Handling in Rails

Validations in Ruby on Rails are essentially nothing more than methods that ensure that the data in a model is valid before saving it to the database. Traditionally, we validate data coming in using conditional expressions (for example, if email != NULL or if passwd==passwd_confirmation). This task is essential, but boring and tedious, but Rails’ [...] [lien] [EN]

Simple Way to Populate a Database in Rails

This is how I populate my database when I have a lot of data but can’t be bothered to write more than a quick throw-away hack. This doesn’t use fixtures, nor migrations (nothing wrong with them, I wuv migrations). Just a ruby file and the Rails console (this is optional actually). I create a new rb file in lib/ (you can put your files in a sub-directory or anywhere ‘load’ can find them), then write the data I want inserted into the database in a new function in that file. I do so exactly as I would insert data in Rails. Model.create, Model.new, etc… I then get into the Rails console (ruby script/console) and do load ‘file.rb’ and simply call the function. The database used will vary according to the environment you’re in (test, development. [lien] [EN]

Introduction to Validations & Validation Error Handling in Rails

Validations in Ruby on Rails are essentially nothing more than methods that ensure that the data in a model is valid before saving it to the database. Traditionally, we validate data coming in using conditional expressions (for example, if email != NULL or if passwd==passwd_confirmation). This task is essential, but boring and tedious, but Rails’ validations make this mundane part of programming as simple and as easy as possible. The validations provided in Rails (defined in every model) are thorough, likely covering all your needs right out of the box. There are even validations provided for checking whether a user agreed to a Terms of Service or End-User License Agreement (EULA), and for doing automatic field confirmation, useful when you ask the user for an email or password twice to ensure no misspelling. [lien] [EN]

Top Rails

It came out in conversation today if there were other Ruby on Rails sites bigger than Twitter. The answer is, yes. The top five ranked Rails-powered sites as tracked by Alexa. Note that the graph is semi-log. I get a lot of mileage out of ripping on Rails—besides being easy, it’s also quite fun, and I’m always [...]SHARETHIS.addEntry({ title: "Top Rails", url: "http://terrychay.com/blog/article/top-rails.shtml" }); [lien] [EN]

First complete computer model of human metabolism

Researchers at the University of California, San Diego, have constructed the first complete computer model of human metabolism. Available free on the Web, the model is a major step forward in the fledging field of systems biology, and it will help researchers uncover new drug pathways and understand the molecular basis of cancer and other diseases. Read rest of this story on Technology Review site. [lien] [EN]

Human skin harbors completely unknown bacteria

It appears that the skin, the largest organ in our body, is a kind of zoo and some of the inhabitants are quite novel, according to a new study. Researchers found evidence for 182 species of bacteria in skin samples. Eight percent were unknown species that had never before been described. It is the first study to identify the composition of bacterial populations on the skin using a powerful molecular method. Not only were the bacteria more diverse than previously estimated, but some of them had not been found before, says Martin J. Blaser, M.D., Frederick King Professor and Chair of the Department of Medicine and Professor of Microbiology at NYU School of Medicine, one of the authors of the study. “The skin is home to a virtual zoo of bacteria,” he says. This study is published February 5. [lien] [EN]

Alpha-lipoic acid completely prevents atherosclerosis in mice

An article published in the August, 2006 issue of the American Diabetes Association journal Diabetes reported the findings of Xianwen Yi and Nobuyo Maeda of the University of North Carolina at Chapel Hill that giving alpha-lipoic acid to mice in whom diabetes was induced prevented the increase in cholesterol, atherosclerotic lesions and health deterioration that the disease would otherwise cause. Alpha-lipoic acid is a potent antioxidant nutrient that has been used to treat diabetic neuropathy, however, its effects in diabetic cardiovascular disease have not been completely evaluated. Drs Yi and Maeda, who are with UNC's department of pathology and laboratory medicine, induced diabetes in a group of three-month-old apolipoprotein E-deficient mice by administering streptozotocin (STZ). [lien] [EN]