Oct 29

Regular Expressions and Blocks (Continued)

Category: Basics, Sample Code

The caret “^” and the “&” operators are used for matching the beginning of a string, and also for the end of a string shown below:

matching =/[a-e]$/

The script would look for similar letters between “a” and “e” respectively including the end of the string. To search for a letter inside a string:

[A-Z] all uppercase letters
[a-z] all lowercase letters
[0-9] all digits(numbers)

To restrict the range, say to look for only the letters between “a” and “e”, you write it as [a-e] combined with the caret operator shown below:

[^A-Z] all other characters except uppercase letters
[^a-z] all other characters except lowercase letters
[^A-Za-z] no letters, whether upper or lower case

Comments are off for this post

Sep 25

Regular Expression and Blocks

Category: Basics

Ruby expressions would be shocking for the uninitiated or those who are shifting form other programming languages. If you have experience with Perl or Python, then you’re in luck for they won’t send you packing up and running in fear. The term “regular expression” is used to have a program check if it looks like something else in terms of similar characters or spacing, length or a myriad of other things that you may think of. The table form Ruby.org summarizes all the Ruby expressions and elements. Regular expressions are used for matching certain patterns such that if you’d want to check for a digit you use the \d expression or to match a space character, you use the \s expression to match a space character.

Comments are off for this post

Aug 10

Ruby on Rails Essentials

Category: Information

Because of its success, popularity and functionality, Ruby on Rails performs with an extensive variety of web servers and databases. Recommended for web servers would have to be Apache, lighttpd or nginx in place of Mongrel or it can be by means of FastCGI. Meanwhile, for database, the following have been suggested to be utilized: MySQL, PostgreSQL, SQLite, Oracle, SQL Server, DB2 and a lot more of servers that Ruby on Rails support and work well with. There is no limitation or strictly recommended on which operating system to use, but the best to make use of is a ‘nix-based one for deployment.

Comments are off for this post

Jul 11

Who Uses Ruby on Rails?

Category: Information

When it comes to infrastructure, Ruby on Rails is all over it. From start-ups to non-profits for venture projects of businesses, Rails can handle it. It is the best tool for almost whichever kind of web application (software collaboration, community, e-commerce, content management, statistics, management, etc). Shopify, Yellow Pages , Backpack, Github and Twitter are only some of web sites that uses Ruby on Rails. These web sites have trusted Ruby on Rails do manage their web applications that is made easy to use for people browsing, customers and people in need of the information provided by the web site.

Comments are off for this post

Jun 23

RIP – Shaking out RubyGems

Category: Information

Rip has quietly been making its way out into the world of Ruby, but the power it holds within is seen as the next generation packaging for Ruby Apps. The system that has come out is on the “development alpha” stage which can be compared to the release candidates by which developers can begin to experiment and build applications with. They however stressed that the version out of the box is still to be finalized and should not be used for production till they get it fully tested and debugged for pending release. Read more

Comments are off for this post

May 23

DebGem – Ruby for Debian and Ubuntu

Category: Information

From Phusion, who is responsible for the rails deployment system, Passenger, announced the release of DebGem a powerful tool for RubyGem to APT conversion. With many system administrators preferring to use the APT package management for everything they wish to do on their systems, DebGem allows RubyGems to be packaged differently for deployment on Ubuntu and Debian. The addition of support for the two repositories, allows more flexibility and control, previously quite difficult solely with RubyGems. Read more

Comments are off for this post

Apr 23

RubyMine 1.0

Category: Information

Intelligent productivity enhancing development tools are some of the most powerful tools available to the many Ruby and Rails developers all over the world and with the release by JetBrains of RubyMine 1.0, it just got a whole lot better. Hailed as one of the best IDE’s yet to come out for use by developers, it has received quite a lot of attention since it was released partially last November. The development tool that is RubyMine performs a very comprehensive analysis of the whole project code and offers a sort of suggestions list as to the best-in-class code that till now hasn’t been seen in the world of Ruby. Read more

Comments are off for this post

Mar 23

Ruby – More on Enterprise Deployments

Category: Information

As the world turns, so does the commercialization of Ruby and Rails that have been going on two-pronged approach with respect to the strategies startups in the IT field who focus on them have been targeting. This goes to show that there is money to be made in open-source, ruby being one of the earliest forms of frameworks for open-sourced development, has been embraced and loved by many of their sponsors for more commercialized use. Read more

Comments are off for this post

Feb 15

A new metrics service in Dash

Category: Imp @ja

fiveruns-ruby-small1

If you’re looking for some new Ruby and Rails toys to tinker with, you might be interested in Dash, a new metrics service. Here’s some excerpts from the original article.

Dash, a new metrics service from FiveRuns, has been moved to private beta (for which you can apply) allowing interested developers to take part in assessing a new way to monitor your applications. The new service from FiveRuns is an extensible monitoring service for gathering metrics from your critical daemons and applications.

What Dash does is collect metrics from you apps using a framework or language that is plugin specific. These plugins then collect the metrics which they send to FiveRuns for presentation on you app dashboard. The information from your metrics is then presented through line charts and sparklines collected in several reports, which in turn show your metrics based on preset periods of time.

Comments are off for this post

Jan 12

In-Fighting between GNU and Cisco

Category: Information

ciscoThe two are fighting over rights to the source code of Cisco’s products which have embedded code that makes them work which Cisco is denying to the many users of their products who may wish to modify their programming. Cisco is a major proponent of the Linux Kernel and the fight is seen as a conflict of interest for Read more

Comments are off for this post

« Previous PageNext Page »