498
questions
0
votes
0
answers
46
views
CarrierWave is creating bucket.domain for my minio s3 cdn
I want to use my minio cdn to add assets from rails using carrierwave.
My CarrierWave config looks like:
CarrierWave.configure do |config|
config.fog_provider = 'fog/aws'
config....
0
votes
0
answers
25
views
Migratiom from paperclip to carrierwave - uploading attachment to amazon S3
my rails application attachments were on paperclip after migration to carrierwave i want to keep old attachments uploaded to amazon S3 so i tried attachments urls be in this format:
"https://...
0
votes
0
answers
9
views
How to integrate pareto dominance into fogworkflowsim?
I'm implementing a multi-objective scheduling algorithm in the fog-cloud, and I've opted for the fogworkflowsim simulator. How do I go about introducing the Pareto dominance function?
How can I use ...
0
votes
0
answers
49
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
73
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 "...
1
vote
1
answer
63
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
375
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
301
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|
...
1
vote
0
answers
203
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....
1
vote
1
answer
1k
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
747
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
558
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
201
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
449
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
705
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
413
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
391
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
137
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
106
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
732
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
108
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
240
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
237
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
418
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
283
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
194
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
270
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
418
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
399
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
777
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
197
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'
...
14
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
748
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
25
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
201
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
393
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
610
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
56
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/...
1
vote
0
answers
567
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
2k
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
521
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
586
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
734
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
167
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","...