Articles

Rails caching – resources

When you create anything serious on Ruby on Rails, you will most definitely need to start thinking about caching. As Ruby is a high-level language, a lot of crunching goes on to make the magic work. So in order for all this magic to work you should ensure that the heavy-lifting is done only once and after that you just use the results.

Good news is that caching in RoR is very powerful standard feature.

Post-Mortem of This Morning's Outage

At 07:53 PDT this morning the site was hit with an abnormal number of SSH connections. The script that runs after an SSH connection is accepted makes an RPC call to the backend to check for the existence of the repository so that we can display a nice error message if it is not present.

Distlockrun: Lockrun for Your Cloud

Lockrun is a handy little utility for ensuring you don’t run two of the same cron job (or other task) at the same time on one machine. It’s especially handy when the cron job in question has a widely varying duration. Lockrun was written by Steve Friedl and initially released in 2006.

Thanks to the NFi Studios Team

NFi Studios

Face Brutal Facts

Companies must face the fact that consumers and employees have a loud voice, and that relationships with them can no longer be one sided.

Double Shot #573

Been a very long week, but I’m happy with the way various projects are improving.

#338 | “Ryan Bates’ nifty-generators” in Category: Useful tools for daily routine

»Synchronizing Core Data With Rails 3.0.0.pre«

Ruby – Get ASCII value

Example 1:

puts ?r  #=> 114

puts ?a #=> 97

Example 2:

output=”raveendran”

puts output[0]  #=>114 ‘value of r’

puts output[1] #=> 97  ‘value of a’

Example 3:

output=”raveendran”
output.each_byte do |a|
puts a
end

>ruby ascii_from_ruby.rb
114
97
118
101
101
110
100
114
97
110
>Exit code: 0


 

Watir – handling hidden process in windows

Code:

def running(a)

running=`tasklist`

if running.include?(a)

puts “#{a} is already running in windows machine”

else

puts “#{a} is not running”

end

end

runnning(‘java.exe’)

#=>   java.exe is already running in windows machine

runnning(‘notepad.exe’)

#=> notepad.exe is not running

Where this code will useful:

We can able to chaeck the process is runnign or not — When Script need to close some opened Firefox windows or chrome windows

Presently Adds SharePoint Integration

We’re always looking for ways to make it easier to integrate Presently into your day-to-day workflow. Today, we’re happy to announce something that will make it much easier for businesses using Microsoft’s SharePoint to integrate Presently. Starting today businesses can use the Presently SharePoint Web Part.

Beginners | Rails Fire

Beginners

Paul Barry Winner RPCFN #8

In this brief interview, Satish Talim of RubyLearning talks to Paul Barry of USA, winner of the eighth Ruby Programming Challenge For Newbies.

RPCFN: Interactive Fiction (#9)

Guillaume Petit Winner RPCFN #6

In this brief interview, Satish Talim of RubyLearning talks to Guillaume Petit of France, winner of the sixth Ruby Programming Challenge For Newbies.

Guillaume Petit

RPCFN: Broadsides (#7)

RPCFN: Mazes (#5)

RubyLearning wishes all its readers and their friends and families a happy, healthy 2010. Thanks to everyone for the support and encouragement this year. It’s been a fun and rewarding year and we do appreciate all that you contribute to this site.

Aleksey Gureiev Winner RPCFN #4

In this brief interview, Satish Talim of RubyLearning talks to Aleksey Gureiev of Ukraine, winner of the fourth Ruby Programming Challenge For Newbies.

Aleksey Gureiev

Sinatra: 6th Batch of the Popular Course Announced

RPCFN: Short Circuit (#3)

Charles Feduke Winner RPCFN #2

In this brief interview, Satish Talim of RubyLearning talks to Charles Feduke of USA, winner of the second Ruby Programming Challenge For Newbies.

Charles Feduke

RPCFN: Average Arrival Time For A Flight (#2)

Ruby Programming Challenge For Newbies

RPCFN: Average Arrival Time For A Flight (#2)

By Chris Strom

Thank you for the very encouraging response to the first-everRuby Programming Challenge For Newbies (RPCFN)“. The second Ruby challenge is from Chris Strom.

Syndicate content