Questions tagged [fog]
fog describes itself as 'the Ruby cloud services library'.
498
questions
0
votes
0
answers
6
views
iFogSim Simulation Termination
I have been using CloudSim for task scheduling on Cloud and now scheduling tasks in iFogSim as well. The problem I am facing is that the simulation does not execute the instruction of CloudSim....
1
vote
1
answer
58
views
How to authorize access to images uploaded to S3 by users?
Imagine the app with the ability to upload files by users. Only the author (the person who uploaded this file) and the author's friends should be able to see this uploaded file.
I am using "...
0
votes
1
answer
36
views
How do I dynamically choose fog provider when interacting with the storage?
I have a simple rails model which contains an image. The images are currently stored at AWS S3, but I need to move them to to Backblaze. I have an uploader class which looks like this too:
class ...
0
votes
1
answer
175
views
Unity 2021.3.20 Built-in ShaderGraph 12.1.10 Fog Density inverted in linear fog and showing wrong fog colors on far objects
Unity Shader Graph Fog node shows density inverted when using Linear Fog. Also not properly showing the color of the fog on far objects.
-1
votes
1
answer
217
views
Carrierwave cache_stored_file! does not fetch the file in the cache
I am migrating from Carrierwave 1.3.X to 2.2.X and I am running into trouble here and there. One of the snippets that fail for me is this:
def files
signable_template.signable_documents.map do |sd|
...
0
votes
0
answers
36
views
How to add fog effect to Mapbox on iOS
I don't have a 10 reputation to post images.
Effect picture
The map is covered by fog, and the map is displayed where you walk, that is, the coordinates are collected according to where you walk, and ...
1
vote
0
answers
131
views
Unity URP fog works on scene objects but not loaded assetbundles - why?
I'm using Unity 2021.3.15 LTS with URP, and I'm having trouble with fog. When I create an object in my scene and turn fog on using the Environment tab of the Lighting window, the fog effect works fine....
0
votes
0
answers
21
views
Heroku H10 application error ruby on rails
for a few days now it have been struggling with fixing a Heroku application error and so far no progress....
I find it difficult to make sense the logs, could someone please help me? I would really ...
1
vote
1
answer
715
views
Terrain long distance object draw blue tint / fog Unity
I have a basic 1000x1000 Terrain inside a very basic scene (almost empty) but the rendering for long distance is providing like a blue tint or like some fog :
The Terrain settings :
I tried increase ...
1
vote
1
answer
502
views
CarrierWave: Cannot insert legacy ACL for an object when uniform bucket-level access is enabled
Uploading file to google cloud bucket was working fine when we had "Fine-grained" access. Later it is changed to "uniform bucket-level access". Now upload operations are failing ...
0
votes
1
answer
433
views
how to test carrierwave fog google in rspec with setting up the configuration
I have below configuration and I wanted to write TC for it in ruby. I am new to ruby and wanted to understand how we can set the configuration of Fog to point to mock and use it in test-case.
class ...
0
votes
1
answer
140
views
uploading large file on google cloud bucket failing
I am uploading a large file from my local system or an remote_url to google bucket. However everytime I am getting the below error.
/usr/local/lib/ruby/3.0.0/openssl/buffering.rb:345:in `syswrite': ...
0
votes
1
answer
284
views
Monterey OSX. `const_defined?': uninitialized constant Fog::Rackspace::CDN (NameError)
I have recently upgraded my OS. from Big sur to Montery.
When I was running my ruby application I am getting an error with careerwave
.rvm/gems/ruby-2.3.1/gems/fog-core-2.3.0/lib/fog/core/provider.rb:...
0
votes
0
answers
562
views
Net::SFTP::StatusException (5, "bad message") While Sending Chunks Of A Large File:
Short Version:
Sending files from S3 in more than one chunk to SFTP server fails with a Net::SFTP::StatusException (5, "bad message") error.
Long Version:
I'm trying to send a large file ...
2
votes
0
answers
341
views
Carrierwave uploading file using fog to google cloud storage without making bucket public and control access fine-grained in rails
Is there a way i can upload files while keeping bucket private and access control uniform?
as i am trying to use carrierwave with fog for this purpose and followed carrierwave gem instructions but i ...
1
vote
2
answers
294
views
I need to define 3 kinds of messages in omnet
I want to define 3 kinds of messages in omnet
I know I have to use messagekind but I couldnt
please help me
I want help message, control message and jobs, which jobs should be processed
thank you so ...
1
vote
0
answers
115
views
Using an existing image on s3 with Carrierwave?
I'm trying to use existing images on my s3 and relate them to a carrierwave object. These images are stored in a different location from the store_dir of my uploader.
I currently have my migration ...
0
votes
1
answer
91
views
Fog computing with veins
Can fog computing be used with veins and inet for an omnet++ project?
I want to build an omnet++ project, in which I can send and receive messages between OBUs and RSUs, but with RSU as a fog node in ...
1
vote
1
answer
566
views
How do I open a CSV file that I uploaded with Carrierwave and Fog to Amazon S3?
I have a model called client_billing_file where I use Carrierwave to upload a CSV file like this:
mount_uploader :billing_file_name, UsageFileUploader
and I schedule a job to run 5 minutes after ...
1
vote
0
answers
97
views
Can't find "key" attribute in model with CarrierWaveDirect gem
I've been trying to implement direct upload with AWS and CarrierWave direct. I'm following the documentation.
I have a model: AppNotice. It has a column called image.
However, it seems like even ...
1
vote
0
answers
217
views
Carrierwave uploading file saves the file to AWS but the data doesnt persist after reload
Rails 6.1 with carrierwave 1.2.3 and fog 2.1.0
I'm attaching pdfs to a Document class internally using a DocsUploader. When saved everything looks to work fine and the document is uploaded to AWS and ...
-1
votes
1
answer
168
views
How do I create a Near Edge computing system? (Send sensor data with Raspberry Pi/DHT11 sensor)
I am working on edge computing for IoT applications and expected to create a system that acts as a near edge computer with the use of a raspberry pi hooked up to a dht11 sensor. How do I send this ...
2
votes
1
answer
386
views
Sinatra CarrierWave Fog - NameError: uninitialized constant Fog
I have been trying to setup CarrierWave with Sinatra and Fog for S3 File Management. I constantly keep running into issues around Fog being undefined. This works fine the moment I change the storage ...
0
votes
0
answers
257
views
Rails Fog create a file based on a remote link
I have Rails application and use fog gem to upload files to cloud storage (Rackspace). As of now I have been successfully uploading local files to cloud storage.
@service = Fog::Storage.new(options)
...
0
votes
0
answers
177
views
Readability Scores for Multiple Text Files in R
I am very new to R. I would be very thankful if you could share a code to help me with the following.
I want to calculate readability scores (such as: FOG Index, SMOG Index, Flesch–Kincaid Score etc.) ...
1
vote
1
answer
240
views
Can't specify digitalocean endpoint in sitemap_generator s3 aws adaptor
I am using sitemap_generator in our Rails application & trying to create and upload the sitemaps to DigitalOcean spaces (which is s3 compatible as far as I know) but I can't override the endpoint ...
1
vote
1
answer
381
views
vagrant-share plugin installation error -- fog-core gem mismatch
I'm learning Vagrant's vagrant-share plugin and ran into a Bundler error:
"conflicting dependencies fog-core (~> 1.43.0) and fog-core (= 1.45.0). activated fog-core-1.45.0 which does not match ...
0
votes
2
answers
337
views
Difference between offloading decision and task scheduling in context of fog computing
In context of fog computing, the computation offloading decision decides where to offload- on cloud or on fog or execute it locally. While task scheduling also decides where to execute task on fog or ...
0
votes
2
answers
729
views
Unpermitted parameter: :format when saving image with Google Cloud Storage
I am trying to save my image files with carrierwave, fog, and google cloud storage.
So when I submit the data and the image field
<ActionDispatch::Http::UploadedFile>
but getting error "...
1
vote
2
answers
178
views
Fog/aws gem for IBM Cloud Object Storage is not working
As Softlayer or IBM Cloud has moved from Swift based Object Storage to S3 based Cloud Object Storage. I am using fog/aws instead of fog/softlayer.
The below is the code:
require 'fog/aws'
...
13
votes
2
answers
3k
views
Fog deprecation warnings when starting Rails server
I migrated my Rails app to Rails 6.0.1 and every time I startup the server I get these Fog deprecation warnings. How can I get rid of them?
Funny enough I have a cloned version of this app, which ...
0
votes
1
answer
689
views
How to copy all files in a folder on s3 using Fog in Ruby
How do I copy all the files present in an s3 directory(same prefix) to another directory in the same bucket using fog?
For eg: Copy all files with prefix <bucket>/foo/ to <bucket>/bar/
0
votes
1
answer
23
views
Is storage in fog similar to the cloud? Does the fog node do some processing on the data before sending to the cloud?
Does the fog node do the processing before sending the data to cloud for storage? If so what kind of processing is been done?
1
vote
2
answers
1k
views
Configuring Fog to install in Ruby on Rails project
I'm learning ruby on rails and have had my project hosted on c9.io. In the process of migrating over to Amazon AWS Cloud9 I'm having to reinstall my gems to my project. I am getting a config error ...
0
votes
0
answers
196
views
"Access Denied" error appears in $ heroku logs --tail when I upload a picture in my APP to AWS with fog gem
unable to upload a picture file into S3 bucket in my APP with fog gem, even though I could upload locally.
I still can log into AWS successfully with correct IAM user name, who has ...
0
votes
1
answer
379
views
Processing Latency
Hello Everybody please help me ,
I would like to compute the processing latency over different layer in the network , especialy on the cloud server. I want a mathematical function to compute the ...
5
votes
1
answer
580
views
CarrierWave url nil after upgrading from Rails 3 to Rails 4
While upgrading our app from Rails 3.2.22 to Rails 4.2.11, several CarrierWave methods that worked prior to the upgrade now return nil, such as .url and .file. We are hosting our assets on AWS S3 and ...
1
vote
2
answers
1k
views
How can I temporarily store (cache) images before uploading to S3?
My rails app is using CarrierWave and Fog to upload images to S3. Remote URLs are working fine, HOWEVER I need to temporarily store local images (from the device it's being uploaded) before I can ...
0
votes
0
answers
54
views
Rails API - Local file is not uploading to s3/Heroku
These are the parameters that are being passed to my HTTP POST request, as so:
Parameters: {
"vision"=>{
"description"=>"dsfsfdsfdsfsd",
"image"=>"file:///Users/ozgecokyasar/Library/...
0
votes
0
answers
543
views
in `validate_options': Missing required arguments: aws_access_key_id, aws_secret_access_key (ArgumentError)
Everything has been great. Until I checked out a new branch, and now I get this error. I use figaro which generated an application.yml to store the env variables for the aws credentials. I have ...
0
votes
2
answers
1k
views
NameError: uninitialized constant CarrierWave::Storage::Fog, heroku
I am trying to use carrierwave, fog and AWS for my image uploading on Heroku. Pretty common...I even have it set up successfully for another app. However when I delpoy to heroku I'm getting this error:...
0
votes
1
answer
463
views
ENV variables when doing Rails commands (migration, others)
Using Carrierwave and fog and everything working fine with AWS but when I try and do a migration and some other rails commands I get:
lib/fog/core/service.rb:244:in validate_options: Missing required ...
0
votes
0
answers
539
views
Rails Fog storage : NameError: uninitialized constant Azure::Core
I previously an app with Fog Storage on Rails 5.0.
Now i'm creating a new rails app in Rails 5.2 with active storage and fog storage.
I want that rails app upload, attach and download some files and ...
0
votes
2
answers
676
views
File does not get stored (mounted) if processing of versions fails
I upgraded carrierwave from 0.11.0 to 1.2.3 and realised that a, for me crucial, behaviour has changed and broke my logic. Here is the example of my uploader.
class FileUploader < CarrierWave::...
0
votes
1
answer
1k
views
Excon::Error::RequestEntityTooLarge: Expected(200) <=> Actual(413 Request Entity Too Large) : Fog google storage ruby
I have a rails app 5.2, ruby 2.3.4 with fog-google (1.3.3).
It was working great on dev, test and prod environnement since a long time to upload and download file.
But now fog storage refuse to upload ...
0
votes
1
answer
1k
views
CarrierWave customize original filename
I am attempting to customize the original filename for an image uploaded through CarrierWave by appending some sort of unique UUID. The problem is that I do not want this UUID to also be appended onto ...
9
votes
4
answers
1k
views
"Excon::Error::Forbidden" error when trying to save files to Google Cloud Storage with Fog and Carrierwave
I'm using Carrierwave and Fog to store images on the cloud. I was previously using Amazon S3 for the actual storage, which worked with no issues. But I switched over to Google Cloud Storage, and now I'...
1
vote
0
answers
156
views
Load Balancing in fog computing
I have been trying to use fog sim to try and compare different load balancing algorithms and to check for efficiency, power, and distribution of tasks but i am not able to find java code for load ...
1
vote
1
answer
3k
views
HTTParty: Upload files
How would I do the following curl call using HTTParty?
$ curl -u [email protected] -F [email protected] -F 'data={"title":"Android Key","alias":"release", "key_pw":"90123456","...
1
vote
0
answers
633
views
Why an AccessDenied error on S3 files?
Some of the files uploaded on S3 can't be read because of an AccessDenied error. It was working well so far...
Gemfile
ruby '2.2.0'
gem 'rails', '3.2.22.2'
gem 'pg', '0.18.4'
gem 'sprockets', '2.2.3'...