Posts by Vitor Nascimento • 126 points
12 posts
-
1
votes0
answers39
viewsQ: How to play Gem Audited logs on Logstash
What is the best way to play the logs from gem Audited (Rails to the Logstash ? To Gem Audited: https://github.com/collectiveidea/audited/…
ruby-on-railsasked Vitor Nascimento 126 -
0
votes3
answers295
viewsA: Display fields from a hash in the view
Try as follows in your view (considering ERB): <% @results.each do |result| %> <%= result.cod_produto %> <br> <%= result.desc_produto %> <%= result.desc_cor %> ...…
-
1
votes1
answer63
viewsA: chat with Faye, Rails and Heroku
Responding based on the comments: Try working with Rails 5 Action Cable https://blog.heroku.com/real_time_rails_implementing_websockets_in_rails_5_with_action_cable Native Websocket on Rails.…
-
1
votes1
answer34
viewsA: How to disable a select associaition from simple form
You can exchange the select field for a plain text field when you are on the edit screen or put no field keeping only the text in a div. Another option is to keep it like this and create a rule in…
-
1
votes1
answer57
viewsA: Store JSON data in Amazon RDS
You can use Aws Lambda to consume Json and play for RDS from time to time. http://docs.aws.amazon.com/lambda/latest/dg/with-scheduled-events.html…
awsanswered Vitor Nascimento 126 -
0
votes2
answers1532
viewsA: Amazon SES, send unverified emails
With a verified domain you can fire emails with all accounts of the domain in question. Ex: [email protected], [email protected]. whereas email.com is your domain. The parameter from in the API or SMTP call it…
-
0
votes4
answers4316
viewsA: How to import a csv file to Mysql?
Try ignoring the first line and passing the full csv file path: LOAD DATA INFILE 'c:/tmp/teste.csv'; INTO TABLE bolsa FIELDS TERMINATED by ',' ENCLOSED BY '"' LINES TERMINATED BY '\n' IGNORE 1 ROWS;…
-
1
votes1
answer1163
viewsA: Jboss standalone.bat windows service Wildfly 10
$HOME_JBOSS/bin/service install In Wildfly 10 the directory bin\service was moved to docs\contrib\scripts\service; Although it has been moved it still works according to the documentation. In that…
-
0
votes3
answers200
viewsA: Speed difference between Plink and Openssh
There’s an article about git slowness in Windows: https://github.com/msysgit/msysgit/wiki/Diagnosing-why-Git-is-so-slow One way to solve it is with git lfs clone..., see here. Most commands run on…
-
0
votes2
answers256
viewsA: Rails and Mysql - Data Types
The idea of Migration is to have registered as scripts the evolution of its database, in this way Voce would have the management of documented database change, besides facilitating the update of the…
-
0
votes1
answer192
viewsA: Remove dashed edge when clicking on a select combo
The drop-down window with the options is part of what is called Shadowdom. In current CSS specifications, level 3, there is no way to achieve most Shadowdom elements. You can read the specifications…
-
3
votes3
answers652
viewsA: Development process with Docker
Based on my experience with Docker: Whether or not to use Docker in the Development process depends on the established process. For example, in my process I have a base_container containing all the…
dockeranswered Vitor Nascimento 126