Questions tagged [fog]

fog describes itself as 'the Ruby cloud services library'.

fog describes itself as 'the Ruby cloud services library'. It is available at https://fog.io/

498 questions
5
votes
2 answers

Bundler could not find compatible versions for gem "excon" for gem mandrill-api

I'm getting this error when trying to install bundle. I have both versions '0.15.4' and '0.25.1' of gem excon in my gemset. How can I fix this? Bundler could not find compatible versions for gem "excon": In Gemfile: mandrill-api (>= 0) ruby…
vitthal-gaikwad
  • 1,184
  • 11
  • 13
5
votes
3 answers

I can't restart my dnsmasq service, so my fog server won't work

I have a fog server set up in work, every now and then our useless internet fails and I have to reset the dnsmasq to get it working again, (don't have a dhcp server set up and can't modify the hubs settings so won't be doing this). Whenever I try…
5
votes
2 answers

rails refinerycms s3 upload error

I'm trying to configure RefineryCMS to use Fog for S3 uploads. Here's the error I'm getting: ArgumentError in Refinery::Admin::ImagesController#create The following keys are invalid: :url My configuration in…
Tyler
  • 829
  • 11
  • 26
5
votes
2 answers

Trying to deploy a jRoR app using rubber and getting NoMethodError: undefined method `authorize_port_range' for nil:NilClass

This is my first time using rubber or deploying to Amazon EC2. I am following this Railscast. I've googled all over and nobody else seems to be having this problem. Here's my console log when I run cap…
user529789
  • 51
  • 1
5
votes
1 answer

Is it possible to apply fog from a point in a three.js scene that is independent of the camera?

For example, given a terrain with an avatar on it with a camera far away overhead: is it possible to render the fog so that the avatar remains perfectly unfogged while the terrain around the avatar fades into the fog?
shino
  • 4,562
  • 5
  • 38
  • 57
4
votes
2 answers

CarrierWave not working with Fog and S3: ArgumentError..."is not a recognized storage provider"

Maybe this is a bug in CarrierWave? I read similar questions here, tried example code and to reproduce a new app, and it is not working. I tried old apps with their code that is like the examples on Github, but now it doesn't work. Full trace:…
4
votes
1 answer

Why OpenGL fog just doesn't appear?

This is how I enable fog in OpenGL: float fog_colour[4] =…
jondinham
  • 8,271
  • 17
  • 80
  • 137
4
votes
2 answers

What gem should I use to work with AWS

I'm currently writing an application in ruby on rails that uses AWS. I see two options for gems, aws-sdk and fog. Fog seems to support almost all of the AWS services except for sns(which I wanted to use :/) and has mock services for testing not to…
BrianJakovich
  • 1,604
  • 1
  • 13
  • 23
4
votes
2 answers

Carrierwave/Fog - Argument error, provider not recognized

I'm using Carrierwave 0.5.3 and Fog to upload images to Amazon-S3. The setup works smoothly when running locally, no errors. But when running on Heroku, uploads fail with this message: 2011-03-31T12:53:46-07:00 app[web.1]: ArgumentError ( is not a…
Jesper
  • 4,535
  • 2
  • 22
  • 34
4
votes
6 answers

Carrierwave/fog/AWS issue when loading to Heroku "cannot load such file -- fog"

So im a total newbie and going through Michael Hartl's rails tutorial. Ive become totally stuck when trying to config picture uploads using carrierwave, fog-aws to S3 AWS. When pushing to heroku I get the following error: LoadError: cannot load such…
4
votes
2 answers

Getting Negative Expiry when Using Fog AWS S3 & Rails

I'm attempting to generate a signed url for a file in S3 using Fog; however, the url that get's returned always returns a negative expiry which causes the url to 400. connection = Fog::Storage.new( region: 'us-west-1', provider: 'AWS', …
doremi
  • 14,921
  • 30
  • 93
  • 148
4
votes
0 answers

Sudden Carrierwave/Fog Upload Error

Unexpectedly today, I started getting the following error when trying to upload a photo to my app using Carrerwave and Fog. It had been working just fine: NoMethodError (undefined method `content_length' for nil:NilClass) This is the first time…
po.studio
  • 4,007
  • 5
  • 25
  • 37
4
votes
1 answer

In Carrierwave and Fog how to catch failed uploads and log them?

When uploading a file using carrierwave errors can occur. For example, if there's an error while using Fog to upload to S3, we won't get an error message. Simply the file won't exist. So, how can I catch these errors with Carrierwave and Fog and log…
THpubs
  • 7,804
  • 16
  • 68
  • 143
4
votes
0 answers

AWS AMI : Get list of Available Instance Types for specific AMI

Is there an AWS API method(or fog method) using which I can retrieve the list of instance types that are enabled for an AMI? for example: I want to get a list of available instance types for AMI ID "ami-716e6534". It should give me list of…
4
votes
1 answer

Canvas gradient performance

I am currently programming a little game using canvas. For the game I need some kind of fog which hides the most part of the map and only a small area around the player should be visible. Therfor I use a second canvas to overlay the one where the…
Danmoreng
  • 2,367
  • 1
  • 19
  • 32