Best unofficial Apache Server developers community
Username
Forgot password?
Sign in with Twitter account
Sign in with Facebook account

ruby

0
votes
0 answers
131 views

Caching dynamically generated images in Rails

I am using PhantomJS to dynamically generate 10 large images of websites at a time in each request. Therefore it is important that I cache these…
asked June 25, 2011 2:01 pm CDT
Justin Meltzer
0
votes
0 answers
66 views

Handle SSL connections from an inetd ruby script

I'd like to run a Ruby script that handles encrypted communications from inetd. As I need the certificate information for further processing, I…
asked June 25, 2011 1:07 pm CDT
icanhasserver
0
votes
2 answers
45 views

Ruby regex group stored in a variable?

I'm having issues with this regex it doesn't seem to grab the titles (everything after the last '.' ) I've tested the regex on multiple sources and…
asked June 25, 2011 12:05 am CDT
LF4
0
votes
0 answers
85 views

AES/CBC encrypt in Java, decrypt in Ruby

I am trying to translate the following (working) Java code to Ruby. public static final String PROVIDER = "BC"; public static final int IV_LENGTH =…
asked June 24, 2011 9:45 pm CDT
Jordi
1
vote
2 answers
48 views

Should deleting a non-existent resource result in a 404 in RESTful Rails?

In a brand new Rails application with a scaffolded RESTful model, the generated delete code looks like this: class BeersController <…
asked June 24, 2011 5:02 pm CDT
Brad
0
votes
1 answer
34 views

Scrape URLs From Web

<a href="http://www.utoronto.ca/gdrs/" title="Rehabilitation Science"> Rehabilitation Science</a> For the example above, I want to get…
asked June 24, 2011 11:49 am CDT
Terry Lee
0
votes
1 answers
53 views

Database design for document management?

We are providing document upload on different things like tasks, feeds, comments etc.. And there are lots different permission on documents for…
asked June 24, 2011 4:33 am CDT
krunal shah
0
votes
1 answers
45 views

Need help in Resque task (Rails & Rake) architecturing

I am currently using Resque for dealing with background jobs in my application. Now i have 5 different queues at present (it ll grow very fast).…
asked June 24, 2011 3:56 am CDT
Ramesh Vel
0
votes
1 answer
57 views

Update the parent model on child after_save, using Mongo

A User has many Posts and a Post belongs_to a User. Both have a location. I'd like to store the location for each Post and update the User location…
asked June 23, 2011 1:29 am CDT
kinet
0
votes
0 answers
46 views

Can Ruby and another process maintain open connections to SQLite simultaneously?

I have a database-driven web application in Thin that maintains an open connection to a SQLite 3 database (via the sqlite gem). Currently, the thin…
asked June 22, 2011 10:20 am CDT
Alex
0
votes
0 answers
71 views

Puppet + Passenger + Apache/Nginx

I'm working on a very large puppet deployment, but seem to be hitting a brick wall. My ideal setup is to use Nginx + Passenger to serve puppet. The…
asked June 22, 2011 6:56 am CDT
Eugene
0
votes
1 answers
50 views

Resque worker not recognizing the Rails Mongoid model

I am using resque in my application for delayed jobs, where i cant send emails & sms to bulk number of users asynchronously. And the data is…
asked June 22, 2011 4:58 am CDT
Ramesh Vel
0
votes
3 answers
47 views

How to Use AND in Ruby Regex

I'm having problems with Ruby regex. How do you do AND(&) regex in ruby? ex: cat and dog cat dog I just want to match "cat and dog"
asked June 22, 2011 4:12 am CDT
cartman
1
vote
1 answers
46 views

Rails plugin to find missing foreign keys

What I have: A big rails app using ar 2.3.11 & postgresql 8.4 db What I need: Any gem/plugin/library that look for entire models with…
asked June 22, 2011 2:52 am CDT
randx
0
votes
5 answers
48 views

Using regex to reformat text

Is there a way to use regex to reformat a string? I've a string like this AEY4293 and I want to add a dash between letters and numbers, like this…
asked June 21, 2011 7:59 pm CDT
Adilson Carvalho
0
votes
0 answers
68 views

Mysql2::Result Object -- TypeError: can't convert String into Integer

Here's my current code: def some_method won = send_query("SELECT SUM(won)", user.id, start_date, end_date) ... end def send_query(sql, user_id,…
asked June 21, 2011 6:12 pm CDT
keruilin
0
votes
1 answers
45 views

Using Postgres with Eventmachine

Does anyone know of a good way to connect to postgres inside eventmachine. I know there is an implementation bundled with eventmachine but i don't…
asked June 21, 2011 3:19 pm CDT
Micke
0
votes
1 answers
42 views

Access just the value of BSON::ObjectId in ruby

I'm working on a ruby/rails app backed by Mongodb (using Mongoid). Within the context of the Rails application everything works flawlessly but we're…
asked June 21, 2011 1:04 pm CDT
Jay Stakelon
0
votes
1 answer
40 views

Regex : Evaluating part of the expression

Let's say sometext= "text text picture 1 picture 2 text text" I want to write an expression that grabs the pictures and their numbers. Sometimes…
asked June 21, 2011 12:32 pm CDT
victorkhugo
0
votes
0 answers
50 views

Ruby check if webdav upload is complete

I would like to offer an upload folder for our clients. As Windows, Linux and MacOS X have out of the box support for webdav, we chose an Apache…
asked June 21, 2011 11:22 am CDT
mosch
Pages : 1 | 2 | 3 | 4 | 5 > [42]
840

ruby

Tagged: ruby
Related Tags
ruby-on-rails × 318
regex × 283
mysql × 177
mongodb × 94
http × 53
postgresql × 44
mongoid × 40
apache × 37
nginx × 27
openssl × 27
ssl × 25
passenger × 24
database × 23
redis × 23
sqlite × 23
activerecord × 21
gem × 20
string × 19
rubygems × 17
rvm × 15
python × 14
sinatra × 13
php × 13
heroku × 12
sql × 12
https × 12
mongomapper × 11